diff --git a/wp-includes/blocks/latest-comments.php b/wp-includes/blocks/latest-comments.php index 26a8f4d636..ae14d31b6f 100644 --- a/wp-includes/blocks/latest-comments.php +++ b/wp-includes/blocks/latest-comments.php @@ -154,6 +154,10 @@ register_block_type( 'core/latest-comments', array( 'attributes' => array( + 'align' => array( + 'type' => 'string', + 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), + ), 'className' => array( 'type' => 'string', ), @@ -175,10 +179,6 @@ register_block_type( 'type' => 'boolean', 'default' => true, ), - 'align' => array( - 'type' => 'string', - 'enum' => array( 'center', 'left', 'right', 'wide', 'full', '' ), - ), ), 'render_callback' => 'render_block_core_latest_comments', ) diff --git a/wp-includes/css/dist/block-editor/style-rtl.css b/wp-includes/css/dist/block-editor/style-rtl.css new file mode 100644 index 0000000000..f9df511e02 --- /dev/null +++ b/wp-includes/css/dist/block-editor/style-rtl.css @@ -0,0 +1,2025 @@ +@charset "UTF-8"; +/** + * Colors + */ +/** + * Breakpoints & Media Queries + */ +/** + * Often re-used variables + */ +/** + * Breakpoint mixins + */ +/** + * Long content fade mixin + * + * Creates a fading overlay to signify that the content is longer + * than the space allows. + */ +/** + * Button states and focus styles + */ +/** + * Applies editor left position to the selector passed as argument + */ +/** + * Applies editor right position to the selector passed as argument + */ +/** + * Styles that are reused verbatim in a few places + */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ +.block-editor-block-drop-zone { + border: none; + border-radius: 0; } + .block-editor-block-drop-zone .components-drop-zone__content, + .block-editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content { + display: none; } + .block-editor-block-drop-zone.is-close-to-bottom { + background: none; + border-bottom: 3px solid #0085ba; } + body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #d1864a; } + body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #a3b9a2; } + body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #e14d43; } + body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #a7b656; } + body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #c2a68c; } + body.admin-color-blue .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #82b4cb; } + body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #0085ba; } + .block-editor-block-drop-zone.is-close-to-top, .block-editor-block-drop-zone.is-appender.is-close-to-top, .block-editor-block-drop-zone.is-appender.is-close-to-bottom { + background: none; + border-top: 3px solid #0085ba; + border-bottom: none; } + body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-top, body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #d1864a; } + body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-top, body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #a3b9a2; } + body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-top, body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #e14d43; } + body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-top, body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #a7b656; } + body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-top, body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #c2a68c; } + body.admin-color-blue .block-editor-block-drop-zone.is-close-to-top, body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #82b4cb; } + body.admin-color-light .block-editor-block-drop-zone.is-close-to-top, body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #0085ba; } + +.block-editor-block-icon { + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + margin: 0; + border-radius: 4px; } + .block-editor-block-icon.has-colors svg { + fill: currentColor; } + .block-editor-block-icon svg { + min-width: 20px; + min-height: 20px; + max-width: 24px; + max-height: 24px; } + +.block-editor-block-inspector__no-blocks { + display: block; + font-size: 13px; + background: #fff; + padding: 32px 16px; + text-align: center; } + +.block-editor-block-inspector__card { + display: flex; + align-items: flex-start; + margin: -16px; + padding: 16px; } + +.block-editor-block-inspector__card-icon { + border: 1px solid #ccd0d4; + padding: 7px; + margin-left: 10px; + height: 36px; + width: 36px; } + +.block-editor-block-inspector__card-content { + flex-grow: 1; } + +.block-editor-block-inspector__card-title { + font-weight: 500; + margin-bottom: 5px; } + +.block-editor-block-inspector__card-description { + font-size: 13px; } + +.block-editor-block-inspector__card .block-editor-block-icon { + margin-right: -2px; + margin-left: 10px; + padding: 0 3px; + width: 36px; + height: 24px; } + +.block-editor-block-list__layout .components-draggable__clone .block-editor-block-contextual-toolbar { + display: none !important; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-list__block-edit::before { + border: none; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * { + background: #f8f9f9; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * > * { + visibility: hidden; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-mover, +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-contextual-toolbar { + display: none; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit .reusable-block-edit-panel * { + z-index: 1; } + +/** + * General layout + */ +@media (min-width: 600px) { + .block-editor-block-list__layout { + padding-right: 46px; + padding-left: 46px; } } + +.block-editor-block-list__block .block-editor-block-list__layout { + padding-right: 0; + padding-left: 0; + margin-right: -14px; + margin-left: -14px; } + +.block-editor-block-list__layout .block-editor-default-block-appender > .block-editor-default-block-appender__content, +.block-editor-block-list__layout > .block-editor-block-list__block > .block-editor-block-list__block-edit, +.block-editor-block-list__layout > .block-editor-block-list__layout > .block-editor-block-list__block > .block-editor-block-list__block-edit { + margin-top: 32px; + margin-bottom: 32px; } + +.block-editor-block-list__layout .block-editor-block-list__block { + position: relative; + padding-right: 14px; + padding-left: 14px; + overflow-wrap: break-word; + /** + * Notices + */ + /** + * Block border layout + */ } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block { + padding-right: 43px; + padding-left: 43px; } } + .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { + margin: -10px 20px 12px 20px; + width: calc(100% - 40px); } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { + margin: 0 0 12px 0; + width: 100%; } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice { + margin-right: 0; + margin-left: 0; } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { + font-size: 13px; } + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit { + position: relative; } + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit::before { + z-index: 0; + content: ""; + position: absolute; + border: 1px solid transparent; + border-right: none; + box-shadow: none; + transition: border-color 0.1s linear, box-shadow 0.1s linear; + pointer-events: none; + outline: 1px solid transparent; + left: -14px; + right: -14px; + top: -14px; + bottom: -14px; } + .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(66, 88, 99, 0.4); + box-shadow: inset -3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.45); + box-shadow: inset -3px 0 0 0 #d7dade; } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + box-shadow: 3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + box-shadow: 3px 0 0 0 #d7dade; } } + .block-editor-block-list__layout .block-editor-block-list__block.is-hovered > .block-editor-block-list__block-edit::before { + box-shadow: 3px 0 0 0 #e2e4e7; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-hovered > .block-editor-block-list__block-edit::before { + box-shadow: 3px 0 0 0 #40464d; } + .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { + opacity: 0.5; + transition: opacity 0.1s linear; } + .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { + opacity: 1; } + +/** + * Cross-block selection + */ + +.block-editor-block-list__layout .block-editor-block-list__block ::selection { + background-color: #b3e7fe; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected *::selection { + background-color: transparent; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit::before { + background: #b3e7fe; + mix-blend-mode: multiply; + top: -14px; + bottom: -14px; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit::before { + mix-blend-mode: soft-light; } + +/** + * Block styles and alignments + */ +.block-editor-block-list__layout .block-editor-block-list__block.has-warning { + min-height: 36px; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > * { + pointer-events: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit .block-editor-warning { + pointer-events: all; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit::before { + border-color: rgba(145, 151, 162, 0.25); + border-right: 1px solid rgba(145, 151, 162, 0.25); } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.35); } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::before { + border-color: rgba(66, 88, 99, 0.4); + border-right-color: transparent; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.45); } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit::after { + content: ""; + position: absolute; + background-color: rgba(248, 249, 249, 0.4); + top: -14px; + bottom: -14px; + left: -14px; + right: -14px; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected .block-editor-block-list__block-edit::after { + background-color: transparent; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit::after { + bottom: 22px; } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit::after { + bottom: -14px; } } + +.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__empty-block-inserter, +.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__side-inserter { + opacity: 0; + animation: none; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter, +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter { + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter, + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter { + animation-duration: 1ms !important; } } + +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit::before { + border: 1px dashed rgba(145, 151, 162, 0.25); } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.35); } + +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(66, 88, 99, 0.4); + border-right-color: transparent; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.45); + border-right-color: transparent; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] { + z-index: 81; + width: 100%; + height: 0; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit { + margin-top: 0; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit::before { + content: none; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + margin-bottom: 1px; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + width: auto; + border-bottom: 1px solid #b5bcc2; + bottom: auto; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + right: 0; + left: auto; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + right: auto; + left: 0; } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar, + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + top: 14px; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit { + float: left; + margin-right: 2em; } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-toolbar { + left: 14px; + right: auto; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] > .block-editor-block-list__block-edit { + float: right; + margin-left: 2em; } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-toolbar { + right: 14px; + left: auto; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] { + clear: both; + z-index: 20; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + top: -44px; + bottom: auto; + min-height: 0; + height: auto; + width: auto; + z-index: inherit; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover::before { + content: none; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover .block-editor-block-mover__control { + float: right; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__breadcrumb, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__breadcrumb { + left: -1px; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + display: none; } + @media (min-width: 1280px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + display: block; } } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] .block-editor-block-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] .block-editor-block-toolbar { + display: inline-flex; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + right: -13px; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-list__breadcrumb { + right: 0; } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] { + margin-right: -45px; + margin-left: -45px; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit { + margin-right: -14px; + margin-left: -14px; } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit { + margin-right: -44px; + margin-left: -44px; } } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit figure { + width: 100%; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit::before { + right: 0; + left: 0; + border-right-width: 0; + border-left-width: 0; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover { + right: 1px; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { + float: none; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-drop-zone { + top: -4px; + bottom: -3px; + margin: 0 14px; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-inserter-with-shortcuts { + display: none; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-block-list__empty-block-inserter, +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter { + right: auto; + left: 8px; } + +/** + * Left and right side UI; Unified toolbar on Mobile + */ +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, +.block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + position: absolute; + width: 30px; + height: 100%; + max-height: 112px; } + +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, +.block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + top: -15px; } + +@media (min-width: 600px) { + .block-editor-block-list__block.is-multi-selected .block-editor-block-mover, .block-editor-block-list__block.is-selected .block-editor-block-mover, .block-editor-block-list__block.is-hovered .block-editor-block-mover { + z-index: 80; } } + +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, +.block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + padding-left: 2px; + right: -45px; + display: none; } + @media (min-width: 600px) { + .block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, + .block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: block; } } + +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover { + right: -30px; } + +.block-editor-block-list__block[data-align="left"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block[data-align="right"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: none; } + @media (min-width: 600px) { + .block-editor-block-list__block[data-align="left"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block[data-align="right"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: block; + opacity: 1; + animation: none; + width: 45px; + height: auto; + padding-bottom: 14px; + margin-top: 0; } } + +.block-editor-block-list__block[data-align="left"].is-hovered > .block-editor-block-list__block-edit > .block-editor-block-mover, +.block-editor-block-list__block[data-align="left"].is-dragging > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block[data-align="right"].is-hovered > .block-editor-block-list__block-edit > .block-editor-block-mover, +.block-editor-block-list__block[data-align="right"].is-dragging > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: none; } + +/** + * Mobile unified toolbar. + */ +.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { + display: flex; + flex-direction: row; + transform: translateY(15px); + margin-top: 37px; + margin-left: -14px; + margin-right: -14px; + border-top: 1px solid #b5bcc2; + height: 37px; + background-color: #fff; + box-shadow: 0 5px 10px rgba(25, 30, 35, 0.05), 0 2px 2px rgba(25, 30, 35, 0.05); } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { + display: none; } } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { + box-shadow: none; } } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter { + position: relative; + right: auto; + top: auto; + margin: 0; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle, + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control { + width: 36px; + height: 36px; + border-radius: 4px; + padding: 3px; + margin: 0; + justify-content: center; + align-items: center; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle .dashicon, + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control .dashicon { + margin: auto; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover { + display: flex; + margin-left: auto; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-inserter, + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control { + float: right; } + +.block-editor-block-list__block[data-align="full"] .block-editor-block-list__block-mobile-toolbar { + margin-right: 0; + margin-left: 0; } + +/** + * In-Canvas Inserter + */ +.block-editor-block-list .block-editor-inserter { + margin: 8px; + cursor: move; + cursor: -webkit-grab; + cursor: grab; } + +.block-editor-block-list__insertion-point { + position: relative; + z-index: 6; + margin-top: -14px; } + +.block-editor-block-list__insertion-point-indicator { + position: absolute; + top: calc(50% - 1px); + height: 2px; + right: 0; + left: 0; + background: #0085ba; } + +body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{ + background: #d1864a; } + +body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{ + background: #a3b9a2; } + +body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{ + background: #e14d43; } + +body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{ + background: #a7b656; } + +body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{ + background: #c2a68c; } + +body.admin-color-blue .block-editor-block-list__insertion-point-indicator{ + background: #82b4cb; } + +body.admin-color-light .block-editor-block-list__insertion-point-indicator{ + background: #0085ba; } + +.block-editor-block-list__insertion-point-inserter { + display: none; + position: absolute; + bottom: auto; + right: 0; + left: 0; + justify-content: center; + opacity: 0; + transition: opacity 0.1s linear; } + @media (min-width: 480px) { + .block-editor-block-list__insertion-point-inserter { + display: flex; } } + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle { + margin-top: -4px; + border-radius: 50%; + color: #007cba; + background: #fff; + height: 36px; + width: 36px; } + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover { + box-shadow: none; } + .block-editor-block-list__insertion-point-inserter:hover, .block-editor-block-list__insertion-point-inserter.is-visible { + opacity: 1; } + +.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter, +.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter { + opacity: 0; + pointer-events: none; } + .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter.is-visible, + .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter:hover, + .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter.is-visible { + opacity: 1; + pointer-events: auto; } + +.block-editor-block-list__block > .block-editor-block-list__insertion-point { + position: absolute; + top: -16px; + height: 28px; + bottom: auto; + right: 0; + left: 0; } + @media (min-width: 600px) { + .block-editor-block-list__block > .block-editor-block-list__insertion-point { + right: -1px; + left: -1px; } } + +.block-editor-block-list__block[data-align="full"] > .block-editor-block-list__insertion-point { + right: 0; + left: 0; } + +.block-editor-block-list__block .block-editor-block-list__block-html-textarea { + display: block; + margin: 0; + width: 100%; + border: none; + outline: none; + box-shadow: none; + resize: none; + overflow: hidden; + font-family: Menlo, Consolas, monaco, monospace; + font-size: 14px; + line-height: 150%; + transition: padding 0.2s linear; } + .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { + box-shadow: none; } + +/** + * Block Toolbar when contextual. + */ +.block-editor-block-list__block .block-editor-block-contextual-toolbar { + z-index: 21; + white-space: nowrap; + text-align: right; + pointer-events: none; + position: absolute; + bottom: 22px; + right: -14px; + left: -14px; + border-top: 1px solid #b5bcc2; } + .block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar { + border-top: none; + border-bottom: none; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + border-top: none; } + .block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar { + border-top: 1px solid #b5bcc2; + border-bottom: 1px solid #b5bcc2; } } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + margin-bottom: 1px; + margin-top: -37px; + box-shadow: 3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .is-dark-theme + .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + box-shadow: 3px 0 0 0 #d7dade; } + @media (min-width: 600px) { + .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, + .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + box-shadow: none; } } + .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar .editor-block-toolbar, + .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar .editor-block-toolbar { + border-right: none; } + +.block-editor-block-list__block .block-editor-block-contextual-toolbar { + margin-right: 0; + margin-left: 0; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + margin-right: -15px; + margin-left: -15px; } } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + margin-right: 15px; } + +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + margin-left: 15px; } + +.block-editor-block-list__block .block-editor-block-contextual-toolbar > * { + pointer-events: auto; } + +.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-contextual-toolbar { + margin-right: -28px; } + +@media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + bottom: auto; + right: auto; + left: auto; + box-shadow: none; + transform: translateY(-52px); } + @supports ((position: -webkit-sticky) or (position: sticky)) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + position: -webkit-sticky; + position: sticky; + top: 51px; } } } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + float: left; } + +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + float: right; } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + transform: translateY(-15px); } + +.block-editor-block-contextual-toolbar .block-editor-block-toolbar { + width: 100%; } + @media (min-width: 600px) { + .block-editor-block-contextual-toolbar .block-editor-block-toolbar { + width: auto; + border-left: none; + position: absolute; + right: 1px; + top: 1px; } } + +/** + * Hover label + */ +.block-editor-block-list__breadcrumb { + position: absolute; + line-height: 1; + z-index: 2; + right: -17px; + top: -31px; } + .block-editor-block-list__breadcrumb .components-toolbar { + padding: 0; + border: none; + line-height: 1; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 11px; + padding: 4px 4px; + background: #e2e4e7; + color: #191e23; } + .is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar { + background: #40464d; + color: #fff; } + .block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar { + opacity: 0; + animation: edit-post__fade-in-animation 60ms ease-out 0.5s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar { + animation-duration: 1ms !important; } } + .editor-inner-blocks .block-editor-block-list__breadcrumb { + z-index: 22; } + [data-align="left"] .block-editor-block-list__breadcrumb { + right: 0; } + [data-align="right"] .block-editor-block-list__breadcrumb { + right: auto; + left: 0; } + +.block-editor-block-list__descendant-arrow::before { + content: "→"; + display: inline-block; + padding: 0 4px; } + .rtl .block-editor-block-list__descendant-arrow::before { + content: "←"; } + +@media (min-width: 600px) { + .block-editor-block-list__block::before { + bottom: 0; + content: ""; + right: -28px; + position: absolute; + left: -28px; + top: 0; } + .block-editor-block-list__block .block-editor-block-list__block::before { + right: 0; + left: 0; } + .block-editor-block-list__block[data-align="full"]::before { + content: none; } } + +.block-editor-block-list__block .block-editor-warning { + z-index: 5; + position: relative; + margin-left: -14px; + margin-right: -14px; + margin-bottom: -14px; + transform: translateY(-14px); + padding: 10px 14px; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-warning { + padding: 10px 14px; } } + +.block-list-appender > .block-editor-inserter { + display: block; } + +.block-list-appender__toggle { + display: flex; + align-items: center; + justify-content: center; + padding: 16px; + outline: 1px dashed #8d96a0; + width: 100%; + color: #555d66; } + .block-list-appender__toggle:hover { + outline: 1px dashed #555d66; } + +/** + * Invalid block comparison + */ +.block-editor-block-compare { + overflow: auto; + height: auto; } + @media (min-width: 600px) { + .block-editor-block-compare { + max-height: 70%; } } + +.block-editor-block-compare__wrapper { + display: flex; + padding-bottom: 16px; } + .block-editor-block-compare__wrapper > div { + display: flex; + justify-content: space-between; + flex-direction: column; + width: 50%; + padding: 0 0 0 16px; + min-width: 200px; } + .block-editor-block-compare__wrapper > div button { + float: left; } + .block-editor-block-compare__wrapper .block-editor-block-compare__converted { + border-right: 1px solid #ddd; + padding-right: 15px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html { + font-family: Menlo, Consolas, monaco, monospace; + font-size: 12px; + color: #23282d; + border-bottom: 1px solid #ddd; + padding-bottom: 15px; + line-height: 1.7; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html span { + background-color: #e6ffed; + padding-top: 3px; + padding-bottom: 3px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added { + background-color: #acf2bd; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed { + background-color: #d94f4f; } + .block-editor-block-compare__wrapper .block-editor-block-compare__preview { + padding: 0; + padding-top: 14px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__preview p { + font-size: 12px; + margin-top: 0; } + .block-editor-block-compare__wrapper .block-editor-block-compare__action { + margin-top: 14px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__heading { + font-size: 1em; + font-weight: 400; + margin: 0.67em 0; } + +.block-editor-block-mover { + min-height: 56px; + opacity: 0; } + .block-editor-block-mover.is-visible { + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-mover.is-visible { + animation-duration: 1ms !important; } } + @media (min-width: 600px) { + .block-editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover { + margin-top: -8px; } } + +.block-editor-block-mover__control { + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + padding: 0; + width: 28px; + height: 24px; + color: rgba(14, 28, 46, 0.62); } + .block-editor-block-mover__control svg { + width: 28px; + height: 24px; + padding: 2px 5px; } + .is-dark-theme .block-editor-block-mover__control { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control { + color: rgba(14, 28, 46, 0.62); } + .block-editor-block-mover__control[aria-disabled="true"] { + cursor: default; + pointer-events: none; + color: rgba(130, 148, 147, 0.15); } + .is-dark-theme .block-editor-block-mover__control[aria-disabled="true"] { + color: rgba(255, 255, 255, 0.2); } + +.block-editor-block-mover__control-drag-handle { + cursor: move; + cursor: -webkit-grab; + cursor: grab; + fill: currentColor; + border-radius: 4px; } + .block-editor-block-mover__control-drag-handle, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { + box-shadow: none; + background: none; + color: rgba(10, 24, 41, 0.7); } + .is-dark-theme .block-editor-block-mover__control-drag-handle, .is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { + color: rgba(255, 255, 255, 0.75); } + .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle, .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { + color: rgba(10, 24, 41, 0.7); } + .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active { + cursor: -webkit-grabbing; + cursor: grabbing; } + +.block-editor-block-mover__description { + display: none; } + +@media (min-width: 600px) { + .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control { + background: #fff; + box-shadow: inset 0 0 0 1px #e2e4e7; } + .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:nth-child(-n+2), + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:nth-child(-n+2), + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:nth-child(-n+2) { + margin-bottom: -1px; } + .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:hover, .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:active, .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:focus, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:hover, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:active, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:focus, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:hover, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:active, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:focus { + z-index: 1; } } + +.block-editor-block-navigation__container { + padding: 7px; } + +.block-editor-block-navigation__label { + margin: 0 0 8px; + color: #6c7781; } + +.block-editor-block-navigation__list, +.block-editor-block-navigation__paragraph { + padding: 0; + margin: 0; } + +.block-editor-block-navigation__list .block-editor-block-navigation__list { + margin-top: 2px; + border-right: 2px solid #a2aab2; + margin-right: 1em; } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list { + margin-right: 1.5em; } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item { + position: relative; } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item::before { + position: absolute; + right: 0; + background: #a2aab2; + width: 0.5em; + height: 2px; + content: ""; + top: calc(50% - 1px); } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button { + margin-right: 0.8em; + width: calc(100% - 0.8em); } + .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child { + position: relative; } + .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child::after { + position: absolute; + content: ""; + background: #fff; + top: 19px; + bottom: 0; + right: -2px; + width: 2px; } + +.block-editor-block-navigation__item-button { + display: flex; + align-items: center; + width: 100%; + padding: 6px; + text-align: right; + color: #40464d; + border-radius: 4px; } + .block-editor-block-navigation__item-button .block-editor-block-icon { + margin-left: 6px; } + .block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + background: #f3f4f5; } + .block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + outline-offset: -2px; + outline: 1px dotted #555d66; } + .block-editor-block-navigation__item-button.is-selected, .block-editor-block-navigation__item-button.is-selected:focus { + color: #32373c; + background: #edeff0; } + +.block-editor-block-preview { + pointer-events: none; + padding: 10px; + overflow: hidden; + display: none; } + @media (min-width: 782px) { + .block-editor-block-preview { + display: block; } } + .block-editor-block-preview .block-editor-block-preview__content { + padding: 14px; + border: 1px solid #e2e4e7; + font-family: "Noto Serif", serif; } + .block-editor-block-preview .block-editor-block-preview__content > div { + transform: scale(0.9); + transform-origin: center top; + font-family: "Noto Serif", serif; } + .block-editor-block-preview .block-editor-block-preview__content > div section { + height: auto; } + .block-editor-block-preview .block-editor-block-preview__content > .reusable-block-indicator { + display: none; } + +.block-editor-block-preview__title { + margin-bottom: 10px; + color: #6c7781; } + +.block-editor-block-settings-menu__toggle .dashicon { + transform: rotate(-90deg); } + +.block-editor-block-settings-menu__popover::before, .block-editor-block-settings-menu__popover::after { + margin-right: 2px; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__content { + padding: 7px 0; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator { + margin-top: 8px; + margin-bottom: 8px; + margin-right: 0; + margin-left: 0; + border-top: 1px solid #e2e4e7; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator:last-child { + display: none; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__title { + display: block; + padding: 6px; + color: #6c7781; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control { + width: 100%; + justify-content: flex-start; + background: none; + outline: none; + border-radius: 0; + color: #555d66; + text-align: right; + cursor: pointer; + border: none; + box-shadow: none; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + background: #f3f4f5; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + outline-offset: -2px; + outline: 1px dotted #555d66; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control .dashicon { + margin-left: 5px; } + +.block-editor-block-styles { + display: flex; + flex-wrap: wrap; + justify-content: space-between; } + +.block-editor-block-styles__item { + width: calc(50% - 4px); + margin: 4px 0; + flex-shrink: 0; + cursor: pointer; + overflow: hidden; + border-radius: 4px; + padding: 4px; } + .block-editor-block-styles__item.is-active { + color: #191e23; + box-shadow: 0 0 0 2px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; + box-shadow: 0 0 0 2px #555d66; } + .block-editor-block-styles__item:focus { + color: #191e23; + box-shadow: 0 0 0 2px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; } + .block-editor-block-styles__item:hover { + background: #f3f4f5; + color: #191e23; } + +.block-editor-block-styles__item-preview { + outline: 1px solid transparent; + border: 1px solid rgba(25, 30, 35, 0.2); + overflow: hidden; + padding: 0; + text-align: initial; + border-radius: 4px; + display: flex; + height: 60px; + background: #fff; } + .block-editor-block-styles__item-preview .block-editor-block-preview__content { + transform: scale(0.7); + transform-origin: center center; + width: 100%; + margin: 0; + padding: 0; + overflow: visible; + min-height: auto; } + +.block-editor-block-styles__item-label { + text-align: center; + padding: 4px 2px; } + +.block-editor-block-switcher { + position: relative; + height: 36px; } + +.components-icon-button.block-editor-block-switcher__toggle, +.components-icon-button.block-editor-block-switcher__no-switcher-icon { + margin: 0; + display: block; + height: 36px; + padding: 3px; } + +.components-icon-button.block-editor-block-switcher__no-switcher-icon { + width: 48px; } + .components-icon-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + margin-left: auto; + margin-right: auto; } + +.components-button.block-editor-block-switcher__no-switcher-icon:disabled { + background: #f3f4f5; + border-radius: 0; + opacity: 0.84; } + .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { + color: #555d66 !important; } + +.components-icon-button.block-editor-block-switcher__toggle { + width: auto; } + .components-icon-button.block-editor-block-switcher__toggle:active, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-icon-button.block-editor-block-switcher__toggle:not([aria-disabled="true"]):focus { + outline: none; + box-shadow: none; + background: none; + border: none; } + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + width: 42px; + height: 30px; + position: relative; + margin: 0 auto; + padding: 3px; + display: flex; + align-items: center; + transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); } + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon::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 currentColor; + margin-right: 4px; + margin-left: 2px; } + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + margin-top: 6px; + border-radius: 4px; } + .components-icon-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-switcher__transform, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { + transform: translateY(-36px); } + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { + box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; + outline: 2px solid transparent; + outline-offset: -2px; } + +.components-popover:not(.is-mobile).block-editor-block-switcher__popover .components-popover__content { + min-width: 300px; + max-width: 340px; } + +@media (min-width: 782px) { + .block-editor-block-switcher__popover .components-popover__content { + position: relative; } + .block-editor-block-switcher__popover .components-popover__content .block-editor-block-preview { + border: 1px solid #e2e4e7; + box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + background: #fff; + position: absolute; + right: 100%; + top: -1px; + bottom: -1px; + width: 300px; + height: auto; } } + +.block-editor-block-switcher__popover .components-popover__content .components-panel__body { + border: 0; + position: relative; + z-index: 1; } + +.block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { + border-top: 1px solid #e2e4e7; } + +.block-editor-block-switcher__popover:not(.is-mobile) > .components-popover__content { + overflow-y: visible; } + +.block-editor-block-switcher__popover .block-editor-block-styles { + margin: 0 -3px; } + +.block-editor-block-switcher__popover .block-editor-block-types-list { + margin: 8px -8px -8px; } + +.block-editor-block-toolbar { + display: flex; + flex-grow: 1; + width: 100%; + overflow: auto; + position: relative; + transition: border-color 0.1s linear, box-shadow 0.1s linear; + border-right: 1px solid #b5bcc2; } + @media (min-width: 600px) { + .block-editor-block-toolbar { + overflow: inherit; + border-right: none; + box-shadow: 3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-toolbar { + box-shadow: 3px 0 0 0 #d7dade; } } + .block-editor-block-toolbar .components-toolbar { + border: 0; + border-top: 1px solid #b5bcc2; + border-bottom: 1px solid #b5bcc2; + border-left: 1px solid #b5bcc2; } + .has-fixed-toolbar .block-editor-block-toolbar { + box-shadow: none; + border-right: 1px solid #e2e4e7; } + .has-fixed-toolbar .block-editor-block-toolbar .components-toolbar { + border-color: #e2e4e7; } + +.block-editor-block-types-list { + list-style: none; + padding: 2px 0; + overflow: hidden; + display: flex; + flex-wrap: wrap; } + +.block-editor-color-palette-control__color-palette { + display: inline-block; + margin-top: 0.6rem; } + +.block-editor-contrast-checker > .components-notice { + margin: 0; } + +.block-editor-default-block-appender { + clear: both; } + .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { + font-family: "Noto Serif", serif; + font-size: 16px; + border: none; + background: none; + box-shadow: none; + display: block; + cursor: text; + width: 100%; + outline: 1px solid transparent; + transition: 0.2s outline; + resize: none; + padding: 0 14px 0 50px; + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { + color: rgba(255, 255, 255, 0.65); } + .block-editor-default-block-appender .block-editor-inserter__toggle:not([aria-expanded="true"]) { + opacity: 0; + transition: opacity 0.2s; } + .block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts { + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts { + animation-duration: 1ms !important; } } + .block-editor-default-block-appender:hover .block-editor-inserter__toggle { + opacity: 1; } + .block-editor-default-block-appender .components-drop-zone__content-icon { + display: none; } + +.block-editor-block-list__empty-block-inserter, +.block-editor-default-block-appender .block-editor-inserter, +.block-editor-inserter-with-shortcuts { + position: absolute; + top: 0; } + .block-editor-block-list__empty-block-inserter .components-icon-button, + .block-editor-default-block-appender .block-editor-inserter .components-icon-button, + .block-editor-inserter-with-shortcuts .components-icon-button { + width: 28px; + height: 28px; + margin-left: 12px; + padding: 0; } + .block-editor-block-list__empty-block-inserter .block-editor-block-icon, + .block-editor-default-block-appender .block-editor-inserter .block-editor-block-icon, + .block-editor-inserter-with-shortcuts .block-editor-block-icon { + margin: auto; } + .block-editor-block-list__empty-block-inserter .components-icon-button svg, + .block-editor-default-block-appender .block-editor-inserter .components-icon-button svg, + .block-editor-inserter-with-shortcuts .components-icon-button svg { + display: block; + margin: auto; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle, + .block-editor-inserter-with-shortcuts .block-editor-inserter__toggle { + margin-left: 0; } + +.block-editor-block-list__empty-block-inserter, +.block-editor-default-block-appender .block-editor-inserter { + left: 8px; } + @media (min-width: 600px) { + .block-editor-block-list__empty-block-inserter, + .block-editor-default-block-appender .block-editor-inserter { + right: -44px; + left: auto; } } + .block-editor-block-list__empty-block-inserter:disabled, + .block-editor-default-block-appender .block-editor-inserter:disabled { + display: none; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { + border-radius: 50%; + width: 28px; + height: 28px; + padding: 0; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { + color: rgba(10, 24, 41, 0.7); } + .is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .is-dark-theme + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { + color: rgba(255, 255, 255, 0.75); } + +.block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts, +.block-editor-default-block-appender .block-editor-inserter-with-shortcuts { + left: 14px; + display: none; + z-index: 5; } + @media (min-width: 600px) { + .block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts, + .block-editor-default-block-appender .block-editor-inserter-with-shortcuts { + left: 0; + display: flex; } } + +.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom { + z-index: 100001; } + +.block-editor-inner-blocks.has-overlay::after { + content: ""; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 120; } + +.block-editor-inserter-with-shortcuts { + display: flex; + align-items: center; } + .block-editor-inserter-with-shortcuts .components-icon-button { + border-radius: 4px; } + .block-editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon) { + height: 24px; + width: 24px; } + +.block-editor-inserter-with-shortcuts__block { + margin-left: 4px; + width: 36px; + height: 36px; + padding-top: 8px; + color: rgba(10, 24, 41, 0.7); } + .is-dark-theme .block-editor-inserter-with-shortcuts__block { + color: rgba(255, 255, 255, 0.75); } + +.block-editor-inserter { + display: inline-block; + background: none; + border: none; + padding: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + line-height: 1.4; } + @media (min-width: 782px) { + .block-editor-inserter { + position: relative; } } + +@media (min-width: 782px) { + .block-editor-inserter__popover:not(.is-mobile) > .components-popover__content { + overflow-y: visible; + height: 432px; } } + +.block-editor-inserter__toggle { + display: inline-flex; + align-items: center; + color: #555d66; + background: none; + cursor: pointer; + border: none; + outline: none; + transition: color 0.2s ease; } + +.block-editor-inserter__menu { + width: auto; + display: flex; + flex-direction: column; + height: 100%; } + @media (min-width: 782px) { + .block-editor-inserter__menu { + width: 400px; + position: relative; } + .block-editor-inserter__menu .block-editor-block-preview { + border: 1px solid #e2e4e7; + box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + background: #fff; + position: absolute; + right: 100%; + top: -1px; + bottom: -1px; + width: 300px; } } + +.block-editor-inserter__inline-elements { + margin-top: -1px; } + +.block-editor-inserter__menu.is-bottom::after { + border-bottom-color: #fff; } + +.components-popover input[type="search"].block-editor-inserter__search { + display: block; + margin: 16px; + padding: 11px 16px; + position: relative; + z-index: 1; + border-radius: 4px; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; } + @media (min-width: 600px) { + .components-popover input[type="search"].block-editor-inserter__search { + font-size: 13px; } } + .components-popover input[type="search"].block-editor-inserter__search:focus { + color: #191e23; + border-color: #00a0d2; + box-shadow: 0 0 0 1px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; } + +.block-editor-inserter__results { + flex-grow: 1; + overflow: auto; + position: relative; + z-index: 1; + padding: 0 16px 16px 16px; } + .block-editor-inserter__results:focus { + outline: 1px dotted #555d66; } + @media (min-width: 782px) { + .block-editor-inserter__results { + height: 394px; } } + .block-editor-inserter__results [role="presentation"] + .components-panel__body { + border-top: none; } + +.block-editor-inserter__popover .block-editor-block-types-list { + margin: 0 -8px; } + +.block-editor-inserter__reusable-blocks-panel { + position: relative; + text-align: left; } + +.block-editor-inserter__manage-reusable-blocks { + margin: 16px 16px 0 0; } + +.block-editor-inserter__no-results { + font-style: italic; + padding: 24px; + text-align: center; } + +.block-editor-inserter__child-blocks { + padding: 0 16px; } + +.block-editor-inserter__parent-block-header { + display: flex; + align-items: center; } + .block-editor-inserter__parent-block-header h2 { + font-size: 13px; } + .block-editor-inserter__parent-block-header .block-editor-block-icon { + margin-left: 8px; } + +.block-editor-block-types-list__list-item { + display: block; + width: 33.33%; + padding: 0 4px; + margin: 0 0 12px; } + +.block-editor-block-types-list__item { + display: flex; + flex-direction: column; + width: 100%; + font-size: 13px; + color: #32373c; + padding: 0; + align-items: stretch; + justify-content: center; + cursor: pointer; + background: transparent; + word-break: break-word; + border-radius: 4px; + border: 1px solid transparent; + transition: all 0.05s ease-in-out; + position: relative; } + .block-editor-block-types-list__item:disabled { + opacity: 0.6; + cursor: default; } + .block-editor-block-types-list__item:not(:disabled):hover::before { + content: ""; + display: block; + background: #f3f4f5; + color: #191e23; + position: absolute; + z-index: -1; + border-radius: 4px; + top: 0; + left: 0; + bottom: 0; + right: 0; } + .block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title { + color: currentColor; } + .block-editor-block-types-list__item:not(:disabled):active, .block-editor-block-types-list__item:not(:disabled).is-active, .block-editor-block-types-list__item:not(:disabled):focus { + position: relative; + outline: none; + color: #191e23; + box-shadow: 0 0 0 2px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; } + .block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title, .block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-title, .block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title { + color: currentColor; } + +.block-editor-block-types-list__item-icon { + padding: 12px 20px; + border-radius: 4px; + color: #555d66; + transition: all 0.05s ease-in-out; } + .block-editor-block-types-list__item-icon .block-editor-block-icon { + margin-right: auto; + margin-left: auto; } + .block-editor-block-types-list__item-icon svg { + transition: all 0.15s ease-out; } + +.block-editor-block-types-list__item-title { + padding: 4px 2px 8px; } + +.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon { + background: #fff; + margin-left: 3px; + margin-bottom: 6px; + padding: 9px 20px 9px; + position: relative; + top: -2px; + right: -2px; + box-shadow: 0 0 0 1px #e2e4e7; } + +.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon-stack { + display: block; + background: #fff; + box-shadow: 0 0 0 1px #e2e4e7; + width: 100%; + height: 100%; + position: absolute; + z-index: -1; + bottom: -6px; + left: -6px; + border-radius: 4px; } + +.block-editor-media-placeholder__url-input-container { + width: 100%; } + .block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button { + margin-bottom: 0; } + +.block-editor-media-placeholder__url-input-form { + display: flex; } + .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { + width: 100%; + flex-grow: 1; + border: none; + border-radius: 0; + margin: 2px; } + @media (min-width: 600px) { + .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { + width: 300px; } } + +.block-editor-media-placeholder__url-input-submit-button { + flex-shrink: 1; } + +.block-editor-media-placeholder__button { + margin-bottom: 0.5rem; } + .block-editor-media-placeholder__button .dashicon { + vertical-align: middle; + margin-bottom: 3px; } + .block-editor-media-placeholder__button:hover { + color: #23282d; } + +.components-form-file-upload .block-editor-media-placeholder__button { + margin-left: 4px; } + +.block-editor-multi-selection-inspector__card { + display: flex; + align-items: flex-start; + margin: -16px; + padding: 16px; } + +.block-editor-multi-selection-inspector__card-content { + flex-grow: 1; } + +.block-editor-multi-selection-inspector__card-title { + font-weight: 500; + margin-bottom: 5px; } + +.block-editor-multi-selection-inspector__card-description { + font-size: 13px; } + +.block-editor-multi-selection-inspector__card .block-editor-block-icon { + margin-right: -2px; + margin-left: 10px; + padding: 0 3px; + width: 36px; + height: 24px; } + +.block-editor-panel-color-settings .component-color-indicator { + vertical-align: text-bottom; } + +.block-editor-panel-color-settings__panel-title .component-color-indicator { + display: inline-block; } + +.block-editor-panel-color-settings.is-opened .block-editor-panel-color-settings__panel-title .component-color-indicator { + display: none; } + +.block-editor .block-editor-plain-text { + box-shadow: none; + font-family: inherit; + font-size: inherit; + color: inherit; + line-height: inherit; + border: none; + padding: 0; + margin: 0; + width: 100%; } + +.block-editor-format-toolbar { + display: flex; + flex-shrink: 0; } + +.block-editor-format-toolbar__selection-position { + position: absolute; + transform: translateX(50%); } + +.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { + margin: 7px; } + +.block-editor-rich-text { + position: relative; } + +.block-editor-rich-text__editable { + margin: 0; + position: relative; + white-space: pre-wrap; } + .block-editor-rich-text__editable > p:first-child { + margin-top: 0; } + .block-editor-rich-text__editable a { + color: #007fac; } + .block-editor-rich-text__editable code { + padding: 2px; + border-radius: 2px; + color: #23282d; + background: #f3f4f5; + font-family: Menlo, Consolas, monaco, monospace; + font-size: inherit; } + .is-multi-selected .block-editor-rich-text__editable code { + background: #67cffd; } + .block-editor-rich-text__editable:focus { + outline: none; } + .block-editor-rich-text__editable:focus *[data-rich-text-format-boundary] { + border-radius: 2px; + box-shadow: 0 0 0 1px #e8eaeb; + background: #e8eaeb; + color: #191e23; } + .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary] { + box-shadow: 0 0 0 1px #e5f5fa; + background: #e5f5fa; + color: #006589; } + .block-editor-rich-text__editable:focus code[data-rich-text-format-boundary] { + background: #e8eaeb; + box-shadow: 0 0 0 1px #e8eaeb; } + .block-editor-rich-text__editable[data-is-placeholder-visible="true"] { + position: absolute; + top: 0; + width: 100%; + margin-top: 0; + height: 100%; } + .block-editor-rich-text__editable[data-is-placeholder-visible="true"] > p { + margin-top: 0; } + .block-editor-rich-text__editable + .block-editor-rich-text__editable { + pointer-events: none; } + .block-editor-rich-text__editable + .block-editor-rich-text__editable, + .block-editor-rich-text__editable + .block-editor-rich-text__editable p { + opacity: 0.62; } + .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + figcaption.block-editor-rich-text__editable { + opacity: 0.8; } + +.block-editor-rich-text__inline-toolbar { + display: flex; + justify-content: center; + position: absolute; + top: -40px; + line-height: 0; + right: 0; + left: 0; + z-index: 1; } + .block-editor-rich-text__inline-toolbar ul.components-toolbar { + box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } + +.block-editor-skip-to-selected-block { + position: absolute; + top: -9999em; } + .block-editor-skip-to-selected-block:focus { + height: auto; + width: auto; + display: block; + font-size: 14px; + font-weight: 600; + padding: 15px 23px 14px; + background: #f1f1f1; + color: #11a0d2; + line-height: normal; + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + text-decoration: none; + outline: none; + z-index: 100000; } + body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{ + color: #c8b03c; } + body.admin-color-ocean .block-editor-skip-to-selected-block:focus{ + color: #a89d8a; } + body.admin-color-midnight .block-editor-skip-to-selected-block:focus{ + color: #77a6b9; } + body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{ + color: #c77430; } + body.admin-color-coffee .block-editor-skip-to-selected-block:focus{ + color: #9fa47b; } + body.admin-color-blue .block-editor-skip-to-selected-block:focus{ + color: #d9ab59; } + body.admin-color-light .block-editor-skip-to-selected-block:focus{ + color: #c75726; } + +.block-editor-block-list__block .block-editor-url-input, +.components-popover .block-editor-url-input, +.block-editor-url-input { + flex-grow: 1; + position: relative; + padding: 1px; } + .block-editor-block-list__block .block-editor-url-input input[type="text"], + .components-popover .block-editor-url-input input[type="text"], + .block-editor-url-input input[type="text"] { + width: 100%; + padding: 8px; + border: none; + border-radius: 0; + margin-right: 0; + margin-left: 0; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-url-input input[type="text"], + .components-popover .block-editor-url-input input[type="text"], + .block-editor-url-input input[type="text"] { + width: 300px; } } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-url-input input[type="text"], + .components-popover .block-editor-url-input input[type="text"], + .block-editor-url-input input[type="text"] { + font-size: 13px; } } + .block-editor-block-list__block .block-editor-url-input input[type="text"]::-ms-clear, + .components-popover .block-editor-url-input input[type="text"]::-ms-clear, + .block-editor-url-input input[type="text"]::-ms-clear { + display: none; } + .block-editor-block-list__block .block-editor-url-input .components-spinner, + .components-popover .block-editor-url-input .components-spinner, + .block-editor-url-input .components-spinner { + position: absolute; + left: 8px; + top: 9px; + margin: 0; } + +.block-editor-url-input__suggestions { + max-height: 200px; + transition: all 0.15s ease-in-out; + padding: 4px 0; + width: 302px; + overflow-y: auto; } + +.block-editor-url-input__suggestions, +.block-editor-url-input .components-spinner { + display: none; } + @media (min-width: 600px) { + .block-editor-url-input__suggestions, + .block-editor-url-input .components-spinner { + display: inherit; } } + +.block-editor-url-input__suggestion { + padding: 4px 8px; + color: #6c7781; + display: block; + font-size: 13px; + cursor: pointer; + background: #fff; + width: 100%; + border: none; + text-align: right; + border: none; + box-shadow: none; } + .block-editor-url-input__suggestion:hover { + background: #e2e4e7; } + .block-editor-url-input__suggestion:focus, .block-editor-url-input__suggestion.is-selected { + background: rgb(0, 113, 158); + color: #fff; + outline: none; } + body.admin-color-sunrise .block-editor-url-input__suggestion:focus, body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected{ + background: rgb(178, 114, 63); } + body.admin-color-ocean .block-editor-url-input__suggestion:focus, body.admin-color-ocean .block-editor-url-input__suggestion.is-selected{ + background: rgb(139, 157, 138); } + body.admin-color-midnight .block-editor-url-input__suggestion:focus, body.admin-color-midnight .block-editor-url-input__suggestion.is-selected{ + background: rgb(191, 65, 57); } + body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus, body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected{ + background: rgb(142, 155, 73); } + body.admin-color-coffee .block-editor-url-input__suggestion:focus, body.admin-color-coffee .block-editor-url-input__suggestion.is-selected{ + background: rgb(165, 141, 119); } + body.admin-color-blue .block-editor-url-input__suggestion:focus, body.admin-color-blue .block-editor-url-input__suggestion.is-selected{ + background: rgb(111, 153, 173); } + body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-color-light .block-editor-url-input__suggestion.is-selected{ + background: rgb(0, 113, 158); } + +.components-toolbar > .block-editor-url-input__button { + position: inherit; } + +.block-editor-url-input__button .block-editor-url-input__back { + margin-left: 4px; + overflow: visible; } + .block-editor-url-input__button .block-editor-url-input__back::after { + content: ""; + position: absolute; + display: block; + width: 1px; + height: 24px; + left: -1px; + background: #e2e4e7; } + +.block-editor-url-input__button-modal { + box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + border: 1px solid #e2e4e7; + background: #fff; } + +.block-editor-url-input__button-modal-line { + display: flex; + flex-direction: row; + flex-grow: 1; + flex-shrink: 1; + min-width: 0; + align-items: flex-start; } + .block-editor-url-input__button-modal-line .components-button { + flex-shrink: 0; + width: 36px; + height: 36px; } + +.block-editor-url-popover__row { + display: flex; } + +.block-editor-url-popover__row > :not(.block-editor-url-popover__settings-toggle) { + flex-grow: 1; } + +.block-editor-url-popover .components-icon-button { + padding: 3px; } + .block-editor-url-popover .components-icon-button > svg { + padding: 5px; + border-radius: 4px; + height: 30px; + width: 30px; } + .block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { + box-shadow: none; } + .block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover > svg { + color: #555d66; + box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } + .block-editor-url-popover .components-icon-button:not(:disabled):focus { + box-shadow: none; } + .block-editor-url-popover .components-icon-button:not(:disabled):focus > svg { + box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; + outline: 2px solid transparent; + outline-offset: -2px; } + +.block-editor-url-popover__settings-toggle { + flex-shrink: 0; + border-radius: 0; + border-right: 1px solid #e2e4e7; + margin-right: 1px; } + .block-editor-url-popover__settings-toggle[aria-expanded="true"] .dashicon { + transform: rotate(-180deg); } + +.block-editor-url-popover__settings { + padding: 16px; + border-top: 1px solid #e2e4e7; } + .block-editor-url-popover__settings .components-base-control:last-child .components-base-control__field { + margin-bottom: 0; } + +.block-editor-warning { + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: nowrap; + background-color: #fff; + border: 1px solid #e2e4e7; + text-align: right; + padding: 20px; } + .has-warning.is-multi-selected .block-editor-warning { + background-color: transparent; } + .is-selected .block-editor-warning { + border-color: rgba(66, 88, 99, 0.4); + border-right-color: transparent; } + .is-dark-theme .is-selected .block-editor-warning { + border-color: rgba(255, 255, 255, 0.45); } + .block-editor-warning .block-editor-warning__message { + line-height: 1.4; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; } + .block-editor-warning .block-editor-warning__contents { + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: wrap; + align-items: center; + width: 100%; } + .block-editor-warning .block-editor-warning__actions { + display: flex; } + .block-editor-warning .block-editor-warning__action { + margin: 0 0 0 6px; } + +.block-editor-warning__secondary { + margin: 3px -4px 0 0; } + .block-editor-warning__secondary .components-icon-button { + width: auto; + padding: 8px 2px; } + @media (min-width: 600px) { + .block-editor-warning__secondary { + margin-right: 4px; } + .block-editor-warning__secondary .components-icon-button { + padding: 8px 4px; } } + .block-editor-warning__secondary .components-button svg { + transform: rotate(-90deg); } + +.block-editor-writing-flow { + height: 100%; + display: flex; + flex-direction: column; } + +.block-editor-writing-flow__click-redirect { + flex-basis: 100%; + cursor: text; } diff --git a/wp-includes/css/dist/block-editor/style-rtl.min.css b/wp-includes/css/dist/block-editor/style-rtl.min.css new file mode 100644 index 0000000000..5eaa3fedd7 --- /dev/null +++ b/wp-includes/css/dist/block-editor/style-rtl.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.block-editor-block-drop-zone{border:none;border-radius:0}.block-editor-block-drop-zone .components-drop-zone__content,.block-editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.block-editor-block-drop-zone.is-close-to-bottom{background:none;border-bottom:3px solid #0085ba}body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.block-editor-block-drop-zone.is-appender.is-close-to-bottom,.block-editor-block-drop-zone.is-appender.is-close-to-top,.block-editor-block-drop-zone.is-close-to-top{background:none;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.block-editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-inspector__card-content{flex-grow:1}.block-editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-block-inspector__card-description{font-size:13px}.block-editor-block-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-list__layout .components-draggable__clone .block-editor-block-contextual-toolbar{display:none!important}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-list__block-edit:before{border:none}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>.block-editor-block-list__block-edit>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>.block-editor-block-list__block-edit>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-contextual-toolbar,.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-mover{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.block-editor-block-list__layout{padding-right:46px;padding-left:46px}}.block-editor-block-list__block .block-editor-block-list__layout{padding-right:0;padding-left:0;margin-right:-14px;margin-left:-14px}.block-editor-block-list__layout .block-editor-default-block-appender>.block-editor-default-block-appender__content,.block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit,.block-editor-block-list__layout>.block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;padding-right:14px;padding-left:14px;overflow-wrap:break-word}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block{padding-right:43px;padding-left:43px}}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px;width:calc(100% - 40px)}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit{position:relative}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit:before{z-index:0;content:"";position:absolute;border:1px solid transparent;border-right:none;box-shadow:none;transition:border-color .1s linear,box-shadow .1s linear;pointer-events:none;outline:1px solid transparent;left:-14px;right:-14px;top:-14px;bottom:-14px}.block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{border-color:rgba(66,88,99,.4);box-shadow:inset -3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.45);box-shadow:inset -3px 0 0 0 #d7dade}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{box-shadow:3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{box-shadow:3px 0 0 0 #d7dade}}.block-editor-block-list__layout .block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before{box-shadow:3px 0 0 0 #e2e4e7}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before{box-shadow:3px 0 0 0 #40464d}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block ::selection{background-color:#b3e7fe}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit:before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit:before{mix-blend-mode:soft-light}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit:before{border-color:rgba(145,151,162,.25);border-right:1px solid rgba(145,151,162,.25)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.35)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:before{border-color:rgba(66,88,99,.4) transparent rgba(66,88,99,.4) rgba(66,88,99,.4)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.45)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit:after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;left:-14px;right:-14px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected .block-editor-block-list__block-edit:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit:after{bottom:22px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit:after{bottom:-14px}}.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__side-inserter{opacity:0;animation:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter{animation-duration:1ms!important}}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-block-list__block-edit:before{border:1px dashed rgba(145,151,162,.25)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.35)}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected>.block-editor-block-list__block-edit:before{border-color:rgba(66,88,99,.4) transparent rgba(66,88,99,.4) rgba(66,88,99,.4)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected>.block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.45) transparent hsla(0,0%,100%,.45) hsla(0,0%,100%,.45)}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left],.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]{z-index:81;width:100%;height:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-list__block-edit,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-list__block-edit{margin-top:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-list__block-edit:before,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-list__block-edit:before{content:none}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{margin-bottom:1px;width:auto;border-bottom:1px solid #b5bcc2;bottom:auto}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar{right:0;left:auto}.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{right:auto;left:0}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{top:14px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-list__block-edit{float:left;margin-right:2em}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-toolbar{left:14px;right:auto}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]>.block-editor-block-list__block-edit{float:right;margin-left:2em}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-toolbar{right:14px;left:auto}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]{clear:both;z-index:20}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover:before,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover:before{content:none}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover .block-editor-block-mover__control,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover .block-editor-block-mover__control{float:right}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__breadcrumb{left:-1px}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{display:none}@media (min-width:1280px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{display:block}}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full] .block-editor-block-toolbar,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide] .block-editor-block-toolbar{display:inline-flex}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{right:-13px}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{right:0}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin-right:-45px;margin-left:-45px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-right:-14px;margin-left:-14px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-right:-44px;margin-left:-44px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit figure{width:100%}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit:before{right:0;left:0;border-right-width:0;border-left-width:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover{right:1px}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-inserter-with-shortcuts{display:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover,.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px;top:-15px}@media (min-width:600px){.block-editor-block-list__block.is-hovered .block-editor-block-mover,.block-editor-block-list__block.is-multi-selected .block-editor-block-mover,.block-editor-block-list__block.is-selected .block-editor-block-mover{z-index:80}}.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover,.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{padding-left:2px;right:-45px;display:none}@media (min-width:600px){.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover,.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{display:block}}.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover{right:-30px}.block-editor-block-list__block[data-align=left].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none}@media (min-width:600px){.block-editor-block-list__block[data-align=left].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover{display:block;opacity:1;animation:none;width:45px;height:auto;padding-bottom:14px;margin-top:0}}.block-editor-block-list__block[data-align=left].is-dragging>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=left].is-hovered>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-dragging>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-hovered>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-left:-14px;margin-right:-14px;border-top:1px solid #b5bcc2;height:37px;background-color:#fff;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar{display:none;box-shadow:none}}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter{position:relative;right:auto;top:auto;margin:0}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control,.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control .dashicon,.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle .dashicon{margin:auto}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control,.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-inserter{float:right}.block-editor-block-list__block[data-align=full] .block-editor-block-list__block-mobile-toolbar{margin-right:0;margin-left:0}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;right:0;left:0;background:#0085ba}body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .block-editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .block-editor-block-list__insertion-point-indicator{background:#0085ba}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;right:0;left:0;justify-content:center;opacity:0;transition:opacity .1s linear}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.block-editor-block-list__insertion-point-inserter.is-visible,.block-editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:0;left:0}@media (min-width:600px){.block-editor-block-list__block>.block-editor-block-list__insertion-point{right:-1px;left:-1px}}.block-editor-block-list__block[data-align=full]>.block-editor-block-list__insertion-point{right:0;left:0}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-list__block .block-editor-block-contextual-toolbar{z-index:21;white-space:nowrap;text-align:right;pointer-events:none;position:absolute;bottom:22px;right:-14px;left:-14px;border-top:1px solid #b5bcc2}.block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-contextual-toolbar{border-top:none}.block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #b5bcc2;border-bottom:1px solid #b5bcc2}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px;box-shadow:3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.is-dark-theme .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{box-shadow:3px 0 0 0 #d7dade}@media (min-width:600px){.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{box-shadow:none}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar .editor-block-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar .editor-block-toolbar{border-right:none}.block-editor-block-list__block .block-editor-block-contextual-toolbar{margin-right:0;margin-left:0}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-contextual-toolbar{margin-right:-15px;margin-left:-15px}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar{margin-right:15px}.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{margin-left:15px}.block-editor-block-list__block .block-editor-block-contextual-toolbar>*{pointer-events:auto}.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.block-editor-block-contextual-toolbar{margin-right:-28px}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-contextual-toolbar{bottom:auto;right:auto;left:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-list__block .block-editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar{float:left}.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{float:right}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{transform:translateY(-15px)}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:100%}@media (min-width:600px){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:auto;border-left:none;position:absolute;right:1px;top:1px}}.block-editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;right:-17px;top:-31px}.block-editor-block-list__breadcrumb .components-toolbar{border:none;line-height:1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:11px;padding:4px;background:#e2e4e7;color:#191e23}.is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar{background:#40464d;color:#fff}.block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar{animation-duration:1ms!important}}.editor-inner-blocks .block-editor-block-list__breadcrumb{z-index:22}[data-align=left] .block-editor-block-list__breadcrumb{right:0}[data-align=right] .block-editor-block-list__breadcrumb{right:auto;left:0}.block-editor-block-list__descendant-arrow:before{content:"→";display:inline-block;padding:0 4px}.rtl .block-editor-block-list__descendant-arrow:before{content:"←"}@media (min-width:600px){.block-editor-block-list__block:before{bottom:0;content:"";right:-28px;position:absolute;left:-28px;top:0}.block-editor-block-list__block .block-editor-block-list__block:before{right:0;left:0}.block-editor-block-list__block[data-align=full]:before{content:none}}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative;margin-left:-14px;margin-right:-14px;margin-bottom:-14px;transform:translateY(-14px);padding:10px 14px}@media (min-width:600px){.block-editor-block-list__block .block-editor-warning{padding:10px 14px}}.block-list-appender>.block-editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mover{min-height:56px;opacity:0}.block-editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-mover.is-visible{animation-duration:1ms!important}}@media (min-width:600px){.block-editor-block-list__block:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover{margin-top:-8px}}.block-editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.block-editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .block-editor-block-mover__control{color:hsla(0,0%,100%,.65)}.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control{color:rgba(14,28,46,.62)}.block-editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .block-editor-block-mover__control[aria-disabled=true]{color:hsla(0,0%,100%,.2)}.block-editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.block-editor-block-mover__control-drag-handle,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:none;color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-block-mover__control-drag-handle,.is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:hsla(0,0%,100%,.75)}.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle,.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(10,24,41,.7)}.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.block-editor-block-mover__description{display:none}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:nth-child(-n+2),.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:nth-child(-n+2),.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:active,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:focus,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:hover,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:active,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:focus,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:hover,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:active,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:focus,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:hover{z-index:1}}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.block-editor-block-navigation__list,.block-editor-block-navigation__paragraph{padding:0;margin:0}.block-editor-block-navigation__list .block-editor-block-navigation__list{margin-top:2px;border-right:2px solid #a2aab2;margin-right:1em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list{margin-right:1.5em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item:before{position:absolute;right:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button{margin-right:.8em;width:calc(100% - .8em)}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child:after{position:absolute;content:"";background:#fff;top:19px;bottom:0;right:-2px;width:2px}.block-editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:right;color:#40464d;border-radius:4px}.block-editor-block-navigation__item-button .block-editor-block-icon{margin-left:6px}.block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-navigation__item-button.is-selected,.block-editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.block-editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.block-editor-block-preview{display:block}}.block-editor-block-preview .block-editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.block-editor-block-preview .block-editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.block-editor-block-preview .block-editor-block-preview__content>div section{height:auto}.block-editor-block-preview .block-editor-block-preview__content>.reusable-block-indicator{display:none}.block-editor-block-preview__title{margin-bottom:10px;color:#6c7781}.block-editor-block-settings-menu__toggle .dashicon{transform:rotate(-90deg)}.block-editor-block-settings-menu__popover:after,.block-editor-block-settings-menu__popover:before{margin-right:2px}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__content{padding:7px 0}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator{margin:8px 0;border-top:1px solid #e2e4e7}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator:last-child{display:none}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control{width:100%;justify-content:flex-start;background:none;outline:none;border-radius:0;color:#555d66;text-align:right;cursor:pointer;border:none;box-shadow:none}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control .dashicon{margin-left:5px}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.block-editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.block-editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-styles__item:hover{background:#f3f4f5;color:#191e23}.block-editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.block-editor-block-styles__item-preview .block-editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher{position:relative;height:36px}.components-icon-button.block-editor-block-switcher__no-switcher-icon,.components-icon-button.block-editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{background:#f3f4f5;border-radius:0;opacity:.84}.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#555d66!important}.components-icon-button.block-editor-block-switcher__toggle{width:auto}.components-icon-button.block-editor-block-switcher__toggle:active,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.block-editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:none;box-shadow:none;background:none;border:none}.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165,.84,.44,1)}.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon: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}.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform,.components-icon-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).block-editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.block-editor-block-switcher__popover .components-popover__content{position:relative}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:8px -8px -8px}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear;border-right:1px solid #b5bcc2}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit;border-right:none;box-shadow:3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-toolbar{box-shadow:3px 0 0 0 #d7dade}}.block-editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #b5bcc2;border-bottom:1px solid #b5bcc2;border-left:1px solid #b5bcc2}.has-fixed-toolbar .block-editor-block-toolbar{box-shadow:none;border-right:1px solid #e2e4e7}.has-fixed-toolbar .block-editor-block-toolbar .components-toolbar{border-color:#e2e4e7}.block-editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;padding:0 14px 0 50px;color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .block-editor-inserter__toggle:not([aria-expanded=true]){opacity:0;transition:opacity .2s}.block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts{animation-duration:1ms!important}}.block-editor-default-block-appender:hover .block-editor-inserter__toggle{opacity:1}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter,.block-editor-inserter-with-shortcuts{position:absolute;top:0}.block-editor-block-list__empty-block-inserter .components-icon-button,.block-editor-default-block-appender .block-editor-inserter .components-icon-button,.block-editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-left:12px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-block-icon,.block-editor-default-block-appender .block-editor-inserter .block-editor-block-icon,.block-editor-inserter-with-shortcuts .block-editor-block-icon{margin:auto}.block-editor-block-list__empty-block-inserter .components-icon-button svg,.block-editor-default-block-appender .block-editor-inserter .components-icon-button svg,.block-editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle,.block-editor-inserter-with-shortcuts .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:-44px;left:auto}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{border-radius:50%;width:28px;height:28px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.is-dark-theme .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:hsla(0,0%,100%,.75)}.block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts,.block-editor-default-block-appender .block-editor-inserter-with-shortcuts{left:14px;display:none;z-index:5}@media (min-width:600px){.block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts,.block-editor-default-block-appender .block-editor-inserter-with-shortcuts{left:0;display:flex}}.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom{z-index:100001}.block-editor-inner-blocks.has-overlay:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;z-index:120}.block-editor-inserter-with-shortcuts{display:flex;align-items:center}.block-editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.block-editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.block-editor-inserter-with-shortcuts__block{margin-left:4px;width:36px;height:36px;padding-top:8px;color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-inserter-with-shortcuts__block{color:hsla(0,0%,100%,.75)}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}@media (min-width:782px){.block-editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.block-editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:none;cursor:pointer;border:none;outline:none;transition:color .2s ease}.block-editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.block-editor-inserter__menu{width:400px;position:relative}.block-editor-inserter__menu .block-editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover input[type=search].block-editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].block-editor-inserter__search{font-size:13px}}.components-popover input[type=search].block-editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px}.block-editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.block-editor-inserter__results{height:394px}}.block-editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{margin:16px 16px 0 0}.block-editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative}.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.block-editor-block-types-list__item:not(:disabled):hover:before{content:"";display:block;background:#f3f4f5;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;left:0;bottom:0;right:0}.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:currentColor}.block-editor-block-types-list__item:not(:disabled).is-active,.block-editor-block-types-list__item:not(:disabled):active,.block-editor-block-types-list__item:not(:disabled):focus{position:relative;outline:none;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-title,.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title,.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title{color:currentColor}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all .05s ease-in-out}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}.block-editor-block-types-list__item-title{padding:4px 2px 8px}.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon{background:#fff;margin-left:3px;margin-bottom:6px;padding:9px 20px;position:relative;top:-2px;right:-2px;box-shadow:0 0 0 1px #e2e4e7}.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;left:-6px;border-radius:4px}.block-editor-media-placeholder__url-input-container{width:100%}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.block-editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .block-editor-media-placeholder__button{margin-left:4px}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-settings.is-opened .block-editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-format-toolbar{display:flex;flex-shrink:0}.block-editor-format-toolbar__selection-position{position:absolute;transform:translateX(50%)}.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator:after{margin:7px}.block-editor-rich-text{position:relative}.block-editor-rich-text__editable{margin:0;position:relative;white-space:pre-wrap}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable a{color:#007fac}.block-editor-rich-text__editable code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .block-editor-rich-text__editable code{background:#67cffd}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.block-editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.block-editor-rich-text__editable:focus code[data-rich-text-format-boundary]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.block-editor-rich-text__editable[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.block-editor-rich-text__editable[data-is-placeholder-visible=true]>p{margin-top:0}.block-editor-rich-text__editable+.block-editor-rich-text__editable{pointer-events:none}.block-editor-rich-text__editable+.block-editor-rich-text__editable,.block-editor-rich-text__editable+.block-editor-rich-text__editable p{opacity:.62}.block-editor-rich-text__editable[data-is-placeholder-visible=true]+figcaption.block-editor-rich-text__editable{opacity:.8}.block-editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;right:0;left:0;z-index:1}.block-editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .block-editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .block-editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .block-editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .block-editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .block-editor-skip-to-selected-block:focus{color:#c75726}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px;font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;top:9px;margin:0}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;text-align:right;border:none;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#e2e4e7}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:none}body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected,body.admin-color-sunrise .block-editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .block-editor-url-input__suggestion.is-selected,body.admin-color-ocean .block-editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .block-editor-url-input__suggestion.is-selected,body.admin-color-midnight .block-editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .block-editor-url-input__suggestion.is-selected,body.admin-color-coffee .block-editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .block-editor-url-input__suggestion.is-selected,body.admin-color-blue .block-editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .block-editor-url-input__suggestion.is-selected,body.admin-color-light .block-editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#e2e4e7}.block-editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-icon-button{padding:3px}.block-editor-url-popover .components-icon-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.block-editor-url-popover .components-icon-button:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-icon-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #e2e4e7;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__settings{padding:16px;border-top:1px solid #e2e4e7}.block-editor-url-popover__settings .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:right;padding:20px}.has-warning.is-multi-selected .block-editor-warning{background-color:transparent}.is-selected .block-editor-warning{border-color:rgba(66,88,99,.4) transparent rgba(66,88,99,.4) rgba(66,88,99,.4)}.is-dark-theme .is-selected .block-editor-warning{border-color:hsla(0,0%,100%,.45)}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 0 0 6px}.block-editor-warning__secondary{margin:3px -4px 0 0}.block-editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.block-editor-warning__secondary{margin-right:4px}.block-editor-warning__secondary .components-icon-button{padding:8px 4px}}.block-editor-warning__secondary .components-button svg{transform:rotate(-90deg)}.block-editor-writing-flow{height:100%;display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file diff --git a/wp-includes/css/dist/block-editor/style.css b/wp-includes/css/dist/block-editor/style.css new file mode 100644 index 0000000000..780d6b9998 --- /dev/null +++ b/wp-includes/css/dist/block-editor/style.css @@ -0,0 +1,2037 @@ +@charset "UTF-8"; +/** + * Colors + */ +/** + * Breakpoints & Media Queries + */ +/** + * Often re-used variables + */ +/** + * Breakpoint mixins + */ +/** + * Long content fade mixin + * + * Creates a fading overlay to signify that the content is longer + * than the space allows. + */ +/** + * Button states and focus styles + */ +/** + * Applies editor left position to the selector passed as argument + */ +/** + * Applies editor right position to the selector passed as argument + */ +/** + * Styles that are reused verbatim in a few places + */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ +.block-editor-block-drop-zone { + border: none; + border-radius: 0; } + .block-editor-block-drop-zone .components-drop-zone__content, + .block-editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content { + display: none; } + .block-editor-block-drop-zone.is-close-to-bottom { + background: none; + border-bottom: 3px solid #0085ba; } + body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #d1864a; } + body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #a3b9a2; } + body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #e14d43; } + body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #a7b656; } + body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #c2a68c; } + body.admin-color-blue .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #82b4cb; } + body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom{ + border-bottom: 3px solid #0085ba; } + .block-editor-block-drop-zone.is-close-to-top, .block-editor-block-drop-zone.is-appender.is-close-to-top, .block-editor-block-drop-zone.is-appender.is-close-to-bottom { + background: none; + border-top: 3px solid #0085ba; + border-bottom: none; } + body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-top, body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #d1864a; } + body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-top, body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #a3b9a2; } + body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-top, body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #e14d43; } + body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-top, body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #a7b656; } + body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-top, body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #c2a68c; } + body.admin-color-blue .block-editor-block-drop-zone.is-close-to-top, body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #82b4cb; } + body.admin-color-light .block-editor-block-drop-zone.is-close-to-top, body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-bottom{ + border-top: 3px solid #0085ba; } + +.block-editor-block-icon { + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + margin: 0; + border-radius: 4px; } + .block-editor-block-icon.has-colors svg { + fill: currentColor; } + .block-editor-block-icon svg { + min-width: 20px; + min-height: 20px; + max-width: 24px; + max-height: 24px; } + +.block-editor-block-inspector__no-blocks { + display: block; + font-size: 13px; + background: #fff; + padding: 32px 16px; + text-align: center; } + +.block-editor-block-inspector__card { + display: flex; + align-items: flex-start; + margin: -16px; + padding: 16px; } + +.block-editor-block-inspector__card-icon { + border: 1px solid #ccd0d4; + padding: 7px; + margin-right: 10px; + height: 36px; + width: 36px; } + +.block-editor-block-inspector__card-content { + flex-grow: 1; } + +.block-editor-block-inspector__card-title { + font-weight: 500; + margin-bottom: 5px; } + +.block-editor-block-inspector__card-description { + font-size: 13px; } + +.block-editor-block-inspector__card .block-editor-block-icon { + margin-left: -2px; + margin-right: 10px; + padding: 0 3px; + width: 36px; + height: 24px; } + +.block-editor-block-list__layout .components-draggable__clone .block-editor-block-contextual-toolbar { + display: none !important; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-list__block-edit::before { + border: none; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * { + background: #f8f9f9; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging > .block-editor-block-list__block-edit > * > * { + visibility: hidden; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-mover, +.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-contextual-toolbar { + display: none; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit .reusable-block-edit-panel * { + z-index: 1; } + +/** + * General layout + */ +@media (min-width: 600px) { + .block-editor-block-list__layout { + padding-left: 46px; + padding-right: 46px; } } + +.block-editor-block-list__block .block-editor-block-list__layout { + padding-left: 0; + padding-right: 0; + margin-left: -14px; + margin-right: -14px; } + +.block-editor-block-list__layout .block-editor-default-block-appender > .block-editor-default-block-appender__content, +.block-editor-block-list__layout > .block-editor-block-list__block > .block-editor-block-list__block-edit, +.block-editor-block-list__layout > .block-editor-block-list__layout > .block-editor-block-list__block > .block-editor-block-list__block-edit { + margin-top: 32px; + margin-bottom: 32px; } + +.block-editor-block-list__layout .block-editor-block-list__block { + position: relative; + padding-left: 14px; + padding-right: 14px; + overflow-wrap: break-word; + /** + * Notices + */ + /** + * Block border layout + */ } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block { + padding-left: 43px; + padding-right: 43px; } } + .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui { + margin: -10px 20px 12px 20px; + width: calc(100% - 40px); } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { + margin: 0 0 12px 0; + width: 100%; } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice { + margin-left: 0; + margin-right: 0; } + .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { + font-size: 13px; } + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit { + position: relative; } + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit::before { + z-index: 0; + content: ""; + position: absolute; + border: 1px solid transparent; + border-left: none; + box-shadow: none; + transition: border-color 0.1s linear, box-shadow 0.1s linear; + pointer-events: none; + outline: 1px solid transparent; + right: -14px; + left: -14px; + top: -14px; + bottom: -14px; } + .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(66, 88, 99, 0.4); + box-shadow: inset 3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.45); + box-shadow: inset 3px 0 0 0 #d7dade; } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + box-shadow: -3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected > .block-editor-block-list__block-edit::before { + box-shadow: -3px 0 0 0 #d7dade; } } + .block-editor-block-list__layout .block-editor-block-list__block.is-hovered > .block-editor-block-list__block-edit::before { + box-shadow: -3px 0 0 0 #e2e4e7; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-hovered > .block-editor-block-list__block-edit::before { + box-shadow: -3px 0 0 0 #40464d; } + .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) { + opacity: 0.5; + transition: opacity 0.1s linear; } + .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block, .block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { + opacity: 1; } + +/** + * Cross-block selection + */ + +.block-editor-block-list__layout .block-editor-block-list__block ::selection { + background-color: #b3e7fe; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected *::selection { + background-color: transparent; } + +.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit::before { + background: #b3e7fe; + mix-blend-mode: multiply; + top: -14px; + bottom: -14px; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit::before { + mix-blend-mode: soft-light; } + +/** + * Block styles and alignments + */ +.block-editor-block-list__layout .block-editor-block-list__block.has-warning { + min-height: 36px; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > * { + pointer-events: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit .block-editor-warning { + pointer-events: all; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit::before { + border-color: rgba(145, 151, 162, 0.25); + border-left: 1px solid rgba(145, 151, 162, 0.25); } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.35); } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::before { + border-color: rgba(66, 88, 99, 0.4); + border-left-color: transparent; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.45); } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit::after { + content: ""; + position: absolute; + background-color: rgba(248, 249, 249, 0.4); + top: -14px; + bottom: -14px; + right: -14px; + left: -14px; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected .block-editor-block-list__block-edit::after { + background-color: transparent; } + +.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit::after { + bottom: 22px; } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit::after { + bottom: -14px; } } + +.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__empty-block-inserter, +.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__side-inserter { + opacity: 0; + animation: none; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter, +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter { + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter, + .block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter { + animation-duration: 1ms !important; } } + +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit::before { + border: 1px dashed rgba(145, 151, 162, 0.25); } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable > .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.35); } + +.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(66, 88, 99, 0.4); + border-left-color: transparent; } + .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected > .block-editor-block-list__block-edit::before { + border-color: rgba(255, 255, 255, 0.45); + border-left-color: transparent; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] { + z-index: 81; + width: 100%; + height: 0; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit { + margin-top: 0; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-list__block-edit::before { + content: none; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + margin-bottom: 1px; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + width: auto; + border-bottom: 1px solid #b5bcc2; + bottom: auto; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + left: 0; + right: auto; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + left: auto; + right: 0; } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar, + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + top: 14px; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-list__block-edit { + /*!rtl:begin:ignore*/ + float: left; + margin-right: 2em; + /*!rtl:end:ignore*/ } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="left"] .block-editor-block-toolbar { + /*!rtl:begin:ignore*/ + left: 14px; + right: auto; + /*!rtl:end:ignore*/ } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] > .block-editor-block-list__block-edit { + /*!rtl:begin:ignore*/ + float: right; + margin-left: 2em; + /*!rtl:end:ignore*/ } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="right"] .block-editor-block-toolbar { + /*!rtl:begin:ignore*/ + right: 14px; + left: auto; + /*!rtl:end:ignore*/ } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"], .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] { + clear: both; + z-index: 20; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + top: -44px; + bottom: auto; + min-height: 0; + height: auto; + width: auto; + z-index: inherit; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover::before, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover::before { + content: none; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover .block-editor-block-mover__control, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover .block-editor-block-mover__control { + float: left; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__breadcrumb, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-list__breadcrumb { + right: -1px; } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + display: none; } + @media (min-width: 1280px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + display: block; } } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] .block-editor-block-toolbar, .block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] .block-editor-block-toolbar { + display: inline-flex; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="wide"] > .block-editor-block-mover { + left: -13px; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-list__breadcrumb { + left: 0; } + +@media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] { + margin-left: -45px; + margin-right: -45px; } } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit { + margin-left: -14px; + margin-right: -14px; } + @media (min-width: 600px) { + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit { + margin-left: -44px; + margin-right: -44px; } } + .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit figure { + width: 100%; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit::before { + left: 0; + right: 0; + border-left-width: 0; + border-right-width: 0; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] > .block-editor-block-mover { + left: 1px; } + +.block-editor-block-list__layout .block-editor-block-list__block[data-clear="true"] { + float: none; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-drop-zone { + top: -4px; + bottom: -3px; + margin: 0 14px; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-inserter-with-shortcuts { + display: none; } + +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-block-list__empty-block-inserter, +.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter { + left: auto; + right: 8px; } + +/** + * Left and right side UI; Unified toolbar on Mobile + */ +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, +.block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + position: absolute; + width: 30px; + height: 100%; + max-height: 112px; } + +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, +.block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + top: -15px; } + +@media (min-width: 600px) { + .block-editor-block-list__block.is-multi-selected .block-editor-block-mover, .block-editor-block-list__block.is-selected .block-editor-block-mover, .block-editor-block-list__block.is-hovered .block-editor-block-mover { + z-index: 80; } } + +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, +.block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + padding-right: 2px; + left: -45px; + display: none; } + @media (min-width: 600px) { + .block-editor-block-list__block.is-multi-selected > .block-editor-block-mover, + .block-editor-block-list__block > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: block; } } + +.block-editor-block-list__block.is-multi-selected > .block-editor-block-mover { + left: -30px; } + +.block-editor-block-list__block[data-align="left"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block[data-align="right"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: none; } + @media (min-width: 600px) { + .block-editor-block-list__block[data-align="left"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block[data-align="right"].is-selected > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: block; + opacity: 1; + animation: none; + width: 45px; + height: auto; + padding-bottom: 14px; + margin-top: 0; } } + +.block-editor-block-list__block[data-align="left"].is-hovered > .block-editor-block-list__block-edit > .block-editor-block-mover, +.block-editor-block-list__block[data-align="left"].is-dragging > .block-editor-block-list__block-edit > .block-editor-block-mover, .block-editor-block-list__block[data-align="right"].is-hovered > .block-editor-block-list__block-edit > .block-editor-block-mover, +.block-editor-block-list__block[data-align="right"].is-dragging > .block-editor-block-list__block-edit > .block-editor-block-mover { + display: none; } + +/** + * Mobile unified toolbar. + */ +.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { + display: flex; + flex-direction: row; + transform: translateY(15px); + margin-top: 37px; + margin-right: -14px; + margin-left: -14px; + border-top: 1px solid #b5bcc2; + height: 37px; + background-color: #fff; + box-shadow: 0 5px 10px rgba(25, 30, 35, 0.05), 0 2px 2px rgba(25, 30, 35, 0.05); } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { + display: none; } } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar { + box-shadow: none; } } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter { + position: relative; + left: auto; + top: auto; + margin: 0; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle, + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control { + width: 36px; + height: 36px; + border-radius: 4px; + padding: 3px; + margin: 0; + justify-content: center; + align-items: center; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle .dashicon, + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control .dashicon { + margin: auto; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover { + display: flex; + margin-right: auto; } + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-inserter, + .block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control { + float: left; } + +.block-editor-block-list__block[data-align="full"] .block-editor-block-list__block-mobile-toolbar { + margin-left: 0; + margin-right: 0; } + +/** + * In-Canvas Inserter + */ +.block-editor-block-list .block-editor-inserter { + margin: 8px; + cursor: move; + cursor: -webkit-grab; + cursor: grab; } + +.block-editor-block-list__insertion-point { + position: relative; + z-index: 6; + margin-top: -14px; } + +.block-editor-block-list__insertion-point-indicator { + position: absolute; + top: calc(50% - 1px); + height: 2px; + left: 0; + right: 0; + background: #0085ba; } + +body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{ + background: #d1864a; } + +body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{ + background: #a3b9a2; } + +body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{ + background: #e14d43; } + +body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{ + background: #a7b656; } + +body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{ + background: #c2a68c; } + +body.admin-color-blue .block-editor-block-list__insertion-point-indicator{ + background: #82b4cb; } + +body.admin-color-light .block-editor-block-list__insertion-point-indicator{ + background: #0085ba; } + +.block-editor-block-list__insertion-point-inserter { + display: none; + position: absolute; + bottom: auto; + left: 0; + right: 0; + justify-content: center; + opacity: 0; + transition: opacity 0.1s linear; } + @media (min-width: 480px) { + .block-editor-block-list__insertion-point-inserter { + display: flex; } } + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle { + margin-top: -4px; + border-radius: 50%; + color: #007cba; + background: #fff; + height: 36px; + width: 36px; } + .block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover { + box-shadow: none; } + .block-editor-block-list__insertion-point-inserter:hover, .block-editor-block-list__insertion-point-inserter.is-visible { + opacity: 1; } + +.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter, +.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter { + opacity: 0; + pointer-events: none; } + .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter.is-visible, + .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter:hover, + .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .block-editor-block-list__insertion-point > .block-editor-block-list__insertion-point-inserter.is-visible { + opacity: 1; + pointer-events: auto; } + +.block-editor-block-list__block > .block-editor-block-list__insertion-point { + position: absolute; + top: -16px; + height: 28px; + bottom: auto; + left: 0; + right: 0; } + @media (min-width: 600px) { + .block-editor-block-list__block > .block-editor-block-list__insertion-point { + left: -1px; + right: -1px; } } + +.block-editor-block-list__block[data-align="full"] > .block-editor-block-list__insertion-point { + left: 0; + right: 0; } + +.block-editor-block-list__block .block-editor-block-list__block-html-textarea { + display: block; + margin: 0; + width: 100%; + border: none; + outline: none; + box-shadow: none; + resize: none; + overflow: hidden; + font-family: Menlo, Consolas, monaco, monospace; + font-size: 14px; + line-height: 150%; + transition: padding 0.2s linear; } + .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus { + box-shadow: none; } + +/** + * Block Toolbar when contextual. + */ +.block-editor-block-list__block .block-editor-block-contextual-toolbar { + z-index: 21; + white-space: nowrap; + text-align: left; + pointer-events: none; + position: absolute; + bottom: 22px; + left: -14px; + right: -14px; + border-top: 1px solid #b5bcc2; } + .block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar { + border-top: none; + border-bottom: none; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + border-top: none; } + .block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar { + border-top: 1px solid #b5bcc2; + border-bottom: 1px solid #b5bcc2; } } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + margin-bottom: 1px; + margin-top: -37px; + box-shadow: -3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, .is-dark-theme + .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + box-shadow: -3px 0 0 0 #d7dade; } + @media (min-width: 600px) { + .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, + .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + box-shadow: none; } } + .block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar .editor-block-toolbar, + .block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar .editor-block-toolbar { + border-left: none; } + +.block-editor-block-list__block .block-editor-block-contextual-toolbar { + margin-left: 0; + margin-right: 0; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + margin-left: -15px; + margin-right: -15px; } } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + /*rtl:ignore*/ + margin-right: 15px; } + +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + /*rtl:ignore*/ + margin-left: 15px; } + +.block-editor-block-list__block .block-editor-block-contextual-toolbar > * { + pointer-events: auto; } + +.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-contextual-toolbar { + margin-left: -28px; } + +@media (min-width: 600px) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + bottom: auto; + left: auto; + right: auto; + box-shadow: none; + transform: translateY(-52px); } + @supports ((position: -webkit-sticky) or (position: sticky)) { + .block-editor-block-list__block .block-editor-block-contextual-toolbar { + position: -webkit-sticky; + position: sticky; + top: 51px; } } } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar { + /*rtl:ignore*/ + float: left; } + +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + /*rtl:ignore*/ + float: right; } + +.block-editor-block-list__block[data-align="left"] .block-editor-block-contextual-toolbar, +.block-editor-block-list__block[data-align="right"] .block-editor-block-contextual-toolbar { + transform: translateY(-15px); } + +.block-editor-block-contextual-toolbar .block-editor-block-toolbar { + width: 100%; } + @media (min-width: 600px) { + .block-editor-block-contextual-toolbar .block-editor-block-toolbar { + width: auto; + border-right: none; + position: absolute; + left: 1px; + top: 1px; } } + +/** + * Hover label + */ +.block-editor-block-list__breadcrumb { + position: absolute; + line-height: 1; + z-index: 2; + left: -17px; + top: -31px; } + .block-editor-block-list__breadcrumb .components-toolbar { + padding: 0; + border: none; + line-height: 1; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 11px; + padding: 4px 4px; + background: #e2e4e7; + color: #191e23; } + .is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar { + background: #40464d; + color: #fff; } + .block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar { + opacity: 0; + animation: edit-post__fade-in-animation 60ms ease-out 0.5s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar { + animation-duration: 1ms !important; } } + .editor-inner-blocks .block-editor-block-list__breadcrumb { + z-index: 22; } + [data-align="left"] .block-editor-block-list__breadcrumb { + left: 0; } + [data-align="right"] .block-editor-block-list__breadcrumb { + left: auto; + right: 0; } + +.block-editor-block-list__descendant-arrow::before { + content: "→"; + display: inline-block; + padding: 0 4px; } + .rtl .block-editor-block-list__descendant-arrow::before { + content: "←"; } + +@media (min-width: 600px) { + .block-editor-block-list__block::before { + bottom: 0; + content: ""; + left: -28px; + position: absolute; + right: -28px; + top: 0; } + .block-editor-block-list__block .block-editor-block-list__block::before { + left: 0; + right: 0; } + .block-editor-block-list__block[data-align="full"]::before { + content: none; } } + +.block-editor-block-list__block .block-editor-warning { + z-index: 5; + position: relative; + margin-right: -14px; + margin-left: -14px; + margin-bottom: -14px; + transform: translateY(-14px); + padding: 10px 14px; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-warning { + padding: 10px 14px; } } + +.block-list-appender > .block-editor-inserter { + display: block; } + +.block-list-appender__toggle { + display: flex; + align-items: center; + justify-content: center; + padding: 16px; + outline: 1px dashed #8d96a0; + width: 100%; + color: #555d66; } + .block-list-appender__toggle:hover { + outline: 1px dashed #555d66; } + +/** + * Invalid block comparison + */ +.block-editor-block-compare { + overflow: auto; + height: auto; } + @media (min-width: 600px) { + .block-editor-block-compare { + max-height: 70%; } } + +.block-editor-block-compare__wrapper { + display: flex; + padding-bottom: 16px; } + .block-editor-block-compare__wrapper > div { + display: flex; + justify-content: space-between; + flex-direction: column; + width: 50%; + padding: 0 16px 0 0; + min-width: 200px; } + .block-editor-block-compare__wrapper > div button { + float: right; } + .block-editor-block-compare__wrapper .block-editor-block-compare__converted { + border-left: 1px solid #ddd; + padding-left: 15px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html { + font-family: Menlo, Consolas, monaco, monospace; + font-size: 12px; + color: #23282d; + border-bottom: 1px solid #ddd; + padding-bottom: 15px; + line-height: 1.7; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html span { + background-color: #e6ffed; + padding-top: 3px; + padding-bottom: 3px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added { + background-color: #acf2bd; } + .block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed { + background-color: #d94f4f; } + .block-editor-block-compare__wrapper .block-editor-block-compare__preview { + padding: 0; + padding-top: 14px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__preview p { + font-size: 12px; + margin-top: 0; } + .block-editor-block-compare__wrapper .block-editor-block-compare__action { + margin-top: 14px; } + .block-editor-block-compare__wrapper .block-editor-block-compare__heading { + font-size: 1em; + font-weight: 400; + margin: 0.67em 0; } + +.block-editor-block-mover { + min-height: 56px; + opacity: 0; } + .block-editor-block-mover.is-visible { + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-block-mover.is-visible { + animation-duration: 1ms !important; } } + @media (min-width: 600px) { + .block-editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .block-editor-block-mover { + margin-top: -8px; } } + +.block-editor-block-mover__control { + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + padding: 0; + width: 28px; + height: 24px; + color: rgba(14, 28, 46, 0.62); } + .block-editor-block-mover__control svg { + width: 28px; + height: 24px; + padding: 2px 5px; } + .is-dark-theme .block-editor-block-mover__control { + color: rgba(255, 255, 255, 0.65); } + .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control { + color: rgba(14, 28, 46, 0.62); } + .block-editor-block-mover__control[aria-disabled="true"] { + cursor: default; + pointer-events: none; + color: rgba(130, 148, 147, 0.15); } + .is-dark-theme .block-editor-block-mover__control[aria-disabled="true"] { + color: rgba(255, 255, 255, 0.2); } + +.block-editor-block-mover__control-drag-handle { + cursor: move; + cursor: -webkit-grab; + cursor: grab; + fill: currentColor; + border-radius: 4px; } + .block-editor-block-mover__control-drag-handle, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { + box-shadow: none; + background: none; + color: rgba(10, 24, 41, 0.7); } + .is-dark-theme .block-editor-block-mover__control-drag-handle, .is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { + color: rgba(255, 255, 255, 0.75); } + .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle, .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, + .wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { + color: rgba(10, 24, 41, 0.7); } + .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active { + cursor: -webkit-grabbing; + cursor: grabbing; } + +.block-editor-block-mover__description { + display: none; } + +@media (min-width: 600px) { + .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control { + background: #fff; + box-shadow: inset 0 0 0 1px #e2e4e7; } + .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:nth-child(-n+2), + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:nth-child(-n+2), + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:nth-child(-n+2) { + margin-bottom: -1px; } + .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .block-editor-block-list__layout [data-align="right"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, + .block-editor-block-list__layout [data-align="left"] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, + .block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:hover, .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:active, .block-editor-block-list__layout [data-align="right"] + .block-editor-block-mover__control:focus, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:hover, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:active, + .block-editor-block-list__layout [data-align="left"] + .block-editor-block-mover__control:focus, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:hover, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:active, + .block-editor-block-list__layout .block-editor-block-list__layout + .block-editor-block-mover__control:focus { + z-index: 1; } } + +.block-editor-block-navigation__container { + padding: 7px; } + +.block-editor-block-navigation__label { + margin: 0 0 8px; + color: #6c7781; } + +.block-editor-block-navigation__list, +.block-editor-block-navigation__paragraph { + padding: 0; + margin: 0; } + +.block-editor-block-navigation__list .block-editor-block-navigation__list { + margin-top: 2px; + border-left: 2px solid #a2aab2; + margin-left: 1em; } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list { + margin-left: 1.5em; } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item { + position: relative; } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item::before { + position: absolute; + left: 0; + background: #a2aab2; + width: 0.5em; + height: 2px; + content: ""; + top: calc(50% - 1px); } + .block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button { + margin-left: 0.8em; + width: calc(100% - 0.8em); } + .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child { + position: relative; } + .block-editor-block-navigation__list .block-editor-block-navigation__list > li:last-child::after { + position: absolute; + content: ""; + background: #fff; + top: 19px; + bottom: 0; + left: -2px; + width: 2px; } + +.block-editor-block-navigation__item-button { + display: flex; + align-items: center; + width: 100%; + padding: 6px; + text-align: left; + color: #40464d; + border-radius: 4px; } + .block-editor-block-navigation__item-button .block-editor-block-icon { + margin-right: 6px; } + .block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + background: #f3f4f5; } + .block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + outline-offset: -2px; + outline: 1px dotted #555d66; } + .block-editor-block-navigation__item-button.is-selected, .block-editor-block-navigation__item-button.is-selected:focus { + color: #32373c; + background: #edeff0; } + +.block-editor-block-preview { + pointer-events: none; + padding: 10px; + overflow: hidden; + display: none; } + @media (min-width: 782px) { + .block-editor-block-preview { + display: block; } } + .block-editor-block-preview .block-editor-block-preview__content { + padding: 14px; + border: 1px solid #e2e4e7; + font-family: "Noto Serif", serif; } + .block-editor-block-preview .block-editor-block-preview__content > div { + transform: scale(0.9); + transform-origin: center top; + font-family: "Noto Serif", serif; } + .block-editor-block-preview .block-editor-block-preview__content > div section { + height: auto; } + .block-editor-block-preview .block-editor-block-preview__content > .reusable-block-indicator { + display: none; } + +.block-editor-block-preview__title { + margin-bottom: 10px; + color: #6c7781; } + +.block-editor-block-settings-menu__toggle .dashicon { + transform: rotate(90deg); } + +.block-editor-block-settings-menu__popover::before, .block-editor-block-settings-menu__popover::after { + margin-left: 2px; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__content { + padding: 7px 0; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator { + margin-top: 8px; + margin-bottom: 8px; + margin-left: 0; + margin-right: 0; + border-top: 1px solid #e2e4e7; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator:last-child { + display: none; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__title { + display: block; + padding: 6px; + color: #6c7781; } + +.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control { + width: 100%; + justify-content: flex-start; + background: none; + outline: none; + border-radius: 0; + color: #555d66; + text-align: left; + cursor: pointer; + border: none; + box-shadow: none; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + background: #f3f4f5; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled="true"]) { + color: #191e23; + border: none; + box-shadow: none; + outline-offset: -2px; + outline: 1px dotted #555d66; } + .block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control .dashicon { + margin-right: 5px; } + +.block-editor-block-styles { + display: flex; + flex-wrap: wrap; + justify-content: space-between; } + +.block-editor-block-styles__item { + width: calc(50% - 4px); + margin: 4px 0; + flex-shrink: 0; + cursor: pointer; + overflow: hidden; + border-radius: 4px; + padding: 4px; } + .block-editor-block-styles__item.is-active { + color: #191e23; + box-shadow: 0 0 0 2px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; + box-shadow: 0 0 0 2px #555d66; } + .block-editor-block-styles__item:focus { + color: #191e23; + box-shadow: 0 0 0 2px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; } + .block-editor-block-styles__item:hover { + background: #f3f4f5; + color: #191e23; } + +.block-editor-block-styles__item-preview { + outline: 1px solid transparent; + border: 1px solid rgba(25, 30, 35, 0.2); + overflow: hidden; + padding: 0; + text-align: initial; + border-radius: 4px; + display: flex; + height: 60px; + background: #fff; } + .block-editor-block-styles__item-preview .block-editor-block-preview__content { + transform: scale(0.7); + transform-origin: center center; + width: 100%; + margin: 0; + padding: 0; + overflow: visible; + min-height: auto; } + +.block-editor-block-styles__item-label { + text-align: center; + padding: 4px 2px; } + +.block-editor-block-switcher { + position: relative; + height: 36px; } + +.components-icon-button.block-editor-block-switcher__toggle, +.components-icon-button.block-editor-block-switcher__no-switcher-icon { + margin: 0; + display: block; + height: 36px; + padding: 3px; } + +.components-icon-button.block-editor-block-switcher__no-switcher-icon { + width: 48px; } + .components-icon-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon { + margin-right: auto; + margin-left: auto; } + +.components-button.block-editor-block-switcher__no-switcher-icon:disabled { + background: #f3f4f5; + border-radius: 0; + opacity: 0.84; } + .components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors { + color: #555d66 !important; } + +.components-icon-button.block-editor-block-switcher__toggle { + width: auto; } + .components-icon-button.block-editor-block-switcher__toggle:active, .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-icon-button.block-editor-block-switcher__toggle:not([aria-disabled="true"]):focus { + outline: none; + box-shadow: none; + background: none; + border: none; } + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + width: 42px; + height: 30px; + position: relative; + margin: 0 auto; + padding: 3px; + display: flex; + align-items: center; + transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); } + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon::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 currentColor; + margin-left: 4px; + margin-right: 2px; } + .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform { + margin-top: 6px; + border-radius: 4px; } + .components-icon-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle[aria-expanded="true"] .block-editor-block-switcher__transform, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { + transform: translateY(-36px); } + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon, + .components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform { + box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; + outline: 2px solid transparent; + outline-offset: -2px; } + +.components-popover:not(.is-mobile).block-editor-block-switcher__popover .components-popover__content { + min-width: 300px; + max-width: 340px; } + +@media (min-width: 782px) { + .block-editor-block-switcher__popover .components-popover__content { + position: relative; } + .block-editor-block-switcher__popover .components-popover__content .block-editor-block-preview { + border: 1px solid #e2e4e7; + box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + background: #fff; + position: absolute; + left: 100%; + top: -1px; + bottom: -1px; + width: 300px; + height: auto; } } + +.block-editor-block-switcher__popover .components-popover__content .components-panel__body { + border: 0; + position: relative; + z-index: 1; } + +.block-editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { + border-top: 1px solid #e2e4e7; } + +.block-editor-block-switcher__popover:not(.is-mobile) > .components-popover__content { + overflow-y: visible; } + +.block-editor-block-switcher__popover .block-editor-block-styles { + margin: 0 -3px; } + +.block-editor-block-switcher__popover .block-editor-block-types-list { + margin: 8px -8px -8px; } + +.block-editor-block-toolbar { + display: flex; + flex-grow: 1; + width: 100%; + overflow: auto; + position: relative; + transition: border-color 0.1s linear, box-shadow 0.1s linear; + border-left: 1px solid #b5bcc2; } + @media (min-width: 600px) { + .block-editor-block-toolbar { + overflow: inherit; + border-left: none; + box-shadow: -3px 0 0 0 #555d66; } + .is-dark-theme .block-editor-block-toolbar { + box-shadow: -3px 0 0 0 #d7dade; } } + .block-editor-block-toolbar .components-toolbar { + border: 0; + border-top: 1px solid #b5bcc2; + border-bottom: 1px solid #b5bcc2; + border-right: 1px solid #b5bcc2; } + .has-fixed-toolbar .block-editor-block-toolbar { + box-shadow: none; + border-left: 1px solid #e2e4e7; } + .has-fixed-toolbar .block-editor-block-toolbar .components-toolbar { + border-color: #e2e4e7; } + +.block-editor-block-types-list { + list-style: none; + padding: 2px 0; + overflow: hidden; + display: flex; + flex-wrap: wrap; } + +.block-editor-color-palette-control__color-palette { + display: inline-block; + margin-top: 0.6rem; } + +.block-editor-contrast-checker > .components-notice { + margin: 0; } + +.block-editor-default-block-appender { + clear: both; } + .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { + font-family: "Noto Serif", serif; + font-size: 16px; + border: none; + background: none; + box-shadow: none; + display: block; + cursor: text; + width: 100%; + outline: 1px solid transparent; + transition: 0.2s outline; + resize: none; + padding: 0 50px 0 14px; + color: rgba(14, 28, 46, 0.62); } + .is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content { + color: rgba(255, 255, 255, 0.65); } + .block-editor-default-block-appender .block-editor-inserter__toggle:not([aria-expanded="true"]) { + opacity: 0; + transition: opacity 0.2s; } + .block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts { + animation: edit-post__fade-in-animation 0.2s ease-out 0s; + animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts { + animation-duration: 1ms !important; } } + .block-editor-default-block-appender:hover .block-editor-inserter__toggle { + opacity: 1; } + .block-editor-default-block-appender .components-drop-zone__content-icon { + display: none; } + +.block-editor-block-list__empty-block-inserter, +.block-editor-default-block-appender .block-editor-inserter, +.block-editor-inserter-with-shortcuts { + position: absolute; + top: 0; } + .block-editor-block-list__empty-block-inserter .components-icon-button, + .block-editor-default-block-appender .block-editor-inserter .components-icon-button, + .block-editor-inserter-with-shortcuts .components-icon-button { + width: 28px; + height: 28px; + margin-right: 12px; + padding: 0; } + .block-editor-block-list__empty-block-inserter .block-editor-block-icon, + .block-editor-default-block-appender .block-editor-inserter .block-editor-block-icon, + .block-editor-inserter-with-shortcuts .block-editor-block-icon { + margin: auto; } + .block-editor-block-list__empty-block-inserter .components-icon-button svg, + .block-editor-default-block-appender .block-editor-inserter .components-icon-button svg, + .block-editor-inserter-with-shortcuts .components-icon-button svg { + display: block; + margin: auto; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle, + .block-editor-inserter-with-shortcuts .block-editor-inserter__toggle { + margin-right: 0; } + +.block-editor-block-list__empty-block-inserter, +.block-editor-default-block-appender .block-editor-inserter { + right: 8px; } + @media (min-width: 600px) { + .block-editor-block-list__empty-block-inserter, + .block-editor-default-block-appender .block-editor-inserter { + left: -44px; + right: auto; } } + .block-editor-block-list__empty-block-inserter:disabled, + .block-editor-default-block-appender .block-editor-inserter:disabled { + display: none; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle, + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle { + border-radius: 50%; + width: 28px; + height: 28px; + padding: 0; } + .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { + color: rgba(10, 24, 41, 0.7); } + .is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover), .is-dark-theme + .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover) { + color: rgba(255, 255, 255, 0.75); } + +.block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts, +.block-editor-default-block-appender .block-editor-inserter-with-shortcuts { + right: 14px; + display: none; + z-index: 5; } + @media (min-width: 600px) { + .block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts, + .block-editor-default-block-appender .block-editor-inserter-with-shortcuts { + right: 0; + display: flex; } } + +.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom { + z-index: 100001; } + +.block-editor-inner-blocks.has-overlay::after { + content: ""; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 120; } + +.block-editor-inserter-with-shortcuts { + display: flex; + align-items: center; } + .block-editor-inserter-with-shortcuts .components-icon-button { + border-radius: 4px; } + .block-editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon) { + height: 24px; + width: 24px; } + +.block-editor-inserter-with-shortcuts__block { + margin-right: 4px; + width: 36px; + height: 36px; + padding-top: 8px; + color: rgba(10, 24, 41, 0.7); } + .is-dark-theme .block-editor-inserter-with-shortcuts__block { + color: rgba(255, 255, 255, 0.75); } + +.block-editor-inserter { + display: inline-block; + background: none; + border: none; + padding: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + line-height: 1.4; } + @media (min-width: 782px) { + .block-editor-inserter { + position: relative; } } + +@media (min-width: 782px) { + .block-editor-inserter__popover:not(.is-mobile) > .components-popover__content { + overflow-y: visible; + height: 432px; } } + +.block-editor-inserter__toggle { + display: inline-flex; + align-items: center; + color: #555d66; + background: none; + cursor: pointer; + border: none; + outline: none; + transition: color 0.2s ease; } + +.block-editor-inserter__menu { + width: auto; + display: flex; + flex-direction: column; + height: 100%; } + @media (min-width: 782px) { + .block-editor-inserter__menu { + width: 400px; + position: relative; } + .block-editor-inserter__menu .block-editor-block-preview { + border: 1px solid #e2e4e7; + box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + background: #fff; + position: absolute; + left: 100%; + top: -1px; + bottom: -1px; + width: 300px; } } + +.block-editor-inserter__inline-elements { + margin-top: -1px; } + +.block-editor-inserter__menu.is-bottom::after { + border-bottom-color: #fff; } + +.components-popover input[type="search"].block-editor-inserter__search { + display: block; + margin: 16px; + padding: 11px 16px; + position: relative; + z-index: 1; + border-radius: 4px; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; } + @media (min-width: 600px) { + .components-popover input[type="search"].block-editor-inserter__search { + font-size: 13px; } } + .components-popover input[type="search"].block-editor-inserter__search:focus { + color: #191e23; + border-color: #00a0d2; + box-shadow: 0 0 0 1px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; } + +.block-editor-inserter__results { + flex-grow: 1; + overflow: auto; + position: relative; + z-index: 1; + padding: 0 16px 16px 16px; } + .block-editor-inserter__results:focus { + outline: 1px dotted #555d66; } + @media (min-width: 782px) { + .block-editor-inserter__results { + height: 394px; } } + .block-editor-inserter__results [role="presentation"] + .components-panel__body { + border-top: none; } + +.block-editor-inserter__popover .block-editor-block-types-list { + margin: 0 -8px; } + +.block-editor-inserter__reusable-blocks-panel { + position: relative; + text-align: right; } + +.block-editor-inserter__manage-reusable-blocks { + margin: 16px 0 0 16px; } + +.block-editor-inserter__no-results { + font-style: italic; + padding: 24px; + text-align: center; } + +.block-editor-inserter__child-blocks { + padding: 0 16px; } + +.block-editor-inserter__parent-block-header { + display: flex; + align-items: center; } + .block-editor-inserter__parent-block-header h2 { + font-size: 13px; } + .block-editor-inserter__parent-block-header .block-editor-block-icon { + margin-right: 8px; } + +.block-editor-block-types-list__list-item { + display: block; + width: 33.33%; + padding: 0 4px; + margin: 0 0 12px; } + +.block-editor-block-types-list__item { + display: flex; + flex-direction: column; + width: 100%; + font-size: 13px; + color: #32373c; + padding: 0; + align-items: stretch; + justify-content: center; + cursor: pointer; + background: transparent; + word-break: break-word; + border-radius: 4px; + border: 1px solid transparent; + transition: all 0.05s ease-in-out; + position: relative; } + .block-editor-block-types-list__item:disabled { + opacity: 0.6; + cursor: default; } + .block-editor-block-types-list__item:not(:disabled):hover::before { + content: ""; + display: block; + background: #f3f4f5; + color: #191e23; + position: absolute; + z-index: -1; + border-radius: 4px; + top: 0; + right: 0; + bottom: 0; + left: 0; } + .block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title { + color: currentColor; } + .block-editor-block-types-list__item:not(:disabled):active, .block-editor-block-types-list__item:not(:disabled).is-active, .block-editor-block-types-list__item:not(:disabled):focus { + position: relative; + outline: none; + color: #191e23; + box-shadow: 0 0 0 2px #00a0d2; + outline: 2px solid transparent; + outline-offset: -2px; } + .block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title, .block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-title, .block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon, + .block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title { + color: currentColor; } + +.block-editor-block-types-list__item-icon { + padding: 12px 20px; + border-radius: 4px; + color: #555d66; + transition: all 0.05s ease-in-out; } + .block-editor-block-types-list__item-icon .block-editor-block-icon { + margin-left: auto; + margin-right: auto; } + .block-editor-block-types-list__item-icon svg { + transition: all 0.15s ease-out; } + +.block-editor-block-types-list__item-title { + padding: 4px 2px 8px; } + +.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon { + background: #fff; + margin-right: 3px; + margin-bottom: 6px; + padding: 9px 20px 9px; + position: relative; + top: -2px; + left: -2px; + box-shadow: 0 0 0 1px #e2e4e7; } + +.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon-stack { + display: block; + background: #fff; + box-shadow: 0 0 0 1px #e2e4e7; + width: 100%; + height: 100%; + position: absolute; + z-index: -1; + bottom: -6px; + right: -6px; + border-radius: 4px; } + +.block-editor-media-placeholder__url-input-container { + width: 100%; } + .block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button { + margin-bottom: 0; } + +.block-editor-media-placeholder__url-input-form { + display: flex; } + .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { + width: 100%; + flex-grow: 1; + border: none; + border-radius: 0; + margin: 2px; } + @media (min-width: 600px) { + .block-editor-media-placeholder__url-input-form input[type="url"].block-editor-media-placeholder__url-input-field { + width: 300px; } } + +.block-editor-media-placeholder__url-input-submit-button { + flex-shrink: 1; } + +.block-editor-media-placeholder__button { + margin-bottom: 0.5rem; } + .block-editor-media-placeholder__button .dashicon { + vertical-align: middle; + margin-bottom: 3px; } + .block-editor-media-placeholder__button:hover { + color: #23282d; } + +.components-form-file-upload .block-editor-media-placeholder__button { + margin-right: 4px; } + +.block-editor-multi-selection-inspector__card { + display: flex; + align-items: flex-start; + margin: -16px; + padding: 16px; } + +.block-editor-multi-selection-inspector__card-content { + flex-grow: 1; } + +.block-editor-multi-selection-inspector__card-title { + font-weight: 500; + margin-bottom: 5px; } + +.block-editor-multi-selection-inspector__card-description { + font-size: 13px; } + +.block-editor-multi-selection-inspector__card .block-editor-block-icon { + margin-left: -2px; + margin-right: 10px; + padding: 0 3px; + width: 36px; + height: 24px; } + +.block-editor-panel-color-settings .component-color-indicator { + vertical-align: text-bottom; } + +.block-editor-panel-color-settings__panel-title .component-color-indicator { + display: inline-block; } + +.block-editor-panel-color-settings.is-opened .block-editor-panel-color-settings__panel-title .component-color-indicator { + display: none; } + +.block-editor .block-editor-plain-text { + box-shadow: none; + font-family: inherit; + font-size: inherit; + color: inherit; + line-height: inherit; + border: none; + padding: 0; + margin: 0; + width: 100%; } + +.block-editor-format-toolbar { + display: flex; + flex-shrink: 0; } + +.block-editor-format-toolbar__selection-position { + position: absolute; + transform: translateX(-50%); } + +.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after { + margin: 7px; } + +.block-editor-rich-text { + position: relative; } + +.block-editor-rich-text__editable { + margin: 0; + position: relative; + white-space: pre-wrap; } + .block-editor-rich-text__editable > p:first-child { + margin-top: 0; } + .block-editor-rich-text__editable a { + color: #007fac; } + .block-editor-rich-text__editable code { + padding: 2px; + border-radius: 2px; + color: #23282d; + background: #f3f4f5; + font-family: Menlo, Consolas, monaco, monospace; + font-size: inherit; } + .is-multi-selected .block-editor-rich-text__editable code { + background: #67cffd; } + .block-editor-rich-text__editable:focus { + outline: none; } + .block-editor-rich-text__editable:focus *[data-rich-text-format-boundary] { + border-radius: 2px; + box-shadow: 0 0 0 1px #e8eaeb; + background: #e8eaeb; + color: #191e23; } + .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary] { + box-shadow: 0 0 0 1px #e5f5fa; + background: #e5f5fa; + color: #006589; } + .block-editor-rich-text__editable:focus code[data-rich-text-format-boundary] { + background: #e8eaeb; + box-shadow: 0 0 0 1px #e8eaeb; } + .block-editor-rich-text__editable[data-is-placeholder-visible="true"] { + position: absolute; + top: 0; + width: 100%; + margin-top: 0; + height: 100%; } + .block-editor-rich-text__editable[data-is-placeholder-visible="true"] > p { + margin-top: 0; } + .block-editor-rich-text__editable + .block-editor-rich-text__editable { + pointer-events: none; } + .block-editor-rich-text__editable + .block-editor-rich-text__editable, + .block-editor-rich-text__editable + .block-editor-rich-text__editable p { + opacity: 0.62; } + .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + figcaption.block-editor-rich-text__editable { + opacity: 0.8; } + +.block-editor-rich-text__inline-toolbar { + display: flex; + justify-content: center; + position: absolute; + top: -40px; + line-height: 0; + left: 0; + right: 0; + z-index: 1; } + .block-editor-rich-text__inline-toolbar ul.components-toolbar { + box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } + +.block-editor-skip-to-selected-block { + position: absolute; + top: -9999em; } + .block-editor-skip-to-selected-block:focus { + height: auto; + width: auto; + display: block; + font-size: 14px; + font-weight: 600; + padding: 15px 23px 14px; + background: #f1f1f1; + color: #11a0d2; + line-height: normal; + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + text-decoration: none; + outline: none; + z-index: 100000; } + body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{ + color: #c8b03c; } + body.admin-color-ocean .block-editor-skip-to-selected-block:focus{ + color: #a89d8a; } + body.admin-color-midnight .block-editor-skip-to-selected-block:focus{ + color: #77a6b9; } + body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{ + color: #c77430; } + body.admin-color-coffee .block-editor-skip-to-selected-block:focus{ + color: #9fa47b; } + body.admin-color-blue .block-editor-skip-to-selected-block:focus{ + color: #d9ab59; } + body.admin-color-light .block-editor-skip-to-selected-block:focus{ + color: #c75726; } + +.block-editor-block-list__block .block-editor-url-input, +.components-popover .block-editor-url-input, +.block-editor-url-input { + flex-grow: 1; + position: relative; + padding: 1px; } + .block-editor-block-list__block .block-editor-url-input input[type="text"], + .components-popover .block-editor-url-input input[type="text"], + .block-editor-url-input input[type="text"] { + width: 100%; + padding: 8px; + border: none; + border-radius: 0; + margin-left: 0; + margin-right: 0; + /* Fonts smaller than 16px causes mobile safari to zoom. */ + font-size: 16px; } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-url-input input[type="text"], + .components-popover .block-editor-url-input input[type="text"], + .block-editor-url-input input[type="text"] { + width: 300px; } } + @media (min-width: 600px) { + .block-editor-block-list__block .block-editor-url-input input[type="text"], + .components-popover .block-editor-url-input input[type="text"], + .block-editor-url-input input[type="text"] { + font-size: 13px; } } + .block-editor-block-list__block .block-editor-url-input input[type="text"]::-ms-clear, + .components-popover .block-editor-url-input input[type="text"]::-ms-clear, + .block-editor-url-input input[type="text"]::-ms-clear { + display: none; } + .block-editor-block-list__block .block-editor-url-input .components-spinner, + .components-popover .block-editor-url-input .components-spinner, + .block-editor-url-input .components-spinner { + position: absolute; + right: 8px; + top: 9px; + margin: 0; } + +.block-editor-url-input__suggestions { + max-height: 200px; + transition: all 0.15s ease-in-out; + padding: 4px 0; + width: 302px; + overflow-y: auto; } + +.block-editor-url-input__suggestions, +.block-editor-url-input .components-spinner { + display: none; } + @media (min-width: 600px) { + .block-editor-url-input__suggestions, + .block-editor-url-input .components-spinner { + display: inherit; } } + +.block-editor-url-input__suggestion { + padding: 4px 8px; + color: #6c7781; + display: block; + font-size: 13px; + cursor: pointer; + background: #fff; + width: 100%; + border: none; + text-align: left; + border: none; + box-shadow: none; } + .block-editor-url-input__suggestion:hover { + background: #e2e4e7; } + .block-editor-url-input__suggestion:focus, .block-editor-url-input__suggestion.is-selected { + background: rgb(0, 113, 158); + color: #fff; + outline: none; } + body.admin-color-sunrise .block-editor-url-input__suggestion:focus, body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected{ + background: rgb(178, 114, 63); } + body.admin-color-ocean .block-editor-url-input__suggestion:focus, body.admin-color-ocean .block-editor-url-input__suggestion.is-selected{ + background: rgb(139, 157, 138); } + body.admin-color-midnight .block-editor-url-input__suggestion:focus, body.admin-color-midnight .block-editor-url-input__suggestion.is-selected{ + background: rgb(191, 65, 57); } + body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus, body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected{ + background: rgb(142, 155, 73); } + body.admin-color-coffee .block-editor-url-input__suggestion:focus, body.admin-color-coffee .block-editor-url-input__suggestion.is-selected{ + background: rgb(165, 141, 119); } + body.admin-color-blue .block-editor-url-input__suggestion:focus, body.admin-color-blue .block-editor-url-input__suggestion.is-selected{ + background: rgb(111, 153, 173); } + body.admin-color-light .block-editor-url-input__suggestion:focus, body.admin-color-light .block-editor-url-input__suggestion.is-selected{ + background: rgb(0, 113, 158); } + +.components-toolbar > .block-editor-url-input__button { + position: inherit; } + +.block-editor-url-input__button .block-editor-url-input__back { + margin-right: 4px; + overflow: visible; } + .block-editor-url-input__button .block-editor-url-input__back::after { + content: ""; + position: absolute; + display: block; + width: 1px; + height: 24px; + right: -1px; + background: #e2e4e7; } + +.block-editor-url-input__button-modal { + box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); + border: 1px solid #e2e4e7; + background: #fff; } + +.block-editor-url-input__button-modal-line { + display: flex; + flex-direction: row; + flex-grow: 1; + flex-shrink: 1; + min-width: 0; + align-items: flex-start; } + .block-editor-url-input__button-modal-line .components-button { + flex-shrink: 0; + width: 36px; + height: 36px; } + +.block-editor-url-popover__row { + display: flex; } + +.block-editor-url-popover__row > :not(.block-editor-url-popover__settings-toggle) { + flex-grow: 1; } + +.block-editor-url-popover .components-icon-button { + padding: 3px; } + .block-editor-url-popover .components-icon-button > svg { + padding: 5px; + border-radius: 4px; + height: 30px; + width: 30px; } + .block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { + box-shadow: none; } + .block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover > svg { + color: #555d66; + box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } + .block-editor-url-popover .components-icon-button:not(:disabled):focus { + box-shadow: none; } + .block-editor-url-popover .components-icon-button:not(:disabled):focus > svg { + box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; + outline: 2px solid transparent; + outline-offset: -2px; } + +.block-editor-url-popover__settings-toggle { + flex-shrink: 0; + border-radius: 0; + border-left: 1px solid #e2e4e7; + margin-left: 1px; } + .block-editor-url-popover__settings-toggle[aria-expanded="true"] .dashicon { + transform: rotate(180deg); } + +.block-editor-url-popover__settings { + padding: 16px; + border-top: 1px solid #e2e4e7; } + .block-editor-url-popover__settings .components-base-control:last-child .components-base-control__field { + margin-bottom: 0; } + +.block-editor-warning { + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: nowrap; + background-color: #fff; + border: 1px solid #e2e4e7; + text-align: left; + padding: 20px; } + .has-warning.is-multi-selected .block-editor-warning { + background-color: transparent; } + .is-selected .block-editor-warning { + border-color: rgba(66, 88, 99, 0.4); + border-left-color: transparent; } + .is-dark-theme .is-selected .block-editor-warning { + border-color: rgba(255, 255, 255, 0.45); } + .block-editor-warning .block-editor-warning__message { + line-height: 1.4; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; } + .block-editor-warning .block-editor-warning__contents { + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: wrap; + align-items: center; + width: 100%; } + .block-editor-warning .block-editor-warning__actions { + display: flex; } + .block-editor-warning .block-editor-warning__action { + margin: 0 6px 0 0; } + +.block-editor-warning__secondary { + margin: 3px 0 0 -4px; } + .block-editor-warning__secondary .components-icon-button { + width: auto; + padding: 8px 2px; } + @media (min-width: 600px) { + .block-editor-warning__secondary { + margin-left: 4px; } + .block-editor-warning__secondary .components-icon-button { + padding: 8px 4px; } } + .block-editor-warning__secondary .components-button svg { + transform: rotate(90deg); } + +.block-editor-writing-flow { + height: 100%; + display: flex; + flex-direction: column; } + +.block-editor-writing-flow__click-redirect { + flex-basis: 100%; + cursor: text; } diff --git a/wp-includes/css/dist/block-editor/style.min.css b/wp-includes/css/dist/block-editor/style.min.css new file mode 100644 index 0000000000..04646a5d6c --- /dev/null +++ b/wp-includes/css/dist/block-editor/style.min.css @@ -0,0 +1,9 @@ +@charset "UTF-8";.block-editor-block-drop-zone{border:none;border-radius:0}.block-editor-block-drop-zone .components-drop-zone__content,.block-editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.block-editor-block-drop-zone.is-close-to-bottom{background:none;border-bottom:3px solid #0085ba}body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .block-editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.block-editor-block-drop-zone.is-appender.is-close-to-bottom,.block-editor-block-drop-zone.is-appender.is-close-to-top,.block-editor-block-drop-zone.is-close-to-top{background:none;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .block-editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .block-editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.block-editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.block-editor-block-inspector__card-content{flex-grow:1}.block-editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-block-inspector__card-description{font-size:13px}.block-editor-block-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-list__layout .components-draggable__clone .block-editor-block-contextual-toolbar{display:none!important}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-list__block-edit:before{border:none}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>.block-editor-block-list__block-edit>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging>.block-editor-block-list__block-edit>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-contextual-toolbar,.block-editor-block-list__layout .block-editor-block-list__block.is-selected.is-dragging .block-editor-block-mover{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.block-editor-block-list__layout{padding-left:46px;padding-right:46px}}.block-editor-block-list__block .block-editor-block-list__layout{padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px}.block-editor-block-list__layout .block-editor-default-block-appender>.block-editor-default-block-appender__content,.block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit,.block-editor-block-list__layout>.block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;padding-left:14px;padding-right:14px;overflow-wrap:break-word}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block{padding-left:43px;padding-right:43px}}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px;width:calc(100% - 40px)}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit{position:relative}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit:before{z-index:0;content:"";position:absolute;border:1px solid transparent;border-left:none;box-shadow:none;transition:border-color .1s linear,box-shadow .1s linear;pointer-events:none;outline:1px solid transparent;right:-14px;left:-14px;top:-14px;bottom:-14px}.block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{border-color:rgba(66,88,99,.4);box-shadow:inset 3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.45);box-shadow:inset 3px 0 0 0 #d7dade}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{box-shadow:-3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{box-shadow:-3px 0 0 0 #d7dade}}.block-editor-block-list__layout .block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before{box-shadow:-3px 0 0 0 #e2e4e7}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before{box-shadow:-3px 0 0 0 #40464d}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block ::selection{background-color:#b3e7fe}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit:before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .block-editor-block-list__block-edit:before{mix-blend-mode:soft-light}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit:before{border-color:rgba(145,151,162,.25);border-left:1px solid rgba(145,151,162,.25)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.35)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:before{border-color:rgba(66,88,99,.4) rgba(66,88,99,.4) rgba(66,88,99,.4) transparent}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.45)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit:after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;right:-14px;left:-14px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected .block-editor-block-list__block-edit:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit:after{bottom:22px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-selected .block-editor-block-list__block-edit:after{bottom:-14px}}.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block.is-typing .block-editor-block-list__side-inserter{opacity:0;animation:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__side-inserter{animation-duration:1ms!important}}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-block-list__block-edit:before{border:1px dashed rgba(145,151,162,.25)}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.35)}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected>.block-editor-block-list__block-edit:before{border-color:rgba(66,88,99,.4) rgba(66,88,99,.4) rgba(66,88,99,.4) transparent}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-reusable.is-selected>.block-editor-block-list__block-edit:before{border-color:hsla(0,0%,100%,.45) hsla(0,0%,100%,.45) hsla(0,0%,100%,.45) transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left],.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]{z-index:81;width:100%;height:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-list__block-edit,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-list__block-edit{margin-top:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-list__block-edit:before,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-list__block-edit:before{content:none}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{margin-bottom:1px;width:auto;border-bottom:1px solid #b5bcc2;bottom:auto}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar{left:0;right:auto}.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{left:auto;right:0}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{top:14px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-list__block-edit{ + /*!rtl:begin:ignore*/float:left;margin-right:2em + /*!rtl:end:ignore*/}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=left] .block-editor-block-toolbar{ + /*!rtl:begin:ignore*/left:14px;right:auto + /*!rtl:end:ignore*/}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=right]>.block-editor-block-list__block-edit{ + /*!rtl:begin:ignore*/float:right;margin-left:2em + /*!rtl:end:ignore*/}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=right] .block-editor-block-toolbar{ + /*!rtl:begin:ignore*/right:14px;left:auto + /*!rtl:end:ignore*/}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]{clear:both;z-index:20}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover:before,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover:before{content:none}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover .block-editor-block-mover__control,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover .block-editor-block-mover__control{float:left}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__breadcrumb{right:-1px}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{display:none}@media (min-width:1280px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{display:block}}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full] .block-editor-block-toolbar,.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide] .block-editor-block-toolbar{display:inline-flex}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=wide]>.block-editor-block-mover{left:-13px}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{left:0}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin-left:-45px;margin-right:-45px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-left:-14px;margin-right:-14px}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-left:-44px;margin-right:-44px}}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit figure{width:100%}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit:before{left:0;right:0;border-left-width:0;border-right-width:0}.block-editor-block-list__layout .block-editor-block-list__block[data-align=full]>.block-editor-block-mover{left:1px}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-inserter-with-shortcuts{display:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-block-list__empty-block-inserter,.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{left:auto;right:8px}.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover,.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px;top:-15px}@media (min-width:600px){.block-editor-block-list__block.is-hovered .block-editor-block-mover,.block-editor-block-list__block.is-multi-selected .block-editor-block-mover,.block-editor-block-list__block.is-selected .block-editor-block-mover{z-index:80}}.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover,.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{padding-right:2px;left:-45px;display:none}@media (min-width:600px){.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover,.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{display:block}}.block-editor-block-list__block.is-multi-selected>.block-editor-block-mover{left:-30px}.block-editor-block-list__block[data-align=left].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none}@media (min-width:600px){.block-editor-block-list__block[data-align=left].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-selected>.block-editor-block-list__block-edit>.block-editor-block-mover{display:block;opacity:1;animation:none;width:45px;height:auto;padding-bottom:14px;margin-top:0}}.block-editor-block-list__block[data-align=left].is-dragging>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=left].is-hovered>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-dragging>.block-editor-block-list__block-edit>.block-editor-block-mover,.block-editor-block-list__block[data-align=right].is-hovered>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-right:-14px;margin-left:-14px;border-top:1px solid #b5bcc2;height:37px;background-color:#fff;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar{display:none;box-shadow:none}}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter{position:relative;left:auto;top:auto;margin:0}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control,.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover__control .dashicon,.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-inserter__toggle .dashicon{margin:auto}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover{display:flex;margin-right:auto}.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover__control,.block-editor-block-list__block .block-editor-block-list__block-mobile-toolbar .block-editor-block-mover .block-editor-inserter{float:left}.block-editor-block-list__block[data-align=full] .block-editor-block-list__block-mobile-toolbar{margin-left:0;margin-right:0}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;left:0;right:0;background:#0085ba}body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .block-editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .block-editor-block-list__insertion-point-indicator{background:#0085ba}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;left:0;right:0;justify-content:center;opacity:0;transition:opacity .1s linear}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.block-editor-block-list__insertion-point-inserter.is-visible,.block-editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.block-editor-block-list__insertion-point>.block-editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:0;right:0}@media (min-width:600px){.block-editor-block-list__block>.block-editor-block-list__insertion-point{left:-1px;right:-1px}}.block-editor-block-list__block[data-align=full]>.block-editor-block-list__insertion-point{left:0;right:0}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-list__block .block-editor-block-contextual-toolbar{z-index:21;white-space:nowrap;text-align:left;pointer-events:none;position:absolute;bottom:22px;left:-14px;right:-14px;border-top:1px solid #b5bcc2}.block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-contextual-toolbar{border-top:none}.block-editor-block-list__block .block-editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #b5bcc2;border-bottom:1px solid #b5bcc2}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px;box-shadow:-3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.is-dark-theme .block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{box-shadow:-3px 0 0 0 #d7dade}@media (min-width:600px){.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{box-shadow:none}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar .editor-block-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar .editor-block-toolbar{border-left:none}.block-editor-block-list__block .block-editor-block-contextual-toolbar{margin-left:0;margin-right:0}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-contextual-toolbar{margin-left:-15px;margin-right:-15px}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar{margin-right:15px}.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{margin-left:15px}.block-editor-block-list__block .block-editor-block-contextual-toolbar>*{pointer-events:auto}.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.block-editor-block-contextual-toolbar{margin-left:-28px}@media (min-width:600px){.block-editor-block-list__block .block-editor-block-contextual-toolbar{bottom:auto;left:auto;right:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-list__block .block-editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar{float:left}.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{float:right}.block-editor-block-list__block[data-align=left] .block-editor-block-contextual-toolbar,.block-editor-block-list__block[data-align=right] .block-editor-block-contextual-toolbar{transform:translateY(-15px)}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:100%}@media (min-width:600px){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{width:auto;border-right:none;position:absolute;left:1px;top:1px}}.block-editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;left:-17px;top:-31px}.block-editor-block-list__breadcrumb .components-toolbar{border:none;line-height:1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:11px;padding:4px;background:#e2e4e7;color:#191e23}.is-dark-theme .block-editor-block-list__breadcrumb .components-toolbar{background:#40464d;color:#fff}.block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block:hover .block-editor-block-list__breadcrumb .components-toolbar{animation-duration:1ms!important}}.editor-inner-blocks .block-editor-block-list__breadcrumb{z-index:22}[data-align=left] .block-editor-block-list__breadcrumb{left:0}[data-align=right] .block-editor-block-list__breadcrumb{left:auto;right:0}.block-editor-block-list__descendant-arrow:before{content:"→";display:inline-block;padding:0 4px}.rtl .block-editor-block-list__descendant-arrow:before{content:"←"}@media (min-width:600px){.block-editor-block-list__block:before{bottom:0;content:"";left:-28px;position:absolute;right:-28px;top:0}.block-editor-block-list__block .block-editor-block-list__block:before{left:0;right:0}.block-editor-block-list__block[data-align=full]:before{content:none}}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative;margin-right:-14px;margin-left:-14px;margin-bottom:-14px;transform:translateY(-14px);padding:10px 14px}@media (min-width:600px){.block-editor-block-list__block .block-editor-warning{padding:10px 14px}}.block-list-appender>.block-editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mover{min-height:56px;opacity:0}.block-editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-mover.is-visible{animation-duration:1ms!important}}@media (min-width:600px){.block-editor-block-list__block:not([data-align=wide]):not([data-align=full]) .block-editor-block-mover{margin-top:-8px}}.block-editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.block-editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .block-editor-block-mover__control{color:hsla(0,0%,100%,.65)}.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control{color:rgba(14,28,46,.62)}.block-editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .block-editor-block-mover__control[aria-disabled=true]{color:hsla(0,0%,100%,.2)}.block-editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.block-editor-block-mover__control-drag-handle,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:none;color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-block-mover__control-drag-handle,.is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:hsla(0,0%,100%,.75)}.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle,.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .wp-block .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.wp-block .is-dark-theme .wp-block .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(10,24,41,.7)}.block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.block-editor-block-mover__description{display:none}@media (min-width:600px){.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:nth-child(-n+2),.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:nth-child(-n+2),.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:active,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:focus,.block-editor-block-list__layout .block-editor-block-list__layout .block-editor-block-mover__control:hover,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:active,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:focus,.block-editor-block-list__layout [data-align=left] .block-editor-block-mover__control:hover,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:active,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:focus,.block-editor-block-list__layout [data-align=right] .block-editor-block-mover__control:hover{z-index:1}}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.block-editor-block-navigation__list,.block-editor-block-navigation__paragraph{padding:0;margin:0}.block-editor-block-navigation__list .block-editor-block-navigation__list{margin-top:2px;border-left:2px solid #a2aab2;margin-left:1em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__list{margin-left:1.5em}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item:before{position:absolute;left:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.block-editor-block-navigation__list .block-editor-block-navigation__list .block-editor-block-navigation__item-button{margin-left:.8em;width:calc(100% - .8em)}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__list>li:last-child:after{position:absolute;content:"";background:#fff;top:19px;bottom:0;left:-2px;width:2px}.block-editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:left;color:#40464d;border-radius:4px}.block-editor-block-navigation__item-button .block-editor-block-icon{margin-right:6px}.block-editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.block-editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-navigation__item-button.is-selected,.block-editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.block-editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.block-editor-block-preview{display:block}}.block-editor-block-preview .block-editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.block-editor-block-preview .block-editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.block-editor-block-preview .block-editor-block-preview__content>div section{height:auto}.block-editor-block-preview .block-editor-block-preview__content>.reusable-block-indicator{display:none}.block-editor-block-preview__title{margin-bottom:10px;color:#6c7781}.block-editor-block-settings-menu__toggle .dashicon{transform:rotate(90deg)}.block-editor-block-settings-menu__popover:after,.block-editor-block-settings-menu__popover:before{margin-left:2px}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__content{padding:7px 0}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator{margin:8px 0;border-top:1px solid #e2e4e7}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__separator:last-child{display:none}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control{width:100%;justify-content:flex-start;background:none;outline:none;border-radius:0;color:#555d66;text-align:left;cursor:pointer;border:none;box-shadow:none}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.block-editor-block-settings-menu__popover .block-editor-block-settings-menu__control .dashicon{margin-right:5px}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.block-editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.block-editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-styles__item:hover{background:#f3f4f5;color:#191e23}.block-editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.block-editor-block-styles__item-preview .block-editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher{position:relative;height:36px}.components-icon-button.block-editor-block-switcher__no-switcher-icon,.components-icon-button.block-editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{background:#f3f4f5;border-radius:0;opacity:.84}.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#555d66!important}.components-icon-button.block-editor-block-switcher__toggle{width:auto}.components-icon-button.block-editor-block-switcher__toggle:active,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.block-editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:none;box-shadow:none;background:none;border:none}.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165,.84,.44,1)}.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon: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}.components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):hover .block-editor-block-switcher__transform,.components-icon-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle[aria-expanded=true] .block-editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-icon,.components-icon-button.block-editor-block-switcher__toggle:not(:disabled):focus .block-editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).block-editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.block-editor-block-switcher__popover .components-popover__content{position:relative}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:8px -8px -8px}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear;border-left:1px solid #b5bcc2}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit;border-left:none;box-shadow:-3px 0 0 0 #555d66}.is-dark-theme .block-editor-block-toolbar{box-shadow:-3px 0 0 0 #d7dade}}.block-editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #b5bcc2;border-bottom:1px solid #b5bcc2;border-right:1px solid #b5bcc2}.has-fixed-toolbar .block-editor-block-toolbar{box-shadow:none;border-left:1px solid #e2e4e7}.has-fixed-toolbar .block-editor-block-toolbar .components-toolbar{border-color:#e2e4e7}.block-editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;padding:0 50px 0 14px;color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .block-editor-inserter__toggle:not([aria-expanded=true]){opacity:0;transition:opacity .2s}.block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender:hover .block-editor-inserter-with-shortcuts{animation-duration:1ms!important}}.block-editor-default-block-appender:hover .block-editor-inserter__toggle{opacity:1}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter,.block-editor-inserter-with-shortcuts{position:absolute;top:0}.block-editor-block-list__empty-block-inserter .components-icon-button,.block-editor-default-block-appender .block-editor-inserter .components-icon-button,.block-editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-right:12px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-block-icon,.block-editor-default-block-appender .block-editor-inserter .block-editor-block-icon,.block-editor-inserter-with-shortcuts .block-editor-block-icon{margin:auto}.block-editor-block-list__empty-block-inserter .components-icon-button svg,.block-editor-default-block-appender .block-editor-inserter .components-icon-button svg,.block-editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle,.block-editor-inserter-with-shortcuts .block-editor-inserter__toggle{margin-right:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{right:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:-44px;right:auto}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{border-radius:50%;width:28px;height:28px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover),.is-dark-theme .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover){color:hsla(0,0%,100%,.75)}.block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts,.block-editor-default-block-appender .block-editor-inserter-with-shortcuts{right:14px;display:none;z-index:5}@media (min-width:600px){.block-editor-block-list__side-inserter .block-editor-inserter-with-shortcuts,.block-editor-default-block-appender .block-editor-inserter-with-shortcuts{right:0;display:flex}}.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom{z-index:100001}.block-editor-inner-blocks.has-overlay:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:120}.block-editor-inserter-with-shortcuts{display:flex;align-items:center}.block-editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.block-editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.block-editor-inserter-with-shortcuts__block{margin-right:4px;width:36px;height:36px;padding-top:8px;color:rgba(10,24,41,.7)}.is-dark-theme .block-editor-inserter-with-shortcuts__block{color:hsla(0,0%,100%,.75)}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}@media (min-width:782px){.block-editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.block-editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:none;cursor:pointer;border:none;outline:none;transition:color .2s ease}.block-editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.block-editor-inserter__menu{width:400px;position:relative}.block-editor-inserter__menu .block-editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover input[type=search].block-editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].block-editor-inserter__search{font-size:13px}}.components-popover input[type=search].block-editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px}.block-editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.block-editor-inserter__results{height:394px}}.block-editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks{margin:16px 0 0 16px}.block-editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative}.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.block-editor-block-types-list__item:not(:disabled):hover:before{content:"";display:block;background:#f3f4f5;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;right:0;bottom:0;left:0}.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:currentColor}.block-editor-block-types-list__item:not(:disabled).is-active,.block-editor-block-types-list__item:not(:disabled):active,.block-editor-block-types-list__item:not(:disabled):focus{position:relative;outline:none;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled).is-active .block-editor-block-types-list__item-title,.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled):active .block-editor-block-types-list__item-title,.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-icon,.block-editor-block-types-list__item:not(:disabled):focus .block-editor-block-types-list__item-title{color:currentColor}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all .05s ease-in-out}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}.block-editor-block-types-list__item-title{padding:4px 2px 8px}.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon{background:#fff;margin-right:3px;margin-bottom:6px;padding:9px 20px;position:relative;top:-2px;left:-2px;box-shadow:0 0 0 1px #e2e4e7}.block-editor-block-types-list__item-has-children .block-editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;right:-6px;border-radius:4px}.block-editor-media-placeholder__url-input-container{width:100%}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.block-editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .block-editor-media-placeholder__button{margin-right:4px}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.block-editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-settings.is-opened .block-editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-format-toolbar{display:flex;flex-shrink:0}.block-editor-format-toolbar__selection-position{position:absolute;transform:translateX(-50%)}.block-editor-format-toolbar .components-dropdown-menu__toggle .components-dropdown-menu__indicator:after{margin:7px}.block-editor-rich-text{position:relative}.block-editor-rich-text__editable{margin:0;position:relative;white-space:pre-wrap}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable a{color:#007fac}.block-editor-rich-text__editable code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .block-editor-rich-text__editable code{background:#67cffd}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.block-editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.block-editor-rich-text__editable:focus code[data-rich-text-format-boundary]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.block-editor-rich-text__editable[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.block-editor-rich-text__editable[data-is-placeholder-visible=true]>p{margin-top:0}.block-editor-rich-text__editable+.block-editor-rich-text__editable{pointer-events:none}.block-editor-rich-text__editable+.block-editor-rich-text__editable,.block-editor-rich-text__editable+.block-editor-rich-text__editable p{opacity:.62}.block-editor-rich-text__editable[data-is-placeholder-visible=true]+figcaption.block-editor-rich-text__editable{opacity:.8}.block-editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;left:0;right:0;z-index:1}.block-editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .block-editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .block-editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .block-editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .block-editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .block-editor-skip-to-selected-block:focus{color:#c75726}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px;font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;right:8px;top:9px;margin:0}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;text-align:left;border:none;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#e2e4e7}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:none}body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected,body.admin-color-sunrise .block-editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .block-editor-url-input__suggestion.is-selected,body.admin-color-ocean .block-editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .block-editor-url-input__suggestion.is-selected,body.admin-color-midnight .block-editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .block-editor-url-input__suggestion.is-selected,body.admin-color-coffee .block-editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .block-editor-url-input__suggestion.is-selected,body.admin-color-blue .block-editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .block-editor-url-input__suggestion.is-selected,body.admin-color-light .block-editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#e2e4e7}.block-editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-icon-button{padding:3px}.block-editor-url-popover .components-icon-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.block-editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.block-editor-url-popover .components-icon-button:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-icon-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #e2e4e7;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{padding:16px;border-top:1px solid #e2e4e7}.block-editor-url-popover__settings .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:left;padding:20px}.has-warning.is-multi-selected .block-editor-warning{background-color:transparent}.is-selected .block-editor-warning{border-color:rgba(66,88,99,.4) rgba(66,88,99,.4) rgba(66,88,99,.4) transparent}.is-dark-theme .is-selected .block-editor-warning{border-color:hsla(0,0%,100%,.45)}.block-editor-warning .block-editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 6px 0 0}.block-editor-warning__secondary{margin:3px 0 0 -4px}.block-editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.block-editor-warning__secondary{margin-left:4px}.block-editor-warning__secondary .components-icon-button{padding:8px 4px}}.block-editor-warning__secondary .components-button svg{transform:rotate(90deg)}.block-editor-writing-flow{height:100%;display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor-rtl.css b/wp-includes/css/dist/block-library/editor-rtl.css index 919cb615c6..ffec9b5482 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.css +++ b/wp-includes/css/dist/block-library/editor-rtl.css @@ -28,16 +28,19 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .block-editor ul.wp-block-archives { padding-right: 2.5em; } .wp-block-audio { margin: 0; } -.editor-block-list__block[data-type="core/button"][data-align="center"] { +.block-editor-block-list__block[data-type="core/button"][data-align="center"] { text-align: center; } -.editor-block-list__block[data-type="core/button"][data-align="right"] { +.block-editor-block-list__block[data-type="core/button"][data-align="right"] { text-align: right; } .wp-block-button { @@ -46,15 +49,15 @@ position: relative; } .wp-block-button [contenteditable] { cursor: text; } - .wp-block-button:not(.has-text-color):not(.is-style-outline) .editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable { + .wp-block-button:not(.has-text-color):not(.is-style-outline) .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable { color: #fff; } - .wp-block-button .editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable { + .wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable { opacity: 0.8; } - .editor-block-preview__content .wp-block-button { + .block-editor-block-preview__content .wp-block-button { max-width: 100%; } - .editor-block-preview__content .wp-block-button .editor-rich-text__editable[data-is-placeholder-visible="true"] { + .block-editor-block-preview__content .wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible="true"] { height: auto; } - .editor-block-preview__content .wp-block-button .wp-block-button__link { + .block-editor-block-preview__content .wp-block-button .wp-block-button__link { max-width: 100%; overflow: hidden; white-space: nowrap; @@ -69,20 +72,20 @@ font-size: 13px; line-height: 1.4; width: 374px; } - .block-library-button__inline-link .editor-url-input { + .block-library-button__inline-link .block-editor-url-input { width: auto; } - .block-library-button__inline-link .editor-url-input__suggestions { + .block-library-button__inline-link .block-editor-url-input__suggestions { width: 302px; z-index: 6; } .block-library-button__inline-link > .dashicon { width: 36px; } .block-library-button__inline-link .dashicon { color: #8f98a1; } - .block-library-button__inline-link .editor-url-input input[type="text"]:-ms-input-placeholder { + .block-library-button__inline-link .block-editor-url-input input[type="text"]:-ms-input-placeholder { color: #8f98a1; } - .block-library-button__inline-link .editor-url-input input[type="text"]::-ms-input-placeholder { + .block-library-button__inline-link .block-editor-url-input input[type="text"]::-ms-input-placeholder { color: #8f98a1; } - .block-library-button__inline-link .editor-url-input input[type="text"]::placeholder { + .block-library-button__inline-link .block-editor-url-input input[type="text"]::placeholder { color: #8f98a1; } [data-align="center"] .block-library-button__inline-link { margin-right: auto; @@ -96,15 +99,15 @@ .block-editor .wp-block-categories ul ul { margin-top: 6px; } -.wp-block-code .editor-plain-text { +.wp-block-code .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; } @media (min-width: 600px) { - .wp-block-code .editor-plain-text { + .wp-block-code .block-editor-plain-text { font-size: 13px; } } - .wp-block-code .editor-plain-text:focus { + .wp-block-code .block-editor-plain-text:focus { box-shadow: none; } .components-tab-button { @@ -144,29 +147,29 @@ background-color: #555d66; color: #fff; } -.wp-block-columns .editor-block-list__layout { +.wp-block-columns .block-editor-block-list__layout { margin-right: 0; margin-left: 0; } - .wp-block-columns .editor-block-list__layout .editor-block-list__block { + .wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block { max-width: none; } -.editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks { +.block-editor-block-list__block[data-align="full"] .wp-block-columns > .block-editor-inner-blocks { padding-right: 14px; padding-left: 14px; } @media (min-width: 600px) { - .editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks { + .block-editor-block-list__block[data-align="full"] .wp-block-columns > .block-editor-inner-blocks { padding-right: 60px; padding-left: 60px; } } .wp-block-columns { display: block; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { display: flex; flex-wrap: wrap; } @media (min-width: 782px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { flex-wrap: nowrap; } } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { display: flex; flex-direction: column; flex: 1; @@ -178,44 +181,44 @@ word-break: break-word; overflow-wrap: break-word; flex-basis: 100%; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div > .editor-inner-blocks { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > div > .block-editor-inner-blocks { margin-top: -28px; margin-bottom: -28px; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit { margin-top: 0; margin-bottom: 0; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit::before { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit::before { right: 0; left: 0; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar { margin-right: -1px; } @media (min-width: 600px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { margin-right: 14px; margin-left: 14px; } } @media (min-width: 600px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { flex-basis: calc(50% - (16px + 28px)); flex-grow: 0; } } @media (min-width: 600px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(even) { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:nth-child(even) { margin-right: calc(32px + 14px); } } @media (min-width: 782px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:first-child) { margin-right: calc(32px + 14px); } } .wp-block-columns [data-type="core/column"] { pointer-events: none; } - .wp-block-columns [data-type="core/column"].is-hovered > .editor-block-list__block-edit::before { + .wp-block-columns [data-type="core/column"].is-hovered > .block-editor-block-list__block-edit::before { content: none; } - .wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb { + .wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb { display: none; } -:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > * { +:not(.components-disabled) > .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > * { pointer-events: all; } -.wp-block-cover-image .editor-rich-text__editable:focus a[data-rich-text-format-boundary], -.wp-block-cover .editor-rich-text__editable:focus a[data-rich-text-format-boundary] { +.wp-block-cover-image .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary], +.wp-block-cover .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary] { box-shadow: none; background: rgba(255, 255, 255, 0.3); } @@ -223,13 +226,28 @@ .wp-block-cover.components-placeholder h2 { color: inherit; } -.wp-block-cover-image.has-left-content .editor-rich-text__inline-toolbar, -.wp-block-cover.has-left-content .editor-rich-text__inline-toolbar { - justify-content: flex-start; } +.wp-block-cover-image.has-right-content .block-editor-rich-text__inline-toolbar, +.wp-block-cover-image.has-left-content .block-editor-rich-text__inline-toolbar, +.wp-block-cover.has-right-content .block-editor-rich-text__inline-toolbar, +.wp-block-cover.has-left-content .block-editor-rich-text__inline-toolbar { + display: inline-block; } -.wp-block-cover-image.has-right-content .editor-rich-text__inline-toolbar, -.wp-block-cover.has-right-content .editor-rich-text__inline-toolbar { - justify-content: flex-end; } +.wp-block-cover-image .block-editor-block-list__layout, +.wp-block-cover .block-editor-block-list__layout { + width: 100%; } + +.wp-block-cover-image .block-editor-block-list__block, +.wp-block-cover .block-editor-block-list__block { + color: #f8f9f9; } + +.wp-block-cover-image .wp-block-cover__inner-container, +.wp-block-cover .wp-block-cover__inner-container { + text-align: right; } + +.wp-block-cover-image .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout, +.wp-block-cover .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { + margin-right: 0; + margin-left: 0; } .wp-block-cover-image.components-placeholder, .wp-block-cover.components-placeholder { @@ -299,12 +317,9 @@ margin-right: 1em; } .wp-block-freeform.block-library-rich-text__tinymce { - overflow: hidden; - /** - * The following gallery styles were replicated - * from the styles applied in the tinymce skin, - * /wp-includes/js/tinymce/skins/wordpress/wp-content.css. - */ } + /* Remove blue highlighting of selected images in WebKit */ + /* Image captions */ + /* WP Views */ } .wp-block-freeform.block-library-rich-text__tinymce p, .wp-block-freeform.block-library-rich-text__tinymce li { line-height: 1.8; } @@ -369,16 +384,76 @@ margin-left: auto; } .wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag { width: 96%; - height: 0; + height: 20px; display: block; margin: 15px auto; outline: 0; cursor: default; - border: 2px dashed #bababa; } - .wp-block-freeform.block-library-rich-text__tinymce .wpview-type-gallery::after { - content: ""; - display: table; - clear: both; } + background-image: url(/wp-includes/js/tinymce/skins/wordpress/images/more-2x.png); + background-size: 1900px 20px; + background-repeat: no-repeat; + background-position: center; } + .wp-block-freeform.block-library-rich-text__tinymce img::selection { + background-color: transparent; } + .wp-block-freeform.block-library-rich-text__tinymce div.mceTemp { + -ms-user-select: element; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption { + margin: 0; + /* dl browser reset */ + max-width: 100%; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a, + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img { + display: block; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption, + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption * { + -webkit-user-drag: none; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd { + padding-top: 0.5em; + margin: 0; + /* browser dd reset */ } + .wp-block-freeform.block-library-rich-text__tinymce .wpview { + width: 99.99%; + /* All IE need hasLayout, incl. 11 (ugh, not again!!) */ + position: relative; + clear: both; + margin-bottom: 16px; + border: 1px solid transparent; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview iframe { + display: block; + max-width: 100%; + background: transparent; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim { + display: none; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder { + border: 1px dashed #e8eaeb; + padding: 10px; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error { + border: 1px solid #e8eaeb; + padding: 1em 0; + margin: 0; + word-wrap: break-word; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p { + margin: 0; + text-align: center; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder, + .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error { + border-color: transparent; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons { + display: block; + margin: 0 auto; + width: 32px; + height: 32px; + font-size: 32px; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery::after { + content: ""; + display: table; + clear: both; } .wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus { outline: none; } .wp-block-freeform.block-library-rich-text__tinymce .gallery a { @@ -424,28 +499,40 @@ border: none; padding: 0; } -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active button, -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover button, -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active i, -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover i { - color: #23282d; } +div[data-type="core/freeform"] .block-editor-block-list__block-edit::before { + transition: border-color 0.1s linear, box-shadow 0.1s linear; + border: 1px solid #e2e4e7; + outline: 1px solid transparent; } -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn i { - font-style: normal; } +div[data-type="core/freeform"].is-selected .block-editor-block-list__block-edit::before { + border-color: #b5bcc2; + border-right-color: transparent; } -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-toolbar-grp > div { - padding: 1px 3px; } - -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .editor-block-list__block-edit::before { - outline: 1px solid #e2e4e7; } - -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"].is-hovered .editor-block-list__breadcrumb { +div[data-type="core/freeform"].is-hovered .block-editor-block-list__breadcrumb { display: none; } div[data-type="core/freeform"] .editor-block-contextual-toolbar + div { margin-top: 0; padding-top: 0; } +div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::after { + content: ""; + display: table; + clear: both; } + +.mce-toolbar-grp .mce-btn.mce-active button, +.mce-toolbar-grp .mce-btn.mce-active:hover button, +.mce-toolbar-grp .mce-btn.mce-active i, +.mce-toolbar-grp .mce-btn.mce-active:hover i { + color: #23282d; } + +.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last { + margin-left: 0; + margin-right: 8px; } + +.mce-toolbar-grp .mce-btn i { + font-style: normal; } + .block-library-classic__toolbar { width: auto; margin: 0 -14px; @@ -454,71 +541,75 @@ div[data-type="core/freeform"] .editor-block-contextual-toolbar + div { z-index: 10; top: 14px; transform: translateY(-14px); + border: 1px solid #e2e4e7; + border-bottom: none; padding: 0 14px; } + .is-selected .block-library-classic__toolbar { + border-color: #b5bcc2; + border-right-color: transparent; } @media (min-width: 600px) { .block-library-classic__toolbar { padding: 0; } } - -.block-library-classic__toolbar:empty { - height: 37px; - background: #f5f5f5; - border-bottom: 1px solid #e2e4e7; } - .block-library-classic__toolbar:empty::before { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - content: attr(data-placeholder); - color: #555d66; - line-height: 37px; - padding: 14px; } - -.block-library-classic__toolbar .mce-tinymce-inline, -.block-library-classic__toolbar .mce-tinymce-inline > div, -.block-library-classic__toolbar div.mce-toolbar-grp, -.block-library-classic__toolbar div.mce-toolbar-grp > div, -.block-library-classic__toolbar .mce-menubar, -.block-library-classic__toolbar .mce-menubar > div { - height: auto !important; - width: 100% !important; } - -.block-library-classic__toolbar .mce-container-body.mce-abs-layout { - overflow: visible; } - -.block-library-classic__toolbar .mce-menubar, -.block-library-classic__toolbar div.mce-toolbar-grp { - position: static; } - -.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child) { - display: none; } - -.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar { - display: block; } + .block-library-classic__toolbar:empty { + height: 37px; + background: #f5f5f5; + border-bottom: 1px solid #e2e4e7; } + .block-library-classic__toolbar:empty::before { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + content: attr(data-placeholder); + color: #555d66; + line-height: 37px; + padding: 14px; } + .block-library-classic__toolbar .mce-tinymce-inline, + .block-library-classic__toolbar .mce-tinymce-inline > div, + .block-library-classic__toolbar div.mce-toolbar-grp, + .block-library-classic__toolbar div.mce-toolbar-grp > div, + .block-library-classic__toolbar .mce-menubar, + .block-library-classic__toolbar .mce-menubar > div { + height: auto !important; + width: 100% !important; } + .block-library-classic__toolbar .mce-container-body.mce-abs-layout { + overflow: visible; } + .block-library-classic__toolbar .mce-menubar, + .block-library-classic__toolbar div.mce-toolbar-grp { + position: static; } + .block-library-classic__toolbar .mce-toolbar-grp > div { + padding: 1px 3px; } + .block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child) { + display: none; } + .block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar { + display: block; } @media (min-width: 600px) { - .editor-block-list__block[data-type="core/freeform"] .editor-block-switcher__no-switcher-icon { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-switcher__no-switcher-icon { display: none; } - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar { float: left; - margin-left: 23px; + margin-left: 25px; transform: translateY(-13px); top: 14px; } - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar { border: none; + box-shadow: none; margin-top: 3px; } } @media (min-width: 600px) and (min-width: 782px) { - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar { margin-top: 0; } } @media (min-width: 600px) { - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar::before { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar::before { content: ""; display: block; border-right: 1px solid #e2e4e7; margin-top: 4px; margin-bottom: 4px; } - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .components-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar__control.components-button:hover { + background-color: transparent; } + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .components-toolbar { background: transparent; border: none; } - .editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item { + .block-editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item { padding-left: 36px; } } ul.wp-block-gallery li { @@ -555,27 +646,27 @@ body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .b .blocks-gallery-item .is-transient img { opacity: 0.3; } -.blocks-gallery-item .editor-rich-text { +.blocks-gallery-item .block-editor-rich-text { position: absolute; bottom: 0; width: 100%; max-height: 100%; overflow-y: auto; } -.blocks-gallery-item .editor-rich-text figcaption:not([data-is-placeholder-visible="true"]) { +.blocks-gallery-item .block-editor-rich-text figcaption:not([data-is-placeholder-visible="true"]) { position: relative; overflow: hidden; } @supports ((position: -webkit-sticky) or (position: sticky)) { - .blocks-gallery-item .is-selected .editor-rich-text { + .blocks-gallery-item .is-selected .block-editor-rich-text { left: 0; right: 0; margin-top: -4px; } } -.blocks-gallery-item .is-selected .editor-rich-text .editor-rich-text__inline-toolbar { +.blocks-gallery-item .is-selected .block-editor-rich-text .block-editor-rich-text__inline-toolbar { top: 0; } -.blocks-gallery-item .is-selected .editor-rich-text figcaption { +.blocks-gallery-item .is-selected .block-editor-rich-text figcaption { padding-top: 48px; } .blocks-gallery-item .components-form-file-upload, @@ -596,10 +687,10 @@ body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .b .blocks-gallery-item .components-button.block-library-gallery-add-item-button:hover, .blocks-gallery-item .components-button.block-library-gallery-add-item-button:focus { border: 1px solid #555d66; } -.blocks-gallery-item .editor-rich-text figcaption a { +.blocks-gallery-item .block-editor-rich-text figcaption a { color: #fff; } -.blocks-gallery-item .editor-rich-text figcaption:focus a[data-rich-text-format-boundary] { +.blocks-gallery-item .block-editor-rich-text figcaption:focus a[data-rich-text-format-boundary] { color: rgba(0, 0, 0, 0.2); } .block-library-gallery-item__inline-menu { @@ -689,7 +780,7 @@ body.admin-color-light .block-library-gallery-item__inline-menu { .wp-block-heading h4 { line-height: 1.5; } -.wp-block-html .editor-plain-text { +.wp-block-html .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; padding: 0.8em 1em; @@ -698,9 +789,9 @@ body.admin-color-light .block-library-gallery-item__inline-menu { /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; } @media (min-width: 600px) { - .wp-block-html .editor-plain-text { + .wp-block-html .block-editor-plain-text { font-size: 13px; } } - .wp-block-html .editor-plain-text:focus { + .wp-block-html .block-editor-plain-text:focus { box-shadow: none; } .wp-block-image { @@ -726,11 +817,11 @@ body.admin-color-light .block-library-gallery-item__inline-menu { display: block; z-index: 1; } -.editor-block-list__block[data-type="core/image"][data-align="center"] .wp-block-image { +.block-editor-block-list__block[data-type="core/image"][data-align="center"] .wp-block-image { margin-right: auto; margin-left: auto; } -.editor-block-list__block[data-type="core/image"][data-align="center"][data-resized="false"] .wp-block-image > div { +.block-editor-block-list__block[data-type="core/image"][data-align="center"][data-resized="false"] .wp-block-image > div { margin-right: auto; margin-left: auto; } @@ -750,24 +841,24 @@ body.admin-color-light .block-library-gallery-item__inline-menu { .edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height { margin-right: 5px; } -.editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal { +.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { position: absolute; right: 0; left: 0; margin: -1px 0; } @media (min-width: 600px) { - .editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal { + .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { margin: -1px; } } -[data-type="core/image"][data-align="center"] .editor-block-list__block-edit figure, -[data-type="core/image"][data-align="left"] .editor-block-list__block-edit figure, -[data-type="core/image"][data-align="right"] .editor-block-list__block-edit figure { +[data-type="core/image"][data-align="center"] .block-editor-block-list__block-edit figure, +[data-type="core/image"][data-align="left"] .block-editor-block-list__block-edit figure, +[data-type="core/image"][data-align="right"] .block-editor-block-list__block-edit figure { margin: 0; display: table; } -[data-type="core/image"][data-align="center"] .editor-block-list__block-edit .editor-rich-text, -[data-type="core/image"][data-align="left"] .editor-block-list__block-edit .editor-rich-text, -[data-type="core/image"][data-align="right"] .editor-block-list__block-edit .editor-rich-text { +[data-type="core/image"][data-align="center"] .block-editor-block-list__block-edit .block-editor-rich-text, +[data-type="core/image"][data-align="left"] .block-editor-block-list__block-edit .block-editor-rich-text, +[data-type="core/image"][data-align="right"] .block-editor-block-list__block-edit .block-editor-rich-text { display: table-caption; caption-side: bottom; } @@ -775,10 +866,10 @@ body.admin-color-light .block-library-gallery-item__inline-menu { [data-type="core/image"][data-align="full"] figure img { width: 100%; } -[data-type="core/image"] .editor-block-list__block-edit figure.is-resized { +[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized { margin: 0; display: table; } - [data-type="core/image"] .editor-block-list__block-edit figure.is-resized .editor-rich-text { + [data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized .block-editor-rich-text { display: table-caption; caption-side: bottom; } @@ -799,6 +890,28 @@ body.admin-color-light .block-library-gallery-item__inline-menu { .block-editor .wp-block-latest-posts.is-grid { padding-right: 0; } +.wp-block-latest-posts li a > div { + display: inline; } + +.wp-block-legacy-widget__edit-container, +.wp-block-legacy-widget__preview { + padding-right: 2.5em; + padding-left: 2.5em; } + +.wp-block-legacy-widget__edit-container .widget-inside { + border: none; + display: block; } + +.wp-block-legacy-widget__update-button { + margin-right: auto; + display: block; } + +.wp-block-legacy-widget__edit-container .widget-inside { + box-shadow: none; } + +.wp-block-legacy-widget__preview { + overflow: auto; } + .wp-block-media-text { grid-template-areas: "media-text-media media-text-content" "resizer resizer"; } @@ -813,13 +926,13 @@ body.admin-color-light .block-library-gallery-item__inline-menu { align-self: center; width: 100% !important; } -.wp-block-media-text .editor-inner-blocks { +.wp-block-media-text .block-editor-inner-blocks { word-break: break-word; grid-area: media-text-content; text-align: initial; padding: 0 8% 0 8%; } -.wp-block-media-text > .editor-inner-blocks > .editor-block-list__layout > .editor-block-list__block { +.wp-block-media-text > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block { max-width: unset; } figure.block-library-media-text__media-container { @@ -847,7 +960,7 @@ figure.block-library-media-text__media-container { padding-right: 1.3em; margin-right: 1.3em; } -.editor-block-list__block[data-type="core/more"] { +.block-editor-block-list__block[data-type="core/more"] { max-width: 100%; text-align: center; } @@ -881,7 +994,7 @@ figure.block-library-media-text__media-container { left: 0; border-top: 3px dashed #ccd0d4; } -.editor-visual-editor__block[data-type="core/nextpage"] { +.block-editor-block-list__block[data-type="core/nextpage"] { max-width: 100%; } .wp-block-nextpage { @@ -908,25 +1021,25 @@ figure.block-library-media-text__media-container { left: 0; border-top: 3px dashed #ccd0d4; } -.editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable.wp-block-paragraph { +.block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable.wp-block-paragraph { padding-left: 108px; } - .wp-block .wp-block .editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable.wp-block-paragraph { + .wp-block .wp-block .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable.wp-block-paragraph { padding-left: 36px; } .wp-block-preformatted pre { white-space: pre-wrap; } -.editor-block-list__block[data-type="core/pullquote"][data-align="left"] .editor-rich-text p, .editor-block-list__block[data-type="core/pullquote"][data-align="right"] .editor-rich-text p { +.block-editor-block-list__block[data-type="core/pullquote"][data-align="left"] .block-editor-rich-text p, .block-editor-block-list__block[data-type="core/pullquote"][data-align="right"] .block-editor-rich-text p { font-size: 20px; } -.wp-block-pullquote blockquote > .editor-rich-text p { +.wp-block-pullquote blockquote > .block-editor-rich-text p { font-size: 28px; line-height: 1.6; } .wp-block-pullquote.is-style-solid-color { margin-right: 0; margin-left: 0; } - .wp-block-pullquote.is-style-solid-color blockquote > .editor-rich-text p { + .wp-block-pullquote.is-style-solid-color blockquote > .block-editor-rich-text p { font-size: 32px; } .wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation { text-transform: none; @@ -978,7 +1091,7 @@ figure.block-library-media-text__media-container { white-space: nowrap; font-weight: 600; flex-shrink: 0; } - .wp-block-shortcode .editor-plain-text { + .wp-block-shortcode .block-editor-plain-text { flex-grow: 1; } .wp-block-shortcode .dashicon { margin-left: 8px; } @@ -991,12 +1104,12 @@ figure.block-library-media-text__media-container { font-size: 1.1em; font-style: italic; } -.editor-block-list__block[data-type="core/table"][data-align="left"] table, .editor-block-list__block[data-type="core/table"][data-align="right"] table, .editor-block-list__block[data-type="core/table"][data-align="center"] table { +.block-editor-block-list__block[data-type="core/table"][data-align="left"] table, .block-editor-block-list__block[data-type="core/table"][data-align="right"] table, .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { width: auto; } -.editor-block-list__block[data-type="core/table"][data-align="center"] { +.block-editor-block-list__block[data-type="core/table"][data-align="center"] { text-align: initial; } - .editor-block-list__block[data-type="core/table"][data-align="center"] table { + .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { margin: 0 auto; } .wp-block-table table { @@ -1027,7 +1140,7 @@ figure.block-library-media-text__media-container { color: #8f98a1; text-decoration: none; } -.wp-block-text-columns .editor-rich-text__editable:focus { +.wp-block-text-columns .block-editor-rich-text__editable:focus { outline: 1px solid #e2e4e7; } pre.wp-block-verse, @@ -1039,7 +1152,7 @@ pre.wp-block-verse, padding: 1em; overflow: auto; } -.editor-block-list__block[data-align="center"] { +.block-editor-block-list__block[data-align="center"] { text-align: center; } .editor-video-poster-control .components-button { diff --git a/wp-includes/css/dist/block-library/editor-rtl.min.css b/wp-includes/css/dist/block-library/editor-rtl.min.css index e9f831d694..4c86b41e38 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.min.css +++ b/wp-includes/css/dist/block-library/editor-rtl.min.css @@ -1 +1 @@ -.block-editor ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin:0}.editor-block-list__block[data-type="core/button"][data-align=center]{text-align:center}.editor-block-list__block[data-type="core/button"][data-align=right]{text-align:right}.wp-block-button{display:inline-block;margin-bottom:0;position:relative}.wp-block-button [contenteditable]{cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) .editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable{color:#fff}.wp-block-button .editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable{opacity:.8}.editor-block-preview__content .wp-block-button{max-width:100%}.editor-block-preview__content .wp-block-button .editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.editor-block-preview__content .wp-block-button .wp-block-button__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.block-library-button__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}.block-library-button__inline-link .editor-url-input{width:auto}.block-library-button__inline-link .editor-url-input__suggestions{width:302px;z-index:6}.block-library-button__inline-link>.dashicon{width:36px}.block-library-button__inline-link .dashicon{color:#8f98a1}.block-library-button__inline-link .editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .editor-url-input input[type=text]::placeholder{color:#8f98a1}[data-align=center] .block-library-button__inline-link{margin-right:auto;margin-left:auto}[data-align=right] .block-library-button__inline-link{margin-right:auto;margin-left:0}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code .editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;font-size:16px}@media (min-width:600px){.wp-block-code .editor-plain-text{font-size:13px}}.wp-block-code .editor-plain-text:focus{box-shadow:none}.components-tab-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;background:none;outline:none;color:#555d66;cursor:pointer;position:relative;height:36px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:500;border:0}.components-tab-button.is-active,.components-tab-button.is-active:hover{color:#fff}.components-tab-button:disabled{cursor:default}.components-tab-button>span{border:1px solid transparent;padding:0 6px;box-sizing:content-box;height:28px;line-height:28px}.components-tab-button:focus>span,.components-tab-button:hover>span{color:#555d66}.components-tab-button:not(:disabled).is-active>span,.components-tab-button:not(:disabled):focus>span,.components-tab-button:not(:disabled):hover>span{border:1px solid #555d66}.components-tab-button.is-active:hover>span,.components-tab-button.is-active>span{background-color:#555d66;color:#fff}.wp-block-columns .editor-block-list__layout{margin-right:0;margin-left:0}.wp-block-columns .editor-block-list__layout .editor-block-list__block{max-width:none}.editor-block-list__block[data-align=full] .wp-block-columns>.editor-inner-blocks{padding-right:14px;padding-left:14px}@media (min-width:600px){.editor-block-list__block[data-align=full] .wp-block-columns>.editor-inner-blocks{padding-right:60px;padding-left:60px}}.wp-block-columns{display:block}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout{flex-wrap:nowrap}}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]{display:flex;flex-direction:column;flex:1;padding-right:0;padding-left:0;margin-right:-14px;margin-left:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;flex-basis:100%}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit>div>.editor-inner-blocks{margin-top:-28px;margin-bottom:-28px}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit{margin-top:0;margin-bottom:0}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit:before{right:0;left:0}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{margin-right:-1px}@media (min-width:600px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]{margin-right:14px;margin-left:14px;flex-basis:calc(50% - 44px);flex-grow:0}}@media (min-width:600px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]:nth-child(2n){margin-right:46px}}@media (min-width:782px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]:not(:first-child){margin-right:46px}}.wp-block-columns [data-type="core/column"]{pointer-events:none}.wp-block-columns [data-type="core/column"].is-hovered>.editor-block-list__block-edit:before{content:none}.wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb{display:none}:not(.components-disabled)>.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit>*{pointer-events:all}.wp-block-cover-image .editor-rich-text__editable:focus a[data-rich-text-format-boundary],.wp-block-cover .editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:none;background:hsla(0,0%,100%,.3)}.wp-block-cover-image.components-placeholder h2,.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover-image.has-left-content .editor-rich-text__inline-toolbar,.wp-block-cover.has-left-content .editor-rich-text__inline-toolbar{justify-content:flex-start}.wp-block-cover-image.has-right-content .editor-rich-text__inline-toolbar,.wp-block-cover.has-right-content .editor-rich-text__inline-toolbar{justify-content:flex-end}.wp-block-cover-image.components-placeholder,.wp-block-cover.components-placeholder{background:rgba(139,139,150,.1);min-height:200px}.is-dark-theme .wp-block-cover-image.components-placeholder,.is-dark-theme .wp-block-cover.components-placeholder{background:hsla(0,0%,100%,.15)}[data-align=left] .wp-block-cover,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}.wp-block-embed{margin:0;clear:both}@media (min-width:600px){.wp-block-embed{min-width:360px}.wp-block-embed.components-placeholder{min-width:0}}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file.is-transient{animation:edit-post__loading-fade-animation 1.6s ease-in-out infinite}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce{overflow:hidden}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce h1{font-size:2em}.wp-block-freeform.block-library-rich-text__tinymce h2{font-size:1.6em}.wp-block-freeform.block-library-rich-text__tinymce h3{font-size:1.4em}.wp-block-freeform.block-library-rich-text__tinymce h4{font-size:1.2em}.wp-block-freeform.block-library-rich-text__tinymce h5{font-size:1.1em}.wp-block-freeform.block-library-rich-text__tinymce h6{font-size:1em}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:0;display:block;margin:15px auto;outline:0;cursor:default;border:2px dashed #bababa}.wp-block-freeform.block-library-rich-text__tinymce .wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover button,.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover i,.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active button,.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active i{color:#23282d}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn i{font-style:normal}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-toolbar-grp>div{padding:1px 3px}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .editor-block-list__block-edit:before{outline:1px solid #e2e4e7}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"].is-hovered .editor-block-list__breadcrumb{display:none}div[data-type="core/freeform"] .editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}.block-library-classic__toolbar{width:auto;margin:0 -14px;position:-webkit-sticky;position:sticky;z-index:10;top:14px;transform:translateY(-14px);padding:0 14px}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{height:37px;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}@media (min-width:600px){.editor-block-list__block[data-type="core/freeform"] .editor-block-switcher__no-switcher-icon{display:none}.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar{float:left;margin-left:23px;transform:translateY(-13px);top:14px}.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar{border:none;margin-top:3px}}@media (min-width:600px) and (min-width:782px){.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar{margin-top:0}}@media (min-width:600px){.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar:before{content:"";display:block;border-right:1px solid #e2e4e7;margin-top:4px;margin-bottom:4px}.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .components-toolbar{background:transparent;border:none}.editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item{padding-left:36px}}ul.wp-block-gallery li{list-style-type:none}.blocks-gallery-item figure:not(.is-selected):focus{outline:none}.blocks-gallery-item .is-selected,.blocks-gallery-item img:focus{outline:4px solid #0085ba}body.admin-color-sunrise .blocks-gallery-item .is-selected,body.admin-color-sunrise .blocks-gallery-item img:focus{outline:4px solid #d1864a}body.admin-color-ocean .blocks-gallery-item .is-selected,body.admin-color-ocean .blocks-gallery-item img:focus{outline:4px solid #a3b9a2}body.admin-color-midnight .blocks-gallery-item .is-selected,body.admin-color-midnight .blocks-gallery-item img:focus{outline:4px solid #e14d43}body.admin-color-ectoplasm .blocks-gallery-item .is-selected,body.admin-color-ectoplasm .blocks-gallery-item img:focus{outline:4px solid #a7b656}body.admin-color-coffee .blocks-gallery-item .is-selected,body.admin-color-coffee .blocks-gallery-item img:focus{outline:4px solid #c2a68c}body.admin-color-blue .blocks-gallery-item .is-selected,body.admin-color-blue .blocks-gallery-item img:focus{outline:4px solid #82b4cb}body.admin-color-light .blocks-gallery-item .is-selected,body.admin-color-light .blocks-gallery-item img:focus{outline:4px solid #0085ba}.blocks-gallery-item .is-transient img{opacity:.3}.blocks-gallery-item .editor-rich-text{position:absolute;bottom:0;width:100%;max-height:100%;overflow-y:auto}.blocks-gallery-item .editor-rich-text figcaption:not([data-is-placeholder-visible=true]){position:relative;overflow:hidden}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-item .is-selected .editor-rich-text{left:0;right:0;margin-top:-4px}}.blocks-gallery-item .is-selected .editor-rich-text .editor-rich-text__inline-toolbar{top:0}.blocks-gallery-item .is-selected .editor-rich-text figcaption{padding-top:48px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button,.blocks-gallery-item .components-form-file-upload{width:100%;height:100%}.blocks-gallery-item .components-button.block-library-gallery-add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button .dashicon{margin-top:10px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button:focus,.blocks-gallery-item .components-button.block-library-gallery-add-item-button:hover{border:1px solid #555d66}.blocks-gallery-item .editor-rich-text figcaption a{color:#fff}.blocks-gallery-item .editor-rich-text figcaption:focus a[data-rich-text-format-boundary]{color:rgba(0,0,0,.2)}.block-library-gallery-item__inline-menu{padding:2px;position:absolute;top:-2px;left:-2px;background-color:#0085ba;display:inline-flex;z-index:20}body.admin-color-sunrise .block-library-gallery-item__inline-menu{background-color:#d1864a}body.admin-color-ocean .block-library-gallery-item__inline-menu{background-color:#a3b9a2}body.admin-color-midnight .block-library-gallery-item__inline-menu{background-color:#e14d43}body.admin-color-ectoplasm .block-library-gallery-item__inline-menu{background-color:#a7b656}body.admin-color-coffee .block-library-gallery-item__inline-menu{background-color:#c2a68c}body.admin-color-blue .block-library-gallery-item__inline-menu{background-color:#82b4cb}body.admin-color-light .block-library-gallery-item__inline-menu{background-color:#0085ba}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__inline-menu .components-button:focus,.block-library-gallery-item__inline-menu .components-button:hover{color:#fff}.blocks-gallery-item__remove{padding:0}.blocks-gallery-item__remove.components-button:focus{color:inherit}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2){margin-left:0}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3,.wp-block-heading h4,.wp-block-heading h5,.wp-block-heading h6{color:inherit;margin:0}.wp-block-heading h1{font-size:2.44em}.wp-block-heading h2{font-size:1.95em}.wp-block-heading h3{font-size:1.56em}.wp-block-heading h4{font-size:1.25em}.wp-block-heading h5{font-size:1em}.wp-block-heading h6{font-size:.8em}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3{line-height:1.4}.wp-block-heading h4{line-height:1.5}.wp-block-html .editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;font-size:16px}@media (min-width:600px){.wp-block-html .editor-plain-text{font-size:13px}}.wp-block-html .editor-plain-text:focus{box-shadow:none}.wp-block-image{position:relative}.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:100%}.wp-block-image.is-focused .components-resizable-box__handle{display:block;z-index:1}.editor-block-list__block[data-type="core/image"][data-align=center] .wp-block-image,.editor-block-list__block[data-type="core/image"][data-align=center][data-resized=false] .wp-block-image>div{margin-right:auto;margin-left:auto}.edit-post-sidebar .block-library-image__dimensions{margin-bottom:1em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row{display:flex;justify-content:space-between}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-bottom:.5em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height input,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width input{line-height:1.25}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-left:5px}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height{margin-right:5px}.editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal{margin:-1px}}[data-type="core/image"][data-align=center] .editor-block-list__block-edit figure,[data-type="core/image"][data-align=left] .editor-block-list__block-edit figure,[data-type="core/image"][data-align=right] .editor-block-list__block-edit figure{margin:0;display:table}[data-type="core/image"][data-align=center] .editor-block-list__block-edit .editor-rich-text,[data-type="core/image"][data-align=left] .editor-block-list__block-edit .editor-rich-text,[data-type="core/image"][data-align=right] .editor-block-list__block-edit .editor-rich-text{display:table-caption;caption-side:bottom}[data-type="core/image"][data-align=full] figure img,[data-type="core/image"][data-align=wide] figure img{width:100%}[data-type="core/image"] .editor-block-list__block-edit figure.is-resized{margin:0;display:table}[data-type="core/image"] .editor-block-list__block-edit figure.is-resized .editor-rich-text{display:table-caption;caption-side:bottom}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-media-text{grid-template-areas:"media-text-media media-text-content" "resizer resizer"}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media" "resizer resizer"}.wp-block-media-text .__resizable_base__{grid-area:resizer}.wp-block-media-text .editor-media-container__resizer{grid-area:media-text-media;align-self:center;width:100%!important}.wp-block-media-text .editor-inner-blocks{word-break:break-word;grid-area:media-text-content;text-align:initial;padding:0 8%}.wp-block-media-text>.editor-inner-blocks>.editor-block-list__layout>.editor-block-list__block{max-width:unset}figure.block-library-media-text__media-container{margin:0;height:100%;width:100%}.wp-block-media-text .block-library-media-text__media-container img,.wp-block-media-text .block-library-media-text__media-container video{vertical-align:middle;width:100%}.editor-media-container__resizer .components-resizable-box__handle{display:none}.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle{display:block}@media (min-width:600px){.wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle{display:block}}.editor-styles-wrapper .block-library-list ol,.editor-styles-wrapper .block-library-list ul{padding-right:1.3em;margin-right:1.3em}.editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}.editor-visual-editor__block[data-type="core/nextpage"]{max-width:100%}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}.editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable.wp-block-paragraph{padding-left:108px}.wp-block .wp-block .editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable.wp-block-paragraph{padding-left:36px}.wp-block-preformatted pre{white-space:pre-wrap}.editor-block-list__block[data-type="core/pullquote"][data-align=left] .editor-rich-text p,.editor-block-list__block[data-type="core/pullquote"][data-align=right] .editor-rich-text p{font-size:20px}.wp-block-pullquote blockquote>.editor-rich-text p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-right:0;margin-left:0}.wp-block-pullquote.is-style-solid-color blockquote>.editor-rich-text p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote{margin:0}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-search .wp-block-search__input{border-radius:4px;border:1px solid #8d96a0;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__button .wp-block-search__button-rich-text{padding:6px 10px}.wp-block-shortcode{display:flex;flex-direction:row;padding:14px;background-color:#f8f9f9;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-shortcode label{display:flex;align-items:center;margin-left:8px;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .editor-plain-text{flex-grow:1}.wp-block-shortcode .dashicon{margin-left:8px}.block-library-spacer__resize-container.is-selected{background:#f3f4f5}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.editor-block-list__block[data-type="core/table"][data-align=center] table,.editor-block-list__block[data-type="core/table"][data-align=left] table,.editor-block-list__block[data-type="core/table"][data-align=right] table{width:auto}.editor-block-list__block[data-type="core/table"][data-align=center]{text-align:initial}.editor-block-list__block[data-type="core/table"][data-align=center] table{margin:0 auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table td,.wp-block-table th{padding:0;border:1px solid #000}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table__cell-content{padding:.5em}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#8f98a1;text-decoration:none}.wp-block-text-columns .editor-rich-text__editable:focus{outline:1px solid #e2e4e7}.wp-block-verse pre,pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.editor-block-list__block[data-align=center]{text-align:center}.editor-video-poster-control .components-button{margin-left:8px}.editor-video-poster-control .components-button+.components-button{margin-top:1em} \ No newline at end of file +.block-editor ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin:0}.block-editor-block-list__block[data-type="core/button"][data-align=center]{text-align:center}.block-editor-block-list__block[data-type="core/button"][data-align=right]{text-align:right}.wp-block-button{display:inline-block;margin-bottom:0;position:relative}.wp-block-button [contenteditable]{cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{color:#fff}.wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{opacity:.8}.block-editor-block-preview__content .wp-block-button{max-width:100%}.block-editor-block-preview__content .wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.block-editor-block-preview__content .wp-block-button .wp-block-button__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.block-library-button__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}.block-library-button__inline-link .block-editor-url-input{width:auto}.block-library-button__inline-link .block-editor-url-input__suggestions{width:302px;z-index:6}.block-library-button__inline-link>.dashicon{width:36px}.block-library-button__inline-link .dashicon{color:#8f98a1}.block-library-button__inline-link .block-editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .block-editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .block-editor-url-input input[type=text]::placeholder{color:#8f98a1}[data-align=center] .block-library-button__inline-link{margin-right:auto;margin-left:auto}[data-align=right] .block-library-button__inline-link{margin-right:auto;margin-left:0}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;font-size:16px}@media (min-width:600px){.wp-block-code .block-editor-plain-text{font-size:13px}}.wp-block-code .block-editor-plain-text:focus{box-shadow:none}.components-tab-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;background:none;outline:none;color:#555d66;cursor:pointer;position:relative;height:36px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:500;border:0}.components-tab-button.is-active,.components-tab-button.is-active:hover{color:#fff}.components-tab-button:disabled{cursor:default}.components-tab-button>span{border:1px solid transparent;padding:0 6px;box-sizing:content-box;height:28px;line-height:28px}.components-tab-button:focus>span,.components-tab-button:hover>span{color:#555d66}.components-tab-button:not(:disabled).is-active>span,.components-tab-button:not(:disabled):focus>span,.components-tab-button:not(:disabled):hover>span{border:1px solid #555d66}.components-tab-button.is-active:hover>span,.components-tab-button.is-active>span{background-color:#555d66;color:#fff}.wp-block-columns .block-editor-block-list__layout{margin-right:0;margin-left:0}.wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block{max-width:none}.block-editor-block-list__block[data-align=full] .wp-block-columns>.block-editor-inner-blocks{padding-right:14px;padding-left:14px}@media (min-width:600px){.block-editor-block-list__block[data-align=full] .wp-block-columns>.block-editor-inner-blocks{padding-right:60px;padding-left:60px}}.wp-block-columns{display:block}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-wrap:nowrap}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{display:flex;flex-direction:column;flex:1;padding-right:0;padding-left:0;margin-right:-14px;margin-left:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;flex-basis:100%}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit>div>.block-editor-inner-blocks{margin-top:-28px;margin-bottom:-28px}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit:before{right:0;left:0}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar{margin-right:-1px}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{margin-right:14px;margin-left:14px;flex-basis:calc(50% - 44px);flex-grow:0}}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:nth-child(2n){margin-right:46px}}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:not(:first-child){margin-right:46px}}.wp-block-columns [data-type="core/column"]{pointer-events:none}.wp-block-columns [data-type="core/column"].is-hovered>.block-editor-block-list__block-edit:before{content:none}.wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb{display:none}:not(.components-disabled)>.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit>*{pointer-events:all}.wp-block-cover-image .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary],.wp-block-cover .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:none;background:hsla(0,0%,100%,.3)}.wp-block-cover-image.components-placeholder h2,.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover-image.has-left-content .block-editor-rich-text__inline-toolbar,.wp-block-cover-image.has-right-content .block-editor-rich-text__inline-toolbar,.wp-block-cover.has-left-content .block-editor-rich-text__inline-toolbar,.wp-block-cover.has-right-content .block-editor-rich-text__inline-toolbar{display:inline-block}.wp-block-cover-image .block-editor-block-list__layout,.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover-image .block-editor-block-list__block,.wp-block-cover .block-editor-block-list__block{color:#f8f9f9}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{text-align:right}.wp-block-cover-image .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout,.wp-block-cover .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-right:0;margin-left:0}.wp-block-cover-image.components-placeholder,.wp-block-cover.components-placeholder{background:rgba(139,139,150,.1);min-height:200px}.is-dark-theme .wp-block-cover-image.components-placeholder,.is-dark-theme .wp-block-cover.components-placeholder{background:hsla(0,0%,100%,.15)}[data-align=left] .wp-block-cover,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}.wp-block-embed{margin:0;clear:both}@media (min-width:600px){.wp-block-embed{min-width:360px}.wp-block-embed.components-placeholder{min-width:0}}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file.is-transient{animation:edit-post__loading-fade-animation 1.6s ease-in-out infinite}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce h1{font-size:2em}.wp-block-freeform.block-library-rich-text__tinymce h2{font-size:1.6em}.wp-block-freeform.block-library-rich-text__tinymce h3{font-size:1.4em}.wp-block-freeform.block-library-rich-text__tinymce h4{font-size:1.2em}.wp-block-freeform.block-library-rich-text__tinymce h5{font-size:1.1em}.wp-block-freeform.block-library-rich-text__tinymce h6{font-size:1em}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(/wp-includes/js/tinymce/skins/wordpress/images/more-2x.png);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #e8eaeb;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #e8eaeb;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"] .block-editor-block-list__block-edit:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #e2e4e7;outline:1px solid transparent}div[data-type="core/freeform"].is-selected .block-editor-block-list__block-edit:before{border-color:#b5bcc2 transparent #b5bcc2 #b5bcc2}div[data-type="core/freeform"].is-hovered .block-editor-block-list__breadcrumb{display:none}div[data-type="core/freeform"] .editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#23282d}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{width:auto;margin:0 -14px;position:-webkit-sticky;position:sticky;z-index:10;top:14px;transform:translateY(-14px);border:1px solid #e2e4e7;border-bottom:none;padding:0 14px}.is-selected .block-library-classic__toolbar{border-color:#b5bcc2 transparent #b5bcc2 #b5bcc2}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{height:37px;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}@media (min-width:600px){.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-switcher__no-switcher-icon{display:none}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar{float:left;margin-left:25px;transform:translateY(-13px);top:14px}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar{border:none;box-shadow:none;margin-top:3px}}@media (min-width:600px) and (min-width:782px){.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar{margin-top:0}}@media (min-width:600px){.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar:before{content:"";display:block;border-right:1px solid #e2e4e7;margin-top:4px;margin-bottom:4px}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar__control.components-button:hover{background-color:transparent}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .components-toolbar{background:transparent;border:none}.block-editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item{padding-left:36px}}ul.wp-block-gallery li{list-style-type:none}.blocks-gallery-item figure:not(.is-selected):focus{outline:none}.blocks-gallery-item .is-selected,.blocks-gallery-item img:focus{outline:4px solid #0085ba}body.admin-color-sunrise .blocks-gallery-item .is-selected,body.admin-color-sunrise .blocks-gallery-item img:focus{outline:4px solid #d1864a}body.admin-color-ocean .blocks-gallery-item .is-selected,body.admin-color-ocean .blocks-gallery-item img:focus{outline:4px solid #a3b9a2}body.admin-color-midnight .blocks-gallery-item .is-selected,body.admin-color-midnight .blocks-gallery-item img:focus{outline:4px solid #e14d43}body.admin-color-ectoplasm .blocks-gallery-item .is-selected,body.admin-color-ectoplasm .blocks-gallery-item img:focus{outline:4px solid #a7b656}body.admin-color-coffee .blocks-gallery-item .is-selected,body.admin-color-coffee .blocks-gallery-item img:focus{outline:4px solid #c2a68c}body.admin-color-blue .blocks-gallery-item .is-selected,body.admin-color-blue .blocks-gallery-item img:focus{outline:4px solid #82b4cb}body.admin-color-light .blocks-gallery-item .is-selected,body.admin-color-light .blocks-gallery-item img:focus{outline:4px solid #0085ba}.blocks-gallery-item .is-transient img{opacity:.3}.blocks-gallery-item .block-editor-rich-text{position:absolute;bottom:0;width:100%;max-height:100%;overflow-y:auto}.blocks-gallery-item .block-editor-rich-text figcaption:not([data-is-placeholder-visible=true]){position:relative;overflow:hidden}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-item .is-selected .block-editor-rich-text{left:0;right:0;margin-top:-4px}}.blocks-gallery-item .is-selected .block-editor-rich-text .block-editor-rich-text__inline-toolbar{top:0}.blocks-gallery-item .is-selected .block-editor-rich-text figcaption{padding-top:48px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button,.blocks-gallery-item .components-form-file-upload{width:100%;height:100%}.blocks-gallery-item .components-button.block-library-gallery-add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button .dashicon{margin-top:10px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button:focus,.blocks-gallery-item .components-button.block-library-gallery-add-item-button:hover{border:1px solid #555d66}.blocks-gallery-item .block-editor-rich-text figcaption a{color:#fff}.blocks-gallery-item .block-editor-rich-text figcaption:focus a[data-rich-text-format-boundary]{color:rgba(0,0,0,.2)}.block-library-gallery-item__inline-menu{padding:2px;position:absolute;top:-2px;left:-2px;background-color:#0085ba;display:inline-flex;z-index:20}body.admin-color-sunrise .block-library-gallery-item__inline-menu{background-color:#d1864a}body.admin-color-ocean .block-library-gallery-item__inline-menu{background-color:#a3b9a2}body.admin-color-midnight .block-library-gallery-item__inline-menu{background-color:#e14d43}body.admin-color-ectoplasm .block-library-gallery-item__inline-menu{background-color:#a7b656}body.admin-color-coffee .block-library-gallery-item__inline-menu{background-color:#c2a68c}body.admin-color-blue .block-library-gallery-item__inline-menu{background-color:#82b4cb}body.admin-color-light .block-library-gallery-item__inline-menu{background-color:#0085ba}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__inline-menu .components-button:focus,.block-library-gallery-item__inline-menu .components-button:hover{color:#fff}.blocks-gallery-item__remove{padding:0}.blocks-gallery-item__remove.components-button:focus{color:inherit}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2){margin-left:0}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3,.wp-block-heading h4,.wp-block-heading h5,.wp-block-heading h6{color:inherit;margin:0}.wp-block-heading h1{font-size:2.44em}.wp-block-heading h2{font-size:1.95em}.wp-block-heading h3{font-size:1.56em}.wp-block-heading h4{font-size:1.25em}.wp-block-heading h5{font-size:1em}.wp-block-heading h6{font-size:.8em}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3{line-height:1.4}.wp-block-heading h4{line-height:1.5}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}.wp-block-image{position:relative}.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:100%}.wp-block-image.is-focused .components-resizable-box__handle{display:block;z-index:1}.block-editor-block-list__block[data-type="core/image"][data-align=center] .wp-block-image,.block-editor-block-list__block[data-type="core/image"][data-align=center][data-resized=false] .wp-block-image>div{margin-right:auto;margin-left:auto}.edit-post-sidebar .block-library-image__dimensions{margin-bottom:1em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row{display:flex;justify-content:space-between}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-bottom:.5em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height input,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width input{line-height:1.25}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-left:5px}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height{margin-right:5px}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-type="core/image"][data-align=center] .block-editor-block-list__block-edit figure,[data-type="core/image"][data-align=left] .block-editor-block-list__block-edit figure,[data-type="core/image"][data-align=right] .block-editor-block-list__block-edit figure{margin:0;display:table}[data-type="core/image"][data-align=center] .block-editor-block-list__block-edit .block-editor-rich-text,[data-type="core/image"][data-align=left] .block-editor-block-list__block-edit .block-editor-rich-text,[data-type="core/image"][data-align=right] .block-editor-block-list__block-edit .block-editor-rich-text{display:table-caption;caption-side:bottom}[data-type="core/image"][data-align=full] figure img,[data-type="core/image"][data-align=wide] figure img{width:100%}[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized{margin:0;display:table}[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized .block-editor-rich-text{display:table-caption;caption-side:bottom}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__preview{padding-right:2.5em;padding-left:2.5em}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block}.wp-block-legacy-widget__update-button{margin-right:auto;display:block}.wp-block-legacy-widget__edit-container .widget-inside{box-shadow:none}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-media-text{grid-template-areas:"media-text-media media-text-content" "resizer resizer"}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media" "resizer resizer"}.wp-block-media-text .__resizable_base__{grid-area:resizer}.wp-block-media-text .editor-media-container__resizer{grid-area:media-text-media;align-self:center;width:100%!important}.wp-block-media-text .block-editor-inner-blocks{word-break:break-word;grid-area:media-text-content;text-align:initial;padding:0 8%}.wp-block-media-text>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}figure.block-library-media-text__media-container{margin:0;height:100%;width:100%}.wp-block-media-text .block-library-media-text__media-container img,.wp-block-media-text .block-library-media-text__media-container video{vertical-align:middle;width:100%}.editor-media-container__resizer .components-resizable-box__handle{display:none}.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle{display:block}@media (min-width:600px){.wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle{display:block}}.editor-styles-wrapper .block-library-list ol,.editor-styles-wrapper .block-library-list ul{padding-right:1.3em;margin-right:1.3em}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccd0d4}.block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable.wp-block-paragraph{padding-left:108px}.wp-block .wp-block .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable.wp-block-paragraph{padding-left:36px}.wp-block-preformatted pre{white-space:pre-wrap}.block-editor-block-list__block[data-type="core/pullquote"][data-align=left] .block-editor-rich-text p,.block-editor-block-list__block[data-type="core/pullquote"][data-align=right] .block-editor-rich-text p{font-size:20px}.wp-block-pullquote blockquote>.block-editor-rich-text p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-right:0;margin-left:0}.wp-block-pullquote.is-style-solid-color blockquote>.block-editor-rich-text p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote{margin:0}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-search .wp-block-search__input{border-radius:4px;border:1px solid #8d96a0;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__button .wp-block-search__button-rich-text{padding:6px 10px}.wp-block-shortcode{display:flex;flex-direction:row;padding:14px;background-color:#f8f9f9;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-shortcode label{display:flex;align-items:center;margin-left:8px;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{flex-grow:1}.wp-block-shortcode .dashicon{margin-left:8px}.block-library-spacer__resize-container.is-selected{background:#f3f4f5}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.block-editor-block-list__block[data-type="core/table"][data-align=center] table,.block-editor-block-list__block[data-type="core/table"][data-align=left] table,.block-editor-block-list__block[data-type="core/table"][data-align=right] table{width:auto}.block-editor-block-list__block[data-type="core/table"][data-align=center]{text-align:initial}.block-editor-block-list__block[data-type="core/table"][data-align=center] table{margin:0 auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table td,.wp-block-table th{padding:0;border:1px solid #000}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table__cell-content{padding:.5em}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#8f98a1;text-decoration:none}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #e2e4e7}.wp-block-verse pre,pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.block-editor-block-list__block[data-align=center]{text-align:center}.editor-video-poster-control .components-button{margin-left:8px}.editor-video-poster-control .components-button+.components-button{margin-top:1em} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor.css b/wp-includes/css/dist/block-library/editor.css index 4bf6be5e7d..37ee9b2e85 100644 --- a/wp-includes/css/dist/block-library/editor.css +++ b/wp-includes/css/dist/block-library/editor.css @@ -28,16 +28,19 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .block-editor ul.wp-block-archives { padding-left: 2.5em; } .wp-block-audio { margin: 0; } -.editor-block-list__block[data-type="core/button"][data-align="center"] { +.block-editor-block-list__block[data-type="core/button"][data-align="center"] { text-align: center; } -.editor-block-list__block[data-type="core/button"][data-align="right"] { +.block-editor-block-list__block[data-type="core/button"][data-align="right"] { /*!rtl:ignore*/ text-align: right; } @@ -47,15 +50,15 @@ position: relative; } .wp-block-button [contenteditable] { cursor: text; } - .wp-block-button:not(.has-text-color):not(.is-style-outline) .editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable { + .wp-block-button:not(.has-text-color):not(.is-style-outline) .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable { color: #fff; } - .wp-block-button .editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable { + .wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable { opacity: 0.8; } - .editor-block-preview__content .wp-block-button { + .block-editor-block-preview__content .wp-block-button { max-width: 100%; } - .editor-block-preview__content .wp-block-button .editor-rich-text__editable[data-is-placeholder-visible="true"] { + .block-editor-block-preview__content .wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible="true"] { height: auto; } - .editor-block-preview__content .wp-block-button .wp-block-button__link { + .block-editor-block-preview__content .wp-block-button .wp-block-button__link { max-width: 100%; overflow: hidden; white-space: nowrap; @@ -70,20 +73,20 @@ font-size: 13px; line-height: 1.4; width: 374px; } - .block-library-button__inline-link .editor-url-input { + .block-library-button__inline-link .block-editor-url-input { width: auto; } - .block-library-button__inline-link .editor-url-input__suggestions { + .block-library-button__inline-link .block-editor-url-input__suggestions { width: 302px; z-index: 6; } .block-library-button__inline-link > .dashicon { width: 36px; } .block-library-button__inline-link .dashicon { color: #8f98a1; } - .block-library-button__inline-link .editor-url-input input[type="text"]:-ms-input-placeholder { + .block-library-button__inline-link .block-editor-url-input input[type="text"]:-ms-input-placeholder { color: #8f98a1; } - .block-library-button__inline-link .editor-url-input input[type="text"]::-ms-input-placeholder { + .block-library-button__inline-link .block-editor-url-input input[type="text"]::-ms-input-placeholder { color: #8f98a1; } - .block-library-button__inline-link .editor-url-input input[type="text"]::placeholder { + .block-library-button__inline-link .block-editor-url-input input[type="text"]::placeholder { color: #8f98a1; } [data-align="center"] .block-library-button__inline-link { margin-left: auto; @@ -97,15 +100,15 @@ .block-editor .wp-block-categories ul ul { margin-top: 6px; } -.wp-block-code .editor-plain-text { +.wp-block-code .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; } @media (min-width: 600px) { - .wp-block-code .editor-plain-text { + .wp-block-code .block-editor-plain-text { font-size: 13px; } } - .wp-block-code .editor-plain-text:focus { + .wp-block-code .block-editor-plain-text:focus { box-shadow: none; } .components-tab-button { @@ -145,29 +148,29 @@ background-color: #555d66; color: #fff; } -.wp-block-columns .editor-block-list__layout { +.wp-block-columns .block-editor-block-list__layout { margin-left: 0; margin-right: 0; } - .wp-block-columns .editor-block-list__layout .editor-block-list__block { + .wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block { max-width: none; } -.editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks { +.block-editor-block-list__block[data-align="full"] .wp-block-columns > .block-editor-inner-blocks { padding-left: 14px; padding-right: 14px; } @media (min-width: 600px) { - .editor-block-list__block[data-align="full"] .wp-block-columns > .editor-inner-blocks { + .block-editor-block-list__block[data-align="full"] .wp-block-columns > .block-editor-inner-blocks { padding-left: 60px; padding-right: 60px; } } .wp-block-columns { display: block; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { display: flex; flex-wrap: wrap; } @media (min-width: 782px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout { flex-wrap: nowrap; } } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { display: flex; flex-direction: column; flex: 1; @@ -179,44 +182,44 @@ word-break: break-word; overflow-wrap: break-word; flex-basis: 100%; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > div > .editor-inner-blocks { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > div > .block-editor-inner-blocks { margin-top: -28px; margin-bottom: -28px; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit { margin-top: 0; margin-bottom: 0; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit::before { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit::before { left: 0; right: 0; } - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar { margin-left: -1px; } @media (min-width: 600px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { margin-left: 14px; margin-right: 14px; } } @media (min-width: 600px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] { flex-basis: calc(50% - (16px + 28px)); flex-grow: 0; } } @media (min-width: 600px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:nth-child(even) { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:nth-child(even) { margin-left: calc(32px + 14px); } } @media (min-width: 782px) { - .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:first-child) { + .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:first-child) { margin-left: calc(32px + 14px); } } .wp-block-columns [data-type="core/column"] { pointer-events: none; } - .wp-block-columns [data-type="core/column"].is-hovered > .editor-block-list__block-edit::before { + .wp-block-columns [data-type="core/column"].is-hovered > .block-editor-block-list__block-edit::before { content: none; } - .wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb { + .wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb { display: none; } -:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > * { +:not(.components-disabled) > .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"] > .block-editor-block-list__block-edit > * { pointer-events: all; } -.wp-block-cover-image .editor-rich-text__editable:focus a[data-rich-text-format-boundary], -.wp-block-cover .editor-rich-text__editable:focus a[data-rich-text-format-boundary] { +.wp-block-cover-image .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary], +.wp-block-cover .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary] { box-shadow: none; background: rgba(255, 255, 255, 0.3); } @@ -224,13 +227,28 @@ .wp-block-cover.components-placeholder h2 { color: inherit; } -.wp-block-cover-image.has-left-content .editor-rich-text__inline-toolbar, -.wp-block-cover.has-left-content .editor-rich-text__inline-toolbar { - justify-content: flex-start; } +.wp-block-cover-image.has-right-content .block-editor-rich-text__inline-toolbar, +.wp-block-cover-image.has-left-content .block-editor-rich-text__inline-toolbar, +.wp-block-cover.has-right-content .block-editor-rich-text__inline-toolbar, +.wp-block-cover.has-left-content .block-editor-rich-text__inline-toolbar { + display: inline-block; } -.wp-block-cover-image.has-right-content .editor-rich-text__inline-toolbar, -.wp-block-cover.has-right-content .editor-rich-text__inline-toolbar { - justify-content: flex-end; } +.wp-block-cover-image .block-editor-block-list__layout, +.wp-block-cover .block-editor-block-list__layout { + width: 100%; } + +.wp-block-cover-image .block-editor-block-list__block, +.wp-block-cover .block-editor-block-list__block { + color: #f8f9f9; } + +.wp-block-cover-image .wp-block-cover__inner-container, +.wp-block-cover .wp-block-cover__inner-container { + text-align: left; } + +.wp-block-cover-image .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout, +.wp-block-cover .wp-block-cover__inner-container > .block-editor-inner-blocks > .block-editor-block-list__layout { + margin-left: 0; + margin-right: 0; } .wp-block-cover-image.components-placeholder, .wp-block-cover.components-placeholder { @@ -300,12 +318,9 @@ margin-left: 1em; } .wp-block-freeform.block-library-rich-text__tinymce { - overflow: hidden; - /** - * The following gallery styles were replicated - * from the styles applied in the tinymce skin, - * /wp-includes/js/tinymce/skins/wordpress/wp-content.css. - */ } + /* Remove blue highlighting of selected images in WebKit */ + /* Image captions */ + /* WP Views */ } .wp-block-freeform.block-library-rich-text__tinymce p, .wp-block-freeform.block-library-rich-text__tinymce li { line-height: 1.8; } @@ -374,16 +389,76 @@ margin-right: auto; } .wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag { width: 96%; - height: 0; + height: 20px; display: block; margin: 15px auto; outline: 0; cursor: default; - border: 2px dashed #bababa; } - .wp-block-freeform.block-library-rich-text__tinymce .wpview-type-gallery::after { - content: ""; - display: table; - clear: both; } + background-image: url(/wp-includes/js/tinymce/skins/wordpress/images/more-2x.png); + background-size: 1900px 20px; + background-repeat: no-repeat; + background-position: center; } + .wp-block-freeform.block-library-rich-text__tinymce img::selection { + background-color: transparent; } + .wp-block-freeform.block-library-rich-text__tinymce div.mceTemp { + -ms-user-select: element; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption { + margin: 0; + /* dl browser reset */ + max-width: 100%; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a, + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img { + display: block; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption, + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption * { + -webkit-user-drag: none; } + .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd { + padding-top: 0.5em; + margin: 0; + /* browser dd reset */ } + .wp-block-freeform.block-library-rich-text__tinymce .wpview { + width: 99.99%; + /* All IE need hasLayout, incl. 11 (ugh, not again!!) */ + position: relative; + clear: both; + margin-bottom: 16px; + border: 1px solid transparent; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview iframe { + display: block; + max-width: 100%; + background: transparent; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim { + display: none; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder { + border: 1px dashed #e8eaeb; + padding: 10px; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error { + border: 1px solid #e8eaeb; + padding: 1em 0; + margin: 0; + word-wrap: break-word; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p { + margin: 0; + text-align: center; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder, + .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error { + border-color: transparent; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons { + display: block; + margin: 0 auto; + width: 32px; + height: 32px; + font-size: 32px; } + .wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery::after { + content: ""; + display: table; + clear: both; } .wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus { outline: none; } .wp-block-freeform.block-library-rich-text__tinymce .gallery a { @@ -429,28 +504,40 @@ border: none; padding: 0; } -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active button, -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover button, -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active i, -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover i { - color: #23282d; } +div[data-type="core/freeform"] .block-editor-block-list__block-edit::before { + transition: border-color 0.1s linear, box-shadow 0.1s linear; + border: 1px solid #e2e4e7; + outline: 1px solid transparent; } -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn i { - font-style: normal; } +div[data-type="core/freeform"].is-selected .block-editor-block-list__block-edit::before { + border-color: #b5bcc2; + border-left-color: transparent; } -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-toolbar-grp > div { - padding: 1px 3px; } - -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .editor-block-list__block-edit::before { - outline: 1px solid #e2e4e7; } - -.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"].is-hovered .editor-block-list__breadcrumb { +div[data-type="core/freeform"].is-hovered .block-editor-block-list__breadcrumb { display: none; } div[data-type="core/freeform"] .editor-block-contextual-toolbar + div { margin-top: 0; padding-top: 0; } +div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::after { + content: ""; + display: table; + clear: both; } + +.mce-toolbar-grp .mce-btn.mce-active button, +.mce-toolbar-grp .mce-btn.mce-active:hover button, +.mce-toolbar-grp .mce-btn.mce-active i, +.mce-toolbar-grp .mce-btn.mce-active:hover i { + color: #23282d; } + +.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last { + margin-right: 0; + margin-left: 8px; } + +.mce-toolbar-grp .mce-btn i { + font-style: normal; } + .block-library-classic__toolbar { width: auto; margin: 0 -14px; @@ -459,71 +546,75 @@ div[data-type="core/freeform"] .editor-block-contextual-toolbar + div { z-index: 10; top: 14px; transform: translateY(-14px); + border: 1px solid #e2e4e7; + border-bottom: none; padding: 0 14px; } + .is-selected .block-library-classic__toolbar { + border-color: #b5bcc2; + border-left-color: transparent; } @media (min-width: 600px) { .block-library-classic__toolbar { padding: 0; } } - -.block-library-classic__toolbar:empty { - height: 37px; - background: #f5f5f5; - border-bottom: 1px solid #e2e4e7; } - .block-library-classic__toolbar:empty::before { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - content: attr(data-placeholder); - color: #555d66; - line-height: 37px; - padding: 14px; } - -.block-library-classic__toolbar .mce-tinymce-inline, -.block-library-classic__toolbar .mce-tinymce-inline > div, -.block-library-classic__toolbar div.mce-toolbar-grp, -.block-library-classic__toolbar div.mce-toolbar-grp > div, -.block-library-classic__toolbar .mce-menubar, -.block-library-classic__toolbar .mce-menubar > div { - height: auto !important; - width: 100% !important; } - -.block-library-classic__toolbar .mce-container-body.mce-abs-layout { - overflow: visible; } - -.block-library-classic__toolbar .mce-menubar, -.block-library-classic__toolbar div.mce-toolbar-grp { - position: static; } - -.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child) { - display: none; } - -.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar { - display: block; } + .block-library-classic__toolbar:empty { + height: 37px; + background: #f5f5f5; + border-bottom: 1px solid #e2e4e7; } + .block-library-classic__toolbar:empty::before { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + content: attr(data-placeholder); + color: #555d66; + line-height: 37px; + padding: 14px; } + .block-library-classic__toolbar .mce-tinymce-inline, + .block-library-classic__toolbar .mce-tinymce-inline > div, + .block-library-classic__toolbar div.mce-toolbar-grp, + .block-library-classic__toolbar div.mce-toolbar-grp > div, + .block-library-classic__toolbar .mce-menubar, + .block-library-classic__toolbar .mce-menubar > div { + height: auto !important; + width: 100% !important; } + .block-library-classic__toolbar .mce-container-body.mce-abs-layout { + overflow: visible; } + .block-library-classic__toolbar .mce-menubar, + .block-library-classic__toolbar div.mce-toolbar-grp { + position: static; } + .block-library-classic__toolbar .mce-toolbar-grp > div { + padding: 1px 3px; } + .block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child) { + display: none; } + .block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar { + display: block; } @media (min-width: 600px) { - .editor-block-list__block[data-type="core/freeform"] .editor-block-switcher__no-switcher-icon { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-switcher__no-switcher-icon { display: none; } - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar { float: right; - margin-right: 23px; + margin-right: 25px; transform: translateY(-13px); top: 14px; } - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar { border: none; + box-shadow: none; margin-top: 3px; } } @media (min-width: 600px) and (min-width: 782px) { - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar { margin-top: 0; } } @media (min-width: 600px) { - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar::before { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar::before { content: ""; display: block; border-left: 1px solid #e2e4e7; margin-top: 4px; margin-bottom: 4px; } - .editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .components-toolbar { + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar__control.components-button:hover { + background-color: transparent; } + .block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .components-toolbar { background: transparent; border: none; } - .editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item { + .block-editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item { padding-right: 36px; } } ul.wp-block-gallery li { @@ -560,27 +651,27 @@ body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .b .blocks-gallery-item .is-transient img { opacity: 0.3; } -.blocks-gallery-item .editor-rich-text { +.blocks-gallery-item .block-editor-rich-text { position: absolute; bottom: 0; width: 100%; max-height: 100%; overflow-y: auto; } -.blocks-gallery-item .editor-rich-text figcaption:not([data-is-placeholder-visible="true"]) { +.blocks-gallery-item .block-editor-rich-text figcaption:not([data-is-placeholder-visible="true"]) { position: relative; overflow: hidden; } @supports ((position: -webkit-sticky) or (position: sticky)) { - .blocks-gallery-item .is-selected .editor-rich-text { + .blocks-gallery-item .is-selected .block-editor-rich-text { right: 0; left: 0; margin-top: -4px; } } -.blocks-gallery-item .is-selected .editor-rich-text .editor-rich-text__inline-toolbar { +.blocks-gallery-item .is-selected .block-editor-rich-text .block-editor-rich-text__inline-toolbar { top: 0; } -.blocks-gallery-item .is-selected .editor-rich-text figcaption { +.blocks-gallery-item .is-selected .block-editor-rich-text figcaption { padding-top: 48px; } .blocks-gallery-item .components-form-file-upload, @@ -601,10 +692,10 @@ body.admin-color-light .blocks-gallery-item img:focus, body.admin-color-light .b .blocks-gallery-item .components-button.block-library-gallery-add-item-button:hover, .blocks-gallery-item .components-button.block-library-gallery-add-item-button:focus { border: 1px solid #555d66; } -.blocks-gallery-item .editor-rich-text figcaption a { +.blocks-gallery-item .block-editor-rich-text figcaption a { color: #fff; } -.blocks-gallery-item .editor-rich-text figcaption:focus a[data-rich-text-format-boundary] { +.blocks-gallery-item .block-editor-rich-text figcaption:focus a[data-rich-text-format-boundary] { color: rgba(0, 0, 0, 0.2); } .block-library-gallery-item__inline-menu { @@ -694,7 +785,7 @@ body.admin-color-light .block-library-gallery-item__inline-menu { .wp-block-heading h4 { line-height: 1.5; } -.wp-block-html .editor-plain-text { +.wp-block-html .block-editor-plain-text { font-family: Menlo, Consolas, monaco, monospace; color: #23282d; padding: 0.8em 1em; @@ -703,9 +794,9 @@ body.admin-color-light .block-library-gallery-item__inline-menu { /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: 16px; } @media (min-width: 600px) { - .wp-block-html .editor-plain-text { + .wp-block-html .block-editor-plain-text { font-size: 13px; } } - .wp-block-html .editor-plain-text:focus { + .wp-block-html .block-editor-plain-text:focus { box-shadow: none; } .wp-block-image { @@ -731,11 +822,11 @@ body.admin-color-light .block-library-gallery-item__inline-menu { display: block; z-index: 1; } -.editor-block-list__block[data-type="core/image"][data-align="center"] .wp-block-image { +.block-editor-block-list__block[data-type="core/image"][data-align="center"] .wp-block-image { margin-left: auto; margin-right: auto; } -.editor-block-list__block[data-type="core/image"][data-align="center"][data-resized="false"] .wp-block-image > div { +.block-editor-block-list__block[data-type="core/image"][data-align="center"][data-resized="false"] .wp-block-image > div { margin-left: auto; margin-right: auto; } @@ -755,24 +846,24 @@ body.admin-color-light .block-library-gallery-item__inline-menu { .edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height { margin-left: 5px; } -.editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal { +.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { position: absolute; left: 0; right: 0; margin: -1px 0; } @media (min-width: 600px) { - .editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal { + .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { margin: -1px; } } -[data-type="core/image"][data-align="center"] .editor-block-list__block-edit figure, -[data-type="core/image"][data-align="left"] .editor-block-list__block-edit figure, -[data-type="core/image"][data-align="right"] .editor-block-list__block-edit figure { +[data-type="core/image"][data-align="center"] .block-editor-block-list__block-edit figure, +[data-type="core/image"][data-align="left"] .block-editor-block-list__block-edit figure, +[data-type="core/image"][data-align="right"] .block-editor-block-list__block-edit figure { margin: 0; display: table; } -[data-type="core/image"][data-align="center"] .editor-block-list__block-edit .editor-rich-text, -[data-type="core/image"][data-align="left"] .editor-block-list__block-edit .editor-rich-text, -[data-type="core/image"][data-align="right"] .editor-block-list__block-edit .editor-rich-text { +[data-type="core/image"][data-align="center"] .block-editor-block-list__block-edit .block-editor-rich-text, +[data-type="core/image"][data-align="left"] .block-editor-block-list__block-edit .block-editor-rich-text, +[data-type="core/image"][data-align="right"] .block-editor-block-list__block-edit .block-editor-rich-text { display: table-caption; caption-side: bottom; } @@ -780,10 +871,10 @@ body.admin-color-light .block-library-gallery-item__inline-menu { [data-type="core/image"][data-align="full"] figure img { width: 100%; } -[data-type="core/image"] .editor-block-list__block-edit figure.is-resized { +[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized { margin: 0; display: table; } - [data-type="core/image"] .editor-block-list__block-edit figure.is-resized .editor-rich-text { + [data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized .block-editor-rich-text { display: table-caption; caption-side: bottom; } @@ -804,6 +895,28 @@ body.admin-color-light .block-library-gallery-item__inline-menu { .block-editor .wp-block-latest-posts.is-grid { padding-left: 0; } +.wp-block-latest-posts li a > div { + display: inline; } + +.wp-block-legacy-widget__edit-container, +.wp-block-legacy-widget__preview { + padding-left: 2.5em; + padding-right: 2.5em; } + +.wp-block-legacy-widget__edit-container .widget-inside { + border: none; + display: block; } + +.wp-block-legacy-widget__update-button { + margin-left: auto; + display: block; } + +.wp-block-legacy-widget__edit-container .widget-inside { + box-shadow: none; } + +.wp-block-legacy-widget__preview { + overflow: auto; } + .wp-block-media-text { grid-template-areas: "media-text-media media-text-content" "resizer resizer"; } @@ -818,13 +931,13 @@ body.admin-color-light .block-library-gallery-item__inline-menu { align-self: center; width: 100% !important; } -.wp-block-media-text .editor-inner-blocks { +.wp-block-media-text .block-editor-inner-blocks { word-break: break-word; grid-area: media-text-content; text-align: initial; padding: 0 8% 0 8%; } -.wp-block-media-text > .editor-inner-blocks > .editor-block-list__layout > .editor-block-list__block { +.wp-block-media-text > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block { max-width: unset; } figure.block-library-media-text__media-container { @@ -852,7 +965,7 @@ figure.block-library-media-text__media-container { padding-left: 1.3em; margin-left: 1.3em; } -.editor-block-list__block[data-type="core/more"] { +.block-editor-block-list__block[data-type="core/more"] { max-width: 100%; text-align: center; } @@ -886,7 +999,7 @@ figure.block-library-media-text__media-container { right: 0; border-top: 3px dashed #ccd0d4; } -.editor-visual-editor__block[data-type="core/nextpage"] { +.block-editor-block-list__block[data-type="core/nextpage"] { max-width: 100%; } .wp-block-nextpage { @@ -913,25 +1026,25 @@ figure.block-library-media-text__media-container { right: 0; border-top: 3px dashed #ccd0d4; } -.editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable.wp-block-paragraph { +.block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable.wp-block-paragraph { padding-right: 108px; } - .wp-block .wp-block .editor-rich-text__editable[data-is-placeholder-visible="true"] + .editor-rich-text__editable.wp-block-paragraph { + .wp-block .wp-block .block-editor-rich-text__editable[data-is-placeholder-visible="true"] + .block-editor-rich-text__editable.wp-block-paragraph { padding-right: 36px; } .wp-block-preformatted pre { white-space: pre-wrap; } -.editor-block-list__block[data-type="core/pullquote"][data-align="left"] .editor-rich-text p, .editor-block-list__block[data-type="core/pullquote"][data-align="right"] .editor-rich-text p { +.block-editor-block-list__block[data-type="core/pullquote"][data-align="left"] .block-editor-rich-text p, .block-editor-block-list__block[data-type="core/pullquote"][data-align="right"] .block-editor-rich-text p { font-size: 20px; } -.wp-block-pullquote blockquote > .editor-rich-text p { +.wp-block-pullquote blockquote > .block-editor-rich-text p { font-size: 28px; line-height: 1.6; } .wp-block-pullquote.is-style-solid-color { margin-left: 0; margin-right: 0; } - .wp-block-pullquote.is-style-solid-color blockquote > .editor-rich-text p { + .wp-block-pullquote.is-style-solid-color blockquote > .block-editor-rich-text p { font-size: 32px; } .wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation { text-transform: none; @@ -983,7 +1096,7 @@ figure.block-library-media-text__media-container { white-space: nowrap; font-weight: 600; flex-shrink: 0; } - .wp-block-shortcode .editor-plain-text { + .wp-block-shortcode .block-editor-plain-text { flex-grow: 1; } .wp-block-shortcode .dashicon { margin-right: 8px; } @@ -996,12 +1109,12 @@ figure.block-library-media-text__media-container { font-size: 1.1em; font-style: italic; } -.editor-block-list__block[data-type="core/table"][data-align="left"] table, .editor-block-list__block[data-type="core/table"][data-align="right"] table, .editor-block-list__block[data-type="core/table"][data-align="center"] table { +.block-editor-block-list__block[data-type="core/table"][data-align="left"] table, .block-editor-block-list__block[data-type="core/table"][data-align="right"] table, .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { width: auto; } -.editor-block-list__block[data-type="core/table"][data-align="center"] { +.block-editor-block-list__block[data-type="core/table"][data-align="center"] { text-align: initial; } - .editor-block-list__block[data-type="core/table"][data-align="center"] table { + .block-editor-block-list__block[data-type="core/table"][data-align="center"] table { margin: 0 auto; } .wp-block-table table { @@ -1032,7 +1145,7 @@ figure.block-library-media-text__media-container { color: #8f98a1; text-decoration: none; } -.wp-block-text-columns .editor-rich-text__editable:focus { +.wp-block-text-columns .block-editor-rich-text__editable:focus { outline: 1px solid #e2e4e7; } pre.wp-block-verse, @@ -1044,7 +1157,7 @@ pre.wp-block-verse, padding: 1em; overflow: auto; } -.editor-block-list__block[data-align="center"] { +.block-editor-block-list__block[data-align="center"] { text-align: center; } .editor-video-poster-control .components-button { diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css index 694375530b..368f0b85db 100644 --- a/wp-includes/css/dist/block-library/editor.min.css +++ b/wp-includes/css/dist/block-library/editor.min.css @@ -1,2 +1,2 @@ -.block-editor ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin:0}.editor-block-list__block[data-type="core/button"][data-align=center]{text-align:center}.editor-block-list__block[data-type="core/button"][data-align=right]{ - /*!rtl:ignore*/text-align:right}.wp-block-button{display:inline-block;margin-bottom:0;position:relative}.wp-block-button [contenteditable]{cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) .editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable{color:#fff}.wp-block-button .editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable{opacity:.8}.editor-block-preview__content .wp-block-button{max-width:100%}.editor-block-preview__content .wp-block-button .editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.editor-block-preview__content .wp-block-button .wp-block-button__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.block-library-button__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}.block-library-button__inline-link .editor-url-input{width:auto}.block-library-button__inline-link .editor-url-input__suggestions{width:302px;z-index:6}.block-library-button__inline-link>.dashicon{width:36px}.block-library-button__inline-link .dashicon{color:#8f98a1}.block-library-button__inline-link .editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .editor-url-input input[type=text]::placeholder{color:#8f98a1}[data-align=center] .block-library-button__inline-link{margin-left:auto;margin-right:auto}[data-align=right] .block-library-button__inline-link{margin-left:auto;margin-right:0}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code .editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;font-size:16px}@media (min-width:600px){.wp-block-code .editor-plain-text{font-size:13px}}.wp-block-code .editor-plain-text:focus{box-shadow:none}.components-tab-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;background:none;outline:none;color:#555d66;cursor:pointer;position:relative;height:36px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:500;border:0}.components-tab-button.is-active,.components-tab-button.is-active:hover{color:#fff}.components-tab-button:disabled{cursor:default}.components-tab-button>span{border:1px solid transparent;padding:0 6px;box-sizing:content-box;height:28px;line-height:28px}.components-tab-button:focus>span,.components-tab-button:hover>span{color:#555d66}.components-tab-button:not(:disabled).is-active>span,.components-tab-button:not(:disabled):focus>span,.components-tab-button:not(:disabled):hover>span{border:1px solid #555d66}.components-tab-button.is-active:hover>span,.components-tab-button.is-active>span{background-color:#555d66;color:#fff}.wp-block-columns .editor-block-list__layout{margin-left:0;margin-right:0}.wp-block-columns .editor-block-list__layout .editor-block-list__block{max-width:none}.editor-block-list__block[data-align=full] .wp-block-columns>.editor-inner-blocks{padding-left:14px;padding-right:14px}@media (min-width:600px){.editor-block-list__block[data-align=full] .wp-block-columns>.editor-inner-blocks{padding-left:60px;padding-right:60px}}.wp-block-columns{display:block}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout{flex-wrap:nowrap}}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]{display:flex;flex-direction:column;flex:1;padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;flex-basis:100%}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit>div>.editor-inner-blocks{margin-top:-28px;margin-bottom:-28px}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit{margin-top:0;margin-bottom:0}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit:before{left:0;right:0}.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{margin-left:-1px}@media (min-width:600px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]{margin-left:14px;margin-right:14px;flex-basis:calc(50% - 44px);flex-grow:0}}@media (min-width:600px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]:nth-child(2n){margin-left:46px}}@media (min-width:782px){.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]:not(:first-child){margin-left:46px}}.wp-block-columns [data-type="core/column"]{pointer-events:none}.wp-block-columns [data-type="core/column"].is-hovered>.editor-block-list__block-edit:before{content:none}.wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb{display:none}:not(.components-disabled)>.wp-block-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="core/column"]>.editor-block-list__block-edit>*{pointer-events:all}.wp-block-cover-image .editor-rich-text__editable:focus a[data-rich-text-format-boundary],.wp-block-cover .editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:none;background:hsla(0,0%,100%,.3)}.wp-block-cover-image.components-placeholder h2,.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover-image.has-left-content .editor-rich-text__inline-toolbar,.wp-block-cover.has-left-content .editor-rich-text__inline-toolbar{justify-content:flex-start}.wp-block-cover-image.has-right-content .editor-rich-text__inline-toolbar,.wp-block-cover.has-right-content .editor-rich-text__inline-toolbar{justify-content:flex-end}.wp-block-cover-image.components-placeholder,.wp-block-cover.components-placeholder{background:rgba(139,139,150,.1);min-height:200px}.is-dark-theme .wp-block-cover-image.components-placeholder,.is-dark-theme .wp-block-cover.components-placeholder{background:hsla(0,0%,100%,.15)}[data-align=left] .wp-block-cover,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}.wp-block-embed{margin:0;clear:both}@media (min-width:600px){.wp-block-embed{min-width:360px}.wp-block-embed.components-placeholder{min-width:0}}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file.is-transient{animation:edit-post__loading-fade-animation 1.6s ease-in-out infinite}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce{overflow:hidden}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce h1{font-size:2em}.wp-block-freeform.block-library-rich-text__tinymce h2{font-size:1.6em}.wp-block-freeform.block-library-rich-text__tinymce h3{font-size:1.4em}.wp-block-freeform.block-library-rich-text__tinymce h4{font-size:1.2em}.wp-block-freeform.block-library-rich-text__tinymce h5{font-size:1.1em}.wp-block-freeform.block-library-rich-text__tinymce h6{font-size:1em}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:0;display:block;margin:15px auto;outline:0;cursor:default;border:2px dashed #bababa}.wp-block-freeform.block-library-rich-text__tinymce .wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover button,.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active:hover i,.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active button,.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn.mce-active i{color:#23282d}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-btn i{font-style:normal}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .mce-toolbar-grp>div{padding:1px 3px}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"] .editor-block-list__block-edit:before{outline:1px solid #e2e4e7}.editor-block-list__layout .editor-block-list__block[data-type="core/freeform"].is-hovered .editor-block-list__breadcrumb{display:none}div[data-type="core/freeform"] .editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}.block-library-classic__toolbar{width:auto;margin:0 -14px;position:-webkit-sticky;position:sticky;z-index:10;top:14px;transform:translateY(-14px);padding:0 14px}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{height:37px;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}@media (min-width:600px){.editor-block-list__block[data-type="core/freeform"] .editor-block-switcher__no-switcher-icon{display:none}.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar{float:right;margin-right:23px;transform:translateY(-13px);top:14px}.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar{border:none;margin-top:3px}}@media (min-width:600px) and (min-width:782px){.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar{margin-top:0}}@media (min-width:600px){.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .editor-block-toolbar:before{content:"";display:block;border-left:1px solid #e2e4e7;margin-top:4px;margin-bottom:4px}.editor-block-list__block[data-type="core/freeform"] .editor-block-contextual-toolbar .components-toolbar{background:transparent;border:none}.editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item{padding-right:36px}}ul.wp-block-gallery li{list-style-type:none}.blocks-gallery-item figure:not(.is-selected):focus{outline:none}.blocks-gallery-item .is-selected,.blocks-gallery-item img:focus{outline:4px solid #0085ba}body.admin-color-sunrise .blocks-gallery-item .is-selected,body.admin-color-sunrise .blocks-gallery-item img:focus{outline:4px solid #d1864a}body.admin-color-ocean .blocks-gallery-item .is-selected,body.admin-color-ocean .blocks-gallery-item img:focus{outline:4px solid #a3b9a2}body.admin-color-midnight .blocks-gallery-item .is-selected,body.admin-color-midnight .blocks-gallery-item img:focus{outline:4px solid #e14d43}body.admin-color-ectoplasm .blocks-gallery-item .is-selected,body.admin-color-ectoplasm .blocks-gallery-item img:focus{outline:4px solid #a7b656}body.admin-color-coffee .blocks-gallery-item .is-selected,body.admin-color-coffee .blocks-gallery-item img:focus{outline:4px solid #c2a68c}body.admin-color-blue .blocks-gallery-item .is-selected,body.admin-color-blue .blocks-gallery-item img:focus{outline:4px solid #82b4cb}body.admin-color-light .blocks-gallery-item .is-selected,body.admin-color-light .blocks-gallery-item img:focus{outline:4px solid #0085ba}.blocks-gallery-item .is-transient img{opacity:.3}.blocks-gallery-item .editor-rich-text{position:absolute;bottom:0;width:100%;max-height:100%;overflow-y:auto}.blocks-gallery-item .editor-rich-text figcaption:not([data-is-placeholder-visible=true]){position:relative;overflow:hidden}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-item .is-selected .editor-rich-text{right:0;left:0;margin-top:-4px}}.blocks-gallery-item .is-selected .editor-rich-text .editor-rich-text__inline-toolbar{top:0}.blocks-gallery-item .is-selected .editor-rich-text figcaption{padding-top:48px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button,.blocks-gallery-item .components-form-file-upload{width:100%;height:100%}.blocks-gallery-item .components-button.block-library-gallery-add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button .dashicon{margin-top:10px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button:focus,.blocks-gallery-item .components-button.block-library-gallery-add-item-button:hover{border:1px solid #555d66}.blocks-gallery-item .editor-rich-text figcaption a{color:#fff}.blocks-gallery-item .editor-rich-text figcaption:focus a[data-rich-text-format-boundary]{color:rgba(0,0,0,.2)}.block-library-gallery-item__inline-menu{padding:2px;position:absolute;top:-2px;right:-2px;background-color:#0085ba;display:inline-flex;z-index:20}body.admin-color-sunrise .block-library-gallery-item__inline-menu{background-color:#d1864a}body.admin-color-ocean .block-library-gallery-item__inline-menu{background-color:#a3b9a2}body.admin-color-midnight .block-library-gallery-item__inline-menu{background-color:#e14d43}body.admin-color-ectoplasm .block-library-gallery-item__inline-menu{background-color:#a7b656}body.admin-color-coffee .block-library-gallery-item__inline-menu{background-color:#c2a68c}body.admin-color-blue .block-library-gallery-item__inline-menu{background-color:#82b4cb}body.admin-color-light .block-library-gallery-item__inline-menu{background-color:#0085ba}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__inline-menu .components-button:focus,.block-library-gallery-item__inline-menu .components-button:hover{color:#fff}.blocks-gallery-item__remove{padding:0}.blocks-gallery-item__remove.components-button:focus{color:inherit}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2){margin-right:0}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3,.wp-block-heading h4,.wp-block-heading h5,.wp-block-heading h6{color:inherit;margin:0}.wp-block-heading h1{font-size:2.44em}.wp-block-heading h2{font-size:1.95em}.wp-block-heading h3{font-size:1.56em}.wp-block-heading h4{font-size:1.25em}.wp-block-heading h5{font-size:1em}.wp-block-heading h6{font-size:.8em}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3{line-height:1.4}.wp-block-heading h4{line-height:1.5}.wp-block-html .editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;font-size:16px}@media (min-width:600px){.wp-block-html .editor-plain-text{font-size:13px}}.wp-block-html .editor-plain-text:focus{box-shadow:none}.wp-block-image{position:relative}.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:100%}.wp-block-image.is-focused .components-resizable-box__handle{display:block;z-index:1}.editor-block-list__block[data-type="core/image"][data-align=center] .wp-block-image,.editor-block-list__block[data-type="core/image"][data-align=center][data-resized=false] .wp-block-image>div{margin-left:auto;margin-right:auto}.edit-post-sidebar .block-library-image__dimensions{margin-bottom:1em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row{display:flex;justify-content:space-between}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-bottom:.5em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height input,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width input{line-height:1.25}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-right:5px}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height{margin-left:5px}.editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.editor-block-list__block[data-type="core/image"] .editor-block-toolbar .editor-url-input__button-modal{margin:-1px}}[data-type="core/image"][data-align=center] .editor-block-list__block-edit figure,[data-type="core/image"][data-align=left] .editor-block-list__block-edit figure,[data-type="core/image"][data-align=right] .editor-block-list__block-edit figure{margin:0;display:table}[data-type="core/image"][data-align=center] .editor-block-list__block-edit .editor-rich-text,[data-type="core/image"][data-align=left] .editor-block-list__block-edit .editor-rich-text,[data-type="core/image"][data-align=right] .editor-block-list__block-edit .editor-rich-text{display:table-caption;caption-side:bottom}[data-type="core/image"][data-align=full] figure img,[data-type="core/image"][data-align=wide] figure img{width:100%}[data-type="core/image"] .editor-block-list__block-edit figure.is-resized{margin:0;display:table}[data-type="core/image"] .editor-block-list__block-edit figure.is-resized .editor-rich-text{display:table-caption;caption-side:bottom}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-media-text{grid-template-areas:"media-text-media media-text-content" "resizer resizer"}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media" "resizer resizer"}.wp-block-media-text .__resizable_base__{grid-area:resizer}.wp-block-media-text .editor-media-container__resizer{grid-area:media-text-media;align-self:center;width:100%!important}.wp-block-media-text .editor-inner-blocks{word-break:break-word;grid-area:media-text-content;text-align:initial;padding:0 8%}.wp-block-media-text>.editor-inner-blocks>.editor-block-list__layout>.editor-block-list__block{max-width:unset}figure.block-library-media-text__media-container{margin:0;height:100%;width:100%}.wp-block-media-text .block-library-media-text__media-container img,.wp-block-media-text .block-library-media-text__media-container video{vertical-align:middle;width:100%}.editor-media-container__resizer .components-resizable-box__handle{display:none}.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle{display:block}@media (min-width:600px){.wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle{display:block}}.editor-styles-wrapper .block-library-list ol,.editor-styles-wrapper .block-library-list ul{padding-left:1.3em;margin-left:1.3em}.editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}.editor-visual-editor__block[data-type="core/nextpage"]{max-width:100%}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}.editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable.wp-block-paragraph{padding-right:108px}.wp-block .wp-block .editor-rich-text__editable[data-is-placeholder-visible=true]+.editor-rich-text__editable.wp-block-paragraph{padding-right:36px}.wp-block-preformatted pre{white-space:pre-wrap}.editor-block-list__block[data-type="core/pullquote"][data-align=left] .editor-rich-text p,.editor-block-list__block[data-type="core/pullquote"][data-align=right] .editor-rich-text p{font-size:20px}.wp-block-pullquote blockquote>.editor-rich-text p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-left:0;margin-right:0}.wp-block-pullquote.is-style-solid-color blockquote>.editor-rich-text p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote{margin:0}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-search .wp-block-search__input{border-radius:4px;border:1px solid #8d96a0;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__button .wp-block-search__button-rich-text{padding:6px 10px}.wp-block-shortcode{display:flex;flex-direction:row;padding:14px;background-color:#f8f9f9;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-shortcode label{display:flex;align-items:center;margin-right:8px;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .editor-plain-text{flex-grow:1}.wp-block-shortcode .dashicon{margin-right:8px}.block-library-spacer__resize-container.is-selected{background:#f3f4f5}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.editor-block-list__block[data-type="core/table"][data-align=center] table,.editor-block-list__block[data-type="core/table"][data-align=left] table,.editor-block-list__block[data-type="core/table"][data-align=right] table{width:auto}.editor-block-list__block[data-type="core/table"][data-align=center]{text-align:initial}.editor-block-list__block[data-type="core/table"][data-align=center] table{margin:0 auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table td,.wp-block-table th{padding:0;border:1px solid #000}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table__cell-content{padding:.5em}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#8f98a1;text-decoration:none}.wp-block-text-columns .editor-rich-text__editable:focus{outline:1px solid #e2e4e7}.wp-block-verse pre,pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.editor-block-list__block[data-align=center]{text-align:center}.editor-video-poster-control .components-button{margin-right:8px}.editor-video-poster-control .components-button+.components-button{margin-top:1em} \ No newline at end of file +.block-editor ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin:0}.block-editor-block-list__block[data-type="core/button"][data-align=center]{text-align:center}.block-editor-block-list__block[data-type="core/button"][data-align=right]{ + /*!rtl:ignore*/text-align:right}.wp-block-button{display:inline-block;margin-bottom:0;position:relative}.wp-block-button [contenteditable]{cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{color:#fff}.wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{opacity:.8}.block-editor-block-preview__content .wp-block-button{max-width:100%}.block-editor-block-preview__content .wp-block-button .block-editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.block-editor-block-preview__content .wp-block-button .wp-block-button__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.block-library-button__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}.block-library-button__inline-link .block-editor-url-input{width:auto}.block-library-button__inline-link .block-editor-url-input__suggestions{width:302px;z-index:6}.block-library-button__inline-link>.dashicon{width:36px}.block-library-button__inline-link .dashicon{color:#8f98a1}.block-library-button__inline-link .block-editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .block-editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.block-library-button__inline-link .block-editor-url-input input[type=text]::placeholder{color:#8f98a1}[data-align=center] .block-library-button__inline-link{margin-left:auto;margin-right:auto}[data-align=right] .block-library-button__inline-link{margin-left:auto;margin-right:0}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;font-size:16px}@media (min-width:600px){.wp-block-code .block-editor-plain-text{font-size:13px}}.wp-block-code .block-editor-plain-text:focus{box-shadow:none}.components-tab-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;background:none;outline:none;color:#555d66;cursor:pointer;position:relative;height:36px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:500;border:0}.components-tab-button.is-active,.components-tab-button.is-active:hover{color:#fff}.components-tab-button:disabled{cursor:default}.components-tab-button>span{border:1px solid transparent;padding:0 6px;box-sizing:content-box;height:28px;line-height:28px}.components-tab-button:focus>span,.components-tab-button:hover>span{color:#555d66}.components-tab-button:not(:disabled).is-active>span,.components-tab-button:not(:disabled):focus>span,.components-tab-button:not(:disabled):hover>span{border:1px solid #555d66}.components-tab-button.is-active:hover>span,.components-tab-button.is-active>span{background-color:#555d66;color:#fff}.wp-block-columns .block-editor-block-list__layout{margin-left:0;margin-right:0}.wp-block-columns .block-editor-block-list__layout .block-editor-block-list__block{max-width:none}.block-editor-block-list__block[data-align=full] .wp-block-columns>.block-editor-inner-blocks{padding-left:14px;padding-right:14px}@media (min-width:600px){.block-editor-block-list__block[data-align=full] .wp-block-columns>.block-editor-inner-blocks{padding-left:60px;padding-right:60px}}.wp-block-columns{display:block}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-wrap:nowrap}}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{display:flex;flex-direction:column;flex:1;padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;flex-basis:100%}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit>div>.block-editor-inner-blocks{margin-top:-28px;margin-bottom:-28px}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit:before{left:0;right:0}.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar{margin-left:-1px}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]{margin-left:14px;margin-right:14px;flex-basis:calc(50% - 44px);flex-grow:0}}@media (min-width:600px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:nth-child(2n){margin-left:46px}}@media (min-width:782px){.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]:not(:first-child){margin-left:46px}}.wp-block-columns [data-type="core/column"]{pointer-events:none}.wp-block-columns [data-type="core/column"].is-hovered>.block-editor-block-list__block-edit:before{content:none}.wp-block-columns [data-type="core/column"].is-hovered .block-editor-block-list__breadcrumb{display:none}:not(.components-disabled)>.wp-block-columns>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="core/column"]>.block-editor-block-list__block-edit>*{pointer-events:all}.wp-block-cover-image .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary],.wp-block-cover .block-editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:none;background:hsla(0,0%,100%,.3)}.wp-block-cover-image.components-placeholder h2,.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover-image.has-left-content .block-editor-rich-text__inline-toolbar,.wp-block-cover-image.has-right-content .block-editor-rich-text__inline-toolbar,.wp-block-cover.has-left-content .block-editor-rich-text__inline-toolbar,.wp-block-cover.has-right-content .block-editor-rich-text__inline-toolbar{display:inline-block}.wp-block-cover-image .block-editor-block-list__layout,.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover-image .block-editor-block-list__block,.wp-block-cover .block-editor-block-list__block{color:#f8f9f9}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{text-align:left}.wp-block-cover-image .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout,.wp-block-cover .wp-block-cover__inner-container>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-left:0;margin-right:0}.wp-block-cover-image.components-placeholder,.wp-block-cover.components-placeholder{background:rgba(139,139,150,.1);min-height:200px}.is-dark-theme .wp-block-cover-image.components-placeholder,.is-dark-theme .wp-block-cover.components-placeholder{background:hsla(0,0%,100%,.15)}[data-align=left] .wp-block-cover,[data-align=left] .wp-block-cover-image,[data-align=right] .wp-block-cover,[data-align=right] .wp-block-cover-image{max-width:305px;width:100%}.wp-block-embed{margin:0;clear:both}@media (min-width:600px){.wp-block-embed{min-width:360px}.wp-block-embed.components-placeholder{min-width:0}}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;background:#f8f9f9}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file.is-transient{animation:edit-post__loading-fade-animation 1.6s ease-in-out infinite}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #e2e4e7;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d}.wp-block-freeform.block-library-rich-text__tinymce h1{font-size:2em}.wp-block-freeform.block-library-rich-text__tinymce h2{font-size:1.6em}.wp-block-freeform.block-library-rich-text__tinymce h3{font-size:1.4em}.wp-block-freeform.block-library-rich-text__tinymce h4{font-size:1.2em}.wp-block-freeform.block-library-rich-text__tinymce h5{font-size:1.1em}.wp-block-freeform.block-library-rich-text__tinymce h6{font-size:1em}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007fac}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#e8eaeb}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(/wp-includes/js/tinymce/skins/wordpress/images/more-2x.png);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #e8eaeb;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #e8eaeb;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"] .block-editor-block-list__block-edit:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #e2e4e7;outline:1px solid transparent}div[data-type="core/freeform"].is-selected .block-editor-block-list__block-edit:before{border-color:#b5bcc2 #b5bcc2 #b5bcc2 transparent}div[data-type="core/freeform"].is-hovered .block-editor-block-list__breadcrumb{display:none}div[data-type="core/freeform"] .editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#23282d}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{width:auto;margin:0 -14px;position:-webkit-sticky;position:sticky;z-index:10;top:14px;transform:translateY(-14px);border:1px solid #e2e4e7;border-bottom:none;padding:0 14px}.is-selected .block-library-classic__toolbar{border-color:#b5bcc2 #b5bcc2 #b5bcc2 transparent}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{height:37px;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}@media (min-width:600px){.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-switcher__no-switcher-icon{display:none}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar{float:right;margin-right:25px;transform:translateY(-13px);top:14px}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar{border:none;box-shadow:none;margin-top:3px}}@media (min-width:600px) and (min-width:782px){.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar{margin-top:0}}@media (min-width:600px){.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar:before{content:"";display:block;border-left:1px solid #e2e4e7;margin-top:4px;margin-bottom:4px}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar__control.components-button:hover{background-color:transparent}.block-editor-block-list__block[data-type="core/freeform"] .block-editor-block-contextual-toolbar .components-toolbar{background:transparent;border:none}.block-editor-block-list__block[data-type="core/freeform"] .mce-container.mce-toolbar.mce-stack-layout-item{padding-right:36px}}ul.wp-block-gallery li{list-style-type:none}.blocks-gallery-item figure:not(.is-selected):focus{outline:none}.blocks-gallery-item .is-selected,.blocks-gallery-item img:focus{outline:4px solid #0085ba}body.admin-color-sunrise .blocks-gallery-item .is-selected,body.admin-color-sunrise .blocks-gallery-item img:focus{outline:4px solid #d1864a}body.admin-color-ocean .blocks-gallery-item .is-selected,body.admin-color-ocean .blocks-gallery-item img:focus{outline:4px solid #a3b9a2}body.admin-color-midnight .blocks-gallery-item .is-selected,body.admin-color-midnight .blocks-gallery-item img:focus{outline:4px solid #e14d43}body.admin-color-ectoplasm .blocks-gallery-item .is-selected,body.admin-color-ectoplasm .blocks-gallery-item img:focus{outline:4px solid #a7b656}body.admin-color-coffee .blocks-gallery-item .is-selected,body.admin-color-coffee .blocks-gallery-item img:focus{outline:4px solid #c2a68c}body.admin-color-blue .blocks-gallery-item .is-selected,body.admin-color-blue .blocks-gallery-item img:focus{outline:4px solid #82b4cb}body.admin-color-light .blocks-gallery-item .is-selected,body.admin-color-light .blocks-gallery-item img:focus{outline:4px solid #0085ba}.blocks-gallery-item .is-transient img{opacity:.3}.blocks-gallery-item .block-editor-rich-text{position:absolute;bottom:0;width:100%;max-height:100%;overflow-y:auto}.blocks-gallery-item .block-editor-rich-text figcaption:not([data-is-placeholder-visible=true]){position:relative;overflow:hidden}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-item .is-selected .block-editor-rich-text{right:0;left:0;margin-top:-4px}}.blocks-gallery-item .is-selected .block-editor-rich-text .block-editor-rich-text__inline-toolbar{top:0}.blocks-gallery-item .is-selected .block-editor-rich-text figcaption{padding-top:48px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button,.blocks-gallery-item .components-form-file-upload{width:100%;height:100%}.blocks-gallery-item .components-button.block-library-gallery-add-item-button{display:flex;flex-direction:column;justify-content:center;box-shadow:none;border:none;border-radius:0;min-height:100px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button .dashicon{margin-top:10px}.blocks-gallery-item .components-button.block-library-gallery-add-item-button:focus,.blocks-gallery-item .components-button.block-library-gallery-add-item-button:hover{border:1px solid #555d66}.blocks-gallery-item .block-editor-rich-text figcaption a{color:#fff}.blocks-gallery-item .block-editor-rich-text figcaption:focus a[data-rich-text-format-boundary]{color:rgba(0,0,0,.2)}.block-library-gallery-item__inline-menu{padding:2px;position:absolute;top:-2px;right:-2px;background-color:#0085ba;display:inline-flex;z-index:20}body.admin-color-sunrise .block-library-gallery-item__inline-menu{background-color:#d1864a}body.admin-color-ocean .block-library-gallery-item__inline-menu{background-color:#a3b9a2}body.admin-color-midnight .block-library-gallery-item__inline-menu{background-color:#e14d43}body.admin-color-ectoplasm .block-library-gallery-item__inline-menu{background-color:#a7b656}body.admin-color-coffee .block-library-gallery-item__inline-menu{background-color:#c2a68c}body.admin-color-blue .block-library-gallery-item__inline-menu{background-color:#82b4cb}body.admin-color-light .block-library-gallery-item__inline-menu{background-color:#0085ba}.block-library-gallery-item__inline-menu .components-button,.block-library-gallery-item__inline-menu .components-button:focus,.block-library-gallery-item__inline-menu .components-button:hover{color:#fff}.blocks-gallery-item__remove{padding:0}.blocks-gallery-item__remove.components-button:focus{color:inherit}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.is-selected .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-selected .wp-block-gallery .blocks-gallery-item:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-image:nth-last-child(2),.is-typing .wp-block-gallery .blocks-gallery-item:nth-last-child(2){margin-right:0}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3,.wp-block-heading h4,.wp-block-heading h5,.wp-block-heading h6{color:inherit;margin:0}.wp-block-heading h1{font-size:2.44em}.wp-block-heading h2{font-size:1.95em}.wp-block-heading h3{font-size:1.56em}.wp-block-heading h4{font-size:1.25em}.wp-block-heading h5{font-size:1em}.wp-block-heading h6{font-size:.8em}.wp-block-heading h1,.wp-block-heading h2,.wp-block-heading h3{line-height:1.4}.wp-block-heading h4{line-height:1.5}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#23282d;padding:.8em 1em;border:1px solid #e2e4e7;border-radius:4px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}.wp-block-image{position:relative}.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:100%}.wp-block-image.is-focused .components-resizable-box__handle{display:block;z-index:1}.block-editor-block-list__block[data-type="core/image"][data-align=center] .wp-block-image,.block-editor-block-list__block[data-type="core/image"][data-align=center][data-resized=false] .wp-block-image>div{margin-left:auto;margin-right:auto}.edit-post-sidebar .block-library-image__dimensions{margin-bottom:1em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row{display:flex;justify-content:space-between}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-bottom:.5em}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height input,.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width input{line-height:1.25}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__width{margin-right:5px}.edit-post-sidebar .block-library-image__dimensions .block-library-image__dimensions__row .block-library-image__dimensions__height{margin-left:5px}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-type="core/image"][data-align=center] .block-editor-block-list__block-edit figure,[data-type="core/image"][data-align=left] .block-editor-block-list__block-edit figure,[data-type="core/image"][data-align=right] .block-editor-block-list__block-edit figure{margin:0;display:table}[data-type="core/image"][data-align=center] .block-editor-block-list__block-edit .block-editor-rich-text,[data-type="core/image"][data-align=left] .block-editor-block-list__block-edit .block-editor-rich-text,[data-type="core/image"][data-align=right] .block-editor-block-list__block-edit .block-editor-rich-text{display:table-caption;caption-side:bottom}[data-type="core/image"][data-align=full] figure img,[data-type="core/image"][data-align=wide] figure img{width:100%}[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized{margin:0;display:table}[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized .block-editor-rich-text{display:table-caption;caption-side:bottom}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.wp-block-legacy-widget__edit-container,.wp-block-legacy-widget__preview{padding-left:2.5em;padding-right:2.5em}.wp-block-legacy-widget__edit-container .widget-inside{border:none;display:block}.wp-block-legacy-widget__update-button{margin-left:auto;display:block}.wp-block-legacy-widget__edit-container .widget-inside{box-shadow:none}.wp-block-legacy-widget__preview{overflow:auto}.wp-block-media-text{grid-template-areas:"media-text-media media-text-content" "resizer resizer"}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media" "resizer resizer"}.wp-block-media-text .__resizable_base__{grid-area:resizer}.wp-block-media-text .editor-media-container__resizer{grid-area:media-text-media;align-self:center;width:100%!important}.wp-block-media-text .block-editor-inner-blocks{word-break:break-word;grid-area:media-text-content;text-align:initial;padding:0 8%}.wp-block-media-text>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}figure.block-library-media-text__media-container{margin:0;height:100%;width:100%}.wp-block-media-text .block-library-media-text__media-container img,.wp-block-media-text .block-library-media-text__media-container video{vertical-align:middle;width:100%}.editor-media-container__resizer .components-resizable-box__handle{display:none}.wp-block-media-text.is-selected:not(.is-stacked-on-mobile) .editor-media-container__resizer .components-resizable-box__handle{display:block}@media (min-width:600px){.wp-block-media-text.is-selected.is-stacked-on-mobile .editor-media-container__resizer .components-resizable-box__handle{display:block}}.editor-styles-wrapper .block-library-list ol,.editor-styles-wrapper .block-library-list ul{padding-left:1.3em;margin-left:1.3em}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#6c7781;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccd0d4}.block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable.wp-block-paragraph{padding-right:108px}.wp-block .wp-block .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable.wp-block-paragraph{padding-right:36px}.wp-block-preformatted pre{white-space:pre-wrap}.block-editor-block-list__block[data-type="core/pullquote"][data-align=left] .block-editor-rich-text p,.block-editor-block-list__block[data-type="core/pullquote"][data-align=right] .block-editor-rich-text p{font-size:20px}.wp-block-pullquote blockquote>.block-editor-rich-text p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color{margin-left:0;margin-right:0}.wp-block-pullquote.is-style-solid-color blockquote>.block-editor-rich-text p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote{margin:0}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-search .wp-block-search__input{border-radius:4px;border:1px solid #8d96a0;color:rgba(14,28,46,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:4px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-search .wp-block-search__button .wp-block-search__button-rich-text{padding:6px 10px}.wp-block-shortcode{display:flex;flex-direction:row;padding:14px;background-color:#f8f9f9;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-shortcode label{display:flex;align-items:center;margin-right:8px;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{flex-grow:1}.wp-block-shortcode .dashicon{margin-right:8px}.block-library-spacer__resize-container.is-selected{background:#f3f4f5}.edit-post-visual-editor p.wp-block-subhead{color:#6c7781;font-size:1.1em;font-style:italic}.block-editor-block-list__block[data-type="core/table"][data-align=center] table,.block-editor-block-list__block[data-type="core/table"][data-align=left] table,.block-editor-block-list__block[data-type="core/table"][data-align=right] table{width:auto}.block-editor-block-list__block[data-type="core/table"][data-align=center]{text-align:initial}.block-editor-block-list__block[data-type="core/table"][data-align=center] table{margin:0 auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table td,.wp-block-table th{padding:0;border:1px solid #000}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#00a0d2;box-shadow:inset 0 0 0 1px #00a0d2;border-style:double}.wp-block-table__cell-content{padding:.5em}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#8f98a1;text-decoration:none}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #e2e4e7}.wp-block-verse pre,pre.wp-block-verse{color:#191e23;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.block-editor-block-list__block[data-align=center]{text-align:center}.editor-video-poster-control .components-button{margin-right:8px}.editor-video-poster-control .components-button+.components-button{margin-top:1em} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style-rtl.css b/wp-includes/css/dist/block-library/style-rtl.css index 025a5ab27f..3bc9a33789 100644 --- a/wp-includes/css/dist/block-library/style-rtl.css +++ b/wp-includes/css/dist/block-library/style-rtl.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .wp-block-audio figcaption { margin-top: 0.5em; margin-bottom: 1em; @@ -39,7 +42,7 @@ width: 100%; min-width: 300px; } -.editor-block-list__layout .reusable-block-edit-panel { +.block-editor-block-list__layout .reusable-block-edit-panel { align-items: center; background: #f8f9f9; color: #555d66; @@ -51,38 +54,46 @@ top: -14px; margin: 0 -14px; padding: 8px 14px; - position: relative; } - .editor-block-list__layout .editor-block-list__layout .reusable-block-edit-panel { + position: relative; + border: 1px dashed rgba(145, 151, 162, 0.25); + border-bottom: none; } + .block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel { margin: 0 -14px; padding: 8px 14px; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner { margin: 0 5px; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info { margin-left: auto; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label { margin-left: 8px; white-space: nowrap; font-weight: 600; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { flex: 1 1 100%; font-size: 14px; height: 30px; margin: 4px 0 8px; } - .editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { + .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { flex-shrink: 0; } @media (min-width: 960px) { - .editor-block-list__layout .reusable-block-edit-panel { + .block-editor-block-list__layout .reusable-block-edit-panel { flex-wrap: nowrap; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { margin: 0; } - .editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { + .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { margin: 0 5px 0 0; } } -.editor-block-list__layout .reusable-block-indicator { +.editor-block-list__layout .is-selected .reusable-block-edit-panel { + border-color: rgba(66, 88, 99, 0.4); + border-right-color: transparent; } + .is-dark-theme .editor-block-list__layout .is-selected .reusable-block-edit-panel { + border-color: rgba(255, 255, 255, 0.45); + border-right-color: transparent; } + +.block-editor-block-list__layout .reusable-block-indicator { background: #fff; - border-right: 1px dashed #e2e4e7; + border: 1px dashed #e2e4e7; color: #555d66; - border-bottom: 1px dashed #e2e4e7; top: -14px; height: 30px; padding: 4px; @@ -321,6 +332,28 @@ .wp-block-cover.alignleft, .wp-block-cover.alignright { display: flex; } + .wp-block-cover-image .wp-block-cover__inner-container, + .wp-block-cover .wp-block-cover__inner-container { + width: calc(100% - 70px); + z-index: 1; + color: #f8f9f9; } + .wp-block-cover-image p, + .wp-block-cover-image h1, + .wp-block-cover-image h2, + .wp-block-cover-image h3, + .wp-block-cover-image h4, + .wp-block-cover-image h5, + .wp-block-cover-image h6, + .wp-block-cover-image .wp-block-subhead, + .wp-block-cover p, + .wp-block-cover h1, + .wp-block-cover h2, + .wp-block-cover h3, + .wp-block-cover h4, + .wp-block-cover h5, + .wp-block-cover h6, + .wp-block-cover .wp-block-subhead { + color: inherit; } .wp-block-cover__video-background { position: absolute; @@ -333,8 +366,8 @@ -o-object-fit: cover; object-fit: cover; } -.editor-block-list__block[data-type="core/embed"][data-align="left"] .editor-block-list__block-edit, -.editor-block-list__block[data-type="core/embed"][data-align="right"] .editor-block-list__block-edit, +.block-editor-block-list__block[data-type="core/embed"][data-align="left"] .block-editor-block-list__block-edit, +.block-editor-block-list__block[data-type="core/embed"][data-align="right"] .block-editor-block-list__block-edit, .wp-block-embed.alignleft, .wp-block-embed.alignright { max-width: 360px; diff --git a/wp-includes/css/dist/block-library/style-rtl.min.css b/wp-includes/css/dist/block-library/style-rtl.min.css index 2e1f35cda6..7d00169920 100644 --- a/wp-includes/css/dist/block-library/style-rtl.min.css +++ b/wp-includes/css/dist/block-library/style-rtl.min.css @@ -1 +1 @@ -.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-audio audio{width:100%;min-width:300px}.editor-block-list__layout .reusable-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;top:-14px;margin:0 -14px;padding:8px 14px;position:relative}.editor-block-list__layout .editor-block-list__layout .reusable-block-edit-panel{margin:0 -14px;padding:8px 14px}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner{margin:0 5px}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-weight:600}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:4px 0 8px}.editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 5px 0 0}}.editor-block-list__layout .reusable-block-indicator{background:#fff;border-right:1px dashed #e2e4e7;color:#555d66;border-bottom:1px dashed #e2e4e7;top:-14px;height:30px;padding:4px;position:absolute;z-index:1;width:30px;left:-14px}.wp-block-button{color:#fff;margin-bottom:1.5em}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link{background-color:#32373c;border:none;border-radius:28px;box-shadow:none;color:inherit;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:12px 24px;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:inherit}.is-style-squared .wp-block-button__link{border-radius:0}.is-style-outline{color:#32373c}.is-style-outline .wp-block-button__link{background-color:transparent;border:2px solid}.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:440;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-column{flex-grow:1;margin-bottom:1em;flex-basis:100%;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (min-width:600px){.wp-block-column{flex-basis:calc(50% - 16px);flex-grow:0}.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.wp-block-column:not(:first-child){margin-right:32px}}.wp-block-cover,.wp-block-cover-image{position:relative;background-color:#000;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center;overflow:hidden}.wp-block-cover-image.has-left-content,.wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content .wp-block-cover-text,.wp-block-cover-image.has-left-content h2,.wp-block-cover.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,.wp-block-cover.has-left-content h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content,.wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content .wp-block-cover-text,.wp-block-cover-image.has-right-content h2,.wp-block-cover.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,.wp-block-cover.has-right-content h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image .wp-block-cover-text,.wp-block-cover-image h2,.wp-block-cover .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,.wp-block-cover h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image .wp-block-cover-text a,.wp-block-cover-image .wp-block-cover-text a:active,.wp-block-cover-image .wp-block-cover-text a:focus,.wp-block-cover-image .wp-block-cover-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover,.wp-block-cover .wp-block-cover-image-text a,.wp-block-cover .wp-block-cover-image-text a:active,.wp-block-cover .wp-block-cover-image-text a:focus,.wp-block-cover .wp-block-cover-image-text a:hover,.wp-block-cover .wp-block-cover-text a,.wp-block-cover .wp-block-cover-text a:active,.wp-block-cover .wp-block-cover-text a:focus,.wp-block-cover .wp-block-cover-text a:hover,.wp-block-cover h2 a,.wp-block-cover h2 a:active,.wp-block-cover h2 a:focus,.wp-block-cover h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:inherit;opacity:.5;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10:before,.wp-block-cover.has-background-dim.has-background-dim-10:before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:before,.wp-block-cover.has-background-dim.has-background-dim-20:before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:before,.wp-block-cover.has-background-dim.has-background-dim-30:before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:before,.wp-block-cover.has-background-dim.has-background-dim-40:before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:before,.wp-block-cover.has-background-dim.has-background-dim-50:before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:before,.wp-block-cover.has-background-dim.has-background-dim-60:before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:before,.wp-block-cover.has-background-dim.has-background-dim-70:before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:before,.wp-block-cover.has-background-dim.has-background-dim-80:before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:before,.wp-block-cover.has-background-dim.has-background-dim-90:before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:before,.wp-block-cover.has-background-dim.has-background-dim-100:before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:305px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;-o-object-fit:cover;object-fit:cover}.editor-block-list__block[data-type="core/embed"][data-align=left] .editor-block-list__block-edit,.editor-block-list__block[data-type="core/embed"][data-align=right] .editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 16px 16px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;-o-object-fit:cover;object-fit:cover}}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc((100% - 16px)/2)}.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3 - 1px)}}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4 - 1px)}}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5 - 1px)}}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6 - 1px)}}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7 - 1px)}}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8 - 1px)}}.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.wp-block-gallery .blocks-gallery-item.has-add-item-button{width:100%}.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:305px;width:100%}.wp-block-gallery.aligncenter,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{display:flex}.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-image{max-width:100%;margin-bottom:1em;margin-right:0;margin-left:0}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table;margin-right:0;margin-left:0}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-right:1em}.wp-block-image .alignright{float:right;margin-left:1em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:right;height:40px;margin-left:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-media-text{display:grid;grid-template-rows:auto;align-items:center;grid-template-areas:"media-text-media media-text-content";grid-template-columns:50% auto}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media";grid-template-columns:auto 50%}.wp-block-media-text .wp-block-media-text__media{grid-area:media-text-media;margin:0}.wp-block-media-text .wp-block-media-text__content{word-break:break-word;grid-area:media-text-content;padding:0 8%}.wp-block-media-text>figure>img,.wp-block-media-text>figure>video{max-width:unset;width:100%;vertical-align:middle}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important;grid-template-areas:"media-text-media" "media-text-content"}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right{grid-template-areas:"media-text-content" "media-text-media"}}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}.has-drop-cap:not(:focus):after{content:"";display:table;clear:both;padding-top:14px}p.has-background{padding:20px 30px}p.has-text-color a{color:inherit}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:305px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1}.wp-block-search .wp-block-search__button{margin-right:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:#191e23;font-size:20px;letter-spacing:2em;padding-right:2em;font-family:serif}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table.has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table.has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table.has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table.has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tr:nth-child(odd),.wp-block-table.is-style-stripes tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{white-space:nowrap;overflow:auto}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.has-pale-pink-background-color.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color.has-pale-pink-color{color:#f78da7}.has-vivid-red-color.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color.has-very-dark-gray-color{color:#313131}.has-small-font-size{font-size:13px}.has-normal-font-size,.has-regular-font-size{font-size:16px}.has-medium-font-size{font-size:20px}.has-large-font-size{font-size:36px}.has-huge-font-size,.has-larger-font-size{font-size:42px} \ No newline at end of file +.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-audio audio{width:100%;min-width:300px}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;top:-14px;margin:0 -14px;padding:8px 14px;position:relative;border:1px dashed rgba(145,151,162,.25);border-bottom:none}.block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel{margin:0 -14px;padding:8px 14px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner{margin:0 5px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-weight:600}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:4px 0 8px}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 5px 0 0}}.editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:rgba(66,88,99,.4) transparent rgba(66,88,99,.4) rgba(66,88,99,.4)}.is-dark-theme .editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:hsla(0,0%,100%,.45) transparent hsla(0,0%,100%,.45) hsla(0,0%,100%,.45)}.block-editor-block-list__layout .reusable-block-indicator{background:#fff;border:1px dashed #e2e4e7;color:#555d66;top:-14px;height:30px;padding:4px;position:absolute;z-index:1;width:30px;left:-14px}.wp-block-button{color:#fff;margin-bottom:1.5em}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link{background-color:#32373c;border:none;border-radius:28px;box-shadow:none;color:inherit;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:12px 24px;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:inherit}.is-style-squared .wp-block-button__link{border-radius:0}.is-style-outline{color:#32373c}.is-style-outline .wp-block-button__link{background-color:transparent;border:2px solid}.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:440;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-column{flex-grow:1;margin-bottom:1em;flex-basis:100%;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (min-width:600px){.wp-block-column{flex-basis:calc(50% - 16px);flex-grow:0}.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.wp-block-column:not(:first-child){margin-right:32px}}.wp-block-cover,.wp-block-cover-image{position:relative;background-color:#000;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center;overflow:hidden}.wp-block-cover-image.has-left-content,.wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content .wp-block-cover-text,.wp-block-cover-image.has-left-content h2,.wp-block-cover.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,.wp-block-cover.has-left-content h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content,.wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content .wp-block-cover-text,.wp-block-cover-image.has-right-content h2,.wp-block-cover.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,.wp-block-cover.has-right-content h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image .wp-block-cover-text,.wp-block-cover-image h2,.wp-block-cover .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,.wp-block-cover h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image .wp-block-cover-text a,.wp-block-cover-image .wp-block-cover-text a:active,.wp-block-cover-image .wp-block-cover-text a:focus,.wp-block-cover-image .wp-block-cover-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover,.wp-block-cover .wp-block-cover-image-text a,.wp-block-cover .wp-block-cover-image-text a:active,.wp-block-cover .wp-block-cover-image-text a:focus,.wp-block-cover .wp-block-cover-image-text a:hover,.wp-block-cover .wp-block-cover-text a,.wp-block-cover .wp-block-cover-text a:active,.wp-block-cover .wp-block-cover-text a:focus,.wp-block-cover .wp-block-cover-text a:hover,.wp-block-cover h2 a,.wp-block-cover h2 a:active,.wp-block-cover h2 a:focus,.wp-block-cover h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:inherit;opacity:.5;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10:before,.wp-block-cover.has-background-dim.has-background-dim-10:before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:before,.wp-block-cover.has-background-dim.has-background-dim-20:before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:before,.wp-block-cover.has-background-dim.has-background-dim-30:before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:before,.wp-block-cover.has-background-dim.has-background-dim-40:before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:before,.wp-block-cover.has-background-dim.has-background-dim-50:before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:before,.wp-block-cover.has-background-dim.has-background-dim-60:before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:before,.wp-block-cover.has-background-dim.has-background-dim-70:before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:before,.wp-block-cover.has-background-dim.has-background-dim-80:before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:before,.wp-block-cover.has-background-dim.has-background-dim-90:before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:before,.wp-block-cover.has-background-dim.has-background-dim-100:before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:305px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:calc(100% - 70px);z-index:1;color:#f8f9f9}.wp-block-cover-image .wp-block-subhead,.wp-block-cover-image h1,.wp-block-cover-image h2,.wp-block-cover-image h3,.wp-block-cover-image h4,.wp-block-cover-image h5,.wp-block-cover-image h6,.wp-block-cover-image p,.wp-block-cover .wp-block-subhead,.wp-block-cover h1,.wp-block-cover h2,.wp-block-cover h3,.wp-block-cover h4,.wp-block-cover h5,.wp-block-cover h6,.wp-block-cover p{color:inherit}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;-o-object-fit:cover;object-fit:cover}.block-editor-block-list__block[data-type="core/embed"][data-align=left] .block-editor-block-list__block-edit,.block-editor-block-list__block[data-type="core/embed"][data-align=right] .block-editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 16px 16px;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;-o-object-fit:cover;object-fit:cover}}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc((100% - 16px)/2)}.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3 - 1px)}}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4 - 1px)}}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5 - 1px)}}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6 - 1px)}}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7 - 1px)}}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8);margin-left:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8 - 1px)}}.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.wp-block-gallery .blocks-gallery-item.has-add-item-button{width:100%}.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:305px;width:100%}.wp-block-gallery.aligncenter,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{display:flex}.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-image{max-width:100%;margin-bottom:1em;margin-right:0;margin-left:0}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table;margin-right:0;margin-left:0}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-right:1em}.wp-block-image .alignright{float:right;margin-left:1em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:right;height:40px;margin-left:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-media-text{display:grid;grid-template-rows:auto;align-items:center;grid-template-areas:"media-text-media media-text-content";grid-template-columns:50% auto}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media";grid-template-columns:auto 50%}.wp-block-media-text .wp-block-media-text__media{grid-area:media-text-media;margin:0}.wp-block-media-text .wp-block-media-text__content{word-break:break-word;grid-area:media-text-content;padding:0 8%}.wp-block-media-text>figure>img,.wp-block-media-text>figure>video{max-width:unset;width:100%;vertical-align:middle}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important;grid-template-areas:"media-text-media" "media-text-content"}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right{grid-template-areas:"media-text-content" "media-text-media"}}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}.has-drop-cap:not(:focus):after{content:"";display:table;clear:both;padding-top:14px}p.has-background{padding:20px 30px}p.has-text-color a{color:inherit}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:305px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 16px 16px;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1}.wp-block-search .wp-block-search__button{margin-right:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:#191e23;font-size:20px;letter-spacing:2em;padding-right:2em;font-family:serif}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table.has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table.has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table.has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table.has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tr:nth-child(odd),.wp-block-table.is-style-stripes tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{white-space:nowrap;overflow:auto}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.has-pale-pink-background-color.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color.has-pale-pink-color{color:#f78da7}.has-vivid-red-color.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color.has-very-dark-gray-color{color:#313131}.has-small-font-size{font-size:13px}.has-normal-font-size,.has-regular-font-size{font-size:16px}.has-medium-font-size{font-size:20px}.has-large-font-size{font-size:36px}.has-huge-font-size,.has-larger-font-size{font-size:42px} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style.css b/wp-includes/css/dist/block-library/style.css index 07180b9d0b..54eb940658 100644 --- a/wp-includes/css/dist/block-library/style.css +++ b/wp-includes/css/dist/block-library/style.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .wp-block-audio figcaption { margin-top: 0.5em; margin-bottom: 1em; @@ -39,7 +42,7 @@ width: 100%; min-width: 300px; } -.editor-block-list__layout .reusable-block-edit-panel { +.block-editor-block-list__layout .reusable-block-edit-panel { align-items: center; background: #f8f9f9; color: #555d66; @@ -51,38 +54,46 @@ top: -14px; margin: 0 -14px; padding: 8px 14px; - position: relative; } - .editor-block-list__layout .editor-block-list__layout .reusable-block-edit-panel { + position: relative; + border: 1px dashed rgba(145, 151, 162, 0.25); + border-bottom: none; } + .block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel { margin: 0 -14px; padding: 8px 14px; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner { margin: 0 5px; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info { margin-right: auto; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label { margin-right: 8px; white-space: nowrap; font-weight: 600; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { flex: 1 1 100%; font-size: 14px; height: 30px; margin: 4px 0 8px; } - .editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { + .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { flex-shrink: 0; } @media (min-width: 960px) { - .editor-block-list__layout .reusable-block-edit-panel { + .block-editor-block-list__layout .reusable-block-edit-panel { flex-wrap: nowrap; } - .editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { + .block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title { margin: 0; } - .editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { + .block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button { margin: 0 0 0 5px; } } -.editor-block-list__layout .reusable-block-indicator { +.editor-block-list__layout .is-selected .reusable-block-edit-panel { + border-color: rgba(66, 88, 99, 0.4); + border-left-color: transparent; } + .is-dark-theme .editor-block-list__layout .is-selected .reusable-block-edit-panel { + border-color: rgba(255, 255, 255, 0.45); + border-left-color: transparent; } + +.block-editor-block-list__layout .reusable-block-indicator { background: #fff; - border-left: 1px dashed #e2e4e7; + border: 1px dashed #e2e4e7; color: #555d66; - border-bottom: 1px dashed #e2e4e7; top: -14px; height: 30px; padding: 4px; @@ -324,6 +335,28 @@ .wp-block-cover.alignleft, .wp-block-cover.alignright { display: flex; } + .wp-block-cover-image .wp-block-cover__inner-container, + .wp-block-cover .wp-block-cover__inner-container { + width: calc(100% - 70px); + z-index: 1; + color: #f8f9f9; } + .wp-block-cover-image p, + .wp-block-cover-image h1, + .wp-block-cover-image h2, + .wp-block-cover-image h3, + .wp-block-cover-image h4, + .wp-block-cover-image h5, + .wp-block-cover-image h6, + .wp-block-cover-image .wp-block-subhead, + .wp-block-cover p, + .wp-block-cover h1, + .wp-block-cover h2, + .wp-block-cover h3, + .wp-block-cover h4, + .wp-block-cover h5, + .wp-block-cover h6, + .wp-block-cover .wp-block-subhead { + color: inherit; } .wp-block-cover__video-background { position: absolute; @@ -336,8 +369,8 @@ -o-object-fit: cover; object-fit: cover; } -.editor-block-list__block[data-type="core/embed"][data-align="left"] .editor-block-list__block-edit, -.editor-block-list__block[data-type="core/embed"][data-align="right"] .editor-block-list__block-edit, +.block-editor-block-list__block[data-type="core/embed"][data-align="left"] .block-editor-block-list__block-edit, +.block-editor-block-list__block[data-type="core/embed"][data-align="right"] .block-editor-block-list__block-edit, .wp-block-embed.alignleft, .wp-block-embed.alignright { max-width: 360px; diff --git a/wp-includes/css/dist/block-library/style.min.css b/wp-includes/css/dist/block-library/style.min.css index 969de36ae6..691ce116a1 100644 --- a/wp-includes/css/dist/block-library/style.min.css +++ b/wp-includes/css/dist/block-library/style.min.css @@ -1 +1 @@ -.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-audio audio{width:100%;min-width:300px}.editor-block-list__layout .reusable-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;top:-14px;margin:0 -14px;padding:8px 14px;position:relative}.editor-block-list__layout .editor-block-list__layout .reusable-block-edit-panel{margin:0 -14px;padding:8px 14px}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner{margin:0 5px}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-weight:600}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:4px 0 8px}.editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 5px}}.editor-block-list__layout .reusable-block-indicator{background:#fff;border-left:1px dashed #e2e4e7;color:#555d66;border-bottom:1px dashed #e2e4e7;top:-14px;height:30px;padding:4px;position:absolute;z-index:1;width:30px;right:-14px}.wp-block-button{color:#fff;margin-bottom:1.5em}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link{background-color:#32373c;border:none;border-radius:28px;box-shadow:none;color:inherit;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:12px 24px;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:inherit}.is-style-squared .wp-block-button__link{border-radius:0}.is-style-outline{color:#32373c}.is-style-outline .wp-block-button__link{background-color:transparent;border:2px solid}.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:440;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-column{flex-grow:1;margin-bottom:1em;flex-basis:100%;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (min-width:600px){.wp-block-column{flex-basis:calc(50% - 16px);flex-grow:0}.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.wp-block-column:not(:first-child){margin-left:32px}}.wp-block-cover,.wp-block-cover-image{position:relative;background-color:#000;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center;overflow:hidden}.wp-block-cover-image.has-left-content,.wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content .wp-block-cover-text,.wp-block-cover-image.has-left-content h2,.wp-block-cover.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,.wp-block-cover.has-left-content h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content,.wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content .wp-block-cover-text,.wp-block-cover-image.has-right-content h2,.wp-block-cover.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,.wp-block-cover.has-right-content h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image .wp-block-cover-text,.wp-block-cover-image h2,.wp-block-cover .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,.wp-block-cover h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image .wp-block-cover-text a,.wp-block-cover-image .wp-block-cover-text a:active,.wp-block-cover-image .wp-block-cover-text a:focus,.wp-block-cover-image .wp-block-cover-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover,.wp-block-cover .wp-block-cover-image-text a,.wp-block-cover .wp-block-cover-image-text a:active,.wp-block-cover .wp-block-cover-image-text a:focus,.wp-block-cover .wp-block-cover-image-text a:hover,.wp-block-cover .wp-block-cover-text a,.wp-block-cover .wp-block-cover-text a:active,.wp-block-cover .wp-block-cover-text a:focus,.wp-block-cover .wp-block-cover-text a:hover,.wp-block-cover h2 a,.wp-block-cover h2 a:active,.wp-block-cover h2 a:focus,.wp-block-cover h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:inherit;opacity:.5;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10:before,.wp-block-cover.has-background-dim.has-background-dim-10:before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:before,.wp-block-cover.has-background-dim.has-background-dim-20:before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:before,.wp-block-cover.has-background-dim.has-background-dim-30:before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:before,.wp-block-cover.has-background-dim.has-background-dim-40:before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:before,.wp-block-cover.has-background-dim.has-background-dim-50:before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:before,.wp-block-cover.has-background-dim.has-background-dim-60:before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:before,.wp-block-cover.has-background-dim.has-background-dim-70:before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:before,.wp-block-cover.has-background-dim.has-background-dim-80:before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:before,.wp-block-cover.has-background-dim.has-background-dim-90:before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:before,.wp-block-cover.has-background-dim.has-background-dim-100:before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:305px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;-o-object-fit:cover;object-fit:cover}.editor-block-list__block[data-type="core/embed"][data-align=left] .editor-block-list__block-edit,.editor-block-list__block[data-type="core/embed"][data-align=right] .editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 16px 16px 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;-o-object-fit:cover;object-fit:cover}}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc((100% - 16px)/2)}.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3 - 1px)}}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4 - 1px)}}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5 - 1px)}}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6 - 1px)}}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7 - 1px)}}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8 - 1px)}}.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.wp-block-gallery .blocks-gallery-item.has-add-item-button{width:100%}.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:305px;width:100%}.wp-block-gallery.aligncenter,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{display:flex}.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-image{max-width:100%;margin-bottom:1em;margin-left:0;margin-right:0}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table;margin-left:0;margin-right:0}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-right:1em}.wp-block-image .alignright{float:right;margin-left:1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:left;height:40px;margin-right:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-media-text{display:grid;grid-template-rows:auto;align-items:center;grid-template-areas:"media-text-media media-text-content";grid-template-columns:50% auto}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media";grid-template-columns:auto 50%}.wp-block-media-text .wp-block-media-text__media{grid-area:media-text-media;margin:0}.wp-block-media-text .wp-block-media-text__content{word-break:break-word;grid-area:media-text-content;padding:0 8%}.wp-block-media-text>figure>img,.wp-block-media-text>figure>video{max-width:unset;width:100%;vertical-align:middle}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important;grid-template-areas:"media-text-media" "media-text-content"}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right{grid-template-areas:"media-text-content" "media-text-media"}}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}.has-drop-cap:not(:focus):after{content:"";display:table;clear:both;padding-top:14px}p.has-background{padding:20px 30px}p.has-text-color a{color:inherit}.wp-block-pullquote{padding:3em 0;margin-left:0;margin-right:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:305px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;text-align:left;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:right}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1}.wp-block-search .wp-block-search__button{margin-left:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:#191e23;font-size:20px;letter-spacing:2em;padding-left:2em;font-family:serif}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table.has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table.has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table.has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table.has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tr:nth-child(odd),.wp-block-table.is-style-stripes tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{white-space:nowrap;overflow:auto}.wp-block-video{margin-left:0;margin-right:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.has-pale-pink-background-color.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color.has-pale-pink-color{color:#f78da7}.has-vivid-red-color.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color.has-very-dark-gray-color{color:#313131}.has-small-font-size{font-size:13px}.has-normal-font-size,.has-regular-font-size{font-size:16px}.has-medium-font-size{font-size:20px}.has-large-font-size{font-size:36px}.has-huge-font-size,.has-larger-font-size{font-size:42px} \ No newline at end of file +.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-audio audio{width:100%;min-width:300px}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;background:#f8f9f9;color:#555d66;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;top:-14px;margin:0 -14px;padding:8px 14px;position:relative;border:1px dashed rgba(145,151,162,.25);border-bottom:none}.block-editor-block-list__layout .block-editor-block-list__layout .reusable-block-edit-panel{margin:0 -14px;padding:8px 14px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__spinner{margin:0 5px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-weight:600}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%;font-size:14px;height:30px;margin:4px 0 8px}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 5px}}.editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:rgba(66,88,99,.4) rgba(66,88,99,.4) rgba(66,88,99,.4) transparent}.is-dark-theme .editor-block-list__layout .is-selected .reusable-block-edit-panel{border-color:hsla(0,0%,100%,.45) hsla(0,0%,100%,.45) hsla(0,0%,100%,.45) transparent}.block-editor-block-list__layout .reusable-block-indicator{background:#fff;border:1px dashed #e2e4e7;color:#555d66;top:-14px;height:30px;padding:4px;position:absolute;z-index:1;width:30px;right:-14px}.wp-block-button{color:#fff;margin-bottom:1.5em}.wp-block-button.aligncenter{text-align:center}.wp-block-button.alignright{text-align:right}.wp-block-button__link{background-color:#32373c;border:none;border-radius:28px;box-shadow:none;color:inherit;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:12px 24px;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:inherit}.is-style-squared .wp-block-button__link{border-radius:0}.is-style-outline{color:#32373c}.is-style-outline .wp-block-button__link{background-color:transparent;border:2px solid}.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:4px;border:1px solid #e2e4e7}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-calendar table th{font-weight:440;background:#edeff0}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar tfoot a{color:#00739c}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-column{flex-grow:1;margin-bottom:1em;flex-basis:100%;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (min-width:600px){.wp-block-column{flex-basis:calc(50% - 16px);flex-grow:0}.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.wp-block-column:not(:first-child){margin-left:32px}}.wp-block-cover,.wp-block-cover-image{position:relative;background-color:#000;background-size:cover;background-position:50%;min-height:430px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center;overflow:hidden}.wp-block-cover-image.has-left-content,.wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover-image.has-left-content .wp-block-cover-text,.wp-block-cover-image.has-left-content h2,.wp-block-cover.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,.wp-block-cover.has-left-content h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content,.wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover-image.has-right-content .wp-block-cover-text,.wp-block-cover-image.has-right-content h2,.wp-block-cover.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,.wp-block-cover.has-right-content h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover-image .wp-block-cover-text,.wp-block-cover-image h2,.wp-block-cover .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,.wp-block-cover h2{color:#fff;font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:610px;padding:14px;text-align:center}.wp-block-cover-image .wp-block-cover-image-text a,.wp-block-cover-image .wp-block-cover-image-text a:active,.wp-block-cover-image .wp-block-cover-image-text a:focus,.wp-block-cover-image .wp-block-cover-image-text a:hover,.wp-block-cover-image .wp-block-cover-text a,.wp-block-cover-image .wp-block-cover-text a:active,.wp-block-cover-image .wp-block-cover-text a:focus,.wp-block-cover-image .wp-block-cover-text a:hover,.wp-block-cover-image h2 a,.wp-block-cover-image h2 a:active,.wp-block-cover-image h2 a:focus,.wp-block-cover-image h2 a:hover,.wp-block-cover .wp-block-cover-image-text a,.wp-block-cover .wp-block-cover-image-text a:active,.wp-block-cover .wp-block-cover-image-text a:focus,.wp-block-cover .wp-block-cover-image-text a:hover,.wp-block-cover .wp-block-cover-text a,.wp-block-cover .wp-block-cover-text a:active,.wp-block-cover .wp-block-cover-text a:focus,.wp-block-cover .wp-block-cover-text a:hover,.wp-block-cover h2 a,.wp-block-cover h2 a:active,.wp-block-cover h2 a:focus,.wp-block-cover h2 a:hover{color:#fff}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:inherit;opacity:.5;z-index:1}.wp-block-cover-image.has-background-dim.has-background-dim-10:before,.wp-block-cover.has-background-dim.has-background-dim-10:before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20:before,.wp-block-cover.has-background-dim.has-background-dim-20:before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30:before,.wp-block-cover.has-background-dim.has-background-dim-30:before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40:before,.wp-block-cover.has-background-dim.has-background-dim-40:before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50:before,.wp-block-cover.has-background-dim.has-background-dim-50:before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60:before,.wp-block-cover.has-background-dim.has-background-dim-60:before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70:before,.wp-block-cover.has-background-dim.has-background-dim-70:before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80:before,.wp-block-cover.has-background-dim.has-background-dim-80:before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90:before,.wp-block-cover.has-background-dim.has-background-dim-90:before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100:before,.wp-block-cover.has-background-dim.has-background-dim-100:before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:305px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:calc(100% - 70px);z-index:1;color:#f8f9f9}.wp-block-cover-image .wp-block-subhead,.wp-block-cover-image h1,.wp-block-cover-image h2,.wp-block-cover-image h3,.wp-block-cover-image h4,.wp-block-cover-image h5,.wp-block-cover-image h6,.wp-block-cover-image p,.wp-block-cover .wp-block-subhead,.wp-block-cover h1,.wp-block-cover h2,.wp-block-cover h3,.wp-block-cover h4,.wp-block-cover h5,.wp-block-cover h6,.wp-block-cover p{color:inherit}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;-o-object-fit:cover;object-fit:cover}.block-editor-block-list__block[data-type="core/embed"][data-align=left] .block-editor-block-list__block-edit,.block-editor-block-list__block[data-type="core/embed"][data-align=right] .block-editor-block-list__block-edit,.wp-block-embed.alignleft,.wp-block-embed.alignright{max-width:360px;width:100%}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe,.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-6 .wp-block-embed__wrapper:before{padding-top:66.66%}.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:13px;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 16px 16px 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative}.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:40px 10px 9px;color:#fff;text-align:center;font-size:13px;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent)}.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;-o-object-fit:cover;object-fit:cover}}.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{width:calc((100% - 16px)/2)}.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc((100% - 32px)/3 - 1px)}}.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc((100% - 48px)/4 - 1px)}}.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc((100% - 64px)/5 - 1px)}}.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc((100% - 80px)/6 - 1px)}}.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc((100% - 96px)/7 - 1px)}}.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8);margin-right:16px}@supports (-ms-ime-align:auto){.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc((100% - 112px)/8 - 1px)}}.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.wp-block-gallery .blocks-gallery-item.has-add-item-button{width:100%}.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:305px;width:100%}.wp-block-gallery.aligncenter,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{display:flex}.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-image{max-width:100%;margin-bottom:1em;margin-left:0;margin-right:0}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.is-resized{display:table;margin-left:0;margin-right:0}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.is-resized>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-right:1em}.wp-block-image .alignright{float:right;margin-left:1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.wp-block-latest-comments__comment{font-size:15px;line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:36px;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:52px}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px}.wp-block-latest-comments__comment-date{color:#8f98a1;display:block;font-size:12px}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:24px;display:block;float:left;height:40px;margin-right:12px;width:40px}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-latest-posts.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - 16px)}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-latest-posts.columns-4 li{width:calc(25% - 16px)}.wp-block-latest-posts.columns-5 li{width:calc(20% - 16px)}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-latest-posts__post-date{display:block;color:#6c7781;font-size:13px}.wp-block-media-text{display:grid;grid-template-rows:auto;align-items:center;grid-template-areas:"media-text-media media-text-content";grid-template-columns:50% auto}.wp-block-media-text.has-media-on-the-right{grid-template-areas:"media-text-content media-text-media";grid-template-columns:auto 50%}.wp-block-media-text .wp-block-media-text__media{grid-area:media-text-media;margin:0}.wp-block-media-text .wp-block-media-text__content{word-break:break-word;grid-area:media-text-content;padding:0 8%}.wp-block-media-text>figure>img,.wp-block-media-text>figure>video{max-width:unset;width:100%;vertical-align:middle}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important;grid-template-areas:"media-text-media" "media-text-content"}.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right{grid-template-areas:"media-text-content" "media-text-media"}}.is-small-text{font-size:14px}.is-regular-text{font-size:16px}.is-large-text{font-size:36px}.is-larger-text{font-size:48px}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em .1em 0 0;text-transform:uppercase;font-style:normal}.has-drop-cap:not(:focus):after{content:"";display:table;clear:both;padding-top:14px}p.has-background{padding:20px 30px}p.has-text-color a{color:inherit}.wp-block-pullquote{padding:3em 0;margin-left:0;margin-right:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:305px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:20px}.wp-block-pullquote p{font-size:28px;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;text-align:left;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:32px}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin:0 0 16px;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:24px;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:18px;text-align:right}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 16px 16px 0;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 16px)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 16px)}.wp-block-rss.columns-4 li{width:calc(25% - 16px)}.wp-block-rss.columns-5 li{width:calc(20% - 16px)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 16px)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{color:#6c7781;font-size:13px}.wp-block-search{display:flex;flex-wrap:wrap}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1}.wp-block-search .wp-block-search__button{margin-left:10px}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:#191e23;font-size:20px;letter-spacing:2em;padding-left:2em;font-family:serif}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table.has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table.has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table.has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table.has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f3f4f5}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tr:nth-child(odd),.wp-block-table.is-style-stripes tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 16px;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{white-space:nowrap;overflow:auto}.wp-block-video{margin-left:0;margin-right:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center;font-size:13px}.has-pale-pink-background-color.has-pale-pink-background-color{background-color:#f78da7}.has-vivid-red-background-color.has-vivid-red-background-color{background-color:#cf2e2e}.has-luminous-vivid-orange-background-color.has-luminous-vivid-orange-background-color{background-color:#ff6900}.has-luminous-vivid-amber-background-color.has-luminous-vivid-amber-background-color{background-color:#fcb900}.has-light-green-cyan-background-color.has-light-green-cyan-background-color{background-color:#7bdcb5}.has-vivid-green-cyan-background-color.has-vivid-green-cyan-background-color{background-color:#00d084}.has-pale-cyan-blue-background-color.has-pale-cyan-blue-background-color{background-color:#8ed1fc}.has-vivid-cyan-blue-background-color.has-vivid-cyan-blue-background-color{background-color:#0693e3}.has-very-light-gray-background-color.has-very-light-gray-background-color{background-color:#eee}.has-cyan-bluish-gray-background-color.has-cyan-bluish-gray-background-color{background-color:#abb8c3}.has-very-dark-gray-background-color.has-very-dark-gray-background-color{background-color:#313131}.has-pale-pink-color.has-pale-pink-color{color:#f78da7}.has-vivid-red-color.has-vivid-red-color{color:#cf2e2e}.has-luminous-vivid-orange-color.has-luminous-vivid-orange-color{color:#ff6900}.has-luminous-vivid-amber-color.has-luminous-vivid-amber-color{color:#fcb900}.has-light-green-cyan-color.has-light-green-cyan-color{color:#7bdcb5}.has-vivid-green-cyan-color.has-vivid-green-cyan-color{color:#00d084}.has-pale-cyan-blue-color.has-pale-cyan-blue-color{color:#8ed1fc}.has-vivid-cyan-blue-color.has-vivid-cyan-blue-color{color:#0693e3}.has-very-light-gray-color.has-very-light-gray-color{color:#eee}.has-cyan-bluish-gray-color.has-cyan-bluish-gray-color{color:#abb8c3}.has-very-dark-gray-color.has-very-dark-gray-color{color:#313131}.has-small-font-size{font-size:13px}.has-normal-font-size,.has-regular-font-size{font-size:16px}.has-medium-font-size{font-size:20px}.has-large-font-size{font-size:36px}.has-huge-font-size,.has-larger-font-size{font-size:42px} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/theme-rtl.css b/wp-includes/css/dist/block-library/theme-rtl.css index 8db8c08baf..3fc8873f2b 100644 --- a/wp-includes/css/dist/block-library/theme-rtl.css +++ b/wp-includes/css/dist/block-library/theme-rtl.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .wp-block-code { font-family: Menlo, Consolas, monaco, monospace; font-size: 14px; diff --git a/wp-includes/css/dist/block-library/theme.css b/wp-includes/css/dist/block-library/theme.css index 56b3c7d6ba..a955154803 100644 --- a/wp-includes/css/dist/block-library/theme.css +++ b/wp-includes/css/dist/block-library/theme.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .wp-block-code { font-family: Menlo, Consolas, monaco, monospace; font-size: 14px; diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css index 4d1584f8f4..e19c094189 100644 --- a/wp-includes/css/dist/components/style-rtl.css +++ b/wp-includes/css/dist/components/style-rtl.css @@ -28,9 +28,15 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .components-animate__appear { animation: components-animate__appear-animation 0.1s cubic-bezier(0, 0, 0.2, 1) 0s; animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-animate__appear { + animation-duration: 1ms !important; } } .components-animate__appear.is-from-top, .components-animate__appear.is-from-top.is-from-left { transform-origin: top right; } .components-animate__appear.is-from-top.is-from-right { @@ -49,6 +55,9 @@ .components-animate__slide-in { animation: components-animate__slide-in-animation 0.1s cubic-bezier(0, 0, 0.2, 1); animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-animate__slide-in { + animation-duration: 1ms !important; } } .components-animate__slide-in.is-from-left { transform: translateX(-100%); } @@ -2439,6 +2448,9 @@ body.is-dragging-components-draggable { z-index: 100000; animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-modal__screen-overlay { + animation-duration: 1ms !important; } } .components-modal__frame { position: absolute; @@ -2464,6 +2476,9 @@ body.is-dragging-components-draggable { transform: translate(50%, -50%); animation: components-modal__appear-animation 0.1s ease-out; animation-fill-mode: forwards; } } + @media (min-width: 600px) and (prefers-reduced-motion: reduce) { + .components-modal__frame { + animation-duration: 1ms !important; } } @keyframes components-modal__appear-animation { from { @@ -2703,7 +2718,8 @@ body.is-dragging-components-draggable { font-weight: 600; margin-bottom: 1em; } .components-placeholder__label .dashicon, - .components-placeholder__label .editor-block-icon { + .components-placeholder__label .block-editor-block-icon { + fill: currentColor; margin-left: 1ch; } .components-placeholder__fieldset, @@ -3072,7 +3088,7 @@ body.lockscroll { position: absolute; background-color: #fff; top: 3px; - right: 3px; + left: 3px; width: 4px; height: 4px; border-radius: 100%; @@ -3201,12 +3217,12 @@ div.components-toolbar > div + div { background: #191e23; border-width: 0; color: #fff; - white-space: nowrap; } + white-space: nowrap; + text-align: center; } .components-tooltip:not(.is-mobile) .components-popover__content { min-width: 0; } .components-tooltip__shortcut { display: block; - text-align: center; color: #7e8993; } diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css index a297f4d069..7635b24cf6 100644 --- a/wp-includes/css/dist/components/style-rtl.min.css +++ b/wp-includes/css/dist/components/style-rtl.min.css @@ -1 +1 @@ -.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px 8px;margin-right:-3px;margin-left:-3px;text-align:right}.components-autocomplete__result.components-button.is-selected{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-autocomplete__result.components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-base-control+.components-base-control{margin-bottom:16px}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-right:-1px}.components-button-group .components-button.is-button:first-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button:last-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,-1px 0 1px #925e34,0 1px 1px #925e34,1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,-1px 0 1px #728271,0 1px 1px #728271,1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,-1px 0 1px #9e362f,0 1px 1px #9e362f,1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,-1px 0 1px #757f3c,0 1px 1px #757f3c,1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,-1px 0 1px #887462,0 1px 1px #887462,1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,-1px 0 1px #98783e,0 1px 1px #98783e,1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#d1864a 28%,#925e34 0,#925e34 72%,#d1864a 0);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a3b9a2 28%,#728271 0,#728271 72%,#a3b9a2 0);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#e14d43 28%,#9e362f 0,#9e362f 72%,#e14d43 0);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a7b656 28%,#757f3c 0,#757f3c 72%,#a7b656 0);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#c2a68c 28%,#887462 0,#887462 72%,#c2a68c 0);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#82b4cb 28%,#5b7e8e 0,#5b7e8e 72%,#82b4cb 0);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s linear infinite;background-size:100px 100%;background-image:repeating-linear-gradient(45deg,#e2e4e7,#fff 11px,#fff 0,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:none}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}.components-button .screen-reader-text{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-palette{margin-left:-14px;width:calc(100% + 14px)}.components-color-palette .components-color-palette__custom-clear-wrapper{width:calc(100% - 14px);display:flex;justify-content:flex-end}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-left:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:transform .1s ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px;border:1px solid #606a73}.components-color-palette__item.is-active+.dashicons-saved{position:absolute;right:4px;top:4px}.components-color-palette__item:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:none}.components-color-palette__item:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;right:0;bottom:0;left:0}.components-color-palette__clear-color-line:before{position:absolute;top:0;right:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(-45deg) translateY(-13px) translateX(1px)}.components-color-palette__custom-color{margin-left:16px}.components-color-palette__custom-color .components-button{line-height:22px}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(270deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(270deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{right:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:2px}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-right:auto;margin-left:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-right:-8px;margin-left:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .components-datetime__date-help-button,.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-right:8px;margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 0 0 -4px!important;border-radius:0 4px 4px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:4px 0 0 4px!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-right:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:transparent;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:100;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus:before{top:-3px;left:-3px;bottom:-3px;right:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator: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}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 0 -1px 8px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:-webkit-grab;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:-webkit-grabbing;cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;right:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#d1864a}body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a3b9a2}body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#e14d43}body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a7b656}body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#c2a68c}body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#82b4cb}body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 0 0 1em}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 .2em 0 0}.components-font-size-picker__buttons{max-width:248px;display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:30px;margin-right:0}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 40px 10px 20px;width:100%;text-align:right}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);right:10px}.components-font-size-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-font-size-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-font-size-picker__buttons .components-font-size-picker__selector{background:none;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-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}.components-form-file-upload .components-button.is-large{padding-right:6px}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px;box-sizing:border-box}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;left:6px}.components-form-toggle .components-form-toggle__on{right:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;right:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked:before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked:before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked:before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked:before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked:before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked:before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 8px 2px 0;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4,1,.4,1)}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:none;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:none}.components-icon-button.has-text svg{margin-left:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:none;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px 0}.components-menu-group__label{margin-bottom:8px;color:#6c7781;padding:0 7px}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px 15px;text-align:right;color:#40464d}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg{margin-left:4px}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut,.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut{opacity:1}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.84}.components-menu-item__shortcut{align-self:center;opacity:.84;margin-left:0;margin-right:auto;padding-right:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:hsla(0,0%,100%,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 112px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-right:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 0 1em 25px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:4px}.components-notice__action.components-button.is-default{vertical-align:initial}.components-notice__dismiss{position:absolute;top:0;left:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:29}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f3f4f5}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:none;width:100%;font-weight:600;text-align:right;color:#191e23;border:none;box-shadow:none;transition:background .1s ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:hsla(0,0%,100%,.15)}.components-placeholder__label{display:flex;align-items:center;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .dashicon,.components-placeholder__label .editor-block-icon{margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__input{margin-left:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}.components-popover{position:fixed;z-index:1000000;left:50%}.components-popover.is-mobile{top:0;left:0;right:0;bottom:0}.components-popover:not(.is-without-arrow):not(.is-mobile){margin-left:2px}.components-popover:not(.is-without-arrow):not(.is-mobile):before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):not(.is-mobile):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):not(.is-mobile):after,.components-popover:not(.is-without-arrow):not(.is-mobile):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{bottom:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after{bottom:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom{margin-top:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:before{top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:after{top:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left{margin-left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:before{right:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:after{right:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right{margin-left:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:before{left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:after{left:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover:not(.is-mobile).is-top{bottom:100%}.components-popover:not(.is-mobile).is-bottom{top:100%;z-index:99990}.components-popover:not(.is-mobile).is-middle{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover.is-mobile .components-popover__content{height:calc(100% - 50px);border-top:0}.components-popover:not(.is-mobile) .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover:not(.is-mobile).is-top .components-popover__content{bottom:100%}.components-popover:not(.is-mobile).is-center .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover:not(.is-mobile).is-right .components-popover__content{position:absolute;left:100%}.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-24px}.components-popover:not(.is-mobile).is-left .components-popover__content{position:absolute;right:100%}.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;border:1px solid #e2e4e7;display:flex;height:50px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-icon-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-left:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-left:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-right:0;flex:1}.components-range-control__slider{width:100%;margin-right:8px;padding:0;-webkit-appearance:none;background:transparent}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:none}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:transparent;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-right:8px;font-weight:500;width:54px}.components-resizable-box__handle{display:none;width:24px;height:24px;padding:4px}.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle:before{display:block;content:"";width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit}body.admin-color-sunrise .components-resizable-box__handle:before{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle:before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle:before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle:before{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle:before{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle:before{background:#82b4cb}body.admin-color-light .components-resizable-box__handle:before{background:#0085ba}.components-resizable-box__handle-right{top:calc(50% - 12px);right:-12px}.components-resizable-box__handle-bottom{bottom:-12px;left:calc(50% - 12px)}.components-resizable-box__handle-left{top:calc(50% - 12px);left:-12px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.components-sandbox,body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:left;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;right:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-text-control__input,.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-right:-3px}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:none;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:none;box-shadow:none;background:none;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]:after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover:before{border-color:transparent}.components-tooltip.components-popover.is-top:after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom:after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;text-align:center;color:#7e8993} \ No newline at end of file +.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms!important}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms!important}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px 8px;margin-right:-3px;margin-left:-3px;text-align:right}.components-autocomplete__result.components-button.is-selected{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-autocomplete__result.components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-base-control+.components-base-control{margin-bottom:16px}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-right:-1px}.components-button-group .components-button.is-button:first-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button:last-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,-1px 0 1px #925e34,0 1px 1px #925e34,1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,-1px 0 1px #728271,0 1px 1px #728271,1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,-1px 0 1px #9e362f,0 1px 1px #9e362f,1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,-1px 0 1px #757f3c,0 1px 1px #757f3c,1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,-1px 0 1px #887462,0 1px 1px #887462,1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,-1px 0 1px #98783e,0 1px 1px #98783e,1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,-1px 0 1px #005d82,0 1px 1px #005d82,1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#d1864a 28%,#925e34 0,#925e34 72%,#d1864a 0);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a3b9a2 28%,#728271 0,#728271 72%,#a3b9a2 0);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#e14d43 28%,#9e362f 0,#9e362f 72%,#e14d43 0);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#a7b656 28%,#757f3c 0,#757f3c 72%,#a7b656 0);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#c2a68c 28%,#887462 0,#887462 72%,#c2a68c 0);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#82b4cb 28%,#5b7e8e 0,#5b7e8e 72%,#82b4cb 0);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s linear infinite;background-size:100px 100%;background-image:repeating-linear-gradient(45deg,#e2e4e7,#fff 11px,#fff 0,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:none}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}.components-button .screen-reader-text{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-color-palette{margin-left:-14px;width:calc(100% + 14px)}.components-color-palette .components-color-palette__custom-clear-wrapper{width:calc(100% - 14px);display:flex;justify-content:flex-end}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-left:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:transform .1s ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px;border:1px solid #606a73}.components-color-palette__item.is-active+.dashicons-saved{position:absolute;right:4px;top:4px}.components-color-palette__item:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:none}.components-color-palette__item:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;right:0;bottom:0;left:0}.components-color-palette__clear-color-line:before{position:absolute;top:0;right:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(-45deg) translateY(-13px) translateX(1px)}.components-color-palette__custom-color{margin-left:16px}.components-color-palette__custom-color .components-button{line-height:22px}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-left:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(270deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#ddd 0),linear-gradient(45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:100% 0,100% 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;right:0;left:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(270deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{right:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:2px}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-right:auto;margin-left:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-right:-8px;margin-left:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .components-datetime__date-help-button,.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-right:8px;margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 0 0 -4px!important;border-radius:0 4px 4px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:4px 0 0 4px!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-right:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:transparent;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:100;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;right:0;left:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus:before{top:-3px;left:-3px;bottom:-3px;right:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator: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}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 0 -1px 8px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:-webkit-grab;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:-webkit-grabbing;cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;right:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#d1864a}body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a3b9a2}body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#e14d43}body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a7b656}body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#c2a68c}body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#82b4cb}body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 0 0 1em}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 .2em 0 0}.components-font-size-picker__buttons{max-width:248px;display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:30px;margin-right:0}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 40px 10px 20px;width:100%;text-align:right}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);right:10px}.components-font-size-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-font-size-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-font-size-picker__buttons .components-font-size-picker__selector{background:none;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-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}.components-form-file-upload .components-button.is-large{padding-right:6px}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px;box-sizing:border-box}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;left:6px}.components-form-toggle .components-form-toggle__on{right:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;right:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked:before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked:before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked:before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked:before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked:before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked:before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 8px 2px 0;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4,1,.4,1)}.components-form-token-field__token-text{border-radius:0 12px 12px 0;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:12px 0 0 12px;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:none;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:none}.components-icon-button.has-text svg{margin-left:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:none;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px 0}.components-menu-group__label{margin-bottom:8px;color:#6c7781;padding:0 7px}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px 15px;text-align:right;color:#40464d}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg{margin-left:4px}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut,.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut{opacity:1}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.84}.components-menu-item__shortcut{align-self:center;opacity:.84;margin-left:0;margin-right:auto;padding-right:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:hsla(0,0%,100%,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms!important}}.components-modal__frame{position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 112px);transform:translate(50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms!important}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-right:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 0 1em 25px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:4px}.components-notice__action.components-button.is-default{vertical-align:initial}.components-notice__dismiss{position:absolute;top:0;left:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:29}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f3f4f5}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:none;width:100%;font-weight:600;text-align:right;color:#191e23;border:none;box-shadow:none;transition:background .1s ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:hsla(0,0%,100%,.15)}.components-placeholder__label{display:flex;align-items:center;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon{fill:currentColor;margin-left:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__input{margin-left:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em}.components-popover{position:fixed;z-index:1000000;left:50%}.components-popover.is-mobile{top:0;left:0;right:0;bottom:0}.components-popover:not(.is-without-arrow):not(.is-mobile){margin-left:2px}.components-popover:not(.is-without-arrow):not(.is-mobile):before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):not(.is-mobile):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):not(.is-mobile):after,.components-popover:not(.is-without-arrow):not(.is-mobile):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{bottom:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after{bottom:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom{margin-top:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:before{top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:after{top:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left{margin-left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:before{right:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:after{right:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right{margin-left:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:before{left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:after{left:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover:not(.is-mobile).is-top{bottom:100%}.components-popover:not(.is-mobile).is-bottom{top:100%;z-index:99990}.components-popover:not(.is-mobile).is-middle{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover.is-mobile .components-popover__content{height:calc(100% - 50px);border-top:0}.components-popover:not(.is-mobile) .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover:not(.is-mobile).is-top .components-popover__content{bottom:100%}.components-popover:not(.is-mobile).is-center .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover:not(.is-mobile).is-right .components-popover__content{position:absolute;left:100%}.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-24px}.components-popover:not(.is-mobile).is-left .components-popover__content{position:absolute;right:100%}.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;border:1px solid #e2e4e7;display:flex;height:50px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-icon-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{margin-top:0;margin-left:6px}.components-range-control .components-base-control__field{display:flex;justify-content:center;flex-wrap:wrap;align-items:center}.components-range-control .dashicon{flex-shrink:0;margin-left:10px}.components-range-control .components-base-control__label{width:100%}.components-range-control .components-range-control__slider{margin-right:0;flex:1}.components-range-control__slider{width:100%;margin-right:8px;padding:0;-webkit-appearance:none;background:transparent}.components-range-control__slider::-webkit-slider-thumb{-webkit-appearance:none;height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box;margin-top:-7px}.components-range-control__slider::-moz-range-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;border:4px solid transparent;background-clip:padding-box;box-sizing:border-box}.components-range-control__slider::-ms-thumb{height:18px;width:18px;border-radius:50%;cursor:pointer;background:#555d66;background-clip:padding-box;box-sizing:border-box;margin-top:0;height:14px;width:14px;border:2px solid transparent}.components-range-control__slider:focus{outline:none}.components-range-control__slider:focus::-webkit-slider-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-moz-range-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider:focus::-ms-thumb{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-range-control__slider::-webkit-slider-runnable-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px;margin-top:-4px}.components-range-control__slider::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__slider::-ms-track{margin-top:-4px;background:transparent;border-color:transparent;color:transparent;height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.components-range-control__number{display:inline-block;margin-right:8px;font-weight:500;width:54px}.components-resizable-box__handle{display:none;width:24px;height:24px;padding:4px}.components-resizable-box__container.is-selected .components-resizable-box__handle{display:block}.components-resizable-box__handle:before{display:block;content:"";width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#0085ba;cursor:inherit}body.admin-color-sunrise .components-resizable-box__handle:before{background:#d1864a}body.admin-color-ocean .components-resizable-box__handle:before{background:#a3b9a2}body.admin-color-midnight .components-resizable-box__handle:before{background:#e14d43}body.admin-color-ectoplasm .components-resizable-box__handle:before{background:#a7b656}body.admin-color-coffee .components-resizable-box__handle:before{background:#c2a68c}body.admin-color-blue .components-resizable-box__handle:before{background:#82b4cb}body.admin-color-light .components-resizable-box__handle:before{background:#0085ba}.components-resizable-box__handle-right{top:calc(50% - 12px);right:-12px}.components-resizable-box__handle-bottom{bottom:-12px;left:calc(50% - 12px)}.components-resizable-box__handle-left{top:calc(50% - 12px);left:-12px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.components-sandbox,body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:left;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.components-text-control__input,.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-right:-3px}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;right:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:none;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:none;box-shadow:none;background:none;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]:after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover:before{border-color:transparent}.components-tooltip.components-popover.is-top:after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom:after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap;text-align:center}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;color:#7e8993} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style.css b/wp-includes/css/dist/components/style.css index 4450035b53..224b269424 100644 --- a/wp-includes/css/dist/components/style.css +++ b/wp-includes/css/dist/components/style.css @@ -28,9 +28,15 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .components-animate__appear { animation: components-animate__appear-animation 0.1s cubic-bezier(0, 0, 0.2, 1) 0s; animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-animate__appear { + animation-duration: 1ms !important; } } .components-animate__appear.is-from-top, .components-animate__appear.is-from-top.is-from-left { transform-origin: top left; } .components-animate__appear.is-from-top.is-from-right { @@ -49,6 +55,9 @@ .components-animate__slide-in { animation: components-animate__slide-in-animation 0.1s cubic-bezier(0, 0, 0.2, 1); animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-animate__slide-in { + animation-duration: 1ms !important; } } .components-animate__slide-in.is-from-left { transform: translateX(100%); } @@ -2443,6 +2452,9 @@ body.is-dragging-components-draggable { z-index: 100000; animation: edit-post__fade-in-animation 0.2s ease-out 0s; animation-fill-mode: forwards; } + @media (prefers-reduced-motion: reduce) { + .components-modal__screen-overlay { + animation-duration: 1ms !important; } } .components-modal__frame { position: absolute; @@ -2468,6 +2480,9 @@ body.is-dragging-components-draggable { transform: translate(-50%, -50%); animation: components-modal__appear-animation 0.1s ease-out; animation-fill-mode: forwards; } } + @media (min-width: 600px) and (prefers-reduced-motion: reduce) { + .components-modal__frame { + animation-duration: 1ms !important; } } @keyframes components-modal__appear-animation { from { @@ -2709,7 +2724,8 @@ body.is-dragging-components-draggable { font-weight: 600; margin-bottom: 1em; } .components-placeholder__label .dashicon, - .components-placeholder__label .editor-block-icon { + .components-placeholder__label .block-editor-block-icon { + fill: currentColor; margin-right: 1ch; } .components-placeholder__fieldset, @@ -3082,6 +3098,7 @@ body.lockscroll { border-radius: 100%; position: relative; } .components-spinner::before { + /* rtl:begin:ignore */ content: ""; position: absolute; background-color: #fff; @@ -3091,7 +3108,8 @@ body.lockscroll { height: 4px; border-radius: 100%; transform-origin: 6px 6px; - animation: components-spinner__animation 1s infinite linear; } + animation: components-spinner__animation 1s infinite linear; + /* rtl:end:ignore */ } @keyframes components-spinner__animation { from { @@ -3215,12 +3233,12 @@ div.components-toolbar > div + div { background: #191e23; border-width: 0; color: #fff; - white-space: nowrap; } + white-space: nowrap; + text-align: center; } .components-tooltip:not(.is-mobile) .components-popover__content { min-width: 0; } .components-tooltip__shortcut { display: block; - text-align: center; color: #7e8993; } diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css index fef40f51bd..274c35ea86 100644 --- a/wp-includes/css/dist/components/style.min.css +++ b/wp-includes/css/dist/components/style.min.css @@ -1,4 +1,4 @@ -.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px 8px;margin-left:-3px;margin-right:-3px;text-align:left}.components-autocomplete__result.components-button.is-selected{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-autocomplete__result.components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-base-control+.components-base-control{margin-bottom:16px}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-left:-1px}.components-button-group .components-button.is-button:first-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button:last-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,1px 0 1px #925e34,0 1px 1px #925e34,-1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,1px 0 1px #728271,0 1px 1px #728271,-1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,1px 0 1px #9e362f,0 1px 1px #9e362f,-1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,1px 0 1px #757f3c,0 1px 1px #757f3c,-1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,1px 0 1px #887462,0 1px 1px #887462,-1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,1px 0 1px #98783e,0 1px 1px #98783e,-1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#d1864a 28%,#925e34 0,#925e34 72%,#d1864a 0);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a3b9a2 28%,#728271 0,#728271 72%,#a3b9a2 0);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#e14d43 28%,#9e362f 0,#9e362f 72%,#e14d43 0);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a7b656 28%,#757f3c 0,#757f3c 72%,#a7b656 0);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#c2a68c 28%,#887462 0,#887462 72%,#c2a68c 0);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#82b4cb 28%,#5b7e8e 0,#5b7e8e 72%,#82b4cb 0);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s linear infinite;background-size:100px 100%;background-image:repeating-linear-gradient(-45deg,#e2e4e7,#fff 11px,#fff 0,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:none}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}.components-button .screen-reader-text{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-palette{margin-right:-14px;width:calc(100% + 14px)}.components-color-palette .components-color-palette__custom-clear-wrapper{width:calc(100% - 14px);display:flex;justify-content:flex-end}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-right:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:transform .1s ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px;border:1px solid #606a73}.components-color-palette__item.is-active+.dashicons-saved{position:absolute;left:4px;top:4px}.components-color-palette__item:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:none}.components-color-palette__item:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;left:0;bottom:0;right:0}.components-color-palette__clear-color-line:before{position:absolute;top:0;left:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(45deg) translateY(-13px) translateX(-1px)}.components-color-palette__custom-color{margin-right:16px}.components-color-palette__custom-color .components-button{line-height:22px}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(-4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:2px}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-left:auto;margin-right:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-left:-8px;margin-right:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .components-datetime__date-help-button,.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-left:8px;margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 -4px 0 0!important;border-radius:4px 0 0 4px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 4px 4px 0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-left:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:transparent;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus:before{top:-3px;right:-3px;bottom:-3px;left:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator: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}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 8px -1px 0}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:-webkit-grab;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:-webkit-grabbing;cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;left:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#d1864a}body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a3b9a2}body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#e14d43}body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a7b656}body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#c2a68c}body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#82b4cb}body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 1em 0 0}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 0 0 .2em}.components-font-size-picker__buttons{max-width:248px;display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:30px;margin-left:0}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 20px 10px 40px;width:100%;text-align:left}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);left:10px}.components-font-size-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-font-size-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-font-size-picker__buttons .components-font-size-picker__selector{background:none;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-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}.components-form-file-upload .components-button.is-large{padding-left:6px}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px;box-sizing:border-box}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;right:6px}.components-form-toggle .components-form-toggle__on{left:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked:before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked:before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked:before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked:before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked:before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked:before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 0 2px 8px;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4,1,.4,1)}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:none;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:none}.components-icon-button.has-text svg{margin-right:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:none;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px 0}.components-menu-group__label{margin-bottom:8px;color:#6c7781;padding:0 7px}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px 15px;text-align:left;color:#40464d}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg{margin-right:4px}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut,.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut{opacity:1}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.84}.components-menu-item__shortcut{align-self:center;opacity:.84;margin-right:0;margin-left:auto;padding-left:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:hsla(0,0%,100%,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 112px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-left:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 25px 1em 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:4px}.components-notice__action.components-button.is-default{vertical-align:initial}.components-notice__dismiss{position:absolute;top:0;right:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:29}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f3f4f5}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:none;width:100%;font-weight:600;text-align:left;color:#191e23;border:none;box-shadow:none;transition:background .1s ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:hsla(0,0%,100%,.15)}.components-placeholder__label{display:flex;align-items:center;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .dashicon,.components-placeholder__label .editor-block-icon{margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__input{margin-right:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em} +.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms!important}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms!important}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-autocomplete__popover .components-popover__content{min-width:200px}.components-autocomplete__popover .components-autocomplete__results{padding:3px;display:flex;flex-direction:column;align-items:stretch}.components-autocomplete__popover .components-autocomplete__results:empty{display:none}.components-autocomplete__result.components-button{margin-bottom:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;color:#555d66;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:6px 8px;margin-left:-3px;margin-right:-3px;text-align:left}.components-autocomplete__result.components-button.is-selected{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-autocomplete__result.components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-base-control{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-base-control .components-base-control__field{margin-bottom:8px}.components-panel__row .components-base-control .components-base-control__field{margin-bottom:inherit}.components-base-control .components-base-control__label{display:block;margin-bottom:4px}.components-base-control .components-base-control__help{margin-top:-8px;font-style:italic}.components-base-control+.components-base-control{margin-bottom:16px}.components-button-group{display:inline-block}.components-button-group .components-button.is-button{border-radius:0}.components-button-group .components-button.is-button+.components-button.is-button{margin-left:-1px}.components-button-group .components-button.is-button:first-child{border-radius:3px 0 0 3px}.components-button-group .components-button.is-button:last-child{border-radius:0 3px 3px 0}.components-button-group .components-button.is-button.is-primary,.components-button-group .components-button.is-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-button.is-primary{box-shadow:none}.components-button{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none}.components-button.is-button{padding:0 10px 1px;line-height:26px;height:28px;border-radius:3px;white-space:nowrap;border-width:1px;border-style:solid}.components-button.is-default{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:inset 0 -1px 0 #ccc;vertical-align:top}.components-button.is-default:hover{background:#fafafa;border-color:#999;box-shadow:inset 0 -1px 0 #999;color:#23282d;text-decoration:none}.components-button.is-default:focus:enabled{background:#fafafa;color:#23282d;border-color:#999;box-shadow:inset 0 -1px 0 #999,0 0 0 2px #bfe7f3;text-decoration:none}.components-button.is-default:active:enabled{background:#eee;border-color:#999;box-shadow:inset 0 1px 0 #999}.components-button.is-default:disabled,.components-button.is-default[aria-disabled=true]{color:#a0a5aa;border-color:#ddd;background:#f7f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;transform:none}.components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}body.admin-color-sunrise .components-button.is-primary{background:#d1864a;border-color:#a76b3b #9d6538 #9d6538;box-shadow:inset 0 -1px 0 #9d6538;text-shadow:0 -1px 1px #925e34,1px 0 1px #925e34,0 1px 1px #925e34,-1px 0 1px #925e34}body.admin-color-ocean .components-button.is-primary{background:#a3b9a2;border-color:#829482 #7a8b7a #7a8b7a;box-shadow:inset 0 -1px 0 #7a8b7a;text-shadow:0 -1px 1px #728271,1px 0 1px #728271,0 1px 1px #728271,-1px 0 1px #728271}body.admin-color-midnight .components-button.is-primary{background:#e14d43;border-color:#b43e36 #a93a32 #a93a32;box-shadow:inset 0 -1px 0 #a93a32;text-shadow:0 -1px 1px #9e362f,1px 0 1px #9e362f,0 1px 1px #9e362f,-1px 0 1px #9e362f}body.admin-color-ectoplasm .components-button.is-primary{background:#a7b656;border-color:#869245 #7d8941 #7d8941;box-shadow:inset 0 -1px 0 #7d8941;text-shadow:0 -1px 1px #757f3c,1px 0 1px #757f3c,0 1px 1px #757f3c,-1px 0 1px #757f3c}body.admin-color-coffee .components-button.is-primary{background:#c2a68c;border-color:#9b8570 #927d69 #927d69;box-shadow:inset 0 -1px 0 #927d69;text-shadow:0 -1px 1px #887462,1px 0 1px #887462,0 1px 1px #887462,-1px 0 1px #887462}body.admin-color-blue .components-button.is-primary{background:#d9ab59;border-color:#ae8947 #a38043 #a38043;box-shadow:inset 0 -1px 0 #a38043;text-shadow:0 -1px 1px #98783e,1px 0 1px #98783e,0 1px 1px #98783e,-1px 0 1px #98783e}body.admin-color-light .components-button.is-primary{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;text-shadow:0 -1px 1px #005d82,1px 0 1px #005d82,0 1px 1px #005d82,-1px 0 1px #005d82}.components-button.is-primary:focus:enabled,.components-button.is-primary:hover{background:#007eb1;border-color:#00435d;color:#fff}body.admin-color-sunrise .components-button.is-primary:focus:enabled,body.admin-color-sunrise .components-button.is-primary:hover{background:#c77f46;border-color:#694325}body.admin-color-ocean .components-button.is-primary:focus:enabled,body.admin-color-ocean .components-button.is-primary:hover{background:#9bb09a;border-color:#525d51}body.admin-color-midnight .components-button.is-primary:focus:enabled,body.admin-color-midnight .components-button.is-primary:hover{background:#d64940;border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled,body.admin-color-ectoplasm .components-button.is-primary:hover{background:#9fad52;border-color:#545b2b}body.admin-color-coffee .components-button.is-primary:focus:enabled,body.admin-color-coffee .components-button.is-primary:hover{background:#b89e85;border-color:#615346}body.admin-color-blue .components-button.is-primary:focus:enabled,body.admin-color-blue .components-button.is-primary:hover{background:#cea255;border-color:#6d562d}body.admin-color-light .components-button.is-primary:focus:enabled,body.admin-color-light .components-button.is-primary:hover{background:#007eb1;border-color:#00435d}.components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}body.admin-color-sunrise .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #694325}body.admin-color-ocean .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #615346}body.admin-color-blue .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #6d562d}body.admin-color-light .components-button.is-primary:hover{box-shadow:inset 0 -1px 0 #00435d}.components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}body.admin-color-sunrise .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #694325,0 0 0 2px #bfe7f3}body.admin-color-ocean .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #525d51,0 0 0 2px #bfe7f3}body.admin-color-midnight .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #712722,0 0 0 2px #bfe7f3}body.admin-color-ectoplasm .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #545b2b,0 0 0 2px #bfe7f3}body.admin-color-coffee .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #615346,0 0 0 2px #bfe7f3}body.admin-color-blue .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #6d562d,0 0 0 2px #bfe7f3}body.admin-color-light .components-button.is-primary:focus:enabled{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d;vertical-align:top}body.admin-color-sunrise .components-button.is-primary:active:enabled{background:#a76b3b;border-color:#694325;box-shadow:inset 0 1px 0 #694325}body.admin-color-ocean .components-button.is-primary:active:enabled{background:#829482;border-color:#525d51;box-shadow:inset 0 1px 0 #525d51}body.admin-color-midnight .components-button.is-primary:active:enabled{background:#b43e36;border-color:#712722;box-shadow:inset 0 1px 0 #712722}body.admin-color-ectoplasm .components-button.is-primary:active:enabled{background:#869245;border-color:#545b2b;box-shadow:inset 0 1px 0 #545b2b}body.admin-color-coffee .components-button.is-primary:active:enabled{background:#9b8570;border-color:#615346;box-shadow:inset 0 1px 0 #615346}body.admin-color-blue .components-button.is-primary:active:enabled{background:#ae8947;border-color:#6d562d;box-shadow:inset 0 1px 0 #6d562d}body.admin-color-light .components-button.is-primary:active:enabled{background:#006a95;border-color:#00435d;box-shadow:inset 0 1px 0 #00435d}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95;box-shadow:none;text-shadow:0 -1px 0 rgba(0,0,0,.1)}body.admin-color-sunrise .components-button.is-primary:disabled,body.admin-color-sunrise .components-button.is-primary[aria-disabled=true]{color:#dfaa80;background:#925e34;border-color:#a76b3b}body.admin-color-ocean .components-button.is-primary:disabled,body.admin-color-ocean .components-button.is-primary[aria-disabled=true]{color:#bfcebe;background:#728271;border-color:#829482}body.admin-color-midnight .components-button.is-primary:disabled,body.admin-color-midnight .components-button.is-primary[aria-disabled=true]{color:#ea827b;background:#9e362f;border-color:#b43e36}body.admin-color-ectoplasm .components-button.is-primary:disabled,body.admin-color-ectoplasm .components-button.is-primary[aria-disabled=true]{color:#c1cc89;background:#757f3c;border-color:#869245}body.admin-color-coffee .components-button.is-primary:disabled,body.admin-color-coffee .components-button.is-primary[aria-disabled=true]{color:#d4c1af;background:#887462;border-color:#9b8570}body.admin-color-blue .components-button.is-primary:disabled,body.admin-color-blue .components-button.is-primary[aria-disabled=true]{color:#e4c48b;background:#98783e;border-color:#ae8947}body.admin-color-light .components-button.is-primary:disabled,body.admin-color-light .components-button.is-primary[aria-disabled=true]{color:#4daacf;background:#005d82;border-color:#006a95}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}body.admin-color-sunrise .components-button.is-primary.is-busy,body.admin-color-sunrise .components-button.is-primary.is-busy:disabled,body.admin-color-sunrise .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#d1864a 28%,#925e34 0,#925e34 72%,#d1864a 0);border-color:#694325}body.admin-color-ocean .components-button.is-primary.is-busy,body.admin-color-ocean .components-button.is-primary.is-busy:disabled,body.admin-color-ocean .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a3b9a2 28%,#728271 0,#728271 72%,#a3b9a2 0);border-color:#525d51}body.admin-color-midnight .components-button.is-primary.is-busy,body.admin-color-midnight .components-button.is-primary.is-busy:disabled,body.admin-color-midnight .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#e14d43 28%,#9e362f 0,#9e362f 72%,#e14d43 0);border-color:#712722}body.admin-color-ectoplasm .components-button.is-primary.is-busy,body.admin-color-ectoplasm .components-button.is-primary.is-busy:disabled,body.admin-color-ectoplasm .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#a7b656 28%,#757f3c 0,#757f3c 72%,#a7b656 0);border-color:#545b2b}body.admin-color-coffee .components-button.is-primary.is-busy,body.admin-color-coffee .components-button.is-primary.is-busy:disabled,body.admin-color-coffee .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#c2a68c 28%,#887462 0,#887462 72%,#c2a68c 0);border-color:#615346}body.admin-color-blue .components-button.is-primary.is-busy,body.admin-color-blue .components-button.is-primary.is-busy:disabled,body.admin-color-blue .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#82b4cb 28%,#5b7e8e 0,#5b7e8e 72%,#82b4cb 0);border-color:#415a66}body.admin-color-light .components-button.is-primary.is-busy,body.admin-color-light .components-button.is-primary.is-busy:disabled,body.admin-color-light .components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#0085ba 28%,#005d82 0,#005d82 72%,#0085ba 0);border-color:#00435d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:#0073aa;text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}.components-button.is-link:active,.components-button.is-link:hover{color:#00a0d2}.components-button.is-link:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.components-button.is-link.is-destructive{color:#d94f4f}.components-button:active{color:currentColor}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button:focus:enabled{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-button.is-busy{animation:components-button__busy-animation 2.5s linear infinite;background-size:100px 100%;background-image:repeating-linear-gradient(-45deg,#e2e4e7,#fff 11px,#fff 0,#e2e4e7 20px);opacity:1}.components-button.is-large{height:30px;line-height:28px;padding:0 12px 2px}.components-button.is-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.components-button.is-tertiary{color:#007cba;padding:0 10px;line-height:26px;height:28px}body.admin-color-sunrise .components-button.is-tertiary{color:#837425}body.admin-color-ocean .components-button.is-tertiary{color:#5e7d5e}body.admin-color-midnight .components-button.is-tertiary{color:#497b8d}body.admin-color-ectoplasm .components-button.is-tertiary{color:#523f6d}body.admin-color-coffee .components-button.is-tertiary{color:#59524c}body.admin-color-blue .components-button.is-tertiary{color:#417e9b}body.admin-color-light .components-button.is-tertiary{color:#007cba}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}.components-button.is-tertiary svg{fill:currentColor;outline:none}.components-button.is-tertiary:active:focus:enabled{box-shadow:none}.components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}body.admin-color-sunrise .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#62571c}body.admin-color-ocean .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#475e47}body.admin-color-midnight .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#375c6a}body.admin-color-ectoplasm .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#3e2f52}body.admin-color-coffee .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#433e39}body.admin-color-blue .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#315f74}body.admin-color-light .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#005d8c}.components-button .screen-reader-text{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{margin-top:0}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-color-palette{margin-right:-14px;width:calc(100% + 14px)}.components-color-palette .components-color-palette__custom-clear-wrapper{width:calc(100% - 14px);display:flex;justify-content:flex-end}.components-color-palette__item-wrapper{display:inline-block;height:28px;width:28px;margin-right:14px;margin-bottom:14px;vertical-align:top;transform:scale(1);transition:transform .1s ease}.components-color-palette__item-wrapper:hover{transform:scale(1.2)}.components-color-palette__item-wrapper>div{height:100%;width:100%}.components-color-palette__item{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}.components-color-palette__item.is-active{box-shadow:inset 0 0 0 4px;border:1px solid #606a73}.components-color-palette__item.is-active+.dashicons-saved{position:absolute;left:4px;top:4px}.components-color-palette__item:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.components-color-palette__item:focus{outline:none}.components-color-palette__item:focus:after{content:"";border:2px solid #606a73;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-color-palette__clear-color .components-color-palette__item{color:#fff;background:#fff}.components-color-palette__clear-color-line{display:block;position:absolute;border:2px solid #d94f4f;border-radius:50%;top:0;left:0;bottom:0;right:0}.components-color-palette__clear-color-line:before{position:absolute;top:0;left:0;content:"";width:100%;height:100%;border-bottom:2px solid #d94f4f;transform:rotate(45deg) translateY(-13px) translateX(-1px)}.components-color-palette__custom-color{margin-right:16px}.components-color-palette__custom-color .components-button{line-height:22px}.block-editor__container .components-popover.components-color-palette__picker.is-bottom{z-index:100001}.components-color-picker{width:100%;overflow:hidden}.components-color-picker__saturation{width:100%;padding-bottom:55%;position:relative}.components-color-picker__body{padding:16px 16px 12px}.components-color-picker__controls{display:flex}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{padding:0;position:absolute;cursor:pointer;box-shadow:none;border:none}.components-color-picker__swatch{margin-right:8px;width:32px;height:32px;border-radius:50%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.is-alpha-disabled .components-color-picker__swatch{width:12px;height:12px;margin-top:0}.components-color-picker__active{border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);z-index:2}.components-color-picker__active,.components-color-picker__saturation-black,.components-color-picker__saturation-color,.components-color-picker__saturation-white{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__saturation-color{overflow:hidden}.components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.components-color-picker__saturation-pointer{width:8px;height:8px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;background-color:transparent;transform:translate(-4px,-4px)}.components-color-picker__toggles{flex:1}.components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.components-color-picker__alpha-gradient,.components-color-picker__hue-gradient{position:absolute;top:0;left:0;right:0;bottom:0}.components-color-picker__alpha,.components-color-picker__hue{height:12px;position:relative}.is-alpha-enabled .components-color-picker__hue{margin-bottom:8px}.components-color-picker__alpha-bar,.components-color-picker__hue-bar{position:relative;margin:0 3px;height:100%;padding:0 2px}.components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.components-color-picker__alpha-pointer,.components-color-picker__hue-pointer{left:0;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);background:#fff;transform:translate(-7px,-1px)}.components-color-picker__hue-pointer,.components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a0d2,0 0 5px 0 #00a0d2,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.components-color-picker__alpha-pointer:focus,.components-color-picker__hue-pointer:focus{border-color:#00a0d2;box-shadow:0 0 0 2px #00a0d2,0 0 3px 0 #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-color-picker__inputs-wrapper{margin:0 -4px;padding-top:16px;display:flex;align-items:flex-end}.components-color-picker__inputs-wrapper fieldset{flex:1}.components-color-picker__inputs-wrapper .components-color-picker__inputs-fields .components-text-control__input[type=number]{padding:2px}.components-color-picker__inputs-fields{display:flex}.components-color-picker__inputs-fields .components-base-control__field{margin:0 4px}svg.dashicon{fill:currentColor;outline:none}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime .components-datetime__calendar-help{padding:8px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__date-help-button{display:block;margin-left:auto;margin-right:8px;margin-top:.5em}.components-datetime__date{min-height:236px;border-top:1px solid #e2e4e7;margin-left:-8px;margin-right:-8px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarDay{font-size:13px;border:1px solid transparent;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay__selected{background:#0085ba}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected{background:#d1864a}body.admin-color-ocean .components-datetime__date .CalendarDay__selected{background:#a3b9a2}body.admin-color-midnight .components-datetime__date .CalendarDay__selected{background:#e14d43}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected{background:#a7b656}body.admin-color-coffee .components-datetime__date .CalendarDay__selected{background:#c2a68c}body.admin-color-blue .components-datetime__date .CalendarDay__selected{background:#82b4cb}body.admin-color-light .components-datetime__date .CalendarDay__selected{background:#0085ba}.components-datetime__date .CalendarDay__selected:hover{background:#00719e}body.admin-color-sunrise .components-datetime__date .CalendarDay__selected:hover{background:#b2723f}body.admin-color-ocean .components-datetime__date .CalendarDay__selected:hover{background:#8b9d8a}body.admin-color-midnight .components-datetime__date .CalendarDay__selected:hover{background:#bf4139}body.admin-color-ectoplasm .components-datetime__date .CalendarDay__selected:hover{background:#8e9b49}body.admin-color-coffee .components-datetime__date .CalendarDay__selected:hover{background:#a58d77}body.admin-color-blue .components-datetime__date .CalendarDay__selected:hover{background:#6f99ad}body.admin-color-light .components-datetime__date .CalendarDay__selected:hover{background:#00719e}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date.is-description-visible .components-datetime__date-help-button,.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__time{margin-bottom:1em}.components-datetime__time fieldset{margin-top:.5em;position:relative}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0;color:#555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button{margin-left:8px;margin-right:-1px;border-radius:3px 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button{margin-left:-1px;border-radius:0 3px 3px 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-am-button.is-toggled,.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-pm-button.is-toggled{background:#edeff0;border-color:#8f98a1;box-shadow:inset 0 2px 5px -3px #555d66}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field{align-self:center;flex:0 1 auto;order:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field.am-pm button{font-size:11px;font-weight:600}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{padding:2px;margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;width:40px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:0 -4px 0 0!important;border-radius:4px 0 0 4px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 4px 4px 0!important}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{width:90px}.components-popover .components-datetime__date{padding-left:6px}.components-popover.edit-post-post-schedule__dialog.is-bottom.is-left{z-index:100000}.components-disabled{position:relative;pointer-events:none}.components-disabled:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-disabled *{pointer-events:none}body.is-dragging-components-draggable{cursor:move;cursor:-webkit-grabbing!important;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:20px;background:transparent;pointer-events:none;z-index:1000000000;opacity:.8}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;visibility:hidden;opacity:0;transition:opacity .3s,background-color .3s,visibility 0s .3s;border:2px solid #0071a1;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.components-drop-zone.is-dragging-over-element{background-color:rgba(0,113,161,.8)}.components-drop-zone__content{position:absolute;top:50%;left:0;right:0;z-index:110;transform:translateY(-50%);width:100%;text-align:center;color:#fff;transition:transform .2s ease-in-out}.components-drop-zone.is-dragging-over-element .components-drop-zone__content{transform:translateY(-50%) scale(1.05)}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.components-drop-zone__provider{height:100%}.components-dropdown-menu{padding:3px;display:flex}.components-dropdown-menu .components-dropdown-menu__toggle{width:auto;margin:0;padding:4px;border:1px solid transparent;display:flex;flex-direction:row}.components-dropdown-menu .components-dropdown-menu__toggle.is-active,.components-dropdown-menu .components-dropdown-menu__toggle.is-active:hover{box-shadow:none;background-color:#555d66;color:#fff}.components-dropdown-menu .components-dropdown-menu__toggle:focus:before{top:-3px;right:-3px;bottom:-3px;left:-3px}.components-dropdown-menu .components-dropdown-menu__toggle:focus,.components-dropdown-menu .components-dropdown-menu__toggle:hover,.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator: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}.components-dropdown-menu__popover .components-popover__content{width:200px}.components-dropdown-menu__menu{width:100%;padding:9px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item{width:100%;padding:6px;outline:none;cursor:pointer;margin-bottom:4px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:focus:not(:disabled):not([aria-disabled=true]):not(.is-default){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg{border-radius:4px;padding:2px;width:24px;height:24px;margin:-1px 8px -1px 0}.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=true]):not(.is-default).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-external-link__icon{width:1.4em;height:1.4em;margin:-.2em .1em 0;vertical-align:middle}.components-focal-point-picker-wrapper{background-color:transparent;border:1px solid #e2e4e7;height:200px;width:100%;padding:14px}.components-focal-point-picker{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;position:relative;width:100%}.components-focal-point-picker img{height:auto;max-height:100%;max-width:100%;width:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.components-focal-point-picker__icon_container{background-color:transparent;cursor:-webkit-grab;cursor:grab;height:30px;opacity:.8;position:absolute;will-change:transform;width:30px;z-index:10000}.components-focal-point-picker__icon_container.is-dragging{cursor:-webkit-grabbing;cursor:grabbing}.components-focal-point-picker__icon{display:block;height:100%;left:-15px;position:absolute;top:-15px;width:100%}.components-focal-point-picker__icon .components-focal-point-picker__icon-outline{fill:#fff}.components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}body.admin-color-sunrise .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#d1864a}body.admin-color-ocean .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a3b9a2}body.admin-color-midnight .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#e14d43}body.admin-color-ectoplasm .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#a7b656}body.admin-color-coffee .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#c2a68c}body.admin-color-blue .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#82b4cb}body.admin-color-light .components-focal-point-picker__icon .components-focal-point-picker__icon-fill{fill:#0085ba}.components-focal-point-picker_position-display-container{margin:1em 0;display:flex}.components-focal-point-picker_position-display-container .components-base-control__field{margin:0 1em 0 0}.components-focal-point-picker_position-display-container input[type=number].components-text-control__input{max-width:4em;padding:6px 4px}.components-focal-point-picker_position-display-container span{margin:0 0 0 .2em}.components-font-size-picker__buttons{max-width:248px;display:flex;justify-content:space-between;align-items:center}.components-font-size-picker__buttons .components-range-control__number{height:30px;margin-left:0}.components-font-size-picker__buttons .components-range-control__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 20px 10px 40px;width:100%;text-align:left}.components-font-size-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);left:10px}.components-font-size-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-font-size-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-font-size-picker__buttons .components-font-size-picker__selector{background:none;position:relative;width:110px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-font-size-picker__buttons .components-font-size-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-font-size-picker__buttons .components-font-size-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}.components-form-file-upload .components-button.is-large{padding-left:6px}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__off,.components-form-toggle .components-form-toggle__on{position:absolute;top:6px;box-sizing:border-box}.components-form-toggle .components-form-toggle__off{color:#6c7781;fill:currentColor;right:6px}.components-form-toggle .components-form-toggle__on{left:8px}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__track{border:2px solid #555d66}.components-form-toggle:hover .components-form-toggle__thumb{background-color:#555d66;border:5px solid #6c7781}.components-form-toggle:hover .components-form-toggle__off{color:#555d66}.components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:9px solid transparent}body.admin-color-sunrise .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked .components-form-toggle__track{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked .components-form-toggle__track{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked .components-form-toggle__track{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked .components-form-toggle__track{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked .components-form-toggle__track{background-color:#11a0d2;border:2px solid #11a0d2}.components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 3px #6c7781;outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}body.admin-color-sunrise .components-form-toggle.is-checked:before{background-color:#c8b03c;border:2px solid #c8b03c}body.admin-color-ocean .components-form-toggle.is-checked:before{background-color:#a3b9a2;border:2px solid #a3b9a2}body.admin-color-midnight .components-form-toggle.is-checked:before{background-color:#77a6b9;border:2px solid #77a6b9}body.admin-color-ectoplasm .components-form-toggle.is-checked:before{background-color:#a7b656;border:2px solid #a7b656}body.admin-color-coffee .components-form-toggle.is-checked:before{background-color:#c2a68c;border:2px solid #c2a68c}body.admin-color-blue .components-form-toggle.is-checked:before{background-color:#82b4cb;border:2px solid #82b4cb}body.admin-color-light .components-form-toggle.is-checked:before{background-color:#11a0d2;border:2px solid #11a0d2}.components-disabled .components-form-toggle{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle .components-form-toggle__on{outline:1px solid transparent;outline-offset:-1px;border:1px solid #000;filter:invert(100%) contrast(500%)}@supports (-ms-high-contrast-adjust:auto){.components-form-toggle .components-form-toggle__on{filter:none;border:1px solid #fff}}.components-form-token-field__input-container{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0;padding:4px;background-color:#fff;color:#32373c;cursor:text;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-form-token-field__input-container.is-disabled{background:#e2e4e7;border-color:#ccd0d4}.components-form-token-field__input-container.is-active{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;width:100%;max-width:100%;margin:2px 0 2px 8px;padding:0;min-height:24px;background:inherit;border:0;color:#23282d;box-shadow:none}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#32373c;overflow:hidden}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#d94f4f}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#555d66}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:#11a0d2}body.admin-color-sunrise .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c8b03c}body.admin-color-ocean .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#a89d8a}body.admin-color-midnight .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#77a6b9}body.admin-color-ectoplasm .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c77430}body.admin-color-coffee .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#9fa47b}body.admin-color-blue .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#d9ab59}body.admin-color-light .components-form-token-field__token.is-borderless .components-form-token-field__token-text{color:#c75726}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#555d66;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#d94f4f;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#23282d}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-icon-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4,1,.4,1)}.components-form-token-field__token-text{border-radius:12px 0 0 12px;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-icon-button{cursor:pointer;border-radius:0 12px 12px 0;padding:0 2px;color:#555d66;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-icon-button:hover{color:#32373c}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:scroll;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #6c7781;margin:4px -4px -4px;padding-top:3px}.components-form-token-field__suggestion{color:#555d66;display:block;font-size:13px;padding:4px 8px;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:#0071a1;color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px #33b3db}@supports (outline-offset:1px){.components-navigate-regions.is-focusing-regions [role=region]:focus:after{content:none}.components-navigate-regions.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:#33b3db;outline-width:4px;outline-offset:-4px}}.components-icon-button{display:flex;align-items:center;padding:8px;margin:0;border:none;background:none;color:#555d66;position:relative;overflow:hidden;border-radius:4px}.components-icon-button .dashicon{display:inline-block;flex:0 0 auto}.components-icon-button svg{fill:currentColor;outline:none}.components-icon-button.has-text svg{margin-right:4px}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):active{outline:none;background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #ccd0d4,inset 0 0 0 2px #fff}.components-icon-button:disabled:focus,.components-icon-button[aria-disabled=true]:focus{box-shadow:none}.components-menu-group{width:100%;padding:7px 0}.components-menu-group__label{margin-bottom:8px;color:#6c7781;padding:0 7px}.components-menu-item__button,.components-menu-item__button.components-icon-button{width:100%;padding:8px 15px;text-align:left;color:#40464d}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button.components-icon-button .dashicon,.components-menu-item__button.components-icon-button>span>svg,.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button .dashicon,.components-menu-item__button>span>svg{margin-right:4px}.components-menu-item__button.components-icon-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#555d66}@media (min-width:782px){.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}}.components-menu-item__button.components-icon-button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut,.components-menu-item__button:hover:not(:disabled):not([aria-disabled=true]) .components-menu-item__shortcut{opacity:1}.components-menu-item__button.components-icon-button:focus:not(:disabled):not([aria-disabled=true]),.components-menu-item__button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-menu-item__info-wrapper{display:flex;flex-direction:column}.components-menu-item__info{margin-top:4px;font-size:12px;opacity:.84}.components-menu-item__shortcut{align-self:center;opacity:.84;margin-right:0;margin-left:auto;padding-left:8px;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:hsla(0,0%,100%,.4);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms!important}}.components-modal__frame{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;margin:0;border:1px solid #e2e4e7;background:#fff;box-shadow:0 3px 30px rgba(25,30,35,.2);overflow:auto}@media (min-width:600px){.components-modal__frame{top:50%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 112px);transform:translate(-50%,-50%);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms!important}}@keyframes components-modal__appear-animation{0%{margin-top:32px}to{margin-top:0}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #e2e4e7;padding:0 16px;display:flex;flex-direction:row;justify-content:space-between;background:#fff;align-items:center;height:56px;position:-webkit-sticky;position:sticky;top:0;z-index:10;margin:0 -16px 16px}@supports (-ms-ime-align:auto){.components-modal__header{position:fixed;width:100%}}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{box-sizing:border-box;height:100%;padding:0 16px 16px}@supports (-ms-ime-align:auto){.components-modal__content{padding-top:56px}}.components-notice{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#e5f5fa;border-left:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.components-notice__content{margin:1em 25px 1em 0}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:4px}.components-notice__action.components-button.is-default{vertical-align:initial}.components-notice__dismiss{position:absolute;top:0;right:0;color:#6c7781}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#d94f4f;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.components-notice-list{min-width:300px;z-index:29}.components-panel{background:#fff;border:1px solid #e2e4e7}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__body>.components-icon-button{color:#191e23}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:50px;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover,.edit-post-last-revision__panel>.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background:#f3f4f5}.components-panel__body-toggle.components-button{position:relative;padding:15px;outline:none;width:100%;font-weight:600;text-align:left;color:#191e23;border:none;box-shadow:none;transition:background .1s ease-in-out}.components-panel__body-toggle.components-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#191e23;fill:currentColor;transition:color .1s ease-in-out}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#555d66;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:10px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background:rgba(139,139,150,.1)}.is-dark-theme .components-placeholder{background:hsla(0,0%,100%,.15)}.components-placeholder__label{display:flex;align-items:center;justify-content:center;font-weight:600;margin-bottom:1em}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon{fill:currentColor;margin-right:1ch}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;justify-content:center;width:100%;max-width:400px;flex-wrap:wrap;z-index:1}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__input{margin-right:8px;flex:1 1 auto}.components-placeholder__instructions{margin-bottom:1em} /*!rtl:begin:ignore*/.components-popover{position:fixed;z-index:1000000;left:50%}.components-popover.is-mobile{top:0;left:0;right:0;bottom:0}.components-popover:not(.is-without-arrow):not(.is-mobile){margin-left:2px}.components-popover:not(.is-without-arrow):not(.is-mobile):before{border:8px solid #e2e4e7}.components-popover:not(.is-without-arrow):not(.is-mobile):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):not(.is-mobile):after,.components-popover:not(.is-without-arrow):not(.is-mobile):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{bottom:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after{bottom:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom{margin-top:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:before{top:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:after{top:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-bottom:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left{margin-left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:before{right:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:after{right:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-left:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right{margin-left:8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:before{left:-8px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:after{left:-6px}.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:after,.components-popover:not(.is-without-arrow):not(.is-mobile).is-middle.is-right:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover:not(.is-mobile).is-top{bottom:100%}.components-popover:not(.is-mobile).is-bottom{top:100%;z-index:99990}.components-popover:not(.is-mobile).is-middle{align-items:center;display:flex}.components-popover__content{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff;height:100%}.components-popover.is-mobile .components-popover__content{height:calc(100% - 50px);border-top:0}.components-popover:not(.is-mobile) .components-popover__content{position:absolute;height:auto;overflow-y:auto;min-width:260px}.components-popover:not(.is-mobile).is-top .components-popover__content{bottom:100%}.components-popover:not(.is-mobile).is-center .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover:not(.is-mobile).is-right .components-popover__content{position:absolute;left:100%}.components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-24px}.components-popover:not(.is-mobile).is-left .components-popover__content{position:absolute;right:100%}.components-popover:not(.is-mobile):not(.is-middle).is-left .components-popover__content{margin-right:-24px}.components-popover__content>div{height:100%}.components-popover__header{align-items:center;background:#fff;border:1px solid #e2e4e7;display:flex;height:50px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-icon-button{z-index:5} @@ -6,4 +6,4 @@ /*!rtl:begin:ignore*/.components-resizable-box__handle-right{top:calc(50% - 12px);right:-12px}.components-resizable-box__handle-bottom{bottom:-12px;left:calc(50% - 12px)}.components-resizable-box__handle-left{top:calc(50% - 12px);left:-12px} -/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.components-sandbox,body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:right;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-text-control__input,.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-left:-3px}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:none;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:none;box-shadow:none;background:none;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]:after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover:before{border-color:transparent}.components-tooltip.components-popover.is-top:after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom:after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;text-align:center;color:#7e8993} \ No newline at end of file +/*!rtl:end:ignore*/.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper__content{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.components-sandbox,body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-spinner{display:inline-block;background-color:#7e8993;width:18px;height:18px;opacity:.7;float:right;margin:5px 11px 0;border-radius:100%;position:relative}.components-spinner:before{content:"";position:absolute;background-color:#fff;top:3px;left:3px;width:4px;height:4px;border-radius:100%;transform-origin:6px 6px;animation:components-spinner__animation 1s linear infinite}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-text-control__input,.components-textarea-control__input{width:100%;padding:6px 8px}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:16px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block;margin-bottom:4px}.components-toolbar{margin:0;border:1px solid #e2e4e7;background-color:#fff;display:flex;flex-shrink:0}div.components-toolbar>div{display:block;margin:0}@supports ((position:-webkit-sticky) or (position:sticky)){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div{margin-left:-3px}div.components-toolbar>div+div.has-left-divider{margin-left:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#e2e4e7;position:absolute;top:8px;left:-3px;width:1px;height:20px}.components-toolbar__control.components-button{display:inline-flex;align-items:flex-end;margin:0;padding:3px;outline:none;cursor:pointer;position:relative;width:36px;height:36px}.components-toolbar__control.components-button:active,.components-toolbar__control.components-button:not([aria-disabled=true]):focus,.components-toolbar__control.components-button:not([aria-disabled=true]):hover{outline:none;box-shadow:none;background:none;border:none}.components-toolbar__control.components-button:disabled{cursor:default}.components-toolbar__control.components-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px;bottom:10px}.components-toolbar__control.components-button:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.components-toolbar__control.components-button:not(:disabled).is-active>svg,.components-toolbar__control.components-button:not(:disabled):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.components-toolbar__control.components-button:not(:disabled).is-active>svg{outline:none;color:#fff;box-shadow:none;background:#555d66}.components-toolbar__control.components-button:not(:disabled).is-active[data-subscript]:after{color:#fff}.components-toolbar__control.components-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-toolbar__control .dashicon{display:block}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover:before{border-color:transparent}.components-tooltip.components-popover.is-top:after{border-top-color:#191e23}.components-tooltip.components-popover.is-bottom:after{border-bottom-color:#191e23}.components-tooltip .components-popover__content{padding:4px 12px;background:#191e23;border-width:0;color:#fff;white-space:nowrap;text-align:center}.components-tooltip:not(.is-mobile) .components-popover__content{min-width:0}.components-tooltip__shortcut{display:block;color:#7e8993} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style-rtl.css b/wp-includes/css/dist/edit-post/style-rtl.css index 05580abfff..4ef2abc84d 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.css +++ b/wp-includes/css/dist/edit-post/style-rtl.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ @media (min-width: 782px) { body.js.is-fullscreen-mode { margin-top: -46px; @@ -45,10 +48,18 @@ display: none; } body.js.is-fullscreen-mode #wpcontent, body.js.is-fullscreen-mode #wpfooter { - margin-right: 0; } + margin-right: 0; } } + @media (min-width: 782px) and (prefers-reduced-motion: reduce) { + body.js.is-fullscreen-mode { + animation-duration: 1ms !important; } } + +@media (min-width: 782px) { body.js.is-fullscreen-mode .edit-post-header { transform: translateY(-100%); animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } } + @media (min-width: 782px) and (prefers-reduced-motion: reduce) { + body.js.is-fullscreen-mode .edit-post-header { + animation-duration: 1ms !important; } } @keyframes edit-post-fullscreen-mode__slide-in-animation { 100% { @@ -192,11 +203,11 @@ body.is-fullscreen-mode .edit-post-header { @media (min-width: 600px) { .edit-post-header-toolbar > .components-button { display: inline-flex; } } - .edit-post-header-toolbar .editor-block-navigation, + .edit-post-header-toolbar .block-editor-block-navigation, .edit-post-header-toolbar .table-of-contents { display: none; } @media (min-width: 600px) { - .edit-post-header-toolbar .editor-block-navigation, + .edit-post-header-toolbar .block-editor-block-navigation, .edit-post-header-toolbar .table-of-contents { display: flex; } } @@ -208,7 +219,7 @@ body.is-fullscreen-mode .edit-post-header { background: #fff; min-height: 37px; border-bottom: 1px solid #e2e4e7; } - .edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar { + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { border-top: none; border-bottom: none; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { @@ -228,9 +239,9 @@ body.is-fullscreen-mode .edit-post-header { min-height: auto; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { left: auto; } - .edit-post-header-toolbar__block-toolbar .editor-block-toolbar { + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar { margin: -9px 0; } - .edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar { + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { padding: 10px 4px 9px; } } .edit-post-more-menu { @@ -424,7 +435,11 @@ body.is-fullscreen-mode .edit-post-header { width: 280px; border-right: 1px solid #e2e4e7; transform: translateX(-100%); - animation: edit-post-post-publish-panel__slide-in-animation 0.1s forwards; } + animation: edit-post-post-publish-panel__slide-in-animation 0.1s forwards; } } + @media (min-width: 782px) and (prefers-reduced-motion: reduce) { + .edit-post-layout .editor-post-publish-panel { + animation-duration: 1ms !important; } } + @media (min-width: 782px) { body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel { top: 0; } .is-focusing-regions .edit-post-layout .editor-post-publish-panel { @@ -489,6 +504,92 @@ body.is-fullscreen-mode .edit-post-header { bottom: 10px; right: auto; } +@media (min-width: 600px) { + .edit-post-manage-blocks-modal { + height: calc(100% - 56px - 56px); } } + +.edit-post-manage-blocks-modal .components-modal__content { + padding-bottom: 0; + display: flex; + flex-direction: column; } + +.edit-post-manage-blocks-modal .components-modal__header { + flex-shrink: 0; + margin-bottom: 0; } + +.edit-post-manage-blocks-modal__content { + display: flex; + flex-direction: column; + flex: 0 1 100%; + min-height: 0; } + +.edit-post-manage-blocks-modal__no-results { + font-style: italic; + padding: 24px 0; + text-align: center; } + +.edit-post-manage-blocks-modal__search { + margin: 16px 0; } + .edit-post-manage-blocks-modal__search .components-base-control__field { + margin-bottom: 0; } + .edit-post-manage-blocks-modal__search .components-base-control__label { + margin-top: -4px; } + .edit-post-manage-blocks-modal__search input[type="search"].components-text-control__input { + padding: 12px; + border-radius: 4px; } + +.edit-post-manage-blocks-modal__category { + margin: 0 0 2rem 0; } + +.edit-post-manage-blocks-modal__category-title { + position: -webkit-sticky; + position: sticky; + top: 0; + padding: 16px 0; + background-color: #fff; } + .edit-post-manage-blocks-modal__category-title .components-base-control__field { + margin-bottom: 0; } + .edit-post-manage-blocks-modal__category-title .components-checkbox-control__label { + font-size: 0.9rem; + font-weight: 600; } + +.edit-post-manage-blocks-modal__show-all { + margin-left: 8px; } + +.edit-post-manage-blocks-modal__checklist { + margin-top: 0; } + +.edit-post-manage-blocks-modal__checklist-item { + margin-bottom: 0; + padding-right: 16px; + border-top: 1px solid #e2e4e7; } + .edit-post-manage-blocks-modal__checklist-item:last-child { + border-bottom: 1px solid #e2e4e7; } + .edit-post-manage-blocks-modal__checklist-item .components-base-control__field { + align-items: center; + display: flex; + margin: 0; } + .components-modal__content .edit-post-manage-blocks-modal__checklist-item input[type="checkbox"] { + margin: 0 8px; } + .edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label { + display: flex; + align-items: center; + justify-content: space-between; + flex-grow: 1; + padding: 0.6rem 10px 0.6rem 0; } + .edit-post-manage-blocks-modal__checklist-item .editor-block-icon { + margin-left: 10px; + fill: #555d66; } + +.edit-post-manage-blocks-modal__results { + height: 100%; + overflow: auto; + margin-right: -16px; + margin-left: -16px; + padding-right: 16px; + padding-left: 16px; + border-top: 1px solid #e2e4e7; } + .edit-post-meta-boxes-area { position: relative; /** @@ -628,7 +729,7 @@ body.is-fullscreen-mode .edit-post-header { margin-bottom: 0; } .edit-post-sidebar p + div.components-toolbar { margin-top: -1em; } - .edit-post-sidebar .editor-skip-to-selected-block:focus { + .edit-post-sidebar .block-editor-skip-to-selected-block:focus { top: auto; left: 10px; bottom: 10px; @@ -957,33 +1058,29 @@ body.is-fullscreen-mode .edit-post-header { .edit-post-visual-editor .components-button { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } -.edit-post-visual-editor .editor-writing-flow__click-redirect { +.edit-post-visual-editor .block-editor-writing-flow__click-redirect { height: 50px; width: 100%; margin: -4px auto -50px; } -.edit-post-visual-editor .editor-block-list__block { +.edit-post-visual-editor .block-editor-block-list__block { margin-right: auto; margin-left: auto; } @media (min-width: 600px) { - .edit-post-visual-editor .editor-block-list__block .editor-block-list__block-edit { + .edit-post-visual-editor .block-editor-block-list__block .block-editor-block-list__block-edit { margin-right: -28px; margin-left: -28px; } - .edit-post-visual-editor .editor-block-list__block[data-align="wide"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar, - .edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar { - width: calc(100% + 30px); + .edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar { height: 0; - text-align: center; - float: right; } - .edit-post-visual-editor .editor-block-list__block[data-align="wide"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar, - .edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar { - max-width: 610px; - width: 100%; - position: relative; } - .edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar { width: 100%; margin-right: 0; - margin-left: 0; } } + margin-left: 0; + text-align: center; + float: right; } + .edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar .block-editor-block-toolbar { + max-width: 610px; + width: 100%; + position: relative; } } @media (min-width: 600px) { .editor-post-title { @@ -1002,19 +1099,19 @@ body.is-fullscreen-mode .edit-post-header { margin-right: -2px; margin-left: -2px; } } -.edit-post-visual-editor .editor-block-list__layout > .editor-block-list__block[data-align="left"]:first-child, -.edit-post-visual-editor .editor-block-list__layout > .editor-block-list__block[data-align="right"]:first-child { +.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="left"]:first-child, +.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="right"]:first-child { margin-top: 34px; } -.edit-post-visual-editor .editor-default-block-appender { +.edit-post-visual-editor .block-editor-default-block-appender { margin-right: auto; margin-left: auto; position: relative; } - .edit-post-visual-editor .editor-default-block-appender[data-root-client-id=""] .editor-default-block-appender__content:hover { + .edit-post-visual-editor .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { outline: 1px solid transparent; } -.edit-post-visual-editor .editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible="true"] + p, -.edit-post-visual-editor .editor-default-block-appender__content { +.edit-post-visual-editor .block-editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible="true"] + p, +.edit-post-visual-editor .block-editor-default-block-appender__content { min-height: 28px; line-height: 1.8; } @@ -1033,6 +1130,8 @@ body.is-fullscreen-mode .edit-post-header { align-items: center; display: flex; margin: 0; } + .edit-post-options-modal__option.components-base-control + .edit-post-options-modal__option.components-base-control { + margin-bottom: 0; } .edit-post-options-modal__option .components-checkbox-control__label { flex-grow: 1; padding: 0.6rem 10px 0.6rem 0; } @@ -1176,25 +1275,25 @@ body.block-editor-page { .editor-post-publish-panel input[type="number"], .editor-post-publish-panel select, .editor-post-publish-panel textarea, -.editor-block-list__block .input-control, -.editor-block-list__block input[type="text"], -.editor-block-list__block input[type="search"], -.editor-block-list__block input[type="radio"], -.editor-block-list__block input[type="tel"], -.editor-block-list__block input[type="time"], -.editor-block-list__block input[type="url"], -.editor-block-list__block input[type="week"], -.editor-block-list__block input[type="password"], -.editor-block-list__block input[type="checkbox"], -.editor-block-list__block input[type="color"], -.editor-block-list__block input[type="date"], -.editor-block-list__block input[type="datetime"], -.editor-block-list__block input[type="datetime-local"], -.editor-block-list__block input[type="email"], -.editor-block-list__block input[type="month"], -.editor-block-list__block input[type="number"], -.editor-block-list__block select, -.editor-block-list__block textarea, +.block-editor-block-list__block .input-control, +.block-editor-block-list__block input[type="text"], +.block-editor-block-list__block input[type="search"], +.block-editor-block-list__block input[type="radio"], +.block-editor-block-list__block input[type="tel"], +.block-editor-block-list__block input[type="time"], +.block-editor-block-list__block input[type="url"], +.block-editor-block-list__block input[type="week"], +.block-editor-block-list__block input[type="password"], +.block-editor-block-list__block input[type="checkbox"], +.block-editor-block-list__block input[type="color"], +.block-editor-block-list__block input[type="date"], +.block-editor-block-list__block input[type="datetime"], +.block-editor-block-list__block input[type="datetime-local"], +.block-editor-block-list__block input[type="email"], +.block-editor-block-list__block input[type="month"], +.block-editor-block-list__block input[type="number"], +.block-editor-block-list__block select, +.block-editor-block-list__block textarea, .components-popover .input-control, .components-popover input[type="text"], .components-popover input[type="search"], @@ -1299,25 +1398,25 @@ body.block-editor-page { .editor-post-publish-panel input[type="number"], .editor-post-publish-panel select, .editor-post-publish-panel textarea, - .editor-block-list__block .input-control, - .editor-block-list__block input[type="text"], - .editor-block-list__block input[type="search"], - .editor-block-list__block input[type="radio"], - .editor-block-list__block input[type="tel"], - .editor-block-list__block input[type="time"], - .editor-block-list__block input[type="url"], - .editor-block-list__block input[type="week"], - .editor-block-list__block input[type="password"], - .editor-block-list__block input[type="checkbox"], - .editor-block-list__block input[type="color"], - .editor-block-list__block input[type="date"], - .editor-block-list__block input[type="datetime"], - .editor-block-list__block input[type="datetime-local"], - .editor-block-list__block input[type="email"], - .editor-block-list__block input[type="month"], - .editor-block-list__block input[type="number"], - .editor-block-list__block select, - .editor-block-list__block textarea, + .block-editor-block-list__block .input-control, + .block-editor-block-list__block input[type="text"], + .block-editor-block-list__block input[type="search"], + .block-editor-block-list__block input[type="radio"], + .block-editor-block-list__block input[type="tel"], + .block-editor-block-list__block input[type="time"], + .block-editor-block-list__block input[type="url"], + .block-editor-block-list__block input[type="week"], + .block-editor-block-list__block input[type="password"], + .block-editor-block-list__block input[type="checkbox"], + .block-editor-block-list__block input[type="color"], + .block-editor-block-list__block input[type="date"], + .block-editor-block-list__block input[type="datetime"], + .block-editor-block-list__block input[type="datetime-local"], + .block-editor-block-list__block input[type="email"], + .block-editor-block-list__block input[type="month"], + .block-editor-block-list__block input[type="number"], + .block-editor-block-list__block select, + .block-editor-block-list__block textarea, .components-popover .input-control, .components-popover input[type="text"], .components-popover input[type="search"], @@ -1414,25 +1513,25 @@ body.block-editor-page { .editor-post-publish-panel input[type="number"]:focus, .editor-post-publish-panel select:focus, .editor-post-publish-panel textarea:focus, - .editor-block-list__block .input-control:focus, - .editor-block-list__block input[type="text"]:focus, - .editor-block-list__block input[type="search"]:focus, - .editor-block-list__block input[type="radio"]:focus, - .editor-block-list__block input[type="tel"]:focus, - .editor-block-list__block input[type="time"]:focus, - .editor-block-list__block input[type="url"]:focus, - .editor-block-list__block input[type="week"]:focus, - .editor-block-list__block input[type="password"]:focus, - .editor-block-list__block input[type="checkbox"]:focus, - .editor-block-list__block input[type="color"]:focus, - .editor-block-list__block input[type="date"]:focus, - .editor-block-list__block input[type="datetime"]:focus, - .editor-block-list__block input[type="datetime-local"]:focus, - .editor-block-list__block input[type="email"]:focus, - .editor-block-list__block input[type="month"]:focus, - .editor-block-list__block input[type="number"]:focus, - .editor-block-list__block select:focus, - .editor-block-list__block textarea:focus, + .block-editor-block-list__block .input-control:focus, + .block-editor-block-list__block input[type="text"]:focus, + .block-editor-block-list__block input[type="search"]:focus, + .block-editor-block-list__block input[type="radio"]:focus, + .block-editor-block-list__block input[type="tel"]:focus, + .block-editor-block-list__block input[type="time"]:focus, + .block-editor-block-list__block input[type="url"]:focus, + .block-editor-block-list__block input[type="week"]:focus, + .block-editor-block-list__block input[type="password"]:focus, + .block-editor-block-list__block input[type="checkbox"]:focus, + .block-editor-block-list__block input[type="color"]:focus, + .block-editor-block-list__block input[type="date"]:focus, + .block-editor-block-list__block input[type="datetime"]:focus, + .block-editor-block-list__block input[type="datetime-local"]:focus, + .block-editor-block-list__block input[type="email"]:focus, + .block-editor-block-list__block input[type="month"]:focus, + .block-editor-block-list__block input[type="number"]:focus, + .block-editor-block-list__block select:focus, + .block-editor-block-list__block textarea:focus, .components-popover .input-control:focus, .components-popover input[type="text"]:focus, .components-popover input[type="search"]:focus, @@ -1480,7 +1579,7 @@ body.block-editor-page { .editor-post-permalink input[type="number"], .edit-post-sidebar input[type="number"], .editor-post-publish-panel input[type="number"], -.editor-block-list__block input[type="number"], +.block-editor-block-list__block input[type="number"], .components-popover input[type="number"], .components-modal__content input[type="number"] { padding-right: 4px; @@ -1489,14 +1588,14 @@ body.block-editor-page { .editor-post-permalink select, .edit-post-sidebar select, .editor-post-publish-panel select, -.editor-block-list__block select, +.block-editor-block-list__block select, .components-popover select, .components-modal__content select { padding: 2px; } .editor-post-permalink select:focus, .edit-post-sidebar select:focus, .editor-post-publish-panel select:focus, - .editor-block-list__block select:focus, + .block-editor-block-list__block select:focus, .components-popover select:focus, .components-modal__content select:focus { border-color: #008dbe; @@ -1509,8 +1608,8 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"], .editor-post-publish-panel input[type="checkbox"], .editor-post-publish-panel input[type="radio"], -.editor-block-list__block input[type="checkbox"], -.editor-block-list__block input[type="radio"], +.block-editor-block-list__block input[type="checkbox"], +.block-editor-block-list__block input[type="radio"], .components-popover input[type="checkbox"], .components-popover input[type="radio"], .components-modal__content input[type="checkbox"], @@ -1524,8 +1623,8 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"]:focus, .editor-post-publish-panel input[type="checkbox"]:focus, .editor-post-publish-panel input[type="radio"]:focus, - .editor-block-list__block input[type="checkbox"]:focus, - .editor-block-list__block input[type="radio"]:focus, + .block-editor-block-list__block input[type="checkbox"]:focus, + .block-editor-block-list__block input[type="radio"]:focus, .components-popover input[type="checkbox"]:focus, .components-popover input[type="radio"]:focus, .components-modal__content input[type="checkbox"]:focus, @@ -1538,33 +1637,33 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"]:checked, .editor-post-publish-panel input[type="checkbox"]:checked, .editor-post-publish-panel input[type="radio"]:checked, - .editor-block-list__block input[type="checkbox"]:checked, - .editor-block-list__block input[type="radio"]:checked, + .block-editor-block-list__block input[type="checkbox"]:checked, + .block-editor-block-list__block input[type="radio"]:checked, .components-popover input[type="checkbox"]:checked, .components-popover input[type="radio"]:checked, .components-modal__content input[type="checkbox"]:checked, .components-modal__content input[type="radio"]:checked { background: #11a0d2; border-color: #11a0d2; } - body.admin-color-sunrise .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-permalink input[type="radio"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="radio"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-sunrise .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-sunrise .editor-block-list__block input[type="radio"]:checked, body.admin-color-sunrise .components-popover input[type="checkbox"]:checked, body.admin-color-sunrise .components-popover input[type="radio"]:checked, body.admin-color-sunrise .components-modal__content input[type="checkbox"]:checked, body.admin-color-sunrise .components-modal__content input[type="radio"]:checked { + body.admin-color-sunrise .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-permalink input[type="radio"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="radio"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-sunrise .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-sunrise .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-sunrise .components-popover input[type="checkbox"]:checked, body.admin-color-sunrise .components-popover input[type="radio"]:checked, body.admin-color-sunrise .components-modal__content input[type="checkbox"]:checked, body.admin-color-sunrise .components-modal__content input[type="radio"]:checked { background: #c8b03c; border-color: #c8b03c; } - body.admin-color-ocean .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-permalink input[type="radio"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ocean .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ocean .editor-block-list__block input[type="radio"]:checked, body.admin-color-ocean .components-popover input[type="checkbox"]:checked, body.admin-color-ocean .components-popover input[type="radio"]:checked, body.admin-color-ocean .components-modal__content input[type="checkbox"]:checked, body.admin-color-ocean .components-modal__content input[type="radio"]:checked { + body.admin-color-ocean .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-permalink input[type="radio"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ocean .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ocean .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-ocean .components-popover input[type="checkbox"]:checked, body.admin-color-ocean .components-popover input[type="radio"]:checked, body.admin-color-ocean .components-modal__content input[type="checkbox"]:checked, body.admin-color-ocean .components-modal__content input[type="radio"]:checked { background: #a3b9a2; border-color: #a3b9a2; } - body.admin-color-midnight .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-permalink input[type="radio"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="radio"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-midnight .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-midnight .editor-block-list__block input[type="radio"]:checked, body.admin-color-midnight .components-popover input[type="checkbox"]:checked, body.admin-color-midnight .components-popover input[type="radio"]:checked, body.admin-color-midnight .components-modal__content input[type="checkbox"]:checked, body.admin-color-midnight .components-modal__content input[type="radio"]:checked { + body.admin-color-midnight .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-permalink input[type="radio"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="radio"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-midnight .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-midnight .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-midnight .components-popover input[type="checkbox"]:checked, body.admin-color-midnight .components-popover input[type="radio"]:checked, body.admin-color-midnight .components-modal__content input[type="checkbox"]:checked, body.admin-color-midnight .components-modal__content input[type="radio"]:checked { background: #77a6b9; border-color: #77a6b9; } - body.admin-color-ectoplasm .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-permalink input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ectoplasm .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-block-list__block input[type="radio"]:checked, body.admin-color-ectoplasm .components-popover input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-popover input[type="radio"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="radio"]:checked { + body.admin-color-ectoplasm .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-permalink input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ectoplasm .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ectoplasm .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-ectoplasm .components-popover input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-popover input[type="radio"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="radio"]:checked { background: #a7b656; border-color: #a7b656; } - body.admin-color-coffee .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-permalink input[type="radio"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="radio"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-coffee .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-coffee .editor-block-list__block input[type="radio"]:checked, body.admin-color-coffee .components-popover input[type="checkbox"]:checked, body.admin-color-coffee .components-popover input[type="radio"]:checked, body.admin-color-coffee .components-modal__content input[type="checkbox"]:checked, body.admin-color-coffee .components-modal__content input[type="radio"]:checked { + body.admin-color-coffee .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-permalink input[type="radio"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="radio"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-coffee .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-coffee .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-coffee .components-popover input[type="checkbox"]:checked, body.admin-color-coffee .components-popover input[type="radio"]:checked, body.admin-color-coffee .components-modal__content input[type="checkbox"]:checked, body.admin-color-coffee .components-modal__content input[type="radio"]:checked { background: #c2a68c; border-color: #c2a68c; } - body.admin-color-blue .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-blue .editor-post-permalink input[type="radio"]:checked, body.admin-color-blue .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-blue .edit-post-sidebar input[type="radio"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-blue .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-blue .editor-block-list__block input[type="radio"]:checked, body.admin-color-blue .components-popover input[type="checkbox"]:checked, body.admin-color-blue .components-popover input[type="radio"]:checked, body.admin-color-blue .components-modal__content input[type="checkbox"]:checked, body.admin-color-blue .components-modal__content input[type="radio"]:checked { + body.admin-color-blue .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-blue .editor-post-permalink input[type="radio"]:checked, body.admin-color-blue .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-blue .edit-post-sidebar input[type="radio"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-blue .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-blue .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-blue .components-popover input[type="checkbox"]:checked, body.admin-color-blue .components-popover input[type="radio"]:checked, body.admin-color-blue .components-modal__content input[type="checkbox"]:checked, body.admin-color-blue .components-modal__content input[type="radio"]:checked { background: #82b4cb; border-color: #82b4cb; } - body.admin-color-light .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-light .editor-post-permalink input[type="radio"]:checked, body.admin-color-light .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-light .edit-post-sidebar input[type="radio"]:checked, body.admin-color-light .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-light .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-light .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-light .editor-block-list__block input[type="radio"]:checked, body.admin-color-light .components-popover input[type="checkbox"]:checked, body.admin-color-light .components-popover input[type="radio"]:checked, body.admin-color-light .components-modal__content input[type="checkbox"]:checked, body.admin-color-light .components-modal__content input[type="radio"]:checked { + body.admin-color-light .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-light .editor-post-permalink input[type="radio"]:checked, body.admin-color-light .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-light .edit-post-sidebar input[type="radio"]:checked, body.admin-color-light .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-light .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-light .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-light .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-light .components-popover input[type="checkbox"]:checked, body.admin-color-light .components-popover input[type="radio"]:checked, body.admin-color-light .components-modal__content input[type="checkbox"]:checked, body.admin-color-light .components-modal__content input[type="radio"]:checked { background: #11a0d2; border-color: #11a0d2; } .editor-post-permalink input[type="checkbox"]:checked:focus, @@ -1573,8 +1672,8 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"]:checked:focus, .editor-post-publish-panel input[type="checkbox"]:checked:focus, .editor-post-publish-panel input[type="radio"]:checked:focus, - .editor-block-list__block input[type="checkbox"]:checked:focus, - .editor-block-list__block input[type="radio"]:checked:focus, + .block-editor-block-list__block input[type="checkbox"]:checked:focus, + .block-editor-block-list__block input[type="radio"]:checked:focus, .components-popover input[type="checkbox"]:checked:focus, .components-popover input[type="radio"]:checked:focus, .components-modal__content input[type="checkbox"]:checked:focus, @@ -1584,30 +1683,110 @@ body.block-editor-page { .editor-post-permalink input[type="checkbox"], .edit-post-sidebar input[type="checkbox"], .editor-post-publish-panel input[type="checkbox"], -.editor-block-list__block input[type="checkbox"], +.block-editor-block-list__block input[type="checkbox"], .components-popover input[type="checkbox"], .components-modal__content input[type="checkbox"] { border-radius: 2px; } - .editor-post-permalink input[type="checkbox"]:checked::before, + .editor-post-permalink input[type="checkbox"]:checked::before, .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, .edit-post-sidebar input[type="checkbox"]:checked::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, .editor-post-publish-panel input[type="checkbox"]:checked::before, - .editor-block-list__block input[type="checkbox"]:checked::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"]:checked::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, .components-popover input[type="checkbox"]:checked::before, - .components-modal__content input[type="checkbox"]:checked::before { - margin: -4px -5px 0 0; + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"]:checked::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + margin: -3px -5px; color: #fff; } + @media (min-width: 782px) { + .editor-post-permalink input[type="checkbox"]:checked::before, .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, + .edit-post-sidebar input[type="checkbox"]:checked::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, + .editor-post-publish-panel input[type="checkbox"]:checked::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"]:checked::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, + .components-popover input[type="checkbox"]:checked::before, + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"]:checked::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + margin: -4px -5px 0 0; } } + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], + .components-popover input[type="checkbox"][aria-checked="mixed"], + .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #11a0d2; + border-color: #11a0d2; } + body.admin-color-sunrise .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #c8b03c; + border-color: #c8b03c; } + body.admin-color-ocean .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #a3b9a2; + border-color: #a3b9a2; } + body.admin-color-midnight .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #77a6b9; + border-color: #77a6b9; } + body.admin-color-ectoplasm .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #a7b656; + border-color: #a7b656; } + body.admin-color-coffee .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #c2a68c; + border-color: #c2a68c; } + body.admin-color-blue .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #82b4cb; + border-color: #82b4cb; } + body.admin-color-light .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #11a0d2; + border-color: #11a0d2; } + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + content: "\f460"; + float: right; + display: inline-block; + vertical-align: middle; + width: 16px; + /* stylelint-disable */ + font: normal 30px/1 dashicons; + /* stylelint-enable */ + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + @media (min-width: 782px) { + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + float: none; + font-size: 21px; } } + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]:focus, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]:focus, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]:focus, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]:focus, + .components-popover input[type="checkbox"][aria-checked="mixed"]:focus, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]:focus { + box-shadow: 0 0 0 2px #555d66; } .editor-post-permalink input[type="radio"], .edit-post-sidebar input[type="radio"], .editor-post-publish-panel input[type="radio"], -.editor-block-list__block input[type="radio"], +.block-editor-block-list__block input[type="radio"], .components-popover input[type="radio"], .components-modal__content input[type="radio"] { border-radius: 50%; } .editor-post-permalink input[type="radio"]:checked::before, .edit-post-sidebar input[type="radio"]:checked::before, .editor-post-publish-panel input[type="radio"]:checked::before, - .editor-block-list__block input[type="radio"]:checked::before, + .block-editor-block-list__block input[type="radio"]:checked::before, .components-popover input[type="radio"]:checked::before, .components-modal__content input[type="radio"]:checked::before { margin: 3px 3px 0 0; @@ -1615,40 +1794,40 @@ body.block-editor-page { .editor-post-title input::-webkit-input-placeholder, .editor-post-title textarea::-webkit-input-placeholder, -.editor-block-list__block input::-webkit-input-placeholder, -.editor-block-list__block textarea::-webkit-input-placeholder { +.block-editor-block-list__block input::-webkit-input-placeholder, +.block-editor-block-list__block textarea::-webkit-input-placeholder { color: rgba(14, 28, 46, 0.62); } .editor-post-title input::-moz-placeholder, .editor-post-title textarea::-moz-placeholder, -.editor-block-list__block input::-moz-placeholder, -.editor-block-list__block textarea::-moz-placeholder { +.block-editor-block-list__block input::-moz-placeholder, +.block-editor-block-list__block textarea::-moz-placeholder { opacity: 1; color: rgba(14, 28, 46, 0.62); } .editor-post-title input:-ms-input-placeholder, .editor-post-title textarea:-ms-input-placeholder, -.editor-block-list__block input:-ms-input-placeholder, -.editor-block-list__block textarea:-ms-input-placeholder { +.block-editor-block-list__block input:-ms-input-placeholder, +.block-editor-block-list__block textarea:-ms-input-placeholder { color: rgba(14, 28, 46, 0.62); } .is-dark-theme .editor-post-title input::-webkit-input-placeholder, .is-dark-theme .editor-post-title textarea::-webkit-input-placeholder, .is-dark-theme -.editor-block-list__block input::-webkit-input-placeholder, .is-dark-theme -.editor-block-list__block textarea::-webkit-input-placeholder { +.block-editor-block-list__block input::-webkit-input-placeholder, .is-dark-theme +.block-editor-block-list__block textarea::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.65); } .is-dark-theme .editor-post-title input::-moz-placeholder, .is-dark-theme .editor-post-title textarea::-moz-placeholder, .is-dark-theme -.editor-block-list__block input::-moz-placeholder, .is-dark-theme -.editor-block-list__block textarea::-moz-placeholder { +.block-editor-block-list__block input::-moz-placeholder, .is-dark-theme +.block-editor-block-list__block textarea::-moz-placeholder { opacity: 1; color: rgba(255, 255, 255, 0.65); } .is-dark-theme .editor-post-title input:-ms-input-placeholder, .is-dark-theme .editor-post-title textarea:-ms-input-placeholder, .is-dark-theme -.editor-block-list__block input:-ms-input-placeholder, .is-dark-theme -.editor-block-list__block textarea:-ms-input-placeholder { +.block-editor-block-list__block input:-ms-input-placeholder, .is-dark-theme +.block-editor-block-list__block textarea:-ms-input-placeholder { color: rgba(255, 255, 255, 0.65); } .wp-block { diff --git a/wp-includes/css/dist/edit-post/style-rtl.min.css b/wp-includes/css/dist/edit-post/style-rtl.min.css index 3c872e8f52..089cef4cd5 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.min.css +++ b/wp-includes/css/dist/edit-post/style-rtl.min.css @@ -1 +1 @@ -@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-46px;height:calc(100% + 46px);animation:edit-post__fade-in-animation .3s ease-out 0s;animation-fill-mode:forwards}}@media (min-width:782px) and (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}body.js.is-fullscreen-mode .edit-post-header{transform:translateY(-100%);animation:edit-post-fullscreen-mode__slide-in-animation .1s forwards}}@keyframes edit-post-fullscreen-mode__slide-in-animation{to{transform:translateY(0)}}.edit-post-header{height:56px;padding:4px 2px;border-bottom:1px solid #e2e4e7;background:#fff;display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;z-index:30;left:0;top:0;position:-webkit-sticky;position:sticky}@media (min-width:600px){.edit-post-header{position:fixed;padding:8px;top:46px}}@media (min-width:782px){.edit-post-header{top:32px}body.is-fullscreen-mode .edit-post-header{top:0}}.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:none}@media (min-width:600px){.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:inline-flex}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header{right:0}@media (min-width:782px){.edit-post-header{right:160px}}@media (min-width:782px){.auto-fold .edit-post-header{right:36px}}@media (min-width:960px){.auto-fold .edit-post-header{right:160px}}.folded .edit-post-header{right:0}@media (min-width:782px){.folded .edit-post-header{right:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .edit-post-header{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-header{margin-right:-18px}}body.is-fullscreen-mode .edit-post-header{right:0!important}.edit-post-header__settings{display:inline-flex;align-items:center}.edit-post-header .components-button.is-toggled{color:#fff}.edit-post-header .components-button.is-toggled:before{content:"";border-radius:4px;position:absolute;z-index:-1;background:#555d66;top:1px;left:1px;bottom:1px;right:1px}.edit-post-header .components-button.is-toggled:focus,.edit-post-header .components-button.is-toggled:hover{box-shadow:0 0 0 1px #555d66,inset 0 0 0 1px #fff;color:#fff;background:#555d66}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle,.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{margin:2px;height:33px;line-height:32px;font-size:13px}.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 12px}}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 5px 2px}@media (min-width:600px){.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 12px 2px}}@media (min-width:782px){.edit-post-header .components-button.editor-post-preview{margin:0 12px 0 3px}.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{margin:0 3px 0 12px}}.edit-post-fullscreen-mode-close__toolbar{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close__toolbar{display:block;border-top:0;border-bottom:0;border-right:0;margin:-9px -10px -9px 10px;padding:9px 10px}}.edit-post-header-toolbar{display:inline-flex;align-items:center}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar .editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header-toolbar .editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:flex}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:56px;right:0;left:0;background:#fff;min-height:37px;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1080px){.edit-post-header-toolbar__block-toolbar{padding-right:8px;position:static;right:auto;left:auto;background:none;border-bottom:none;min-height:auto}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .editor-block-toolbar{margin:-9px 0}.edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar{padding:10px 4px 9px}}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:4px}.edit-post-more-menu .components-icon-button{padding:8px 4px}}.edit-post-more-menu .components-button svg{transform:rotate(-90deg)}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-menu-group:not(:last-child),.edit-post-more-menu__content .components-popover__content>div:not(:last-child) .components-menu-group{border-bottom:1px solid #e2e4e7}.edit-post-more-menu__content .components-popover__content .components-menu-item__button{padding-right:2rem}.edit-post-more-menu__content .components-popover__content .components-menu-item__button.has-icon{padding-right:.5rem}.edit-post-pinned-plugins{display:none}@media (min-width:600px){.edit-post-pinned-plugins{display:flex}}.edit-post-pinned-plugins .components-icon-button{margin-right:4px}.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg *{stroke:#555d66;fill:#555d66;stroke-width:0}.edit-post-pinned-plugins .components-icon-button.is-toggled svg,.edit-post-pinned-plugins .components-icon-button.is-toggled svg *{stroke:#fff!important;fill:#fff!important;stroke-width:0}.edit-post-pinned-plugins .components-icon-button:hover svg,.edit-post-pinned-plugins .components-icon-button:hover svg *{stroke:#191e23!important;fill:#191e23!important;stroke-width:0}.edit-post-keyboard-shortcut-help__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help__shortcut{display:flex;align-items:center;padding:.6rem 0;border-top:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut:last-child{border-bottom:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut-term{order:1;font-weight:600;margin:0 1rem 0 0}.edit-post-keyboard-shortcut-help__shortcut-description{flex:1;order:0;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help__shortcut-key-combination{background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout,.edit-post-layout__content{height:100%}.edit-post-layout{position:relative}.edit-post-layout .components-notice-list{position:-webkit-sticky;position:sticky;top:56px;left:0;color:#191e23}@media (min-width:600px){.edit-post-layout .components-notice-list{top:0}}.edit-post-layout .components-notice-list.is-pinned{position:relative;right:0;top:0}.edit-post-layout .components-notice{margin:0 0 5px;padding:6px 12px;min-height:50px}.edit-post-layout .components-notice .components-notice__dismiss{margin:10px 5px}@media (min-width:600px){.edit-post-layout{padding-top:56px}}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;margin-top:10px;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout__content{display:flex;flex-direction:column;min-height:100%;position:relative;padding-bottom:50vh;-webkit-overflow-scrolling:touch}@media (min-width:782px){.edit-post-layout__content{position:fixed;bottom:0;right:0;left:0;top:88px;min-height:calc(100% - 88px);height:auto;margin-right:160px}body.auto-fold .edit-post-layout__content{margin-right:36px}}@media (min-width:782px) and (min-width:960px){body.auto-fold .edit-post-layout__content{margin-right:160px}}@media (min-width:782px){body.folded .edit-post-layout__content{margin-right:36px}body.is-fullscreen-mode .edit-post-layout__content{margin-right:0!important;top:56px}}@media (min-width:782px){.has-fixed-toolbar .edit-post-layout__content{top:124px}}@media (min-width:1080px){.has-fixed-toolbar .edit-post-layout__content{top:88px}}@media (min-width:600px){.edit-post-layout__content{padding-bottom:0;overflow-y:auto;overscroll-behavior-y:none}}.edit-post-layout__content .edit-post-visual-editor{flex:1 1 auto}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-layout__content .edit-post-visual-editor{flex-basis:100%}}.edit-post-layout__content .edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{top:32px;right:auto;width:280px;border-right:1px solid #e2e4e7;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button .components-button.is-large{height:33px;line-height:32px}.edit-post-layout .editor-post-publish-panel__header-publish-button .editor-post-publish-panel__spacer{display:inline-flex;flex:0 1 52px}.edit-post-toggle-publish-panel{position:fixed;top:-9999em;bottom:auto;right:auto;left:0;z-index:100000;padding:10px 0 10px 10px;width:280px;background-color:#fff}.edit-post-toggle-publish-panel:focus{top:auto;bottom:0}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{width:auto;height:auto;display:block;font-size:14px;font-weight:600;margin:0 auto 0 0;padding:15px 23px 14px;line-height:normal;text-decoration:none;outline:none;background:#f1f1f1;color:#11a0d2}body.admin-color-sunrise .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c8b03c}body.admin-color-ocean .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#a89d8a}body.admin-color-midnight .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#77a6b9}body.admin-color-ectoplasm .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c77430}body.admin-color-coffee .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#9fa47b}body.admin-color-blue .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#d9ab59}body.admin-color-light .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c75726}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button:focus{position:fixed;top:auto;left:10px;bottom:10px;right:auto}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-sidebar{position:fixed;z-index:100000;top:0;left:0;bottom:0;width:280px;border-right:1px solid #e2e4e7;background:#fff;color:#555d66;height:100vh;overflow:hidden}@media (min-width:600px){.edit-post-sidebar{top:102px;z-index:90;height:auto;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.edit-post-sidebar{top:88px}body.is-fullscreen-mode .edit-post-sidebar{top:56px}}.edit-post-sidebar>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 96px);margin-top:-1px;margin-bottom:-1px;position:relative;z-index:-2}@media (min-width:600px){.edit-post-sidebar>.components-panel{overflow:inherit;height:auto;max-height:none}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-sidebar>.components-panel{max-height:calc(100vh - 50px)}}.edit-post-sidebar>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:50px}@media (min-width:600px){.edit-post-sidebar>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.edit-post-sidebar p{margin-top:0}.edit-post-sidebar h2,.edit-post-sidebar h3{font-size:13px;color:#555d66;margin-bottom:1.5em}.edit-post-sidebar hr{border-top:none;border-bottom:1px solid #e2e4e7;margin:1.5em 0}.edit-post-sidebar div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.edit-post-sidebar div.components-toolbar:last-child{margin-bottom:0}.edit-post-sidebar p+div.components-toolbar{margin-top:-1em}.edit-post-sidebar .editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-layout__content{margin-left:280px}}.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:100%}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:280px}}.components-panel__header.edit-post-sidebar__header{background:#fff;padding-left:8px}.components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar__header{display:none}}.components-panel__header.edit-post-sidebar__panel-tabs{margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:none;margin-right:auto}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:flex}}.edit-post-sidebar__panel-tab{height:50px}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0}.editor-post-last-revision__title{padding:13px 16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{margin:0}.edit-post-post-link__link{word-wrap:break-word}.edit-post-post-schedule{width:100%;position:relative}.edit-post-post-schedule__label{display:none}.components-button.edit-post-post-schedule__toggle{text-align:left}.edit-post-post-schedule__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-schedule__dialog .components-popover__content{width:270px}}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}.edit-post-post-visibility__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:4px;border-top:0;position:-webkit-sticky;position:sticky;z-index:-1;top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.edit-post-sidebar__panel-tab{background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px 15px;margin-right:0;font-weight:400;color:#191e23;outline-offset:-1px;transition:box-shadow .1s linear}.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:3px solid transparent}.edit-post-sidebar__panel-tab:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66}.edit-post-settings-sidebar__panel-block .components-panel__body{border:none;border-top:1px solid #e2e4e7;margin:0 -16px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control{margin-bottom:24px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control:last-child{margin-bottom:8px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-panel__body-toggle{color:#191e23}.edit-post-settings-sidebar__panel-block .components-panel__body:first-child{margin-top:16px}.edit-post-settings-sidebar__panel-block .components-panel__body:last-child{margin-bottom:-16px}.components-panel__header.edit-post-sidebar-header__small{background:#fff;padding-left:4px}.components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header__small{display:none}}.components-panel__header.edit-post-sidebar-header{padding-left:4px;background:#f3f4f5}.components-panel__header.edit-post-sidebar-header .components-icon-button{display:none;margin-right:auto}.components-panel__header.edit-post-sidebar-header .components-icon-button~.components-icon-button{margin-right:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header .components-icon-button{display:flex}}.edit-post-text-editor__body{padding-top:40px}@media (min-width:600px){.edit-post-text-editor__body{padding-top:86px}}@media (min-width:782px){.edit-post-text-editor__body,body.is-fullscreen-mode .edit-post-text-editor__body{padding-top:40px}}.edit-post-text-editor{width:100%;max-width:calc(100% - 32px);margin-right:16px;margin-left:16px;padding-top:44px}@media (min-width:600px){.edit-post-text-editor{max-width:610px;margin-right:auto;margin-left:auto}}.edit-post-text-editor .editor-post-title__block textarea{border:1px solid #e2e4e7;margin-bottom:4px;padding:14px}.edit-post-text-editor .editor-post-title__block.is-selected textarea,.edit-post-text-editor .editor-post-title__block textarea:hover{box-shadow:0 0 0 1px #e2e4e7}.edit-post-text-editor .editor-post-permalink{right:0;left:0;margin-top:-6px}@media (min-width:600px){.edit-post-text-editor .editor-post-title,.edit-post-text-editor .editor-post-title__block{padding:0}}.edit-post-text-editor .editor-post-text-editor{padding:14px;min-height:200px;line-height:1.8}.edit-post-text-editor .edit-post-text-editor__toolbar{position:absolute;top:8px;right:0;left:0;height:36px;line-height:36px;padding:0 16px 0 8px;display:flex}.edit-post-text-editor .edit-post-text-editor__toolbar h2{margin:0 0 0 auto;font-size:13px;color:#555d66}.edit-post-text-editor .edit-post-text-editor__toolbar .components-icon-button svg{order:1}.edit-post-visual-editor{position:relative;padding:50px 0}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.edit-post-visual-editor .editor-writing-flow__click-redirect{height:50px;width:100%;margin:-4px auto -50px}.edit-post-visual-editor .editor-block-list__block{margin-right:auto;margin-left:auto}@media (min-width:600px){.edit-post-visual-editor .editor-block-list__block .editor-block-list__block-edit{margin-right:-28px;margin-left:-28px}.edit-post-visual-editor .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-contextual-toolbar,.edit-post-visual-editor .editor-block-list__block[data-align=wide]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{width:calc(100% + 30px);height:0;text-align:center;float:right}.edit-post-visual-editor .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-contextual-toolbar .editor-block-toolbar,.edit-post-visual-editor .editor-block-list__block[data-align=wide]>.editor-block-list__block-edit>.editor-block-contextual-toolbar .editor-block-toolbar{max-width:610px;width:100%;position:relative}.edit-post-visual-editor .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{width:100%;margin-right:0;margin-left:0}}@media (min-width:600px){.editor-post-title{padding-right:46px;padding-left:46px}}.edit-post-visual-editor .editor-post-title__block{margin-right:auto;margin-left:auto;margin-bottom:-20px}.edit-post-visual-editor .editor-post-title__block>div{margin-right:0;margin-left:0}@media (min-width:600px){.edit-post-visual-editor .editor-post-title__block>div{margin-right:-2px;margin-left:-2px}}.edit-post-visual-editor .editor-block-list__layout>.editor-block-list__block[data-align=left]:first-child,.edit-post-visual-editor .editor-block-list__layout>.editor-block-list__block[data-align=right]:first-child{margin-top:34px}.edit-post-visual-editor .editor-default-block-appender{margin-right:auto;margin-left:auto;position:relative}.edit-post-visual-editor .editor-default-block-appender[data-root-client-id=""] .editor-default-block-appender__content:hover{outline:1px solid transparent}.edit-post-visual-editor .editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible=true]+p,.edit-post-visual-editor .editor-default-block-appender__content{min-height:28px;line-height:1.8}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}@keyframes edit-post__loading-fade-animation{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.block-editor,.components-modal__frame{box-sizing:border-box}.block-editor *,.block-editor :after,.block-editor :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.block-editor select,.components-modal__frame select{font-size:13px;color:#555d66}@media (min-width:600px){.block-editor__container{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-block-list__block .input-control,.editor-block-list__block input[type=checkbox],.editor-block-list__block input[type=color],.editor-block-list__block input[type=date],.editor-block-list__block input[type=datetime-local],.editor-block-list__block input[type=datetime],.editor-block-list__block input[type=email],.editor-block-list__block input[type=month],.editor-block-list__block input[type=number],.editor-block-list__block input[type=password],.editor-block-list__block input[type=radio],.editor-block-list__block input[type=search],.editor-block-list__block input[type=tel],.editor-block-list__block input[type=text],.editor-block-list__block input[type=time],.editor-block-list__block input[type=url],.editor-block-list__block input[type=week],.editor-block-list__block select,.editor-block-list__block textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0;font-size:16px}@media (min-width:600px){.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-block-list__block .input-control,.editor-block-list__block input[type=checkbox],.editor-block-list__block input[type=color],.editor-block-list__block input[type=date],.editor-block-list__block input[type=datetime-local],.editor-block-list__block input[type=datetime],.editor-block-list__block input[type=email],.editor-block-list__block input[type=month],.editor-block-list__block input[type=number],.editor-block-list__block input[type=password],.editor-block-list__block input[type=radio],.editor-block-list__block input[type=search],.editor-block-list__block input[type=tel],.editor-block-list__block input[type=text],.editor-block-list__block input[type=time],.editor-block-list__block input[type=url],.editor-block-list__block input[type=week],.editor-block-list__block select,.editor-block-list__block textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-size:13px}}.components-modal__content .input-control:focus,.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=color]:focus,.components-modal__content input[type=date]:focus,.components-modal__content input[type=datetime-local]:focus,.components-modal__content input[type=datetime]:focus,.components-modal__content input[type=email]:focus,.components-modal__content input[type=month]:focus,.components-modal__content input[type=number]:focus,.components-modal__content input[type=password]:focus,.components-modal__content input[type=radio]:focus,.components-modal__content input[type=search]:focus,.components-modal__content input[type=tel]:focus,.components-modal__content input[type=text]:focus,.components-modal__content input[type=time]:focus,.components-modal__content input[type=url]:focus,.components-modal__content input[type=week]:focus,.components-modal__content select:focus,.components-modal__content textarea:focus,.components-popover .input-control:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=color]:focus,.components-popover input[type=date]:focus,.components-popover input[type=datetime-local]:focus,.components-popover input[type=datetime]:focus,.components-popover input[type=email]:focus,.components-popover input[type=month]:focus,.components-popover input[type=number]:focus,.components-popover input[type=password]:focus,.components-popover input[type=radio]:focus,.components-popover input[type=search]:focus,.components-popover input[type=tel]:focus,.components-popover input[type=text]:focus,.components-popover input[type=time]:focus,.components-popover input[type=url]:focus,.components-popover input[type=week]:focus,.components-popover select:focus,.components-popover textarea:focus,.edit-post-sidebar .input-control:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=color]:focus,.edit-post-sidebar input[type=date]:focus,.edit-post-sidebar input[type=datetime-local]:focus,.edit-post-sidebar input[type=datetime]:focus,.edit-post-sidebar input[type=email]:focus,.edit-post-sidebar input[type=month]:focus,.edit-post-sidebar input[type=number]:focus,.edit-post-sidebar input[type=password]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-sidebar input[type=search]:focus,.edit-post-sidebar input[type=tel]:focus,.edit-post-sidebar input[type=text]:focus,.edit-post-sidebar input[type=time]:focus,.edit-post-sidebar input[type=url]:focus,.edit-post-sidebar input[type=week]:focus,.edit-post-sidebar select:focus,.edit-post-sidebar textarea:focus,.editor-block-list__block .input-control:focus,.editor-block-list__block input[type=checkbox]:focus,.editor-block-list__block input[type=color]:focus,.editor-block-list__block input[type=date]:focus,.editor-block-list__block input[type=datetime-local]:focus,.editor-block-list__block input[type=datetime]:focus,.editor-block-list__block input[type=email]:focus,.editor-block-list__block input[type=month]:focus,.editor-block-list__block input[type=number]:focus,.editor-block-list__block input[type=password]:focus,.editor-block-list__block input[type=radio]:focus,.editor-block-list__block input[type=search]:focus,.editor-block-list__block input[type=tel]:focus,.editor-block-list__block input[type=text]:focus,.editor-block-list__block input[type=time]:focus,.editor-block-list__block input[type=url]:focus,.editor-block-list__block input[type=week]:focus,.editor-block-list__block select:focus,.editor-block-list__block textarea:focus,.editor-post-permalink .input-control:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=color]:focus,.editor-post-permalink input[type=date]:focus,.editor-post-permalink input[type=datetime-local]:focus,.editor-post-permalink input[type=datetime]:focus,.editor-post-permalink input[type=email]:focus,.editor-post-permalink input[type=month]:focus,.editor-post-permalink input[type=number]:focus,.editor-post-permalink input[type=password]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-permalink input[type=search]:focus,.editor-post-permalink input[type=tel]:focus,.editor-post-permalink input[type=text]:focus,.editor-post-permalink input[type=time]:focus,.editor-post-permalink input[type=url]:focus,.editor-post-permalink input[type=week]:focus,.editor-post-permalink select:focus,.editor-post-permalink textarea:focus,.editor-post-publish-panel .input-control:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=color]:focus,.editor-post-publish-panel input[type=date]:focus,.editor-post-publish-panel input[type=datetime-local]:focus,.editor-post-publish-panel input[type=datetime]:focus,.editor-post-publish-panel input[type=email]:focus,.editor-post-publish-panel input[type=month]:focus,.editor-post-publish-panel input[type=number]:focus,.editor-post-publish-panel input[type=password]:focus,.editor-post-publish-panel input[type=radio]:focus,.editor-post-publish-panel input[type=search]:focus,.editor-post-publish-panel input[type=tel]:focus,.editor-post-publish-panel input[type=text]:focus,.editor-post-publish-panel input[type=time]:focus,.editor-post-publish-panel input[type=url]:focus,.editor-post-publish-panel input[type=week]:focus,.editor-post-publish-panel select:focus,.editor-post-publish-panel textarea:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-modal__content input[type=number],.components-popover input[type=number],.edit-post-sidebar input[type=number],.editor-block-list__block input[type=number],.editor-post-permalink input[type=number],.editor-post-publish-panel input[type=number]{padding-right:4px;padding-left:4px}.components-modal__content select,.components-popover select,.edit-post-sidebar select,.editor-block-list__block select,.editor-post-permalink select,.editor-post-publish-panel select{padding:2px}.components-modal__content select:focus,.components-popover select:focus,.edit-post-sidebar select:focus,.editor-block-list__block select:focus,.editor-post-permalink select:focus,.editor-post-publish-panel select:focus{border-color:#008dbe;outline:2px solid transparent;outline-offset:0}.components-modal__content input[type=checkbox],.components-modal__content input[type=radio],.components-popover input[type=checkbox],.components-popover input[type=radio],.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=radio],.editor-block-list__block input[type=checkbox],.editor-block-list__block input[type=radio],.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=radio]{border:2px solid #6c7781;margin-left:12px;transition:none}.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=radio]:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=radio]:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=radio]:focus,.editor-block-list__block input[type=checkbox]:focus,.editor-block-list__block input[type=radio]:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=radio]:focus{border-color:#6c7781;box-shadow:0 0 0 1px #6c7781}.components-modal__content input[type=checkbox]:checked,.components-modal__content input[type=radio]:checked,.components-popover input[type=checkbox]:checked,.components-popover input[type=radio]:checked,.edit-post-sidebar input[type=checkbox]:checked,.edit-post-sidebar input[type=radio]:checked,.editor-block-list__block input[type=checkbox]:checked,.editor-block-list__block input[type=radio]:checked,.editor-post-permalink input[type=checkbox]:checked,.editor-post-permalink input[type=radio]:checked,.editor-post-publish-panel input[type=checkbox]:checked,.editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .components-modal__content input[type=checkbox]:checked,body.admin-color-sunrise .components-modal__content input[type=radio]:checked,body.admin-color-sunrise .components-popover input[type=checkbox]:checked,body.admin-color-sunrise .components-popover input[type=radio]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=radio]:checked,body.admin-color-sunrise .editor-block-list__block input[type=checkbox]:checked,body.admin-color-sunrise .editor-block-list__block input[type=radio]:checked,body.admin-color-sunrise .editor-post-permalink input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-permalink input[type=radio]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=radio]:checked{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .components-modal__content input[type=checkbox]:checked,body.admin-color-ocean .components-modal__content input[type=radio]:checked,body.admin-color-ocean .components-popover input[type=checkbox]:checked,body.admin-color-ocean .components-popover input[type=radio]:checked,body.admin-color-ocean .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ocean .edit-post-sidebar input[type=radio]:checked,body.admin-color-ocean .editor-block-list__block input[type=checkbox]:checked,body.admin-color-ocean .editor-block-list__block input[type=radio]:checked,body.admin-color-ocean .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ocean .editor-post-permalink input[type=radio]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=radio]:checked{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-modal__content input[type=checkbox]:checked,body.admin-color-midnight .components-modal__content input[type=radio]:checked,body.admin-color-midnight .components-popover input[type=checkbox]:checked,body.admin-color-midnight .components-popover input[type=radio]:checked,body.admin-color-midnight .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-midnight .edit-post-sidebar input[type=radio]:checked,body.admin-color-midnight .editor-block-list__block input[type=checkbox]:checked,body.admin-color-midnight .editor-block-list__block input[type=radio]:checked,body.admin-color-midnight .editor-post-permalink input[type=checkbox]:checked,body.admin-color-midnight .editor-post-permalink input[type=radio]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=radio]:checked{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .components-modal__content input[type=checkbox]:checked,body.admin-color-ectoplasm .components-modal__content input[type=radio]:checked,body.admin-color-ectoplasm .components-popover input[type=checkbox]:checked,body.admin-color-ectoplasm .components-popover input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=radio]:checked,body.admin-color-ectoplasm .editor-block-list__block input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-block-list__block input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=radio]:checked{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-modal__content input[type=checkbox]:checked,body.admin-color-coffee .components-modal__content input[type=radio]:checked,body.admin-color-coffee .components-popover input[type=checkbox]:checked,body.admin-color-coffee .components-popover input[type=radio]:checked,body.admin-color-coffee .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-coffee .edit-post-sidebar input[type=radio]:checked,body.admin-color-coffee .editor-block-list__block input[type=checkbox]:checked,body.admin-color-coffee .editor-block-list__block input[type=radio]:checked,body.admin-color-coffee .editor-post-permalink input[type=checkbox]:checked,body.admin-color-coffee .editor-post-permalink input[type=radio]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=radio]:checked{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-modal__content input[type=checkbox]:checked,body.admin-color-blue .components-modal__content input[type=radio]:checked,body.admin-color-blue .components-popover input[type=checkbox]:checked,body.admin-color-blue .components-popover input[type=radio]:checked,body.admin-color-blue .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-blue .edit-post-sidebar input[type=radio]:checked,body.admin-color-blue .editor-block-list__block input[type=checkbox]:checked,body.admin-color-blue .editor-block-list__block input[type=radio]:checked,body.admin-color-blue .editor-post-permalink input[type=checkbox]:checked,body.admin-color-blue .editor-post-permalink input[type=radio]:checked,body.admin-color-blue .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-blue .editor-post-publish-panel input[type=radio]:checked{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .components-modal__content input[type=checkbox]:checked,body.admin-color-light .components-modal__content input[type=radio]:checked,body.admin-color-light .components-popover input[type=checkbox]:checked,body.admin-color-light .components-popover input[type=radio]:checked,body.admin-color-light .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-light .edit-post-sidebar input[type=radio]:checked,body.admin-color-light .editor-block-list__block input[type=checkbox]:checked,body.admin-color-light .editor-block-list__block input[type=radio]:checked,body.admin-color-light .editor-post-permalink input[type=checkbox]:checked,body.admin-color-light .editor-post-permalink input[type=radio]:checked,body.admin-color-light .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-light .editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}.components-modal__content input[type=checkbox]:checked:focus,.components-modal__content input[type=radio]:checked:focus,.components-popover input[type=checkbox]:checked:focus,.components-popover input[type=radio]:checked:focus,.edit-post-sidebar input[type=checkbox]:checked:focus,.edit-post-sidebar input[type=radio]:checked:focus,.editor-block-list__block input[type=checkbox]:checked:focus,.editor-block-list__block input[type=radio]:checked:focus,.editor-post-permalink input[type=checkbox]:checked:focus,.editor-post-permalink input[type=radio]:checked:focus,.editor-post-publish-panel input[type=checkbox]:checked:focus,.editor-post-publish-panel input[type=radio]:checked:focus{box-shadow:0 0 0 2px #555d66}.components-modal__content input[type=checkbox],.components-popover input[type=checkbox],.edit-post-sidebar input[type=checkbox],.editor-block-list__block input[type=checkbox],.editor-post-permalink input[type=checkbox],.editor-post-publish-panel input[type=checkbox]{border-radius:2px}.components-modal__content input[type=checkbox]:checked:before,.components-popover input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox]:checked:before,.editor-block-list__block input[type=checkbox]:checked:before,.editor-post-permalink input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox]:checked:before{margin:-4px -5px 0 0;color:#fff}.components-modal__content input[type=radio],.components-popover input[type=radio],.edit-post-sidebar input[type=radio],.editor-block-list__block input[type=radio],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=radio]{border-radius:50%}.components-modal__content input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.editor-block-list__block input[type=radio]:checked:before,.editor-post-permalink input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{margin:3px 3px 0 0;background-color:#fff}.editor-block-list__block input::-webkit-input-placeholder,.editor-block-list__block textarea::-webkit-input-placeholder,.editor-post-title input::-webkit-input-placeholder,.editor-post-title textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.editor-block-list__block input::-moz-placeholder,.editor-block-list__block textarea::-moz-placeholder,.editor-post-title input::-moz-placeholder,.editor-post-title textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.editor-block-list__block input:-ms-input-placeholder,.editor-block-list__block textarea:-ms-input-placeholder,.editor-post-title input:-ms-input-placeholder,.editor-post-title textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .editor-block-list__block input::-webkit-input-placeholder,.is-dark-theme .editor-block-list__block textarea::-webkit-input-placeholder,.is-dark-theme .editor-post-title input::-webkit-input-placeholder,.is-dark-theme .editor-post-title textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-block-list__block input::-moz-placeholder,.is-dark-theme .editor-block-list__block textarea::-moz-placeholder,.is-dark-theme .editor-post-title input::-moz-placeholder,.is-dark-theme .editor-post-title textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-block-list__block input:-ms-input-placeholder,.is-dark-theme .editor-block-list__block textarea:-ms-input-placeholder,.is-dark-theme .editor-post-title input:-ms-input-placeholder,.is-dark-theme .editor-post-title textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block{max-width:610px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none} \ No newline at end of file +@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-46px;height:calc(100% + 46px);animation:edit-post__fade-in-animation .3s ease-out 0s;animation-fill-mode:forwards}}@media (min-width:782px) and (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}@media (min-width:782px) and (prefers-reduced-motion:reduce){body.js.is-fullscreen-mode{animation-duration:1ms!important}}@media (min-width:782px){body.js.is-fullscreen-mode .edit-post-header{transform:translateY(-100%);animation:edit-post-fullscreen-mode__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){body.js.is-fullscreen-mode .edit-post-header{animation-duration:1ms!important}}@keyframes edit-post-fullscreen-mode__slide-in-animation{to{transform:translateY(0)}}.edit-post-header{height:56px;padding:4px 2px;border-bottom:1px solid #e2e4e7;background:#fff;display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;z-index:30;left:0;top:0;position:-webkit-sticky;position:sticky}@media (min-width:600px){.edit-post-header{position:fixed;padding:8px;top:46px}}@media (min-width:782px){.edit-post-header{top:32px}body.is-fullscreen-mode .edit-post-header{top:0}}.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:none}@media (min-width:600px){.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:inline-flex}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header{right:0}@media (min-width:782px){.edit-post-header{right:160px}}@media (min-width:782px){.auto-fold .edit-post-header{right:36px}}@media (min-width:960px){.auto-fold .edit-post-header{right:160px}}.folded .edit-post-header{right:0}@media (min-width:782px){.folded .edit-post-header{right:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .edit-post-header{right:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-header{margin-right:-18px}}body.is-fullscreen-mode .edit-post-header{right:0!important}.edit-post-header__settings{display:inline-flex;align-items:center}.edit-post-header .components-button.is-toggled{color:#fff}.edit-post-header .components-button.is-toggled:before{content:"";border-radius:4px;position:absolute;z-index:-1;background:#555d66;top:1px;left:1px;bottom:1px;right:1px}.edit-post-header .components-button.is-toggled:focus,.edit-post-header .components-button.is-toggled:hover{box-shadow:0 0 0 1px #555d66,inset 0 0 0 1px #fff;color:#fff;background:#555d66}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle,.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{margin:2px;height:33px;line-height:32px;font-size:13px}.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 12px}}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 5px 2px}@media (min-width:600px){.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 12px 2px}}@media (min-width:782px){.edit-post-header .components-button.editor-post-preview{margin:0 12px 0 3px}.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{margin:0 3px 0 12px}}.edit-post-fullscreen-mode-close__toolbar{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close__toolbar{display:block;border-top:0;border-bottom:0;border-right:0;margin:-9px -10px -9px 10px;padding:9px 10px}}.edit-post-header-toolbar{display:inline-flex;align-items:center}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:flex}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:56px;right:0;left:0;background:#fff;min-height:37px;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;left:280px}}@media (min-width:1080px){.edit-post-header-toolbar__block-toolbar{padding-right:8px;position:static;right:auto;left:auto;background:none;border-bottom:none;min-height:auto}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{left:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{margin:-9px 0}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{padding:10px 4px 9px}}.edit-post-more-menu{margin-right:-4px}.edit-post-more-menu .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.edit-post-more-menu{margin-right:4px}.edit-post-more-menu .components-icon-button{padding:8px 4px}}.edit-post-more-menu .components-button svg{transform:rotate(-90deg)}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-menu-group:not(:last-child),.edit-post-more-menu__content .components-popover__content>div:not(:last-child) .components-menu-group{border-bottom:1px solid #e2e4e7}.edit-post-more-menu__content .components-popover__content .components-menu-item__button{padding-right:2rem}.edit-post-more-menu__content .components-popover__content .components-menu-item__button.has-icon{padding-right:.5rem}.edit-post-pinned-plugins{display:none}@media (min-width:600px){.edit-post-pinned-plugins{display:flex}}.edit-post-pinned-plugins .components-icon-button{margin-right:4px}.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg *{stroke:#555d66;fill:#555d66;stroke-width:0}.edit-post-pinned-plugins .components-icon-button.is-toggled svg,.edit-post-pinned-plugins .components-icon-button.is-toggled svg *{stroke:#fff!important;fill:#fff!important;stroke-width:0}.edit-post-pinned-plugins .components-icon-button:hover svg,.edit-post-pinned-plugins .components-icon-button:hover svg *{stroke:#191e23!important;fill:#191e23!important;stroke-width:0}.edit-post-keyboard-shortcut-help__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help__shortcut{display:flex;align-items:center;padding:.6rem 0;border-top:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut:last-child{border-bottom:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut-term{order:1;font-weight:600;margin:0 1rem 0 0}.edit-post-keyboard-shortcut-help__shortcut-description{flex:1;order:0;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help__shortcut-key-combination{background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout,.edit-post-layout__content{height:100%}.edit-post-layout{position:relative}.edit-post-layout .components-notice-list{position:-webkit-sticky;position:sticky;top:56px;left:0;color:#191e23}@media (min-width:600px){.edit-post-layout .components-notice-list{top:0}}.edit-post-layout .components-notice-list.is-pinned{position:relative;right:0;top:0}.edit-post-layout .components-notice{margin:0 0 5px;padding:6px 12px;min-height:50px}.edit-post-layout .components-notice .components-notice__dismiss{margin:10px 5px}@media (min-width:600px){.edit-post-layout{padding-top:56px}}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;margin-top:10px;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout__content{display:flex;flex-direction:column;min-height:100%;position:relative;padding-bottom:50vh;-webkit-overflow-scrolling:touch}@media (min-width:782px){.edit-post-layout__content{position:fixed;bottom:0;right:0;left:0;top:88px;min-height:calc(100% - 88px);height:auto;margin-right:160px}body.auto-fold .edit-post-layout__content{margin-right:36px}}@media (min-width:782px) and (min-width:960px){body.auto-fold .edit-post-layout__content{margin-right:160px}}@media (min-width:782px){body.folded .edit-post-layout__content{margin-right:36px}body.is-fullscreen-mode .edit-post-layout__content{margin-right:0!important;top:56px}}@media (min-width:782px){.has-fixed-toolbar .edit-post-layout__content{top:124px}}@media (min-width:1080px){.has-fixed-toolbar .edit-post-layout__content{top:88px}}@media (min-width:600px){.edit-post-layout__content{padding-bottom:0;overflow-y:auto;overscroll-behavior-y:none}}.edit-post-layout__content .edit-post-visual-editor{flex:1 1 auto}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-layout__content .edit-post-visual-editor{flex-basis:100%}}.edit-post-layout__content .edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;left:0;right:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{top:32px;right:auto;width:280px;border-right:1px solid #e2e4e7;transform:translateX(-100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms!important}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button .components-button.is-large{height:33px;line-height:32px}.edit-post-layout .editor-post-publish-panel__header-publish-button .editor-post-publish-panel__spacer{display:inline-flex;flex:0 1 52px}.edit-post-toggle-publish-panel{position:fixed;top:-9999em;bottom:auto;right:auto;left:0;z-index:100000;padding:10px 0 10px 10px;width:280px;background-color:#fff}.edit-post-toggle-publish-panel:focus{top:auto;bottom:0}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{width:auto;height:auto;display:block;font-size:14px;font-weight:600;margin:0 auto 0 0;padding:15px 23px 14px;line-height:normal;text-decoration:none;outline:none;background:#f1f1f1;color:#11a0d2}body.admin-color-sunrise .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c8b03c}body.admin-color-ocean .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#a89d8a}body.admin-color-midnight .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#77a6b9}body.admin-color-ectoplasm .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c77430}body.admin-color-coffee .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#9fa47b}body.admin-color-blue .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#d9ab59}body.admin-color-light .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c75726}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button:focus{position:fixed;top:auto;left:10px;bottom:10px;right:auto}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 112px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:12px;border-radius:4px}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-left:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-right:16px;border-top:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item input[type=checkbox]{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 10px .6rem 0}.edit-post-manage-blocks-modal__checklist-item .editor-block-icon{margin-left:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-right:-16px;margin-left:-16px;padding-right:16px;padding-left:16px;border-top:1px solid #e2e4e7}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;right:0;left:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;left:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-sidebar{position:fixed;z-index:100000;top:0;left:0;bottom:0;width:280px;border-right:1px solid #e2e4e7;background:#fff;color:#555d66;height:100vh;overflow:hidden}@media (min-width:600px){.edit-post-sidebar{top:102px;z-index:90;height:auto;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.edit-post-sidebar{top:88px}body.is-fullscreen-mode .edit-post-sidebar{top:56px}}.edit-post-sidebar>.components-panel{border-right:none;border-left:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 96px);margin-top:-1px;margin-bottom:-1px;position:relative;z-index:-2}@media (min-width:600px){.edit-post-sidebar>.components-panel{overflow:inherit;height:auto;max-height:none}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-sidebar>.components-panel{max-height:calc(100vh - 50px)}}.edit-post-sidebar>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;right:0;left:0;height:50px}@media (min-width:600px){.edit-post-sidebar>.components-panel .components-panel__header{position:inherit;top:auto;right:auto;left:auto}}.edit-post-sidebar p{margin-top:0}.edit-post-sidebar h2,.edit-post-sidebar h3{font-size:13px;color:#555d66;margin-bottom:1.5em}.edit-post-sidebar hr{border-top:none;border-bottom:1px solid #e2e4e7;margin:1.5em 0}.edit-post-sidebar div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.edit-post-sidebar div.components-toolbar:last-child{margin-bottom:0}.edit-post-sidebar p+div.components-toolbar{margin-top:-1em}.edit-post-sidebar .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-layout__content{margin-left:280px}}.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:100%}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:280px}}.components-panel__header.edit-post-sidebar__header{background:#fff;padding-left:8px}.components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar__header{display:none}}.components-panel__header.edit-post-sidebar__panel-tabs{margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:none;margin-right:auto}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:flex}}.edit-post-sidebar__panel-tab{height:50px}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0}.editor-post-last-revision__title{padding:13px 16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{margin:0}.edit-post-post-link__link{word-wrap:break-word}.edit-post-post-schedule{width:100%;position:relative}.edit-post-post-schedule__label{display:none}.components-button.edit-post-post-schedule__toggle{text-align:left}.edit-post-post-schedule__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-schedule__dialog .components-popover__content{width:270px}}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}.edit-post-post-visibility__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-right:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-right:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:4px;border-top:0;position:-webkit-sticky;position:sticky;z-index:-1;top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.edit-post-sidebar__panel-tab{background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px 15px;margin-right:0;font-weight:400;color:#191e23;outline-offset:-1px;transition:box-shadow .1s linear}.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:3px solid transparent}.edit-post-sidebar__panel-tab:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66}.edit-post-settings-sidebar__panel-block .components-panel__body{border:none;border-top:1px solid #e2e4e7;margin:0 -16px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control{margin-bottom:24px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control:last-child{margin-bottom:8px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-panel__body-toggle{color:#191e23}.edit-post-settings-sidebar__panel-block .components-panel__body:first-child{margin-top:16px}.edit-post-settings-sidebar__panel-block .components-panel__body:last-child{margin-bottom:-16px}.components-panel__header.edit-post-sidebar-header__small{background:#fff;padding-left:4px}.components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header__small{display:none}}.components-panel__header.edit-post-sidebar-header{padding-left:4px;background:#f3f4f5}.components-panel__header.edit-post-sidebar-header .components-icon-button{display:none;margin-right:auto}.components-panel__header.edit-post-sidebar-header .components-icon-button~.components-icon-button{margin-right:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header .components-icon-button{display:flex}}.edit-post-text-editor__body{padding-top:40px}@media (min-width:600px){.edit-post-text-editor__body{padding-top:86px}}@media (min-width:782px){.edit-post-text-editor__body,body.is-fullscreen-mode .edit-post-text-editor__body{padding-top:40px}}.edit-post-text-editor{width:100%;max-width:calc(100% - 32px);margin-right:16px;margin-left:16px;padding-top:44px}@media (min-width:600px){.edit-post-text-editor{max-width:610px;margin-right:auto;margin-left:auto}}.edit-post-text-editor .editor-post-title__block textarea{border:1px solid #e2e4e7;margin-bottom:4px;padding:14px}.edit-post-text-editor .editor-post-title__block.is-selected textarea,.edit-post-text-editor .editor-post-title__block textarea:hover{box-shadow:0 0 0 1px #e2e4e7}.edit-post-text-editor .editor-post-permalink{right:0;left:0;margin-top:-6px}@media (min-width:600px){.edit-post-text-editor .editor-post-title,.edit-post-text-editor .editor-post-title__block{padding:0}}.edit-post-text-editor .editor-post-text-editor{padding:14px;min-height:200px;line-height:1.8}.edit-post-text-editor .edit-post-text-editor__toolbar{position:absolute;top:8px;right:0;left:0;height:36px;line-height:36px;padding:0 16px 0 8px;display:flex}.edit-post-text-editor .edit-post-text-editor__toolbar h2{margin:0 0 0 auto;font-size:13px;color:#555d66}.edit-post-text-editor .edit-post-text-editor__toolbar .components-icon-button svg{order:1}.edit-post-visual-editor{position:relative;padding:50px 0}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:50px;width:100%;margin:-4px auto -50px}.edit-post-visual-editor .block-editor-block-list__block{margin-right:auto;margin-left:auto}@media (min-width:600px){.edit-post-visual-editor .block-editor-block-list__block .block-editor-block-list__block-edit{margin-right:-28px;margin-left:-28px}.edit-post-visual-editor .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar{height:0;width:100%;margin-right:0;margin-left:0;text-align:center;float:right}.edit-post-visual-editor .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar .block-editor-block-toolbar{max-width:610px;width:100%;position:relative}}@media (min-width:600px){.editor-post-title{padding-right:46px;padding-left:46px}}.edit-post-visual-editor .editor-post-title__block{margin-right:auto;margin-left:auto;margin-bottom:-20px}.edit-post-visual-editor .editor-post-title__block>div{margin-right:0;margin-left:0}@media (min-width:600px){.edit-post-visual-editor .editor-post-title__block>div{margin-right:-2px;margin-left:-2px}}.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=left]:first-child,.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=right]:first-child{margin-top:34px}.edit-post-visual-editor .block-editor-default-block-appender{margin-right:auto;margin-left:auto;position:relative}.edit-post-visual-editor .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.edit-post-visual-editor .block-editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible=true]+p,.edit-post-visual-editor .block-editor-default-block-appender__content{min-height:28px;line-height:1.8}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option.components-base-control+.edit-post-options-modal__option.components-base-control{margin-bottom:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 10px .6rem 0}@keyframes edit-post__loading-fade-animation{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.block-editor,.components-modal__frame{box-sizing:border-box}.block-editor *,.block-editor :after,.block-editor :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.block-editor select,.components-modal__frame select{font-size:13px;color:#555d66}@media (min-width:600px){.block-editor__container{position:absolute;top:0;left:0;bottom:0;right:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.block-editor-block-list__block .input-control,.block-editor-block-list__block input[type=checkbox],.block-editor-block-list__block input[type=color],.block-editor-block-list__block input[type=date],.block-editor-block-list__block input[type=datetime-local],.block-editor-block-list__block input[type=datetime],.block-editor-block-list__block input[type=email],.block-editor-block-list__block input[type=month],.block-editor-block-list__block input[type=number],.block-editor-block-list__block input[type=password],.block-editor-block-list__block input[type=radio],.block-editor-block-list__block input[type=search],.block-editor-block-list__block input[type=tel],.block-editor-block-list__block input[type=text],.block-editor-block-list__block input[type=time],.block-editor-block-list__block input[type=url],.block-editor-block-list__block input[type=week],.block-editor-block-list__block select,.block-editor-block-list__block textarea,.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .input-control,.block-editor-block-list__block input[type=checkbox],.block-editor-block-list__block input[type=color],.block-editor-block-list__block input[type=date],.block-editor-block-list__block input[type=datetime-local],.block-editor-block-list__block input[type=datetime],.block-editor-block-list__block input[type=email],.block-editor-block-list__block input[type=month],.block-editor-block-list__block input[type=number],.block-editor-block-list__block input[type=password],.block-editor-block-list__block input[type=radio],.block-editor-block-list__block input[type=search],.block-editor-block-list__block input[type=tel],.block-editor-block-list__block input[type=text],.block-editor-block-list__block input[type=time],.block-editor-block-list__block input[type=url],.block-editor-block-list__block input[type=week],.block-editor-block-list__block select,.block-editor-block-list__block textarea,.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-size:13px}}.block-editor-block-list__block .input-control:focus,.block-editor-block-list__block input[type=checkbox]:focus,.block-editor-block-list__block input[type=color]:focus,.block-editor-block-list__block input[type=date]:focus,.block-editor-block-list__block input[type=datetime-local]:focus,.block-editor-block-list__block input[type=datetime]:focus,.block-editor-block-list__block input[type=email]:focus,.block-editor-block-list__block input[type=month]:focus,.block-editor-block-list__block input[type=number]:focus,.block-editor-block-list__block input[type=password]:focus,.block-editor-block-list__block input[type=radio]:focus,.block-editor-block-list__block input[type=search]:focus,.block-editor-block-list__block input[type=tel]:focus,.block-editor-block-list__block input[type=text]:focus,.block-editor-block-list__block input[type=time]:focus,.block-editor-block-list__block input[type=url]:focus,.block-editor-block-list__block input[type=week]:focus,.block-editor-block-list__block select:focus,.block-editor-block-list__block textarea:focus,.components-modal__content .input-control:focus,.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=color]:focus,.components-modal__content input[type=date]:focus,.components-modal__content input[type=datetime-local]:focus,.components-modal__content input[type=datetime]:focus,.components-modal__content input[type=email]:focus,.components-modal__content input[type=month]:focus,.components-modal__content input[type=number]:focus,.components-modal__content input[type=password]:focus,.components-modal__content input[type=radio]:focus,.components-modal__content input[type=search]:focus,.components-modal__content input[type=tel]:focus,.components-modal__content input[type=text]:focus,.components-modal__content input[type=time]:focus,.components-modal__content input[type=url]:focus,.components-modal__content input[type=week]:focus,.components-modal__content select:focus,.components-modal__content textarea:focus,.components-popover .input-control:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=color]:focus,.components-popover input[type=date]:focus,.components-popover input[type=datetime-local]:focus,.components-popover input[type=datetime]:focus,.components-popover input[type=email]:focus,.components-popover input[type=month]:focus,.components-popover input[type=number]:focus,.components-popover input[type=password]:focus,.components-popover input[type=radio]:focus,.components-popover input[type=search]:focus,.components-popover input[type=tel]:focus,.components-popover input[type=text]:focus,.components-popover input[type=time]:focus,.components-popover input[type=url]:focus,.components-popover input[type=week]:focus,.components-popover select:focus,.components-popover textarea:focus,.edit-post-sidebar .input-control:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=color]:focus,.edit-post-sidebar input[type=date]:focus,.edit-post-sidebar input[type=datetime-local]:focus,.edit-post-sidebar input[type=datetime]:focus,.edit-post-sidebar input[type=email]:focus,.edit-post-sidebar input[type=month]:focus,.edit-post-sidebar input[type=number]:focus,.edit-post-sidebar input[type=password]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-sidebar input[type=search]:focus,.edit-post-sidebar input[type=tel]:focus,.edit-post-sidebar input[type=text]:focus,.edit-post-sidebar input[type=time]:focus,.edit-post-sidebar input[type=url]:focus,.edit-post-sidebar input[type=week]:focus,.edit-post-sidebar select:focus,.edit-post-sidebar textarea:focus,.editor-post-permalink .input-control:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=color]:focus,.editor-post-permalink input[type=date]:focus,.editor-post-permalink input[type=datetime-local]:focus,.editor-post-permalink input[type=datetime]:focus,.editor-post-permalink input[type=email]:focus,.editor-post-permalink input[type=month]:focus,.editor-post-permalink input[type=number]:focus,.editor-post-permalink input[type=password]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-permalink input[type=search]:focus,.editor-post-permalink input[type=tel]:focus,.editor-post-permalink input[type=text]:focus,.editor-post-permalink input[type=time]:focus,.editor-post-permalink input[type=url]:focus,.editor-post-permalink input[type=week]:focus,.editor-post-permalink select:focus,.editor-post-permalink textarea:focus,.editor-post-publish-panel .input-control:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=color]:focus,.editor-post-publish-panel input[type=date]:focus,.editor-post-publish-panel input[type=datetime-local]:focus,.editor-post-publish-panel input[type=datetime]:focus,.editor-post-publish-panel input[type=email]:focus,.editor-post-publish-panel input[type=month]:focus,.editor-post-publish-panel input[type=number]:focus,.editor-post-publish-panel input[type=password]:focus,.editor-post-publish-panel input[type=radio]:focus,.editor-post-publish-panel input[type=search]:focus,.editor-post-publish-panel input[type=tel]:focus,.editor-post-publish-panel input[type=text]:focus,.editor-post-publish-panel input[type=time]:focus,.editor-post-publish-panel input[type=url]:focus,.editor-post-publish-panel input[type=week]:focus,.editor-post-publish-panel select:focus,.editor-post-publish-panel textarea:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-list__block input[type=number],.components-modal__content input[type=number],.components-popover input[type=number],.edit-post-sidebar input[type=number],.editor-post-permalink input[type=number],.editor-post-publish-panel input[type=number]{padding-right:4px;padding-left:4px}.block-editor-block-list__block select,.components-modal__content select,.components-popover select,.edit-post-sidebar select,.editor-post-permalink select,.editor-post-publish-panel select{padding:2px}.block-editor-block-list__block select:focus,.components-modal__content select:focus,.components-popover select:focus,.edit-post-sidebar select:focus,.editor-post-permalink select:focus,.editor-post-publish-panel select:focus{border-color:#008dbe;outline:2px solid transparent;outline-offset:0}.block-editor-block-list__block input[type=checkbox],.block-editor-block-list__block input[type=radio],.components-modal__content input[type=checkbox],.components-modal__content input[type=radio],.components-popover input[type=checkbox],.components-popover input[type=radio],.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=radio],.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=radio]{border:2px solid #6c7781;margin-left:12px;transition:none}.block-editor-block-list__block input[type=checkbox]:focus,.block-editor-block-list__block input[type=radio]:focus,.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=radio]:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=radio]:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=radio]:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=radio]:focus{border-color:#6c7781;box-shadow:0 0 0 1px #6c7781}.block-editor-block-list__block input[type=checkbox]:checked,.block-editor-block-list__block input[type=radio]:checked,.components-modal__content input[type=checkbox]:checked,.components-modal__content input[type=radio]:checked,.components-popover input[type=checkbox]:checked,.components-popover input[type=radio]:checked,.edit-post-sidebar input[type=checkbox]:checked,.edit-post-sidebar input[type=radio]:checked,.editor-post-permalink input[type=checkbox]:checked,.editor-post-permalink input[type=radio]:checked,.editor-post-publish-panel input[type=checkbox]:checked,.editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-sunrise .block-editor-block-list__block input[type=radio]:checked,body.admin-color-sunrise .components-modal__content input[type=checkbox]:checked,body.admin-color-sunrise .components-modal__content input[type=radio]:checked,body.admin-color-sunrise .components-popover input[type=checkbox]:checked,body.admin-color-sunrise .components-popover input[type=radio]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=radio]:checked,body.admin-color-sunrise .editor-post-permalink input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-permalink input[type=radio]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=radio]:checked{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-ocean .block-editor-block-list__block input[type=radio]:checked,body.admin-color-ocean .components-modal__content input[type=checkbox]:checked,body.admin-color-ocean .components-modal__content input[type=radio]:checked,body.admin-color-ocean .components-popover input[type=checkbox]:checked,body.admin-color-ocean .components-popover input[type=radio]:checked,body.admin-color-ocean .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ocean .edit-post-sidebar input[type=radio]:checked,body.admin-color-ocean .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ocean .editor-post-permalink input[type=radio]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=radio]:checked{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-midnight .block-editor-block-list__block input[type=radio]:checked,body.admin-color-midnight .components-modal__content input[type=checkbox]:checked,body.admin-color-midnight .components-modal__content input[type=radio]:checked,body.admin-color-midnight .components-popover input[type=checkbox]:checked,body.admin-color-midnight .components-popover input[type=radio]:checked,body.admin-color-midnight .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-midnight .edit-post-sidebar input[type=radio]:checked,body.admin-color-midnight .editor-post-permalink input[type=checkbox]:checked,body.admin-color-midnight .editor-post-permalink input[type=radio]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=radio]:checked{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-ectoplasm .block-editor-block-list__block input[type=radio]:checked,body.admin-color-ectoplasm .components-modal__content input[type=checkbox]:checked,body.admin-color-ectoplasm .components-modal__content input[type=radio]:checked,body.admin-color-ectoplasm .components-popover input[type=checkbox]:checked,body.admin-color-ectoplasm .components-popover input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=radio]:checked{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-coffee .block-editor-block-list__block input[type=radio]:checked,body.admin-color-coffee .components-modal__content input[type=checkbox]:checked,body.admin-color-coffee .components-modal__content input[type=radio]:checked,body.admin-color-coffee .components-popover input[type=checkbox]:checked,body.admin-color-coffee .components-popover input[type=radio]:checked,body.admin-color-coffee .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-coffee .edit-post-sidebar input[type=radio]:checked,body.admin-color-coffee .editor-post-permalink input[type=checkbox]:checked,body.admin-color-coffee .editor-post-permalink input[type=radio]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=radio]:checked{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-blue .block-editor-block-list__block input[type=radio]:checked,body.admin-color-blue .components-modal__content input[type=checkbox]:checked,body.admin-color-blue .components-modal__content input[type=radio]:checked,body.admin-color-blue .components-popover input[type=checkbox]:checked,body.admin-color-blue .components-popover input[type=radio]:checked,body.admin-color-blue .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-blue .edit-post-sidebar input[type=radio]:checked,body.admin-color-blue .editor-post-permalink input[type=checkbox]:checked,body.admin-color-blue .editor-post-permalink input[type=radio]:checked,body.admin-color-blue .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-blue .editor-post-publish-panel input[type=radio]:checked{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-light .block-editor-block-list__block input[type=radio]:checked,body.admin-color-light .components-modal__content input[type=checkbox]:checked,body.admin-color-light .components-modal__content input[type=radio]:checked,body.admin-color-light .components-popover input[type=checkbox]:checked,body.admin-color-light .components-popover input[type=radio]:checked,body.admin-color-light .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-light .edit-post-sidebar input[type=radio]:checked,body.admin-color-light .editor-post-permalink input[type=checkbox]:checked,body.admin-color-light .editor-post-permalink input[type=radio]:checked,body.admin-color-light .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-light .editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}.block-editor-block-list__block input[type=checkbox]:checked:focus,.block-editor-block-list__block input[type=radio]:checked:focus,.components-modal__content input[type=checkbox]:checked:focus,.components-modal__content input[type=radio]:checked:focus,.components-popover input[type=checkbox]:checked:focus,.components-popover input[type=radio]:checked:focus,.edit-post-sidebar input[type=checkbox]:checked:focus,.edit-post-sidebar input[type=radio]:checked:focus,.editor-post-permalink input[type=checkbox]:checked:focus,.editor-post-permalink input[type=radio]:checked:focus,.editor-post-publish-panel input[type=checkbox]:checked:focus,.editor-post-publish-panel input[type=radio]:checked:focus{box-shadow:0 0 0 2px #555d66}.block-editor-block-list__block input[type=checkbox],.components-modal__content input[type=checkbox],.components-popover input[type=checkbox],.edit-post-sidebar input[type=checkbox],.editor-post-permalink input[type=checkbox],.editor-post-publish-panel input[type=checkbox]{border-radius:2px}.block-editor-block-list__block input[type=checkbox]:checked:before,.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox]:checked:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox]:checked:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.block-editor-block-list__block input[type=checkbox]:checked:before,.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox]:checked:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox]:checked:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.block-editor-block-list__block input[type=checkbox][aria-checked=mixed],.components-modal__content input[type=checkbox][aria-checked=mixed],.components-popover input[type=checkbox][aria-checked=mixed],.edit-post-sidebar input[type=checkbox][aria-checked=mixed],.editor-post-permalink input[type=checkbox][aria-checked=mixed],.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-blue .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-blue .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-blue .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-blue .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-light .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-light .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-light .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-light .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:focus,.components-modal__content input[type=checkbox][aria-checked=mixed]:focus,.components-popover input[type=checkbox][aria-checked=mixed]:focus,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:focus,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:focus,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:focus{box-shadow:0 0 0 2px #555d66}.block-editor-block-list__block input[type=radio],.components-modal__content input[type=radio],.components-popover input[type=radio],.edit-post-sidebar input[type=radio],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=radio]{border-radius:50%}.block-editor-block-list__block input[type=radio]:checked:before,.components-modal__content input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.editor-post-permalink input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{margin:3px 3px 0 0;background-color:#fff}.block-editor-block-list__block input::-webkit-input-placeholder,.block-editor-block-list__block textarea::-webkit-input-placeholder,.editor-post-title input::-webkit-input-placeholder,.editor-post-title textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-block-list__block input::-moz-placeholder,.block-editor-block-list__block textarea::-moz-placeholder,.editor-post-title input::-moz-placeholder,.editor-post-title textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-block-list__block input:-ms-input-placeholder,.block-editor-block-list__block textarea:-ms-input-placeholder,.editor-post-title input:-ms-input-placeholder,.editor-post-title textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-block-list__block input::-webkit-input-placeholder,.is-dark-theme .block-editor-block-list__block textarea::-webkit-input-placeholder,.is-dark-theme .editor-post-title input::-webkit-input-placeholder,.is-dark-theme .editor-post-title textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-block-list__block input::-moz-placeholder,.is-dark-theme .block-editor-block-list__block textarea::-moz-placeholder,.is-dark-theme .editor-post-title input::-moz-placeholder,.is-dark-theme .editor-post-title textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-block-list__block input:-ms-input-placeholder,.is-dark-theme .block-editor-block-list__block textarea:-ms-input-placeholder,.is-dark-theme .editor-post-title input:-ms-input-placeholder,.is-dark-theme .editor-post-title textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block{max-width:610px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style.css b/wp-includes/css/dist/edit-post/style.css index 7e93ad32fa..aedfbd3774 100644 --- a/wp-includes/css/dist/edit-post/style.css +++ b/wp-includes/css/dist/edit-post/style.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ @media (min-width: 782px) { body.js.is-fullscreen-mode { margin-top: -46px; @@ -45,10 +48,18 @@ display: none; } body.js.is-fullscreen-mode #wpcontent, body.js.is-fullscreen-mode #wpfooter { - margin-left: 0; } + margin-left: 0; } } + @media (min-width: 782px) and (prefers-reduced-motion: reduce) { + body.js.is-fullscreen-mode { + animation-duration: 1ms !important; } } + +@media (min-width: 782px) { body.js.is-fullscreen-mode .edit-post-header { transform: translateY(-100%); animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards; } } + @media (min-width: 782px) and (prefers-reduced-motion: reduce) { + body.js.is-fullscreen-mode .edit-post-header { + animation-duration: 1ms !important; } } @keyframes edit-post-fullscreen-mode__slide-in-animation { 100% { @@ -192,11 +203,11 @@ body.is-fullscreen-mode .edit-post-header { @media (min-width: 600px) { .edit-post-header-toolbar > .components-button { display: inline-flex; } } - .edit-post-header-toolbar .editor-block-navigation, + .edit-post-header-toolbar .block-editor-block-navigation, .edit-post-header-toolbar .table-of-contents { display: none; } @media (min-width: 600px) { - .edit-post-header-toolbar .editor-block-navigation, + .edit-post-header-toolbar .block-editor-block-navigation, .edit-post-header-toolbar .table-of-contents { display: flex; } } @@ -208,7 +219,7 @@ body.is-fullscreen-mode .edit-post-header { background: #fff; min-height: 37px; border-bottom: 1px solid #e2e4e7; } - .edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar { + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { border-top: none; border-bottom: none; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { @@ -228,9 +239,9 @@ body.is-fullscreen-mode .edit-post-header { min-height: auto; } .is-sidebar-opened .edit-post-header-toolbar__block-toolbar { right: auto; } - .edit-post-header-toolbar__block-toolbar .editor-block-toolbar { + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar { margin: -9px 0; } - .edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar { + .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar { padding: 10px 4px 9px; } } .edit-post-more-menu { @@ -424,7 +435,11 @@ body.is-fullscreen-mode .edit-post-header { width: 280px; border-left: 1px solid #e2e4e7; transform: translateX(100%); - animation: edit-post-post-publish-panel__slide-in-animation 0.1s forwards; } + animation: edit-post-post-publish-panel__slide-in-animation 0.1s forwards; } } + @media (min-width: 782px) and (prefers-reduced-motion: reduce) { + .edit-post-layout .editor-post-publish-panel { + animation-duration: 1ms !important; } } + @media (min-width: 782px) { body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel { top: 0; } .is-focusing-regions .edit-post-layout .editor-post-publish-panel { @@ -489,6 +504,92 @@ body.is-fullscreen-mode .edit-post-header { bottom: 10px; left: auto; } +@media (min-width: 600px) { + .edit-post-manage-blocks-modal { + height: calc(100% - 56px - 56px); } } + +.edit-post-manage-blocks-modal .components-modal__content { + padding-bottom: 0; + display: flex; + flex-direction: column; } + +.edit-post-manage-blocks-modal .components-modal__header { + flex-shrink: 0; + margin-bottom: 0; } + +.edit-post-manage-blocks-modal__content { + display: flex; + flex-direction: column; + flex: 0 1 100%; + min-height: 0; } + +.edit-post-manage-blocks-modal__no-results { + font-style: italic; + padding: 24px 0; + text-align: center; } + +.edit-post-manage-blocks-modal__search { + margin: 16px 0; } + .edit-post-manage-blocks-modal__search .components-base-control__field { + margin-bottom: 0; } + .edit-post-manage-blocks-modal__search .components-base-control__label { + margin-top: -4px; } + .edit-post-manage-blocks-modal__search input[type="search"].components-text-control__input { + padding: 12px; + border-radius: 4px; } + +.edit-post-manage-blocks-modal__category { + margin: 0 0 2rem 0; } + +.edit-post-manage-blocks-modal__category-title { + position: -webkit-sticky; + position: sticky; + top: 0; + padding: 16px 0; + background-color: #fff; } + .edit-post-manage-blocks-modal__category-title .components-base-control__field { + margin-bottom: 0; } + .edit-post-manage-blocks-modal__category-title .components-checkbox-control__label { + font-size: 0.9rem; + font-weight: 600; } + +.edit-post-manage-blocks-modal__show-all { + margin-right: 8px; } + +.edit-post-manage-blocks-modal__checklist { + margin-top: 0; } + +.edit-post-manage-blocks-modal__checklist-item { + margin-bottom: 0; + padding-left: 16px; + border-top: 1px solid #e2e4e7; } + .edit-post-manage-blocks-modal__checklist-item:last-child { + border-bottom: 1px solid #e2e4e7; } + .edit-post-manage-blocks-modal__checklist-item .components-base-control__field { + align-items: center; + display: flex; + margin: 0; } + .components-modal__content .edit-post-manage-blocks-modal__checklist-item input[type="checkbox"] { + margin: 0 8px; } + .edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label { + display: flex; + align-items: center; + justify-content: space-between; + flex-grow: 1; + padding: 0.6rem 0 0.6rem 10px; } + .edit-post-manage-blocks-modal__checklist-item .editor-block-icon { + margin-right: 10px; + fill: #555d66; } + +.edit-post-manage-blocks-modal__results { + height: 100%; + overflow: auto; + margin-left: -16px; + margin-right: -16px; + padding-left: 16px; + padding-right: 16px; + border-top: 1px solid #e2e4e7; } + .edit-post-meta-boxes-area { position: relative; /** @@ -628,7 +729,7 @@ body.is-fullscreen-mode .edit-post-header { margin-bottom: 0; } .edit-post-sidebar p + div.components-toolbar { margin-top: -1em; } - .edit-post-sidebar .editor-skip-to-selected-block:focus { + .edit-post-sidebar .block-editor-skip-to-selected-block:focus { top: auto; right: 10px; bottom: 10px; @@ -957,33 +1058,29 @@ body.is-fullscreen-mode .edit-post-header { .edit-post-visual-editor .components-button { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } -.edit-post-visual-editor .editor-writing-flow__click-redirect { +.edit-post-visual-editor .block-editor-writing-flow__click-redirect { height: 50px; width: 100%; margin: -4px auto -50px; } -.edit-post-visual-editor .editor-block-list__block { +.edit-post-visual-editor .block-editor-block-list__block { margin-left: auto; margin-right: auto; } @media (min-width: 600px) { - .edit-post-visual-editor .editor-block-list__block .editor-block-list__block-edit { + .edit-post-visual-editor .block-editor-block-list__block .block-editor-block-list__block-edit { margin-left: -28px; margin-right: -28px; } - .edit-post-visual-editor .editor-block-list__block[data-align="wide"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar, - .edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar { - width: calc(100% + 30px); + .edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar { height: 0; - text-align: center; - float: left; } - .edit-post-visual-editor .editor-block-list__block[data-align="wide"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar, - .edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar .editor-block-toolbar { - max-width: 610px; - width: 100%; - position: relative; } - .edit-post-visual-editor .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-contextual-toolbar { width: 100%; margin-left: 0; - margin-right: 0; } } + margin-right: 0; + text-align: center; + float: left; } + .edit-post-visual-editor .block-editor-block-list__block[data-align="full"] > .block-editor-block-list__block-edit > .block-editor-block-contextual-toolbar .block-editor-block-toolbar { + max-width: 610px; + width: 100%; + position: relative; } } @media (min-width: 600px) { .editor-post-title { @@ -1002,19 +1099,19 @@ body.is-fullscreen-mode .edit-post-header { margin-left: -2px; margin-right: -2px; } } -.edit-post-visual-editor .editor-block-list__layout > .editor-block-list__block[data-align="left"]:first-child, -.edit-post-visual-editor .editor-block-list__layout > .editor-block-list__block[data-align="right"]:first-child { +.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="left"]:first-child, +.edit-post-visual-editor .block-editor-block-list__layout > .block-editor-block-list__block[data-align="right"]:first-child { margin-top: 34px; } -.edit-post-visual-editor .editor-default-block-appender { +.edit-post-visual-editor .block-editor-default-block-appender { margin-left: auto; margin-right: auto; position: relative; } - .edit-post-visual-editor .editor-default-block-appender[data-root-client-id=""] .editor-default-block-appender__content:hover { + .edit-post-visual-editor .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover { outline: 1px solid transparent; } -.edit-post-visual-editor .editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible="true"] + p, -.edit-post-visual-editor .editor-default-block-appender__content { +.edit-post-visual-editor .block-editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible="true"] + p, +.edit-post-visual-editor .block-editor-default-block-appender__content { min-height: 28px; line-height: 1.8; } @@ -1033,6 +1130,8 @@ body.is-fullscreen-mode .edit-post-header { align-items: center; display: flex; margin: 0; } + .edit-post-options-modal__option.components-base-control + .edit-post-options-modal__option.components-base-control { + margin-bottom: 0; } .edit-post-options-modal__option .components-checkbox-control__label { flex-grow: 1; padding: 0.6rem 0 0.6rem 10px; } @@ -1176,25 +1275,25 @@ body.block-editor-page { .editor-post-publish-panel input[type="number"], .editor-post-publish-panel select, .editor-post-publish-panel textarea, -.editor-block-list__block .input-control, -.editor-block-list__block input[type="text"], -.editor-block-list__block input[type="search"], -.editor-block-list__block input[type="radio"], -.editor-block-list__block input[type="tel"], -.editor-block-list__block input[type="time"], -.editor-block-list__block input[type="url"], -.editor-block-list__block input[type="week"], -.editor-block-list__block input[type="password"], -.editor-block-list__block input[type="checkbox"], -.editor-block-list__block input[type="color"], -.editor-block-list__block input[type="date"], -.editor-block-list__block input[type="datetime"], -.editor-block-list__block input[type="datetime-local"], -.editor-block-list__block input[type="email"], -.editor-block-list__block input[type="month"], -.editor-block-list__block input[type="number"], -.editor-block-list__block select, -.editor-block-list__block textarea, +.block-editor-block-list__block .input-control, +.block-editor-block-list__block input[type="text"], +.block-editor-block-list__block input[type="search"], +.block-editor-block-list__block input[type="radio"], +.block-editor-block-list__block input[type="tel"], +.block-editor-block-list__block input[type="time"], +.block-editor-block-list__block input[type="url"], +.block-editor-block-list__block input[type="week"], +.block-editor-block-list__block input[type="password"], +.block-editor-block-list__block input[type="checkbox"], +.block-editor-block-list__block input[type="color"], +.block-editor-block-list__block input[type="date"], +.block-editor-block-list__block input[type="datetime"], +.block-editor-block-list__block input[type="datetime-local"], +.block-editor-block-list__block input[type="email"], +.block-editor-block-list__block input[type="month"], +.block-editor-block-list__block input[type="number"], +.block-editor-block-list__block select, +.block-editor-block-list__block textarea, .components-popover .input-control, .components-popover input[type="text"], .components-popover input[type="search"], @@ -1299,25 +1398,25 @@ body.block-editor-page { .editor-post-publish-panel input[type="number"], .editor-post-publish-panel select, .editor-post-publish-panel textarea, - .editor-block-list__block .input-control, - .editor-block-list__block input[type="text"], - .editor-block-list__block input[type="search"], - .editor-block-list__block input[type="radio"], - .editor-block-list__block input[type="tel"], - .editor-block-list__block input[type="time"], - .editor-block-list__block input[type="url"], - .editor-block-list__block input[type="week"], - .editor-block-list__block input[type="password"], - .editor-block-list__block input[type="checkbox"], - .editor-block-list__block input[type="color"], - .editor-block-list__block input[type="date"], - .editor-block-list__block input[type="datetime"], - .editor-block-list__block input[type="datetime-local"], - .editor-block-list__block input[type="email"], - .editor-block-list__block input[type="month"], - .editor-block-list__block input[type="number"], - .editor-block-list__block select, - .editor-block-list__block textarea, + .block-editor-block-list__block .input-control, + .block-editor-block-list__block input[type="text"], + .block-editor-block-list__block input[type="search"], + .block-editor-block-list__block input[type="radio"], + .block-editor-block-list__block input[type="tel"], + .block-editor-block-list__block input[type="time"], + .block-editor-block-list__block input[type="url"], + .block-editor-block-list__block input[type="week"], + .block-editor-block-list__block input[type="password"], + .block-editor-block-list__block input[type="checkbox"], + .block-editor-block-list__block input[type="color"], + .block-editor-block-list__block input[type="date"], + .block-editor-block-list__block input[type="datetime"], + .block-editor-block-list__block input[type="datetime-local"], + .block-editor-block-list__block input[type="email"], + .block-editor-block-list__block input[type="month"], + .block-editor-block-list__block input[type="number"], + .block-editor-block-list__block select, + .block-editor-block-list__block textarea, .components-popover .input-control, .components-popover input[type="text"], .components-popover input[type="search"], @@ -1414,25 +1513,25 @@ body.block-editor-page { .editor-post-publish-panel input[type="number"]:focus, .editor-post-publish-panel select:focus, .editor-post-publish-panel textarea:focus, - .editor-block-list__block .input-control:focus, - .editor-block-list__block input[type="text"]:focus, - .editor-block-list__block input[type="search"]:focus, - .editor-block-list__block input[type="radio"]:focus, - .editor-block-list__block input[type="tel"]:focus, - .editor-block-list__block input[type="time"]:focus, - .editor-block-list__block input[type="url"]:focus, - .editor-block-list__block input[type="week"]:focus, - .editor-block-list__block input[type="password"]:focus, - .editor-block-list__block input[type="checkbox"]:focus, - .editor-block-list__block input[type="color"]:focus, - .editor-block-list__block input[type="date"]:focus, - .editor-block-list__block input[type="datetime"]:focus, - .editor-block-list__block input[type="datetime-local"]:focus, - .editor-block-list__block input[type="email"]:focus, - .editor-block-list__block input[type="month"]:focus, - .editor-block-list__block input[type="number"]:focus, - .editor-block-list__block select:focus, - .editor-block-list__block textarea:focus, + .block-editor-block-list__block .input-control:focus, + .block-editor-block-list__block input[type="text"]:focus, + .block-editor-block-list__block input[type="search"]:focus, + .block-editor-block-list__block input[type="radio"]:focus, + .block-editor-block-list__block input[type="tel"]:focus, + .block-editor-block-list__block input[type="time"]:focus, + .block-editor-block-list__block input[type="url"]:focus, + .block-editor-block-list__block input[type="week"]:focus, + .block-editor-block-list__block input[type="password"]:focus, + .block-editor-block-list__block input[type="checkbox"]:focus, + .block-editor-block-list__block input[type="color"]:focus, + .block-editor-block-list__block input[type="date"]:focus, + .block-editor-block-list__block input[type="datetime"]:focus, + .block-editor-block-list__block input[type="datetime-local"]:focus, + .block-editor-block-list__block input[type="email"]:focus, + .block-editor-block-list__block input[type="month"]:focus, + .block-editor-block-list__block input[type="number"]:focus, + .block-editor-block-list__block select:focus, + .block-editor-block-list__block textarea:focus, .components-popover .input-control:focus, .components-popover input[type="text"]:focus, .components-popover input[type="search"]:focus, @@ -1480,7 +1579,7 @@ body.block-editor-page { .editor-post-permalink input[type="number"], .edit-post-sidebar input[type="number"], .editor-post-publish-panel input[type="number"], -.editor-block-list__block input[type="number"], +.block-editor-block-list__block input[type="number"], .components-popover input[type="number"], .components-modal__content input[type="number"] { padding-left: 4px; @@ -1489,14 +1588,14 @@ body.block-editor-page { .editor-post-permalink select, .edit-post-sidebar select, .editor-post-publish-panel select, -.editor-block-list__block select, +.block-editor-block-list__block select, .components-popover select, .components-modal__content select { padding: 2px; } .editor-post-permalink select:focus, .edit-post-sidebar select:focus, .editor-post-publish-panel select:focus, - .editor-block-list__block select:focus, + .block-editor-block-list__block select:focus, .components-popover select:focus, .components-modal__content select:focus { border-color: #008dbe; @@ -1509,8 +1608,8 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"], .editor-post-publish-panel input[type="checkbox"], .editor-post-publish-panel input[type="radio"], -.editor-block-list__block input[type="checkbox"], -.editor-block-list__block input[type="radio"], +.block-editor-block-list__block input[type="checkbox"], +.block-editor-block-list__block input[type="radio"], .components-popover input[type="checkbox"], .components-popover input[type="radio"], .components-modal__content input[type="checkbox"], @@ -1524,8 +1623,8 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"]:focus, .editor-post-publish-panel input[type="checkbox"]:focus, .editor-post-publish-panel input[type="radio"]:focus, - .editor-block-list__block input[type="checkbox"]:focus, - .editor-block-list__block input[type="radio"]:focus, + .block-editor-block-list__block input[type="checkbox"]:focus, + .block-editor-block-list__block input[type="radio"]:focus, .components-popover input[type="checkbox"]:focus, .components-popover input[type="radio"]:focus, .components-modal__content input[type="checkbox"]:focus, @@ -1538,33 +1637,33 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"]:checked, .editor-post-publish-panel input[type="checkbox"]:checked, .editor-post-publish-panel input[type="radio"]:checked, - .editor-block-list__block input[type="checkbox"]:checked, - .editor-block-list__block input[type="radio"]:checked, + .block-editor-block-list__block input[type="checkbox"]:checked, + .block-editor-block-list__block input[type="radio"]:checked, .components-popover input[type="checkbox"]:checked, .components-popover input[type="radio"]:checked, .components-modal__content input[type="checkbox"]:checked, .components-modal__content input[type="radio"]:checked { background: #11a0d2; border-color: #11a0d2; } - body.admin-color-sunrise .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-permalink input[type="radio"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="radio"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-sunrise .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-sunrise .editor-block-list__block input[type="radio"]:checked, body.admin-color-sunrise .components-popover input[type="checkbox"]:checked, body.admin-color-sunrise .components-popover input[type="radio"]:checked, body.admin-color-sunrise .components-modal__content input[type="checkbox"]:checked, body.admin-color-sunrise .components-modal__content input[type="radio"]:checked { + body.admin-color-sunrise .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-permalink input[type="radio"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-sunrise .edit-post-sidebar input[type="radio"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-sunrise .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-sunrise .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-sunrise .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-sunrise .components-popover input[type="checkbox"]:checked, body.admin-color-sunrise .components-popover input[type="radio"]:checked, body.admin-color-sunrise .components-modal__content input[type="checkbox"]:checked, body.admin-color-sunrise .components-modal__content input[type="radio"]:checked { background: #c8b03c; border-color: #c8b03c; } - body.admin-color-ocean .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-permalink input[type="radio"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ocean .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ocean .editor-block-list__block input[type="radio"]:checked, body.admin-color-ocean .components-popover input[type="checkbox"]:checked, body.admin-color-ocean .components-popover input[type="radio"]:checked, body.admin-color-ocean .components-modal__content input[type="checkbox"]:checked, body.admin-color-ocean .components-modal__content input[type="radio"]:checked { + body.admin-color-ocean .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-permalink input[type="radio"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ocean .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ocean .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ocean .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ocean .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-ocean .components-popover input[type="checkbox"]:checked, body.admin-color-ocean .components-popover input[type="radio"]:checked, body.admin-color-ocean .components-modal__content input[type="checkbox"]:checked, body.admin-color-ocean .components-modal__content input[type="radio"]:checked { background: #a3b9a2; border-color: #a3b9a2; } - body.admin-color-midnight .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-permalink input[type="radio"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="radio"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-midnight .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-midnight .editor-block-list__block input[type="radio"]:checked, body.admin-color-midnight .components-popover input[type="checkbox"]:checked, body.admin-color-midnight .components-popover input[type="radio"]:checked, body.admin-color-midnight .components-modal__content input[type="checkbox"]:checked, body.admin-color-midnight .components-modal__content input[type="radio"]:checked { + body.admin-color-midnight .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-permalink input[type="radio"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-midnight .edit-post-sidebar input[type="radio"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-midnight .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-midnight .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-midnight .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-midnight .components-popover input[type="checkbox"]:checked, body.admin-color-midnight .components-popover input[type="radio"]:checked, body.admin-color-midnight .components-modal__content input[type="checkbox"]:checked, body.admin-color-midnight .components-modal__content input[type="radio"]:checked { background: #77a6b9; border-color: #77a6b9; } - body.admin-color-ectoplasm .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-permalink input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ectoplasm .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-block-list__block input[type="radio"]:checked, body.admin-color-ectoplasm .components-popover input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-popover input[type="radio"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="radio"]:checked { + body.admin-color-ectoplasm .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-permalink input[type="radio"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-ectoplasm .edit-post-sidebar input[type="radio"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-ectoplasm .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-ectoplasm .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-ectoplasm .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-ectoplasm .components-popover input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-popover input[type="radio"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="checkbox"]:checked, body.admin-color-ectoplasm .components-modal__content input[type="radio"]:checked { background: #a7b656; border-color: #a7b656; } - body.admin-color-coffee .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-permalink input[type="radio"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="radio"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-coffee .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-coffee .editor-block-list__block input[type="radio"]:checked, body.admin-color-coffee .components-popover input[type="checkbox"]:checked, body.admin-color-coffee .components-popover input[type="radio"]:checked, body.admin-color-coffee .components-modal__content input[type="checkbox"]:checked, body.admin-color-coffee .components-modal__content input[type="radio"]:checked { + body.admin-color-coffee .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-permalink input[type="radio"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-coffee .edit-post-sidebar input[type="radio"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-coffee .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-coffee .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-coffee .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-coffee .components-popover input[type="checkbox"]:checked, body.admin-color-coffee .components-popover input[type="radio"]:checked, body.admin-color-coffee .components-modal__content input[type="checkbox"]:checked, body.admin-color-coffee .components-modal__content input[type="radio"]:checked { background: #c2a68c; border-color: #c2a68c; } - body.admin-color-blue .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-blue .editor-post-permalink input[type="radio"]:checked, body.admin-color-blue .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-blue .edit-post-sidebar input[type="radio"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-blue .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-blue .editor-block-list__block input[type="radio"]:checked, body.admin-color-blue .components-popover input[type="checkbox"]:checked, body.admin-color-blue .components-popover input[type="radio"]:checked, body.admin-color-blue .components-modal__content input[type="checkbox"]:checked, body.admin-color-blue .components-modal__content input[type="radio"]:checked { + body.admin-color-blue .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-blue .editor-post-permalink input[type="radio"]:checked, body.admin-color-blue .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-blue .edit-post-sidebar input[type="radio"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-blue .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-blue .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-blue .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-blue .components-popover input[type="checkbox"]:checked, body.admin-color-blue .components-popover input[type="radio"]:checked, body.admin-color-blue .components-modal__content input[type="checkbox"]:checked, body.admin-color-blue .components-modal__content input[type="radio"]:checked { background: #82b4cb; border-color: #82b4cb; } - body.admin-color-light .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-light .editor-post-permalink input[type="radio"]:checked, body.admin-color-light .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-light .edit-post-sidebar input[type="radio"]:checked, body.admin-color-light .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-light .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-light .editor-block-list__block input[type="checkbox"]:checked, body.admin-color-light .editor-block-list__block input[type="radio"]:checked, body.admin-color-light .components-popover input[type="checkbox"]:checked, body.admin-color-light .components-popover input[type="radio"]:checked, body.admin-color-light .components-modal__content input[type="checkbox"]:checked, body.admin-color-light .components-modal__content input[type="radio"]:checked { + body.admin-color-light .editor-post-permalink input[type="checkbox"]:checked, body.admin-color-light .editor-post-permalink input[type="radio"]:checked, body.admin-color-light .edit-post-sidebar input[type="checkbox"]:checked, body.admin-color-light .edit-post-sidebar input[type="radio"]:checked, body.admin-color-light .editor-post-publish-panel input[type="checkbox"]:checked, body.admin-color-light .editor-post-publish-panel input[type="radio"]:checked, body.admin-color-light .block-editor-block-list__block input[type="checkbox"]:checked, body.admin-color-light .block-editor-block-list__block input[type="radio"]:checked, body.admin-color-light .components-popover input[type="checkbox"]:checked, body.admin-color-light .components-popover input[type="radio"]:checked, body.admin-color-light .components-modal__content input[type="checkbox"]:checked, body.admin-color-light .components-modal__content input[type="radio"]:checked { background: #11a0d2; border-color: #11a0d2; } .editor-post-permalink input[type="checkbox"]:checked:focus, @@ -1573,8 +1672,8 @@ body.block-editor-page { .edit-post-sidebar input[type="radio"]:checked:focus, .editor-post-publish-panel input[type="checkbox"]:checked:focus, .editor-post-publish-panel input[type="radio"]:checked:focus, - .editor-block-list__block input[type="checkbox"]:checked:focus, - .editor-block-list__block input[type="radio"]:checked:focus, + .block-editor-block-list__block input[type="checkbox"]:checked:focus, + .block-editor-block-list__block input[type="radio"]:checked:focus, .components-popover input[type="checkbox"]:checked:focus, .components-popover input[type="radio"]:checked:focus, .components-modal__content input[type="checkbox"]:checked:focus, @@ -1584,30 +1683,110 @@ body.block-editor-page { .editor-post-permalink input[type="checkbox"], .edit-post-sidebar input[type="checkbox"], .editor-post-publish-panel input[type="checkbox"], -.editor-block-list__block input[type="checkbox"], +.block-editor-block-list__block input[type="checkbox"], .components-popover input[type="checkbox"], .components-modal__content input[type="checkbox"] { border-radius: 2px; } - .editor-post-permalink input[type="checkbox"]:checked::before, + .editor-post-permalink input[type="checkbox"]:checked::before, .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, .edit-post-sidebar input[type="checkbox"]:checked::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, .editor-post-publish-panel input[type="checkbox"]:checked::before, - .editor-block-list__block input[type="checkbox"]:checked::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"]:checked::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, .components-popover input[type="checkbox"]:checked::before, - .components-modal__content input[type="checkbox"]:checked::before { - margin: -4px 0 0 -5px; + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"]:checked::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + margin: -3px -5px; color: #fff; } + @media (min-width: 782px) { + .editor-post-permalink input[type="checkbox"]:checked::before, .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, + .edit-post-sidebar input[type="checkbox"]:checked::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, + .editor-post-publish-panel input[type="checkbox"]:checked::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"]:checked::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, + .components-popover input[type="checkbox"]:checked::before, + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"]:checked::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + margin: -4px 0 0 -5px; } } + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], + .components-popover input[type="checkbox"][aria-checked="mixed"], + .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #11a0d2; + border-color: #11a0d2; } + body.admin-color-sunrise .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-sunrise .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #c8b03c; + border-color: #c8b03c; } + body.admin-color-ocean .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ocean .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #a3b9a2; + border-color: #a3b9a2; } + body.admin-color-midnight .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-midnight .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #77a6b9; + border-color: #77a6b9; } + body.admin-color-ectoplasm .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-ectoplasm .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #a7b656; + border-color: #a7b656; } + body.admin-color-coffee .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-coffee .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #c2a68c; + border-color: #c2a68c; } + body.admin-color-blue .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-blue .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #82b4cb; + border-color: #82b4cb; } + body.admin-color-light .editor-post-permalink input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-popover input[type="checkbox"][aria-checked="mixed"], body.admin-color-light .components-modal__content input[type="checkbox"][aria-checked="mixed"] { + background: #11a0d2; + border-color: #11a0d2; } + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + content: "\f460"; + float: left; + display: inline-block; + vertical-align: middle; + width: 16px; + /* stylelint-disable */ + font: normal 30px/1 dashicons; + /* stylelint-enable */ + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + @media (min-width: 782px) { + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]::before, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]::before, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]::before, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]::before, + .components-popover input[type="checkbox"][aria-checked="mixed"]::before, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]::before { + float: none; + font-size: 21px; } } + .editor-post-permalink input[type="checkbox"][aria-checked="mixed"]:focus, + .edit-post-sidebar input[type="checkbox"][aria-checked="mixed"]:focus, + .editor-post-publish-panel input[type="checkbox"][aria-checked="mixed"]:focus, + .block-editor-block-list__block input[type="checkbox"][aria-checked="mixed"]:focus, + .components-popover input[type="checkbox"][aria-checked="mixed"]:focus, + .components-modal__content input[type="checkbox"][aria-checked="mixed"]:focus { + box-shadow: 0 0 0 2px #555d66; } .editor-post-permalink input[type="radio"], .edit-post-sidebar input[type="radio"], .editor-post-publish-panel input[type="radio"], -.editor-block-list__block input[type="radio"], +.block-editor-block-list__block input[type="radio"], .components-popover input[type="radio"], .components-modal__content input[type="radio"] { border-radius: 50%; } .editor-post-permalink input[type="radio"]:checked::before, .edit-post-sidebar input[type="radio"]:checked::before, .editor-post-publish-panel input[type="radio"]:checked::before, - .editor-block-list__block input[type="radio"]:checked::before, + .block-editor-block-list__block input[type="radio"]:checked::before, .components-popover input[type="radio"]:checked::before, .components-modal__content input[type="radio"]:checked::before { margin: 3px 0 0 3px; @@ -1615,40 +1794,40 @@ body.block-editor-page { .editor-post-title input::-webkit-input-placeholder, .editor-post-title textarea::-webkit-input-placeholder, -.editor-block-list__block input::-webkit-input-placeholder, -.editor-block-list__block textarea::-webkit-input-placeholder { +.block-editor-block-list__block input::-webkit-input-placeholder, +.block-editor-block-list__block textarea::-webkit-input-placeholder { color: rgba(14, 28, 46, 0.62); } .editor-post-title input::-moz-placeholder, .editor-post-title textarea::-moz-placeholder, -.editor-block-list__block input::-moz-placeholder, -.editor-block-list__block textarea::-moz-placeholder { +.block-editor-block-list__block input::-moz-placeholder, +.block-editor-block-list__block textarea::-moz-placeholder { opacity: 1; color: rgba(14, 28, 46, 0.62); } .editor-post-title input:-ms-input-placeholder, .editor-post-title textarea:-ms-input-placeholder, -.editor-block-list__block input:-ms-input-placeholder, -.editor-block-list__block textarea:-ms-input-placeholder { +.block-editor-block-list__block input:-ms-input-placeholder, +.block-editor-block-list__block textarea:-ms-input-placeholder { color: rgba(14, 28, 46, 0.62); } .is-dark-theme .editor-post-title input::-webkit-input-placeholder, .is-dark-theme .editor-post-title textarea::-webkit-input-placeholder, .is-dark-theme -.editor-block-list__block input::-webkit-input-placeholder, .is-dark-theme -.editor-block-list__block textarea::-webkit-input-placeholder { +.block-editor-block-list__block input::-webkit-input-placeholder, .is-dark-theme +.block-editor-block-list__block textarea::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.65); } .is-dark-theme .editor-post-title input::-moz-placeholder, .is-dark-theme .editor-post-title textarea::-moz-placeholder, .is-dark-theme -.editor-block-list__block input::-moz-placeholder, .is-dark-theme -.editor-block-list__block textarea::-moz-placeholder { +.block-editor-block-list__block input::-moz-placeholder, .is-dark-theme +.block-editor-block-list__block textarea::-moz-placeholder { opacity: 1; color: rgba(255, 255, 255, 0.65); } .is-dark-theme .editor-post-title input:-ms-input-placeholder, .is-dark-theme .editor-post-title textarea:-ms-input-placeholder, .is-dark-theme -.editor-block-list__block input:-ms-input-placeholder, .is-dark-theme -.editor-block-list__block textarea:-ms-input-placeholder { +.block-editor-block-list__block input:-ms-input-placeholder, .is-dark-theme +.block-editor-block-list__block textarea:-ms-input-placeholder { color: rgba(255, 255, 255, 0.65); } .wp-block { diff --git a/wp-includes/css/dist/edit-post/style.min.css b/wp-includes/css/dist/edit-post/style.min.css index aad6991dae..8c1b734cd6 100644 --- a/wp-includes/css/dist/edit-post/style.min.css +++ b/wp-includes/css/dist/edit-post/style.min.css @@ -1 +1 @@ -@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-46px;height:calc(100% + 46px);animation:edit-post__fade-in-animation .3s ease-out 0s;animation-fill-mode:forwards}}@media (min-width:782px) and (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}body.js.is-fullscreen-mode .edit-post-header{transform:translateY(-100%);animation:edit-post-fullscreen-mode__slide-in-animation .1s forwards}}@keyframes edit-post-fullscreen-mode__slide-in-animation{to{transform:translateY(0)}}.edit-post-header{height:56px;padding:4px 2px;border-bottom:1px solid #e2e4e7;background:#fff;display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;z-index:30;right:0;top:0;position:-webkit-sticky;position:sticky}@media (min-width:600px){.edit-post-header{position:fixed;padding:8px;top:46px}}@media (min-width:782px){.edit-post-header{top:32px}body.is-fullscreen-mode .edit-post-header{top:0}}.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:none}@media (min-width:600px){.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:inline-flex}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header{left:0}@media (min-width:782px){.edit-post-header{left:160px}}@media (min-width:782px){.auto-fold .edit-post-header{left:36px}}@media (min-width:960px){.auto-fold .edit-post-header{left:160px}}.folded .edit-post-header{left:0}@media (min-width:782px){.folded .edit-post-header{left:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .edit-post-header{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-header{margin-left:-18px}}body.is-fullscreen-mode .edit-post-header{left:0!important}.edit-post-header__settings{display:inline-flex;align-items:center}.edit-post-header .components-button.is-toggled{color:#fff}.edit-post-header .components-button.is-toggled:before{content:"";border-radius:4px;position:absolute;z-index:-1;background:#555d66;top:1px;right:1px;bottom:1px;left:1px}.edit-post-header .components-button.is-toggled:focus,.edit-post-header .components-button.is-toggled:hover{box-shadow:0 0 0 1px #555d66,inset 0 0 0 1px #fff;color:#fff;background:#555d66}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle,.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{margin:2px;height:33px;line-height:32px;font-size:13px}.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 12px}}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 5px 2px}@media (min-width:600px){.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 12px 2px}}@media (min-width:782px){.edit-post-header .components-button.editor-post-preview{margin:0 3px 0 12px}.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{margin:0 12px 0 3px}}.edit-post-fullscreen-mode-close__toolbar{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close__toolbar{display:block;border-top:0;border-bottom:0;border-left:0;margin:-9px 10px -9px -10px;padding:9px 10px}}.edit-post-header-toolbar{display:inline-flex;align-items:center}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar .editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header-toolbar .editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:flex}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:56px;left:0;right:0;background:#fff;min-height:37px;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1080px){.edit-post-header-toolbar__block-toolbar{padding-left:8px;position:static;left:auto;right:auto;background:none;border-bottom:none;min-height:auto}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .editor-block-toolbar{margin:-9px 0}.edit-post-header-toolbar__block-toolbar .editor-block-toolbar .components-toolbar{padding:10px 4px 9px}}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:4px}.edit-post-more-menu .components-icon-button{padding:8px 4px}}.edit-post-more-menu .components-button svg{transform:rotate(90deg)}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-menu-group:not(:last-child),.edit-post-more-menu__content .components-popover__content>div:not(:last-child) .components-menu-group{border-bottom:1px solid #e2e4e7}.edit-post-more-menu__content .components-popover__content .components-menu-item__button{padding-left:2rem}.edit-post-more-menu__content .components-popover__content .components-menu-item__button.has-icon{padding-left:.5rem}.edit-post-pinned-plugins{display:none}@media (min-width:600px){.edit-post-pinned-plugins{display:flex}}.edit-post-pinned-plugins .components-icon-button{margin-left:4px}.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg *{stroke:#555d66;fill:#555d66;stroke-width:0}.edit-post-pinned-plugins .components-icon-button.is-toggled svg,.edit-post-pinned-plugins .components-icon-button.is-toggled svg *{stroke:#fff!important;fill:#fff!important;stroke-width:0}.edit-post-pinned-plugins .components-icon-button:hover svg,.edit-post-pinned-plugins .components-icon-button:hover svg *{stroke:#191e23!important;fill:#191e23!important;stroke-width:0}.edit-post-keyboard-shortcut-help__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help__shortcut{display:flex;align-items:center;padding:.6rem 0;border-top:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut:last-child{border-bottom:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut-term{order:1;font-weight:600;margin:0 0 0 1rem}.edit-post-keyboard-shortcut-help__shortcut-description{flex:1;order:0;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help__shortcut-key-combination{background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout,.edit-post-layout__content{height:100%}.edit-post-layout{position:relative}.edit-post-layout .components-notice-list{position:-webkit-sticky;position:sticky;top:56px;right:0;color:#191e23}@media (min-width:600px){.edit-post-layout .components-notice-list{top:0}}.edit-post-layout .components-notice-list.is-pinned{position:relative;left:0;top:0}.edit-post-layout .components-notice{margin:0 0 5px;padding:6px 12px;min-height:50px}.edit-post-layout .components-notice .components-notice__dismiss{margin:10px 5px}@media (min-width:600px){.edit-post-layout{padding-top:56px}}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;margin-top:10px;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout__content{display:flex;flex-direction:column;min-height:100%;position:relative;padding-bottom:50vh;-webkit-overflow-scrolling:touch}@media (min-width:782px){.edit-post-layout__content{position:fixed;bottom:0;left:0;right:0;top:88px;min-height:calc(100% - 88px);height:auto;margin-left:160px}body.auto-fold .edit-post-layout__content{margin-left:36px}}@media (min-width:782px) and (min-width:960px){body.auto-fold .edit-post-layout__content{margin-left:160px}}@media (min-width:782px){body.folded .edit-post-layout__content{margin-left:36px}body.is-fullscreen-mode .edit-post-layout__content{margin-left:0!important;top:56px}}@media (min-width:782px){.has-fixed-toolbar .edit-post-layout__content{top:124px}}@media (min-width:1080px){.has-fixed-toolbar .edit-post-layout__content{top:88px}}@media (min-width:600px){.edit-post-layout__content{padding-bottom:0;overflow-y:auto;overscroll-behavior-y:none}}.edit-post-layout__content .edit-post-visual-editor{flex:1 1 auto}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-layout__content .edit-post-visual-editor{flex-basis:100%}}.edit-post-layout__content .edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{top:32px;left:auto;width:280px;border-left:1px solid #e2e4e7;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button .components-button.is-large{height:33px;line-height:32px}.edit-post-layout .editor-post-publish-panel__header-publish-button .editor-post-publish-panel__spacer{display:inline-flex;flex:0 1 52px}.edit-post-toggle-publish-panel{position:fixed;top:-9999em;bottom:auto;left:auto;right:0;z-index:100000;padding:10px 10px 10px 0;width:280px;background-color:#fff}.edit-post-toggle-publish-panel:focus{top:auto;bottom:0}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{width:auto;height:auto;display:block;font-size:14px;font-weight:600;margin:0 0 0 auto;padding:15px 23px 14px;line-height:normal;text-decoration:none;outline:none;background:#f1f1f1;color:#11a0d2}body.admin-color-sunrise .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c8b03c}body.admin-color-ocean .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#a89d8a}body.admin-color-midnight .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#77a6b9}body.admin-color-ectoplasm .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c77430}body.admin-color-coffee .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#9fa47b}body.admin-color-blue .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#d9ab59}body.admin-color-light .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c75726}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button:focus{position:fixed;top:auto;right:10px;bottom:10px;left:auto}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-sidebar{position:fixed;z-index:100000;top:0;right:0;bottom:0;width:280px;border-left:1px solid #e2e4e7;background:#fff;color:#555d66;height:100vh;overflow:hidden}@media (min-width:600px){.edit-post-sidebar{top:102px;z-index:90;height:auto;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.edit-post-sidebar{top:88px}body.is-fullscreen-mode .edit-post-sidebar{top:56px}}.edit-post-sidebar>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 96px);margin-top:-1px;margin-bottom:-1px;position:relative;z-index:-2}@media (min-width:600px){.edit-post-sidebar>.components-panel{overflow:inherit;height:auto;max-height:none}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-sidebar>.components-panel{max-height:calc(100vh - 50px)}}.edit-post-sidebar>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:50px}@media (min-width:600px){.edit-post-sidebar>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.edit-post-sidebar p{margin-top:0}.edit-post-sidebar h2,.edit-post-sidebar h3{font-size:13px;color:#555d66;margin-bottom:1.5em}.edit-post-sidebar hr{border-top:none;border-bottom:1px solid #e2e4e7;margin:1.5em 0}.edit-post-sidebar div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.edit-post-sidebar div.components-toolbar:last-child{margin-bottom:0}.edit-post-sidebar p+div.components-toolbar{margin-top:-1em}.edit-post-sidebar .editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-layout__content{margin-right:280px}}.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:100%}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:280px}}.components-panel__header.edit-post-sidebar__header{background:#fff;padding-right:8px}.components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar__header{display:none}}.components-panel__header.edit-post-sidebar__panel-tabs{margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:none;margin-left:auto}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:flex}}.edit-post-sidebar__panel-tab{height:50px}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0}.editor-post-last-revision__title{padding:13px 16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{margin:0}.edit-post-post-link__link{word-wrap:break-word}.edit-post-post-schedule{width:100%;position:relative}.edit-post-post-schedule__label{display:none}.components-button.edit-post-post-schedule__toggle{text-align:right}.edit-post-post-schedule__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-schedule__dialog .components-popover__content{width:270px}}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}.edit-post-post-visibility__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:4px;border-top:0;position:-webkit-sticky;position:sticky;z-index:-1;top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.edit-post-sidebar__panel-tab{background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px 15px;margin-left:0;font-weight:400;color:#191e23;outline-offset:-1px;transition:box-shadow .1s linear}.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:3px solid transparent}.edit-post-sidebar__panel-tab:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66}.edit-post-settings-sidebar__panel-block .components-panel__body{border:none;border-top:1px solid #e2e4e7;margin:0 -16px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control{margin-bottom:24px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control:last-child{margin-bottom:8px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-panel__body-toggle{color:#191e23}.edit-post-settings-sidebar__panel-block .components-panel__body:first-child{margin-top:16px}.edit-post-settings-sidebar__panel-block .components-panel__body:last-child{margin-bottom:-16px}.components-panel__header.edit-post-sidebar-header__small{background:#fff;padding-right:4px}.components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header__small{display:none}}.components-panel__header.edit-post-sidebar-header{padding-right:4px;background:#f3f4f5}.components-panel__header.edit-post-sidebar-header .components-icon-button{display:none;margin-left:auto}.components-panel__header.edit-post-sidebar-header .components-icon-button~.components-icon-button{margin-left:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header .components-icon-button{display:flex}}.edit-post-text-editor__body{padding-top:40px}@media (min-width:600px){.edit-post-text-editor__body{padding-top:86px}}@media (min-width:782px){.edit-post-text-editor__body,body.is-fullscreen-mode .edit-post-text-editor__body{padding-top:40px}}.edit-post-text-editor{width:100%;max-width:calc(100% - 32px);margin-left:16px;margin-right:16px;padding-top:44px}@media (min-width:600px){.edit-post-text-editor{max-width:610px;margin-left:auto;margin-right:auto}}.edit-post-text-editor .editor-post-title__block textarea{border:1px solid #e2e4e7;margin-bottom:4px;padding:14px}.edit-post-text-editor .editor-post-title__block.is-selected textarea,.edit-post-text-editor .editor-post-title__block textarea:hover{box-shadow:0 0 0 1px #e2e4e7}.edit-post-text-editor .editor-post-permalink{left:0;right:0;margin-top:-6px}@media (min-width:600px){.edit-post-text-editor .editor-post-title,.edit-post-text-editor .editor-post-title__block{padding:0}}.edit-post-text-editor .editor-post-text-editor{padding:14px;min-height:200px;line-height:1.8}.edit-post-text-editor .edit-post-text-editor__toolbar{position:absolute;top:8px;left:0;right:0;height:36px;line-height:36px;padding:0 8px 0 16px;display:flex}.edit-post-text-editor .edit-post-text-editor__toolbar h2{margin:0 auto 0 0;font-size:13px;color:#555d66}.edit-post-text-editor .edit-post-text-editor__toolbar .components-icon-button svg{order:1}.edit-post-visual-editor{position:relative;padding:50px 0}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.edit-post-visual-editor .editor-writing-flow__click-redirect{height:50px;width:100%;margin:-4px auto -50px}.edit-post-visual-editor .editor-block-list__block{margin-left:auto;margin-right:auto}@media (min-width:600px){.edit-post-visual-editor .editor-block-list__block .editor-block-list__block-edit{margin-left:-28px;margin-right:-28px}.edit-post-visual-editor .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-contextual-toolbar,.edit-post-visual-editor .editor-block-list__block[data-align=wide]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{width:calc(100% + 30px);height:0;text-align:center;float:left}.edit-post-visual-editor .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-contextual-toolbar .editor-block-toolbar,.edit-post-visual-editor .editor-block-list__block[data-align=wide]>.editor-block-list__block-edit>.editor-block-contextual-toolbar .editor-block-toolbar{max-width:610px;width:100%;position:relative}.edit-post-visual-editor .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{width:100%;margin-left:0;margin-right:0}}@media (min-width:600px){.editor-post-title{padding-left:46px;padding-right:46px}}.edit-post-visual-editor .editor-post-title__block{margin-left:auto;margin-right:auto;margin-bottom:-20px}.edit-post-visual-editor .editor-post-title__block>div{margin-left:0;margin-right:0}@media (min-width:600px){.edit-post-visual-editor .editor-post-title__block>div{margin-left:-2px;margin-right:-2px}}.edit-post-visual-editor .editor-block-list__layout>.editor-block-list__block[data-align=left]:first-child,.edit-post-visual-editor .editor-block-list__layout>.editor-block-list__block[data-align=right]:first-child{margin-top:34px}.edit-post-visual-editor .editor-default-block-appender{margin-left:auto;margin-right:auto;position:relative}.edit-post-visual-editor .editor-default-block-appender[data-root-client-id=""] .editor-default-block-appender__content:hover{outline:1px solid transparent}.edit-post-visual-editor .editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible=true]+p,.edit-post-visual-editor .editor-default-block-appender__content{min-height:28px;line-height:1.8}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}@keyframes edit-post__loading-fade-animation{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.block-editor,.components-modal__frame{box-sizing:border-box}.block-editor *,.block-editor :after,.block-editor :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.block-editor select,.components-modal__frame select{font-size:13px;color:#555d66}@media (min-width:600px){.block-editor__container{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-block-list__block .input-control,.editor-block-list__block input[type=checkbox],.editor-block-list__block input[type=color],.editor-block-list__block input[type=date],.editor-block-list__block input[type=datetime-local],.editor-block-list__block input[type=datetime],.editor-block-list__block input[type=email],.editor-block-list__block input[type=month],.editor-block-list__block input[type=number],.editor-block-list__block input[type=password],.editor-block-list__block input[type=radio],.editor-block-list__block input[type=search],.editor-block-list__block input[type=tel],.editor-block-list__block input[type=text],.editor-block-list__block input[type=time],.editor-block-list__block input[type=url],.editor-block-list__block input[type=week],.editor-block-list__block select,.editor-block-list__block textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0;font-size:16px}@media (min-width:600px){.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-block-list__block .input-control,.editor-block-list__block input[type=checkbox],.editor-block-list__block input[type=color],.editor-block-list__block input[type=date],.editor-block-list__block input[type=datetime-local],.editor-block-list__block input[type=datetime],.editor-block-list__block input[type=email],.editor-block-list__block input[type=month],.editor-block-list__block input[type=number],.editor-block-list__block input[type=password],.editor-block-list__block input[type=radio],.editor-block-list__block input[type=search],.editor-block-list__block input[type=tel],.editor-block-list__block input[type=text],.editor-block-list__block input[type=time],.editor-block-list__block input[type=url],.editor-block-list__block input[type=week],.editor-block-list__block select,.editor-block-list__block textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-size:13px}}.components-modal__content .input-control:focus,.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=color]:focus,.components-modal__content input[type=date]:focus,.components-modal__content input[type=datetime-local]:focus,.components-modal__content input[type=datetime]:focus,.components-modal__content input[type=email]:focus,.components-modal__content input[type=month]:focus,.components-modal__content input[type=number]:focus,.components-modal__content input[type=password]:focus,.components-modal__content input[type=radio]:focus,.components-modal__content input[type=search]:focus,.components-modal__content input[type=tel]:focus,.components-modal__content input[type=text]:focus,.components-modal__content input[type=time]:focus,.components-modal__content input[type=url]:focus,.components-modal__content input[type=week]:focus,.components-modal__content select:focus,.components-modal__content textarea:focus,.components-popover .input-control:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=color]:focus,.components-popover input[type=date]:focus,.components-popover input[type=datetime-local]:focus,.components-popover input[type=datetime]:focus,.components-popover input[type=email]:focus,.components-popover input[type=month]:focus,.components-popover input[type=number]:focus,.components-popover input[type=password]:focus,.components-popover input[type=radio]:focus,.components-popover input[type=search]:focus,.components-popover input[type=tel]:focus,.components-popover input[type=text]:focus,.components-popover input[type=time]:focus,.components-popover input[type=url]:focus,.components-popover input[type=week]:focus,.components-popover select:focus,.components-popover textarea:focus,.edit-post-sidebar .input-control:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=color]:focus,.edit-post-sidebar input[type=date]:focus,.edit-post-sidebar input[type=datetime-local]:focus,.edit-post-sidebar input[type=datetime]:focus,.edit-post-sidebar input[type=email]:focus,.edit-post-sidebar input[type=month]:focus,.edit-post-sidebar input[type=number]:focus,.edit-post-sidebar input[type=password]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-sidebar input[type=search]:focus,.edit-post-sidebar input[type=tel]:focus,.edit-post-sidebar input[type=text]:focus,.edit-post-sidebar input[type=time]:focus,.edit-post-sidebar input[type=url]:focus,.edit-post-sidebar input[type=week]:focus,.edit-post-sidebar select:focus,.edit-post-sidebar textarea:focus,.editor-block-list__block .input-control:focus,.editor-block-list__block input[type=checkbox]:focus,.editor-block-list__block input[type=color]:focus,.editor-block-list__block input[type=date]:focus,.editor-block-list__block input[type=datetime-local]:focus,.editor-block-list__block input[type=datetime]:focus,.editor-block-list__block input[type=email]:focus,.editor-block-list__block input[type=month]:focus,.editor-block-list__block input[type=number]:focus,.editor-block-list__block input[type=password]:focus,.editor-block-list__block input[type=radio]:focus,.editor-block-list__block input[type=search]:focus,.editor-block-list__block input[type=tel]:focus,.editor-block-list__block input[type=text]:focus,.editor-block-list__block input[type=time]:focus,.editor-block-list__block input[type=url]:focus,.editor-block-list__block input[type=week]:focus,.editor-block-list__block select:focus,.editor-block-list__block textarea:focus,.editor-post-permalink .input-control:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=color]:focus,.editor-post-permalink input[type=date]:focus,.editor-post-permalink input[type=datetime-local]:focus,.editor-post-permalink input[type=datetime]:focus,.editor-post-permalink input[type=email]:focus,.editor-post-permalink input[type=month]:focus,.editor-post-permalink input[type=number]:focus,.editor-post-permalink input[type=password]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-permalink input[type=search]:focus,.editor-post-permalink input[type=tel]:focus,.editor-post-permalink input[type=text]:focus,.editor-post-permalink input[type=time]:focus,.editor-post-permalink input[type=url]:focus,.editor-post-permalink input[type=week]:focus,.editor-post-permalink select:focus,.editor-post-permalink textarea:focus,.editor-post-publish-panel .input-control:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=color]:focus,.editor-post-publish-panel input[type=date]:focus,.editor-post-publish-panel input[type=datetime-local]:focus,.editor-post-publish-panel input[type=datetime]:focus,.editor-post-publish-panel input[type=email]:focus,.editor-post-publish-panel input[type=month]:focus,.editor-post-publish-panel input[type=number]:focus,.editor-post-publish-panel input[type=password]:focus,.editor-post-publish-panel input[type=radio]:focus,.editor-post-publish-panel input[type=search]:focus,.editor-post-publish-panel input[type=tel]:focus,.editor-post-publish-panel input[type=text]:focus,.editor-post-publish-panel input[type=time]:focus,.editor-post-publish-panel input[type=url]:focus,.editor-post-publish-panel input[type=week]:focus,.editor-post-publish-panel select:focus,.editor-post-publish-panel textarea:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-modal__content input[type=number],.components-popover input[type=number],.edit-post-sidebar input[type=number],.editor-block-list__block input[type=number],.editor-post-permalink input[type=number],.editor-post-publish-panel input[type=number]{padding-left:4px;padding-right:4px}.components-modal__content select,.components-popover select,.edit-post-sidebar select,.editor-block-list__block select,.editor-post-permalink select,.editor-post-publish-panel select{padding:2px}.components-modal__content select:focus,.components-popover select:focus,.edit-post-sidebar select:focus,.editor-block-list__block select:focus,.editor-post-permalink select:focus,.editor-post-publish-panel select:focus{border-color:#008dbe;outline:2px solid transparent;outline-offset:0}.components-modal__content input[type=checkbox],.components-modal__content input[type=radio],.components-popover input[type=checkbox],.components-popover input[type=radio],.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=radio],.editor-block-list__block input[type=checkbox],.editor-block-list__block input[type=radio],.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=radio]{border:2px solid #6c7781;margin-right:12px;transition:none}.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=radio]:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=radio]:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=radio]:focus,.editor-block-list__block input[type=checkbox]:focus,.editor-block-list__block input[type=radio]:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=radio]:focus{border-color:#6c7781;box-shadow:0 0 0 1px #6c7781}.components-modal__content input[type=checkbox]:checked,.components-modal__content input[type=radio]:checked,.components-popover input[type=checkbox]:checked,.components-popover input[type=radio]:checked,.edit-post-sidebar input[type=checkbox]:checked,.edit-post-sidebar input[type=radio]:checked,.editor-block-list__block input[type=checkbox]:checked,.editor-block-list__block input[type=radio]:checked,.editor-post-permalink input[type=checkbox]:checked,.editor-post-permalink input[type=radio]:checked,.editor-post-publish-panel input[type=checkbox]:checked,.editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .components-modal__content input[type=checkbox]:checked,body.admin-color-sunrise .components-modal__content input[type=radio]:checked,body.admin-color-sunrise .components-popover input[type=checkbox]:checked,body.admin-color-sunrise .components-popover input[type=radio]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=radio]:checked,body.admin-color-sunrise .editor-block-list__block input[type=checkbox]:checked,body.admin-color-sunrise .editor-block-list__block input[type=radio]:checked,body.admin-color-sunrise .editor-post-permalink input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-permalink input[type=radio]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=radio]:checked{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .components-modal__content input[type=checkbox]:checked,body.admin-color-ocean .components-modal__content input[type=radio]:checked,body.admin-color-ocean .components-popover input[type=checkbox]:checked,body.admin-color-ocean .components-popover input[type=radio]:checked,body.admin-color-ocean .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ocean .edit-post-sidebar input[type=radio]:checked,body.admin-color-ocean .editor-block-list__block input[type=checkbox]:checked,body.admin-color-ocean .editor-block-list__block input[type=radio]:checked,body.admin-color-ocean .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ocean .editor-post-permalink input[type=radio]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=radio]:checked{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .components-modal__content input[type=checkbox]:checked,body.admin-color-midnight .components-modal__content input[type=radio]:checked,body.admin-color-midnight .components-popover input[type=checkbox]:checked,body.admin-color-midnight .components-popover input[type=radio]:checked,body.admin-color-midnight .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-midnight .edit-post-sidebar input[type=radio]:checked,body.admin-color-midnight .editor-block-list__block input[type=checkbox]:checked,body.admin-color-midnight .editor-block-list__block input[type=radio]:checked,body.admin-color-midnight .editor-post-permalink input[type=checkbox]:checked,body.admin-color-midnight .editor-post-permalink input[type=radio]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=radio]:checked{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .components-modal__content input[type=checkbox]:checked,body.admin-color-ectoplasm .components-modal__content input[type=radio]:checked,body.admin-color-ectoplasm .components-popover input[type=checkbox]:checked,body.admin-color-ectoplasm .components-popover input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=radio]:checked,body.admin-color-ectoplasm .editor-block-list__block input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-block-list__block input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=radio]:checked{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .components-modal__content input[type=checkbox]:checked,body.admin-color-coffee .components-modal__content input[type=radio]:checked,body.admin-color-coffee .components-popover input[type=checkbox]:checked,body.admin-color-coffee .components-popover input[type=radio]:checked,body.admin-color-coffee .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-coffee .edit-post-sidebar input[type=radio]:checked,body.admin-color-coffee .editor-block-list__block input[type=checkbox]:checked,body.admin-color-coffee .editor-block-list__block input[type=radio]:checked,body.admin-color-coffee .editor-post-permalink input[type=checkbox]:checked,body.admin-color-coffee .editor-post-permalink input[type=radio]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=radio]:checked{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .components-modal__content input[type=checkbox]:checked,body.admin-color-blue .components-modal__content input[type=radio]:checked,body.admin-color-blue .components-popover input[type=checkbox]:checked,body.admin-color-blue .components-popover input[type=radio]:checked,body.admin-color-blue .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-blue .edit-post-sidebar input[type=radio]:checked,body.admin-color-blue .editor-block-list__block input[type=checkbox]:checked,body.admin-color-blue .editor-block-list__block input[type=radio]:checked,body.admin-color-blue .editor-post-permalink input[type=checkbox]:checked,body.admin-color-blue .editor-post-permalink input[type=radio]:checked,body.admin-color-blue .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-blue .editor-post-publish-panel input[type=radio]:checked{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .components-modal__content input[type=checkbox]:checked,body.admin-color-light .components-modal__content input[type=radio]:checked,body.admin-color-light .components-popover input[type=checkbox]:checked,body.admin-color-light .components-popover input[type=radio]:checked,body.admin-color-light .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-light .edit-post-sidebar input[type=radio]:checked,body.admin-color-light .editor-block-list__block input[type=checkbox]:checked,body.admin-color-light .editor-block-list__block input[type=radio]:checked,body.admin-color-light .editor-post-permalink input[type=checkbox]:checked,body.admin-color-light .editor-post-permalink input[type=radio]:checked,body.admin-color-light .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-light .editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}.components-modal__content input[type=checkbox]:checked:focus,.components-modal__content input[type=radio]:checked:focus,.components-popover input[type=checkbox]:checked:focus,.components-popover input[type=radio]:checked:focus,.edit-post-sidebar input[type=checkbox]:checked:focus,.edit-post-sidebar input[type=radio]:checked:focus,.editor-block-list__block input[type=checkbox]:checked:focus,.editor-block-list__block input[type=radio]:checked:focus,.editor-post-permalink input[type=checkbox]:checked:focus,.editor-post-permalink input[type=radio]:checked:focus,.editor-post-publish-panel input[type=checkbox]:checked:focus,.editor-post-publish-panel input[type=radio]:checked:focus{box-shadow:0 0 0 2px #555d66}.components-modal__content input[type=checkbox],.components-popover input[type=checkbox],.edit-post-sidebar input[type=checkbox],.editor-block-list__block input[type=checkbox],.editor-post-permalink input[type=checkbox],.editor-post-publish-panel input[type=checkbox]{border-radius:2px}.components-modal__content input[type=checkbox]:checked:before,.components-popover input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox]:checked:before,.editor-block-list__block input[type=checkbox]:checked:before,.editor-post-permalink input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox]:checked:before{margin:-4px 0 0 -5px;color:#fff}.components-modal__content input[type=radio],.components-popover input[type=radio],.edit-post-sidebar input[type=radio],.editor-block-list__block input[type=radio],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=radio]{border-radius:50%}.components-modal__content input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.editor-block-list__block input[type=radio]:checked:before,.editor-post-permalink input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{margin:3px 0 0 3px;background-color:#fff}.editor-block-list__block input::-webkit-input-placeholder,.editor-block-list__block textarea::-webkit-input-placeholder,.editor-post-title input::-webkit-input-placeholder,.editor-post-title textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.editor-block-list__block input::-moz-placeholder,.editor-block-list__block textarea::-moz-placeholder,.editor-post-title input::-moz-placeholder,.editor-post-title textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.editor-block-list__block input:-ms-input-placeholder,.editor-block-list__block textarea:-ms-input-placeholder,.editor-post-title input:-ms-input-placeholder,.editor-post-title textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .editor-block-list__block input::-webkit-input-placeholder,.is-dark-theme .editor-block-list__block textarea::-webkit-input-placeholder,.is-dark-theme .editor-post-title input::-webkit-input-placeholder,.is-dark-theme .editor-post-title textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-block-list__block input::-moz-placeholder,.is-dark-theme .editor-block-list__block textarea::-moz-placeholder,.is-dark-theme .editor-post-title input::-moz-placeholder,.is-dark-theme .editor-post-title textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .editor-block-list__block input:-ms-input-placeholder,.is-dark-theme .editor-block-list__block textarea:-ms-input-placeholder,.is-dark-theme .editor-post-title input:-ms-input-placeholder,.is-dark-theme .editor-post-title textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block{max-width:610px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none} \ No newline at end of file +@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-46px;height:calc(100% + 46px);animation:edit-post__fade-in-animation .3s ease-out 0s;animation-fill-mode:forwards}}@media (min-width:782px) and (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}@media (min-width:782px) and (prefers-reduced-motion:reduce){body.js.is-fullscreen-mode{animation-duration:1ms!important}}@media (min-width:782px){body.js.is-fullscreen-mode .edit-post-header{transform:translateY(-100%);animation:edit-post-fullscreen-mode__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){body.js.is-fullscreen-mode .edit-post-header{animation-duration:1ms!important}}@keyframes edit-post-fullscreen-mode__slide-in-animation{to{transform:translateY(0)}}.edit-post-header{height:56px;padding:4px 2px;border-bottom:1px solid #e2e4e7;background:#fff;display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;z-index:30;right:0;top:0;position:-webkit-sticky;position:sticky}@media (min-width:600px){.edit-post-header{position:fixed;padding:8px;top:46px}}@media (min-width:782px){.edit-post-header{top:32px}body.is-fullscreen-mode .edit-post-header{top:0}}.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:none}@media (min-width:600px){.edit-post-header .editor-post-switch-to-draft+.editor-post-preview{display:inline-flex}}.edit-post-header>.edit-post-header__settings{order:1}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header{left:0}@media (min-width:782px){.edit-post-header{left:160px}}@media (min-width:782px){.auto-fold .edit-post-header{left:36px}}@media (min-width:960px){.auto-fold .edit-post-header{left:160px}}.folded .edit-post-header{left:0}@media (min-width:782px){.folded .edit-post-header{left:36px}}@media (max-width:782px){.auto-fold .wp-responsive-open .edit-post-header{left:190px}}@media (max-width:600px){.auto-fold .wp-responsive-open .edit-post-header{margin-left:-18px}}body.is-fullscreen-mode .edit-post-header{left:0!important}.edit-post-header__settings{display:inline-flex;align-items:center}.edit-post-header .components-button.is-toggled{color:#fff}.edit-post-header .components-button.is-toggled:before{content:"";border-radius:4px;position:absolute;z-index:-1;background:#555d66;top:1px;right:1px;bottom:1px;left:1px}.edit-post-header .components-button.is-toggled:focus,.edit-post-header .components-button.is-toggled:hover{box-shadow:0 0 0 1px #555d66,inset 0 0 0 1px #fff;color:#fff;background:#555d66}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle,.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{margin:2px;height:33px;line-height:32px;font-size:13px}.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 5px}@media (min-width:600px){.edit-post-header .components-button.editor-post-save-draft,.edit-post-header .components-button.editor-post-switch-to-draft{padding:0 12px}}.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 5px 2px}@media (min-width:600px){.edit-post-header .components-button.editor-post-preview,.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{padding:0 12px 2px}}@media (min-width:782px){.edit-post-header .components-button.editor-post-preview{margin:0 3px 0 12px}.edit-post-header .components-button.editor-post-publish-button,.edit-post-header .components-button.editor-post-publish-panel__toggle{margin:0 12px 0 3px}}.edit-post-fullscreen-mode-close__toolbar{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close__toolbar{display:block;border-top:0;border-bottom:0;border-left:0;margin:-9px 10px -9px -10px;padding:9px 10px}}.edit-post-header-toolbar{display:inline-flex;align-items:center}.edit-post-header-toolbar>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar>.components-button{display:inline-flex}}.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-block-navigation,.edit-post-header-toolbar .table-of-contents{display:flex}}.edit-post-header-toolbar__block-toolbar{position:absolute;top:56px;left:0;right:0;background:#fff;min-height:37px;border-bottom:1px solid #e2e4e7}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{border-top:none;border-bottom:none}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:none}@media (min-width:782px){.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{display:block;right:280px}}@media (min-width:1080px){.edit-post-header-toolbar__block-toolbar{padding-left:8px;position:static;left:auto;right:auto;background:none;border-bottom:none;min-height:auto}.is-sidebar-opened .edit-post-header-toolbar__block-toolbar{right:auto}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar{margin:-9px 0}.edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar .components-toolbar{padding:10px 4px 9px}}.edit-post-more-menu{margin-left:-4px}.edit-post-more-menu .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.edit-post-more-menu{margin-left:4px}.edit-post-more-menu .components-icon-button{padding:8px 4px}}.edit-post-more-menu .components-button svg{transform:rotate(90deg)}.edit-post-more-menu__content .components-popover__content{min-width:260px}@media (min-width:480px){.edit-post-more-menu__content .components-popover__content{width:auto;max-width:480px}}.edit-post-more-menu__content .components-popover__content .components-menu-group:not(:last-child),.edit-post-more-menu__content .components-popover__content>div:not(:last-child) .components-menu-group{border-bottom:1px solid #e2e4e7}.edit-post-more-menu__content .components-popover__content .components-menu-item__button{padding-left:2rem}.edit-post-more-menu__content .components-popover__content .components-menu-item__button.has-icon{padding-left:.5rem}.edit-post-pinned-plugins{display:none}@media (min-width:600px){.edit-post-pinned-plugins{display:flex}}.edit-post-pinned-plugins .components-icon-button{margin-left:4px}.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) svg *{stroke:#555d66;fill:#555d66;stroke-width:0}.edit-post-pinned-plugins .components-icon-button.is-toggled svg,.edit-post-pinned-plugins .components-icon-button.is-toggled svg *{stroke:#fff!important;fill:#fff!important;stroke-width:0}.edit-post-pinned-plugins .components-icon-button:hover svg,.edit-post-pinned-plugins .components-icon-button:hover svg *{stroke:#191e23!important;fill:#191e23!important;stroke-width:0}.edit-post-keyboard-shortcut-help__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help__shortcut{display:flex;align-items:center;padding:.6rem 0;border-top:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut:last-child{border-bottom:1px solid #e2e4e7}.edit-post-keyboard-shortcut-help__shortcut-term{order:1;font-weight:600;margin:0 0 0 1rem}.edit-post-keyboard-shortcut-help__shortcut-description{flex:1;order:0;margin:0;flex-basis:auto}.edit-post-keyboard-shortcut-help__shortcut-key-combination{background:none;margin:0;padding:0}.edit-post-keyboard-shortcut-help__shortcut-key{padding:.25rem .5rem;border-radius:8%;margin:0 .2rem}.edit-post-keyboard-shortcut-help__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout,.edit-post-layout__content{height:100%}.edit-post-layout{position:relative}.edit-post-layout .components-notice-list{position:-webkit-sticky;position:sticky;top:56px;right:0;color:#191e23}@media (min-width:600px){.edit-post-layout .components-notice-list{top:0}}.edit-post-layout .components-notice-list.is-pinned{position:relative;left:0;top:0}.edit-post-layout .components-notice{margin:0 0 5px;padding:6px 12px;min-height:50px}.edit-post-layout .components-notice .components-notice__dismiss{margin:10px 5px}@media (min-width:600px){.edit-post-layout{padding-top:56px}}.edit-post-layout__metaboxes:not(:empty){border-top:1px solid #e2e4e7;margin-top:10px;padding:10px 0;clear:both}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{margin:auto 20px}.edit-post-layout__content{display:flex;flex-direction:column;min-height:100%;position:relative;padding-bottom:50vh;-webkit-overflow-scrolling:touch}@media (min-width:782px){.edit-post-layout__content{position:fixed;bottom:0;left:0;right:0;top:88px;min-height:calc(100% - 88px);height:auto;margin-left:160px}body.auto-fold .edit-post-layout__content{margin-left:36px}}@media (min-width:782px) and (min-width:960px){body.auto-fold .edit-post-layout__content{margin-left:160px}}@media (min-width:782px){body.folded .edit-post-layout__content{margin-left:36px}body.is-fullscreen-mode .edit-post-layout__content{margin-left:0!important;top:56px}}@media (min-width:782px){.has-fixed-toolbar .edit-post-layout__content{top:124px}}@media (min-width:1080px){.has-fixed-toolbar .edit-post-layout__content{top:88px}}@media (min-width:600px){.edit-post-layout__content{padding-bottom:0;overflow-y:auto;overscroll-behavior-y:none}}.edit-post-layout__content .edit-post-visual-editor{flex:1 1 auto}@supports ((position:-webkit-sticky) or (position:sticky)){.edit-post-layout__content .edit-post-visual-editor{flex-basis:100%}}.edit-post-layout__content .edit-post-layout__metaboxes{flex-shrink:0}.edit-post-layout .editor-post-publish-panel{position:fixed;z-index:100001;top:46px;bottom:0;right:0;left:0;overflow:auto}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{top:32px;left:auto;width:280px;border-left:1px solid #e2e4e7;transform:translateX(100%);animation:edit-post-post-publish-panel__slide-in-animation .1s forwards}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-duration:1ms!important}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}.is-focusing-regions .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button .components-button.is-large{height:33px;line-height:32px}.edit-post-layout .editor-post-publish-panel__header-publish-button .editor-post-publish-panel__spacer{display:inline-flex;flex:0 1 52px}.edit-post-toggle-publish-panel{position:fixed;top:-9999em;bottom:auto;left:auto;right:0;z-index:100000;padding:10px 10px 10px 0;width:280px;background-color:#fff}.edit-post-toggle-publish-panel:focus{top:auto;bottom:0}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{width:auto;height:auto;display:block;font-size:14px;font-weight:600;margin:0 0 0 auto;padding:15px 23px 14px;line-height:normal;text-decoration:none;outline:none;background:#f1f1f1;color:#11a0d2}body.admin-color-sunrise .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c8b03c}body.admin-color-ocean .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#a89d8a}body.admin-color-midnight .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#77a6b9}body.admin-color-ectoplasm .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c77430}body.admin-color-coffee .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#9fa47b}body.admin-color-blue .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#d9ab59}body.admin-color-light .edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button{color:#c75726}.edit-post-toggle-publish-panel .edit-post-toggle-publish-panel__button:focus{position:fixed;top:auto;right:10px;bottom:10px;left:auto}@media (min-width:600px){.edit-post-manage-blocks-modal{height:calc(100% - 112px)}}.edit-post-manage-blocks-modal .components-modal__content{padding-bottom:0;display:flex;flex-direction:column}.edit-post-manage-blocks-modal .components-modal__header{flex-shrink:0;margin-bottom:0}.edit-post-manage-blocks-modal__content{display:flex;flex-direction:column;flex:0 1 100%;min-height:0}.edit-post-manage-blocks-modal__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-manage-blocks-modal__search{margin:16px 0}.edit-post-manage-blocks-modal__search .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__search .components-base-control__label{margin-top:-4px}.edit-post-manage-blocks-modal__search input[type=search].components-text-control__input{padding:12px;border-radius:4px}.edit-post-manage-blocks-modal__category{margin:0 0 2rem}.edit-post-manage-blocks-modal__category-title{position:-webkit-sticky;position:sticky;top:0;padding:16px 0;background-color:#fff}.edit-post-manage-blocks-modal__category-title .components-base-control__field{margin-bottom:0}.edit-post-manage-blocks-modal__category-title .components-checkbox-control__label{font-size:.9rem;font-weight:600}.edit-post-manage-blocks-modal__show-all{margin-right:8px}.edit-post-manage-blocks-modal__checklist{margin-top:0}.edit-post-manage-blocks-modal__checklist-item{margin-bottom:0;padding-left:16px;border-top:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item:last-child{border-bottom:1px solid #e2e4e7}.edit-post-manage-blocks-modal__checklist-item .components-base-control__field{align-items:center;display:flex;margin:0}.components-modal__content .edit-post-manage-blocks-modal__checklist-item input[type=checkbox]{margin:0 8px}.edit-post-manage-blocks-modal__checklist-item .components-checkbox-control__label{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:.6rem 0 .6rem 10px}.edit-post-manage-blocks-modal__checklist-item .editor-block-icon{margin-right:10px;fill:#555d66}.edit-post-manage-blocks-modal__results{height:100%;overflow:auto;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;border-top:1px solid #e2e4e7}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area #poststuff{margin:0 auto;padding-top:0;min-width:auto}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{border-bottom:1px solid #e2e4e7;box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:15px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{border-bottom:1px solid #e2e4e7;color:inherit;padding:0 14px 14px;margin:0}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{position:absolute;top:0;left:0;right:0;bottom:0;content:"";background:transparent;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;top:10px;right:20px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-sidebar{position:fixed;z-index:100000;top:0;right:0;bottom:0;width:280px;border-left:1px solid #e2e4e7;background:#fff;color:#555d66;height:100vh;overflow:hidden}@media (min-width:600px){.edit-post-sidebar{top:102px;z-index:90;height:auto;overflow:auto;-webkit-overflow-scrolling:touch}}@media (min-width:782px){.edit-post-sidebar{top:88px}body.is-fullscreen-mode .edit-post-sidebar{top:56px}}.edit-post-sidebar>.components-panel{border-left:none;border-right:none;overflow:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:calc(100vh - 96px);margin-top:-1px;margin-bottom:-1px;position:relative;z-index:-2}@media (min-width:600px){.edit-post-sidebar>.components-panel{overflow:inherit;height:auto;max-height:none}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-sidebar>.components-panel{max-height:calc(100vh - 50px)}}.edit-post-sidebar>.components-panel .components-panel__header{position:fixed;z-index:1;top:0;left:0;right:0;height:50px}@media (min-width:600px){.edit-post-sidebar>.components-panel .components-panel__header{position:inherit;top:auto;left:auto;right:auto}}.edit-post-sidebar p{margin-top:0}.edit-post-sidebar h2,.edit-post-sidebar h3{font-size:13px;color:#555d66;margin-bottom:1.5em}.edit-post-sidebar hr{border-top:none;border-bottom:1px solid #e2e4e7;margin:1.5em 0}.edit-post-sidebar div.components-toolbar{box-shadow:none;margin-bottom:1.5em}.edit-post-sidebar div.components-toolbar:last-child{margin-bottom:0}.edit-post-sidebar p+div.components-toolbar{margin-top:-1em}.edit-post-sidebar .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-layout__content{margin-right:280px}}.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:100%}@media (min-width:782px){.edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,.edit-post-layout.is-sidebar-opened .edit-post-sidebar{width:280px}}.components-panel__header.edit-post-sidebar__header{background:#fff;padding-right:8px}.components-panel__header.edit-post-sidebar__header .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar__header{display:none}}.components-panel__header.edit-post-sidebar__panel-tabs{margin-top:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:none;margin-left:auto}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-icon-button{display:flex}}.edit-post-sidebar__panel-tab{height:50px}.components-panel__body.is-opened.edit-post-last-revision__panel{padding:0}.editor-post-last-revision__title{padding:13px 16px}.editor-post-author__select{margin:-5px 0;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-post-author__select{width:auto}}.edit-post-post-link__link-post-name{font-weight:600}.edit-post-post-link__preview-label{margin:0}.edit-post-post-link__link{word-wrap:break-word}.edit-post-post-schedule{width:100%;position:relative}.edit-post-post-schedule__label{display:none}.components-button.edit-post-post-schedule__toggle{text-align:right}.edit-post-post-schedule__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-schedule__dialog .components-popover__content{width:270px}}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;width:100%;text-align:center}.edit-post-post-visibility{width:100%}.edit-post-post-visibility__dialog .components-popover__content{padding:10px}@media (min-width:782px){.edit-post-post-visibility__dialog .components-popover__content{width:257px}}.edit-post-post-visibility__dialog-legend{font-weight:600}.edit-post-post-visibility__choice{margin:10px 0}.edit-post-post-visibility__dialog-label,.edit-post-post-visibility__dialog-radio{vertical-align:top}.edit-post-post-visibility__dialog-password-input{width:calc(100% - 20px);margin-left:20px}.edit-post-post-visibility__dialog-info{color:#7e8993;padding-left:20px;font-style:italic;margin:4px 0 0;line-height:1.4}.components-panel__header.edit-post-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:4px;border-top:0;position:-webkit-sticky;position:sticky;z-index:-1;top:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.edit-post-sidebar__panel-tab{background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px 15px;margin-left:0;font-weight:400;color:#191e23;outline-offset:-1px;transition:box-shadow .1s linear}.edit-post-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba;font-weight:600;position:relative}body.admin-color-sunrise .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #837425}body.admin-color-ocean .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #5e7d5e}body.admin-color-midnight .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #497b8d}body.admin-color-ectoplasm .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #523f6d}body.admin-color-coffee .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #59524c}body.admin-color-blue .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #417e9b}body.admin-color-light .edit-post-sidebar__panel-tab.is-active{box-shadow:inset 0 -3px #007cba}.edit-post-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:3px solid transparent}.edit-post-sidebar__panel-tab:focus{color:#191e23;outline-offset:-1px;outline:1px dotted #555d66}.edit-post-settings-sidebar__panel-block .components-panel__body{border:none;border-top:1px solid #e2e4e7;margin:0 -16px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control{margin-bottom:24px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control:last-child{margin-bottom:8px}.edit-post-settings-sidebar__panel-block .components-panel__body .components-panel__body-toggle{color:#191e23}.edit-post-settings-sidebar__panel-block .components-panel__body:first-child{margin-top:16px}.edit-post-settings-sidebar__panel-block .components-panel__body:last-child{margin-bottom:-16px}.components-panel__header.edit-post-sidebar-header__small{background:#fff;padding-right:4px}.components-panel__header.edit-post-sidebar-header__small .edit-post-sidebar__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header__small{display:none}}.components-panel__header.edit-post-sidebar-header{padding-right:4px;background:#f3f4f5}.components-panel__header.edit-post-sidebar-header .components-icon-button{display:none;margin-left:auto}.components-panel__header.edit-post-sidebar-header .components-icon-button~.components-icon-button{margin-left:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar-header .components-icon-button{display:flex}}.edit-post-text-editor__body{padding-top:40px}@media (min-width:600px){.edit-post-text-editor__body{padding-top:86px}}@media (min-width:782px){.edit-post-text-editor__body,body.is-fullscreen-mode .edit-post-text-editor__body{padding-top:40px}}.edit-post-text-editor{width:100%;max-width:calc(100% - 32px);margin-left:16px;margin-right:16px;padding-top:44px}@media (min-width:600px){.edit-post-text-editor{max-width:610px;margin-left:auto;margin-right:auto}}.edit-post-text-editor .editor-post-title__block textarea{border:1px solid #e2e4e7;margin-bottom:4px;padding:14px}.edit-post-text-editor .editor-post-title__block.is-selected textarea,.edit-post-text-editor .editor-post-title__block textarea:hover{box-shadow:0 0 0 1px #e2e4e7}.edit-post-text-editor .editor-post-permalink{left:0;right:0;margin-top:-6px}@media (min-width:600px){.edit-post-text-editor .editor-post-title,.edit-post-text-editor .editor-post-title__block{padding:0}}.edit-post-text-editor .editor-post-text-editor{padding:14px;min-height:200px;line-height:1.8}.edit-post-text-editor .edit-post-text-editor__toolbar{position:absolute;top:8px;left:0;right:0;height:36px;line-height:36px;padding:0 8px 0 16px;display:flex}.edit-post-text-editor .edit-post-text-editor__toolbar h2{margin:0 auto 0 0;font-size:13px;color:#555d66}.edit-post-text-editor .edit-post-text-editor__toolbar .components-icon-button svg{order:1}.edit-post-visual-editor{position:relative;padding:50px 0}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.edit-post-visual-editor .block-editor-writing-flow__click-redirect{height:50px;width:100%;margin:-4px auto -50px}.edit-post-visual-editor .block-editor-block-list__block{margin-left:auto;margin-right:auto}@media (min-width:600px){.edit-post-visual-editor .block-editor-block-list__block .block-editor-block-list__block-edit{margin-left:-28px;margin-right:-28px}.edit-post-visual-editor .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar{height:0;width:100%;margin-left:0;margin-right:0;text-align:center;float:left}.edit-post-visual-editor .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar .block-editor-block-toolbar{max-width:610px;width:100%;position:relative}}@media (min-width:600px){.editor-post-title{padding-left:46px;padding-right:46px}}.edit-post-visual-editor .editor-post-title__block{margin-left:auto;margin-right:auto;margin-bottom:-20px}.edit-post-visual-editor .editor-post-title__block>div{margin-left:0;margin-right:0}@media (min-width:600px){.edit-post-visual-editor .editor-post-title__block>div{margin-left:-2px;margin-right:-2px}}.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=left]:first-child,.edit-post-visual-editor .block-editor-block-list__layout>.block-editor-block-list__block[data-align=right]:first-child{margin-top:34px}.edit-post-visual-editor .block-editor-default-block-appender{margin-left:auto;margin-right:auto;position:relative}.edit-post-visual-editor .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.edit-post-visual-editor .block-editor-block-list__block[data-type="core/paragraph"] p[data-is-placeholder-visible=true]+p,.edit-post-visual-editor .block-editor-default-block-appender__content{min-height:28px;line-height:1.8}.edit-post-options-modal__section{margin:0 0 2rem}.edit-post-options-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-options-modal__option{border-top:1px solid #e2e4e7}.edit-post-options-modal__option:last-child{border-bottom:1px solid #e2e4e7}.edit-post-options-modal__option .components-base-control__field{align-items:center;display:flex;margin:0}.edit-post-options-modal__option.components-base-control+.edit-post-options-modal__option.components-base-control{margin-bottom:0}.edit-post-options-modal__option .components-checkbox-control__label{flex-grow:1;padding:.6rem 0 .6rem 10px}@keyframes edit-post__loading-fade-animation{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu>li.current>a.current:after,body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.block-editor,.components-modal__frame{box-sizing:border-box}.block-editor *,.block-editor :after,.block-editor :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.block-editor select,.components-modal__frame select{font-size:13px;color:#555d66}@media (min-width:600px){.block-editor__container{position:absolute;top:0;right:0;bottom:0;left:0;min-height:calc(100vh - 46px)}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{max-width:100%;height:auto}.block-editor__container iframe{width:100%}.block-editor__container .components-navigate-regions{height:100%}.block-editor-block-list__block .input-control,.block-editor-block-list__block input[type=checkbox],.block-editor-block-list__block input[type=color],.block-editor-block-list__block input[type=date],.block-editor-block-list__block input[type=datetime-local],.block-editor-block-list__block input[type=datetime],.block-editor-block-list__block input[type=email],.block-editor-block-list__block input[type=month],.block-editor-block-list__block input[type=number],.block-editor-block-list__block input[type=password],.block-editor-block-list__block input[type=radio],.block-editor-block-list__block input[type=search],.block-editor-block-list__block input[type=tel],.block-editor-block-list__block input[type=text],.block-editor-block-list__block input[type=time],.block-editor-block-list__block input[type=url],.block-editor-block-list__block input[type=week],.block-editor-block-list__block select,.block-editor-block-list__block textarea,.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .input-control,.block-editor-block-list__block input[type=checkbox],.block-editor-block-list__block input[type=color],.block-editor-block-list__block input[type=date],.block-editor-block-list__block input[type=datetime-local],.block-editor-block-list__block input[type=datetime],.block-editor-block-list__block input[type=email],.block-editor-block-list__block input[type=month],.block-editor-block-list__block input[type=number],.block-editor-block-list__block input[type=password],.block-editor-block-list__block input[type=radio],.block-editor-block-list__block input[type=search],.block-editor-block-list__block input[type=tel],.block-editor-block-list__block input[type=text],.block-editor-block-list__block input[type=time],.block-editor-block-list__block input[type=url],.block-editor-block-list__block input[type=week],.block-editor-block-list__block select,.block-editor-block-list__block textarea,.components-modal__content .input-control,.components-modal__content input[type=checkbox],.components-modal__content input[type=color],.components-modal__content input[type=date],.components-modal__content input[type=datetime-local],.components-modal__content input[type=datetime],.components-modal__content input[type=email],.components-modal__content input[type=month],.components-modal__content input[type=number],.components-modal__content input[type=password],.components-modal__content input[type=radio],.components-modal__content input[type=search],.components-modal__content input[type=tel],.components-modal__content input[type=text],.components-modal__content input[type=time],.components-modal__content input[type=url],.components-modal__content input[type=week],.components-modal__content select,.components-modal__content textarea,.components-popover .input-control,.components-popover input[type=checkbox],.components-popover input[type=color],.components-popover input[type=date],.components-popover input[type=datetime-local],.components-popover input[type=datetime],.components-popover input[type=email],.components-popover input[type=month],.components-popover input[type=number],.components-popover input[type=password],.components-popover input[type=radio],.components-popover input[type=search],.components-popover input[type=tel],.components-popover input[type=text],.components-popover input[type=time],.components-popover input[type=url],.components-popover input[type=week],.components-popover select,.components-popover textarea,.edit-post-sidebar .input-control,.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=color],.edit-post-sidebar input[type=date],.edit-post-sidebar input[type=datetime-local],.edit-post-sidebar input[type=datetime],.edit-post-sidebar input[type=email],.edit-post-sidebar input[type=month],.edit-post-sidebar input[type=number],.edit-post-sidebar input[type=password],.edit-post-sidebar input[type=radio],.edit-post-sidebar input[type=search],.edit-post-sidebar input[type=tel],.edit-post-sidebar input[type=text],.edit-post-sidebar input[type=time],.edit-post-sidebar input[type=url],.edit-post-sidebar input[type=week],.edit-post-sidebar select,.edit-post-sidebar textarea,.editor-post-permalink .input-control,.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=color],.editor-post-permalink input[type=date],.editor-post-permalink input[type=datetime-local],.editor-post-permalink input[type=datetime],.editor-post-permalink input[type=email],.editor-post-permalink input[type=month],.editor-post-permalink input[type=number],.editor-post-permalink input[type=password],.editor-post-permalink input[type=radio],.editor-post-permalink input[type=search],.editor-post-permalink input[type=tel],.editor-post-permalink input[type=text],.editor-post-permalink input[type=time],.editor-post-permalink input[type=url],.editor-post-permalink input[type=week],.editor-post-permalink select,.editor-post-permalink textarea,.editor-post-publish-panel .input-control,.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=color],.editor-post-publish-panel input[type=date],.editor-post-publish-panel input[type=datetime-local],.editor-post-publish-panel input[type=datetime],.editor-post-publish-panel input[type=email],.editor-post-publish-panel input[type=month],.editor-post-publish-panel input[type=number],.editor-post-publish-panel input[type=password],.editor-post-publish-panel input[type=radio],.editor-post-publish-panel input[type=search],.editor-post-publish-panel input[type=tel],.editor-post-publish-panel input[type=text],.editor-post-publish-panel input[type=time],.editor-post-publish-panel input[type=url],.editor-post-publish-panel input[type=week],.editor-post-publish-panel select,.editor-post-publish-panel textarea{font-size:13px}}.block-editor-block-list__block .input-control:focus,.block-editor-block-list__block input[type=checkbox]:focus,.block-editor-block-list__block input[type=color]:focus,.block-editor-block-list__block input[type=date]:focus,.block-editor-block-list__block input[type=datetime-local]:focus,.block-editor-block-list__block input[type=datetime]:focus,.block-editor-block-list__block input[type=email]:focus,.block-editor-block-list__block input[type=month]:focus,.block-editor-block-list__block input[type=number]:focus,.block-editor-block-list__block input[type=password]:focus,.block-editor-block-list__block input[type=radio]:focus,.block-editor-block-list__block input[type=search]:focus,.block-editor-block-list__block input[type=tel]:focus,.block-editor-block-list__block input[type=text]:focus,.block-editor-block-list__block input[type=time]:focus,.block-editor-block-list__block input[type=url]:focus,.block-editor-block-list__block input[type=week]:focus,.block-editor-block-list__block select:focus,.block-editor-block-list__block textarea:focus,.components-modal__content .input-control:focus,.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=color]:focus,.components-modal__content input[type=date]:focus,.components-modal__content input[type=datetime-local]:focus,.components-modal__content input[type=datetime]:focus,.components-modal__content input[type=email]:focus,.components-modal__content input[type=month]:focus,.components-modal__content input[type=number]:focus,.components-modal__content input[type=password]:focus,.components-modal__content input[type=radio]:focus,.components-modal__content input[type=search]:focus,.components-modal__content input[type=tel]:focus,.components-modal__content input[type=text]:focus,.components-modal__content input[type=time]:focus,.components-modal__content input[type=url]:focus,.components-modal__content input[type=week]:focus,.components-modal__content select:focus,.components-modal__content textarea:focus,.components-popover .input-control:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=color]:focus,.components-popover input[type=date]:focus,.components-popover input[type=datetime-local]:focus,.components-popover input[type=datetime]:focus,.components-popover input[type=email]:focus,.components-popover input[type=month]:focus,.components-popover input[type=number]:focus,.components-popover input[type=password]:focus,.components-popover input[type=radio]:focus,.components-popover input[type=search]:focus,.components-popover input[type=tel]:focus,.components-popover input[type=text]:focus,.components-popover input[type=time]:focus,.components-popover input[type=url]:focus,.components-popover input[type=week]:focus,.components-popover select:focus,.components-popover textarea:focus,.edit-post-sidebar .input-control:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=color]:focus,.edit-post-sidebar input[type=date]:focus,.edit-post-sidebar input[type=datetime-local]:focus,.edit-post-sidebar input[type=datetime]:focus,.edit-post-sidebar input[type=email]:focus,.edit-post-sidebar input[type=month]:focus,.edit-post-sidebar input[type=number]:focus,.edit-post-sidebar input[type=password]:focus,.edit-post-sidebar input[type=radio]:focus,.edit-post-sidebar input[type=search]:focus,.edit-post-sidebar input[type=tel]:focus,.edit-post-sidebar input[type=text]:focus,.edit-post-sidebar input[type=time]:focus,.edit-post-sidebar input[type=url]:focus,.edit-post-sidebar input[type=week]:focus,.edit-post-sidebar select:focus,.edit-post-sidebar textarea:focus,.editor-post-permalink .input-control:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=color]:focus,.editor-post-permalink input[type=date]:focus,.editor-post-permalink input[type=datetime-local]:focus,.editor-post-permalink input[type=datetime]:focus,.editor-post-permalink input[type=email]:focus,.editor-post-permalink input[type=month]:focus,.editor-post-permalink input[type=number]:focus,.editor-post-permalink input[type=password]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-permalink input[type=search]:focus,.editor-post-permalink input[type=tel]:focus,.editor-post-permalink input[type=text]:focus,.editor-post-permalink input[type=time]:focus,.editor-post-permalink input[type=url]:focus,.editor-post-permalink input[type=week]:focus,.editor-post-permalink select:focus,.editor-post-permalink textarea:focus,.editor-post-publish-panel .input-control:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=color]:focus,.editor-post-publish-panel input[type=date]:focus,.editor-post-publish-panel input[type=datetime-local]:focus,.editor-post-publish-panel input[type=datetime]:focus,.editor-post-publish-panel input[type=email]:focus,.editor-post-publish-panel input[type=month]:focus,.editor-post-publish-panel input[type=number]:focus,.editor-post-publish-panel input[type=password]:focus,.editor-post-publish-panel input[type=radio]:focus,.editor-post-publish-panel input[type=search]:focus,.editor-post-publish-panel input[type=tel]:focus,.editor-post-publish-panel input[type=text]:focus,.editor-post-publish-panel input[type=time]:focus,.editor-post-publish-panel input[type=url]:focus,.editor-post-publish-panel input[type=week]:focus,.editor-post-publish-panel select:focus,.editor-post-publish-panel textarea:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-list__block input[type=number],.components-modal__content input[type=number],.components-popover input[type=number],.edit-post-sidebar input[type=number],.editor-post-permalink input[type=number],.editor-post-publish-panel input[type=number]{padding-left:4px;padding-right:4px}.block-editor-block-list__block select,.components-modal__content select,.components-popover select,.edit-post-sidebar select,.editor-post-permalink select,.editor-post-publish-panel select{padding:2px}.block-editor-block-list__block select:focus,.components-modal__content select:focus,.components-popover select:focus,.edit-post-sidebar select:focus,.editor-post-permalink select:focus,.editor-post-publish-panel select:focus{border-color:#008dbe;outline:2px solid transparent;outline-offset:0}.block-editor-block-list__block input[type=checkbox],.block-editor-block-list__block input[type=radio],.components-modal__content input[type=checkbox],.components-modal__content input[type=radio],.components-popover input[type=checkbox],.components-popover input[type=radio],.edit-post-sidebar input[type=checkbox],.edit-post-sidebar input[type=radio],.editor-post-permalink input[type=checkbox],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=checkbox],.editor-post-publish-panel input[type=radio]{border:2px solid #6c7781;margin-right:12px;transition:none}.block-editor-block-list__block input[type=checkbox]:focus,.block-editor-block-list__block input[type=radio]:focus,.components-modal__content input[type=checkbox]:focus,.components-modal__content input[type=radio]:focus,.components-popover input[type=checkbox]:focus,.components-popover input[type=radio]:focus,.edit-post-sidebar input[type=checkbox]:focus,.edit-post-sidebar input[type=radio]:focus,.editor-post-permalink input[type=checkbox]:focus,.editor-post-permalink input[type=radio]:focus,.editor-post-publish-panel input[type=checkbox]:focus,.editor-post-publish-panel input[type=radio]:focus{border-color:#6c7781;box-shadow:0 0 0 1px #6c7781}.block-editor-block-list__block input[type=checkbox]:checked,.block-editor-block-list__block input[type=radio]:checked,.components-modal__content input[type=checkbox]:checked,.components-modal__content input[type=radio]:checked,.components-popover input[type=checkbox]:checked,.components-popover input[type=radio]:checked,.edit-post-sidebar input[type=checkbox]:checked,.edit-post-sidebar input[type=radio]:checked,.editor-post-permalink input[type=checkbox]:checked,.editor-post-permalink input[type=radio]:checked,.editor-post-publish-panel input[type=checkbox]:checked,.editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-sunrise .block-editor-block-list__block input[type=radio]:checked,body.admin-color-sunrise .components-modal__content input[type=checkbox]:checked,body.admin-color-sunrise .components-modal__content input[type=radio]:checked,body.admin-color-sunrise .components-popover input[type=checkbox]:checked,body.admin-color-sunrise .components-popover input[type=radio]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-sunrise .edit-post-sidebar input[type=radio]:checked,body.admin-color-sunrise .editor-post-permalink input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-permalink input[type=radio]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-sunrise .editor-post-publish-panel input[type=radio]:checked{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-ocean .block-editor-block-list__block input[type=radio]:checked,body.admin-color-ocean .components-modal__content input[type=checkbox]:checked,body.admin-color-ocean .components-modal__content input[type=radio]:checked,body.admin-color-ocean .components-popover input[type=checkbox]:checked,body.admin-color-ocean .components-popover input[type=radio]:checked,body.admin-color-ocean .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ocean .edit-post-sidebar input[type=radio]:checked,body.admin-color-ocean .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ocean .editor-post-permalink input[type=radio]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ocean .editor-post-publish-panel input[type=radio]:checked{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-midnight .block-editor-block-list__block input[type=radio]:checked,body.admin-color-midnight .components-modal__content input[type=checkbox]:checked,body.admin-color-midnight .components-modal__content input[type=radio]:checked,body.admin-color-midnight .components-popover input[type=checkbox]:checked,body.admin-color-midnight .components-popover input[type=radio]:checked,body.admin-color-midnight .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-midnight .edit-post-sidebar input[type=radio]:checked,body.admin-color-midnight .editor-post-permalink input[type=checkbox]:checked,body.admin-color-midnight .editor-post-permalink input[type=radio]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-midnight .editor-post-publish-panel input[type=radio]:checked{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-ectoplasm .block-editor-block-list__block input[type=radio]:checked,body.admin-color-ectoplasm .components-modal__content input[type=checkbox]:checked,body.admin-color-ectoplasm .components-modal__content input[type=radio]:checked,body.admin-color-ectoplasm .components-popover input[type=checkbox]:checked,body.admin-color-ectoplasm .components-popover input[type=radio]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-ectoplasm .edit-post-sidebar input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-permalink input[type=radio]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-ectoplasm .editor-post-publish-panel input[type=radio]:checked{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-coffee .block-editor-block-list__block input[type=radio]:checked,body.admin-color-coffee .components-modal__content input[type=checkbox]:checked,body.admin-color-coffee .components-modal__content input[type=radio]:checked,body.admin-color-coffee .components-popover input[type=checkbox]:checked,body.admin-color-coffee .components-popover input[type=radio]:checked,body.admin-color-coffee .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-coffee .edit-post-sidebar input[type=radio]:checked,body.admin-color-coffee .editor-post-permalink input[type=checkbox]:checked,body.admin-color-coffee .editor-post-permalink input[type=radio]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-coffee .editor-post-publish-panel input[type=radio]:checked{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-blue .block-editor-block-list__block input[type=radio]:checked,body.admin-color-blue .components-modal__content input[type=checkbox]:checked,body.admin-color-blue .components-modal__content input[type=radio]:checked,body.admin-color-blue .components-popover input[type=checkbox]:checked,body.admin-color-blue .components-popover input[type=radio]:checked,body.admin-color-blue .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-blue .edit-post-sidebar input[type=radio]:checked,body.admin-color-blue .editor-post-permalink input[type=checkbox]:checked,body.admin-color-blue .editor-post-permalink input[type=radio]:checked,body.admin-color-blue .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-blue .editor-post-publish-panel input[type=radio]:checked{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .block-editor-block-list__block input[type=checkbox]:checked,body.admin-color-light .block-editor-block-list__block input[type=radio]:checked,body.admin-color-light .components-modal__content input[type=checkbox]:checked,body.admin-color-light .components-modal__content input[type=radio]:checked,body.admin-color-light .components-popover input[type=checkbox]:checked,body.admin-color-light .components-popover input[type=radio]:checked,body.admin-color-light .edit-post-sidebar input[type=checkbox]:checked,body.admin-color-light .edit-post-sidebar input[type=radio]:checked,body.admin-color-light .editor-post-permalink input[type=checkbox]:checked,body.admin-color-light .editor-post-permalink input[type=radio]:checked,body.admin-color-light .editor-post-publish-panel input[type=checkbox]:checked,body.admin-color-light .editor-post-publish-panel input[type=radio]:checked{background:#11a0d2;border-color:#11a0d2}.block-editor-block-list__block input[type=checkbox]:checked:focus,.block-editor-block-list__block input[type=radio]:checked:focus,.components-modal__content input[type=checkbox]:checked:focus,.components-modal__content input[type=radio]:checked:focus,.components-popover input[type=checkbox]:checked:focus,.components-popover input[type=radio]:checked:focus,.edit-post-sidebar input[type=checkbox]:checked:focus,.edit-post-sidebar input[type=radio]:checked:focus,.editor-post-permalink input[type=checkbox]:checked:focus,.editor-post-permalink input[type=radio]:checked:focus,.editor-post-publish-panel input[type=checkbox]:checked:focus,.editor-post-publish-panel input[type=radio]:checked:focus{box-shadow:0 0 0 2px #555d66}.block-editor-block-list__block input[type=checkbox],.components-modal__content input[type=checkbox],.components-popover input[type=checkbox],.edit-post-sidebar input[type=checkbox],.editor-post-permalink input[type=checkbox],.editor-post-publish-panel input[type=checkbox]{border-radius:2px}.block-editor-block-list__block input[type=checkbox]:checked:before,.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox]:checked:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox]:checked:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.block-editor-block-list__block input[type=checkbox]:checked:before,.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox]:checked:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox]:checked:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox]:checked:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox]:checked:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox]:checked:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.block-editor-block-list__block input[type=checkbox][aria-checked=mixed],.components-modal__content input[type=checkbox][aria-checked=mixed],.components-popover input[type=checkbox][aria-checked=mixed],.edit-post-sidebar input[type=checkbox][aria-checked=mixed],.editor-post-permalink input[type=checkbox][aria-checked=mixed],.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}body.admin-color-sunrise .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-sunrise .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c8b03c;border-color:#c8b03c}body.admin-color-ocean .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-ocean .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a3b9a2;border-color:#a3b9a2}body.admin-color-midnight .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-midnight .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#77a6b9;border-color:#77a6b9}body.admin-color-ectoplasm .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-ectoplasm .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#a7b656;border-color:#a7b656}body.admin-color-coffee .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-coffee .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#c2a68c;border-color:#c2a68c}body.admin-color-blue .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-blue .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-blue .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-blue .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-blue .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-blue .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#82b4cb;border-color:#82b4cb}body.admin-color-light .block-editor-block-list__block input[type=checkbox][aria-checked=mixed],body.admin-color-light .components-modal__content input[type=checkbox][aria-checked=mixed],body.admin-color-light .components-popover input[type=checkbox][aria-checked=mixed],body.admin-color-light .edit-post-sidebar input[type=checkbox][aria-checked=mixed],body.admin-color-light .editor-post-permalink input[type=checkbox][aria-checked=mixed],body.admin-color-light .editor-post-publish-panel input[type=checkbox][aria-checked=mixed]{background:#11a0d2;border-color:#11a0d2}.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{content:"\f460";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:before,.components-modal__content input[type=checkbox][aria-checked=mixed]:before,.components-popover input[type=checkbox][aria-checked=mixed]:before,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:before,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:before,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.block-editor-block-list__block input[type=checkbox][aria-checked=mixed]:focus,.components-modal__content input[type=checkbox][aria-checked=mixed]:focus,.components-popover input[type=checkbox][aria-checked=mixed]:focus,.edit-post-sidebar input[type=checkbox][aria-checked=mixed]:focus,.editor-post-permalink input[type=checkbox][aria-checked=mixed]:focus,.editor-post-publish-panel input[type=checkbox][aria-checked=mixed]:focus{box-shadow:0 0 0 2px #555d66}.block-editor-block-list__block input[type=radio],.components-modal__content input[type=radio],.components-popover input[type=radio],.edit-post-sidebar input[type=radio],.editor-post-permalink input[type=radio],.editor-post-publish-panel input[type=radio]{border-radius:50%}.block-editor-block-list__block input[type=radio]:checked:before,.components-modal__content input[type=radio]:checked:before,.components-popover input[type=radio]:checked:before,.edit-post-sidebar input[type=radio]:checked:before,.editor-post-permalink input[type=radio]:checked:before,.editor-post-publish-panel input[type=radio]:checked:before{margin:3px 0 0 3px;background-color:#fff}.block-editor-block-list__block input::-webkit-input-placeholder,.block-editor-block-list__block textarea::-webkit-input-placeholder,.editor-post-title input::-webkit-input-placeholder,.editor-post-title textarea::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-block-list__block input::-moz-placeholder,.block-editor-block-list__block textarea::-moz-placeholder,.editor-post-title input::-moz-placeholder,.editor-post-title textarea::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-block-list__block input:-ms-input-placeholder,.block-editor-block-list__block textarea:-ms-input-placeholder,.editor-post-title input:-ms-input-placeholder,.editor-post-title textarea:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-block-list__block input::-webkit-input-placeholder,.is-dark-theme .block-editor-block-list__block textarea::-webkit-input-placeholder,.is-dark-theme .editor-post-title input::-webkit-input-placeholder,.is-dark-theme .editor-post-title textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-block-list__block input::-moz-placeholder,.is-dark-theme .block-editor-block-list__block textarea::-moz-placeholder,.is-dark-theme .editor-post-title input::-moz-placeholder,.is-dark-theme .editor-post-title textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-block-list__block input:-ms-input-placeholder,.is-dark-theme .block-editor-block-list__block textarea:-ms-input-placeholder,.is-dark-theme .editor-post-title input:-ms-input-placeholder,.is-dark-theme .editor-post-title textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block{max-width:610px}.wp-block[data-align=wide]{max-width:1100px}.wp-block[data-align=full]{max-width:none} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/editor-styles-rtl.css b/wp-includes/css/dist/editor/editor-styles-rtl.css index 18f4bb3819..f9eb4f2ed9 100644 --- a/wp-includes/css/dist/editor/editor-styles-rtl.css +++ b/wp-includes/css/dist/editor/editor-styles-rtl.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ body { font-family: "Noto Serif", serif; font-size: 16px; diff --git a/wp-includes/css/dist/editor/editor-styles.css b/wp-includes/css/dist/editor/editor-styles.css index 18f4bb3819..f9eb4f2ed9 100644 --- a/wp-includes/css/dist/editor/editor-styles.css +++ b/wp-includes/css/dist/editor/editor-styles.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ body { font-family: "Noto Serif", serif; font-size: 16px; diff --git a/wp-includes/css/dist/editor/style-rtl.css b/wp-includes/css/dist/editor/style-rtl.css index aa9cec2c9e..49dcc3350c 100644 --- a/wp-includes/css/dist/editor/style-rtl.css +++ b/wp-includes/css/dist/editor/style-rtl.css @@ -29,10 +29,13 @@ /** * Styles that are reused verbatim in a few places */ -.editor-autocompleters__block .editor-block-icon { +/** + * Allows users to opt-out of animations via OS-level preferences. + */ +.block-editor-autocompleters__block .block-editor-block-icon { margin-left: 8px; } -.editor-autocompleters__user .editor-autocompleters__user-avatar { +.block-editor-autocompleters__user .block-editor-autocompleters__user-avatar { margin-left: 8px; flex-grow: 0; flex-shrink: 0; @@ -40,7 +43,7 @@ width: 24px; height: 24px; } -.editor-autocompleters__user .editor-autocompleters__user-name { +.block-editor-autocompleters__user .block-editor-autocompleters__user-name { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; @@ -48,7 +51,7 @@ flex-shrink: 0; flex-grow: 1; } -.editor-autocompleters__user .editor-autocompleters__user-slug { +.block-editor-autocompleters__user .block-editor-autocompleters__user-slug { margin-right: 8px; color: #8f98a1; white-space: nowrap; @@ -58,1336 +61,9 @@ flex-grow: 0; flex-shrink: 0; } -.editor-autocompleters__user:hover .editor-autocompleters__user-slug { +.block-editor-autocompleters__user:hover .block-editor-autocompleters__user-slug { color: #66c6e4; } -.editor-block-drop-zone { - border: none; - border-radius: 0; } - .editor-block-drop-zone .components-drop-zone__content, - .editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content { - display: none; } - .editor-block-drop-zone.is-close-to-bottom { - background: none; - border-bottom: 3px solid #0085ba; } - body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #d1864a; } - body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #a3b9a2; } - body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #e14d43; } - body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #a7b656; } - body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #c2a68c; } - body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #82b4cb; } - body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #0085ba; } - .editor-block-drop-zone.is-close-to-top, .editor-block-drop-zone.is-appender.is-close-to-top, .editor-block-drop-zone.is-appender.is-close-to-bottom { - background: none; - border-top: 3px solid #0085ba; - border-bottom: none; } - body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top, body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #d1864a; } - body.admin-color-ocean .editor-block-drop-zone.is-close-to-top, body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #a3b9a2; } - body.admin-color-midnight .editor-block-drop-zone.is-close-to-top, body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #e14d43; } - body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top, body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #a7b656; } - body.admin-color-coffee .editor-block-drop-zone.is-close-to-top, body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #c2a68c; } - body.admin-color-blue .editor-block-drop-zone.is-close-to-top, body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #82b4cb; } - body.admin-color-light .editor-block-drop-zone.is-close-to-top, body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #0085ba; } - -.editor-block-icon { - display: flex; - align-items: center; - justify-content: center; - width: 24px; - height: 24px; - margin: 0; - border-radius: 4px; } - .editor-block-icon.has-colors svg { - fill: currentColor; } - .editor-block-icon svg { - min-width: 20px; - min-height: 20px; - max-width: 24px; - max-height: 24px; } - -.editor-block-inspector__no-blocks { - display: block; - font-size: 13px; - background: #fff; - padding: 32px 16px; - text-align: center; } - -.editor-block-inspector__card { - display: flex; - align-items: flex-start; - margin: -16px; - padding: 16px; } - -.editor-block-inspector__card-icon { - border: 1px solid #ccd0d4; - padding: 7px; - margin-left: 10px; - height: 36px; - width: 36px; } - -.editor-block-inspector__card-content { - flex-grow: 1; } - -.editor-block-inspector__card-title { - font-weight: 500; - margin-bottom: 5px; } - -.editor-block-inspector__card-description { - font-size: 13px; } - -.editor-block-inspector__card .editor-block-icon { - margin-right: -2px; - margin-left: 10px; - padding: 0 3px; - width: 36px; - height: 24px; } - -.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar { - display: none !important; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit::before { - outline: none; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging > .editor-block-list__block-edit > * { - background: #f8f9f9; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging > .editor-block-list__block-edit > * > * { - visibility: hidden; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover, -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar { - display: none; } - -.editor-block-list__layout .editor-block-list__block.is-selected > .editor-block-list__block-edit .reusable-block-edit-panel * { - z-index: 1; } - -/** - * General layout - */ -@media (min-width: 600px) { - .editor-block-list__layout { - padding-right: 46px; - padding-left: 46px; } } - -.editor-block-list__block .editor-block-list__layout { - padding-right: 0; - padding-left: 0; - margin-right: -14px; - margin-left: -14px; } - -.editor-block-list__layout .editor-default-block-appender > .editor-default-block-appender__content, -.editor-block-list__layout > .editor-block-list__block > .editor-block-list__block-edit, -.editor-block-list__layout > .editor-block-list__layout > .editor-block-list__block > .editor-block-list__block-edit { - margin-top: 32px; - margin-bottom: 32px; } - -.editor-block-list__layout .editor-block-list__block { - position: relative; - padding-right: 14px; - padding-left: 14px; - overflow-wrap: break-word; - /** - * Notices - */ - /** - * Block outline layout - */ } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block { - padding-right: 43px; - padding-left: 43px; } } - .editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui { - margin: -10px 20px 12px 20px; - width: calc(100% - 40px); } - .editor-block-list__layout .editor-block-list__block .components-with-notices-ui { - margin: 0 0 12px 0; - width: 100%; } - .editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice { - margin-right: 0; - margin-left: 0; } - .editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { - font-size: 13px; } - .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit { - position: relative; } - .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit::before { - z-index: 0; - content: ""; - position: absolute; - outline: 1px solid transparent; - transition: outline 0.1s linear; - pointer-events: none; - left: -14px; - right: -14px; - top: -14px; - bottom: -14px; } - .editor-block-list__layout .editor-block-list__block.is-selected > .editor-block-list__block-edit::before { - outline: 1px solid rgba(145, 151, 162, 0.25); } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected > .editor-block-list__block-edit::before { - outline-color: rgba(255, 255, 255, 0.3); } - .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before { - outline: 1px solid #007cba; } - body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #837425; } - body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #5e7d5e; } - body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #497b8d; } - body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #523f6d; } - body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #59524c; } - body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #417e9B; } - body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #007cba; } - .editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected) { - opacity: 0.5; - transition: opacity 0.1s linear; } - .editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block, .editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { - opacity: 1; } - -/** - * Cross-block selection - */ - -.editor-block-list__layout .editor-block-list__block ::selection { - background-color: #b3e7fe; } - -.editor-block-list__layout .editor-block-list__block.is-multi-selected *::selection { - background-color: transparent; } - -.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before { - background: #b3e7fe; - mix-blend-mode: multiply; - top: -14px; - bottom: -14px; } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before { - mix-blend-mode: soft-light; } - -/** - * Block styles and alignments - */ -.editor-block-list__layout .editor-block-list__block.has-warning { - min-height: 36px; } - -.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit > * { - pointer-events: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } - -.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning { - pointer-events: all; } - -.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before { - outline-color: rgba(145, 151, 162, 0.25); } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before { - outline-color: rgba(255, 255, 255, 0.3); } - -.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit::after { - content: ""; - position: absolute; - background-color: rgba(248, 249, 249, 0.4); - top: -14px; - bottom: -14px; - left: -14px; - right: -14px; } - -.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit::after { - background-color: transparent; } - -.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after { - bottom: 22px; } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after { - bottom: -14px; } } - -.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter, -.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter { - opacity: 0; - animation: none; } - -.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter, -.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - -.editor-block-list__layout .editor-block-list__block.is-reusable > .editor-block-list__block-edit::before { - outline: 1px dashed rgba(145, 151, 162, 0.25); } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable > .editor-block-list__block-edit::before { - outline-color: rgba(255, 255, 255, 0.3); } - -.editor-block-list__layout .editor-block-list__block[data-align="left"], .editor-block-list__layout .editor-block-list__block[data-align="right"] { - z-index: 81; - width: 100%; - height: 0; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit { - margin-top: 0; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit::before, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit::before { - content: none; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - margin-bottom: 1px; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - width: auto; - border-bottom: 1px solid #e2e4e7; - bottom: auto; } - -.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - right: 0; - left: auto; } - -.editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - right: auto; - left: 0; } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar, - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - top: 14px; } } - -.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit { - float: left; - margin-right: 2em; } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-toolbar { - left: 14px; - right: auto; } } - -.editor-block-list__layout .editor-block-list__block[data-align="right"] > .editor-block-list__block-edit { - float: right; - margin-left: 2em; } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-toolbar { - right: 14px; - left: auto; } } - -.editor-block-list__layout .editor-block-list__block[data-align="full"], .editor-block-list__layout .editor-block-list__block[data-align="wide"] { - clear: both; - z-index: 20; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - top: -44px; - bottom: auto; - min-height: 0; - height: auto; - width: auto; - z-index: inherit; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover::before, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover::before { - content: none; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover .editor-block-mover__control, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover .editor-block-mover__control { - float: right; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__breadcrumb, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-list__breadcrumb { - left: -1px; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - display: none; } - @media (min-width: 1280px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - display: block; } } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] .editor-block-toolbar, .editor-block-list__layout .editor-block-list__block[data-align="wide"] .editor-block-toolbar { - display: inline-flex; } } - -.editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - right: -13px; } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-list__breadcrumb { - left: 0; } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] { - margin-right: -45px; - margin-left: -45px; } } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit { - margin-right: -14px; - margin-left: -14px; } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit { - margin-right: -44px; - margin-left: -44px; } } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit figure { - width: 100%; } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit::before { - right: 0; - left: 0; - border-right-width: 0; - border-left-width: 0; } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover { - right: 1px; } - -.editor-block-list__layout .editor-block-list__block[data-clear="true"] { - float: none; } - -.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone { - top: -4px; - bottom: -3px; - margin: 0 14px; } - -.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts { - display: none; } - -.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter, -.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter { - right: auto; - left: 8px; } - -/** - * Left and right side UI; Unified toolbar on Mobile - */ -.editor-block-list__block.is-multi-selected > .editor-block-mover, -.editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - position: absolute; - width: 30px; - height: 100%; - max-height: 112px; } - -.editor-block-list__block.is-multi-selected > .editor-block-mover, -.editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - top: -15px; } - -@media (min-width: 600px) { - .editor-block-list__block.is-multi-selected .editor-block-mover, .editor-block-list__block.is-selected .editor-block-mover, .editor-block-list__block.is-hovered .editor-block-mover { - z-index: 80; } } - -.editor-block-list__block.is-multi-selected > .editor-block-mover, -.editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - padding-left: 2px; - right: -45px; - display: none; } - @media (min-width: 600px) { - .editor-block-list__block.is-multi-selected > .editor-block-mover, - .editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - display: block; } } - -.editor-block-list__block.is-multi-selected > .editor-block-mover { - right: -30px; } - -.editor-block-list__block[data-align="left"].is-selected > .editor-block-list__block-edit > .editor-block-mover, .editor-block-list__block[data-align="right"].is-selected > .editor-block-list__block-edit > .editor-block-mover { - display: none; } - @media (min-width: 600px) { - .editor-block-list__block[data-align="left"].is-selected > .editor-block-list__block-edit > .editor-block-mover, .editor-block-list__block[data-align="right"].is-selected > .editor-block-list__block-edit > .editor-block-mover { - display: block; - opacity: 1; - animation: none; - width: 45px; - height: auto; - padding-bottom: 14px; - margin-top: 0; } } - -.editor-block-list__block[data-align="left"].is-hovered > .editor-block-list__block-edit > .editor-block-mover, -.editor-block-list__block[data-align="left"].is-dragging > .editor-block-list__block-edit > .editor-block-mover, .editor-block-list__block[data-align="right"].is-hovered > .editor-block-list__block-edit > .editor-block-mover, -.editor-block-list__block[data-align="right"].is-dragging > .editor-block-list__block-edit > .editor-block-mover { - display: none; } - -/** - * Mobile unified toolbar. - */ -.editor-block-list__block .editor-block-list__block-mobile-toolbar { - display: flex; - flex-direction: row; - transform: translateY(15px); - margin-top: 37px; - margin-left: -14px; - margin-right: -14px; - border-top: 1px solid #e2e4e7; - height: 37px; - box-shadow: 0 5px 10px rgba(25, 30, 35, 0.05), 0 2px 2px rgba(25, 30, 35, 0.05); } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-list__block-mobile-toolbar { - display: none; } } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-list__block-mobile-toolbar { - box-shadow: none; } } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter { - position: relative; - right: auto; - top: auto; - margin: 0; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle, - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control { - width: 36px; - height: 36px; - border-radius: 4px; - padding: 3px; - margin: 0; - justify-content: center; - align-items: center; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon, - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon { - margin: auto; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover { - display: flex; - margin-left: auto; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter, - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control { - float: right; } - -.editor-block-list__block[data-align="full"] .editor-block-list__block-mobile-toolbar { - margin-right: 0; - margin-left: 0; } - -/** - * In-Canvas Inserter - */ -.editor-block-list .editor-inserter { - margin: 8px; - cursor: move; - cursor: -webkit-grab; - cursor: grab; } - -.editor-block-list__insertion-point { - position: relative; - z-index: 6; - margin-top: -14px; } - -.editor-block-list__insertion-point-indicator { - position: absolute; - top: calc(50% - 1px); - height: 2px; - right: 0; - left: 0; - background: #0085ba; } - -body.admin-color-sunrise .editor-block-list__insertion-point-indicator{ - background: #d1864a; } - -body.admin-color-ocean .editor-block-list__insertion-point-indicator{ - background: #a3b9a2; } - -body.admin-color-midnight .editor-block-list__insertion-point-indicator{ - background: #e14d43; } - -body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{ - background: #a7b656; } - -body.admin-color-coffee .editor-block-list__insertion-point-indicator{ - background: #c2a68c; } - -body.admin-color-blue .editor-block-list__insertion-point-indicator{ - background: #82b4cb; } - -body.admin-color-light .editor-block-list__insertion-point-indicator{ - background: #0085ba; } - -.editor-block-list__insertion-point-inserter { - display: none; - position: absolute; - bottom: auto; - right: 0; - left: 0; - justify-content: center; - opacity: 0; - transition: opacity 0.1s linear 0.1s; } - @media (min-width: 480px) { - .editor-block-list__insertion-point-inserter { - display: flex; } } - .editor-block-list__insertion-point-inserter .editor-inserter__toggle { - margin-top: -4px; - border-radius: 50%; - color: #007cba; - background: #fff; - height: 36px; - width: 36px; } - .editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover { - box-shadow: none; } - .editor-block-list__insertion-point-inserter:hover, .editor-block-list__insertion-point-inserter.is-visible { - opacity: 1; } - -.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter, -.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter { - opacity: 0; - pointer-events: none; } - .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible, - .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover, - .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible { - opacity: 1; - pointer-events: auto; } - -.editor-block-list__block > .editor-block-list__insertion-point { - position: absolute; - top: -16px; - height: 28px; - bottom: auto; - right: 0; - left: 0; } - @media (min-width: 600px) { - .editor-block-list__block > .editor-block-list__insertion-point { - right: -1px; - left: -1px; } } - -.editor-block-list__block[data-align="full"] > .editor-block-list__insertion-point { - right: 0; - left: 0; } - -.editor-block-list__block .editor-block-list__block-html-textarea { - display: block; - margin: 0; - width: 100%; - border: none; - outline: none; - box-shadow: none; - resize: none; - overflow: hidden; - font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; - line-height: 150%; - transition: padding 0.2s linear; } - .editor-block-list__block .editor-block-list__block-html-textarea:focus { - box-shadow: none; } - -/** - * Block Toolbar when contextual. - */ -.editor-block-list__block .editor-block-contextual-toolbar { - z-index: 21; - white-space: nowrap; - text-align: right; - pointer-events: none; - position: absolute; - bottom: 23px; - right: -14px; - left: -14px; - border-top: 1px solid #e2e4e7; } - .editor-block-list__block .editor-block-contextual-toolbar .components-toolbar { - border-top: none; - border-bottom: none; } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-contextual-toolbar { - border-top: none; } - .editor-block-list__block .editor-block-contextual-toolbar .components-toolbar { - border-top: 1px solid #e2e4e7; - border-bottom: 1px solid #e2e4e7; } } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - margin-bottom: 1px; - margin-top: -37px; } - -.editor-block-list__block .editor-block-contextual-toolbar { - margin-right: 0; - margin-left: 0; } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-contextual-toolbar { - margin-right: -15px; - margin-left: -15px; } } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - margin-right: 15px; } - -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - margin-left: 15px; } - -.editor-block-list__block .editor-block-contextual-toolbar > * { - pointer-events: auto; } - -.editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .editor-block-contextual-toolbar { - margin-right: -28px; } - -@media (min-width: 600px) { - .editor-block-list__block .editor-block-contextual-toolbar { - bottom: auto; - right: auto; - left: auto; - box-shadow: none; - transform: translateY(-52px); } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .editor-block-list__block .editor-block-contextual-toolbar { - position: -webkit-sticky; - position: sticky; - top: 51px; } } } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - float: left; } - -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - float: right; } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - transform: translateY(-15px); } - -.editor-block-contextual-toolbar .editor-block-toolbar { - width: 100%; } - @media (min-width: 600px) { - .editor-block-contextual-toolbar .editor-block-toolbar { - width: auto; - border-left: none; - position: absolute; - right: 0; } } - -/** - * Hover label - */ -.editor-block-list__breadcrumb { - position: absolute; - line-height: 1; - z-index: 2; - left: -14px; - top: -15px; } - .editor-block-list__breadcrumb .components-toolbar { - padding: 0; - border: none; - background: transparent; - line-height: 1; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 11px; - padding: 4px 4px; - background: #007cba; - color: #fff; } - body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{ - background: #837425; } - body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{ - background: #5e7d5e; } - body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{ - background: #497b8d; } - body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{ - background: #523f6d; } - body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{ - background: #59524c; } - body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{ - background: #417e9B; } - body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{ - background: #007cba; } - .editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar { - opacity: 0; - animation: edit-post__fade-in-animation 60ms ease-out 0.5s; - animation-fill-mode: forwards; } - [data-align="left"] .editor-block-list__breadcrumb, - [data-align="right"] .editor-block-list__breadcrumb { - left: 0; - top: 0; } - -.editor-block-list__descendant-arrow::before { - content: "→"; - display: inline-block; - padding: 0 4px; } - .rtl .editor-block-list__descendant-arrow::before { - content: "←"; } - -@media (min-width: 600px) { - .editor-block-list__block::before { - bottom: 0; - content: ""; - right: -28px; - position: absolute; - left: -28px; - top: 0; } - .editor-block-list__block .editor-block-list__block::before { - right: 0; - left: 0; } - .editor-block-list__block[data-align="full"]::before { - content: none; } } - -.editor-block-list__block .editor-warning { - z-index: 5; - position: relative; - margin-left: -15px; - margin-right: -15px; - margin-bottom: -15px; - transform: translateY(-15px); - padding: 10px 14px; } - @media (min-width: 600px) { - .editor-block-list__block .editor-warning { - padding: 10px 14px; } } - -.block-list-appender > .editor-inserter { - display: block; } - -.block-list-appender__toggle { - display: flex; - align-items: center; - justify-content: center; - padding: 16px; - outline: 1px dashed #8d96a0; - width: 100%; - color: #555d66; } - .block-list-appender__toggle:hover { - outline: 1px dashed #555d66; } - -/** - * Invalid block comparison - */ -.editor-block-compare { - overflow: auto; - height: auto; } - @media (min-width: 600px) { - .editor-block-compare { - max-height: 70%; } } - -.editor-block-compare__wrapper { - display: flex; - padding-bottom: 16px; } - .editor-block-compare__wrapper > div { - display: flex; - justify-content: space-between; - flex-direction: column; - width: 50%; - padding: 0 0 0 16px; - min-width: 200px; } - .editor-block-compare__wrapper > div button { - float: left; } - .editor-block-compare__wrapper .editor-block-compare__converted { - border-right: 1px solid #ddd; - padding-right: 15px; } - .editor-block-compare__wrapper .editor-block-compare__html { - font-family: Menlo, Consolas, monaco, monospace; - font-size: 12px; - color: #23282d; - border-bottom: 1px solid #ddd; - padding-bottom: 15px; - line-height: 1.7; } - .editor-block-compare__wrapper .editor-block-compare__html span { - background-color: #e6ffed; - padding-top: 3px; - padding-bottom: 3px; } - .editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added { - background-color: #acf2bd; } - .editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed { - background-color: #d94f4f; } - .editor-block-compare__wrapper .editor-block-compare__preview { - padding: 0; - padding-top: 14px; } - .editor-block-compare__wrapper .editor-block-compare__preview p { - font-size: 12px; - margin-top: 0; } - .editor-block-compare__wrapper .editor-block-compare__action { - margin-top: 14px; } - .editor-block-compare__wrapper .editor-block-compare__heading { - font-size: 1em; - font-weight: 400; - margin: 0.67em 0; } - -.editor-block-mover { - min-height: 56px; - opacity: 0; } - .editor-block-mover.is-visible { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - @media (min-width: 600px) { - .editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .editor-block-mover { - margin-top: -8px; } } - -.editor-block-mover__control { - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - padding: 0; - width: 28px; - height: 24px; - color: rgba(14, 28, 46, 0.62); } - .editor-block-mover__control svg { - width: 28px; - height: 24px; - padding: 2px 5px; } - .is-dark-theme .editor-block-mover__control { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .wp-block .wp-block .editor-block-mover__control { - color: rgba(14, 28, 46, 0.62); } - .editor-block-mover__control[aria-disabled="true"] { - cursor: default; - pointer-events: none; - color: rgba(130, 148, 147, 0.15); } - .is-dark-theme .editor-block-mover__control[aria-disabled="true"] { - color: rgba(255, 255, 255, 0.2); } - -.editor-block-mover__control-drag-handle { - cursor: move; - cursor: -webkit-grab; - cursor: grab; - fill: currentColor; - border-radius: 4px; } - .editor-block-mover__control-drag-handle, .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { - box-shadow: none; - background: none; - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .editor-block-mover__control-drag-handle, .is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { - color: rgba(255, 255, 255, 0.75); } - .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle, .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { - color: rgba(10, 24, 41, 0.7); } - .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active { - cursor: -webkit-grabbing; - cursor: grabbing; } - -.editor-block-mover__description { - display: none; } - -@media (min-width: 600px) { - .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), .editor-block-list__layout [data-align="right"] - .editor-block-mover__control, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control { - background: #fff; - box-shadow: inset 0 0 0 1px #e2e4e7; } - .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:nth-child(-n+2), - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:nth-child(-n+2), - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:nth-child(-n+2) { - margin-bottom: -1px; } - .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:hover, .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:active, .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:focus, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:hover, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:active, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:focus, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:hover, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:active, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:focus { - z-index: 1; } } - -.editor-block-navigation__container { - padding: 7px; } - -.editor-block-navigation__label { - margin: 0 0 8px; - color: #6c7781; } - -.editor-block-navigation__list, -.editor-block-navigation__paragraph { - padding: 0; - margin: 0; } - -.editor-block-navigation__list .editor-block-navigation__list { - margin-top: 2px; - border-right: 2px solid #a2aab2; - margin-right: 1em; } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list { - margin-right: 1.5em; } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item { - position: relative; } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item::before { - position: absolute; - right: 0; - background: #a2aab2; - width: 0.5em; - height: 2px; - content: ""; - top: calc(50% - 1px); } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button { - margin-right: 0.8em; - width: calc(100% - 0.8em); } - .editor-block-navigation__list .editor-block-navigation__list > li:last-child { - position: relative; } - .editor-block-navigation__list .editor-block-navigation__list > li:last-child::after { - position: absolute; - content: ""; - background: #fff; - top: 19px; - bottom: 0; - right: -2px; - width: 2px; } - -.editor-block-navigation__item-button { - display: flex; - align-items: center; - width: 100%; - padding: 6px; - text-align: right; - color: #40464d; - border-radius: 4px; } - .editor-block-navigation__item-button .editor-block-icon { - margin-left: 6px; } - .editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .editor-block-navigation__item-button.is-selected, .editor-block-navigation__item-button.is-selected:focus { - color: #32373c; - background: #edeff0; } - -.editor-block-preview { - pointer-events: none; - padding: 10px; - overflow: hidden; - display: none; } - @media (min-width: 782px) { - .editor-block-preview { - display: block; } } - .editor-block-preview .editor-block-preview__content { - padding: 14px; - border: 1px solid #e2e4e7; - font-family: "Noto Serif", serif; } - .editor-block-preview .editor-block-preview__content > div { - transform: scale(0.9); - transform-origin: center top; - font-family: "Noto Serif", serif; } - .editor-block-preview .editor-block-preview__content > div section { - height: auto; } - .editor-block-preview .editor-block-preview__content > .reusable-block-indicator { - display: none; } - -.editor-block-preview__title { - margin-bottom: 10px; - color: #6c7781; } - -.editor-block-settings-menu__toggle .dashicon { - transform: rotate(-90deg); } - -.editor-block-settings-menu__popover::before, .editor-block-settings-menu__popover::after { - margin-right: 2px; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__content { - padding: 7px 0; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__separator { - margin-top: 8px; - margin-bottom: 8px; - margin-right: 0; - margin-left: 0; - border-top: 1px solid #e2e4e7; } - .editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child { - display: none; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__title { - display: block; - padding: 6px; - color: #6c7781; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__control { - width: 100%; - justify-content: flex-start; - background: none; - outline: none; - border-radius: 0; - color: #555d66; - text-align: right; - cursor: pointer; - border: none; - box-shadow: none; } - .editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon { - margin-left: 5px; } - -.editor-block-styles { - display: flex; - flex-wrap: wrap; - justify-content: space-between; } - -.editor-block-styles__item { - width: calc(50% - 4px); - margin: 4px 0; - flex-shrink: 0; - cursor: pointer; - overflow: hidden; - border-radius: 4px; - padding: 4px; } - .editor-block-styles__item.is-active { - color: #191e23; - box-shadow: 0 0 0 2px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; - box-shadow: 0 0 0 2px #555d66; } - .editor-block-styles__item:focus { - color: #191e23; - box-shadow: 0 0 0 2px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } - .editor-block-styles__item:hover { - background: #f3f4f5; - color: #191e23; } - -.editor-block-styles__item-preview { - outline: 1px solid transparent; - border: 1px solid rgba(25, 30, 35, 0.2); - overflow: hidden; - padding: 0; - text-align: initial; - border-radius: 4px; - display: flex; - height: 60px; - background: #fff; } - .editor-block-styles__item-preview .editor-block-preview__content { - transform: scale(0.7); - transform-origin: center center; - width: 100%; - margin: 0; - padding: 0; - overflow: visible; - min-height: auto; } - -.editor-block-styles__item-label { - text-align: center; - padding: 4px 2px; } - -.editor-block-switcher { - position: relative; - height: 36px; } - -.components-icon-button.editor-block-switcher__toggle, -.components-icon-button.editor-block-switcher__no-switcher-icon { - margin: 0; - display: block; - height: 36px; - padding: 3px; } - -.components-icon-button.editor-block-switcher__no-switcher-icon { - width: 48px; } - .components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon { - margin-left: auto; - margin-right: auto; } - -.components-button.editor-block-switcher__no-switcher-icon:disabled { - background: #f3f4f5; - border-radius: 0; - opacity: 0.84; } - .components-button.editor-block-switcher__no-switcher-icon:disabled .editor-block-icon.has-colors { - color: #555d66 !important; } - -.components-icon-button.editor-block-switcher__toggle { - width: auto; } - .components-icon-button.editor-block-switcher__toggle:active, .components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-icon-button.editor-block-switcher__toggle:not([aria-disabled="true"]):focus { - outline: none; - box-shadow: none; - background: none; - border: none; } - .components-icon-button.editor-block-switcher__toggle .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform { - width: 42px; - height: 30px; - position: relative; - margin: 0 auto; - padding: 3px; - display: flex; - align-items: center; - transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); } - .components-icon-button.editor-block-switcher__toggle .editor-block-icon::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 currentColor; - margin-right: 4px; - margin-left: 2px; } - .components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform { - margin-top: 6px; - border-radius: 4px; } - .components-icon-button.editor-block-switcher__toggle[aria-expanded="true"] .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle[aria-expanded="true"] .editor-block-switcher__transform, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform { - transform: translateY(-36px); } - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - -.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content { - min-width: 300px; - max-width: 340px; } - -@media (min-width: 782px) { - .editor-block-switcher__popover .components-popover__content { - position: relative; } - .editor-block-switcher__popover .components-popover__content .editor-block-preview { - border: 1px solid #e2e4e7; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - background: #fff; - position: absolute; - right: 100%; - top: -1px; - bottom: -1px; - width: 300px; - height: auto; } } - -.editor-block-switcher__popover .components-popover__content .components-panel__body { - border: 0; - position: relative; - z-index: 1; } - -.editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { - border-top: 1px solid #e2e4e7; } - -.editor-block-switcher__popover:not(.is-mobile) > .components-popover__content { - overflow-y: visible; } - -.editor-block-switcher__popover .editor-block-styles { - margin: 0 -3px; } - -.editor-block-switcher__popover .editor-block-types-list { - margin: 8px -8px -8px; } - -.editor-block-toolbar { - display: flex; - flex-grow: 1; - width: 100%; - overflow: auto; - position: relative; - border-right: 1px solid #e2e4e7; } - @media (min-width: 600px) { - .editor-block-toolbar { - overflow: inherit; } } - .editor-block-toolbar .components-toolbar { - border: 0; - border-top: 1px solid #e2e4e7; - border-bottom: 1px solid #e2e4e7; - border-left: 1px solid #e2e4e7; } - -.editor-block-types-list { - list-style: none; - padding: 2px 0; - overflow: hidden; - display: flex; - flex-wrap: wrap; } - -.editor-color-palette-control__color-palette { - display: inline-block; - margin-top: 0.6rem; } - -.editor-contrast-checker > .components-notice { - margin: 0; } - -.editor-default-block-appender { - clear: both; } - .editor-default-block-appender textarea.editor-default-block-appender__content { - font-family: "Noto Serif", serif; - font-size: 16px; - border: none; - background: none; - box-shadow: none; - display: block; - cursor: text; - width: 100%; - outline: 1px solid transparent; - transition: 0.2s outline; - resize: none; - padding: 0 14px 0 50px; - color: rgba(14, 28, 46, 0.62); } - .is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content { - color: rgba(255, 255, 255, 0.65); } - .editor-default-block-appender .editor-inserter__toggle:not([aria-expanded="true"]) { - opacity: 0; - transition: opacity 0.2s; } - .editor-default-block-appender:hover .editor-inserter-with-shortcuts { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - .editor-default-block-appender:hover .editor-inserter__toggle { - opacity: 1; } - .editor-default-block-appender .components-drop-zone__content-icon { - display: none; } - -.editor-block-list__empty-block-inserter, -.editor-default-block-appender .editor-inserter, -.editor-inserter-with-shortcuts { - position: absolute; - top: 0; } - .editor-block-list__empty-block-inserter .components-icon-button, - .editor-default-block-appender .editor-inserter .components-icon-button, - .editor-inserter-with-shortcuts .components-icon-button { - width: 28px; - height: 28px; - margin-left: 12px; - padding: 0; } - .editor-block-list__empty-block-inserter .editor-block-icon, - .editor-default-block-appender .editor-inserter .editor-block-icon, - .editor-inserter-with-shortcuts .editor-block-icon { - margin: auto; } - .editor-block-list__empty-block-inserter .components-icon-button svg, - .editor-default-block-appender .editor-inserter .components-icon-button svg, - .editor-inserter-with-shortcuts .components-icon-button svg { - display: block; - margin: auto; } - .editor-block-list__empty-block-inserter .editor-inserter__toggle, - .editor-default-block-appender .editor-inserter .editor-inserter__toggle, - .editor-inserter-with-shortcuts .editor-inserter__toggle { - margin-left: 0; } - -.editor-block-list__empty-block-inserter, -.editor-default-block-appender .editor-inserter { - left: 8px; } - @media (min-width: 600px) { - .editor-block-list__empty-block-inserter, - .editor-default-block-appender .editor-inserter { - right: -44px; - left: auto; } } - .editor-block-list__empty-block-inserter:disabled, - .editor-default-block-appender .editor-inserter:disabled { - display: none; } - .editor-block-list__empty-block-inserter .editor-inserter__toggle, - .editor-default-block-appender .editor-inserter .editor-inserter__toggle { - border-radius: 50%; - width: 28px; - height: 28px; - padding: 0; } - .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover), - .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover) { - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover), .is-dark-theme - .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover) { - color: rgba(255, 255, 255, 0.75); } - -.editor-block-list__side-inserter .editor-inserter-with-shortcuts, -.editor-default-block-appender .editor-inserter-with-shortcuts { - left: 14px; - display: none; - z-index: 5; } - @media (min-width: 600px) { - .editor-block-list__side-inserter .editor-inserter-with-shortcuts, - .editor-default-block-appender .editor-inserter-with-shortcuts { - left: 0; - display: flex; } } - .document-outline { margin: 20px 0; } .document-outline ul { @@ -1397,6 +73,8 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ .document-outline__item { display: flex; margin: 4px 0; } + .document-outline__item a { + text-decoration: none; } .document-outline__item .document-outline__emdash::before { color: #e2e4e7; margin-left: 4px; } @@ -1451,290 +129,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ margin-top: 60px; box-shadow: 0 3px 30px rgba(25, 30, 35, 0.2); } -.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom { - z-index: 100001; } - -.editor-inner-blocks.has-overlay::after { - content: ""; - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 120; } - -.editor-inserter-with-shortcuts { - display: flex; - align-items: center; } - .editor-inserter-with-shortcuts .components-icon-button { - border-radius: 4px; } - .editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon) { - height: 24px; - width: 24px; } - -.editor-inserter-with-shortcuts__block { - margin-left: 4px; - width: 36px; - height: 36px; - padding-top: 8px; - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .editor-inserter-with-shortcuts__block { - color: rgba(255, 255, 255, 0.75); } - -.editor-inserter { - display: inline-block; - background: none; - border: none; - padding: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - line-height: 1.4; } - @media (min-width: 782px) { - .editor-inserter { - position: relative; } } - -@media (min-width: 782px) { - .editor-inserter__popover:not(.is-mobile) > .components-popover__content { - overflow-y: visible; - height: 432px; } } - -.editor-inserter__toggle { - display: inline-flex; - align-items: center; - color: #555d66; - background: none; - cursor: pointer; - border: none; - outline: none; - transition: color 0.2s ease; } - -.editor-inserter__menu { - width: auto; - display: flex; - flex-direction: column; - height: 100%; } - @media (min-width: 782px) { - .editor-inserter__menu { - width: 400px; - position: relative; } - .editor-inserter__menu .editor-block-preview { - border: 1px solid #e2e4e7; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - background: #fff; - position: absolute; - right: 100%; - top: -1px; - bottom: -1px; - width: 300px; } } - -.editor-inserter__inline-elements { - margin-top: -1px; } - -.editor-inserter__menu.is-bottom::after { - border-bottom-color: #fff; } - -.components-popover input[type="search"].editor-inserter__search { - display: block; - margin: 16px; - padding: 11px 16px; - position: relative; - z-index: 1; - border-radius: 4px; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .components-popover input[type="search"].editor-inserter__search { - font-size: 13px; } } - .components-popover input[type="search"].editor-inserter__search:focus { - color: #191e23; - border-color: #00a0d2; - box-shadow: 0 0 0 1px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } - -.editor-inserter__results { - flex-grow: 1; - overflow: auto; - position: relative; - z-index: 1; - padding: 0 16px 16px 16px; } - .editor-inserter__results:focus { - outline: 1px dotted #555d66; } - @media (min-width: 782px) { - .editor-inserter__results { - height: 394px; } } - .editor-inserter__results [role="presentation"] + .components-panel__body { - border-top: none; } - -.editor-inserter__popover .editor-block-types-list { - margin: 0 -8px; } - -.editor-inserter__reusable-blocks-panel { - position: relative; - text-align: left; } - -.editor-inserter__manage-reusable-blocks { - margin: 16px 16px 0 0; } - -.editor-inserter__no-results { - font-style: italic; - padding: 24px; - text-align: center; } - -.editor-inserter__child-blocks { - padding: 0 16px; } - -.editor-inserter__parent-block-header { - display: flex; - align-items: center; } - .editor-inserter__parent-block-header h2 { - font-size: 13px; } - .editor-inserter__parent-block-header .editor-block-icon { - margin-left: 8px; } - -.editor-block-types-list__list-item { - display: block; - width: 33.33%; - padding: 0 4px; - margin: 0 0 12px; } - -.editor-block-types-list__item { - display: flex; - flex-direction: column; - width: 100%; - font-size: 13px; - color: #32373c; - padding: 0; - align-items: stretch; - justify-content: center; - cursor: pointer; - background: transparent; - word-break: break-word; - border-radius: 4px; - border: 1px solid transparent; - transition: all 0.05s ease-in-out; - position: relative; } - .editor-block-types-list__item:disabled { - opacity: 0.6; - cursor: default; } - .editor-block-types-list__item:not(:disabled):hover::before { - content: ""; - display: block; - background: #f3f4f5; - color: #191e23; - position: absolute; - z-index: -1; - border-radius: 4px; - top: 0; - left: 0; - bottom: 0; - right: 0; } - .editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title { - color: currentColor; } - .editor-block-types-list__item:not(:disabled):active, .editor-block-types-list__item:not(:disabled).is-active, .editor-block-types-list__item:not(:disabled):focus { - position: relative; - outline: none; - color: #191e23; - box-shadow: 0 0 0 2px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } - .editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title, .editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title, .editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title { - color: currentColor; } - -.editor-block-types-list__item-icon { - padding: 12px 20px; - border-radius: 4px; - color: #555d66; - transition: all 0.05s ease-in-out; } - .editor-block-types-list__item-icon .editor-block-icon { - margin-right: auto; - margin-left: auto; } - .editor-block-types-list__item-icon svg { - transition: all 0.15s ease-out; } - -.editor-block-types-list__item-title { - padding: 4px 2px 8px; } - -.editor-block-types-list__item-has-children .editor-block-types-list__item-icon { - background: #fff; - margin-left: 3px; - margin-bottom: 6px; - padding: 9px 20px 9px; - position: relative; - top: -2px; - right: -2px; - box-shadow: 0 0 0 1px #e2e4e7; } - -.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack { - display: block; - background: #fff; - box-shadow: 0 0 0 1px #e2e4e7; - width: 100%; - height: 100%; - position: absolute; - z-index: -1; - bottom: -6px; - left: -6px; - border-radius: 4px; } - -.editor-media-placeholder__url-input-container { - width: 100%; } - .editor-media-placeholder__url-input-container .editor-media-placeholder__button { - margin-bottom: 0; } - -.editor-media-placeholder__url-input-form { - display: flex; } - .editor-media-placeholder__url-input-form input[type="url"].editor-media-placeholder__url-input-field { - width: 100%; - flex-grow: 1; - border: none; - border-radius: 0; - margin: 2px; } - @media (min-width: 600px) { - .editor-media-placeholder__url-input-form input[type="url"].editor-media-placeholder__url-input-field { - width: 300px; } } - -.editor-media-placeholder__url-input-submit-button { - flex-shrink: 1; } - -.editor-media-placeholder__button { - margin-bottom: 0.5rem; } - .editor-media-placeholder__button .dashicon { - vertical-align: middle; - margin-bottom: 3px; } - .editor-media-placeholder__button:hover { - color: #23282d; } - -.components-form-file-upload .editor-media-placeholder__button { - margin-left: 4px; } - -.editor-multi-selection-inspector__card { - display: flex; - align-items: flex-start; - margin: -16px; - padding: 16px; } - -.editor-multi-selection-inspector__card-content { - flex-grow: 1; } - -.editor-multi-selection-inspector__card-title { - font-weight: 500; - margin-bottom: 5px; } - -.editor-multi-selection-inspector__card-description { - font-size: 13px; } - -.editor-multi-selection-inspector__card .editor-block-icon { - margin-right: -2px; - margin-left: 10px; - padding: 0 3px; - width: 36px; - height: 24px; } - .editor-page-attributes__template { margin-bottom: 10px; } .editor-page-attributes__template label, @@ -1750,26 +144,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ .editor-page-attributes__order input { width: 66px; } -.editor-panel-color-settings .component-color-indicator { - vertical-align: text-bottom; } - -.editor-panel-color-settings__panel-title .component-color-indicator { - display: inline-block; } - -.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator { - display: none; } - -.block-editor .editor-plain-text { - box-shadow: none; - font-family: inherit; - font-size: inherit; - color: inherit; - line-height: inherit; - border: none; - padding: 0; - margin: 0; - width: 100%; } - .editor-post-excerpt__textarea { width: 100%; margin-bottom: 10px; } @@ -1867,10 +241,15 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ font-size: 13px; height: 40px; white-space: nowrap; - border: 1px solid rgba(145, 151, 162, 0.25); + border: 1px solid #b5bcc2; background-clip: padding-box; + border-right: 0; + box-shadow: 3px 0 0 0 #555d66; + outline: 1px solid transparent; margin-right: -15px; margin-left: -15px; } + .is-dark-theme .editor-post-permalink { + box-shadow: 3px 0 0 0 #d7dade; } @media (min-width: 600px) { .editor-post-permalink { margin-right: -1px; @@ -2232,17 +611,19 @@ body.admin-color-light .editor-post-text-editor__link{ font-family: "Noto Serif", serif; line-height: 1.4; color: #191e23; - transition: border 0.1s ease-out; + transition: border 0.1s ease-out, box-shadow 0.1s linear; padding: 19px 14px; word-break: keep-all; border: 1px solid transparent; border-right-width: 0; border-left-width: 0; + outline: 1px solid transparent; font-size: 2.441em; font-weight: 600; } @media (min-width: 600px) { .editor-post-title__block .editor-post-title__input { - border-width: 1px; } } + border-width: 1px; + border-right-width: 0; } } .editor-post-title__block .editor-post-title__input::-webkit-input-placeholder { color: rgba(22, 36, 53, 0.55); } .editor-post-title__block .editor-post-title__input::-moz-placeholder { @@ -2250,25 +631,18 @@ body.admin-color-light .editor-post-text-editor__link{ .editor-post-title__block .editor-post-title__input:-ms-input-placeholder { color: rgba(22, 36, 53, 0.55); } .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(145, 151, 162, 0.25); } + border-color: rgba(66, 88, 99, 0.4); + box-shadow: inset -3px 0 0 0 #555d66; } .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(255, 255, 255, 0.3); } - .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover { - border-color: #007cba; } - body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #837425; } - body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #5e7d5e; } - body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #497b8d; } - body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #523f6d; } - body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #59524c; } - body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #417e9B; } - body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #007cba; } + border-color: rgba(255, 255, 255, 0.45); + box-shadow: inset -3px 0 0 0 #d7dade; } + @media (min-width: 600px) { + .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { + box-shadow: 3px 0 0 0 #555d66; } + .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { + box-shadow: 3px 0 0 0 #d7dade; } } + .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover { + box-shadow: 3px 0 0 0 #e2e4e7; } .editor-post-title__block.is-focus-mode .editor-post-title__input { opacity: 0.5; transition: opacity 0.1s linear; } @@ -2294,108 +668,6 @@ body.admin-color-light .editor-post-text-editor__link{ .editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus { color: #b52727; } -.editor-format-toolbar { - display: flex; - flex-shrink: 0; } - -.editor-format-toolbar__selection-position { - position: absolute; - transform: translateX(50%); } - -.editor-rich-text { - position: relative; } - -.editor-rich-text__editable { - margin: 0; - position: relative; - white-space: pre-wrap; } - .editor-rich-text__editable > p:first-child { - margin-top: 0; } - .editor-rich-text__editable a { - color: #007fac; } - .editor-rich-text__editable code { - padding: 2px; - border-radius: 2px; - color: #23282d; - background: #f3f4f5; - font-family: Menlo, Consolas, monaco, monospace; - font-size: inherit; } - .is-multi-selected .editor-rich-text__editable code { - background: #67cffd; } - .editor-rich-text__editable:focus { - outline: none; } - .editor-rich-text__editable:focus *[data-rich-text-format-boundary] { - border-radius: 2px; - box-shadow: 0 0 0 1px #e8eaeb; - background: #e8eaeb; - color: #191e23; } - .editor-rich-text__editable:focus a[data-rich-text-format-boundary] { - box-shadow: 0 0 0 1px #e5f5fa; - background: #e5f5fa; - color: #006589; } - .editor-rich-text__editable:focus code[data-rich-text-format-boundary] { - background: #e8eaeb; - box-shadow: 0 0 0 1px #e8eaeb; } - .editor-rich-text__editable[data-is-placeholder-visible="true"] { - position: absolute; - top: 0; - width: 100%; - margin-top: 0; - height: 100%; } - .editor-rich-text__editable[data-is-placeholder-visible="true"] > p { - margin-top: 0; } - .editor-rich-text__editable + .editor-rich-text__editable { - pointer-events: none; } - .editor-rich-text__editable + .editor-rich-text__editable, - .editor-rich-text__editable + .editor-rich-text__editable p { - opacity: 0.62; } - .editor-rich-text__editable[data-is-placeholder-visible="true"] + figcaption.editor-rich-text__editable { - opacity: 0.8; } - -.editor-rich-text__inline-toolbar { - display: flex; - justify-content: center; - position: absolute; - top: -40px; - line-height: 0; - right: 0; - left: 0; - z-index: 1; } - .editor-rich-text__inline-toolbar ul.components-toolbar { - box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } - -.editor-skip-to-selected-block { - position: absolute; - top: -9999em; } - .editor-skip-to-selected-block:focus { - height: auto; - width: auto; - display: block; - font-size: 14px; - font-weight: 600; - padding: 15px 23px 14px; - background: #f1f1f1; - color: #11a0d2; - line-height: normal; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - text-decoration: none; - outline: none; - z-index: 100000; } - body.admin-color-sunrise .editor-skip-to-selected-block:focus{ - color: #c8b03c; } - body.admin-color-ocean .editor-skip-to-selected-block:focus{ - color: #a89d8a; } - body.admin-color-midnight .editor-skip-to-selected-block:focus{ - color: #77a6b9; } - body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{ - color: #c77430; } - body.admin-color-coffee .editor-skip-to-selected-block:focus{ - color: #9fa47b; } - body.admin-color-blue .editor-skip-to-selected-block:focus{ - color: #d9ab59; } - body.admin-color-light .editor-skip-to-selected-block:focus{ - color: #c75726; } - .table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content { min-width: 380px; } @@ -2439,210 +711,3 @@ body.admin-color-light .editor-post-text-editor__link{ align-items: center; } .editor-template-validation-notice .components-button { margin-right: 5px; } - -.editor-block-list__block .editor-url-input, -.components-popover .editor-url-input, -.editor-url-input { - flex-grow: 1; - position: relative; - padding: 1px; } - .editor-block-list__block .editor-url-input input[type="text"], - .components-popover .editor-url-input input[type="text"], - .editor-url-input input[type="text"] { - width: 100%; - padding: 8px; - border: none; - border-radius: 0; - margin-right: 0; - margin-left: 0; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .editor-block-list__block .editor-url-input input[type="text"], - .components-popover .editor-url-input input[type="text"], - .editor-url-input input[type="text"] { - width: 300px; } } - @media (min-width: 600px) { - .editor-block-list__block .editor-url-input input[type="text"], - .components-popover .editor-url-input input[type="text"], - .editor-url-input input[type="text"] { - font-size: 13px; } } - .editor-block-list__block .editor-url-input input[type="text"]::-ms-clear, - .components-popover .editor-url-input input[type="text"]::-ms-clear, - .editor-url-input input[type="text"]::-ms-clear { - display: none; } - .editor-block-list__block .editor-url-input .components-spinner, - .components-popover .editor-url-input .components-spinner, - .editor-url-input .components-spinner { - position: absolute; - left: 8px; - top: 9px; - margin: 0; } - -.editor-url-input__suggestions { - max-height: 200px; - transition: all 0.15s ease-in-out; - padding: 4px 0; - width: 302px; - overflow-y: auto; } - -.editor-url-input__suggestions, -.editor-url-input .components-spinner { - display: none; } - @media (min-width: 600px) { - .editor-url-input__suggestions, - .editor-url-input .components-spinner { - display: inherit; } } - -.editor-url-input__suggestion { - padding: 4px 8px; - color: #6c7781; - display: block; - font-size: 13px; - cursor: pointer; - background: #fff; - width: 100%; - border: none; - text-align: right; - border: none; - box-shadow: none; } - .editor-url-input__suggestion:hover { - background: #e2e4e7; } - .editor-url-input__suggestion:focus, .editor-url-input__suggestion.is-selected { - background: rgb(0, 113, 158); - color: #fff; - outline: none; } - body.admin-color-sunrise .editor-url-input__suggestion:focus, body.admin-color-sunrise .editor-url-input__suggestion.is-selected{ - background: rgb(178, 114, 63); } - body.admin-color-ocean .editor-url-input__suggestion:focus, body.admin-color-ocean .editor-url-input__suggestion.is-selected{ - background: rgb(139, 157, 138); } - body.admin-color-midnight .editor-url-input__suggestion:focus, body.admin-color-midnight .editor-url-input__suggestion.is-selected{ - background: rgb(191, 65, 57); } - body.admin-color-ectoplasm .editor-url-input__suggestion:focus, body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected{ - background: rgb(142, 155, 73); } - body.admin-color-coffee .editor-url-input__suggestion:focus, body.admin-color-coffee .editor-url-input__suggestion.is-selected{ - background: rgb(165, 141, 119); } - body.admin-color-blue .editor-url-input__suggestion:focus, body.admin-color-blue .editor-url-input__suggestion.is-selected{ - background: rgb(111, 153, 173); } - body.admin-color-light .editor-url-input__suggestion:focus, body.admin-color-light .editor-url-input__suggestion.is-selected{ - background: rgb(0, 113, 158); } - -.components-toolbar > .editor-url-input__button { - position: inherit; } - -.editor-url-input__button .editor-url-input__back { - margin-left: 4px; - overflow: visible; } - .editor-url-input__button .editor-url-input__back::after { - content: ""; - position: absolute; - display: block; - width: 1px; - height: 24px; - left: -1px; - background: #e2e4e7; } - -.editor-url-input__button-modal { - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - border: 1px solid #e2e4e7; - background: #fff; } - -.editor-url-input__button-modal-line { - display: flex; - flex-direction: row; - flex-grow: 1; - flex-shrink: 1; - min-width: 0; - align-items: flex-start; } - .editor-url-input__button-modal-line .components-button { - flex-shrink: 0; - width: 36px; - height: 36px; } - -.editor-url-popover__row { - display: flex; } - -.editor-url-popover__row > :not(.editor-url-popover__settings-toggle) { - flex-grow: 1; } - -.editor-url-popover .components-icon-button { - padding: 3px; } - .editor-url-popover .components-icon-button > svg { - padding: 5px; - border-radius: 4px; - height: 30px; - width: 30px; } - .editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - box-shadow: none; } - .editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover > svg { - color: #555d66; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } - .editor-url-popover .components-icon-button:not(:disabled):focus { - box-shadow: none; } - .editor-url-popover .components-icon-button:not(:disabled):focus > svg { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - -.editor-url-popover__settings-toggle { - flex-shrink: 0; - border-radius: 0; - border-right: 1px solid #e2e4e7; - margin-right: 1px; } - .editor-url-popover__settings-toggle[aria-expanded="true"] .dashicon { - transform: rotate(-180deg); } - -.editor-url-popover__settings { - padding: 16px; - border-top: 1px solid #e2e4e7; } - .editor-url-popover__settings .components-base-control:last-child .components-base-control__field { - margin-bottom: 0; } - -.editor-warning { - display: flex; - flex-direction: row; - justify-content: space-between; - flex-wrap: nowrap; - background-color: #fff; - border: 1px solid #e2e4e7; - text-align: right; - padding: 20px; } - .has-warning.is-multi-selected .editor-warning { - background-color: transparent; } - .editor-warning .editor-warning__message { - line-height: 1.4; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; } - .editor-warning .editor-warning__contents { - display: flex; - flex-direction: row; - justify-content: space-between; - flex-wrap: wrap; - align-items: center; - width: 100%; } - .editor-warning .editor-warning__actions { - display: flex; } - .editor-warning .editor-warning__action { - margin: 0 0 0 6px; } - -.editor-warning__secondary { - margin: 3px -4px 0 0; } - .editor-warning__secondary .components-icon-button { - width: auto; - padding: 8px 2px; } - @media (min-width: 600px) { - .editor-warning__secondary { - margin-right: 4px; } - .editor-warning__secondary .components-icon-button { - padding: 8px 4px; } } - .editor-warning__secondary .components-button svg { - transform: rotate(-90deg); } - -.editor-writing-flow { - height: 100%; - display: flex; - flex-direction: column; } - -.editor-writing-flow__click-redirect { - flex-basis: 100%; - cursor: text; } diff --git a/wp-includes/css/dist/editor/style-rtl.min.css b/wp-includes/css/dist/editor/style-rtl.min.css index 9b6f0feb69..25ffe9e9d2 100644 --- a/wp-includes/css/dist/editor/style-rtl.min.css +++ b/wp-includes/css/dist/editor/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";.editor-autocompleters__block .editor-block-icon{margin-left:8px}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-right:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.editor-block-drop-zone{border:none;border-radius:0}.editor-block-drop-zone .components-drop-zone__content,.editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.editor-block-drop-zone.is-close-to-bottom{background:none;border-bottom:3px solid #0085ba}body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.editor-block-drop-zone.is-appender.is-close-to-bottom,.editor-block-drop-zone.is-appender.is-close-to-top,.editor-block-drop-zone.is-close-to-top{background:none;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.editor-block-icon.has-colors svg{fill:currentColor}.editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.editor-block-inspector__card-content{flex-grow:1}.editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-block-inspector__card-description{font-size:13px}.editor-block-inspector__card .editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar{display:none!important}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit:before{outline:none}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*{background:#f8f9f9}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*>*{visibility:hidden}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.editor-block-list__layout{padding-right:46px;padding-left:46px}}.editor-block-list__block .editor-block-list__layout{padding-right:0;padding-left:0;margin-right:-14px;margin-left:-14px}.editor-block-list__layout .editor-default-block-appender>.editor-default-block-appender__content,.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit,.editor-block-list__layout>.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.editor-block-list__layout .editor-block-list__block{position:relative;padding-right:14px;padding-left:14px;overflow-wrap:break-word}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block{padding-right:43px;padding-left:43px}}.editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px;width:calc(100% - 40px)}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit{position:relative}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit:before{z-index:0;content:"";position:absolute;outline:1px solid transparent;transition:outline .1s linear;pointer-events:none;left:-14px;right:-14px;top:-14px;bottom:-14px}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit:before{outline:1px solid rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit:before{outline-color:hsla(0,0%,100%,.3)}.editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #007cba}body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #837425}body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #5e7d5e}body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #497b8d}body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #523f6d}body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #59524c}body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #417e9b}body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #007cba}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block{opacity:1}.editor-block-list__layout .editor-block-list__block ::selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit:before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit:before{mix-blend-mode:soft-light}.editor-block-list__layout .editor-block-list__block.has-warning{min-height:36px}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning{pointer-events:all}.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit:before{outline-color:rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit:before{outline-color:hsla(0,0%,100%,.3)}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit:after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;left:-14px;right:-14px}.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit:after{background-color:transparent}.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:after{bottom:22px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:after{bottom:-14px}}.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter{opacity:0;animation:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit:before{outline:1px dashed rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit:before{outline-color:hsla(0,0%,100%,.3)}.editor-block-list__layout .editor-block-list__block[data-align=left],.editor-block-list__layout .editor-block-list__block[data-align=right]{z-index:81;width:100%;height:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit{margin-top:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit:before,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit:before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;width:auto;border-bottom:1px solid #e2e4e7;bottom:auto}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{right:0;left:auto}.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{right:auto;left:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{top:14px}}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit{float:left;margin-right:2em}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-toolbar{left:14px;right:auto}}.editor-block-list__layout .editor-block-list__block[data-align=right]>.editor-block-list__block-edit{float:right;margin-left:2em}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-toolbar{right:14px;left:auto}}.editor-block-list__layout .editor-block-list__block[data-align=full],.editor-block-list__layout .editor-block-list__block[data-align=wide]{clear:both;z-index:20}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover:before,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover:before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover .editor-block-mover__control,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover .editor-block-mover__control{float:right}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__breadcrumb,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-list__breadcrumb{left:-1px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:none}@media (min-width:1280px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:block}}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full] .editor-block-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=wide] .editor-block-toolbar{display:inline-flex}}.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{right:-13px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-list__breadcrumb{left:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]{margin-right:-45px;margin-left:-45px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-right:-14px;margin-left:-14px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-right:-44px;margin-left:-44px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit figure{width:100%}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit:before{right:0;left:0;border-right-width:0;border-left-width:0}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover{right:1px}.editor-block-list__layout .editor-block-list__block[data-clear=true]{float:none}.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts{display:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter{right:auto;left:8px}.editor-block-list__block.is-multi-selected>.editor-block-mover,.editor-block-list__block>.editor-block-list__block-edit>.editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px;top:-15px}@media (min-width:600px){.editor-block-list__block.is-hovered .editor-block-mover,.editor-block-list__block.is-multi-selected .editor-block-mover,.editor-block-list__block.is-selected .editor-block-mover{z-index:80}}.editor-block-list__block.is-multi-selected>.editor-block-mover,.editor-block-list__block>.editor-block-list__block-edit>.editor-block-mover{padding-left:2px;right:-45px;display:none}@media (min-width:600px){.editor-block-list__block.is-multi-selected>.editor-block-mover,.editor-block-list__block>.editor-block-list__block-edit>.editor-block-mover{display:block}}.editor-block-list__block.is-multi-selected>.editor-block-mover{right:-30px}.editor-block-list__block[data-align=left].is-selected>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-selected>.editor-block-list__block-edit>.editor-block-mover{display:none}@media (min-width:600px){.editor-block-list__block[data-align=left].is-selected>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-selected>.editor-block-list__block-edit>.editor-block-mover{display:block;opacity:1;animation:none;width:45px;height:auto;padding-bottom:14px;margin-top:0}}.editor-block-list__block[data-align=left].is-dragging>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=left].is-hovered>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-dragging>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-hovered>.editor-block-list__block-edit>.editor-block-mover{display:none}.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-left:-14px;margin-right:-14px;border-top:1px solid #e2e4e7;height:37px;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:none;box-shadow:none}}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter{position:relative;right:auto;top:auto;margin:0}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon{margin:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover{display:flex;margin-left:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter{float:right}.editor-block-list__block[data-align=full] .editor-block-list__block-mobile-toolbar{margin-right:0;margin-left:0}.editor-block-list .editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;right:0;left:0;background:#0085ba}body.admin-color-sunrise .editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .editor-block-list__insertion-point-indicator{background:#0085ba}.editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;right:0;left:0;justify-content:center;opacity:0;transition:opacity .1s linear .1s}@media (min-width:480px){.editor-block-list__insertion-point-inserter{display:flex}}.editor-block-list__insertion-point-inserter .editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.editor-block-list__insertion-point-inserter.is-visible,.editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.editor-block-list__block>.editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:0;left:0}@media (min-width:600px){.editor-block-list__block>.editor-block-list__insertion-point{right:-1px;left:-1px}}.editor-block-list__block[data-align=full]>.editor-block-list__insertion-point{right:0;left:0}.editor-block-list__block .editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.editor-block-list__block .editor-block-list__block-html-textarea:focus{box-shadow:none}.editor-block-list__block .editor-block-contextual-toolbar{z-index:21;white-space:nowrap;text-align:right;pointer-events:none;position:absolute;bottom:23px;right:-14px;left:-14px;border-top:1px solid #e2e4e7}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{border-top:none}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px}.editor-block-list__block .editor-block-contextual-toolbar{margin-right:0;margin-left:0}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{margin-right:-15px;margin-left:-15px}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{margin-right:15px}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-left:15px}.editor-block-list__block .editor-block-contextual-toolbar>*{pointer-events:auto}.editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.editor-block-contextual-toolbar{margin-right:-28px}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{bottom:auto;right:auto;left:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{float:left}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{float:right}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{transform:translateY(-15px)}.editor-block-contextual-toolbar .editor-block-toolbar{width:100%}@media (min-width:600px){.editor-block-contextual-toolbar .editor-block-toolbar{width:auto;border-left:none;position:absolute;right:0}}.editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;left:-14px;top:-15px}.editor-block-list__breadcrumb .components-toolbar{border:none;background:transparent;line-height:1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:11px;padding:4px;background:#007cba;color:#fff}body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{background:#837425}body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{background:#5e7d5e}body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{background:#497b8d}body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{background:#523f6d}body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{background:#59524c}body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{background:#417e9b}body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{background:#007cba}.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}[data-align=left] .editor-block-list__breadcrumb,[data-align=right] .editor-block-list__breadcrumb{left:0;top:0}.editor-block-list__descendant-arrow:before{content:"→";display:inline-block;padding:0 4px}.rtl .editor-block-list__descendant-arrow:before{content:"←"}@media (min-width:600px){.editor-block-list__block:before{bottom:0;content:"";right:-28px;position:absolute;left:-28px;top:0}.editor-block-list__block .editor-block-list__block:before{right:0;left:0}.editor-block-list__block[data-align=full]:before{content:none}}.editor-block-list__block .editor-warning{z-index:5;position:relative;margin-left:-15px;margin-right:-15px;margin-bottom:-15px;transform:translateY(-15px);padding:10px 14px}@media (min-width:600px){.editor-block-list__block .editor-warning{padding:10px 14px}}.block-list-appender>.editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.editor-block-compare{max-height:70%}}.editor-block-compare__wrapper{display:flex;padding-bottom:16px}.editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.editor-block-compare__wrapper>div button{float:left}.editor-block-compare__wrapper .editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px}.editor-block-compare__wrapper .editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.editor-block-compare__wrapper .editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added{background-color:#acf2bd}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed{background-color:#d94f4f}.editor-block-compare__wrapper .editor-block-compare__preview{padding:14px 0 0}.editor-block-compare__wrapper .editor-block-compare__preview p{font-size:12px;margin-top:0}.editor-block-compare__wrapper .editor-block-compare__action{margin-top:14px}.editor-block-compare__wrapper .editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.editor-block-mover{min-height:56px;opacity:0}.editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (min-width:600px){.editor-block-list__block:not([data-align=wide]):not([data-align=full]) .editor-block-mover{margin-top:-8px}}.editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .editor-block-mover__control{color:hsla(0,0%,100%,.65)}.is-dark-theme .wp-block .wp-block .editor-block-mover__control{color:rgba(14,28,46,.62)}.editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .editor-block-mover__control[aria-disabled=true]{color:hsla(0,0%,100%,.2)}.editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.editor-block-mover__control-drag-handle,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:none;color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-mover__control-drag-handle,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:hsla(0,0%,100%,.75)}.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle,.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(10,24,41,.7)}.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.editor-block-mover__description{display:none}@media (min-width:600px){.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.editor-block-list__layout [data-align=left] .editor-block-mover__control,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.editor-block-list__layout [data-align=right] .editor-block-mover__control,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:nth-child(-n+2),.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout [data-align=left] .editor-block-mover__control:nth-child(-n+2),.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout [data-align=right] .editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:hover,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout [data-align=left] .editor-block-mover__control:active,.editor-block-list__layout [data-align=left] .editor-block-mover__control:focus,.editor-block-list__layout [data-align=left] .editor-block-mover__control:hover,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout [data-align=right] .editor-block-mover__control:active,.editor-block-list__layout [data-align=right] .editor-block-mover__control:focus,.editor-block-list__layout [data-align=right] .editor-block-mover__control:hover{z-index:1}}.editor-block-navigation__container{padding:7px}.editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.editor-block-navigation__list,.editor-block-navigation__paragraph{padding:0;margin:0}.editor-block-navigation__list .editor-block-navigation__list{margin-top:2px;border-right:2px solid #a2aab2;margin-right:1em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list{margin-right:1.5em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item{position:relative}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item:before{position:absolute;right:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button{margin-right:.8em;width:calc(100% - .8em)}.editor-block-navigation__list .editor-block-navigation__list>li:last-child{position:relative}.editor-block-navigation__list .editor-block-navigation__list>li:last-child:after{position:absolute;content:"";background:#fff;top:19px;bottom:0;right:-2px;width:2px}.editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:right;color:#40464d;border-radius:4px}.editor-block-navigation__item-button .editor-block-icon{margin-left:6px}.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-navigation__item-button.is-selected,.editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.editor-block-preview{display:block}}.editor-block-preview .editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div section{height:auto}.editor-block-preview .editor-block-preview__content>.reusable-block-indicator{display:none}.editor-block-preview__title{margin-bottom:10px;color:#6c7781}.editor-block-settings-menu__toggle .dashicon{transform:rotate(-90deg)}.editor-block-settings-menu__popover:after,.editor-block-settings-menu__popover:before{margin-right:2px}.editor-block-settings-menu__popover .editor-block-settings-menu__content{padding:7px 0}.editor-block-settings-menu__popover .editor-block-settings-menu__separator{margin:8px 0;border-top:1px solid #e2e4e7}.editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child{display:none}.editor-block-settings-menu__popover .editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.editor-block-settings-menu__popover .editor-block-settings-menu__control{width:100%;justify-content:flex-start;background:none;outline:none;border-radius:0;color:#555d66;text-align:right;cursor:pointer;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon{margin-left:5px}.editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-styles__item:hover{background:#f3f4f5;color:#191e23}.editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.editor-block-styles__item-preview .editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.editor-block-styles__item-label{text-align:center;padding:4px 2px}.editor-block-switcher{position:relative;height:36px}.components-icon-button.editor-block-switcher__no-switcher-icon,.components-icon-button.editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon{margin-left:auto;margin-right:auto}.components-button.editor-block-switcher__no-switcher-icon:disabled{background:#f3f4f5;border-radius:0;opacity:.84}.components-button.editor-block-switcher__no-switcher-icon:disabled .editor-block-icon.has-colors{color:#555d66!important}.components-icon-button.editor-block-switcher__toggle{width:auto}.components-icon-button.editor-block-switcher__toggle:active,.components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:none;box-shadow:none;background:none;border:none}.components-icon-button.editor-block-switcher__toggle .editor-block-icon,.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165,.84,.44,1)}.components-icon-button.editor-block-switcher__toggle .editor-block-icon: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}.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-icon,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.editor-block-switcher__popover .components-popover__content{position:relative}.editor-block-switcher__popover .components-popover__content .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.editor-block-switcher__popover .editor-block-styles{margin:0 -3px}.editor-block-switcher__popover .editor-block-types-list{margin:8px -8px -8px}.editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-right:1px solid #e2e4e7}@media (min-width:600px){.editor-block-toolbar{overflow:inherit}}.editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;border-left:1px solid #e2e4e7}.editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.editor-contrast-checker>.components-notice{margin:0}.editor-default-block-appender{clear:both}.editor-default-block-appender textarea.editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;padding:0 14px 0 50px;color:rgba(14,28,46,.62)}.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.editor-default-block-appender .editor-inserter__toggle:not([aria-expanded=true]){opacity:0;transition:opacity .2s}.editor-default-block-appender:hover .editor-inserter-with-shortcuts{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.editor-default-block-appender:hover .editor-inserter__toggle{opacity:1}.editor-default-block-appender .components-drop-zone__content-icon{display:none}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter,.editor-inserter-with-shortcuts{position:absolute;top:0}.editor-block-list__empty-block-inserter .components-icon-button,.editor-default-block-appender .editor-inserter .components-icon-button,.editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-left:12px;padding:0}.editor-block-list__empty-block-inserter .editor-block-icon,.editor-default-block-appender .editor-inserter .editor-block-icon,.editor-inserter-with-shortcuts .editor-block-icon{margin:auto}.editor-block-list__empty-block-inserter .components-icon-button svg,.editor-default-block-appender .editor-inserter .components-icon-button svg,.editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle,.editor-inserter-with-shortcuts .editor-inserter__toggle{margin-left:0}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{left:8px}@media (min-width:600px){.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{right:-44px;left:auto}}.editor-block-list__empty-block-inserter:disabled,.editor-default-block-appender .editor-inserter:disabled{display:none}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle{border-radius:50%;width:28px;height:28px;padding:0}.editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.is-dark-theme .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:hsla(0,0%,100%,.75)}.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{left:14px;display:none;z-index:5}@media (min-width:600px){.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{left:0;display:flex}}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#23282d;text-align:right}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-error-boundary{max-width:610px;max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom{z-index:100001}.editor-inner-blocks.has-overlay:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;z-index:120}.editor-inserter-with-shortcuts{display:flex;align-items:center}.editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.editor-inserter-with-shortcuts__block{margin-left:4px;width:36px;height:36px;padding-top:8px;color:rgba(10,24,41,.7)}.is-dark-theme .editor-inserter-with-shortcuts__block{color:hsla(0,0%,100%,.75)}.editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.editor-inserter{position:relative}}@media (min-width:782px){.editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:none;cursor:pointer;border:none;outline:none;transition:color .2s ease}.editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-inserter__menu{width:400px;position:relative}.editor-inserter__menu .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;right:100%;top:-1px;bottom:-1px;width:300px}}.editor-inserter__inline-elements{margin-top:-1px}.editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover input[type=search].editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].editor-inserter__search{font-size:13px}}.components-popover input[type=search].editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px}.editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.editor-inserter__results{height:394px}}.editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.editor-inserter__popover .editor-block-types-list{margin:0 -8px}.editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.editor-inserter__manage-reusable-blocks{margin:16px 16px 0 0}.editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.editor-inserter__child-blocks{padding:0 16px}.editor-inserter__parent-block-header{display:flex;align-items:center}.editor-inserter__parent-block-header h2{font-size:13px}.editor-inserter__parent-block-header .editor-block-icon{margin-left:8px}.editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative}.editor-block-types-list__item:disabled{opacity:.6;cursor:default}.editor-block-types-list__item:not(:disabled):hover:before{content:"";display:block;background:#f3f4f5;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;left:0;bottom:0;right:0}.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item:not(:disabled).is-active,.editor-block-types-list__item:not(:disabled):active,.editor-block-types-list__item:not(:disabled):focus{position:relative;outline:none;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all .05s ease-in-out}.editor-block-types-list__item-icon .editor-block-icon{margin-right:auto;margin-left:auto}.editor-block-types-list__item-icon svg{transition:all .15s ease-out}.editor-block-types-list__item-title{padding:4px 2px 8px}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon{background:#fff;margin-left:3px;margin-bottom:6px;padding:9px 20px;position:relative;top:-2px;right:-2px;box-shadow:0 0 0 1px #e2e4e7}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;left:-6px;border-radius:4px}.editor-media-placeholder__url-input-container{width:100%}.editor-media-placeholder__url-input-container .editor-media-placeholder__button{margin-bottom:0}.editor-media-placeholder__url-input-form{display:flex}.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:300px}}.editor-media-placeholder__url-input-submit-button{flex-shrink:1}.editor-media-placeholder__button{margin-bottom:.5rem}.editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .editor-media-placeholder__button{margin-left:4px}.editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-multi-selection-inspector__card-content{flex-grow:1}.editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-multi-selection-inspector__card-description{font-size:13px}.editor-multi-selection-inspector__card .editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-left:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid rgba(145,151,162,.25);background-clip:padding-box;margin-right:-15px;margin-left:-15px}@media (min-width:600px){.editor-post-permalink{margin-right:-1px;margin-left:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 5px 0 10px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-left:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link:after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(270deg,hsla(0,0%,100%,0),#fff 90%);top:1px;bottom:1px;left:1px;right:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-right:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-left:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:left;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-right:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-left:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:150%;font-size:16px}@media (min-width:600px){.editor-post-text-editor{font-size:14px}}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:none;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-right:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:none;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-right:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out;padding:19px 14px;word-break:keep-all;border-color:transparent;border-style:solid;border-width:1px 0;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(145,151,162,.25)}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:hsla(0,0%,100%,.3)}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#837425}body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#5e7d5e}body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#497b8d}body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#523f6d}body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#59524c}body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#417e9b}body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;right:0;left:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{right:2px;left:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.editor-format-toolbar{display:flex;flex-shrink:0}.editor-format-toolbar__selection-position{position:absolute;transform:translateX(50%)}.editor-rich-text{position:relative}.editor-rich-text__editable{margin:0;position:relative;white-space:pre-wrap}.editor-rich-text__editable>p:first-child{margin-top:0}.editor-rich-text__editable a{color:#007fac}.editor-rich-text__editable code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .editor-rich-text__editable code{background:#67cffd}.editor-rich-text__editable:focus{outline:none}.editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.editor-rich-text__editable:focus code[data-rich-text-format-boundary]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.editor-rich-text__editable[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.editor-rich-text__editable[data-is-placeholder-visible=true]>p{margin-top:0}.editor-rich-text__editable+.editor-rich-text__editable{pointer-events:none}.editor-rich-text__editable+.editor-rich-text__editable,.editor-rich-text__editable+.editor-rich-text__editable p{opacity:.62}.editor-rich-text__editable[data-is-placeholder-visible=true]+figcaption.editor-rich-text__editable{opacity:.8}.editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;right:0;left:0;z-index:1}.editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.editor-skip-to-selected-block{position:absolute;top:-9999em}.editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .editor-skip-to-selected-block:focus{color:#c75726}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px}.components-popover .editor-url-input,.editor-block-list__block .editor-url-input,.editor-url-input{flex-grow:1;position:relative;padding:1px}.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:300px;font-size:13px}}.components-popover .editor-url-input input[type=text]::-ms-clear,.editor-block-list__block .editor-url-input input[type=text]::-ms-clear,.editor-url-input input[type=text]::-ms-clear{display:none}.components-popover .editor-url-input .components-spinner,.editor-block-list__block .editor-url-input .components-spinner,.editor-url-input .components-spinner{position:absolute;left:8px;top:9px;margin:0}.editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.editor-url-input .components-spinner,.editor-url-input__suggestions{display:none}@media (min-width:600px){.editor-url-input .components-spinner,.editor-url-input__suggestions{display:inherit}}.editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;text-align:right;border:none;box-shadow:none}.editor-url-input__suggestion:hover{background:#e2e4e7}.editor-url-input__suggestion.is-selected,.editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:none}body.admin-color-sunrise .editor-url-input__suggestion.is-selected,body.admin-color-sunrise .editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .editor-url-input__suggestion.is-selected,body.admin-color-ocean .editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .editor-url-input__suggestion.is-selected,body.admin-color-midnight .editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .editor-url-input__suggestion.is-selected,body.admin-color-coffee .editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .editor-url-input__suggestion.is-selected,body.admin-color-blue .editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .editor-url-input__suggestion.is-selected,body.admin-color-light .editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.editor-url-input__button{position:inherit}.editor-url-input__button .editor-url-input__back{margin-left:4px;overflow:visible}.editor-url-input__button .editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#e2e4e7}.editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.editor-url-popover__row{display:flex}.editor-url-popover__row>:not(.editor-url-popover__settings-toggle){flex-grow:1}.editor-url-popover .components-icon-button{padding:3px}.editor-url-popover .components-icon-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.editor-url-popover .components-icon-button:not(:disabled):focus{box-shadow:none}.editor-url-popover .components-icon-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #e2e4e7;margin-right:1px}.editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.editor-url-popover__settings{padding:16px;border-top:1px solid #e2e4e7}.editor-url-popover__settings .components-base-control:last-child .components-base-control__field{margin-bottom:0}.editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:right;padding:20px}.has-warning.is-multi-selected .editor-warning{background-color:transparent}.editor-warning .editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.editor-warning .editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.editor-warning .editor-warning__actions{display:flex}.editor-warning .editor-warning__action{margin:0 0 0 6px}.editor-warning__secondary{margin:3px -4px 0 0}.editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.editor-warning__secondary{margin-right:4px}.editor-warning__secondary .components-icon-button{padding:8px 4px}}.editor-warning__secondary .components-button svg{transform:rotate(-90deg)}.editor-writing-flow{height:100%;display:flex;flex-direction:column}.editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file +@charset "UTF-8";.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-autocompleters__user .block-editor-autocompleters__user-avatar{margin-left:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.block-editor-autocompleters__user .block-editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.block-editor-autocompleters__user .block-editor-autocompleters__user-slug{margin-right:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.block-editor-autocompleters__user:hover .block-editor-autocompleters__user-slug{color:#66c6e4}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 -1px 0 0;padding:2px 1px 2px 5px;color:#23282d;text-align:right}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-left:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-error-boundary{max-width:610px;max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-left:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:left;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-left:10px;padding-right:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-left:5px}.editor-post-locked-modal__avatar{float:right;margin:5px 5px 5px 15px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid #b5bcc2;background-clip:padding-box;border-right:0;box-shadow:3px 0 0 0 #555d66;outline:1px solid transparent;margin-right:-15px;margin-left:-15px}.is-dark-theme .editor-post-permalink{box-shadow:3px 0 0 0 #d7dade}@media (min-width:600px){.editor-post-permalink{margin-right:-1px;margin-left:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 5px 0 10px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-left:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link:after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(270deg,hsla(0,0%,100%,0),#fff 90%);top:1px;bottom:1px;left:1px;right:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-right:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-left:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-right:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:left;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-right:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-right:-16px;margin-left:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-left:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-left:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-right:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:150%;font-size:16px}@media (min-width:600px){.editor-post-text-editor{font-size:14px}}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:none;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-right:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:none;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-right:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-right:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 14px;word-break:keep-all;border-color:transparent;border-style:solid;border-width:1px 0;outline:1px solid transparent;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px 0 1px 1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(66,88,99,.4);box-shadow:inset -3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:hsla(0,0%,100%,.45);box-shadow:inset -3px 0 0 0 #d7dade}@media (min-width:600px){.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:3px 0 0 0 #d7dade}}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover{box-shadow:3px 0 0 0 #e2e4e7}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;right:0;left:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{right:2px;left:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-right:5px} \ No newline at end of file diff --git a/wp-includes/css/dist/editor/style.css b/wp-includes/css/dist/editor/style.css index 594f462169..4abe38383f 100644 --- a/wp-includes/css/dist/editor/style.css +++ b/wp-includes/css/dist/editor/style.css @@ -29,10 +29,13 @@ /** * Styles that are reused verbatim in a few places */ -.editor-autocompleters__block .editor-block-icon { +/** + * Allows users to opt-out of animations via OS-level preferences. + */ +.block-editor-autocompleters__block .block-editor-block-icon { margin-right: 8px; } -.editor-autocompleters__user .editor-autocompleters__user-avatar { +.block-editor-autocompleters__user .block-editor-autocompleters__user-avatar { margin-right: 8px; flex-grow: 0; flex-shrink: 0; @@ -40,7 +43,7 @@ width: 24px; height: 24px; } -.editor-autocompleters__user .editor-autocompleters__user-name { +.block-editor-autocompleters__user .block-editor-autocompleters__user-name { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; @@ -48,7 +51,7 @@ flex-shrink: 0; flex-grow: 1; } -.editor-autocompleters__user .editor-autocompleters__user-slug { +.block-editor-autocompleters__user .block-editor-autocompleters__user-slug { margin-left: 8px; color: #8f98a1; white-space: nowrap; @@ -58,1348 +61,9 @@ flex-grow: 0; flex-shrink: 0; } -.editor-autocompleters__user:hover .editor-autocompleters__user-slug { +.block-editor-autocompleters__user:hover .block-editor-autocompleters__user-slug { color: #66c6e4; } -.editor-block-drop-zone { - border: none; - border-radius: 0; } - .editor-block-drop-zone .components-drop-zone__content, - .editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content { - display: none; } - .editor-block-drop-zone.is-close-to-bottom { - background: none; - border-bottom: 3px solid #0085ba; } - body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #d1864a; } - body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #a3b9a2; } - body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #e14d43; } - body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #a7b656; } - body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #c2a68c; } - body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #82b4cb; } - body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{ - border-bottom: 3px solid #0085ba; } - .editor-block-drop-zone.is-close-to-top, .editor-block-drop-zone.is-appender.is-close-to-top, .editor-block-drop-zone.is-appender.is-close-to-bottom { - background: none; - border-top: 3px solid #0085ba; - border-bottom: none; } - body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top, body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #d1864a; } - body.admin-color-ocean .editor-block-drop-zone.is-close-to-top, body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #a3b9a2; } - body.admin-color-midnight .editor-block-drop-zone.is-close-to-top, body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #e14d43; } - body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top, body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #a7b656; } - body.admin-color-coffee .editor-block-drop-zone.is-close-to-top, body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #c2a68c; } - body.admin-color-blue .editor-block-drop-zone.is-close-to-top, body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #82b4cb; } - body.admin-color-light .editor-block-drop-zone.is-close-to-top, body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top, body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom{ - border-top: 3px solid #0085ba; } - -.editor-block-icon { - display: flex; - align-items: center; - justify-content: center; - width: 24px; - height: 24px; - margin: 0; - border-radius: 4px; } - .editor-block-icon.has-colors svg { - fill: currentColor; } - .editor-block-icon svg { - min-width: 20px; - min-height: 20px; - max-width: 24px; - max-height: 24px; } - -.editor-block-inspector__no-blocks { - display: block; - font-size: 13px; - background: #fff; - padding: 32px 16px; - text-align: center; } - -.editor-block-inspector__card { - display: flex; - align-items: flex-start; - margin: -16px; - padding: 16px; } - -.editor-block-inspector__card-icon { - border: 1px solid #ccd0d4; - padding: 7px; - margin-right: 10px; - height: 36px; - width: 36px; } - -.editor-block-inspector__card-content { - flex-grow: 1; } - -.editor-block-inspector__card-title { - font-weight: 500; - margin-bottom: 5px; } - -.editor-block-inspector__card-description { - font-size: 13px; } - -.editor-block-inspector__card .editor-block-icon { - margin-left: -2px; - margin-right: 10px; - padding: 0 3px; - width: 36px; - height: 24px; } - -.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar { - display: none !important; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit::before { - outline: none; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging > .editor-block-list__block-edit > * { - background: #f8f9f9; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging > .editor-block-list__block-edit > * > * { - visibility: hidden; } - -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover, -.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar { - display: none; } - -.editor-block-list__layout .editor-block-list__block.is-selected > .editor-block-list__block-edit .reusable-block-edit-panel * { - z-index: 1; } - -/** - * General layout - */ -@media (min-width: 600px) { - .editor-block-list__layout { - padding-left: 46px; - padding-right: 46px; } } - -.editor-block-list__block .editor-block-list__layout { - padding-left: 0; - padding-right: 0; - margin-left: -14px; - margin-right: -14px; } - -.editor-block-list__layout .editor-default-block-appender > .editor-default-block-appender__content, -.editor-block-list__layout > .editor-block-list__block > .editor-block-list__block-edit, -.editor-block-list__layout > .editor-block-list__layout > .editor-block-list__block > .editor-block-list__block-edit { - margin-top: 32px; - margin-bottom: 32px; } - -.editor-block-list__layout .editor-block-list__block { - position: relative; - padding-left: 14px; - padding-right: 14px; - overflow-wrap: break-word; - /** - * Notices - */ - /** - * Block outline layout - */ } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block { - padding-left: 43px; - padding-right: 43px; } } - .editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui { - margin: -10px 20px 12px 20px; - width: calc(100% - 40px); } - .editor-block-list__layout .editor-block-list__block .components-with-notices-ui { - margin: 0 0 12px 0; - width: 100%; } - .editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice { - margin-left: 0; - margin-right: 0; } - .editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { - font-size: 13px; } - .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit { - position: relative; } - .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit::before { - z-index: 0; - content: ""; - position: absolute; - outline: 1px solid transparent; - transition: outline 0.1s linear; - pointer-events: none; - right: -14px; - left: -14px; - top: -14px; - bottom: -14px; } - .editor-block-list__layout .editor-block-list__block.is-selected > .editor-block-list__block-edit::before { - outline: 1px solid rgba(145, 151, 162, 0.25); } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected > .editor-block-list__block-edit::before { - outline-color: rgba(255, 255, 255, 0.3); } - .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before { - outline: 1px solid #007cba; } - body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #837425; } - body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #5e7d5e; } - body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #497b8d; } - body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #523f6d; } - body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #59524c; } - body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #417e9B; } - body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered > .editor-block-list__block-edit::before{ - outline: 1px solid #007cba; } - .editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected) { - opacity: 0.5; - transition: opacity 0.1s linear; } - .editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block, .editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused { - opacity: 1; } - -/** - * Cross-block selection - */ - -.editor-block-list__layout .editor-block-list__block ::selection { - background-color: #b3e7fe; } - -.editor-block-list__layout .editor-block-list__block.is-multi-selected *::selection { - background-color: transparent; } - -.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before { - background: #b3e7fe; - mix-blend-mode: multiply; - top: -14px; - bottom: -14px; } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit::before { - mix-blend-mode: soft-light; } - -/** - * Block styles and alignments - */ -.editor-block-list__layout .editor-block-list__block.has-warning { - min-height: 36px; } - -.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit > * { - pointer-events: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } - -.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning { - pointer-events: all; } - -.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before { - outline-color: rgba(145, 151, 162, 0.25); } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit::before { - outline-color: rgba(255, 255, 255, 0.3); } - -.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit::after { - content: ""; - position: absolute; - background-color: rgba(248, 249, 249, 0.4); - top: -14px; - bottom: -14px; - right: -14px; - left: -14px; } - -.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit::after { - background-color: transparent; } - -.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after { - bottom: 22px; } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit::after { - bottom: -14px; } } - -.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter, -.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter { - opacity: 0; - animation: none; } - -.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter, -.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - -.editor-block-list__layout .editor-block-list__block.is-reusable > .editor-block-list__block-edit::before { - outline: 1px dashed rgba(145, 151, 162, 0.25); } - .is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable > .editor-block-list__block-edit::before { - outline-color: rgba(255, 255, 255, 0.3); } - -.editor-block-list__layout .editor-block-list__block[data-align="left"], .editor-block-list__layout .editor-block-list__block[data-align="right"] { - z-index: 81; - width: 100%; - height: 0; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit { - margin-top: 0; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit::before, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit::before { - content: none; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - margin-bottom: 1px; } - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - width: auto; - border-bottom: 1px solid #e2e4e7; - bottom: auto; } - -.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - left: 0; - right: auto; } - -.editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - left: auto; - right: 0; } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar, - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - top: 14px; } } - -.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit { - /*!rtl:begin:ignore*/ - float: left; - margin-right: 2em; - /*!rtl:end:ignore*/ } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-toolbar { - /*!rtl:begin:ignore*/ - left: 14px; - right: auto; - /*!rtl:end:ignore*/ } } - -.editor-block-list__layout .editor-block-list__block[data-align="right"] > .editor-block-list__block-edit { - /*!rtl:begin:ignore*/ - float: right; - margin-left: 2em; - /*!rtl:end:ignore*/ } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-toolbar { - /*!rtl:begin:ignore*/ - right: 14px; - left: auto; - /*!rtl:end:ignore*/ } } - -.editor-block-list__layout .editor-block-list__block[data-align="full"], .editor-block-list__layout .editor-block-list__block[data-align="wide"] { - clear: both; - z-index: 20; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - top: -44px; - bottom: auto; - min-height: 0; - height: auto; - width: auto; - z-index: inherit; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover::before, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover::before { - content: none; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover .editor-block-mover__control, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover .editor-block-mover__control { - float: left; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__breadcrumb, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-list__breadcrumb { - right: -1px; } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - display: none; } - @media (min-width: 1280px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover, .editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - display: block; } } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] .editor-block-toolbar, .editor-block-list__layout .editor-block-list__block[data-align="wide"] .editor-block-toolbar { - display: inline-flex; } } - -.editor-block-list__layout .editor-block-list__block[data-align="wide"] > .editor-block-mover { - left: -13px; } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit > .editor-block-list__breadcrumb { - right: 0; } - -@media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] { - margin-left: -45px; - margin-right: -45px; } } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit { - margin-left: -14px; - margin-right: -14px; } - @media (min-width: 600px) { - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit { - margin-left: -44px; - margin-right: -44px; } } - .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit figure { - width: 100%; } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit::before { - left: 0; - right: 0; - border-left-width: 0; - border-right-width: 0; } - -.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-mover { - left: 1px; } - -.editor-block-list__layout .editor-block-list__block[data-clear="true"] { - float: none; } - -.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone { - top: -4px; - bottom: -3px; - margin: 0 14px; } - -.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts { - display: none; } - -.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter, -.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter { - left: auto; - right: 8px; } - -/** - * Left and right side UI; Unified toolbar on Mobile - */ -.editor-block-list__block.is-multi-selected > .editor-block-mover, -.editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - position: absolute; - width: 30px; - height: 100%; - max-height: 112px; } - -.editor-block-list__block.is-multi-selected > .editor-block-mover, -.editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - top: -15px; } - -@media (min-width: 600px) { - .editor-block-list__block.is-multi-selected .editor-block-mover, .editor-block-list__block.is-selected .editor-block-mover, .editor-block-list__block.is-hovered .editor-block-mover { - z-index: 80; } } - -.editor-block-list__block.is-multi-selected > .editor-block-mover, -.editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - padding-right: 2px; - left: -45px; - display: none; } - @media (min-width: 600px) { - .editor-block-list__block.is-multi-selected > .editor-block-mover, - .editor-block-list__block > .editor-block-list__block-edit > .editor-block-mover { - display: block; } } - -.editor-block-list__block.is-multi-selected > .editor-block-mover { - left: -30px; } - -.editor-block-list__block[data-align="left"].is-selected > .editor-block-list__block-edit > .editor-block-mover, .editor-block-list__block[data-align="right"].is-selected > .editor-block-list__block-edit > .editor-block-mover { - display: none; } - @media (min-width: 600px) { - .editor-block-list__block[data-align="left"].is-selected > .editor-block-list__block-edit > .editor-block-mover, .editor-block-list__block[data-align="right"].is-selected > .editor-block-list__block-edit > .editor-block-mover { - display: block; - opacity: 1; - animation: none; - width: 45px; - height: auto; - padding-bottom: 14px; - margin-top: 0; } } - -.editor-block-list__block[data-align="left"].is-hovered > .editor-block-list__block-edit > .editor-block-mover, -.editor-block-list__block[data-align="left"].is-dragging > .editor-block-list__block-edit > .editor-block-mover, .editor-block-list__block[data-align="right"].is-hovered > .editor-block-list__block-edit > .editor-block-mover, -.editor-block-list__block[data-align="right"].is-dragging > .editor-block-list__block-edit > .editor-block-mover { - display: none; } - -/** - * Mobile unified toolbar. - */ -.editor-block-list__block .editor-block-list__block-mobile-toolbar { - display: flex; - flex-direction: row; - transform: translateY(15px); - margin-top: 37px; - margin-right: -14px; - margin-left: -14px; - border-top: 1px solid #e2e4e7; - height: 37px; - box-shadow: 0 5px 10px rgba(25, 30, 35, 0.05), 0 2px 2px rgba(25, 30, 35, 0.05); } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-list__block-mobile-toolbar { - display: none; } } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-list__block-mobile-toolbar { - box-shadow: none; } } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter { - position: relative; - left: auto; - top: auto; - margin: 0; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle, - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control { - width: 36px; - height: 36px; - border-radius: 4px; - padding: 3px; - margin: 0; - justify-content: center; - align-items: center; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon, - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon { - margin: auto; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover { - display: flex; - margin-right: auto; } - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter, - .editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control { - float: left; } - -.editor-block-list__block[data-align="full"] .editor-block-list__block-mobile-toolbar { - margin-left: 0; - margin-right: 0; } - -/** - * In-Canvas Inserter - */ -.editor-block-list .editor-inserter { - margin: 8px; - cursor: move; - cursor: -webkit-grab; - cursor: grab; } - -.editor-block-list__insertion-point { - position: relative; - z-index: 6; - margin-top: -14px; } - -.editor-block-list__insertion-point-indicator { - position: absolute; - top: calc(50% - 1px); - height: 2px; - left: 0; - right: 0; - background: #0085ba; } - -body.admin-color-sunrise .editor-block-list__insertion-point-indicator{ - background: #d1864a; } - -body.admin-color-ocean .editor-block-list__insertion-point-indicator{ - background: #a3b9a2; } - -body.admin-color-midnight .editor-block-list__insertion-point-indicator{ - background: #e14d43; } - -body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{ - background: #a7b656; } - -body.admin-color-coffee .editor-block-list__insertion-point-indicator{ - background: #c2a68c; } - -body.admin-color-blue .editor-block-list__insertion-point-indicator{ - background: #82b4cb; } - -body.admin-color-light .editor-block-list__insertion-point-indicator{ - background: #0085ba; } - -.editor-block-list__insertion-point-inserter { - display: none; - position: absolute; - bottom: auto; - left: 0; - right: 0; - justify-content: center; - opacity: 0; - transition: opacity 0.1s linear 0.1s; } - @media (min-width: 480px) { - .editor-block-list__insertion-point-inserter { - display: flex; } } - .editor-block-list__insertion-point-inserter .editor-inserter__toggle { - margin-top: -4px; - border-radius: 50%; - color: #007cba; - background: #fff; - height: 36px; - width: 36px; } - .editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled="true"]):hover { - box-shadow: none; } - .editor-block-list__insertion-point-inserter:hover, .editor-block-list__insertion-point-inserter.is-visible { - opacity: 1; } - -.edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter, -.edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter { - opacity: 0; - pointer-events: none; } - .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover, .edit-post-layout:not(.has-fixed-toolbar) .is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible, - .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter:hover, - .edit-post-layout:not(.has-fixed-toolbar) .is-focused > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter.is-visible { - opacity: 1; - pointer-events: auto; } - -.editor-block-list__block > .editor-block-list__insertion-point { - position: absolute; - top: -16px; - height: 28px; - bottom: auto; - left: 0; - right: 0; } - @media (min-width: 600px) { - .editor-block-list__block > .editor-block-list__insertion-point { - left: -1px; - right: -1px; } } - -.editor-block-list__block[data-align="full"] > .editor-block-list__insertion-point { - left: 0; - right: 0; } - -.editor-block-list__block .editor-block-list__block-html-textarea { - display: block; - margin: 0; - width: 100%; - border: none; - outline: none; - box-shadow: none; - resize: none; - overflow: hidden; - font-family: Menlo, Consolas, monaco, monospace; - font-size: 14px; - line-height: 150%; - transition: padding 0.2s linear; } - .editor-block-list__block .editor-block-list__block-html-textarea:focus { - box-shadow: none; } - -/** - * Block Toolbar when contextual. - */ -.editor-block-list__block .editor-block-contextual-toolbar { - z-index: 21; - white-space: nowrap; - text-align: left; - pointer-events: none; - position: absolute; - bottom: 23px; - left: -14px; - right: -14px; - border-top: 1px solid #e2e4e7; } - .editor-block-list__block .editor-block-contextual-toolbar .components-toolbar { - border-top: none; - border-bottom: none; } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-contextual-toolbar { - border-top: none; } - .editor-block-list__block .editor-block-contextual-toolbar .components-toolbar { - border-top: 1px solid #e2e4e7; - border-bottom: 1px solid #e2e4e7; } } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - margin-bottom: 1px; - margin-top: -37px; } - -.editor-block-list__block .editor-block-contextual-toolbar { - margin-left: 0; - margin-right: 0; } - @media (min-width: 600px) { - .editor-block-list__block .editor-block-contextual-toolbar { - margin-left: -15px; - margin-right: -15px; } } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - /*rtl:ignore*/ - margin-right: 15px; } - -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - /*rtl:ignore*/ - margin-left: 15px; } - -.editor-block-list__block .editor-block-contextual-toolbar > * { - pointer-events: auto; } - -.editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .editor-block-contextual-toolbar { - margin-left: -28px; } - -@media (min-width: 600px) { - .editor-block-list__block .editor-block-contextual-toolbar { - bottom: auto; - left: auto; - right: auto; - box-shadow: none; - transform: translateY(-52px); } - @supports ((position: -webkit-sticky) or (position: sticky)) { - .editor-block-list__block .editor-block-contextual-toolbar { - position: -webkit-sticky; - position: sticky; - top: 51px; } } } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar { - /*rtl:ignore*/ - float: left; } - -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - /*rtl:ignore*/ - float: right; } - -.editor-block-list__block[data-align="left"] .editor-block-contextual-toolbar, -.editor-block-list__block[data-align="right"] .editor-block-contextual-toolbar { - transform: translateY(-15px); } - -.editor-block-contextual-toolbar .editor-block-toolbar { - width: 100%; } - @media (min-width: 600px) { - .editor-block-contextual-toolbar .editor-block-toolbar { - width: auto; - border-right: none; - position: absolute; - left: 0; } } - -/** - * Hover label - */ -.editor-block-list__breadcrumb { - position: absolute; - line-height: 1; - z-index: 2; - right: -14px; - top: -15px; } - .editor-block-list__breadcrumb .components-toolbar { - padding: 0; - border: none; - background: transparent; - line-height: 1; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 11px; - padding: 4px 4px; - background: #007cba; - color: #fff; } - body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{ - background: #837425; } - body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{ - background: #5e7d5e; } - body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{ - background: #497b8d; } - body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{ - background: #523f6d; } - body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{ - background: #59524c; } - body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{ - background: #417e9B; } - body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{ - background: #007cba; } - .editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar { - opacity: 0; - animation: edit-post__fade-in-animation 60ms ease-out 0.5s; - animation-fill-mode: forwards; } - [data-align="left"] .editor-block-list__breadcrumb, - [data-align="right"] .editor-block-list__breadcrumb { - right: 0; - top: 0; } - -.editor-block-list__descendant-arrow::before { - content: "→"; - display: inline-block; - padding: 0 4px; } - .rtl .editor-block-list__descendant-arrow::before { - content: "←"; } - -@media (min-width: 600px) { - .editor-block-list__block::before { - bottom: 0; - content: ""; - left: -28px; - position: absolute; - right: -28px; - top: 0; } - .editor-block-list__block .editor-block-list__block::before { - left: 0; - right: 0; } - .editor-block-list__block[data-align="full"]::before { - content: none; } } - -.editor-block-list__block .editor-warning { - z-index: 5; - position: relative; - margin-right: -15px; - margin-left: -15px; - margin-bottom: -15px; - transform: translateY(-15px); - padding: 10px 14px; } - @media (min-width: 600px) { - .editor-block-list__block .editor-warning { - padding: 10px 14px; } } - -.block-list-appender > .editor-inserter { - display: block; } - -.block-list-appender__toggle { - display: flex; - align-items: center; - justify-content: center; - padding: 16px; - outline: 1px dashed #8d96a0; - width: 100%; - color: #555d66; } - .block-list-appender__toggle:hover { - outline: 1px dashed #555d66; } - -/** - * Invalid block comparison - */ -.editor-block-compare { - overflow: auto; - height: auto; } - @media (min-width: 600px) { - .editor-block-compare { - max-height: 70%; } } - -.editor-block-compare__wrapper { - display: flex; - padding-bottom: 16px; } - .editor-block-compare__wrapper > div { - display: flex; - justify-content: space-between; - flex-direction: column; - width: 50%; - padding: 0 16px 0 0; - min-width: 200px; } - .editor-block-compare__wrapper > div button { - float: right; } - .editor-block-compare__wrapper .editor-block-compare__converted { - border-left: 1px solid #ddd; - padding-left: 15px; } - .editor-block-compare__wrapper .editor-block-compare__html { - font-family: Menlo, Consolas, monaco, monospace; - font-size: 12px; - color: #23282d; - border-bottom: 1px solid #ddd; - padding-bottom: 15px; - line-height: 1.7; } - .editor-block-compare__wrapper .editor-block-compare__html span { - background-color: #e6ffed; - padding-top: 3px; - padding-bottom: 3px; } - .editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added { - background-color: #acf2bd; } - .editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed { - background-color: #d94f4f; } - .editor-block-compare__wrapper .editor-block-compare__preview { - padding: 0; - padding-top: 14px; } - .editor-block-compare__wrapper .editor-block-compare__preview p { - font-size: 12px; - margin-top: 0; } - .editor-block-compare__wrapper .editor-block-compare__action { - margin-top: 14px; } - .editor-block-compare__wrapper .editor-block-compare__heading { - font-size: 1em; - font-weight: 400; - margin: 0.67em 0; } - -.editor-block-mover { - min-height: 56px; - opacity: 0; } - .editor-block-mover.is-visible { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - @media (min-width: 600px) { - .editor-block-list__block:not([data-align="wide"]):not([data-align="full"]) .editor-block-mover { - margin-top: -8px; } } - -.editor-block-mover__control { - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - padding: 0; - width: 28px; - height: 24px; - color: rgba(14, 28, 46, 0.62); } - .editor-block-mover__control svg { - width: 28px; - height: 24px; - padding: 2px 5px; } - .is-dark-theme .editor-block-mover__control { - color: rgba(255, 255, 255, 0.65); } - .is-dark-theme .wp-block .wp-block .editor-block-mover__control { - color: rgba(14, 28, 46, 0.62); } - .editor-block-mover__control[aria-disabled="true"] { - cursor: default; - pointer-events: none; - color: rgba(130, 148, 147, 0.15); } - .is-dark-theme .editor-block-mover__control[aria-disabled="true"] { - color: rgba(255, 255, 255, 0.2); } - -.editor-block-mover__control-drag-handle { - cursor: move; - cursor: -webkit-grab; - cursor: grab; - fill: currentColor; - border-radius: 4px; } - .editor-block-mover__control-drag-handle, .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { - box-shadow: none; - background: none; - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .editor-block-mover__control-drag-handle, .is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { - color: rgba(255, 255, 255, 0.75); } - .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle, .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus { - color: rgba(10, 24, 41, 0.7); } - .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active { - cursor: -webkit-grabbing; - cursor: grabbing; } - -.editor-block-mover__description { - display: none; } - -@media (min-width: 600px) { - .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default), .editor-block-list__layout [data-align="right"] - .editor-block-mover__control, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control { - background: #fff; - box-shadow: inset 0 0 0 1px #e2e4e7; } - .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):nth-child(-n+2), .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:nth-child(-n+2), - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:nth-child(-n+2), - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:nth-child(-n+2) { - margin-bottom: -1px; } - .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, .editor-block-list__layout [data-align="right"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, - .editor-block-list__layout [data-align="left"] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):active, - .editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled="true"]):not(.is-default):focus, .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:hover, .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:active, .editor-block-list__layout [data-align="right"] - .editor-block-mover__control:focus, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:hover, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:active, - .editor-block-list__layout [data-align="left"] - .editor-block-mover__control:focus, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:hover, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:active, - .editor-block-list__layout .editor-block-list__layout - .editor-block-mover__control:focus { - z-index: 1; } } - -.editor-block-navigation__container { - padding: 7px; } - -.editor-block-navigation__label { - margin: 0 0 8px; - color: #6c7781; } - -.editor-block-navigation__list, -.editor-block-navigation__paragraph { - padding: 0; - margin: 0; } - -.editor-block-navigation__list .editor-block-navigation__list { - margin-top: 2px; - border-left: 2px solid #a2aab2; - margin-left: 1em; } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list { - margin-left: 1.5em; } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item { - position: relative; } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item::before { - position: absolute; - left: 0; - background: #a2aab2; - width: 0.5em; - height: 2px; - content: ""; - top: calc(50% - 1px); } - .editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button { - margin-left: 0.8em; - width: calc(100% - 0.8em); } - .editor-block-navigation__list .editor-block-navigation__list > li:last-child { - position: relative; } - .editor-block-navigation__list .editor-block-navigation__list > li:last-child::after { - position: absolute; - content: ""; - background: #fff; - top: 19px; - bottom: 0; - left: -2px; - width: 2px; } - -.editor-block-navigation__item-button { - display: flex; - align-items: center; - width: 100%; - padding: 6px; - text-align: left; - color: #40464d; - border-radius: 4px; } - .editor-block-navigation__item-button .editor-block-icon { - margin-right: 6px; } - .editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .editor-block-navigation__item-button.is-selected, .editor-block-navigation__item-button.is-selected:focus { - color: #32373c; - background: #edeff0; } - -.editor-block-preview { - pointer-events: none; - padding: 10px; - overflow: hidden; - display: none; } - @media (min-width: 782px) { - .editor-block-preview { - display: block; } } - .editor-block-preview .editor-block-preview__content { - padding: 14px; - border: 1px solid #e2e4e7; - font-family: "Noto Serif", serif; } - .editor-block-preview .editor-block-preview__content > div { - transform: scale(0.9); - transform-origin: center top; - font-family: "Noto Serif", serif; } - .editor-block-preview .editor-block-preview__content > div section { - height: auto; } - .editor-block-preview .editor-block-preview__content > .reusable-block-indicator { - display: none; } - -.editor-block-preview__title { - margin-bottom: 10px; - color: #6c7781; } - -.editor-block-settings-menu__toggle .dashicon { - transform: rotate(90deg); } - -.editor-block-settings-menu__popover::before, .editor-block-settings-menu__popover::after { - margin-left: 2px; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__content { - padding: 7px 0; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__separator { - margin-top: 8px; - margin-bottom: 8px; - margin-left: 0; - margin-right: 0; - border-top: 1px solid #e2e4e7; } - .editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child { - display: none; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__title { - display: block; - padding: 6px; - color: #6c7781; } - -.editor-block-settings-menu__popover .editor-block-settings-menu__control { - width: 100%; - justify-content: flex-start; - background: none; - outline: none; - border-radius: 0; - color: #555d66; - text-align: left; - cursor: pointer; - border: none; - box-shadow: none; } - .editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - background: #f3f4f5; } - .editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled="true"]) { - color: #191e23; - border: none; - box-shadow: none; - outline-offset: -2px; - outline: 1px dotted #555d66; } - .editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon { - margin-right: 5px; } - -.editor-block-styles { - display: flex; - flex-wrap: wrap; - justify-content: space-between; } - -.editor-block-styles__item { - width: calc(50% - 4px); - margin: 4px 0; - flex-shrink: 0; - cursor: pointer; - overflow: hidden; - border-radius: 4px; - padding: 4px; } - .editor-block-styles__item.is-active { - color: #191e23; - box-shadow: 0 0 0 2px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; - box-shadow: 0 0 0 2px #555d66; } - .editor-block-styles__item:focus { - color: #191e23; - box-shadow: 0 0 0 2px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } - .editor-block-styles__item:hover { - background: #f3f4f5; - color: #191e23; } - -.editor-block-styles__item-preview { - outline: 1px solid transparent; - border: 1px solid rgba(25, 30, 35, 0.2); - overflow: hidden; - padding: 0; - text-align: initial; - border-radius: 4px; - display: flex; - height: 60px; - background: #fff; } - .editor-block-styles__item-preview .editor-block-preview__content { - transform: scale(0.7); - transform-origin: center center; - width: 100%; - margin: 0; - padding: 0; - overflow: visible; - min-height: auto; } - -.editor-block-styles__item-label { - text-align: center; - padding: 4px 2px; } - -.editor-block-switcher { - position: relative; - height: 36px; } - -.components-icon-button.editor-block-switcher__toggle, -.components-icon-button.editor-block-switcher__no-switcher-icon { - margin: 0; - display: block; - height: 36px; - padding: 3px; } - -.components-icon-button.editor-block-switcher__no-switcher-icon { - width: 48px; } - .components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon { - margin-right: auto; - margin-left: auto; } - -.components-button.editor-block-switcher__no-switcher-icon:disabled { - background: #f3f4f5; - border-radius: 0; - opacity: 0.84; } - .components-button.editor-block-switcher__no-switcher-icon:disabled .editor-block-icon.has-colors { - color: #555d66 !important; } - -.components-icon-button.editor-block-switcher__toggle { - width: auto; } - .components-icon-button.editor-block-switcher__toggle:active, .components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled="true"]):hover, .components-icon-button.editor-block-switcher__toggle:not([aria-disabled="true"]):focus { - outline: none; - box-shadow: none; - background: none; - border: none; } - .components-icon-button.editor-block-switcher__toggle .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform { - width: 42px; - height: 30px; - position: relative; - margin: 0 auto; - padding: 3px; - display: flex; - align-items: center; - transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1); } - .components-icon-button.editor-block-switcher__toggle .editor-block-icon::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 currentColor; - margin-left: 4px; - margin-right: 2px; } - .components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform { - margin-top: 6px; - border-radius: 4px; } - .components-icon-button.editor-block-switcher__toggle[aria-expanded="true"] .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle[aria-expanded="true"] .editor-block-switcher__transform, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform { - transform: translateY(-36px); } - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon, - .components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - -.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content { - min-width: 300px; - max-width: 340px; } - -@media (min-width: 782px) { - .editor-block-switcher__popover .components-popover__content { - position: relative; } - .editor-block-switcher__popover .components-popover__content .editor-block-preview { - border: 1px solid #e2e4e7; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - background: #fff; - position: absolute; - left: 100%; - top: -1px; - bottom: -1px; - width: 300px; - height: auto; } } - -.editor-block-switcher__popover .components-popover__content .components-panel__body { - border: 0; - position: relative; - z-index: 1; } - -.editor-block-switcher__popover .components-popover__content .components-panel__body + .components-panel__body { - border-top: 1px solid #e2e4e7; } - -.editor-block-switcher__popover:not(.is-mobile) > .components-popover__content { - overflow-y: visible; } - -.editor-block-switcher__popover .editor-block-styles { - margin: 0 -3px; } - -.editor-block-switcher__popover .editor-block-types-list { - margin: 8px -8px -8px; } - -.editor-block-toolbar { - display: flex; - flex-grow: 1; - width: 100%; - overflow: auto; - position: relative; - border-left: 1px solid #e2e4e7; } - @media (min-width: 600px) { - .editor-block-toolbar { - overflow: inherit; } } - .editor-block-toolbar .components-toolbar { - border: 0; - border-top: 1px solid #e2e4e7; - border-bottom: 1px solid #e2e4e7; - border-right: 1px solid #e2e4e7; } - -.editor-block-types-list { - list-style: none; - padding: 2px 0; - overflow: hidden; - display: flex; - flex-wrap: wrap; } - -.editor-color-palette-control__color-palette { - display: inline-block; - margin-top: 0.6rem; } - -.editor-contrast-checker > .components-notice { - margin: 0; } - -.editor-default-block-appender { - clear: both; } - .editor-default-block-appender textarea.editor-default-block-appender__content { - font-family: "Noto Serif", serif; - font-size: 16px; - border: none; - background: none; - box-shadow: none; - display: block; - cursor: text; - width: 100%; - outline: 1px solid transparent; - transition: 0.2s outline; - resize: none; - padding: 0 50px 0 14px; - color: rgba(14, 28, 46, 0.62); } - .is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content { - color: rgba(255, 255, 255, 0.65); } - .editor-default-block-appender .editor-inserter__toggle:not([aria-expanded="true"]) { - opacity: 0; - transition: opacity 0.2s; } - .editor-default-block-appender:hover .editor-inserter-with-shortcuts { - animation: edit-post__fade-in-animation 0.2s ease-out 0s; - animation-fill-mode: forwards; } - .editor-default-block-appender:hover .editor-inserter__toggle { - opacity: 1; } - .editor-default-block-appender .components-drop-zone__content-icon { - display: none; } - -.editor-block-list__empty-block-inserter, -.editor-default-block-appender .editor-inserter, -.editor-inserter-with-shortcuts { - position: absolute; - top: 0; } - .editor-block-list__empty-block-inserter .components-icon-button, - .editor-default-block-appender .editor-inserter .components-icon-button, - .editor-inserter-with-shortcuts .components-icon-button { - width: 28px; - height: 28px; - margin-right: 12px; - padding: 0; } - .editor-block-list__empty-block-inserter .editor-block-icon, - .editor-default-block-appender .editor-inserter .editor-block-icon, - .editor-inserter-with-shortcuts .editor-block-icon { - margin: auto; } - .editor-block-list__empty-block-inserter .components-icon-button svg, - .editor-default-block-appender .editor-inserter .components-icon-button svg, - .editor-inserter-with-shortcuts .components-icon-button svg { - display: block; - margin: auto; } - .editor-block-list__empty-block-inserter .editor-inserter__toggle, - .editor-default-block-appender .editor-inserter .editor-inserter__toggle, - .editor-inserter-with-shortcuts .editor-inserter__toggle { - margin-right: 0; } - -.editor-block-list__empty-block-inserter, -.editor-default-block-appender .editor-inserter { - right: 8px; } - @media (min-width: 600px) { - .editor-block-list__empty-block-inserter, - .editor-default-block-appender .editor-inserter { - left: -44px; - right: auto; } } - .editor-block-list__empty-block-inserter:disabled, - .editor-default-block-appender .editor-inserter:disabled { - display: none; } - .editor-block-list__empty-block-inserter .editor-inserter__toggle, - .editor-default-block-appender .editor-inserter .editor-inserter__toggle { - border-radius: 50%; - width: 28px; - height: 28px; - padding: 0; } - .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover), - .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover) { - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover), .is-dark-theme - .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover) { - color: rgba(255, 255, 255, 0.75); } - -.editor-block-list__side-inserter .editor-inserter-with-shortcuts, -.editor-default-block-appender .editor-inserter-with-shortcuts { - right: 14px; - display: none; - z-index: 5; } - @media (min-width: 600px) { - .editor-block-list__side-inserter .editor-inserter-with-shortcuts, - .editor-default-block-appender .editor-inserter-with-shortcuts { - right: 0; - display: flex; } } - .document-outline { margin: 20px 0; } .document-outline ul { @@ -1409,6 +73,8 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ .document-outline__item { display: flex; margin: 4px 0; } + .document-outline__item a { + text-decoration: none; } .document-outline__item .document-outline__emdash::before { color: #e2e4e7; margin-right: 4px; } @@ -1463,290 +129,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ margin-top: 60px; box-shadow: 0 3px 30px rgba(25, 30, 35, 0.2); } -.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom { - z-index: 100001; } - -.editor-inner-blocks.has-overlay::after { - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 120; } - -.editor-inserter-with-shortcuts { - display: flex; - align-items: center; } - .editor-inserter-with-shortcuts .components-icon-button { - border-radius: 4px; } - .editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon) { - height: 24px; - width: 24px; } - -.editor-inserter-with-shortcuts__block { - margin-right: 4px; - width: 36px; - height: 36px; - padding-top: 8px; - color: rgba(10, 24, 41, 0.7); } - .is-dark-theme .editor-inserter-with-shortcuts__block { - color: rgba(255, 255, 255, 0.75); } - -.editor-inserter { - display: inline-block; - background: none; - border: none; - padding: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; - line-height: 1.4; } - @media (min-width: 782px) { - .editor-inserter { - position: relative; } } - -@media (min-width: 782px) { - .editor-inserter__popover:not(.is-mobile) > .components-popover__content { - overflow-y: visible; - height: 432px; } } - -.editor-inserter__toggle { - display: inline-flex; - align-items: center; - color: #555d66; - background: none; - cursor: pointer; - border: none; - outline: none; - transition: color 0.2s ease; } - -.editor-inserter__menu { - width: auto; - display: flex; - flex-direction: column; - height: 100%; } - @media (min-width: 782px) { - .editor-inserter__menu { - width: 400px; - position: relative; } - .editor-inserter__menu .editor-block-preview { - border: 1px solid #e2e4e7; - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - background: #fff; - position: absolute; - left: 100%; - top: -1px; - bottom: -1px; - width: 300px; } } - -.editor-inserter__inline-elements { - margin-top: -1px; } - -.editor-inserter__menu.is-bottom::after { - border-bottom-color: #fff; } - -.components-popover input[type="search"].editor-inserter__search { - display: block; - margin: 16px; - padding: 11px 16px; - position: relative; - z-index: 1; - border-radius: 4px; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .components-popover input[type="search"].editor-inserter__search { - font-size: 13px; } } - .components-popover input[type="search"].editor-inserter__search:focus { - color: #191e23; - border-color: #00a0d2; - box-shadow: 0 0 0 1px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } - -.editor-inserter__results { - flex-grow: 1; - overflow: auto; - position: relative; - z-index: 1; - padding: 0 16px 16px 16px; } - .editor-inserter__results:focus { - outline: 1px dotted #555d66; } - @media (min-width: 782px) { - .editor-inserter__results { - height: 394px; } } - .editor-inserter__results [role="presentation"] + .components-panel__body { - border-top: none; } - -.editor-inserter__popover .editor-block-types-list { - margin: 0 -8px; } - -.editor-inserter__reusable-blocks-panel { - position: relative; - text-align: right; } - -.editor-inserter__manage-reusable-blocks { - margin: 16px 0 0 16px; } - -.editor-inserter__no-results { - font-style: italic; - padding: 24px; - text-align: center; } - -.editor-inserter__child-blocks { - padding: 0 16px; } - -.editor-inserter__parent-block-header { - display: flex; - align-items: center; } - .editor-inserter__parent-block-header h2 { - font-size: 13px; } - .editor-inserter__parent-block-header .editor-block-icon { - margin-right: 8px; } - -.editor-block-types-list__list-item { - display: block; - width: 33.33%; - padding: 0 4px; - margin: 0 0 12px; } - -.editor-block-types-list__item { - display: flex; - flex-direction: column; - width: 100%; - font-size: 13px; - color: #32373c; - padding: 0; - align-items: stretch; - justify-content: center; - cursor: pointer; - background: transparent; - word-break: break-word; - border-radius: 4px; - border: 1px solid transparent; - transition: all 0.05s ease-in-out; - position: relative; } - .editor-block-types-list__item:disabled { - opacity: 0.6; - cursor: default; } - .editor-block-types-list__item:not(:disabled):hover::before { - content: ""; - display: block; - background: #f3f4f5; - color: #191e23; - position: absolute; - z-index: -1; - border-radius: 4px; - top: 0; - right: 0; - bottom: 0; - left: 0; } - .editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title { - color: currentColor; } - .editor-block-types-list__item:not(:disabled):active, .editor-block-types-list__item:not(:disabled).is-active, .editor-block-types-list__item:not(:disabled):focus { - position: relative; - outline: none; - color: #191e23; - box-shadow: 0 0 0 2px #00a0d2; - outline: 2px solid transparent; - outline-offset: -2px; } - .editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title, .editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title, .editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon, - .editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title { - color: currentColor; } - -.editor-block-types-list__item-icon { - padding: 12px 20px; - border-radius: 4px; - color: #555d66; - transition: all 0.05s ease-in-out; } - .editor-block-types-list__item-icon .editor-block-icon { - margin-left: auto; - margin-right: auto; } - .editor-block-types-list__item-icon svg { - transition: all 0.15s ease-out; } - -.editor-block-types-list__item-title { - padding: 4px 2px 8px; } - -.editor-block-types-list__item-has-children .editor-block-types-list__item-icon { - background: #fff; - margin-right: 3px; - margin-bottom: 6px; - padding: 9px 20px 9px; - position: relative; - top: -2px; - left: -2px; - box-shadow: 0 0 0 1px #e2e4e7; } - -.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack { - display: block; - background: #fff; - box-shadow: 0 0 0 1px #e2e4e7; - width: 100%; - height: 100%; - position: absolute; - z-index: -1; - bottom: -6px; - right: -6px; - border-radius: 4px; } - -.editor-media-placeholder__url-input-container { - width: 100%; } - .editor-media-placeholder__url-input-container .editor-media-placeholder__button { - margin-bottom: 0; } - -.editor-media-placeholder__url-input-form { - display: flex; } - .editor-media-placeholder__url-input-form input[type="url"].editor-media-placeholder__url-input-field { - width: 100%; - flex-grow: 1; - border: none; - border-radius: 0; - margin: 2px; } - @media (min-width: 600px) { - .editor-media-placeholder__url-input-form input[type="url"].editor-media-placeholder__url-input-field { - width: 300px; } } - -.editor-media-placeholder__url-input-submit-button { - flex-shrink: 1; } - -.editor-media-placeholder__button { - margin-bottom: 0.5rem; } - .editor-media-placeholder__button .dashicon { - vertical-align: middle; - margin-bottom: 3px; } - .editor-media-placeholder__button:hover { - color: #23282d; } - -.components-form-file-upload .editor-media-placeholder__button { - margin-right: 4px; } - -.editor-multi-selection-inspector__card { - display: flex; - align-items: flex-start; - margin: -16px; - padding: 16px; } - -.editor-multi-selection-inspector__card-content { - flex-grow: 1; } - -.editor-multi-selection-inspector__card-title { - font-weight: 500; - margin-bottom: 5px; } - -.editor-multi-selection-inspector__card-description { - font-size: 13px; } - -.editor-multi-selection-inspector__card .editor-block-icon { - margin-left: -2px; - margin-right: 10px; - padding: 0 3px; - width: 36px; - height: 24px; } - .editor-page-attributes__template { margin-bottom: 10px; } .editor-page-attributes__template label, @@ -1762,26 +144,6 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ .editor-page-attributes__order input { width: 66px; } -.editor-panel-color-settings .component-color-indicator { - vertical-align: text-bottom; } - -.editor-panel-color-settings__panel-title .component-color-indicator { - display: inline-block; } - -.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator { - display: none; } - -.block-editor .editor-plain-text { - box-shadow: none; - font-family: inherit; - font-size: inherit; - color: inherit; - line-height: inherit; - border: none; - padding: 0; - margin: 0; - width: 100%; } - .editor-post-excerpt__textarea { width: 100%; margin-bottom: 10px; } @@ -1879,10 +241,15 @@ body.admin-color-light .editor-block-list__insertion-point-indicator{ font-size: 13px; height: 40px; white-space: nowrap; - border: 1px solid rgba(145, 151, 162, 0.25); + border: 1px solid #b5bcc2; background-clip: padding-box; + border-left: 0; + box-shadow: -3px 0 0 0 #555d66; + outline: 1px solid transparent; margin-left: -15px; margin-right: -15px; } + .is-dark-theme .editor-post-permalink { + box-shadow: -3px 0 0 0 #d7dade; } @media (min-width: 600px) { .editor-post-permalink { margin-left: -1px; @@ -2244,17 +611,19 @@ body.admin-color-light .editor-post-text-editor__link{ font-family: "Noto Serif", serif; line-height: 1.4; color: #191e23; - transition: border 0.1s ease-out; + transition: border 0.1s ease-out, box-shadow 0.1s linear; padding: 19px 14px; word-break: keep-all; border: 1px solid transparent; border-left-width: 0; border-right-width: 0; + outline: 1px solid transparent; font-size: 2.441em; font-weight: 600; } @media (min-width: 600px) { .editor-post-title__block .editor-post-title__input { - border-width: 1px; } } + border-width: 1px; + border-left-width: 0; } } .editor-post-title__block .editor-post-title__input::-webkit-input-placeholder { color: rgba(22, 36, 53, 0.55); } .editor-post-title__block .editor-post-title__input::-moz-placeholder { @@ -2262,25 +631,18 @@ body.admin-color-light .editor-post-text-editor__link{ .editor-post-title__block .editor-post-title__input:-ms-input-placeholder { color: rgba(22, 36, 53, 0.55); } .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(145, 151, 162, 0.25); } + border-color: rgba(66, 88, 99, 0.4); + box-shadow: inset 3px 0 0 0 #555d66; } .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { - border-color: rgba(255, 255, 255, 0.3); } - .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover { - border-color: #007cba; } - body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #837425; } - body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #5e7d5e; } - body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #497b8d; } - body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #523f6d; } - body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #59524c; } - body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #417e9B; } - body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{ - border-color: #007cba; } + border-color: rgba(255, 255, 255, 0.45); + box-shadow: inset 3px 0 0 0 #d7dade; } + @media (min-width: 600px) { + .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { + box-shadow: -3px 0 0 0 #555d66; } + .is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input { + box-shadow: -3px 0 0 0 #d7dade; } } + .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover { + box-shadow: -3px 0 0 0 #e2e4e7; } .editor-post-title__block.is-focus-mode .editor-post-title__input { opacity: 0.5; transition: opacity 0.1s linear; } @@ -2306,108 +668,6 @@ body.admin-color-light .editor-post-text-editor__link{ .editor-post-trash.components-button:hover, .editor-post-trash.components-button:focus { color: #b52727; } -.editor-format-toolbar { - display: flex; - flex-shrink: 0; } - -.editor-format-toolbar__selection-position { - position: absolute; - transform: translateX(-50%); } - -.editor-rich-text { - position: relative; } - -.editor-rich-text__editable { - margin: 0; - position: relative; - white-space: pre-wrap; } - .editor-rich-text__editable > p:first-child { - margin-top: 0; } - .editor-rich-text__editable a { - color: #007fac; } - .editor-rich-text__editable code { - padding: 2px; - border-radius: 2px; - color: #23282d; - background: #f3f4f5; - font-family: Menlo, Consolas, monaco, monospace; - font-size: inherit; } - .is-multi-selected .editor-rich-text__editable code { - background: #67cffd; } - .editor-rich-text__editable:focus { - outline: none; } - .editor-rich-text__editable:focus *[data-rich-text-format-boundary] { - border-radius: 2px; - box-shadow: 0 0 0 1px #e8eaeb; - background: #e8eaeb; - color: #191e23; } - .editor-rich-text__editable:focus a[data-rich-text-format-boundary] { - box-shadow: 0 0 0 1px #e5f5fa; - background: #e5f5fa; - color: #006589; } - .editor-rich-text__editable:focus code[data-rich-text-format-boundary] { - background: #e8eaeb; - box-shadow: 0 0 0 1px #e8eaeb; } - .editor-rich-text__editable[data-is-placeholder-visible="true"] { - position: absolute; - top: 0; - width: 100%; - margin-top: 0; - height: 100%; } - .editor-rich-text__editable[data-is-placeholder-visible="true"] > p { - margin-top: 0; } - .editor-rich-text__editable + .editor-rich-text__editable { - pointer-events: none; } - .editor-rich-text__editable + .editor-rich-text__editable, - .editor-rich-text__editable + .editor-rich-text__editable p { - opacity: 0.62; } - .editor-rich-text__editable[data-is-placeholder-visible="true"] + figcaption.editor-rich-text__editable { - opacity: 0.8; } - -.editor-rich-text__inline-toolbar { - display: flex; - justify-content: center; - position: absolute; - top: -40px; - line-height: 0; - left: 0; - right: 0; - z-index: 1; } - .editor-rich-text__inline-toolbar ul.components-toolbar { - box-shadow: 0 2px 10px rgba(25, 30, 35, 0.1), 0 0 2px rgba(25, 30, 35, 0.1); } - -.editor-skip-to-selected-block { - position: absolute; - top: -9999em; } - .editor-skip-to-selected-block:focus { - height: auto; - width: auto; - display: block; - font-size: 14px; - font-weight: 600; - padding: 15px 23px 14px; - background: #f1f1f1; - color: #11a0d2; - line-height: normal; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - text-decoration: none; - outline: none; - z-index: 100000; } - body.admin-color-sunrise .editor-skip-to-selected-block:focus{ - color: #c8b03c; } - body.admin-color-ocean .editor-skip-to-selected-block:focus{ - color: #a89d8a; } - body.admin-color-midnight .editor-skip-to-selected-block:focus{ - color: #77a6b9; } - body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{ - color: #c77430; } - body.admin-color-coffee .editor-skip-to-selected-block:focus{ - color: #9fa47b; } - body.admin-color-blue .editor-skip-to-selected-block:focus{ - color: #d9ab59; } - body.admin-color-light .editor-skip-to-selected-block:focus{ - color: #c75726; } - .table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content { min-width: 380px; } @@ -2451,210 +711,3 @@ body.admin-color-light .editor-post-text-editor__link{ align-items: center; } .editor-template-validation-notice .components-button { margin-left: 5px; } - -.editor-block-list__block .editor-url-input, -.components-popover .editor-url-input, -.editor-url-input { - flex-grow: 1; - position: relative; - padding: 1px; } - .editor-block-list__block .editor-url-input input[type="text"], - .components-popover .editor-url-input input[type="text"], - .editor-url-input input[type="text"] { - width: 100%; - padding: 8px; - border: none; - border-radius: 0; - margin-left: 0; - margin-right: 0; - /* Fonts smaller than 16px causes mobile safari to zoom. */ - font-size: 16px; } - @media (min-width: 600px) { - .editor-block-list__block .editor-url-input input[type="text"], - .components-popover .editor-url-input input[type="text"], - .editor-url-input input[type="text"] { - width: 300px; } } - @media (min-width: 600px) { - .editor-block-list__block .editor-url-input input[type="text"], - .components-popover .editor-url-input input[type="text"], - .editor-url-input input[type="text"] { - font-size: 13px; } } - .editor-block-list__block .editor-url-input input[type="text"]::-ms-clear, - .components-popover .editor-url-input input[type="text"]::-ms-clear, - .editor-url-input input[type="text"]::-ms-clear { - display: none; } - .editor-block-list__block .editor-url-input .components-spinner, - .components-popover .editor-url-input .components-spinner, - .editor-url-input .components-spinner { - position: absolute; - right: 8px; - top: 9px; - margin: 0; } - -.editor-url-input__suggestions { - max-height: 200px; - transition: all 0.15s ease-in-out; - padding: 4px 0; - width: 302px; - overflow-y: auto; } - -.editor-url-input__suggestions, -.editor-url-input .components-spinner { - display: none; } - @media (min-width: 600px) { - .editor-url-input__suggestions, - .editor-url-input .components-spinner { - display: inherit; } } - -.editor-url-input__suggestion { - padding: 4px 8px; - color: #6c7781; - display: block; - font-size: 13px; - cursor: pointer; - background: #fff; - width: 100%; - border: none; - text-align: left; - border: none; - box-shadow: none; } - .editor-url-input__suggestion:hover { - background: #e2e4e7; } - .editor-url-input__suggestion:focus, .editor-url-input__suggestion.is-selected { - background: rgb(0, 113, 158); - color: #fff; - outline: none; } - body.admin-color-sunrise .editor-url-input__suggestion:focus, body.admin-color-sunrise .editor-url-input__suggestion.is-selected{ - background: rgb(178, 114, 63); } - body.admin-color-ocean .editor-url-input__suggestion:focus, body.admin-color-ocean .editor-url-input__suggestion.is-selected{ - background: rgb(139, 157, 138); } - body.admin-color-midnight .editor-url-input__suggestion:focus, body.admin-color-midnight .editor-url-input__suggestion.is-selected{ - background: rgb(191, 65, 57); } - body.admin-color-ectoplasm .editor-url-input__suggestion:focus, body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected{ - background: rgb(142, 155, 73); } - body.admin-color-coffee .editor-url-input__suggestion:focus, body.admin-color-coffee .editor-url-input__suggestion.is-selected{ - background: rgb(165, 141, 119); } - body.admin-color-blue .editor-url-input__suggestion:focus, body.admin-color-blue .editor-url-input__suggestion.is-selected{ - background: rgb(111, 153, 173); } - body.admin-color-light .editor-url-input__suggestion:focus, body.admin-color-light .editor-url-input__suggestion.is-selected{ - background: rgb(0, 113, 158); } - -.components-toolbar > .editor-url-input__button { - position: inherit; } - -.editor-url-input__button .editor-url-input__back { - margin-right: 4px; - overflow: visible; } - .editor-url-input__button .editor-url-input__back::after { - content: ""; - position: absolute; - display: block; - width: 1px; - height: 24px; - right: -1px; - background: #e2e4e7; } - -.editor-url-input__button-modal { - box-shadow: 0 3px 30px rgba(25, 30, 35, 0.1); - border: 1px solid #e2e4e7; - background: #fff; } - -.editor-url-input__button-modal-line { - display: flex; - flex-direction: row; - flex-grow: 1; - flex-shrink: 1; - min-width: 0; - align-items: flex-start; } - .editor-url-input__button-modal-line .components-button { - flex-shrink: 0; - width: 36px; - height: 36px; } - -.editor-url-popover__row { - display: flex; } - -.editor-url-popover__row > :not(.editor-url-popover__settings-toggle) { - flex-grow: 1; } - -.editor-url-popover .components-icon-button { - padding: 3px; } - .editor-url-popover .components-icon-button > svg { - padding: 5px; - border-radius: 4px; - height: 30px; - width: 30px; } - .editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { - box-shadow: none; } - .editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover > svg { - color: #555d66; - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; } - .editor-url-popover .components-icon-button:not(:disabled):focus { - box-shadow: none; } - .editor-url-popover .components-icon-button:not(:disabled):focus > svg { - box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff; - outline: 2px solid transparent; - outline-offset: -2px; } - -.editor-url-popover__settings-toggle { - flex-shrink: 0; - border-radius: 0; - border-left: 1px solid #e2e4e7; - margin-left: 1px; } - .editor-url-popover__settings-toggle[aria-expanded="true"] .dashicon { - transform: rotate(180deg); } - -.editor-url-popover__settings { - padding: 16px; - border-top: 1px solid #e2e4e7; } - .editor-url-popover__settings .components-base-control:last-child .components-base-control__field { - margin-bottom: 0; } - -.editor-warning { - display: flex; - flex-direction: row; - justify-content: space-between; - flex-wrap: nowrap; - background-color: #fff; - border: 1px solid #e2e4e7; - text-align: left; - padding: 20px; } - .has-warning.is-multi-selected .editor-warning { - background-color: transparent; } - .editor-warning .editor-warning__message { - line-height: 1.4; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - font-size: 13px; } - .editor-warning .editor-warning__contents { - display: flex; - flex-direction: row; - justify-content: space-between; - flex-wrap: wrap; - align-items: center; - width: 100%; } - .editor-warning .editor-warning__actions { - display: flex; } - .editor-warning .editor-warning__action { - margin: 0 6px 0 0; } - -.editor-warning__secondary { - margin: 3px 0 0 -4px; } - .editor-warning__secondary .components-icon-button { - width: auto; - padding: 8px 2px; } - @media (min-width: 600px) { - .editor-warning__secondary { - margin-left: 4px; } - .editor-warning__secondary .components-icon-button { - padding: 8px 4px; } } - .editor-warning__secondary .components-button svg { - transform: rotate(90deg); } - -.editor-writing-flow { - height: 100%; - display: flex; - flex-direction: column; } - -.editor-writing-flow__click-redirect { - flex-basis: 100%; - cursor: text; } diff --git a/wp-includes/css/dist/editor/style.min.css b/wp-includes/css/dist/editor/style.min.css index 3d285c74cf..fa608749da 100644 --- a/wp-includes/css/dist/editor/style.min.css +++ b/wp-includes/css/dist/editor/style.min.css @@ -1,9 +1 @@ -@charset "UTF-8";.editor-autocompleters__block .editor-block-icon{margin-right:8px}.editor-autocompleters__user .editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.editor-autocompleters__user .editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.editor-autocompleters__user .editor-autocompleters__user-slug{margin-left:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:#66c6e4}.editor-block-drop-zone{border:none;border-radius:0}.editor-block-drop-zone .components-drop-zone__content,.editor-block-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.editor-block-drop-zone.is-close-to-bottom{background:none;border-bottom:3px solid #0085ba}body.admin-color-sunrise .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-close-to-bottom{border-bottom:3px solid #0085ba}.editor-block-drop-zone.is-appender.is-close-to-bottom,.editor-block-drop-zone.is-appender.is-close-to-top,.editor-block-drop-zone.is-close-to-top{background:none;border-top:3px solid #0085ba;border-bottom:none}body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-sunrise .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-sunrise .editor-block-drop-zone.is-close-to-top{border-top:3px solid #d1864a}body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ocean .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ocean .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a3b9a2}body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-midnight .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-midnight .editor-block-drop-zone.is-close-to-top{border-top:3px solid #e14d43}body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-ectoplasm .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-ectoplasm .editor-block-drop-zone.is-close-to-top{border-top:3px solid #a7b656}body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-coffee .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-coffee .editor-block-drop-zone.is-close-to-top{border-top:3px solid #c2a68c}body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-blue .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-blue .editor-block-drop-zone.is-close-to-top{border-top:3px solid #82b4cb}body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-bottom,body.admin-color-light .editor-block-drop-zone.is-appender.is-close-to-top,body.admin-color-light .editor-block-drop-zone.is-close-to-top{border-top:3px solid #0085ba}.editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border-radius:4px}.editor-block-icon.has-colors svg{fill:currentColor}.editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.editor-block-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-block-inspector__card-icon{border:1px solid #ccd0d4;padding:7px;margin-right:10px;height:36px;width:36px}.editor-block-inspector__card-content{flex-grow:1}.editor-block-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-block-inspector__card-description{font-size:13px}.editor-block-inspector__card .editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.editor-block-list__layout .components-draggable__clone .editor-block-contextual-toolbar{display:none!important}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-list__block-edit:before{outline:none}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*{background:#f8f9f9}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging>.editor-block-list__block-edit>*>*{visibility:hidden}.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block.is-selected.is-dragging .editor-block-mover{display:none}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit .reusable-block-edit-panel *{z-index:1}@media (min-width:600px){.editor-block-list__layout{padding-left:46px;padding-right:46px}}.editor-block-list__block .editor-block-list__layout{padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px}.editor-block-list__layout .editor-default-block-appender>.editor-default-block-appender__content,.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit,.editor-block-list__layout>.editor-block-list__layout>.editor-block-list__block>.editor-block-list__block-edit{margin-top:32px;margin-bottom:32px}.editor-block-list__layout .editor-block-list__block{position:relative;padding-left:14px;padding-right:14px;overflow-wrap:break-word}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block{padding-left:43px;padding-right:43px}}.editor-block-list__layout .editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 20px 12px;width:calc(100% - 40px)}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.editor-block-list__layout .editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit{position:relative}.editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit:before{z-index:0;content:"";position:absolute;outline:1px solid transparent;transition:outline .1s linear;pointer-events:none;right:-14px;left:-14px;top:-14px;bottom:-14px}.editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit:before{outline:1px solid rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-selected>.editor-block-list__block-edit:before{outline-color:hsla(0,0%,100%,.3)}.editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #007cba}body.admin-color-sunrise .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #837425}body.admin-color-ocean .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #5e7d5e}body.admin-color-midnight .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #497b8d}body.admin-color-ectoplasm .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #523f6d}body.admin-color-coffee .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #59524c}body.admin-color-blue .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #417e9b}body.admin-color-light .editor-block-list__layout .editor-block-list__block.is-hovered>.editor-block-list__block-edit:before{outline:1px solid #007cba}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.editor-block-list__layout .editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .editor-block-list__block{opacity:1}.editor-block-list__layout .editor-block-list__block ::selection{background-color:#b3e7fe}.editor-block-list__layout .editor-block-list__block.is-multi-selected ::selection{background-color:transparent}.editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit:before{background:#b3e7fe;mix-blend-mode:multiply;top:-14px;bottom:-14px}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-multi-selected .editor-block-list__block-edit:before{mix-blend-mode:soft-light}.editor-block-list__layout .editor-block-list__block.has-warning{min-height:36px}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit .editor-warning{pointer-events:all}.editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit:before{outline-color:rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.has-warning:not(.is-hovered) .editor-block-list__block-edit:before{outline-color:hsla(0,0%,100%,.3)}.editor-block-list__layout .editor-block-list__block.has-warning .editor-block-list__block-edit:after{content:"";position:absolute;background-color:rgba(248,249,249,.4);top:-14px;bottom:-14px;right:-14px;left:-14px}.editor-block-list__layout .editor-block-list__block.has-warning.is-multi-selected .editor-block-list__block-edit:after{background-color:transparent}.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:after{bottom:22px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block.has-warning.is-selected .editor-block-list__block-edit:after{bottom:-14px}}.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block.is-typing .editor-block-list__side-inserter{opacity:0;animation:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__side-inserter{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit:before{outline:1px dashed rgba(145,151,162,.25)}.is-dark-theme .editor-block-list__layout .editor-block-list__block.is-reusable>.editor-block-list__block-edit:before{outline-color:hsla(0,0%,100%,.3)}.editor-block-list__layout .editor-block-list__block[data-align=left],.editor-block-list__layout .editor-block-list__block[data-align=right]{z-index:81;width:100%;height:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit{margin-top:0}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit:before,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit:before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;width:auto;border-bottom:1px solid #e2e4e7;bottom:auto}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{left:0;right:auto}.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{left:auto;right:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{top:14px}}.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit{ - /*!rtl:begin:ignore*/float:left;margin-right:2em - /*!rtl:end:ignore*/}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-toolbar{ - /*!rtl:begin:ignore*/left:14px;right:auto - /*!rtl:end:ignore*/}}.editor-block-list__layout .editor-block-list__block[data-align=right]>.editor-block-list__block-edit{ - /*!rtl:begin:ignore*/float:right;margin-left:2em - /*!rtl:end:ignore*/}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-toolbar{ - /*!rtl:begin:ignore*/right:14px;left:auto - /*!rtl:end:ignore*/}}.editor-block-list__layout .editor-block-list__block[data-align=full],.editor-block-list__layout .editor-block-list__block[data-align=wide]{clear:both;z-index:20}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{top:-44px;bottom:auto;min-height:0;height:auto;width:auto;z-index:inherit}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover:before,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover:before{content:none}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover .editor-block-mover__control,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover .editor-block-mover__control{float:left}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__breadcrumb,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-list__breadcrumb{right:-1px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:none}@media (min-width:1280px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover,.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{display:block}}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full] .editor-block-toolbar,.editor-block-list__layout .editor-block-list__block[data-align=wide] .editor-block-toolbar{display:inline-flex}}.editor-block-list__layout .editor-block-list__block[data-align=wide]>.editor-block-mover{left:-13px}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit>.editor-block-list__breadcrumb{right:0}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]{margin-left:-45px;margin-right:-45px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-left:-14px;margin-right:-14px}@media (min-width:600px){.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit{margin-left:-44px;margin-right:-44px}}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit figure{width:100%}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-list__block-edit:before{left:0;right:0;border-left-width:0;border-right-width:0}.editor-block-list__layout .editor-block-list__block[data-align=full]>.editor-block-mover{left:1px}.editor-block-list__layout .editor-block-list__block[data-clear=true]{float:none}.editor-block-list__layout .editor-block-list__block .editor-block-drop-zone{top:-4px;bottom:-3px;margin:0 14px}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-inserter-with-shortcuts{display:none}.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-block-list__empty-block-inserter,.editor-block-list__layout .editor-block-list__block .editor-block-list__layout .editor-default-block-appender .editor-inserter{left:auto;right:8px}.editor-block-list__block.is-multi-selected>.editor-block-mover,.editor-block-list__block>.editor-block-list__block-edit>.editor-block-mover{position:absolute;width:30px;height:100%;max-height:112px;top:-15px}@media (min-width:600px){.editor-block-list__block.is-hovered .editor-block-mover,.editor-block-list__block.is-multi-selected .editor-block-mover,.editor-block-list__block.is-selected .editor-block-mover{z-index:80}}.editor-block-list__block.is-multi-selected>.editor-block-mover,.editor-block-list__block>.editor-block-list__block-edit>.editor-block-mover{padding-right:2px;left:-45px;display:none}@media (min-width:600px){.editor-block-list__block.is-multi-selected>.editor-block-mover,.editor-block-list__block>.editor-block-list__block-edit>.editor-block-mover{display:block}}.editor-block-list__block.is-multi-selected>.editor-block-mover{left:-30px}.editor-block-list__block[data-align=left].is-selected>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-selected>.editor-block-list__block-edit>.editor-block-mover{display:none}@media (min-width:600px){.editor-block-list__block[data-align=left].is-selected>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-selected>.editor-block-list__block-edit>.editor-block-mover{display:block;opacity:1;animation:none;width:45px;height:auto;padding-bottom:14px;margin-top:0}}.editor-block-list__block[data-align=left].is-dragging>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=left].is-hovered>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-dragging>.editor-block-list__block-edit>.editor-block-mover,.editor-block-list__block[data-align=right].is-hovered>.editor-block-list__block-edit>.editor-block-mover{display:none}.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:flex;flex-direction:row;transform:translateY(15px);margin-top:37px;margin-right:-14px;margin-left:-14px;border-top:1px solid #e2e4e7;height:37px;box-shadow:0 5px 10px rgba(25,30,35,.05),0 2px 2px rgba(25,30,35,.05)}@media (min-width:600px){.editor-block-list__block .editor-block-list__block-mobile-toolbar{display:none;box-shadow:none}}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter{position:relative;left:auto;top:auto;margin:0}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover__control .dashicon,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-inserter__toggle .dashicon{margin:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover{display:flex;margin-right:auto}.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-block-mover__control,.editor-block-list__block .editor-block-list__block-mobile-toolbar .editor-block-mover .editor-inserter{float:left}.editor-block-list__block[data-align=full] .editor-block-list__block-mobile-toolbar{margin-left:0;margin-right:0}.editor-block-list .editor-inserter{margin:8px;cursor:move;cursor:-webkit-grab;cursor:grab}.editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:2px;left:0;right:0;background:#0085ba}body.admin-color-sunrise .editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .editor-block-list__insertion-point-indicator{background:#0085ba}.editor-block-list__insertion-point-inserter{display:none;position:absolute;bottom:auto;left:0;right:0;justify-content:center;opacity:0;transition:opacity .1s linear .1s}@media (min-width:480px){.editor-block-list__insertion-point-inserter{display:flex}}.editor-block-list__insertion-point-inserter .editor-inserter__toggle{margin-top:-4px;border-radius:50%;color:#007cba;background:#fff;height:36px;width:36px}.editor-block-list__insertion-point-inserter .editor-inserter__toggle:not(:disabled):not([aria-disabled=true]):hover{box-shadow:none}.editor-block-list__insertion-point-inserter.is-visible,.editor-block-list__insertion-point-inserter:hover{opacity:1}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter{opacity:0;pointer-events:none}.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-focused>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter.is-visible,.edit-post-layout:not(.has-fixed-toolbar) .is-selected>.editor-block-list__insertion-point>.editor-block-list__insertion-point-inserter:hover{opacity:1;pointer-events:auto}.editor-block-list__block>.editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;left:0;right:0}@media (min-width:600px){.editor-block-list__block>.editor-block-list__insertion-point{left:-1px;right:-1px}}.editor-block-list__block[data-align=full]>.editor-block-list__insertion-point{left:0;right:0}.editor-block-list__block .editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:14px;line-height:150%;transition:padding .2s linear}.editor-block-list__block .editor-block-list__block-html-textarea:focus{box-shadow:none}.editor-block-list__block .editor-block-contextual-toolbar{z-index:21;white-space:nowrap;text-align:left;pointer-events:none;position:absolute;bottom:23px;left:-14px;right:-14px;border-top:1px solid #e2e4e7}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:none;border-bottom:none}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{border-top:none}.editor-block-list__block .editor-block-contextual-toolbar .components-toolbar{border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-bottom:1px;margin-top:-37px}.editor-block-list__block .editor-block-contextual-toolbar{margin-left:0;margin-right:0}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{margin-left:-15px;margin-right:-15px}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{margin-right:15px}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{margin-left:15px}.editor-block-list__block .editor-block-contextual-toolbar>*{pointer-events:auto}.editor-block-list__block.is-focus-mode:not(.is-multi-selected)>.editor-block-contextual-toolbar{margin-left:-28px}@media (min-width:600px){.editor-block-list__block .editor-block-contextual-toolbar{bottom:auto;left:auto;right:auto;box-shadow:none;transform:translateY(-52px)}@supports ((position:-webkit-sticky) or (position:sticky)){.editor-block-list__block .editor-block-contextual-toolbar{position:-webkit-sticky;position:sticky;top:51px}}}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar{float:left}.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{float:right}.editor-block-list__block[data-align=left] .editor-block-contextual-toolbar,.editor-block-list__block[data-align=right] .editor-block-contextual-toolbar{transform:translateY(-15px)}.editor-block-contextual-toolbar .editor-block-toolbar{width:100%}@media (min-width:600px){.editor-block-contextual-toolbar .editor-block-toolbar{width:auto;border-right:none;position:absolute;left:0}}.editor-block-list__breadcrumb{position:absolute;line-height:1;z-index:2;right:-14px;top:-15px}.editor-block-list__breadcrumb .components-toolbar{border:none;background:transparent;line-height:1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:11px;padding:4px;background:#007cba;color:#fff}body.admin-color-sunrise .editor-block-list__breadcrumb .components-toolbar{background:#837425}body.admin-color-ocean .editor-block-list__breadcrumb .components-toolbar{background:#5e7d5e}body.admin-color-midnight .editor-block-list__breadcrumb .components-toolbar{background:#497b8d}body.admin-color-ectoplasm .editor-block-list__breadcrumb .components-toolbar{background:#523f6d}body.admin-color-coffee .editor-block-list__breadcrumb .components-toolbar{background:#59524c}body.admin-color-blue .editor-block-list__breadcrumb .components-toolbar{background:#417e9b}body.admin-color-light .editor-block-list__breadcrumb .components-toolbar{background:#007cba}.editor-block-list__block:hover .editor-block-list__breadcrumb .components-toolbar{opacity:0;animation:edit-post__fade-in-animation 60ms ease-out .5s;animation-fill-mode:forwards}[data-align=left] .editor-block-list__breadcrumb,[data-align=right] .editor-block-list__breadcrumb{right:0;top:0}.editor-block-list__descendant-arrow:before{content:"→";display:inline-block;padding:0 4px}.rtl .editor-block-list__descendant-arrow:before{content:"←"}@media (min-width:600px){.editor-block-list__block:before{bottom:0;content:"";left:-28px;position:absolute;right:-28px;top:0}.editor-block-list__block .editor-block-list__block:before{left:0;right:0}.editor-block-list__block[data-align=full]:before{content:none}}.editor-block-list__block .editor-warning{z-index:5;position:relative;margin-right:-15px;margin-left:-15px;margin-bottom:-15px;transform:translateY(-15px);padding:10px 14px}@media (min-width:600px){.editor-block-list__block .editor-warning{padding:10px 14px}}.block-list-appender>.editor-inserter{display:block}.block-list-appender__toggle{display:flex;align-items:center;justify-content:center;padding:16px;outline:1px dashed #8d96a0;width:100%;color:#555d66}.block-list-appender__toggle:hover{outline:1px dashed #555d66}.editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.editor-block-compare{max-height:70%}}.editor-block-compare__wrapper{display:flex;padding-bottom:16px}.editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 16px 0 0;min-width:200px}.editor-block-compare__wrapper>div button{float:right}.editor-block-compare__wrapper .editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px}.editor-block-compare__wrapper .editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.editor-block-compare__wrapper .editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__added{background-color:#acf2bd}.editor-block-compare__wrapper .editor-block-compare__html span.editor-block-compare__removed{background-color:#d94f4f}.editor-block-compare__wrapper .editor-block-compare__preview{padding:14px 0 0}.editor-block-compare__wrapper .editor-block-compare__preview p{font-size:12px;margin-top:0}.editor-block-compare__wrapper .editor-block-compare__action{margin-top:14px}.editor-block-compare__wrapper .editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.editor-block-mover{min-height:56px;opacity:0}.editor-block-mover.is-visible{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (min-width:600px){.editor-block-list__block:not([data-align=wide]):not([data-align=full]) .editor-block-mover{margin-top:-8px}}.editor-block-mover__control{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;width:28px;height:24px;color:rgba(14,28,46,.62)}.editor-block-mover__control svg{width:28px;height:24px;padding:2px 5px}.is-dark-theme .editor-block-mover__control{color:hsla(0,0%,100%,.65)}.is-dark-theme .wp-block .wp-block .editor-block-mover__control{color:rgba(14,28,46,.62)}.editor-block-mover__control[aria-disabled=true]{cursor:default;pointer-events:none;color:rgba(130,148,147,.15)}.is-dark-theme .editor-block-mover__control[aria-disabled=true]{color:hsla(0,0%,100%,.2)}.editor-block-mover__control-drag-handle{cursor:move;cursor:-webkit-grab;cursor:grab;fill:currentColor;border-radius:4px}.editor-block-mover__control-drag-handle,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none;background:none;color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-mover__control-drag-handle,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:hsla(0,0%,100%,.75)}.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle,.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.is-dark-theme .wp-block .wp-block .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:rgba(10,24,41,.7)}.editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active{cursor:-webkit-grabbing;cursor:grabbing}.editor-block-mover__description{display:none}@media (min-width:600px){.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.editor-block-list__layout [data-align=left] .editor-block-mover__control,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default),.editor-block-list__layout [data-align=right] .editor-block-mover__control,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default){background:#fff;box-shadow:inset 0 0 0 1px #e2e4e7}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:nth-child(-n+2),.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout [data-align=left] .editor-block-mover__control:nth-child(-n+2),.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):nth-child(-n+2),.editor-block-list__layout [data-align=right] .editor-block-mover__control:nth-child(-n+2){margin-bottom:-1px}.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:active,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:focus,.editor-block-list__layout .editor-block-list__layout .editor-block-mover__control:hover,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout [data-align=left] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout [data-align=left] .editor-block-mover__control:active,.editor-block-list__layout [data-align=left] .editor-block-mover__control:focus,.editor-block-list__layout [data-align=left] .editor-block-mover__control:hover,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):active,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.editor-block-list__layout [data-align=right] .editor-block-mover__control-drag-handle:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.editor-block-list__layout [data-align=right] .editor-block-mover__control:active,.editor-block-list__layout [data-align=right] .editor-block-mover__control:focus,.editor-block-list__layout [data-align=right] .editor-block-mover__control:hover{z-index:1}}.editor-block-navigation__container{padding:7px}.editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.editor-block-navigation__list,.editor-block-navigation__paragraph{padding:0;margin:0}.editor-block-navigation__list .editor-block-navigation__list{margin-top:2px;border-left:2px solid #a2aab2;margin-left:1em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__list{margin-left:1.5em}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item{position:relative}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item:before{position:absolute;left:0;background:#a2aab2;width:.5em;height:2px;content:"";top:calc(50% - 1px)}.editor-block-navigation__list .editor-block-navigation__list .editor-block-navigation__item-button{margin-left:.8em;width:calc(100% - .8em)}.editor-block-navigation__list .editor-block-navigation__list>li:last-child{position:relative}.editor-block-navigation__list .editor-block-navigation__list>li:last-child:after{position:absolute;content:"";background:#fff;top:19px;bottom:0;left:-2px;width:2px}.editor-block-navigation__item-button{display:flex;align-items:center;width:100%;padding:6px;text-align:left;color:#40464d;border-radius:4px}.editor-block-navigation__item-button .editor-block-icon{margin-right:6px}.editor-block-navigation__item-button:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.editor-block-navigation__item-button:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-navigation__item-button.is-selected,.editor-block-navigation__item-button.is-selected:focus{color:#32373c;background:#edeff0}.editor-block-preview{pointer-events:none;padding:10px;overflow:hidden;display:none}@media (min-width:782px){.editor-block-preview{display:block}}.editor-block-preview .editor-block-preview__content{padding:14px;border:1px solid #e2e4e7;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div{transform:scale(.9);transform-origin:center top;font-family:"Noto Serif",serif}.editor-block-preview .editor-block-preview__content>div section{height:auto}.editor-block-preview .editor-block-preview__content>.reusable-block-indicator{display:none}.editor-block-preview__title{margin-bottom:10px;color:#6c7781}.editor-block-settings-menu__toggle .dashicon{transform:rotate(90deg)}.editor-block-settings-menu__popover:after,.editor-block-settings-menu__popover:before{margin-left:2px}.editor-block-settings-menu__popover .editor-block-settings-menu__content{padding:7px 0}.editor-block-settings-menu__popover .editor-block-settings-menu__separator{margin:8px 0;border-top:1px solid #e2e4e7}.editor-block-settings-menu__popover .editor-block-settings-menu__separator:last-child{display:none}.editor-block-settings-menu__popover .editor-block-settings-menu__title{display:block;padding:6px;color:#6c7781}.editor-block-settings-menu__popover .editor-block-settings-menu__control{width:100%;justify-content:flex-start;background:none;outline:none;border-radius:0;color:#555d66;text-align:left;cursor:pointer;border:none;box-shadow:none}.editor-block-settings-menu__popover .editor-block-settings-menu__control:hover:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.editor-block-settings-menu__popover .editor-block-settings-menu__control:focus:not(:disabled):not([aria-disabled=true]){color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-block-settings-menu__popover .editor-block-settings-menu__control .dashicon{margin-right:5px}.editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:4px;padding:4px}.editor-block-styles__item.is-active{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px;box-shadow:0 0 0 2px #555d66}.editor-block-styles__item:focus{color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-styles__item:hover{background:#f3f4f5;color:#191e23}.editor-block-styles__item-preview{outline:1px solid transparent;border:1px solid rgba(25,30,35,.2);overflow:hidden;padding:0;text-align:initial;border-radius:4px;display:flex;height:60px;background:#fff}.editor-block-styles__item-preview .editor-block-preview__content{transform:scale(.7);transform-origin:center center;width:100%;margin:0;padding:0;overflow:visible;min-height:auto}.editor-block-styles__item-label{text-align:center;padding:4px 2px}.editor-block-switcher{position:relative;height:36px}.components-icon-button.editor-block-switcher__no-switcher-icon,.components-icon-button.editor-block-switcher__toggle{margin:0;display:block;height:36px;padding:3px}.components-icon-button.editor-block-switcher__no-switcher-icon{width:48px}.components-icon-button.editor-block-switcher__no-switcher-icon .editor-block-icon{margin-right:auto;margin-left:auto}.components-button.editor-block-switcher__no-switcher-icon:disabled{background:#f3f4f5;border-radius:0;opacity:.84}.components-button.editor-block-switcher__no-switcher-icon:disabled .editor-block-icon.has-colors{color:#555d66!important}.components-icon-button.editor-block-switcher__toggle{width:auto}.components-icon-button.editor-block-switcher__toggle:active,.components-icon-button.editor-block-switcher__toggle:not(:disabled):not([aria-disabled=true]):hover,.components-icon-button.editor-block-switcher__toggle:not([aria-disabled=true]):focus{outline:none;box-shadow:none;background:none;border:none}.components-icon-button.editor-block-switcher__toggle .editor-block-icon,.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{width:42px;height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;transition:all .1s cubic-bezier(.165,.84,.44,1)}.components-icon-button.editor-block-switcher__toggle .editor-block-icon: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}.components-icon-button.editor-block-switcher__toggle .editor-block-switcher__transform{margin-top:6px;border-radius:4px}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):hover .editor-block-switcher__transform,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-icon,.components-icon-button.editor-block-switcher__toggle[aria-expanded=true] .editor-block-switcher__transform{transform:translateY(-36px)}.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-icon,.components-icon-button.editor-block-switcher__toggle:not(:disabled):focus .editor-block-switcher__transform{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.components-popover:not(.is-mobile).editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:340px}@media (min-width:782px){.editor-block-switcher__popover .components-popover__content{position:relative}.editor-block-switcher__popover .components-popover__content .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px;height:auto}}.editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.editor-block-switcher__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible}.editor-block-switcher__popover .editor-block-styles{margin:0 -3px}.editor-block-switcher__popover .editor-block-types-list{margin:8px -8px -8px}.editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;border-left:1px solid #e2e4e7}@media (min-width:600px){.editor-block-toolbar{overflow:inherit}}.editor-block-toolbar .components-toolbar{border:0;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.editor-block-types-list{list-style:none;padding:2px 0;overflow:hidden;display:flex;flex-wrap:wrap}.editor-color-palette-control__color-palette{display:inline-block;margin-top:.6rem}.editor-contrast-checker>.components-notice{margin:0}.editor-default-block-appender{clear:both}.editor-default-block-appender textarea.editor-default-block-appender__content{font-family:"Noto Serif",serif;font-size:16px;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;padding:0 50px 0 14px;color:rgba(14,28,46,.62)}.is-dark-theme .editor-default-block-appender textarea.editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.editor-default-block-appender .editor-inserter__toggle:not([aria-expanded=true]){opacity:0;transition:opacity .2s}.editor-default-block-appender:hover .editor-inserter-with-shortcuts{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}.editor-default-block-appender:hover .editor-inserter__toggle{opacity:1}.editor-default-block-appender .components-drop-zone__content-icon{display:none}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter,.editor-inserter-with-shortcuts{position:absolute;top:0}.editor-block-list__empty-block-inserter .components-icon-button,.editor-default-block-appender .editor-inserter .components-icon-button,.editor-inserter-with-shortcuts .components-icon-button{width:28px;height:28px;margin-right:12px;padding:0}.editor-block-list__empty-block-inserter .editor-block-icon,.editor-default-block-appender .editor-inserter .editor-block-icon,.editor-inserter-with-shortcuts .editor-block-icon{margin:auto}.editor-block-list__empty-block-inserter .components-icon-button svg,.editor-default-block-appender .editor-inserter .components-icon-button svg,.editor-inserter-with-shortcuts .components-icon-button svg{display:block;margin:auto}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle,.editor-inserter-with-shortcuts .editor-inserter__toggle{margin-right:0}.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{right:8px}@media (min-width:600px){.editor-block-list__empty-block-inserter,.editor-default-block-appender .editor-inserter{left:-44px;right:auto}}.editor-block-list__empty-block-inserter:disabled,.editor-default-block-appender .editor-inserter:disabled{display:none}.editor-block-list__empty-block-inserter .editor-inserter__toggle,.editor-default-block-appender .editor-inserter .editor-inserter__toggle{border-radius:50%;width:28px;height:28px;padding:0}.editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:rgba(10,24,41,.7)}.is-dark-theme .editor-block-list__empty-block-inserter .editor-inserter__toggle:not(:hover),.is-dark-theme .editor-default-block-appender .editor-inserter .editor-inserter__toggle:not(:hover){color:hsla(0,0%,100%,.75)}.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{right:14px;display:none;z-index:5}@media (min-width:600px){.editor-block-list__side-inserter .editor-inserter-with-shortcuts,.editor-default-block-appender .editor-inserter-with-shortcuts{right:0;display:flex}}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#23282d;text-align:left}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-error-boundary{max-width:610px;max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom{z-index:100001}.editor-inner-blocks.has-overlay:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:120}.editor-inserter-with-shortcuts{display:flex;align-items:center}.editor-inserter-with-shortcuts .components-icon-button{border-radius:4px}.editor-inserter-with-shortcuts .components-icon-button svg:not(.dashicon){height:24px;width:24px}.editor-inserter-with-shortcuts__block{margin-right:4px;width:36px;height:36px;padding-top:8px;color:rgba(10,24,41,.7)}.is-dark-theme .editor-inserter-with-shortcuts__block{color:hsla(0,0%,100%,.75)}.editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.editor-inserter{position:relative}}@media (min-width:782px){.editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:visible;height:432px}}.editor-inserter__toggle{display:inline-flex;align-items:center;color:#555d66;background:none;cursor:pointer;border:none;outline:none;transition:color .2s ease}.editor-inserter__menu{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.editor-inserter__menu{width:400px;position:relative}.editor-inserter__menu .editor-block-preview{border:1px solid #e2e4e7;box-shadow:0 3px 30px rgba(25,30,35,.1);background:#fff;position:absolute;left:100%;top:-1px;bottom:-1px;width:300px}}.editor-inserter__inline-elements{margin-top:-1px}.editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover input[type=search].editor-inserter__search{display:block;margin:16px;padding:11px 16px;position:relative;z-index:1;border-radius:4px;font-size:16px}@media (min-width:600px){.components-popover input[type=search].editor-inserter__search{font-size:13px}}.components-popover input[type=search].editor-inserter__search:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-inserter__results{flex-grow:1;overflow:auto;position:relative;z-index:1;padding:0 16px 16px}.editor-inserter__results:focus{outline:1px dotted #555d66}@media (min-width:782px){.editor-inserter__results{height:394px}}.editor-inserter__results [role=presentation]+.components-panel__body{border-top:none}.editor-inserter__popover .editor-block-types-list{margin:0 -8px}.editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.editor-inserter__manage-reusable-blocks{margin:16px 0 0 16px}.editor-inserter__no-results{font-style:italic;padding:24px;text-align:center}.editor-inserter__child-blocks{padding:0 16px}.editor-inserter__parent-block-header{display:flex;align-items:center}.editor-inserter__parent-block-header h2{font-size:13px}.editor-inserter__parent-block-header .editor-block-icon{margin-right:8px}.editor-block-types-list__list-item{display:block;width:33.33%;padding:0 4px;margin:0 0 12px}.editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:0;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:4px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative}.editor-block-types-list__item:disabled{opacity:.6;cursor:default}.editor-block-types-list__item:not(:disabled):hover:before{content:"";display:block;background:#f3f4f5;color:#191e23;position:absolute;z-index:-1;border-radius:4px;top:0;right:0;bottom:0;left:0}.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):hover .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item:not(:disabled).is-active,.editor-block-types-list__item:not(:disabled):active,.editor-block-types-list__item:not(:disabled):focus{position:relative;outline:none;color:#191e23;box-shadow:0 0 0 2px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled).is-active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):active .editor-block-types-list__item-title,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-icon,.editor-block-types-list__item:not(:disabled):focus .editor-block-types-list__item-title{color:currentColor}.editor-block-types-list__item-icon{padding:12px 20px;border-radius:4px;color:#555d66;transition:all .05s ease-in-out}.editor-block-types-list__item-icon .editor-block-icon{margin-left:auto;margin-right:auto}.editor-block-types-list__item-icon svg{transition:all .15s ease-out}.editor-block-types-list__item-title{padding:4px 2px 8px}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon{background:#fff;margin-right:3px;margin-bottom:6px;padding:9px 20px;position:relative;top:-2px;left:-2px;box-shadow:0 0 0 1px #e2e4e7}.editor-block-types-list__item-has-children .editor-block-types-list__item-icon-stack{display:block;background:#fff;box-shadow:0 0 0 1px #e2e4e7;width:100%;height:100%;position:absolute;z-index:-1;bottom:-6px;right:-6px;border-radius:4px}.editor-media-placeholder__url-input-container{width:100%}.editor-media-placeholder__url-input-container .editor-media-placeholder__button{margin-bottom:0}.editor-media-placeholder__url-input-form{display:flex}.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.editor-media-placeholder__url-input-form input[type=url].editor-media-placeholder__url-input-field{width:300px}}.editor-media-placeholder__url-input-submit-button{flex-shrink:1}.editor-media-placeholder__button{margin-bottom:.5rem}.editor-media-placeholder__button .dashicon{vertical-align:middle;margin-bottom:3px}.editor-media-placeholder__button:hover{color:#23282d}.components-form-file-upload .editor-media-placeholder__button{margin-right:4px}.editor-multi-selection-inspector__card{display:flex;align-items:flex-start;margin:-16px;padding:16px}.editor-multi-selection-inspector__card-content{flex-grow:1}.editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.editor-multi-selection-inspector__card-description{font-size:13px}.editor-multi-selection-inspector__card .editor-block-icon{margin-left:-2px;margin-right:10px;padding:0 3px;width:36px;height:24px}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-panel-color-settings .component-color-indicator{vertical-align:text-bottom}.editor-panel-color-settings__panel-title .component-color-indicator{display:inline-block}.editor-panel-color-settings.is-opened .editor-panel-color-settings__panel-title .component-color-indicator{display:none}.block-editor .editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-right:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid rgba(145,151,162,.25);background-clip:padding-box;margin-left:-15px;margin-right:-15px}@media (min-width:600px){.editor-post-permalink{margin-left:-1px;margin-right:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 10px 0 5px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-right:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link:after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(90deg,hsla(0,0%,100%,0),#fff 90%);top:1px;bottom:1px;right:1px;left:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-left:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-right:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:right;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-left:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-right:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:150%;font-size:16px}@media (min-width:600px){.editor-post-text-editor{font-size:14px}}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:none;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-left:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:none;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-left:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out;padding:19px 14px;word-break:keep-all;border-color:transparent;border-style:solid;border-width:1px 0;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(145,151,162,.25)}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:hsla(0,0%,100%,.3)}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}body.admin-color-sunrise .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#837425}body.admin-color-ocean .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#5e7d5e}body.admin-color-midnight .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#497b8d}body.admin-color-ectoplasm .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#523f6d}body.admin-color-coffee .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#59524c}body.admin-color-blue .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#417e9b}body.admin-color-light .editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar) .editor-post-title__input:hover{border-color:#007cba}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;left:0;right:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{left:2px;right:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.editor-format-toolbar{display:flex;flex-shrink:0}.editor-format-toolbar__selection-position{position:absolute;transform:translateX(-50%)}.editor-rich-text{position:relative}.editor-rich-text__editable{margin:0;position:relative;white-space:pre-wrap}.editor-rich-text__editable>p:first-child{margin-top:0}.editor-rich-text__editable a{color:#007fac}.editor-rich-text__editable code{padding:2px;border-radius:2px;color:#23282d;background:#f3f4f5;font-family:Menlo,Consolas,monaco,monospace;font-size:inherit}.is-multi-selected .editor-rich-text__editable code{background:#67cffd}.editor-rich-text__editable:focus{outline:none}.editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px;box-shadow:0 0 0 1px #e8eaeb;background:#e8eaeb;color:#191e23}.editor-rich-text__editable:focus a[data-rich-text-format-boundary]{box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa;color:#006589}.editor-rich-text__editable:focus code[data-rich-text-format-boundary]{background:#e8eaeb;box-shadow:0 0 0 1px #e8eaeb}.editor-rich-text__editable[data-is-placeholder-visible=true]{position:absolute;top:0;width:100%;margin-top:0;height:100%}.editor-rich-text__editable[data-is-placeholder-visible=true]>p{margin-top:0}.editor-rich-text__editable+.editor-rich-text__editable{pointer-events:none}.editor-rich-text__editable+.editor-rich-text__editable,.editor-rich-text__editable+.editor-rich-text__editable p{opacity:.62}.editor-rich-text__editable[data-is-placeholder-visible=true]+figcaption.editor-rich-text__editable{opacity:.8}.editor-rich-text__inline-toolbar{display:flex;justify-content:center;position:absolute;top:-40px;line-height:0;left:0;right:0;z-index:1}.editor-rich-text__inline-toolbar ul.components-toolbar{box-shadow:0 2px 10px rgba(25,30,35,.1),0 0 2px rgba(25,30,35,.1)}.editor-skip-to-selected-block{position:absolute;top:-9999em}.editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .editor-skip-to-selected-block:focus{color:#c75726}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px}.components-popover .editor-url-input,.editor-block-list__block .editor-url-input,.editor-url-input{flex-grow:1;position:relative;padding:1px}.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-left:0;margin-right:0;font-size:16px}@media (min-width:600px){.components-popover .editor-url-input input[type=text],.editor-block-list__block .editor-url-input input[type=text],.editor-url-input input[type=text]{width:300px;font-size:13px}}.components-popover .editor-url-input input[type=text]::-ms-clear,.editor-block-list__block .editor-url-input input[type=text]::-ms-clear,.editor-url-input input[type=text]::-ms-clear{display:none}.components-popover .editor-url-input .components-spinner,.editor-block-list__block .editor-url-input .components-spinner,.editor-url-input .components-spinner{position:absolute;right:8px;top:9px;margin:0}.editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.editor-url-input .components-spinner,.editor-url-input__suggestions{display:none}@media (min-width:600px){.editor-url-input .components-spinner,.editor-url-input__suggestions{display:inherit}}.editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;text-align:left;border:none;box-shadow:none}.editor-url-input__suggestion:hover{background:#e2e4e7}.editor-url-input__suggestion.is-selected,.editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:none}body.admin-color-sunrise .editor-url-input__suggestion.is-selected,body.admin-color-sunrise .editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .editor-url-input__suggestion.is-selected,body.admin-color-ocean .editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .editor-url-input__suggestion.is-selected,body.admin-color-midnight .editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .editor-url-input__suggestion.is-selected,body.admin-color-coffee .editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .editor-url-input__suggestion.is-selected,body.admin-color-blue .editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .editor-url-input__suggestion.is-selected,body.admin-color-light .editor-url-input__suggestion:focus{background:#00719e}.components-toolbar>.editor-url-input__button{position:inherit}.editor-url-input__button .editor-url-input__back{margin-right:4px;overflow:visible}.editor-url-input__button .editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;right:-1px;background:#e2e4e7}.editor-url-input__button-modal{box-shadow:0 3px 30px rgba(25,30,35,.1);border:1px solid #e2e4e7;background:#fff}.editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.editor-url-popover__row{display:flex}.editor-url-popover__row>:not(.editor-url-popover__settings-toggle){flex-grow:1}.editor-url-popover .components-icon-button{padding:3px}.editor-url-popover .components-icon-button>svg{padding:5px;border-radius:4px;height:30px;width:30px}.editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:none}.editor-url-popover .components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover>svg{color:#555d66;box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.editor-url-popover .components-icon-button:not(:disabled):focus{box-shadow:none}.editor-url-popover .components-icon-button:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-left:1px solid #e2e4e7;margin-left:1px}.editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.editor-url-popover__settings{padding:16px;border-top:1px solid #e2e4e7}.editor-url-popover__settings .components-base-control:last-child .components-base-control__field{margin-bottom:0}.editor-warning{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:nowrap;background-color:#fff;border:1px solid #e2e4e7;text-align:left;padding:20px}.has-warning.is-multi-selected .editor-warning{background-color:transparent}.editor-warning .editor-warning__message{line-height:1.4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.editor-warning .editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:center;width:100%}.editor-warning .editor-warning__actions{display:flex}.editor-warning .editor-warning__action{margin:0 6px 0 0}.editor-warning__secondary{margin:3px 0 0 -4px}.editor-warning__secondary .components-icon-button{width:auto;padding:8px 2px}@media (min-width:600px){.editor-warning__secondary{margin-left:4px}.editor-warning__secondary .components-icon-button{padding:8px 4px}}.editor-warning__secondary .components-button svg{transform:rotate(90deg)}.editor-writing-flow{height:100%;display:flex;flex-direction:column}.editor-writing-flow__click-redirect{flex-basis:100%;cursor:text} \ No newline at end of file +@charset "UTF-8";.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__user .block-editor-autocompleters__user-avatar{margin-right:8px;flex-grow:0;flex-shrink:0;max-width:none;width:24px;height:24px}.block-editor-autocompleters__user .block-editor-autocompleters__user-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:200px;flex-shrink:0;flex-grow:1}.block-editor-autocompleters__user .block-editor-autocompleters__user-slug{margin-left:8px;color:#8f98a1;white-space:nowrap;text-overflow:ellipsis;overflow:none;max-width:100px;flex-grow:0;flex-shrink:0}.block-editor-autocompleters__user:hover .block-editor-autocompleters__user-slug{color:#66c6e4}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#e2e4e7;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{cursor:pointer;background:none;border:none;display:flex;align-items:flex-start;margin:0 0 0 -1px;padding:2px 5px 2px 1px;color:#23282d;text-align:left}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{background-color:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.document-outline__level{background:#e2e4e7;color:#23282d;border-radius:3px;font-size:13px;padding:1px 6px;margin-right:4px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-error-boundary{max-width:610px;max-width:780px;padding:20px;margin:60px auto auto;box-shadow:0 3px 30px rgba(25,30,35,.2)}.editor-page-attributes__template{margin-bottom:10px}.editor-page-attributes__order,.editor-page-attributes__template label,.editor-page-attributes__template select{width:100%}.editor-page-attributes__order .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.editor-page-attributes__order input{width:66px}.editor-post-excerpt__textarea{width:100%;margin-bottom:10px}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin:0}.editor-post-featured-image .components-button+.components-button{margin-top:1em;margin-right:8px}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{display:block;width:100%;padding:0;transition:all .1s ease-out;box-shadow:0 0 0 0 #00a0d2}.editor-post-featured-image__preview:not(:disabled):not([aria-disabled=true]):focus{box-shadow:0 0 0 4px #00a0d2}.editor-post-featured-image__toggle{border:1px dashed #a2aab2;background-color:#edeff0;line-height:20px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background-color:#f8f9f9}.editor-post-format{flex-direction:column;align-items:stretch;width:100%}.editor-post-format__content{display:inline-flex;justify-content:space-between;align-items:center;width:100%}.editor-post-format__suggestion{text-align:right;font-size:13px}.editor-post-last-revision__title{width:100%;font-weight:600}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:active,.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:hover{border:none;box-shadow:none}.components-icon-button:not(:disabled):not([aria-disabled=true]).editor-post-last-revision__title:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.editor-post-locked-modal{height:auto;padding-right:10px;padding-left:10px;padding-top:10px;max-width:480px}.editor-post-locked-modal .components-modal__header{height:36px}.editor-post-locked-modal .components-modal__content{height:auto}.editor-post-locked-modal__buttons{margin-top:10px}.editor-post-locked-modal__buttons .components-button{margin-right:5px}.editor-post-locked-modal__avatar{float:left;margin:5px 15px 5px 5px}.editor-post-permalink{display:inline-flex;align-items:center;background:#fff;padding:5px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;height:40px;white-space:nowrap;border:1px solid #b5bcc2;background-clip:padding-box;border-left:0;box-shadow:-3px 0 0 0 #555d66;outline:1px solid transparent;margin-left:-15px;margin-right:-15px}.is-dark-theme .editor-post-permalink{box-shadow:-3px 0 0 0 #d7dade}@media (min-width:600px){.editor-post-permalink{margin-left:-1px;margin-right:-1px}}.editor-post-permalink button{flex-shrink:0}.editor-post-permalink__copy{border-radius:4px;padding:6px}.editor-post-permalink__copy.is-copied{opacity:.3}.editor-post-permalink__label{margin:0 10px 0 5px;font-weight:600}.editor-post-permalink__link{color:#7e8993;text-decoration:underline;margin-right:10px;width:100%;overflow:hidden;position:relative;white-space:nowrap}.editor-post-permalink__link:after{content:"";display:block;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background:linear-gradient(90deg,hsla(0,0%,100%,0),#fff 90%);top:1px;bottom:1px;right:1px;left:auto;width:20%;height:auto}.editor-post-permalink-editor{width:100%;min-width:20%;display:inline-flex;align-items:center}.editor-post-permalink-editor .editor-post-permalink__editor-container{flex:0 1 100%;display:flex;overflow:hidden;padding:1px 0}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 1 auto}@media (min-width:600px){.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__prefix{flex:1 0 auto}}.editor-post-permalink-editor .editor-post-permalink__editor-container .editor-post-permalink-editor__edit{flex:1 1 100%}.editor-post-permalink-editor .editor-post-permalink-editor__save{margin-left:auto}.editor-post-permalink-editor__prefix{color:#6c7781;min-width:20%;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.editor-post-permalink input[type=text].editor-post-permalink-editor__edit{min-width:10%;width:100%;margin:0 3px;padding:2px 4px}.editor-post-permalink-editor__suffix{color:#6c7781;margin-right:6px;flex:0 0 0%}.editor-post-publish-panel{background:#fff;color:#555d66}.editor-post-publish-panel__content{min-height:calc(100% - 140px)}.editor-post-publish-panel__content .components-spinner{display:block;float:none;margin:100px auto 0}.editor-post-publish-panel__header{background:#fff;padding-left:16px;height:56px;border-bottom:1px solid #e2e4e7;display:flex;align-items:center;align-content:space-between}.editor-post-publish-panel__header-publish-button{display:flex;justify-content:flex-end;flex-grow:1;text-align:right;flex-wrap:nowrap}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{display:inline-flex;align-items:center}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{color:#007fac;font-weight:400;padding-left:4px;text-decoration:underline}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#191e23}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e2e4e7;border-top:none}.post-publish-panel__postpublish-buttons{display:flex;align-content:space-between;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{height:auto;justify-content:center;padding:3px 10px 4px;line-height:1.6;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address{margin-bottom:16px}.post-publish-panel__postpublish-post-address input[readonly]{padding:10px;background:#e8eaeb;overflow:hidden;text-overflow:ellipsis}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}.editor-post-saved-state{display:flex;align-items:center;color:#a2aab2;overflow:hidden}.editor-post-saved-state.is-saving{animation:edit-post__loading-fade-animation .5s infinite}.editor-post-saved-state .dashicon{display:inline-block;flex:0 0 auto}.editor-post-saved-state{width:28px;white-space:nowrap;padding:12px 4px}.editor-post-saved-state .dashicon{margin-right:8px}@media (min-width:600px){.editor-post-saved-state{width:auto;padding:8px 12px;text-indent:inherit}.editor-post-saved-state .dashicon{margin-right:4px}}.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft{margin:0}@media (min-width:600px){.edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft .dashicon{display:none}}.editor-post-taxonomies__hierarchical-terms-list{max-height:14em;overflow:auto}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-input[type=checkbox]{margin-top:0}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-top:8px;margin-left:16px}.components-button.editor-post-taxonomies__hierarchical-terms-add,.components-button.editor-post-taxonomies__hierarchical-terms-submit{margin-top:12px}.editor-post-taxonomies__hierarchical-terms-label{display:inline-block;margin-top:12px}.editor-post-taxonomies__hierarchical-terms-input{margin-top:8px;width:100%}.editor-post-taxonomies__hierarchical-terms-filter{margin-bottom:8px;width:100%}.editor-post-text-editor{border:1px solid #e2e4e7;display:block;margin:0 0 2em;width:100%;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;line-height:150%;font-size:16px}@media (min-width:600px){.editor-post-text-editor{font-size:14px}}.editor-post-text-editor:focus,.editor-post-text-editor:hover{border:1px solid #e2e4e7;box-shadow:none;outline:1px solid #e2e4e7;outline-offset:-2px}.editor-post-text-editor__toolbar{display:flex;flex-direction:row;flex-wrap:wrap}.editor-post-text-editor__toolbar button{height:30px;background:none;padding:0 8px;margin:3px 4px;text-align:center;cursor:pointer;font-family:Menlo,Consolas,monaco,monospace;color:#555d66;border:1px solid transparent}.editor-post-text-editor__toolbar button:first-child{margin-left:0}.editor-post-text-editor__toolbar button:focus,.editor-post-text-editor__toolbar button:hover{outline:none;border:1px solid #555d66}.editor-post-text-editor__bold{font-weight:600}.editor-post-text-editor__italic{font-style:italic}.editor-post-text-editor__link{text-decoration:underline;color:#0085ba}body.admin-color-sunrise .editor-post-text-editor__link{color:#d1864a}body.admin-color-ocean .editor-post-text-editor__link{color:#a3b9a2}body.admin-color-midnight .editor-post-text-editor__link{color:#e14d43}body.admin-color-ectoplasm .editor-post-text-editor__link{color:#a7b656}body.admin-color-coffee .editor-post-text-editor__link{color:#c2a68c}body.admin-color-blue .editor-post-text-editor__link{color:#82b4cb}body.admin-color-light .editor-post-text-editor__link{color:#0085ba}.editor-post-text-editor__del{text-decoration:line-through}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-fieldset{padding:0 4px 4px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-legend{font-weight:600;margin-bottom:1em;margin-top:.5em;padding:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-radio{margin-top:2px}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-label{font-weight:600}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-info{margin-top:0;margin-left:28px}.edit-post-post-visibility__dialog .editor-post-visibility__choice:last-child .editor-post-visibility__dialog-info{margin-bottom:0}.edit-post-post-visibility__dialog .editor-post-visibility__dialog-password-input{margin-left:28px}.edit-post-post-visibility__dialog.components-popover.is-bottom{z-index:100001}.editor-post-title__block{position:relative;padding:5px 0;font-size:16px}@media (min-width:600px){.editor-post-title__block{padding:5px 2px}}.editor-post-title__block .editor-post-title__input{display:block;width:100%;margin:0;box-shadow:none;background:transparent;font-family:"Noto Serif",serif;line-height:1.4;color:#191e23;transition:border .1s ease-out,box-shadow .1s linear;padding:19px 14px;word-break:keep-all;border-color:transparent;border-style:solid;border-width:1px 0;outline:1px solid transparent;font-size:2.441em;font-weight:600}@media (min-width:600px){.editor-post-title__block .editor-post-title__input{border-width:1px 1px 1px 0}}.editor-post-title__block .editor-post-title__input::-webkit-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input::-moz-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block .editor-post-title__input:-ms-input-placeholder{color:rgba(22,36,53,.55)}.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:rgba(66,88,99,.4);box-shadow:inset 3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{border-color:hsla(0,0%,100%,.45);box-shadow:inset 3px 0 0 0 #d7dade}@media (min-width:600px){.editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:-3px 0 0 0 #555d66}.is-dark-theme .editor-post-title__block:not(.is-focus-mode).is-selected .editor-post-title__input{box-shadow:-3px 0 0 0 #d7dade}}.editor-post-title__block:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) .editor-post-title__input:hover{box-shadow:-3px 0 0 0 #e2e4e7}.editor-post-title__block.is-focus-mode .editor-post-title__input{opacity:.5;transition:opacity .1s linear}.editor-post-title__block.is-focus-mode .editor-post-title__input:focus{opacity:1}.editor-post-title .editor-post-permalink{font-size:13px;color:#191e23;position:absolute;top:-34px;left:0;right:0}@media (min-width:600px){.editor-post-title .editor-post-permalink{left:2px;right:2px}}.editor-post-trash.components-button{width:100%;color:#c92c2c;justify-content:center}.editor-post-trash.components-button:focus,.editor-post-trash.components-button:hover{color:#b52727}.table-of-contents__popover.components-popover:not(.is-mobile) .components-popover__content{min-width:380px}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__counts{display:flex;flex-wrap:wrap}.table-of-contents__count{width:25%;display:flex;flex-direction:column;font-size:13px;color:#6c7781}.table-of-contents__number,.table-of-contents__popover .word-count{font-size:21px;font-weight:400;line-height:30px;color:#555d66}.table-of-contents__title{display:block;margin-top:20px;font-size:15px;font-weight:600}.editor-template-validation-notice{display:flex;justify-content:space-between;align-items:center}.editor-template-validation-notice .components-button{margin-left:5px} \ No newline at end of file diff --git a/wp-includes/css/dist/format-library/style-rtl.css b/wp-includes/css/dist/format-library/style-rtl.css index 4097092198..c859336b7d 100644 --- a/wp-includes/css/dist/format-library/style-rtl.css +++ b/wp-includes/css/dist/format-library/style-rtl.css @@ -28,26 +28,29 @@ /** * Styles that are reused verbatim in a few places */ -.editor-format-toolbar__image-container-content { +/** + * Allows users to opt-out of animations via OS-level preferences. + */ +.block-editor-format-toolbar__image-container-content { display: flex; } - .editor-format-toolbar__image-container-content .components-icon-button { + .block-editor-format-toolbar__image-container-content .components-icon-button { height: 52px; align-self: flex-end; } -.editor-format-toolbar__image-container-value { +.block-editor-format-toolbar__image-container-value { margin: 7px; flex-grow: 1; flex-shrink: 1; white-space: nowrap; min-width: 150px; max-width: 500px; } - .editor-format-toolbar__image-container-value.components-base-control .components-base-control__field { + .block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field { margin-bottom: 0; } -.editor-format-toolbar__link-container-content { +.block-editor-format-toolbar__link-container-content { display: flex; } -.editor-format-toolbar__link-container-value { +.block-editor-format-toolbar__link-container-value { margin: 7px; flex-grow: 1; flex-shrink: 1; @@ -56,5 +59,5 @@ white-space: nowrap; min-width: 150px; max-width: 500px; } - .editor-format-toolbar__link-container-value.has-invalid-link { + .block-editor-format-toolbar__link-container-value.has-invalid-link { color: #d94f4f; } diff --git a/wp-includes/css/dist/format-library/style-rtl.min.css b/wp-includes/css/dist/format-library/style-rtl.min.css index 235c3773f4..adda229d43 100644 --- a/wp-includes/css/dist/format-library/style-rtl.min.css +++ b/wp-includes/css/dist/format-library/style-rtl.min.css @@ -1 +1 @@ -.editor-format-toolbar__image-container-content{display:flex}.editor-format-toolbar__image-container-content .components-icon-button{height:52px;align-self:flex-end}.editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.editor-format-toolbar__link-container-content{display:flex}.editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f} \ No newline at end of file +.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-icon-button{height:52px;align-self:flex-end}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f} \ No newline at end of file diff --git a/wp-includes/css/dist/format-library/style.css b/wp-includes/css/dist/format-library/style.css index 4097092198..c859336b7d 100644 --- a/wp-includes/css/dist/format-library/style.css +++ b/wp-includes/css/dist/format-library/style.css @@ -28,26 +28,29 @@ /** * Styles that are reused verbatim in a few places */ -.editor-format-toolbar__image-container-content { +/** + * Allows users to opt-out of animations via OS-level preferences. + */ +.block-editor-format-toolbar__image-container-content { display: flex; } - .editor-format-toolbar__image-container-content .components-icon-button { + .block-editor-format-toolbar__image-container-content .components-icon-button { height: 52px; align-self: flex-end; } -.editor-format-toolbar__image-container-value { +.block-editor-format-toolbar__image-container-value { margin: 7px; flex-grow: 1; flex-shrink: 1; white-space: nowrap; min-width: 150px; max-width: 500px; } - .editor-format-toolbar__image-container-value.components-base-control .components-base-control__field { + .block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field { margin-bottom: 0; } -.editor-format-toolbar__link-container-content { +.block-editor-format-toolbar__link-container-content { display: flex; } -.editor-format-toolbar__link-container-value { +.block-editor-format-toolbar__link-container-value { margin: 7px; flex-grow: 1; flex-shrink: 1; @@ -56,5 +59,5 @@ white-space: nowrap; min-width: 150px; max-width: 500px; } - .editor-format-toolbar__link-container-value.has-invalid-link { + .block-editor-format-toolbar__link-container-value.has-invalid-link { color: #d94f4f; } diff --git a/wp-includes/css/dist/format-library/style.min.css b/wp-includes/css/dist/format-library/style.min.css index 235c3773f4..adda229d43 100644 --- a/wp-includes/css/dist/format-library/style.min.css +++ b/wp-includes/css/dist/format-library/style.min.css @@ -1 +1 @@ -.editor-format-toolbar__image-container-content{display:flex}.editor-format-toolbar__image-container-content .components-icon-button{height:52px;align-self:flex-end}.editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.editor-format-toolbar__link-container-content{display:flex}.editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f} \ No newline at end of file +.block-editor-format-toolbar__image-container-content{display:flex}.block-editor-format-toolbar__image-container-content .components-icon-button{height:52px;align-self:flex-end}.block-editor-format-toolbar__image-container-value{margin:7px;flex-grow:1;flex-shrink:1;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__image-container-value.components-base-control .components-base-control__field{margin-bottom:0}.block-editor-format-toolbar__link-container-content{display:flex}.block-editor-format-toolbar__link-container-value{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#d94f4f} \ No newline at end of file diff --git a/wp-includes/css/dist/list-reusable-blocks/style-rtl.css b/wp-includes/css/dist/list-reusable-blocks/style-rtl.css index 2e2d81ea67..f08590c84d 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style-rtl.css +++ b/wp-includes/css/dist/list-reusable-blocks/style-rtl.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .list-reusable-blocks-import-dropdown__content .components-popover__content { padding: 10px; } diff --git a/wp-includes/css/dist/list-reusable-blocks/style.css b/wp-includes/css/dist/list-reusable-blocks/style.css index 96f0f4bf03..cf4fe3c010 100644 --- a/wp-includes/css/dist/list-reusable-blocks/style.css +++ b/wp-includes/css/dist/list-reusable-blocks/style.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .list-reusable-blocks-import-dropdown__content .components-popover__content { padding: 10px; } diff --git a/wp-includes/css/dist/nux/style-rtl.css b/wp-includes/css/dist/nux/style-rtl.css index d4fbf87e67..220d07ac15 100644 --- a/wp-includes/css/dist/nux/style-rtl.css +++ b/wp-includes/css/dist/nux/style-rtl.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .nux-dot-tip::before, .nux-dot-tip::after { border-radius: 100%; content: " "; diff --git a/wp-includes/css/dist/nux/style.css b/wp-includes/css/dist/nux/style.css index c9aae36edd..f2f514112d 100644 --- a/wp-includes/css/dist/nux/style.css +++ b/wp-includes/css/dist/nux/style.css @@ -28,6 +28,9 @@ /** * Styles that are reused verbatim in a few places */ +/** + * Allows users to opt-out of animations via OS-level preferences. + */ .nux-dot-tip::before, .nux-dot-tip::after { border-radius: 100%; content: " "; diff --git a/wp-includes/js/dist/a11y.js b/wp-includes/js/dist/a11y.js index c560cabf03..9d80c124c3 100644 --- a/wp-includes/js/dist/a11y.js +++ b/wp-includes/js/dist/a11y.js @@ -82,26 +82,26 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 326); +/******/ return __webpack_require__(__webpack_require__.s = 380); /******/ }) /************************************************************************/ /******/ ({ -/***/ 183: +/***/ 204: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["domReady"]; }()); /***/ }), -/***/ 326: +/***/ 380: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: external {"this":["wp","domReady"]} -var external_this_wp_domReady_ = __webpack_require__(183); +var external_this_wp_domReady_ = __webpack_require__(204); var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_); // CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/addContainer.js @@ -207,11 +207,23 @@ var build_module_setup = function setup() { external_this_wp_domReady_default()(build_module_setup); /** - * Update the ARIA live notification area text node. + * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions. + * This module is inspired by the `speak` function in wp-a11y.js * * @param {string} message The message to be announced by Assistive Technologies. * @param {string} ariaLive Optional. The politeness level for aria-live. Possible values: * polite or assertive. Default polite. + * + * @example + * ```js + * import { speak } from '@wordpress/a11y'; + * + * // For polite messages that shouldn't interrupt what screen readers are currently announcing. + * speak( 'The message you want to send to the ARIA live region' ); + * + * // For assertive messages that should interrupt what screen readers are currently announcing. + * speak( 'The message you want to send to the ARIA live region', 'assertive' ); + * ``` */ var build_module_speak = function speak(message, ariaLive) { diff --git a/wp-includes/js/dist/a11y.min.js b/wp-includes/js/dist/a11y.min.js index e9f026a3fa..3402641ea0 100644 --- a/wp-includes/js/dist/a11y.min.js +++ b/wp-includes/js/dist/a11y.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.a11y=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=326)}({183:function(e,t){!function(){e.exports=this.wp.domReady}()},326:function(e,t,n){"use strict";n.r(t);var r=n(183),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",function(){return p}),n.d(t,"speak",function(){return c});var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.a11y=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=380)}({204:function(e,t){!function(){e.exports=this.wp.domReady}()},380:function(e,t,n){"use strict";n.r(t);var r=n(204),o=n.n(r),i=function(e){e=e||"polite";var t=document.createElement("div");return t.id="a11y-speak-"+e,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t},a=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t]+>/g," "),u===e&&(e+=" "),u=e,e};n.d(t,"setup",function(){return p}),n.d(t,"speak",function(){return c});var p=function(){var e=document.getElementById("a11y-speak-polite"),t=document.getElementById("a11y-speak-assertive");null===e&&(e=i("polite")),null===t&&(t=i("assertive"))};o()(p);var c=function(e,t){a(),e=l(e);var n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive");r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js index 1c194f43ff..7e907efb57 100644 --- a/wp-includes/js/dist/annotations.js +++ b/wp-includes/js/dist/annotations.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 317); +/******/ return __webpack_require__(__webpack_require__.s = 370); /******/ }) /************************************************************************/ /******/ ({ @@ -116,7 +116,7 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -132,7 +132,7 @@ function _arrayWithoutHoles(arr) { } } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(33); +var iterableToArray = __webpack_require__(34); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -207,14 +207,14 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["hooks"]; }()); /***/ }), -/***/ 28: +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -496,7 +496,18 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 317: +/***/ 34: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +/***/ }), + +/***/ 370: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -521,10 +532,10 @@ var external_this_wp_data_ = __webpack_require__(5); var defineProperty = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); @@ -638,7 +649,7 @@ function reducer_annotations() { var objectWithoutProperties = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(28); +var rememo = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js @@ -718,7 +729,7 @@ function __experimentalGetAnnotations(state) { } // EXTERNAL MODULE: ./node_modules/uuid/v4.js -var v4 = __webpack_require__(59); +var v4 = __webpack_require__(65); var v4_default = /*#__PURE__*/__webpack_require__.n(v4); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/actions.js @@ -852,7 +863,7 @@ var store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, { var external_this_wp_richText_ = __webpack_require__(20); // EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(38); +var memize = __webpack_require__(41); var memize_default = /*#__PURE__*/__webpack_require__.n(memize); // EXTERNAL MODULE: external {"this":["wp","i18n"]} @@ -1073,7 +1084,7 @@ var format_name = annotation_annotation.name, Object(external_this_wp_richText_["registerFormatType"])(format_name, settings); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(23); +var external_this_wp_hooks_ = __webpack_require__(24); // CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/block/index.js /** @@ -1115,18 +1126,7 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/anno /***/ }), -/***/ 33: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - -/***/ }), - -/***/ 38: +/***/ 41: /***/ (function(module, exports, __webpack_require__) { module.exports = function memize( fn, options ) { @@ -1251,11 +1251,11 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 59: +/***/ 65: /***/ (function(module, exports, __webpack_require__) { -var rng = __webpack_require__(79); -var bytesToUuid = __webpack_require__(80); +var rng = __webpack_require__(87); +var bytesToUuid = __webpack_require__(88); function v4(options, buf, offset) { var i = buf && offset || 0; @@ -1287,7 +1287,35 @@ module.exports = v4; /***/ }), -/***/ 79: +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + +/***/ }), + +/***/ 87: /***/ (function(module, exports) { // Unique ID creation requires a high quality random # generator. In the @@ -1328,35 +1356,7 @@ if (getRandomValues) { /***/ }), -/***/ 8: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 80: +/***/ 88: /***/ (function(module, exports) { /** diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js index 36c0d9e518..8128650b3e 100644 --- a/wp-includes/js/dist/annotations.min.js +++ b/wp-includes/js/dist/annotations.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=317)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},15:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",function(){return r})},18:function(t,n,e){"use strict";var r=e(33);function o(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",function(){return r})},23:function(t,n){!function(){t.exports=this.wp.hooks}()},28:function(t,n,e){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,n,e){var r;if(t.length!==n.length)return!1;for(r=e;r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&(t=o.range,!(Object(f.isNumber)(t.start)&&Object(f.isNumber)(t.end)&&t.start<=t.end)))return n;var a=Object(f.get)(n,r,[]);return Object(c.a)({},n,Object(i.a)({},r,[].concat(Object(u.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(f.mapValues)(n,function(t){return l(t,function(t){return t.id!==e.annotationId})});case"ANNOTATION_UPDATE_RANGE":return Object(f.mapValues)(n,function(t){var n=!1,r=t.map(function(t){return t.id===e.annotationId?(n=!0,Object(c.a)({},t,{range:{start:e.start,end:e.end}})):t});return n?r:t});case"ANNOTATION_REMOVE_SOURCE":return Object(f.mapValues)(n,function(t){return l(t,function(t){return t.source!==e.source})})}return n},p=e(21),d=e(28),v=[],b=Object(d.a)(function(t,n){return Object(f.get)(t,n,[]).filter(function(t){return"block"===t.selector})},function(t,n){return[Object(f.get)(t,n,v)]}),g=function(t,n){return Object(f.get)(t,n,v)},O=Object(d.a)(function(t,n,e){return Object(f.get)(t,n,[]).filter(function(t){return"range"===t.selector&&e===t.richTextIdentifier}).map(function(t){var n=t.range,e=Object(p.a)(t,["range"]);return Object(c.a)({},n,e)})},function(t,n){return[Object(f.get)(t,n,v)]});function m(t){return Object(f.flatMap)(t,function(t){return t})}var y=e(59),h=e.n(y);function x(t){var n=t.blockClientId,e=t.richTextIdentifier,r=void 0===e?null:e,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,f=void 0===c?"default":c,l=t.id,s={type:"ANNOTATION_ADD",id:void 0===l?h()():l,blockClientId:n,richTextIdentifier:r,source:f,selector:u};return"range"===u&&(s.range=a),s}function A(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function _(t,n,e){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:n,end:e}}function j(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}Object(a.registerStore)("core/annotations",{reducer:s,selectors:r,actions:o});var T=e(20),N=e(38),w=e.n(N),I=e(1),E="core/annotation",R="annotation-text-";var k=w()(function(t){var n=t.annotations;return function(t,e){if(0===n.length)return t;var r={formats:t,text:e};return(r=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach(function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o=R+n.source,a=R+n.id;t=Object(T.applyFormat)(t,{type:E,attributes:{className:o,id:a}},e,r)}),t}(r,n)).formats}}),S=w()(function(t){return{annotations:t}}),P={name:E,title:Object(I.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,n){var e=n.richTextIdentifier,r=n.blockClientId;return S(t("core/annotations").__experimentalGetAnnotationsForRichText(r,e))},__experimentalCreatePrepareEditableTree:k,__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach(function(t,e){(t=(t=t||[]).filter(function(t){return t.type===E})).forEach(function(t){var r=t.attributes.id;r=r.replace(R,""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1})}),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach(function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)})}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},C=P.name,D=Object(p.a)(P,["name"]);Object(T.registerFormatType)(C,D);var M=e(23);Object(M.addFilter)("editor.BlockListBlock","core/annotations",function(t){return Object(a.withSelect)(function(t,n){var e=n.clientId;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map(function(t){return"is-annotated-by-"+t.source}).join(" ")}})(t)})},33:function(t,n,e){"use strict";function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}e.d(n,"a",function(){return r})},38:function(t,n,e){t.exports=function(t,n){var e,r,o,a=0;function i(){var n,i,u=r,c=arguments.length;t:for(;u;){if(u.args.length===arguments.length){for(i=0;i>>((3&n)<<3)&255;return o}}},8:function(t,n,e){"use strict";e.d(n,"a",function(){return o});var r=e(15);function o(t){for(var n=1;n=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",function(){return r})},24:function(t,n){!function(){t.exports=this.wp.hooks}()},30:function(t,n,e){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,n,e){var r;if(t.length!==n.length)return!1;for(r=e;r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&(t=o.range,!(Object(f.isNumber)(t.start)&&Object(f.isNumber)(t.end)&&t.start<=t.end)))return n;var a=Object(f.get)(n,r,[]);return Object(c.a)({},n,Object(i.a)({},r,[].concat(Object(u.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(f.mapValues)(n,function(t){return l(t,function(t){return t.id!==e.annotationId})});case"ANNOTATION_UPDATE_RANGE":return Object(f.mapValues)(n,function(t){var n=!1,r=t.map(function(t){return t.id===e.annotationId?(n=!0,Object(c.a)({},t,{range:{start:e.start,end:e.end}})):t});return n?r:t});case"ANNOTATION_REMOVE_SOURCE":return Object(f.mapValues)(n,function(t){return l(t,function(t){return t.source!==e.source})})}return n},p=e(21),d=e(30),v=[],b=Object(d.a)(function(t,n){return Object(f.get)(t,n,[]).filter(function(t){return"block"===t.selector})},function(t,n){return[Object(f.get)(t,n,v)]}),g=function(t,n){return Object(f.get)(t,n,v)},O=Object(d.a)(function(t,n,e){return Object(f.get)(t,n,[]).filter(function(t){return"range"===t.selector&&e===t.richTextIdentifier}).map(function(t){var n=t.range,e=Object(p.a)(t,["range"]);return Object(c.a)({},n,e)})},function(t,n){return[Object(f.get)(t,n,v)]});function m(t){return Object(f.flatMap)(t,function(t){return t})}var y=e(65),h=e.n(y);function x(t){var n=t.blockClientId,e=t.richTextIdentifier,r=void 0===e?null:e,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,f=void 0===c?"default":c,l=t.id,s={type:"ANNOTATION_ADD",id:void 0===l?h()():l,blockClientId:n,richTextIdentifier:r,source:f,selector:u};return"range"===u&&(s.range=a),s}function A(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function _(t,n,e){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:n,end:e}}function j(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}Object(a.registerStore)("core/annotations",{reducer:s,selectors:r,actions:o});var T=e(20),N=e(41),w=e.n(N),I=e(1),E="core/annotation",R="annotation-text-";var k=w()(function(t){var n=t.annotations;return function(t,e){if(0===n.length)return t;var r={formats:t,text:e};return(r=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach(function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o=R+n.source,a=R+n.id;t=Object(T.applyFormat)(t,{type:E,attributes:{className:o,id:a}},e,r)}),t}(r,n)).formats}}),S=w()(function(t){return{annotations:t}}),P={name:E,title:Object(I.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,n){var e=n.richTextIdentifier,r=n.blockClientId;return S(t("core/annotations").__experimentalGetAnnotationsForRichText(r,e))},__experimentalCreatePrepareEditableTree:k,__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach(function(t,e){(t=(t=t||[]).filter(function(t){return t.type===E})).forEach(function(t){var r=t.attributes.id;r=r.replace(R,""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1})}),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach(function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)})}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},C=P.name,D=Object(p.a)(P,["name"]);Object(T.registerFormatType)(C,D);var M=e(24);Object(M.addFilter)("editor.BlockListBlock","core/annotations",function(t){return Object(a.withSelect)(function(t,n){var e=n.clientId;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map(function(t){return"is-annotated-by-"+t.source}).join(" ")}})(t)})},41:function(t,n,e){t.exports=function(t,n){var e,r,o,a=0;function i(){var n,i,u=r,c=arguments.length;t:for(;u;){if(u.args.length===arguments.length){for(i=0;i>>((3&n)<<3)&255;return o}}},88:function(t,n){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,o=e;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/api-fetch.js b/wp-includes/js/dist/api-fetch.js index cfaf8c8bd8..7d62202855 100644 --- a/wp-includes/js/dist/api-fetch.js +++ b/wp-includes/js/dist/api-fetch.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 318); +/******/ return __webpack_require__(__webpack_require__.s = 369); /******/ }) /************************************************************************/ /******/ ({ @@ -160,21 +160,29 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 22: +/***/ 23: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["url"]; }()); /***/ }), -/***/ 318: +/***/ 26: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(54); + + +/***/ }), + +/***/ 369: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules var objectWithoutProperties = __webpack_require__(21); @@ -325,17 +333,22 @@ var createPreloadingMiddleware = function createPreloadingMiddleware(preloadedDa /* harmony default export */ var preloading = (createPreloadingMiddleware); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js +var regenerator = __webpack_require__(26); +var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(41); +var asyncToGenerator = __webpack_require__(44); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(22); +var external_this_wp_url_ = __webpack_require__(23); // CONCATENATED MODULE: ./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js + /** * WordPress dependencies */ @@ -389,9 +402,9 @@ var fetchAllMiddleware = function () { var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee(options, next) { + regenerator_default.a.mark(function _callee(options, next) { var response, results, nextPage, mergedResults, nextResponse, nextResults; - return regeneratorRuntime.wrap(function _callee$(_context) { + return regenerator_default.a.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -728,7 +741,7 @@ apiFetch.fetchAllMiddleware = fetch_all_middleware; /***/ }), -/***/ 41: +/***/ 44: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -771,7 +784,779 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 8: +/***/ 54: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This method of obtaining a reference to the global object needs to be +// kept identical to the way it is obtained in runtime.js +var g = (function() { + return this || (typeof self === "object" && self); +})() || Function("return this")(); + +// Use `getOwnPropertyNames` because not all browsers support calling +// `hasOwnProperty` on the global `self` object in a worker. See #183. +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; + +// Save the old regeneratorRuntime in case it needs to be restored later. +var oldRuntime = hadRuntime && g.regeneratorRuntime; + +// Force reevalutation of runtime.js. +g.regeneratorRuntime = undefined; + +module.exports = __webpack_require__(55); + +if (hadRuntime) { + // Restore the original runtime. + g.regeneratorRuntime = oldRuntime; +} else { + // Remove the global property added by runtime.js. + try { + delete g.regeneratorRuntime; + } catch(e) { + g.regeneratorRuntime = undefined; + } +} + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +!(function(global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + runtime.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); + + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + Gp[toStringTagSymbol] = "Generator"; + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + + Gp.toString = function() { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { + return this || (typeof self === "object" && self); + })() || Function("return this")() +); + + +/***/ }), + +/***/ 7: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/api-fetch.min.js b/wp-includes/js/dist/api-fetch.min.js index 848fe23b28..a10a29e41b 100644 --- a/wp-includes/js/dist/api-fetch.min.js +++ b/wp-includes/js/dist/api-fetch.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.apiFetch=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}return 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=318)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},15:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",function(){return n})},21:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,"a",function(){return n})},22:function(e,t){!function(){e.exports=this.wp.url}()},318:function(e,t,r){"use strict";r.r(t);var n=r(8),o=r(21),u=r(1);var a=function(e){function t(e,r){var o=e.headers,u=void 0===o?{}:o;for(var a in u)if("x-wp-nonce"===a.toLowerCase())return r(e);return r(Object(n.a)({},e,{headers:Object(n.a)({},u,{"X-WP-Nonce":t.nonce})}))}return t.nonce=e,t},c=function(e,t){var r,o,u=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),u=(o=e.endpoint.replace(/^\//,""))?r+"/"+o:r),delete e.namespace,delete e.endpoint,t(Object(n.a)({},e,{path:u}))},i=function(e){return function(t,r){return c(t,function(t){var o,u=t.url,a=t.path;return"string"==typeof a&&(o=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof o&&-1!==o.indexOf("?")&&(a=a.replace("?","&")),u=o+a),r(Object(n.a)({},t,{url:u}))})}},s=function(e){return function(t,r){var n=t.parse,o=void 0===n||n;if("string"==typeof t.path){var u=t.method||"GET",a=function(e){var t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map(function(e){return e.split("=")}).sort(function(e,t){return e[0].localeCompare(t[0])}).map(function(e){return e.join("=")}).join("&"):n}(t.path);if(o&&"GET"===u&&e[a])return Promise.resolve(e[a].body);if("OPTIONS"===u&&e[u][a])return Promise.resolve(e[u][a])}return r(t)}},f=r(41),p=r(22),l=function(e,t){var r=e.path,u=e.url,a=Object(o.a)(e,["path","url"]);return Object(n.a)({},a,{url:u&&Object(p.addQueryArgs)(u,t),path:r&&Object(p.addQueryArgs)(r,t)})},d=function(e){return e.json?e.json():Promise.reject(e)},b=function(e){return function(e){if(!e)return{};var t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},h=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},O=function(){var e=Object(f.a)(regeneratorRuntime.mark(function e(t,r){var o,u,a,c,i,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(h(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,r(Object(n.a)({},l(t,{per_page:100}),{parse:!1}));case 6:return o=e.sent,e.next=9,d(o);case 9:if(u=e.sent,Array.isArray(u)){e.next=12;break}return e.abrupt("return",u);case 12:if(a=b(o)){e.next=15;break}return e.abrupt("return",u);case 15:c=[].concat(u);case 16:if(!a){e.next=27;break}return e.next=19,r(Object(n.a)({},t,{path:void 0,url:a,parse:!1}));case 19:return i=e.sent,e.next=22,d(i);case 22:s=e.sent,c=c.concat(s),a=b(i),e.next=16;break;case 27:return e.abrupt("return",c);case 28:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}(),v=new Set(["PATCH","PUT","DELETE"]),j="GET";var y={Accept:"application/json, */*;q=0.1"},g={credentials:"include"},m=[function(e,t){return"string"!=typeof e.url||Object(p.hasQueryArg)(e.url,"_locale")||(e.url=Object(p.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(p.hasQueryArg)(e.path,"_locale")||(e.path=Object(p.addQueryArgs)(e.path,{_locale:"user"})),t(e,t)},c,function(e,t){var r=e.method,o=void 0===r?j:r;return v.has(o.toUpperCase())&&(e=Object(n.a)({},e,{headers:Object(n.a)({},e.headers,{"X-HTTP-Method-Override":o,"Content-Type":"application/json"}),method:"POST"})),t(e,t)},O];var w=function(e){var t=e.url,r=e.path,a=e.data,c=e.parse,i=void 0===c||c,s=Object(o.a)(e,["url","path","data","parse"]),f=e.body,p=e.headers;p=Object(n.a)({},y,p),a&&(f=JSON.stringify(a),p["Content-Type"]="application/json");return window.fetch(t||r,Object(n.a)({},g,s,{body:f,headers:p})).then(function(e){if(e.status>=200&&e.status<300)return e;throw e}).then(function(e){return i?204===e.status?null:e.json?e.json():Promise.reject(e):e}).catch(function(e){if(!i)throw e;var t={code:"invalid_json",message:Object(u.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(function(){throw t}).then(function(e){var t={code:"unknown_error",message:Object(u.__)("An unknown error occurred.")};throw e||t})})};function x(e){var t=[].concat(m,[w]);return function e(r){return function(n){var o=t[r];return r===t.length-1?o(n):o(n,e(r+1))}}(0)(e)}x.use=function(e){m.unshift(e)},x.setFetchHandler=function(e){w=e},x.createNonceMiddleware=a,x.createPreloadingMiddleware=s,x.createRootURLMiddleware=i,x.fetchAllMiddleware=O;t.default=x},41:function(e,t,r){"use strict";function n(e,t,r,n,o,u,a){try{var c=e[u](a),i=c.value}catch(e){return void r(e)}c.done?t(i):Promise.resolve(i).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(o,u){var a=e.apply(t,r);function c(e){n(a,o,u,c,i,"next",e)}function i(e){n(a,o,u,c,i,"throw",e)}c(void 0)})}}r.d(t,"a",function(){return o})},8:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(15);function o(e){for(var t=1;t=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}r.d(e,"a",function(){return n})},23:function(t,e){!function(){t.exports=this.wp.url}()},26:function(t,e,r){t.exports=r(54)},369:function(t,e,r){"use strict";r.r(e);var n=r(7),o=r(21),i=r(1);var a=function(t){function e(t,r){var o=t.headers,i=void 0===o?{}:o;for(var a in i)if("x-wp-nonce"===a.toLowerCase())return r(t);return r(Object(n.a)({},t,{headers:Object(n.a)({},i,{"X-WP-Nonce":e.nonce})}))}return e.nonce=t,e},u=function(t,e){var r,o,i=t.path;return"string"==typeof t.namespace&&"string"==typeof t.endpoint&&(r=t.namespace.replace(/^\/|\/$/g,""),i=(o=t.endpoint.replace(/^\//,""))?r+"/"+o:r),delete t.namespace,delete t.endpoint,e(Object(n.a)({},t,{path:i}))},c=function(t){return function(e,r){return u(e,function(e){var o,i=e.url,a=e.path;return"string"==typeof a&&(o=t,-1!==t.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof o&&-1!==o.indexOf("?")&&(a=a.replace("?","&")),i=o+a),r(Object(n.a)({},e,{url:i}))})}},s=function(t){return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var i=e.method||"GET",a=function(t){var e=t.split("?"),r=e[1],n=e[0];return r?n+"?"+r.split("&").map(function(t){return t.split("=")}).sort(function(t,e){return t[0].localeCompare(e[0])}).map(function(t){return t.join("=")}).join("&"):n}(e.path);if(o&&"GET"===i&&t[a])return Promise.resolve(t[a].body);if("OPTIONS"===i&&t[i][a])return Promise.resolve(t[i][a])}return r(e)}},f=r(26),l=r.n(f),p=r(44),h=r(23),d=function(t,e){var r=t.path,i=t.url,a=Object(o.a)(t,["path","url"]);return Object(n.a)({},a,{url:i&&Object(h.addQueryArgs)(i,e),path:r&&Object(h.addQueryArgs)(r,e)})},y=function(t){return t.json?t.json():Promise.reject(t)},v=function(t){return function(t){if(!t)return{};var e=t.match(/<([^>]+)>; rel="next"/);return e?{next:e[1]}:{}}(t.headers.get("link")).next},g=function(t){var e=t.path&&-1!==t.path.indexOf("per_page=-1"),r=t.url&&-1!==t.url.indexOf("per_page=-1");return e||r},m=function(){var t=Object(p.a)(l.a.mark(function t(e,r){var o,i,a,u,c,s;return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e.parse){t.next=2;break}return t.abrupt("return",r(e));case 2:if(g(e)){t.next=4;break}return t.abrupt("return",r(e));case 4:return t.next=6,r(Object(n.a)({},d(e,{per_page:100}),{parse:!1}));case 6:return o=t.sent,t.next=9,y(o);case 9:if(i=t.sent,Array.isArray(i)){t.next=12;break}return t.abrupt("return",i);case 12:if(a=v(o)){t.next=15;break}return t.abrupt("return",i);case 15:u=[].concat(i);case 16:if(!a){t.next=27;break}return t.next=19,r(Object(n.a)({},e,{path:void 0,url:a,parse:!1}));case 19:return c=t.sent,t.next=22,y(c);case 22:s=t.sent,u=u.concat(s),a=v(c),t.next=16;break;case 27:return t.abrupt("return",u);case 28:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}(),b=new Set(["PATCH","PUT","DELETE"]),w="GET";var O={Accept:"application/json, */*;q=0.1"},j={credentials:"include"},x=[function(t,e){return"string"!=typeof t.url||Object(h.hasQueryArg)(t.url,"_locale")||(t.url=Object(h.addQueryArgs)(t.url,{_locale:"user"})),"string"!=typeof t.path||Object(h.hasQueryArg)(t.path,"_locale")||(t.path=Object(h.addQueryArgs)(t.path,{_locale:"user"})),e(t,e)},u,function(t,e){var r=t.method,o=void 0===r?w:r;return b.has(o.toUpperCase())&&(t=Object(n.a)({},t,{headers:Object(n.a)({},t.headers,{"X-HTTP-Method-Override":o,"Content-Type":"application/json"}),method:"POST"})),e(t,e)},m];var _=function(t){var e=t.url,r=t.path,a=t.data,u=t.parse,c=void 0===u||u,s=Object(o.a)(t,["url","path","data","parse"]),f=t.body,l=t.headers;l=Object(n.a)({},O,l),a&&(f=JSON.stringify(a),l["Content-Type"]="application/json");return window.fetch(e||r,Object(n.a)({},j,s,{body:f,headers:l})).then(function(t){if(t.status>=200&&t.status<300)return t;throw t}).then(function(t){return c?204===t.status?null:t.json?t.json():Promise.reject(t):t}).catch(function(t){if(!c)throw t;var e={code:"invalid_json",message:Object(i.__)("The response is not a valid JSON response.")};if(!t||!t.json)throw e;return t.json().catch(function(){throw e}).then(function(t){var e={code:"unknown_error",message:Object(i.__)("An unknown error occurred.")};throw t||e})})};function P(t){var e=[].concat(x,[_]);return function t(r){return function(n){var o=e[r];return r===e.length-1?o(n):o(n,t(r+1))}}(0)(t)}P.use=function(t){x.unshift(t)},P.setFetchHandler=function(t){_=t},P.createNonceMiddleware=a,P.createPreloadingMiddleware=s,P.createRootURLMiddleware=c,P.fetchAllMiddleware=m;e.default=P},44:function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)})}}r.d(e,"a",function(){return o})},54:function(t,e,r){var n=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(55),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},55:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",y={},v={};v[a]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(A([])));m&&m!==n&&o.call(m,a)&&(v=m);var b=_.prototype=j.prototype=Object.create(v);x.prototype=b.constructor=_,_.constructor=x,_[c]=x.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},P(L.prototype),L.prototype[u]=function(){return this},f.AsyncIterator=L,f.async=function(t,e,r,n){var o=new L(w(t,e,r,n));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},P(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}}}function w(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=O(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function O(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function j(){}function x(){}function _(){}function P(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function L(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,a){var u=O(t[r],t,n);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,a)})}a(u.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function E(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,E(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=O(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++nmy text

" + * ``` + * * @return {string} Text which has been converted into paragraph tags. */ @@ -358,6 +365,13 @@ function autop(text) { * Unifies whitespace. Indents `
  • `, `
    ` and `
    ` for better readability. * * @param {string} html The content from the editor. + * + * @example + * ```js + * import { removep } from '@wordpress/autop'; + * removep( '

    my text

    ' ); // "my text" + * ``` + * * @return {string} The content with stripped paragraph tags. */ @@ -477,13 +491,13 @@ function removep(html) { /***/ }), -/***/ 25: +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(34); +var arrayWithHoles = __webpack_require__(37); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(arr, i) { @@ -512,7 +526,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(35); +var nonIterableRest = __webpack_require__(38); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); @@ -525,7 +539,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 34: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -536,7 +550,7 @@ function _arrayWithHoles(arr) { /***/ }), -/***/ 35: +/***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/autop.min.js b/wp-includes/js/dist/autop.min.js index 14e2a2df9f..a779017811 100644 --- a/wp-includes/js/dist/autop.min.js +++ b/wp-includes/js/dist/autop.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},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,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=195)}({195:function(e,r,n){"use strict";n.r(r),n.d(r,"autop",function(){return a}),n.d(r,"removep",function(){return i});var t=n(25),p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);)n.push(t.slice(0,r.index)),n.push(r[0]),t=t.slice(r.index+r[0].length);return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([s,o.substr(l)+""]),e+=o.substr(0,l)+s}else e+=o}e+=a}var u="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+u+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var g=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",g.forEach(function(r){e+="

    "+r.replace(/^\n*|\n*$/g,"")+"

    \n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

    \s*<\/p>/g,"")).replace(/

    ([^<]+)<\/(div|address|form)>/g,"

    $1

    ")).replace(new RegExp("

    \\s*(]*>)\\s*

    ","g"),"$1")).replace(/

    (/g,"$1")).replace(/

    ]*)>/gi,"

    ")).replace(/<\/blockquote><\/p>/g,"

    ")).replace(new RegExp("

    \\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

    ","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,function(e){return e[0].replace(/\n/g,"")})).replace(/
    |/g,"
    ")).replace(/(
    )?\s*\n/g,function(e,r){return r?e:"
    \n"})).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
    ","g"),"$1")).replace(/
    (\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

    "),n.forEach(function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,function(e){return p.push(e),""})),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,function(e){return(e=(e=e.replace(/
    (\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")})),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")})),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

    ]+>.*?)<\/p>/g,"$1")).replace(/]*)?>\s*

    /gi,"\n\n")).replace(/\s*

    /gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
    \s*/gi,function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"})).replace(/\s*

    \s*/g,"
    \n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,function(e){return e.replace(/[\r\n]+/g,"")})),e=(e=(e=(e=e.replace(/<\/p#>/g,"

    \n")).replace(/\s*(

    ]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,function(){return p.shift()})),e):""}},25:function(e,r,n){"use strict";var t=n(34);var p=n(35);function c(e,r){return Object(t.a)(e)||function(e,r){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}(e,r)||Object(p.a)()}n.d(r,"a",function(){return c})},34:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",function(){return t})},35:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(r,"a",function(){return t})}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},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,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=254)}({254:function(e,r,n){"use strict";n.r(r),n.d(r,"autop",function(){return a}),n.d(r,"removep",function(){return i});var t=n(28),p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);)n.push(t.slice(0,r.index)),n.push(r[0]),t=t.slice(r.index+r[0].length);return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([s,o.substr(l)+""]),e+=o.substr(0,l)+s}else e+=o}e+=a}var u="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+u+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var g=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",g.forEach(function(r){e+="

    "+r.replace(/^\n*|\n*$/g,"")+"

    \n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

    \s*<\/p>/g,"")).replace(/

    ([^<]+)<\/(div|address|form)>/g,"

    $1

    ")).replace(new RegExp("

    \\s*(]*>)\\s*

    ","g"),"$1")).replace(/

    (/g,"$1")).replace(/

    ]*)>/gi,"

    ")).replace(/<\/blockquote><\/p>/g,"

    ")).replace(new RegExp("

    \\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

    ","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,function(e){return e[0].replace(/\n/g,"")})).replace(/
    |/g,"
    ")).replace(/(
    )?\s*\n/g,function(e,r){return r?e:"
    \n"})).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
    ","g"),"$1")).replace(/
    (\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

    "),n.forEach(function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,function(e){return p.push(e),""})),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,function(e){return(e=(e=e.replace(/
    (\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")})),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")})),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

    ]+>.*?)<\/p>/g,"$1")).replace(/]*)?>\s*

    /gi,"\n\n")).replace(/\s*

    /gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
    \s*/gi,function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"})).replace(/\s*

    \s*/g,"
    \n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,function(e){return e.replace(/[\r\n]+/g,"")})),e=(e=(e=(e=e.replace(/<\/p#>/g,"

    \n")).replace(/\s*(

    ]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,function(){return p.shift()})),e):""}},28:function(e,r,n){"use strict";var t=n(37);var p=n(38);function c(e,r){return Object(t.a)(e)||function(e,r){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}(e,r)||Object(p.a)()}n.d(r,"a",function(){return c})},37:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",function(){return t})},38:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(r,"a",function(){return t})}}); \ No newline at end of file diff --git a/wp-includes/js/dist/blob.js b/wp-includes/js/dist/blob.js index 66c87d1048..80ca82e447 100644 --- a/wp-includes/js/dist/blob.js +++ b/wp-includes/js/dist/blob.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["blob"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 196); +/******/ return __webpack_require__(__webpack_require__.s = 255); /******/ }) /************************************************************************/ /******/ ({ -/***/ 196: +/***/ 255: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/blob.min.js b/wp-includes/js/dist/blob.min.js index d06c5f75e4..0d967ab39c 100644 --- a/wp-includes/js/dist/blob.min.js +++ b/wp-includes/js/dist/blob.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.blob=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=196)}({196:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",function(){return f}),n.d(t,"getBlobByURL",function(){return c}),n.d(t,"revokeBlobURL",function(){return l}),n.d(t,"isBlobURL",function(){return d});var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blob=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=255)}({255:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",function(){return f}),n.d(t,"getBlobByURL",function(){return c}),n.d(t,"revokeBlobURL",function(){return l}),n.d(t,"isBlobURL",function(){return d});var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index b4f329b380..9fc67069bf 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockEditor"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 312); +/******/ return __webpack_require__(__webpack_require__.s = 357); /******/ }) /************************************************************************/ /******/ ({ @@ -119,7 +119,7 @@ function _classCallCheck(instance, Constructor) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); @@ -133,6 +133,1144 @@ function _possibleConstructorReturn(self, call) { /***/ }), +/***/ 111: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +exports.__esModule = true; +var React = __webpack_require__(27); +var PropTypes = __webpack_require__(31); +var autosize = __webpack_require__(112); +var _getLineHeight = __webpack_require__(113); +var getLineHeight = _getLineHeight; +var UPDATE = 'autosize:update'; +var DESTROY = 'autosize:destroy'; +var RESIZED = 'autosize:resized'; +/** + * A light replacement for built-in textarea component + * which automaticaly adjusts its height to match the content + */ +var TextareaAutosize = /** @class */ (function (_super) { + __extends(TextareaAutosize, _super); + function TextareaAutosize() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + lineHeight: null + }; + _this.dispatchEvent = function (EVENT_TYPE) { + var event = document.createEvent('Event'); + event.initEvent(EVENT_TYPE, true, false); + _this.textarea.dispatchEvent(event); + }; + _this.updateLineHeight = function () { + _this.setState({ + lineHeight: getLineHeight(_this.textarea) + }); + }; + _this.onChange = function (e) { + var onChange = _this.props.onChange; + _this.currentValue = e.currentTarget.value; + onChange && onChange(e); + }; + _this.saveDOMNodeRef = function (ref) { + var innerRef = _this.props.innerRef; + if (innerRef) { + innerRef(ref); + } + _this.textarea = ref; + }; + _this.getLocals = function () { + var _a = _this, _b = _a.props, onResize = _b.onResize, maxRows = _b.maxRows, onChange = _b.onChange, style = _b.style, innerRef = _b.innerRef, props = __rest(_b, ["onResize", "maxRows", "onChange", "style", "innerRef"]), lineHeight = _a.state.lineHeight, saveDOMNodeRef = _a.saveDOMNodeRef; + var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null; + return __assign({}, props, { saveDOMNodeRef: saveDOMNodeRef, style: maxHeight ? __assign({}, style, { maxHeight: maxHeight }) : style, onChange: _this.onChange }); + }; + return _this; + } + TextareaAutosize.prototype.componentDidMount = function () { + var _this = this; + var _a = this.props, onResize = _a.onResize, maxRows = _a.maxRows; + if (typeof maxRows === 'number') { + this.updateLineHeight(); + } + /* + the defer is needed to: + - force "autosize" to activate the scrollbar when this.props.maxRows is passed + - support StyledComponents (see #71) + */ + setTimeout(function () { return autosize(_this.textarea); }); + if (onResize) { + this.textarea.addEventListener(RESIZED, onResize); + } + }; + TextareaAutosize.prototype.componentWillUnmount = function () { + var onResize = this.props.onResize; + if (onResize) { + this.textarea.removeEventListener(RESIZED, onResize); + } + this.dispatchEvent(DESTROY); + }; + TextareaAutosize.prototype.render = function () { + var _a = this.getLocals(), children = _a.children, saveDOMNodeRef = _a.saveDOMNodeRef, locals = __rest(_a, ["children", "saveDOMNodeRef"]); + return (React.createElement("textarea", __assign({}, locals, { ref: saveDOMNodeRef }), children)); + }; + TextareaAutosize.prototype.componentDidUpdate = function (prevProps) { + if (this.props.value !== this.currentValue || this.props.rows !== prevProps.rows) { + this.dispatchEvent(UPDATE); + } + }; + TextareaAutosize.defaultProps = { + rows: 1 + }; + TextareaAutosize.propTypes = { + rows: PropTypes.number, + maxRows: PropTypes.number, + onResize: PropTypes.func, + innerRef: PropTypes.func + }; + return TextareaAutosize; +}(React.Component)); +exports["default"] = TextareaAutosize; + + +/***/ }), + +/***/ 112: +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + autosize 4.0.2 + license: MIT + http://www.jacklmoore.com/autosize +*/ +(function (global, factory) { + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { var mod; } +})(this, function (module, exports) { + 'use strict'; + + var map = typeof Map === "function" ? new Map() : function () { + var keys = []; + var values = []; + + return { + has: function has(key) { + return keys.indexOf(key) > -1; + }, + get: function get(key) { + return values[keys.indexOf(key)]; + }, + set: function set(key, value) { + if (keys.indexOf(key) === -1) { + keys.push(key); + values.push(value); + } + }, + delete: function _delete(key) { + var index = keys.indexOf(key); + if (index > -1) { + keys.splice(index, 1); + values.splice(index, 1); + } + } + }; + }(); + + var createEvent = function createEvent(name) { + return new Event(name, { bubbles: true }); + }; + try { + new Event('test'); + } catch (e) { + // IE does not support `new Event()` + createEvent = function createEvent(name) { + var evt = document.createEvent('Event'); + evt.initEvent(name, true, false); + return evt; + }; + } + + function assign(ta) { + if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return; + + var heightOffset = null; + var clientWidth = null; + var cachedHeight = null; + + function init() { + var style = window.getComputedStyle(ta, null); + + if (style.resize === 'vertical') { + ta.style.resize = 'none'; + } else if (style.resize === 'both') { + ta.style.resize = 'horizontal'; + } + + if (style.boxSizing === 'content-box') { + heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom)); + } else { + heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); + } + // Fix when a textarea is not on document body and heightOffset is Not a Number + if (isNaN(heightOffset)) { + heightOffset = 0; + } + + update(); + } + + function changeOverflow(value) { + { + // Chrome/Safari-specific fix: + // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space + // made available by removing the scrollbar. The following forces the necessary text reflow. + var width = ta.style.width; + ta.style.width = '0px'; + // Force reflow: + /* jshint ignore:start */ + ta.offsetWidth; + /* jshint ignore:end */ + ta.style.width = width; + } + + ta.style.overflowY = value; + } + + function getParentOverflows(el) { + var arr = []; + + while (el && el.parentNode && el.parentNode instanceof Element) { + if (el.parentNode.scrollTop) { + arr.push({ + node: el.parentNode, + scrollTop: el.parentNode.scrollTop + }); + } + el = el.parentNode; + } + + return arr; + } + + function resize() { + if (ta.scrollHeight === 0) { + // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM. + return; + } + + var overflows = getParentOverflows(ta); + var docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240) + + ta.style.height = ''; + ta.style.height = ta.scrollHeight + heightOffset + 'px'; + + // used to check if an update is actually necessary on window.resize + clientWidth = ta.clientWidth; + + // prevents scroll-position jumping + overflows.forEach(function (el) { + el.node.scrollTop = el.scrollTop; + }); + + if (docTop) { + document.documentElement.scrollTop = docTop; + } + } + + function update() { + resize(); + + var styleHeight = Math.round(parseFloat(ta.style.height)); + var computed = window.getComputedStyle(ta, null); + + // Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box + var actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight; + + // The actual height not matching the style height (set via the resize method) indicates that + // the max-height has been exceeded, in which case the overflow should be allowed. + if (actualHeight < styleHeight) { + if (computed.overflowY === 'hidden') { + changeOverflow('scroll'); + resize(); + actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; + } + } else { + // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands. + if (computed.overflowY !== 'hidden') { + changeOverflow('hidden'); + resize(); + actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; + } + } + + if (cachedHeight !== actualHeight) { + cachedHeight = actualHeight; + var evt = createEvent('autosize:resized'); + try { + ta.dispatchEvent(evt); + } catch (err) { + // Firefox will throw an error on dispatchEvent for a detached element + // https://bugzilla.mozilla.org/show_bug.cgi?id=889376 + } + } + } + + var pageResize = function pageResize() { + if (ta.clientWidth !== clientWidth) { + update(); + } + }; + + var destroy = function (style) { + window.removeEventListener('resize', pageResize, false); + ta.removeEventListener('input', update, false); + ta.removeEventListener('keyup', update, false); + ta.removeEventListener('autosize:destroy', destroy, false); + ta.removeEventListener('autosize:update', update, false); + + Object.keys(style).forEach(function (key) { + ta.style[key] = style[key]; + }); + + map.delete(ta); + }.bind(ta, { + height: ta.style.height, + resize: ta.style.resize, + overflowY: ta.style.overflowY, + overflowX: ta.style.overflowX, + wordWrap: ta.style.wordWrap + }); + + ta.addEventListener('autosize:destroy', destroy, false); + + // IE9 does not fire onpropertychange or oninput for deletions, + // so binding to onkeyup to catch most of those events. + // There is no way that I know of to detect something like 'cut' in IE9. + if ('onpropertychange' in ta && 'oninput' in ta) { + ta.addEventListener('keyup', update, false); + } + + window.addEventListener('resize', pageResize, false); + ta.addEventListener('input', update, false); + ta.addEventListener('autosize:update', update, false); + ta.style.overflowX = 'hidden'; + ta.style.wordWrap = 'break-word'; + + map.set(ta, { + destroy: destroy, + update: update + }); + + init(); + } + + function destroy(ta) { + var methods = map.get(ta); + if (methods) { + methods.destroy(); + } + } + + function update(ta) { + var methods = map.get(ta); + if (methods) { + methods.update(); + } + } + + var autosize = null; + + // Do nothing in Node.js environment and IE8 (or lower) + if (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') { + autosize = function autosize(el) { + return el; + }; + autosize.destroy = function (el) { + return el; + }; + autosize.update = function (el) { + return el; + }; + } else { + autosize = function autosize(el, options) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], function (x) { + return assign(x, options); + }); + } + return el; + }; + autosize.destroy = function (el) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], destroy); + } + return el; + }; + autosize.update = function (el) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], update); + } + return el; + }; + } + + exports.default = autosize; + module.exports = exports['default']; +}); + +/***/ }), + +/***/ 113: +/***/ (function(module, exports, __webpack_require__) { + +// Load in dependencies +var computedStyle = __webpack_require__(114); + +/** + * Calculate the `line-height` of a given node + * @param {HTMLElement} node Element to calculate line height of. Must be in the DOM. + * @returns {Number} `line-height` of the element in pixels + */ +function lineHeight(node) { + // Grab the line-height via style + var lnHeightStr = computedStyle(node, 'line-height'); + var lnHeight = parseFloat(lnHeightStr, 10); + + // If the lineHeight did not contain a unit (i.e. it was numeric), convert it to ems (e.g. '2.3' === '2.3em') + if (lnHeightStr === lnHeight + '') { + // Save the old lineHeight style and update the em unit to the element + var _lnHeightStyle = node.style.lineHeight; + node.style.lineHeight = lnHeightStr + 'em'; + + // Calculate the em based height + lnHeightStr = computedStyle(node, 'line-height'); + lnHeight = parseFloat(lnHeightStr, 10); + + // Revert the lineHeight style + if (_lnHeightStyle) { + node.style.lineHeight = _lnHeightStyle; + } else { + delete node.style.lineHeight; + } + } + + // If the lineHeight is in `pt`, convert it to pixels (4px for 3pt) + // DEV: `em` units are converted to `pt` in IE6 + // Conversion ratio from https://developer.mozilla.org/en-US/docs/Web/CSS/length + if (lnHeightStr.indexOf('pt') !== -1) { + lnHeight *= 4; + lnHeight /= 3; + // Otherwise, if the lineHeight is in `mm`, convert it to pixels (96px for 25.4mm) + } else if (lnHeightStr.indexOf('mm') !== -1) { + lnHeight *= 96; + lnHeight /= 25.4; + // Otherwise, if the lineHeight is in `cm`, convert it to pixels (96px for 2.54cm) + } else if (lnHeightStr.indexOf('cm') !== -1) { + lnHeight *= 96; + lnHeight /= 2.54; + // Otherwise, if the lineHeight is in `in`, convert it to pixels (96px for 1in) + } else if (lnHeightStr.indexOf('in') !== -1) { + lnHeight *= 96; + // Otherwise, if the lineHeight is in `pc`, convert it to pixels (12pt for 1pc) + } else if (lnHeightStr.indexOf('pc') !== -1) { + lnHeight *= 16; + } + + // Continue our computation + lnHeight = Math.round(lnHeight); + + // If the line-height is "normal", calculate by font-size + if (lnHeightStr === 'normal') { + // Create a temporary node + var nodeName = node.nodeName; + var _node = document.createElement(nodeName); + _node.innerHTML = ' '; + + // If we have a text area, reset it to only 1 row + // https://github.com/twolfson/line-height/issues/4 + if (nodeName.toUpperCase() === 'TEXTAREA') { + _node.setAttribute('rows', '1'); + } + + // Set the font-size of the element + var fontSizeStr = computedStyle(node, 'font-size'); + _node.style.fontSize = fontSizeStr; + + // Remove default padding/border which can affect offset height + // https://github.com/twolfson/line-height/issues/4 + // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight + _node.style.padding = '0px'; + _node.style.border = '0px'; + + // Append it to the body + var body = document.body; + body.appendChild(_node); + + // Assume the line height of the element is the height + var height = _node.offsetHeight; + lnHeight = height; + + // Remove our child from the DOM + body.removeChild(_node); + } + + // Return the calculated height + return lnHeight; +} + +// Export lineHeight +module.exports = lineHeight; + + +/***/ }), + +/***/ 114: +/***/ (function(module, exports) { + +// This code has been refactored for 140 bytes +// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js +var computedStyle = function (el, prop, getComputedStyle) { + getComputedStyle = window.getComputedStyle; + + // In one fell swoop + return ( + // If we have getComputedStyle + getComputedStyle ? + // Query it + // TODO: From CSS-Query notes, we might need (node, null) for FF + getComputedStyle(el) : + + // Otherwise, we are in IE and use currentStyle + el.currentStyle + )[ + // Switch to camelCase for CSSOM + // DEV: Grabbed from jQuery + // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194 + // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597 + prop.replace(/-(\w)/gi, function (word, letter) { + return letter.toUpperCase(); + }) + ]; +}; + +module.exports = computedStyle; + + +/***/ }), + +/***/ 115: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var util = __webpack_require__(116); + +function scrollIntoView(elem, container, config) { + config = config || {}; + // document 归一化到 window + if (container.nodeType === 9) { + container = util.getWindow(container); + } + + var allowHorizontalScroll = config.allowHorizontalScroll; + var onlyScrollIfNeeded = config.onlyScrollIfNeeded; + var alignWithTop = config.alignWithTop; + var alignWithLeft = config.alignWithLeft; + var offsetTop = config.offsetTop || 0; + var offsetLeft = config.offsetLeft || 0; + var offsetBottom = config.offsetBottom || 0; + var offsetRight = config.offsetRight || 0; + + allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll; + + var isWin = util.isWindow(container); + var elemOffset = util.offset(elem); + var eh = util.outerHeight(elem); + var ew = util.outerWidth(elem); + var containerOffset = undefined; + var ch = undefined; + var cw = undefined; + var containerScroll = undefined; + var diffTop = undefined; + var diffBottom = undefined; + var win = undefined; + var winScroll = undefined; + var ww = undefined; + var wh = undefined; + + if (isWin) { + win = container; + wh = util.height(win); + ww = util.width(win); + winScroll = { + left: util.scrollLeft(win), + top: util.scrollTop(win) + }; + // elem 相对 container 可视视窗的距离 + diffTop = { + left: elemOffset.left - winScroll.left - offsetLeft, + top: elemOffset.top - winScroll.top - offsetTop + }; + diffBottom = { + left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight, + top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom + }; + containerScroll = winScroll; + } else { + containerOffset = util.offset(container); + ch = container.clientHeight; + cw = container.clientWidth; + containerScroll = { + left: container.scrollLeft, + top: container.scrollTop + }; + // elem 相对 container 可视视窗的距离 + // 注意边框, offset 是边框到根节点 + diffTop = { + left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft, + top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop + }; + diffBottom = { + left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight, + top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom + }; + } + + if (diffTop.top < 0 || diffBottom.top > 0) { + // 强制向上 + if (alignWithTop === true) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else if (alignWithTop === false) { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } else { + // 自动调整 + if (diffTop.top < 0) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; + if (alignWithTop) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } + + if (allowHorizontalScroll) { + if (diffTop.left < 0 || diffBottom.left > 0) { + // 强制向上 + if (alignWithLeft === true) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else if (alignWithLeft === false) { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } else { + // 自动调整 + if (diffTop.left < 0) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; + if (alignWithLeft) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } + } +} + +module.exports = scrollIntoView; + +/***/ }), + +/***/ 116: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; + +var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; + +function getClientPosition(elem) { + var box = undefined; + var x = undefined; + var y = undefined; + var doc = elem.ownerDocument; + var body = doc.body; + var docElem = doc && doc.documentElement; + // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 + box = elem.getBoundingClientRect(); + + // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop + // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 + // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin + + x = box.left; + y = box.top; + + // In IE, most of the time, 2 extra pixels are added to the top and left + // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and + // IE6 standards mode, this border can be overridden by setting the + // document element's border to zero -- thus, we cannot rely on the + // offset always being 2 pixels. + + // In quirks mode, the offset can be determined by querying the body's + // clientLeft/clientTop, but in standards mode, it is found by querying + // the document element's clientLeft/clientTop. Since we already called + // getClientBoundingRect we have already forced a reflow, so it is not + // too expensive just to query them all. + + // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 + // 窗口边框标准是设 documentElement ,quirks 时设置 body + // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 + // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 + // 标准 ie 下 docElem.clientTop 就是 border-top + // ie7 html 即窗口边框改变不了。永远为 2 + // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 + + x -= docElem.clientLeft || body.clientLeft || 0; + y -= docElem.clientTop || body.clientTop || 0; + + return { + left: x, + top: y + }; +} + +function getScroll(w, top) { + var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; + var method = 'scroll' + (top ? 'Top' : 'Left'); + if (typeof ret !== 'number') { + var d = w.document; + // ie6,7,8 standard mode + ret = d.documentElement[method]; + if (typeof ret !== 'number') { + // quirks mode + ret = d.body[method]; + } + } + return ret; +} + +function getScrollLeft(w) { + return getScroll(w); +} + +function getScrollTop(w) { + return getScroll(w, true); +} + +function getOffset(el) { + var pos = getClientPosition(el); + var doc = el.ownerDocument; + var w = doc.defaultView || doc.parentWindow; + pos.left += getScrollLeft(w); + pos.top += getScrollTop(w); + return pos; +} +function _getComputedStyle(elem, name, computedStyle_) { + var val = ''; + var d = elem.ownerDocument; + var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); + + // https://github.com/kissyteam/kissy/issues/61 + if (computedStyle) { + val = computedStyle.getPropertyValue(name) || computedStyle[name]; + } + + return val; +} + +var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); +var RE_POS = /^(top|right|bottom|left)$/; +var CURRENT_STYLE = 'currentStyle'; +var RUNTIME_STYLE = 'runtimeStyle'; +var LEFT = 'left'; +var PX = 'px'; + +function _getComputedStyleIE(elem, name) { + // currentStyle maybe null + // http://msdn.microsoft.com/en-us/library/ms535231.aspx + var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; + + // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 + // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 + // 在 ie 下不对,需要直接用 offset 方式 + // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 + + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + // exclude left right for relativity + if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { + // Remember the original values + var style = elem.style; + var left = style[LEFT]; + var rsLeft = elem[RUNTIME_STYLE][LEFT]; + + // prevent flashing of content + elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; + + // Put in the new values to get a computed value out + style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; + ret = style.pixelLeft + PX; + + // Revert the changed values + style[LEFT] = left; + + elem[RUNTIME_STYLE][LEFT] = rsLeft; + } + return ret === '' ? 'auto' : ret; +} + +var getComputedStyleX = undefined; +if (typeof window !== 'undefined') { + getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; +} + +function each(arr, fn) { + for (var i = 0; i < arr.length; i++) { + fn(arr[i]); + } +} + +function isBorderBoxFn(elem) { + return getComputedStyleX(elem, 'boxSizing') === 'border-box'; +} + +var BOX_MODELS = ['margin', 'border', 'padding']; +var CONTENT_INDEX = -1; +var PADDING_INDEX = 2; +var BORDER_INDEX = 1; +var MARGIN_INDEX = 0; + +function swap(elem, options, callback) { + var old = {}; + var style = elem.style; + var name = undefined; + + // Remember the old values, and insert the new ones + for (name in options) { + if (options.hasOwnProperty(name)) { + old[name] = style[name]; + style[name] = options[name]; + } + } + + callback.call(elem); + + // Revert the old values + for (name in options) { + if (options.hasOwnProperty(name)) { + style[name] = old[name]; + } + } +} + +function getPBMWidth(elem, props, which) { + var value = 0; + var prop = undefined; + var j = undefined; + var i = undefined; + for (j = 0; j < props.length; j++) { + prop = props[j]; + if (prop) { + for (i = 0; i < which.length; i++) { + var cssProp = undefined; + if (prop === 'border') { + cssProp = prop + which[i] + 'Width'; + } else { + cssProp = prop + which[i]; + } + value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; + } + } + } + return value; +} + +/** + * A crude way of determining if an object is a window + * @member util + */ +function isWindow(obj) { + // must use == for ie8 + /* eslint eqeqeq:0 */ + return obj != null && obj == obj.window; +} + +var domUtils = {}; + +each(['Width', 'Height'], function (name) { + domUtils['doc' + name] = function (refWin) { + var d = refWin.document; + return Math.max( + // firefox chrome documentElement.scrollHeight< body.scrollHeight + // ie standard mode : documentElement.scrollHeight> body.scrollHeight + d.documentElement['scroll' + name], + // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? + d.body['scroll' + name], domUtils['viewport' + name](d)); + }; + + domUtils['viewport' + name] = function (win) { + // pc browser includes scrollbar in window.innerWidth + var prop = 'client' + name; + var doc = win.document; + var body = doc.body; + var documentElement = doc.documentElement; + var documentElementProp = documentElement[prop]; + // 标准模式取 documentElement + // backcompat 取 body + return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; + }; +}); + +/* + 得到元素的大小信息 + @param elem + @param name + @param {String} [extra] 'padding' : (css width) + padding + 'border' : (css width) + padding + border + 'margin' : (css width) + padding + border + margin + */ +function getWH(elem, name, extra) { + if (isWindow(elem)) { + return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); + } else if (elem.nodeType === 9) { + return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); + } + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem, computedStyle); + var cssBoxValue = 0; + if (borderBoxValue == null || borderBoxValue <= 0) { + borderBoxValue = undefined; + // Fall back to computed then un computed css if necessary + cssBoxValue = getComputedStyleX(elem, name); + if (cssBoxValue == null || Number(cssBoxValue) < 0) { + cssBoxValue = elem.style[name] || 0; + } + // Normalize '', auto, and prepare for extra + cssBoxValue = parseFloat(cssBoxValue) || 0; + } + if (extra === undefined) { + extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; + } + var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; + var val = borderBoxValue || cssBoxValue; + if (extra === CONTENT_INDEX) { + if (borderBoxValueOrIsBorderBox) { + return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); + } + return cssBoxValue; + } + if (borderBoxValueOrIsBorderBox) { + var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); + return val + (extra === BORDER_INDEX ? 0 : padding); + } + return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); +} + +var cssShow = { + position: 'absolute', + visibility: 'hidden', + display: 'block' +}; + +// fix #119 : https://github.com/kissyteam/kissy/issues/119 +function getWHIgnoreDisplay(elem) { + var val = undefined; + var args = arguments; + // in case elem is window + // elem.offsetWidth === undefined + if (elem.offsetWidth !== 0) { + val = getWH.apply(undefined, args); + } else { + swap(elem, cssShow, function () { + val = getWH.apply(undefined, args); + }); + } + return val; +} + +function css(el, name, v) { + var value = v; + if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { + for (var i in name) { + if (name.hasOwnProperty(i)) { + css(el, i, name[i]); + } + } + return undefined; + } + if (typeof value !== 'undefined') { + if (typeof value === 'number') { + value += 'px'; + } + el.style[name] = value; + return undefined; + } + return getComputedStyleX(el, name); +} + +each(['width', 'height'], function (name) { + var first = name.charAt(0).toUpperCase() + name.slice(1); + domUtils['outer' + first] = function (el, includeMargin) { + return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); + }; + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + + domUtils[name] = function (elem, val) { + if (val !== undefined) { + if (elem) { + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem); + if (isBorderBox) { + val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); + } + return css(elem, name, val); + } + return undefined; + } + return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); + }; +}); + +// 设置 elem 相对 elem.ownerDocument 的坐标 +function setOffset(elem, offset) { + // set position first, in-case top/left are set even on static elem + if (css(elem, 'position') === 'static') { + elem.style.position = 'relative'; + } + + var old = getOffset(elem); + var ret = {}; + var current = undefined; + var key = undefined; + + for (key in offset) { + if (offset.hasOwnProperty(key)) { + current = parseFloat(css(elem, key)) || 0; + ret[key] = current + offset[key] - old[key]; + } + } + css(elem, ret); +} + +module.exports = _extends({ + getWindow: function getWindow(node) { + var doc = node.ownerDocument || node; + return doc.defaultView || doc.parentWindow; + }, + offset: function offset(el, value) { + if (typeof value !== 'undefined') { + setOffset(el, value); + } else { + return getOffset(el); + } + }, + + isWindow: isWindow, + each: each, + css: css, + clone: function clone(obj) { + var ret = {}; + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret[i] = obj[i]; + } + } + var overflow = obj.overflow; + if (overflow) { + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret.overflow[i] = obj.overflow[i]; + } + } + } + return ret; + }, + scrollLeft: function scrollLeft(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollLeft(w); + } + window.scrollTo(v, getScrollTop(w)); + } else { + if (v === undefined) { + return w.scrollLeft; + } + w.scrollLeft = v; + } + }, + scrollTop: function scrollTop(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollTop(w); + } + window.scrollTo(getScrollLeft(w), v); + } else { + if (v === undefined) { + return w.scrollTop; + } + w.scrollTop = v; + } + }, + + viewportWidth: 0, + viewportHeight: 0 +}, domUtils); + +/***/ }), + /***/ 12: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -181,6 +1319,13 @@ function _inherits(subClass, superClass) { /***/ }), +/***/ 135: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["tokenList"]; }()); + +/***/ }), + /***/ 14: /***/ (function(module, exports) { @@ -210,7 +1355,65 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 18: +/***/ 16: +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +/* global define */ + +(function () { + 'use strict'; + + var hasOwn = {}.hasOwnProperty; + + function classNames () { + var classes = []; + + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; + + var argType = typeof arg; + + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } + + return classes.join(' '); + } + + if ( true && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} +}()); + + +/***/ }), + +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -226,7 +1429,7 @@ function _arrayWithoutHoles(arr) { } } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(33); +var iterableToArray = __webpack_require__(34); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -243,6 +1446,13 @@ function _toConsumableArray(arr) { /***/ }), +/***/ 18: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keycodes"]; }()); + +/***/ }), + /***/ 19: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -275,6 +1485,1856 @@ function _extends() { /***/ }), +/***/ 20: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["richText"]; }()); + +/***/ }), + +/***/ 207: +/***/ (function(module, exports, __webpack_require__) { + +/*! + + diff v3.5.0 + +Software License Agreement (BSD License) + +Copyright (c) 2009-2015, Kevin Decker + +All rights reserved. + +Redistribution and use of this software in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + +* Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + +* Neither the name of Kevin Decker nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +@license +*/ +(function webpackUniversalModuleDefinition(root, factory) { + if(true) + module.exports = factory(); + else {} +})(this, function() { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.canonicalize = exports.convertChangesToXML = exports.convertChangesToDMP = exports.merge = exports.parsePatch = exports.applyPatches = exports.applyPatch = exports.createPatch = exports.createTwoFilesPatch = exports.structuredPatch = exports.diffArrays = exports.diffJson = exports.diffCss = exports.diffSentences = exports.diffTrimmedLines = exports.diffLines = exports.diffWordsWithSpace = exports.diffWords = exports.diffChars = exports.Diff = undefined; + + /*istanbul ignore end*/var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + /*istanbul ignore end*/var /*istanbul ignore start*/_character = __webpack_require__(2) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_word = __webpack_require__(3) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_sentence = __webpack_require__(6) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_css = __webpack_require__(7) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_json = __webpack_require__(8) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_array = __webpack_require__(9) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_apply = __webpack_require__(10) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_merge = __webpack_require__(13) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_dmp = __webpack_require__(16) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_xml = __webpack_require__(17) /*istanbul ignore end*/; + + /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /* See LICENSE file for terms of use */ + + /* + * Text diff implementation. + * + * This library supports the following APIS: + * JsDiff.diffChars: Character by character diff + * JsDiff.diffWords: Word (as defined by \b regex) diff which ignores whitespace + * JsDiff.diffLines: Line based diff + * + * JsDiff.diffCss: Diff targeted at CSS content + * + * These methods are based on the implementation proposed in + * "An O(ND) Difference Algorithm and its Variations" (Myers, 1986). + * http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927 + */ + exports. /*istanbul ignore end*/Diff = _base2['default']; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffChars = _character.diffChars; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWords = _word.diffWords; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = _word.diffWordsWithSpace; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffLines = _line.diffLines; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = _line.diffTrimmedLines; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffSentences = _sentence.diffSentences; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffCss = _css.diffCss; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffJson = _json.diffJson; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffArrays = _array.diffArrays; + /*istanbul ignore start*/exports. /*istanbul ignore end*/structuredPatch = _create.structuredPatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = _create.createTwoFilesPatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = _create.createPatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatch = _apply.applyPatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = _apply.applyPatches; + /*istanbul ignore start*/exports. /*istanbul ignore end*/parsePatch = _parse.parsePatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = _merge.merge; + /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToDMP = _dmp.convertChangesToDMP; + /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToXML = _xml.convertChangesToXML; + /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = _json.canonicalize; + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJEaWZmIiwiZGlmZkNoYXJzIiwiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImRpZmZTZW50ZW5jZXMiLCJkaWZmQ3NzIiwiZGlmZkpzb24iLCJkaWZmQXJyYXlzIiwic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwiYXBwbHlQYXRjaCIsImFwcGx5UGF0Y2hlcyIsInBhcnNlUGF0Y2giLCJtZXJnZSIsImNvbnZlcnRDaGFuZ2VzVG9ETVAiLCJjb252ZXJ0Q2hhbmdlc1RvWE1MIiwiY2Fub25pY2FsaXplIl0sIm1hcHBpbmdzIjoiOzs7Ozt1QkFnQkE7Ozs7dUJBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBRUE7O0FBQ0E7O0FBRUE7O0FBRUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBRUE7O0FBQ0E7Ozs7QUFqQ0E7O0FBRUE7Ozs7Ozs7Ozs7Ozs7O2dDQWtDRUEsSTt5REFFQUMsUzt5REFDQUMsUzt5REFDQUMsa0I7eURBQ0FDLFM7eURBQ0FDLGdCO3lEQUNBQyxhO3lEQUVBQyxPO3lEQUNBQyxRO3lEQUVBQyxVO3lEQUVBQyxlO3lEQUNBQyxtQjt5REFDQUMsVzt5REFDQUMsVTt5REFDQUMsWTt5REFDQUMsVTt5REFDQUMsSzt5REFDQUMsbUI7eURBQ0FDLG1CO3lEQUNBQyxZIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogU2VlIExJQ0VOU0UgZmlsZSBmb3IgdGVybXMgb2YgdXNlICovXG5cbi8qXG4gKiBUZXh0IGRpZmYgaW1wbGVtZW50YXRpb24uXG4gKlxuICogVGhpcyBsaWJyYXJ5IHN1cHBvcnRzIHRoZSBmb2xsb3dpbmcgQVBJUzpcbiAqIEpzRGlmZi5kaWZmQ2hhcnM6IENoYXJhY3RlciBieSBjaGFyYWN0ZXIgZGlmZlxuICogSnNEaWZmLmRpZmZXb3JkczogV29yZCAoYXMgZGVmaW5lZCBieSBcXGIgcmVnZXgpIGRpZmYgd2hpY2ggaWdub3JlcyB3aGl0ZXNwYWNlXG4gKiBKc0RpZmYuZGlmZkxpbmVzOiBMaW5lIGJhc2VkIGRpZmZcbiAqXG4gKiBKc0RpZmYuZGlmZkNzczogRGlmZiB0YXJnZXRlZCBhdCBDU1MgY29udGVudFxuICpcbiAqIFRoZXNlIG1ldGhvZHMgYXJlIGJhc2VkIG9uIHRoZSBpbXBsZW1lbnRhdGlvbiBwcm9wb3NlZCBpblxuICogXCJBbiBPKE5EKSBEaWZmZXJlbmNlIEFsZ29yaXRobSBhbmQgaXRzIFZhcmlhdGlvbnNcIiAoTXllcnMsIDE5ODYpLlxuICogaHR0cDovL2NpdGVzZWVyeC5pc3QucHN1LmVkdS92aWV3ZG9jL3N1bW1hcnk/ZG9pPTEwLjEuMS40LjY5MjdcbiAqL1xuaW1wb3J0IERpZmYgZnJvbSAnLi9kaWZmL2Jhc2UnO1xuaW1wb3J0IHtkaWZmQ2hhcnN9IGZyb20gJy4vZGlmZi9jaGFyYWN0ZXInO1xuaW1wb3J0IHtkaWZmV29yZHMsIGRpZmZXb3Jkc1dpdGhTcGFjZX0gZnJvbSAnLi9kaWZmL3dvcmQnO1xuaW1wb3J0IHtkaWZmTGluZXMsIGRpZmZUcmltbWVkTGluZXN9IGZyb20gJy4vZGlmZi9saW5lJztcbmltcG9ydCB7ZGlmZlNlbnRlbmNlc30gZnJvbSAnLi9kaWZmL3NlbnRlbmNlJztcblxuaW1wb3J0IHtkaWZmQ3NzfSBmcm9tICcuL2RpZmYvY3NzJztcbmltcG9ydCB7ZGlmZkpzb24sIGNhbm9uaWNhbGl6ZX0gZnJvbSAnLi9kaWZmL2pzb24nO1xuXG5pbXBvcnQge2RpZmZBcnJheXN9IGZyb20gJy4vZGlmZi9hcnJheSc7XG5cbmltcG9ydCB7YXBwbHlQYXRjaCwgYXBwbHlQYXRjaGVzfSBmcm9tICcuL3BhdGNoL2FwcGx5JztcbmltcG9ydCB7cGFyc2VQYXRjaH0gZnJvbSAnLi9wYXRjaC9wYXJzZSc7XG5pbXBvcnQge21lcmdlfSBmcm9tICcuL3BhdGNoL21lcmdlJztcbmltcG9ydCB7c3RydWN0dXJlZFBhdGNoLCBjcmVhdGVUd29GaWxlc1BhdGNoLCBjcmVhdGVQYXRjaH0gZnJvbSAnLi9wYXRjaC9jcmVhdGUnO1xuXG5pbXBvcnQge2NvbnZlcnRDaGFuZ2VzVG9ETVB9IGZyb20gJy4vY29udmVydC9kbXAnO1xuaW1wb3J0IHtjb252ZXJ0Q2hhbmdlc1RvWE1MfSBmcm9tICcuL2NvbnZlcnQveG1sJztcblxuZXhwb3J0IHtcbiAgRGlmZixcblxuICBkaWZmQ2hhcnMsXG4gIGRpZmZXb3JkcyxcbiAgZGlmZldvcmRzV2l0aFNwYWNlLFxuICBkaWZmTGluZXMsXG4gIGRpZmZUcmltbWVkTGluZXMsXG4gIGRpZmZTZW50ZW5jZXMsXG5cbiAgZGlmZkNzcyxcbiAgZGlmZkpzb24sXG5cbiAgZGlmZkFycmF5cyxcblxuICBzdHJ1Y3R1cmVkUGF0Y2gsXG4gIGNyZWF0ZVR3b0ZpbGVzUGF0Y2gsXG4gIGNyZWF0ZVBhdGNoLFxuICBhcHBseVBhdGNoLFxuICBhcHBseVBhdGNoZXMsXG4gIHBhcnNlUGF0Y2gsXG4gIG1lcmdlLFxuICBjb252ZXJ0Q2hhbmdlc1RvRE1QLFxuICBjb252ZXJ0Q2hhbmdlc1RvWE1MLFxuICBjYW5vbmljYWxpemVcbn07XG4iXX0= + + +/***/ }), +/* 1 */ +/***/ (function(module, exports) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports['default'] = /*istanbul ignore end*/Diff; + function Diff() {} + + Diff.prototype = { + /*istanbul ignore start*/ /*istanbul ignore end*/diff: function diff(oldString, newString) { + /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + var callback = options.callback; + if (typeof options === 'function') { + callback = options; + options = {}; + } + this.options = options; + + var self = this; + + function done(value) { + if (callback) { + setTimeout(function () { + callback(undefined, value); + }, 0); + return true; + } else { + return value; + } + } + + // Allow subclasses to massage the input prior to running + oldString = this.castInput(oldString); + newString = this.castInput(newString); + + oldString = this.removeEmpty(this.tokenize(oldString)); + newString = this.removeEmpty(this.tokenize(newString)); + + var newLen = newString.length, + oldLen = oldString.length; + var editLength = 1; + var maxEditLength = newLen + oldLen; + var bestPath = [{ newPos: -1, components: [] }]; + + // Seed editLength = 0, i.e. the content starts with the same values + var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0); + if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) { + // Identity per the equality and tokenizer + return done([{ value: this.join(newString), count: newString.length }]); + } + + // Main worker method. checks all permutations of a given edit length for acceptance. + function execEditLength() { + for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { + var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; + var addPath = bestPath[diagonalPath - 1], + removePath = bestPath[diagonalPath + 1], + _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; + if (addPath) { + // No one else is going to attempt to use this value, clear it + bestPath[diagonalPath - 1] = undefined; + } + + var canAdd = addPath && addPath.newPos + 1 < newLen, + canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen; + if (!canAdd && !canRemove) { + // If this path is a terminal then prune + bestPath[diagonalPath] = undefined; + continue; + } + + // Select the diagonal that we want to branch from. We select the prior + // path whose position in the new string is the farthest from the origin + // and does not pass the bounds of the diff graph + if (!canAdd || canRemove && addPath.newPos < removePath.newPos) { + basePath = clonePath(removePath); + self.pushComponent(basePath.components, undefined, true); + } else { + basePath = addPath; // No need to clone, we've pulled it from the list + basePath.newPos++; + self.pushComponent(basePath.components, true, undefined); + } + + _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); + + // If we have hit the end of both strings, then we are done + if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) { + return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken)); + } else { + // Otherwise track this path as a potential candidate and continue. + bestPath[diagonalPath] = basePath; + } + } + + editLength++; + } + + // Performs the length of edit iteration. Is a bit fugly as this has to support the + // sync and async mode which is never fun. Loops over execEditLength until a value + // is produced. + if (callback) { + (function exec() { + setTimeout(function () { + // This should not happen, but we want to be safe. + /* istanbul ignore next */ + if (editLength > maxEditLength) { + return callback(); + } + + if (!execEditLength()) { + exec(); + } + }, 0); + })(); + } else { + while (editLength <= maxEditLength) { + var ret = execEditLength(); + if (ret) { + return ret; + } + } + } + }, + /*istanbul ignore start*/ /*istanbul ignore end*/pushComponent: function pushComponent(components, added, removed) { + var last = components[components.length - 1]; + if (last && last.added === added && last.removed === removed) { + // We need to clone here as the component clone operation is just + // as shallow array clone + components[components.length - 1] = { count: last.count + 1, added: added, removed: removed }; + } else { + components.push({ count: 1, added: added, removed: removed }); + } + }, + /*istanbul ignore start*/ /*istanbul ignore end*/extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) { + var newLen = newString.length, + oldLen = oldString.length, + newPos = basePath.newPos, + oldPos = newPos - diagonalPath, + commonCount = 0; + while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) { + newPos++; + oldPos++; + commonCount++; + } + + if (commonCount) { + basePath.components.push({ count: commonCount }); + } + + basePath.newPos = newPos; + return oldPos; + }, + /*istanbul ignore start*/ /*istanbul ignore end*/equals: function equals(left, right) { + if (this.options.comparator) { + return this.options.comparator(left, right); + } else { + return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase(); + } + }, + /*istanbul ignore start*/ /*istanbul ignore end*/removeEmpty: function removeEmpty(array) { + var ret = []; + for (var i = 0; i < array.length; i++) { + if (array[i]) { + ret.push(array[i]); + } + } + return ret; + }, + /*istanbul ignore start*/ /*istanbul ignore end*/castInput: function castInput(value) { + return value; + }, + /*istanbul ignore start*/ /*istanbul ignore end*/tokenize: function tokenize(value) { + return value.split(''); + }, + /*istanbul ignore start*/ /*istanbul ignore end*/join: function join(chars) { + return chars.join(''); + } + }; + + function buildValues(diff, components, newString, oldString, useLongestToken) { + var componentPos = 0, + componentLen = components.length, + newPos = 0, + oldPos = 0; + + for (; componentPos < componentLen; componentPos++) { + var component = components[componentPos]; + if (!component.removed) { + if (!component.added && useLongestToken) { + var value = newString.slice(newPos, newPos + component.count); + value = value.map(function (value, i) { + var oldValue = oldString[oldPos + i]; + return oldValue.length > value.length ? oldValue : value; + }); + + component.value = diff.join(value); + } else { + component.value = diff.join(newString.slice(newPos, newPos + component.count)); + } + newPos += component.count; + + // Common case + if (!component.added) { + oldPos += component.count; + } + } else { + component.value = diff.join(oldString.slice(oldPos, oldPos + component.count)); + oldPos += component.count; + + // Reverse add and remove so removes are output first to match common convention + // The diffing algorithm is tied to add then remove output and this is the simplest + // route to get the desired output with minimal overhead. + if (componentPos && components[componentPos - 1].added) { + var tmp = components[componentPos - 1]; + components[componentPos - 1] = components[componentPos]; + components[componentPos] = tmp; + } + } + } + + // Special case handle for when one terminal is ignored (i.e. whitespace). + // For this case we merge the terminal into the prior string and drop the change. + // This is only available for string mode. + var lastComponent = components[componentLen - 1]; + if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) { + components[componentLen - 2].value += lastComponent.value; + components.pop(); + } + + return components; + } + + function clonePath(path) { + return { newPos: path.newPos, components: path.components.slice(0) }; + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXMiOlsiRGlmZiIsInByb3RvdHlwZSIsImRpZmYiLCJvbGRTdHJpbmciLCJuZXdTdHJpbmciLCJvcHRpb25zIiwiY2FsbGJhY2siLCJzZWxmIiwiZG9uZSIsInZhbHVlIiwic2V0VGltZW91dCIsInVuZGVmaW5lZCIsImNhc3RJbnB1dCIsInJlbW92ZUVtcHR5IiwidG9rZW5pemUiLCJuZXdMZW4iLCJsZW5ndGgiLCJvbGRMZW4iLCJlZGl0TGVuZ3RoIiwibWF4RWRpdExlbmd0aCIsImJlc3RQYXRoIiwibmV3UG9zIiwiY29tcG9uZW50cyIsIm9sZFBvcyIsImV4dHJhY3RDb21tb24iLCJqb2luIiwiY291bnQiLCJleGVjRWRpdExlbmd0aCIsImRpYWdvbmFsUGF0aCIsImJhc2VQYXRoIiwiYWRkUGF0aCIsInJlbW92ZVBhdGgiLCJjYW5BZGQiLCJjYW5SZW1vdmUiLCJjbG9uZVBhdGgiLCJwdXNoQ29tcG9uZW50IiwiYnVpbGRWYWx1ZXMiLCJ1c2VMb25nZXN0VG9rZW4iLCJleGVjIiwicmV0IiwiYWRkZWQiLCJyZW1vdmVkIiwibGFzdCIsInB1c2giLCJjb21tb25Db3VudCIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsImNvbXBhcmF0b3IiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJhcnJheSIsImkiLCJzcGxpdCIsImNoYXJzIiwiY29tcG9uZW50UG9zIiwiY29tcG9uZW50TGVuIiwiY29tcG9uZW50Iiwic2xpY2UiLCJtYXAiLCJvbGRWYWx1ZSIsInRtcCIsImxhc3RDb21wb25lbnQiLCJwb3AiLCJwYXRoIl0sIm1hcHBpbmdzIjoiOzs7NENBQXdCQSxJO0FBQVQsU0FBU0EsSUFBVCxHQUFnQixDQUFFOztBQUVqQ0EsS0FBS0MsU0FBTCxHQUFpQjtBQUFBLG1EQUNmQyxJQURlLGdCQUNWQyxTQURVLEVBQ0NDLFNBREQsRUFDMEI7QUFBQSx3REFBZEMsT0FBYyx1RUFBSixFQUFJOztBQUN2QyxRQUFJQyxXQUFXRCxRQUFRQyxRQUF2QjtBQUNBLFFBQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsaUJBQVdELE9BQVg7QUFDQUEsZ0JBQVUsRUFBVjtBQUNEO0FBQ0QsU0FBS0EsT0FBTCxHQUFlQSxPQUFmOztBQUVBLFFBQUlFLE9BQU8sSUFBWDs7QUFFQSxhQUFTQyxJQUFULENBQWNDLEtBQWQsRUFBcUI7QUFDbkIsVUFBSUgsUUFBSixFQUFjO0FBQ1pJLG1CQUFXLFlBQVc7QUFBRUosbUJBQVNLLFNBQVQsRUFBb0JGLEtBQXBCO0FBQTZCLFNBQXJELEVBQXVELENBQXZEO0FBQ0EsZUFBTyxJQUFQO0FBQ0QsT0FIRCxNQUdPO0FBQ0wsZUFBT0EsS0FBUDtBQUNEO0FBQ0Y7O0FBRUQ7QUFDQU4sZ0JBQVksS0FBS1MsU0FBTCxDQUFlVCxTQUFmLENBQVo7QUFDQUMsZ0JBQVksS0FBS1EsU0FBTCxDQUFlUixTQUFmLENBQVo7O0FBRUFELGdCQUFZLEtBQUtVLFdBQUwsQ0FBaUIsS0FBS0MsUUFBTCxDQUFjWCxTQUFkLENBQWpCLENBQVo7QUFDQUMsZ0JBQVksS0FBS1MsV0FBTCxDQUFpQixLQUFLQyxRQUFMLENBQWNWLFNBQWQsQ0FBakIsQ0FBWjs7QUFFQSxRQUFJVyxTQUFTWCxVQUFVWSxNQUF2QjtBQUFBLFFBQStCQyxTQUFTZCxVQUFVYSxNQUFsRDtBQUNBLFFBQUlFLGFBQWEsQ0FBakI7QUFDQSxRQUFJQyxnQkFBZ0JKLFNBQVNFLE1BQTdCO0FBQ0EsUUFBSUcsV0FBVyxDQUFDLEVBQUVDLFFBQVEsQ0FBQyxDQUFYLEVBQWNDLFlBQVksRUFBMUIsRUFBRCxDQUFmOztBQUVBO0FBQ0EsUUFBSUMsU0FBUyxLQUFLQyxhQUFMLENBQW1CSixTQUFTLENBQVQsQ0FBbkIsRUFBZ0NoQixTQUFoQyxFQUEyQ0QsU0FBM0MsRUFBc0QsQ0FBdEQsQ0FBYjtBQUNBLFFBQUlpQixTQUFTLENBQVQsRUFBWUMsTUFBWixHQUFxQixDQUFyQixJQUEwQk4sTUFBMUIsSUFBb0NRLFNBQVMsQ0FBVCxJQUFjTixNQUF0RCxFQUE4RDtBQUM1RDtBQUNBLGFBQU9ULEtBQUssQ0FBQyxFQUFDQyxPQUFPLEtBQUtnQixJQUFMLENBQVVyQixTQUFWLENBQVIsRUFBOEJzQixPQUFPdEIsVUFBVVksTUFBL0MsRUFBRCxDQUFMLENBQVA7QUFDRDs7QUFFRDtBQUNBLGFBQVNXLGNBQVQsR0FBMEI7QUFDeEIsV0FBSyxJQUFJQyxlQUFlLENBQUMsQ0FBRCxHQUFLVixVQUE3QixFQUF5Q1UsZ0JBQWdCVixVQUF6RCxFQUFxRVUsZ0JBQWdCLENBQXJGLEVBQXdGO0FBQ3RGLFlBQUlDLDBDQUFKO0FBQ0EsWUFBSUMsVUFBVVYsU0FBU1EsZUFBZSxDQUF4QixDQUFkO0FBQUEsWUFDSUcsYUFBYVgsU0FBU1EsZUFBZSxDQUF4QixDQURqQjtBQUFBLFlBRUlMLFVBQVMsQ0FBQ1EsYUFBYUEsV0FBV1YsTUFBeEIsR0FBaUMsQ0FBbEMsSUFBdUNPLFlBRnBEO0FBR0EsWUFBSUUsT0FBSixFQUFhO0FBQ1g7QUFDQVYsbUJBQVNRLGVBQWUsQ0FBeEIsSUFBNkJqQixTQUE3QjtBQUNEOztBQUVELFlBQUlxQixTQUFTRixXQUFXQSxRQUFRVCxNQUFSLEdBQWlCLENBQWpCLEdBQXFCTixNQUE3QztBQUFBLFlBQ0lrQixZQUFZRixjQUFjLEtBQUtSLE9BQW5CLElBQTZCQSxVQUFTTixNQUR0RDtBQUVBLFlBQUksQ0FBQ2UsTUFBRCxJQUFXLENBQUNDLFNBQWhCLEVBQTJCO0FBQ3pCO0FBQ0FiLG1CQUFTUSxZQUFULElBQXlCakIsU0FBekI7QUFDQTtBQUNEOztBQUVEO0FBQ0E7QUFDQTtBQUNBLFlBQUksQ0FBQ3FCLE1BQUQsSUFBWUMsYUFBYUgsUUFBUVQsTUFBUixHQUFpQlUsV0FBV1YsTUFBekQsRUFBa0U7QUFDaEVRLHFCQUFXSyxVQUFVSCxVQUFWLENBQVg7QUFDQXhCLGVBQUs0QixhQUFMLENBQW1CTixTQUFTUCxVQUE1QixFQUF3Q1gsU0FBeEMsRUFBbUQsSUFBbkQ7QUFDRCxTQUhELE1BR087QUFDTGtCLHFCQUFXQyxPQUFYLENBREssQ0FDaUI7QUFDdEJELG1CQUFTUixNQUFUO0FBQ0FkLGVBQUs0QixhQUFMLENBQW1CTixTQUFTUCxVQUE1QixFQUF3QyxJQUF4QyxFQUE4Q1gsU0FBOUM7QUFDRDs7QUFFRFksa0JBQVNoQixLQUFLaUIsYUFBTCxDQUFtQkssUUFBbkIsRUFBNkJ6QixTQUE3QixFQUF3Q0QsU0FBeEMsRUFBbUR5QixZQUFuRCxDQUFUOztBQUVBO0FBQ0EsWUFBSUMsU0FBU1IsTUFBVCxHQUFrQixDQUFsQixJQUF1Qk4sTUFBdkIsSUFBaUNRLFVBQVMsQ0FBVCxJQUFjTixNQUFuRCxFQUEyRDtBQUN6RCxpQkFBT1QsS0FBSzRCLFlBQVk3QixJQUFaLEVBQWtCc0IsU0FBU1AsVUFBM0IsRUFBdUNsQixTQUF2QyxFQUFrREQsU0FBbEQsRUFBNkRJLEtBQUs4QixlQUFsRSxDQUFMLENBQVA7QUFDRCxTQUZELE1BRU87QUFDTDtBQUNBakIsbUJBQVNRLFlBQVQsSUFBeUJDLFFBQXpCO0FBQ0Q7QUFDRjs7QUFFRFg7QUFDRDs7QUFFRDtBQUNBO0FBQ0E7QUFDQSxRQUFJWixRQUFKLEVBQWM7QUFDWCxnQkFBU2dDLElBQVQsR0FBZ0I7QUFDZjVCLG1CQUFXLFlBQVc7QUFDcEI7QUFDQTtBQUNBLGNBQUlRLGFBQWFDLGFBQWpCLEVBQWdDO0FBQzlCLG1CQUFPYixVQUFQO0FBQ0Q7O0FBRUQsY0FBSSxDQUFDcUIsZ0JBQUwsRUFBdUI7QUFDckJXO0FBQ0Q7QUFDRixTQVZELEVBVUcsQ0FWSDtBQVdELE9BWkEsR0FBRDtBQWFELEtBZEQsTUFjTztBQUNMLGFBQU9wQixjQUFjQyxhQUFyQixFQUFvQztBQUNsQyxZQUFJb0IsTUFBTVosZ0JBQVY7QUFDQSxZQUFJWSxHQUFKLEVBQVM7QUFDUCxpQkFBT0EsR0FBUDtBQUNEO0FBQ0Y7QUFDRjtBQUNGLEdBOUdjO0FBQUEsbURBZ0hmSixhQWhIZSx5QkFnSERiLFVBaEhDLEVBZ0hXa0IsS0FoSFgsRUFnSGtCQyxPQWhIbEIsRUFnSDJCO0FBQ3hDLFFBQUlDLE9BQU9wQixXQUFXQSxXQUFXTixNQUFYLEdBQW9CLENBQS9CLENBQVg7QUFDQSxRQUFJMEIsUUFBUUEsS0FBS0YsS0FBTCxLQUFlQSxLQUF2QixJQUFnQ0UsS0FBS0QsT0FBTCxLQUFpQkEsT0FBckQsRUFBOEQ7QUFDNUQ7QUFDQTtBQUNBbkIsaUJBQVdBLFdBQVdOLE1BQVgsR0FBb0IsQ0FBL0IsSUFBb0MsRUFBQ1UsT0FBT2dCLEtBQUtoQixLQUFMLEdBQWEsQ0FBckIsRUFBd0JjLE9BQU9BLEtBQS9CLEVBQXNDQyxTQUFTQSxPQUEvQyxFQUFwQztBQUNELEtBSkQsTUFJTztBQUNMbkIsaUJBQVdxQixJQUFYLENBQWdCLEVBQUNqQixPQUFPLENBQVIsRUFBV2MsT0FBT0EsS0FBbEIsRUFBeUJDLFNBQVNBLE9BQWxDLEVBQWhCO0FBQ0Q7QUFDRixHQXpIYztBQUFBLG1EQTBIZmpCLGFBMUhlLHlCQTBIREssUUExSEMsRUEwSFN6QixTQTFIVCxFQTBIb0JELFNBMUhwQixFQTBIK0J5QixZQTFIL0IsRUEwSDZDO0FBQzFELFFBQUliLFNBQVNYLFVBQVVZLE1BQXZCO0FBQUEsUUFDSUMsU0FBU2QsVUFBVWEsTUFEdkI7QUFBQSxRQUVJSyxTQUFTUSxTQUFTUixNQUZ0QjtBQUFBLFFBR0lFLFNBQVNGLFNBQVNPLFlBSHRCO0FBQUEsUUFLSWdCLGNBQWMsQ0FMbEI7QUFNQSxXQUFPdkIsU0FBUyxDQUFULEdBQWFOLE1BQWIsSUFBdUJRLFNBQVMsQ0FBVCxHQUFhTixNQUFwQyxJQUE4QyxLQUFLNEIsTUFBTCxDQUFZekMsVUFBVWlCLFNBQVMsQ0FBbkIsQ0FBWixFQUFtQ2xCLFVBQVVvQixTQUFTLENBQW5CLENBQW5DLENBQXJELEVBQWdIO0FBQzlHRjtBQUNBRTtBQUNBcUI7QUFDRDs7QUFFRCxRQUFJQSxXQUFKLEVBQWlCO0FBQ2ZmLGVBQVNQLFVBQVQsQ0FBb0JxQixJQUFwQixDQUF5QixFQUFDakIsT0FBT2tCLFdBQVIsRUFBekI7QUFDRDs7QUFFRGYsYUFBU1IsTUFBVCxHQUFrQkEsTUFBbEI7QUFDQSxXQUFPRSxNQUFQO0FBQ0QsR0E3SWM7QUFBQSxtREErSWZzQixNQS9JZSxrQkErSVJDLElBL0lRLEVBK0lGQyxLQS9JRSxFQStJSztBQUNsQixRQUFJLEtBQUsxQyxPQUFMLENBQWEyQyxVQUFqQixFQUE2QjtBQUMzQixhQUFPLEtBQUszQyxPQUFMLENBQWEyQyxVQUFiLENBQXdCRixJQUF4QixFQUE4QkMsS0FBOUIsQ0FBUDtBQUNELEtBRkQsTUFFTztBQUNMLGFBQU9ELFNBQVNDLEtBQVQsSUFDRCxLQUFLMUMsT0FBTCxDQUFhNEMsVUFBYixJQUEyQkgsS0FBS0ksV0FBTCxPQUF1QkgsTUFBTUcsV0FBTixFQUR4RDtBQUVEO0FBQ0YsR0F0SmM7QUFBQSxtREF1SmZyQyxXQXZKZSx1QkF1SkhzQyxLQXZKRyxFQXVKSTtBQUNqQixRQUFJWixNQUFNLEVBQVY7QUFDQSxTQUFLLElBQUlhLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsTUFBTW5DLE1BQTFCLEVBQWtDb0MsR0FBbEMsRUFBdUM7QUFDckMsVUFBSUQsTUFBTUMsQ0FBTixDQUFKLEVBQWM7QUFDWmIsWUFBSUksSUFBSixDQUFTUSxNQUFNQyxDQUFOLENBQVQ7QUFDRDtBQUNGO0FBQ0QsV0FBT2IsR0FBUDtBQUNELEdBL0pjO0FBQUEsbURBZ0tmM0IsU0FoS2UscUJBZ0tMSCxLQWhLSyxFQWdLRTtBQUNmLFdBQU9BLEtBQVA7QUFDRCxHQWxLYztBQUFBLG1EQW1LZkssUUFuS2Usb0JBbUtOTCxLQW5LTSxFQW1LQztBQUNkLFdBQU9BLE1BQU00QyxLQUFOLENBQVksRUFBWixDQUFQO0FBQ0QsR0FyS2M7QUFBQSxtREFzS2Y1QixJQXRLZSxnQkFzS1Y2QixLQXRLVSxFQXNLSDtBQUNWLFdBQU9BLE1BQU03QixJQUFOLENBQVcsRUFBWCxDQUFQO0FBQ0Q7QUF4S2MsQ0FBakI7O0FBMktBLFNBQVNXLFdBQVQsQ0FBcUJsQyxJQUFyQixFQUEyQm9CLFVBQTNCLEVBQXVDbEIsU0FBdkMsRUFBa0RELFNBQWxELEVBQTZEa0MsZUFBN0QsRUFBOEU7QUFDNUUsTUFBSWtCLGVBQWUsQ0FBbkI7QUFBQSxNQUNJQyxlQUFlbEMsV0FBV04sTUFEOUI7QUFBQSxNQUVJSyxTQUFTLENBRmI7QUFBQSxNQUdJRSxTQUFTLENBSGI7O0FBS0EsU0FBT2dDLGVBQWVDLFlBQXRCLEVBQW9DRCxjQUFwQyxFQUFvRDtBQUNsRCxRQUFJRSxZQUFZbkMsV0FBV2lDLFlBQVgsQ0FBaEI7QUFDQSxRQUFJLENBQUNFLFVBQVVoQixPQUFmLEVBQXdCO0FBQ3RCLFVBQUksQ0FBQ2dCLFVBQVVqQixLQUFYLElBQW9CSCxlQUF4QixFQUF5QztBQUN2QyxZQUFJNUIsUUFBUUwsVUFBVXNELEtBQVYsQ0FBZ0JyQyxNQUFoQixFQUF3QkEsU0FBU29DLFVBQVUvQixLQUEzQyxDQUFaO0FBQ0FqQixnQkFBUUEsTUFBTWtELEdBQU4sQ0FBVSxVQUFTbEQsS0FBVCxFQUFnQjJDLENBQWhCLEVBQW1CO0FBQ25DLGNBQUlRLFdBQVd6RCxVQUFVb0IsU0FBUzZCLENBQW5CLENBQWY7QUFDQSxpQkFBT1EsU0FBUzVDLE1BQVQsR0FBa0JQLE1BQU1PLE1BQXhCLEdBQWlDNEMsUUFBakMsR0FBNENuRCxLQUFuRDtBQUNELFNBSE8sQ0FBUjs7QUFLQWdELGtCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVWhCLEtBQVYsQ0FBbEI7QUFDRCxPQVJELE1BUU87QUFDTGdELGtCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVXJCLFVBQVVzRCxLQUFWLENBQWdCckMsTUFBaEIsRUFBd0JBLFNBQVNvQyxVQUFVL0IsS0FBM0MsQ0FBVixDQUFsQjtBQUNEO0FBQ0RMLGdCQUFVb0MsVUFBVS9CLEtBQXBCOztBQUVBO0FBQ0EsVUFBSSxDQUFDK0IsVUFBVWpCLEtBQWYsRUFBc0I7QUFDcEJqQixrQkFBVWtDLFVBQVUvQixLQUFwQjtBQUNEO0FBQ0YsS0FsQkQsTUFrQk87QUFDTCtCLGdCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVXRCLFVBQVV1RCxLQUFWLENBQWdCbkMsTUFBaEIsRUFBd0JBLFNBQVNrQyxVQUFVL0IsS0FBM0MsQ0FBVixDQUFsQjtBQUNBSCxnQkFBVWtDLFVBQVUvQixLQUFwQjs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxVQUFJNkIsZ0JBQWdCakMsV0FBV2lDLGVBQWUsQ0FBMUIsRUFBNkJmLEtBQWpELEVBQXdEO0FBQ3RELFlBQUlxQixNQUFNdkMsV0FBV2lDLGVBQWUsQ0FBMUIsQ0FBVjtBQUNBakMsbUJBQVdpQyxlQUFlLENBQTFCLElBQStCakMsV0FBV2lDLFlBQVgsQ0FBL0I7QUFDQWpDLG1CQUFXaUMsWUFBWCxJQUEyQk0sR0FBM0I7QUFDRDtBQUNGO0FBQ0Y7O0FBRUQ7QUFDQTtBQUNBO0FBQ0EsTUFBSUMsZ0JBQWdCeEMsV0FBV2tDLGVBQWUsQ0FBMUIsQ0FBcEI7QUFDQSxNQUFJQSxlQUFlLENBQWYsSUFDRyxPQUFPTSxjQUFjckQsS0FBckIsS0FBK0IsUUFEbEMsS0FFSXFELGNBQWN0QixLQUFkLElBQXVCc0IsY0FBY3JCLE9BRnpDLEtBR0d2QyxLQUFLMkMsTUFBTCxDQUFZLEVBQVosRUFBZ0JpQixjQUFjckQsS0FBOUIsQ0FIUCxFQUc2QztBQUMzQ2EsZUFBV2tDLGVBQWUsQ0FBMUIsRUFBNkIvQyxLQUE3QixJQUFzQ3FELGNBQWNyRCxLQUFwRDtBQUNBYSxlQUFXeUMsR0FBWDtBQUNEOztBQUVELFNBQU96QyxVQUFQO0FBQ0Q7O0FBRUQsU0FBU1ksU0FBVCxDQUFtQjhCLElBQW5CLEVBQXlCO0FBQ3ZCLFNBQU8sRUFBRTNDLFFBQVEyQyxLQUFLM0MsTUFBZixFQUF1QkMsWUFBWTBDLEtBQUsxQyxVQUFMLENBQWdCb0MsS0FBaEIsQ0FBc0IsQ0FBdEIsQ0FBbkMsRUFBUDtBQUNEIiwiZmlsZSI6ImJhc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBEaWZmKCkge31cblxuRGlmZi5wcm90b3R5cGUgPSB7XG4gIGRpZmYob2xkU3RyaW5nLCBuZXdTdHJpbmcsIG9wdGlvbnMgPSB7fSkge1xuICAgIGxldCBjYWxsYmFjayA9IG9wdGlvbnMuY2FsbGJhY2s7XG4gICAgaWYgKHR5cGVvZiBvcHRpb25zID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBjYWxsYmFjayA9IG9wdGlvbnM7XG4gICAgICBvcHRpb25zID0ge307XG4gICAgfVxuICAgIHRoaXMub3B0aW9ucyA9IG9wdGlvbnM7XG5cbiAgICBsZXQgc2VsZiA9IHRoaXM7XG5cbiAgICBmdW5jdGlvbiBkb25lKHZhbHVlKSB7XG4gICAgICBpZiAoY2FsbGJhY2spIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHsgY2FsbGJhY2sodW5kZWZpbmVkLCB2YWx1ZSk7IH0sIDApO1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAvLyBBbGxvdyBzdWJjbGFzc2VzIHRvIG1hc3NhZ2UgdGhlIGlucHV0IHByaW9yIHRvIHJ1bm5pbmdcbiAgICBvbGRTdHJpbmcgPSB0aGlzLmNhc3RJbnB1dChvbGRTdHJpbmcpO1xuICAgIG5ld1N0cmluZyA9IHRoaXMuY2FzdElucHV0KG5ld1N0cmluZyk7XG5cbiAgICBvbGRTdHJpbmcgPSB0aGlzLnJlbW92ZUVtcHR5KHRoaXMudG9rZW5pemUob2xkU3RyaW5nKSk7XG4gICAgbmV3U3RyaW5nID0gdGhpcy5yZW1vdmVFbXB0eSh0aGlzLnRva2VuaXplKG5ld1N0cmluZykpO1xuXG4gICAgbGV0IG5ld0xlbiA9IG5ld1N0cmluZy5sZW5ndGgsIG9sZExlbiA9IG9sZFN0cmluZy5sZW5ndGg7XG4gICAgbGV0IGVkaXRMZW5ndGggPSAxO1xuICAgIGxldCBtYXhFZGl0TGVuZ3RoID0gbmV3TGVuICsgb2xkTGVuO1xuICAgIGxldCBiZXN0UGF0aCA9IFt7IG5ld1BvczogLTEsIGNvbXBvbmVudHM6IFtdIH1dO1xuXG4gICAgLy8gU2VlZCBlZGl0TGVuZ3RoID0gMCwgaS5lLiB0aGUgY29udGVudCBzdGFydHMgd2l0aCB0aGUgc2FtZSB2YWx1ZXNcbiAgICBsZXQgb2xkUG9zID0gdGhpcy5leHRyYWN0Q29tbW9uKGJlc3RQYXRoWzBdLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgMCk7XG4gICAgaWYgKGJlc3RQYXRoWzBdLm5ld1BvcyArIDEgPj0gbmV3TGVuICYmIG9sZFBvcyArIDEgPj0gb2xkTGVuKSB7XG4gICAgICAvLyBJZGVudGl0eSBwZXIgdGhlIGVxdWFsaXR5IGFuZCB0b2tlbml6ZXJcbiAgICAgIHJldHVybiBkb25lKFt7dmFsdWU6IHRoaXMuam9pbihuZXdTdHJpbmcpLCBjb3VudDogbmV3U3RyaW5nLmxlbmd0aH1dKTtcbiAgICB9XG5cbiAgICAvLyBNYWluIHdvcmtlciBtZXRob2QuIGNoZWNrcyBhbGwgcGVybXV0YXRpb25zIG9mIGEgZ2l2ZW4gZWRpdCBsZW5ndGggZm9yIGFjY2VwdGFuY2UuXG4gICAgZnVuY3Rpb24gZXhlY0VkaXRMZW5ndGgoKSB7XG4gICAgICBmb3IgKGxldCBkaWFnb25hbFBhdGggPSAtMSAqIGVkaXRMZW5ndGg7IGRpYWdvbmFsUGF0aCA8PSBlZGl0TGVuZ3RoOyBkaWFnb25hbFBhdGggKz0gMikge1xuICAgICAgICBsZXQgYmFzZVBhdGg7XG4gICAgICAgIGxldCBhZGRQYXRoID0gYmVzdFBhdGhbZGlhZ29uYWxQYXRoIC0gMV0sXG4gICAgICAgICAgICByZW1vdmVQYXRoID0gYmVzdFBhdGhbZGlhZ29uYWxQYXRoICsgMV0sXG4gICAgICAgICAgICBvbGRQb3MgPSAocmVtb3ZlUGF0aCA/IHJlbW92ZVBhdGgubmV3UG9zIDogMCkgLSBkaWFnb25hbFBhdGg7XG4gICAgICAgIGlmIChhZGRQYXRoKSB7XG4gICAgICAgICAgLy8gTm8gb25lIGVsc2UgaXMgZ29pbmcgdG8gYXR0ZW1wdCB0byB1c2UgdGhpcyB2YWx1ZSwgY2xlYXIgaXRcbiAgICAgICAgICBiZXN0UGF0aFtkaWFnb25hbFBhdGggLSAxXSA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBjYW5BZGQgPSBhZGRQYXRoICYmIGFkZFBhdGgubmV3UG9zICsgMSA8IG5ld0xlbixcbiAgICAgICAgICAgIGNhblJlbW92ZSA9IHJlbW92ZVBhdGggJiYgMCA8PSBvbGRQb3MgJiYgb2xkUG9zIDwgb2xkTGVuO1xuICAgICAgICBpZiAoIWNhbkFkZCAmJiAhY2FuUmVtb3ZlKSB7XG4gICAgICAgICAgLy8gSWYgdGhpcyBwYXRoIGlzIGEgdGVybWluYWwgdGhlbiBwcnVuZVxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aF0gPSB1bmRlZmluZWQ7XG4gICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBTZWxlY3QgdGhlIGRpYWdvbmFsIHRoYXQgd2Ugd2FudCB0byBicmFuY2ggZnJvbS4gV2Ugc2VsZWN0IHRoZSBwcmlvclxuICAgICAgICAvLyBwYXRoIHdob3NlIHBvc2l0aW9uIGluIHRoZSBuZXcgc3RyaW5nIGlzIHRoZSBmYXJ0aGVzdCBmcm9tIHRoZSBvcmlnaW5cbiAgICAgICAgLy8gYW5kIGRvZXMgbm90IHBhc3MgdGhlIGJvdW5kcyBvZiB0aGUgZGlmZiBncmFwaFxuICAgICAgICBpZiAoIWNhbkFkZCB8fCAoY2FuUmVtb3ZlICYmIGFkZFBhdGgubmV3UG9zIDwgcmVtb3ZlUGF0aC5uZXdQb3MpKSB7XG4gICAgICAgICAgYmFzZVBhdGggPSBjbG9uZVBhdGgocmVtb3ZlUGF0aCk7XG4gICAgICAgICAgc2VsZi5wdXNoQ29tcG9uZW50KGJhc2VQYXRoLmNvbXBvbmVudHMsIHVuZGVmaW5lZCwgdHJ1ZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgYmFzZVBhdGggPSBhZGRQYXRoOyAgIC8vIE5vIG5lZWQgdG8gY2xvbmUsIHdlJ3ZlIHB1bGxlZCBpdCBmcm9tIHRoZSBsaXN0XG4gICAgICAgICAgYmFzZVBhdGgubmV3UG9zKys7XG4gICAgICAgICAgc2VsZi5wdXNoQ29tcG9uZW50KGJhc2VQYXRoLmNvbXBvbmVudHMsIHRydWUsIHVuZGVmaW5lZCk7XG4gICAgICAgIH1cblxuICAgICAgICBvbGRQb3MgPSBzZWxmLmV4dHJhY3RDb21tb24oYmFzZVBhdGgsIG5ld1N0cmluZywgb2xkU3RyaW5nLCBkaWFnb25hbFBhdGgpO1xuXG4gICAgICAgIC8vIElmIHdlIGhhdmUgaGl0IHRoZSBlbmQgb2YgYm90aCBzdHJpbmdzLCB0aGVuIHdlIGFyZSBkb25lXG4gICAgICAgIGlmIChiYXNlUGF0aC5uZXdQb3MgKyAxID49IG5ld0xlbiAmJiBvbGRQb3MgKyAxID49IG9sZExlbikge1xuICAgICAgICAgIHJldHVybiBkb25lKGJ1aWxkVmFsdWVzKHNlbGYsIGJhc2VQYXRoLmNvbXBvbmVudHMsIG5ld1N0cmluZywgb2xkU3RyaW5nLCBzZWxmLnVzZUxvbmdlc3RUb2tlbikpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIE90aGVyd2lzZSB0cmFjayB0aGlzIHBhdGggYXMgYSBwb3RlbnRpYWwgY2FuZGlkYXRlIGFuZCBjb250aW51ZS5cbiAgICAgICAgICBiZXN0UGF0aFtkaWFnb25hbFBhdGhdID0gYmFzZVBhdGg7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgZWRpdExlbmd0aCsrO1xuICAgIH1cblxuICAgIC8vIFBlcmZvcm1zIHRoZSBsZW5ndGggb2YgZWRpdCBpdGVyYXRpb24uIElzIGEgYml0IGZ1Z2x5IGFzIHRoaXMgaGFzIHRvIHN1cHBvcnQgdGhlXG4gICAgLy8gc3luYyBhbmQgYXN5bmMgbW9kZSB3aGljaCBpcyBuZXZlciBmdW4uIExvb3BzIG92ZXIgZXhlY0VkaXRMZW5ndGggdW50aWwgYSB2YWx1ZVxuICAgIC8vIGlzIHByb2R1Y2VkLlxuICAgIGlmIChjYWxsYmFjaykge1xuICAgICAgKGZ1bmN0aW9uIGV4ZWMoKSB7XG4gICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7XG4gICAgICAgICAgLy8gVGhpcyBzaG91bGQgbm90IGhhcHBlbiwgYnV0IHdlIHdhbnQgdG8gYmUgc2FmZS5cbiAgICAgICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgICAgIGlmIChlZGl0TGVuZ3RoID4gbWF4RWRpdExlbmd0aCkge1xuICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKCFleGVjRWRpdExlbmd0aCgpKSB7XG4gICAgICAgICAgICBleGVjKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LCAwKTtcbiAgICAgIH0oKSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHdoaWxlIChlZGl0TGVuZ3RoIDw9IG1heEVkaXRMZW5ndGgpIHtcbiAgICAgICAgbGV0IHJldCA9IGV4ZWNFZGl0TGVuZ3RoKCk7XG4gICAgICAgIGlmIChyZXQpIHtcbiAgICAgICAgICByZXR1cm4gcmV0O1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9LFxuXG4gIHB1c2hDb21wb25lbnQoY29tcG9uZW50cywgYWRkZWQsIHJlbW92ZWQpIHtcbiAgICBsZXQgbGFzdCA9IGNvbXBvbmVudHNbY29tcG9uZW50cy5sZW5ndGggLSAxXTtcbiAgICBpZiAobGFzdCAmJiBsYXN0LmFkZGVkID09PSBhZGRlZCAmJiBsYXN0LnJlbW92ZWQgPT09IHJlbW92ZWQpIHtcbiAgICAgIC8vIFdlIG5lZWQgdG8gY2xvbmUgaGVyZSBhcyB0aGUgY29tcG9uZW50IGNsb25lIG9wZXJhdGlvbiBpcyBqdXN0XG4gICAgICAvLyBhcyBzaGFsbG93IGFycmF5IGNsb25lXG4gICAgICBjb21wb25lbnRzW2NvbXBvbmVudHMubGVuZ3RoIC0gMV0gPSB7Y291bnQ6IGxhc3QuY291bnQgKyAxLCBhZGRlZDogYWRkZWQsIHJlbW92ZWQ6IHJlbW92ZWQgfTtcbiAgICB9IGVsc2Uge1xuICAgICAgY29tcG9uZW50cy5wdXNoKHtjb3VudDogMSwgYWRkZWQ6IGFkZGVkLCByZW1vdmVkOiByZW1vdmVkIH0pO1xuICAgIH1cbiAgfSxcbiAgZXh0cmFjdENvbW1vbihiYXNlUGF0aCwgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIGRpYWdvbmFsUGF0aCkge1xuICAgIGxldCBuZXdMZW4gPSBuZXdTdHJpbmcubGVuZ3RoLFxuICAgICAgICBvbGRMZW4gPSBvbGRTdHJpbmcubGVuZ3RoLFxuICAgICAgICBuZXdQb3MgPSBiYXNlUGF0aC5uZXdQb3MsXG4gICAgICAgIG9sZFBvcyA9IG5ld1BvcyAtIGRpYWdvbmFsUGF0aCxcblxuICAgICAgICBjb21tb25Db3VudCA9IDA7XG4gICAgd2hpbGUgKG5ld1BvcyArIDEgPCBuZXdMZW4gJiYgb2xkUG9zICsgMSA8IG9sZExlbiAmJiB0aGlzLmVxdWFscyhuZXdTdHJpbmdbbmV3UG9zICsgMV0sIG9sZFN0cmluZ1tvbGRQb3MgKyAxXSkpIHtcbiAgICAgIG5ld1BvcysrO1xuICAgICAgb2xkUG9zKys7XG4gICAgICBjb21tb25Db3VudCsrO1xuICAgIH1cblxuICAgIGlmIChjb21tb25Db3VudCkge1xuICAgICAgYmFzZVBhdGguY29tcG9uZW50cy5wdXNoKHtjb3VudDogY29tbW9uQ291bnR9KTtcbiAgICB9XG5cbiAgICBiYXNlUGF0aC5uZXdQb3MgPSBuZXdQb3M7XG4gICAgcmV0dXJuIG9sZFBvcztcbiAgfSxcblxuICBlcXVhbHMobGVmdCwgcmlnaHQpIHtcbiAgICBpZiAodGhpcy5vcHRpb25zLmNvbXBhcmF0b3IpIHtcbiAgICAgIHJldHVybiB0aGlzLm9wdGlvbnMuY29tcGFyYXRvcihsZWZ0LCByaWdodCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBsZWZ0ID09PSByaWdodFxuICAgICAgICB8fCAodGhpcy5vcHRpb25zLmlnbm9yZUNhc2UgJiYgbGVmdC50b0xvd2VyQ2FzZSgpID09PSByaWdodC50b0xvd2VyQ2FzZSgpKTtcbiAgICB9XG4gIH0sXG4gIHJlbW92ZUVtcHR5KGFycmF5KSB7XG4gICAgbGV0IHJldCA9IFtdO1xuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgYXJyYXkubGVuZ3RoOyBpKyspIHtcbiAgICAgIGlmIChhcnJheVtpXSkge1xuICAgICAgICByZXQucHVzaChhcnJheVtpXSk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiByZXQ7XG4gIH0sXG4gIGNhc3RJbnB1dCh2YWx1ZSkge1xuICAgIHJldHVybiB2YWx1ZTtcbiAgfSxcbiAgdG9rZW5pemUodmFsdWUpIHtcbiAgICByZXR1cm4gdmFsdWUuc3BsaXQoJycpO1xuICB9LFxuICBqb2luKGNoYXJzKSB7XG4gICAgcmV0dXJuIGNoYXJzLmpvaW4oJycpO1xuICB9XG59O1xuXG5mdW5jdGlvbiBidWlsZFZhbHVlcyhkaWZmLCBjb21wb25lbnRzLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgdXNlTG9uZ2VzdFRva2VuKSB7XG4gIGxldCBjb21wb25lbnRQb3MgPSAwLFxuICAgICAgY29tcG9uZW50TGVuID0gY29tcG9uZW50cy5sZW5ndGgsXG4gICAgICBuZXdQb3MgPSAwLFxuICAgICAgb2xkUG9zID0gMDtcblxuICBmb3IgKDsgY29tcG9uZW50UG9zIDwgY29tcG9uZW50TGVuOyBjb21wb25lbnRQb3MrKykge1xuICAgIGxldCBjb21wb25lbnQgPSBjb21wb25lbnRzW2NvbXBvbmVudFBvc107XG4gICAgaWYgKCFjb21wb25lbnQucmVtb3ZlZCkge1xuICAgICAgaWYgKCFjb21wb25lbnQuYWRkZWQgJiYgdXNlTG9uZ2VzdFRva2VuKSB7XG4gICAgICAgIGxldCB2YWx1ZSA9IG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCk7XG4gICAgICAgIHZhbHVlID0gdmFsdWUubWFwKGZ1bmN0aW9uKHZhbHVlLCBpKSB7XG4gICAgICAgICAgbGV0IG9sZFZhbHVlID0gb2xkU3RyaW5nW29sZFBvcyArIGldO1xuICAgICAgICAgIHJldHVybiBvbGRWYWx1ZS5sZW5ndGggPiB2YWx1ZS5sZW5ndGggPyBvbGRWYWx1ZSA6IHZhbHVlO1xuICAgICAgICB9KTtcblxuICAgICAgICBjb21wb25lbnQudmFsdWUgPSBkaWZmLmpvaW4odmFsdWUpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29tcG9uZW50LnZhbHVlID0gZGlmZi5qb2luKG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCkpO1xuICAgICAgfVxuICAgICAgbmV3UG9zICs9IGNvbXBvbmVudC5jb3VudDtcblxuICAgICAgLy8gQ29tbW9uIGNhc2VcbiAgICAgIGlmICghY29tcG9uZW50LmFkZGVkKSB7XG4gICAgICAgIG9sZFBvcyArPSBjb21wb25lbnQuY291bnQ7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGNvbXBvbmVudC52YWx1ZSA9IGRpZmYuam9pbihvbGRTdHJpbmcuc2xpY2Uob2xkUG9zLCBvbGRQb3MgKyBjb21wb25lbnQuY291bnQpKTtcbiAgICAgIG9sZFBvcyArPSBjb21wb25lbnQuY291bnQ7XG5cbiAgICAgIC8vIFJldmVyc2UgYWRkIGFuZCByZW1vdmUgc28gcmVtb3ZlcyBhcmUgb3V0cHV0IGZpcnN0IHRvIG1hdGNoIGNvbW1vbiBjb252ZW50aW9uXG4gICAgICAvLyBUaGUgZGlmZmluZyBhbGdvcml0aG0gaXMgdGllZCB0byBhZGQgdGhlbiByZW1vdmUgb3V0cHV0IGFuZCB0aGlzIGlzIHRoZSBzaW1wbGVzdFxuICAgICAgLy8gcm91dGUgdG8gZ2V0IHRoZSBkZXNpcmVkIG91dHB1dCB3aXRoIG1pbmltYWwgb3ZlcmhlYWQuXG4gICAgICBpZiAoY29tcG9uZW50UG9zICYmIGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV0uYWRkZWQpIHtcbiAgICAgICAgbGV0IHRtcCA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV07XG4gICAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV0gPSBjb21wb25lbnRzW2NvbXBvbmVudFBvc107XG4gICAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50UG9zXSA9IHRtcDtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyBTcGVjaWFsIGNhc2UgaGFuZGxlIGZvciB3aGVuIG9uZSB0ZXJtaW5hbCBpcyBpZ25vcmVkIChpLmUuIHdoaXRlc3BhY2UpLlxuICAvLyBGb3IgdGhpcyBjYXNlIHdlIG1lcmdlIHRoZSB0ZXJtaW5hbCBpbnRvIHRoZSBwcmlvciBzdHJpbmcgYW5kIGRyb3AgdGhlIGNoYW5nZS5cbiAgLy8gVGhpcyBpcyBvbmx5IGF2YWlsYWJsZSBmb3Igc3RyaW5nIG1vZGUuXG4gIGxldCBsYXN0Q29tcG9uZW50ID0gY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAxXTtcbiAgaWYgKGNvbXBvbmVudExlbiA+IDFcbiAgICAgICYmIHR5cGVvZiBsYXN0Q29tcG9uZW50LnZhbHVlID09PSAnc3RyaW5nJ1xuICAgICAgJiYgKGxhc3RDb21wb25lbnQuYWRkZWQgfHwgbGFzdENvbXBvbmVudC5yZW1vdmVkKVxuICAgICAgJiYgZGlmZi5lcXVhbHMoJycsIGxhc3RDb21wb25lbnQudmFsdWUpKSB7XG4gICAgY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAyXS52YWx1ZSArPSBsYXN0Q29tcG9uZW50LnZhbHVlO1xuICAgIGNvbXBvbmVudHMucG9wKCk7XG4gIH1cblxuICByZXR1cm4gY29tcG9uZW50cztcbn1cblxuZnVuY3Rpb24gY2xvbmVQYXRoKHBhdGgpIHtcbiAgcmV0dXJuIHsgbmV3UG9zOiBwYXRoLm5ld1BvcywgY29tcG9uZW50czogcGF0aC5jb21wb25lbnRzLnNsaWNlKDApIH07XG59XG4iXX0= + + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.characterDiff = undefined; + exports. /*istanbul ignore end*/diffChars = diffChars; + + var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/var characterDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/characterDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); + function diffChars(oldStr, newStr, options) { + return characterDiff.diff(oldStr, newStr, options); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2NoYXJhY3Rlci5qcyJdLCJuYW1lcyI6WyJkaWZmQ2hhcnMiLCJjaGFyYWN0ZXJEaWZmIiwib2xkU3RyIiwibmV3U3RyIiwib3B0aW9ucyIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBR2dCQSxTLEdBQUFBLFM7O0FBSGhCOzs7Ozs7dUJBRU8sSUFBTUMseUZBQWdCLHdFQUF0QjtBQUNBLFNBQVNELFNBQVQsQ0FBbUJFLE1BQW5CLEVBQTJCQyxNQUEzQixFQUFtQ0MsT0FBbkMsRUFBNEM7QUFBRSxTQUFPSCxjQUFjSSxJQUFkLENBQW1CSCxNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNDLE9BQW5DLENBQVA7QUFBcUQiLCJmaWxlIjoiY2hhcmFjdGVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcblxuZXhwb3J0IGNvbnN0IGNoYXJhY3RlckRpZmYgPSBuZXcgRGlmZigpO1xuZXhwb3J0IGZ1bmN0aW9uIGRpZmZDaGFycyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykgeyByZXR1cm4gY2hhcmFjdGVyRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTsgfVxuIl19 + + +/***/ }), +/* 3 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.wordDiff = undefined; + exports. /*istanbul ignore end*/diffWords = diffWords; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = diffWordsWithSpace; + + var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/; + + /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/ // Based on https://en.wikipedia.org/wiki/Latin_script_in_Unicode + // + // Ranges and exceptions: + // Latin-1 Supplement, 0080–00FF + // - U+00D7 × Multiplication sign + // - U+00F7 ÷ Division sign + // Latin Extended-A, 0100–017F + // Latin Extended-B, 0180–024F + // IPA Extensions, 0250–02AF + // Spacing Modifier Letters, 02B0–02FF + // - U+02C7 ˇ ˇ Caron + // - U+02D8 ˘ ˘ Breve + // - U+02D9 ˙ ˙ Dot Above + // - U+02DA ˚ ˚ Ring Above + // - U+02DB ˛ ˛ Ogonek + // - U+02DC ˜ ˜ Small Tilde + // - U+02DD ˝ ˝ Double Acute Accent + // Latin Extended Additional, 1E00–1EFF + var extendedWordChars = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/; + + var reWhitespace = /\S/; + + var wordDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/wordDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); + wordDiff.equals = function (left, right) { + if (this.options.ignoreCase) { + left = left.toLowerCase(); + right = right.toLowerCase(); + } + return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right); + }; + wordDiff.tokenize = function (value) { + var tokens = value.split(/(\s+|\b)/); + + // Join the boundary splits that we do not consider to be boundaries. This is primarily the extended Latin character set. + for (var i = 0; i < tokens.length - 1; i++) { + // If we have an empty string in the next field and we have only word chars before and after, merge + if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) { + tokens[i] += tokens[i + 2]; + tokens.splice(i + 1, 2); + i--; + } + } + + return tokens; + }; + + function diffWords(oldStr, newStr, options) { + options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(options, { ignoreWhitespace: true }); + return wordDiff.diff(oldStr, newStr, options); + } + + function diffWordsWithSpace(oldStr, newStr, options) { + return wordDiff.diff(oldStr, newStr, options); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3dvcmQuanMiXSwibmFtZXMiOlsiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZXh0ZW5kZWRXb3JkQ2hhcnMiLCJyZVdoaXRlc3BhY2UiLCJ3b3JkRGlmZiIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsIm9wdGlvbnMiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJpZ25vcmVXaGl0ZXNwYWNlIiwidGVzdCIsInRva2VuaXplIiwidmFsdWUiLCJ0b2tlbnMiLCJzcGxpdCIsImkiLCJsZW5ndGgiLCJzcGxpY2UiLCJvbGRTdHIiLCJuZXdTdHIiLCJkaWZmIl0sIm1hcHBpbmdzIjoiOzs7O2dDQW1EZ0JBLFMsR0FBQUEsUzt5REFLQUMsa0IsR0FBQUEsa0I7O0FBeERoQjs7Ozt1QkFDQTs7Ozt3QkFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxJQUFNQyxvQkFBb0IsK0RBQTFCOztBQUVBLElBQU1DLGVBQWUsSUFBckI7O0FBRU8sSUFBTUMsK0VBQVcsd0VBQWpCO0FBQ1BBLFNBQVNDLE1BQVQsR0FBa0IsVUFBU0MsSUFBVCxFQUFlQyxLQUFmLEVBQXNCO0FBQ3RDLE1BQUksS0FBS0MsT0FBTCxDQUFhQyxVQUFqQixFQUE2QjtBQUMzQkgsV0FBT0EsS0FBS0ksV0FBTCxFQUFQO0FBQ0FILFlBQVFBLE1BQU1HLFdBQU4sRUFBUjtBQUNEO0FBQ0QsU0FBT0osU0FBU0MsS0FBVCxJQUFtQixLQUFLQyxPQUFMLENBQWFHLGdCQUFiLElBQWlDLENBQUNSLGFBQWFTLElBQWIsQ0FBa0JOLElBQWxCLENBQWxDLElBQTZELENBQUNILGFBQWFTLElBQWIsQ0FBa0JMLEtBQWxCLENBQXhGO0FBQ0QsQ0FORDtBQU9BSCxTQUFTUyxRQUFULEdBQW9CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDbEMsTUFBSUMsU0FBU0QsTUFBTUUsS0FBTixDQUFZLFVBQVosQ0FBYjs7QUFFQTtBQUNBLE9BQUssSUFBSUMsSUFBSSxDQUFiLEVBQWdCQSxJQUFJRixPQUFPRyxNQUFQLEdBQWdCLENBQXBDLEVBQXVDRCxHQUF2QyxFQUE0QztBQUMxQztBQUNBLFFBQUksQ0FBQ0YsT0FBT0UsSUFBSSxDQUFYLENBQUQsSUFBa0JGLE9BQU9FLElBQUksQ0FBWCxDQUFsQixJQUNLZixrQkFBa0JVLElBQWxCLENBQXVCRyxPQUFPRSxDQUFQLENBQXZCLENBREwsSUFFS2Ysa0JBQWtCVSxJQUFsQixDQUF1QkcsT0FBT0UsSUFBSSxDQUFYLENBQXZCLENBRlQsRUFFZ0Q7QUFDOUNGLGFBQU9FLENBQVAsS0FBYUYsT0FBT0UsSUFBSSxDQUFYLENBQWI7QUFDQUYsYUFBT0ksTUFBUCxDQUFjRixJQUFJLENBQWxCLEVBQXFCLENBQXJCO0FBQ0FBO0FBQ0Q7QUFDRjs7QUFFRCxTQUFPRixNQUFQO0FBQ0QsQ0FoQkQ7O0FBa0JPLFNBQVNmLFNBQVQsQ0FBbUJvQixNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNiLE9BQW5DLEVBQTRDO0FBQ2pEQSxZQUFVLDhFQUFnQkEsT0FBaEIsRUFBeUIsRUFBQ0csa0JBQWtCLElBQW5CLEVBQXpCLENBQVY7QUFDQSxTQUFPUCxTQUFTa0IsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUNEOztBQUVNLFNBQVNQLGtCQUFULENBQTRCbUIsTUFBNUIsRUFBb0NDLE1BQXBDLEVBQTRDYixPQUE1QyxFQUFxRDtBQUMxRCxTQUFPSixTQUFTa0IsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUNEIiwiZmlsZSI6IndvcmQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgRGlmZiBmcm9tICcuL2Jhc2UnO1xuaW1wb3J0IHtnZW5lcmF0ZU9wdGlvbnN9IGZyb20gJy4uL3V0aWwvcGFyYW1zJztcblxuLy8gQmFzZWQgb24gaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTGF0aW5fc2NyaXB0X2luX1VuaWNvZGVcbi8vXG4vLyBSYW5nZXMgYW5kIGV4Y2VwdGlvbnM6XG4vLyBMYXRpbi0xIFN1cHBsZW1lbnQsIDAwODDigJMwMEZGXG4vLyAgLSBVKzAwRDcgIMOXIE11bHRpcGxpY2F0aW9uIHNpZ25cbi8vICAtIFUrMDBGNyAgw7cgRGl2aXNpb24gc2lnblxuLy8gTGF0aW4gRXh0ZW5kZWQtQSwgMDEwMOKAkzAxN0Zcbi8vIExhdGluIEV4dGVuZGVkLUIsIDAxODDigJMwMjRGXG4vLyBJUEEgRXh0ZW5zaW9ucywgMDI1MOKAkzAyQUZcbi8vIFNwYWNpbmcgTW9kaWZpZXIgTGV0dGVycywgMDJCMOKAkzAyRkZcbi8vICAtIFUrMDJDNyAgy4cgJiM3MTE7ICBDYXJvblxuLy8gIC0gVSswMkQ4ICDLmCAmIzcyODsgIEJyZXZlXG4vLyAgLSBVKzAyRDkgIMuZICYjNzI5OyAgRG90IEFib3ZlXG4vLyAgLSBVKzAyREEgIMuaICYjNzMwOyAgUmluZyBBYm92ZVxuLy8gIC0gVSswMkRCICDLmyAmIzczMTsgIE9nb25la1xuLy8gIC0gVSswMkRDICDLnCAmIzczMjsgIFNtYWxsIFRpbGRlXG4vLyAgLSBVKzAyREQgIMudICYjNzMzOyAgRG91YmxlIEFjdXRlIEFjY2VudFxuLy8gTGF0aW4gRXh0ZW5kZWQgQWRkaXRpb25hbCwgMUUwMOKAkzFFRkZcbmNvbnN0IGV4dGVuZGVkV29yZENoYXJzID0gL15bYS16QS1aXFx1e0MwfS1cXHV7RkZ9XFx1e0Q4fS1cXHV7RjZ9XFx1e0Y4fS1cXHV7MkM2fVxcdXsyQzh9LVxcdXsyRDd9XFx1ezJERX0tXFx1ezJGRn1cXHV7MUUwMH0tXFx1ezFFRkZ9XSskL3U7XG5cbmNvbnN0IHJlV2hpdGVzcGFjZSA9IC9cXFMvO1xuXG5leHBvcnQgY29uc3Qgd29yZERpZmYgPSBuZXcgRGlmZigpO1xud29yZERpZmYuZXF1YWxzID0gZnVuY3Rpb24obGVmdCwgcmlnaHQpIHtcbiAgaWYgKHRoaXMub3B0aW9ucy5pZ25vcmVDYXNlKSB7XG4gICAgbGVmdCA9IGxlZnQudG9Mb3dlckNhc2UoKTtcbiAgICByaWdodCA9IHJpZ2h0LnRvTG93ZXJDYXNlKCk7XG4gIH1cbiAgcmV0dXJuIGxlZnQgPT09IHJpZ2h0IHx8ICh0aGlzLm9wdGlvbnMuaWdub3JlV2hpdGVzcGFjZSAmJiAhcmVXaGl0ZXNwYWNlLnRlc3QobGVmdCkgJiYgIXJlV2hpdGVzcGFjZS50ZXN0KHJpZ2h0KSk7XG59O1xud29yZERpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICBsZXQgdG9rZW5zID0gdmFsdWUuc3BsaXQoLyhcXHMrfFxcYikvKTtcblxuICAvLyBKb2luIHRoZSBib3VuZGFyeSBzcGxpdHMgdGhhdCB3ZSBkbyBub3QgY29uc2lkZXIgdG8gYmUgYm91bmRhcmllcy4gVGhpcyBpcyBwcmltYXJpbHkgdGhlIGV4dGVuZGVkIExhdGluIGNoYXJhY3RlciBzZXQuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgdG9rZW5zLmxlbmd0aCAtIDE7IGkrKykge1xuICAgIC8vIElmIHdlIGhhdmUgYW4gZW1wdHkgc3RyaW5nIGluIHRoZSBuZXh0IGZpZWxkIGFuZCB3ZSBoYXZlIG9ubHkgd29yZCBjaGFycyBiZWZvcmUgYW5kIGFmdGVyLCBtZXJnZVxuICAgIGlmICghdG9rZW5zW2kgKyAxXSAmJiB0b2tlbnNbaSArIDJdXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaV0pXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaSArIDJdKSkge1xuICAgICAgdG9rZW5zW2ldICs9IHRva2Vuc1tpICsgMl07XG4gICAgICB0b2tlbnMuc3BsaWNlKGkgKyAxLCAyKTtcbiAgICAgIGktLTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gdG9rZW5zO1xufTtcblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3JkcyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICBvcHRpb25zID0gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiB3b3JkRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3Jkc1dpdGhTcGFjZShvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICByZXR1cm4gd29yZERpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucyk7XG59XG4iXX0= + + +/***/ }), +/* 4 */ +/***/ (function(module, exports) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports. /*istanbul ignore end*/generateOptions = generateOptions; + function generateOptions(options, defaults) { + if (typeof options === 'function') { + defaults.callback = options; + } else if (options) { + for (var name in options) { + /* istanbul ignore else */ + if (options.hasOwnProperty(name)) { + defaults[name] = options[name]; + } + } + } + return defaults; + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcmFtcy5qcyJdLCJuYW1lcyI6WyJnZW5lcmF0ZU9wdGlvbnMiLCJvcHRpb25zIiwiZGVmYXVsdHMiLCJjYWxsYmFjayIsIm5hbWUiLCJoYXNPd25Qcm9wZXJ0eSJdLCJtYXBwaW5ncyI6Ijs7O2dDQUFnQkEsZSxHQUFBQSxlO0FBQVQsU0FBU0EsZUFBVCxDQUF5QkMsT0FBekIsRUFBa0NDLFFBQWxDLEVBQTRDO0FBQ2pELE1BQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsYUFBU0MsUUFBVCxHQUFvQkYsT0FBcEI7QUFDRCxHQUZELE1BRU8sSUFBSUEsT0FBSixFQUFhO0FBQ2xCLFNBQUssSUFBSUcsSUFBVCxJQUFpQkgsT0FBakIsRUFBMEI7QUFDeEI7QUFDQSxVQUFJQSxRQUFRSSxjQUFSLENBQXVCRCxJQUF2QixDQUFKLEVBQWtDO0FBQ2hDRixpQkFBU0UsSUFBVCxJQUFpQkgsUUFBUUcsSUFBUixDQUFqQjtBQUNEO0FBQ0Y7QUFDRjtBQUNELFNBQU9GLFFBQVA7QUFDRCIsImZpbGUiOiJwYXJhbXMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIGRlZmF1bHRzKSB7XG4gIGlmICh0eXBlb2Ygb3B0aW9ucyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIGRlZmF1bHRzLmNhbGxiYWNrID0gb3B0aW9ucztcbiAgfSBlbHNlIGlmIChvcHRpb25zKSB7XG4gICAgZm9yIChsZXQgbmFtZSBpbiBvcHRpb25zKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9wdGlvbnMuaGFzT3duUHJvcGVydHkobmFtZSkpIHtcbiAgICAgICAgZGVmYXVsdHNbbmFtZV0gPSBvcHRpb25zW25hbWVdO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gZGVmYXVsdHM7XG59XG4iXX0= + + +/***/ }), +/* 5 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.lineDiff = undefined; + exports. /*istanbul ignore end*/diffLines = diffLines; + /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = diffTrimmedLines; + + var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/; + + /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/var lineDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/lineDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); + lineDiff.tokenize = function (value) { + var retLines = [], + linesAndNewlines = value.split(/(\n|\r\n)/); + + // Ignore the final empty token that occurs if the string ends with a new line + if (!linesAndNewlines[linesAndNewlines.length - 1]) { + linesAndNewlines.pop(); + } + + // Merge the content and line separators into single tokens + for (var i = 0; i < linesAndNewlines.length; i++) { + var line = linesAndNewlines[i]; + + if (i % 2 && !this.options.newlineIsToken) { + retLines[retLines.length - 1] += line; + } else { + if (this.options.ignoreWhitespace) { + line = line.trim(); + } + retLines.push(line); + } + } + + return retLines; + }; + + function diffLines(oldStr, newStr, callback) { + return lineDiff.diff(oldStr, newStr, callback); + } + function diffTrimmedLines(oldStr, newStr, callback) { + var options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(callback, { ignoreWhitespace: true }); + return lineDiff.diff(oldStr, newStr, options); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2xpbmUuanMiXSwibmFtZXMiOlsiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImxpbmVEaWZmIiwidG9rZW5pemUiLCJ2YWx1ZSIsInJldExpbmVzIiwibGluZXNBbmROZXdsaW5lcyIsInNwbGl0IiwibGVuZ3RoIiwicG9wIiwiaSIsImxpbmUiLCJvcHRpb25zIiwibmV3bGluZUlzVG9rZW4iLCJpZ25vcmVXaGl0ZXNwYWNlIiwidHJpbSIsInB1c2giLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBOEJnQkEsUyxHQUFBQSxTO3lEQUNBQyxnQixHQUFBQSxnQjs7QUEvQmhCOzs7O3VCQUNBOzs7O3VCQUVPLElBQU1DLCtFQUFXLHdFQUFqQjtBQUNQQSxTQUFTQyxRQUFULEdBQW9CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDbEMsTUFBSUMsV0FBVyxFQUFmO0FBQUEsTUFDSUMsbUJBQW1CRixNQUFNRyxLQUFOLENBQVksV0FBWixDQUR2Qjs7QUFHQTtBQUNBLE1BQUksQ0FBQ0QsaUJBQWlCQSxpQkFBaUJFLE1BQWpCLEdBQTBCLENBQTNDLENBQUwsRUFBb0Q7QUFDbERGLHFCQUFpQkcsR0FBakI7QUFDRDs7QUFFRDtBQUNBLE9BQUssSUFBSUMsSUFBSSxDQUFiLEVBQWdCQSxJQUFJSixpQkFBaUJFLE1BQXJDLEVBQTZDRSxHQUE3QyxFQUFrRDtBQUNoRCxRQUFJQyxPQUFPTCxpQkFBaUJJLENBQWpCLENBQVg7O0FBRUEsUUFBSUEsSUFBSSxDQUFKLElBQVMsQ0FBQyxLQUFLRSxPQUFMLENBQWFDLGNBQTNCLEVBQTJDO0FBQ3pDUixlQUFTQSxTQUFTRyxNQUFULEdBQWtCLENBQTNCLEtBQWlDRyxJQUFqQztBQUNELEtBRkQsTUFFTztBQUNMLFVBQUksS0FBS0MsT0FBTCxDQUFhRSxnQkFBakIsRUFBbUM7QUFDakNILGVBQU9BLEtBQUtJLElBQUwsRUFBUDtBQUNEO0FBQ0RWLGVBQVNXLElBQVQsQ0FBY0wsSUFBZDtBQUNEO0FBQ0Y7O0FBRUQsU0FBT04sUUFBUDtBQUNELENBeEJEOztBQTBCTyxTQUFTTCxTQUFULENBQW1CaUIsTUFBbkIsRUFBMkJDLE1BQTNCLEVBQW1DQyxRQUFuQyxFQUE2QztBQUFFLFNBQU9qQixTQUFTa0IsSUFBVCxDQUFjSCxNQUFkLEVBQXNCQyxNQUF0QixFQUE4QkMsUUFBOUIsQ0FBUDtBQUFpRDtBQUNoRyxTQUFTbEIsZ0JBQVQsQ0FBMEJnQixNQUExQixFQUFrQ0MsTUFBbEMsRUFBMENDLFFBQTFDLEVBQW9EO0FBQ3pELE1BQUlQLFVBQVUsOEVBQWdCTyxRQUFoQixFQUEwQixFQUFDTCxrQkFBa0IsSUFBbkIsRUFBMUIsQ0FBZDtBQUNBLFNBQU9aLFNBQVNrQixJQUFULENBQWNILE1BQWQsRUFBc0JDLE1BQXRCLEVBQThCTixPQUE5QixDQUFQO0FBQ0QiLCJmaWxlIjoibGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5pbXBvcnQge2dlbmVyYXRlT3B0aW9uc30gZnJvbSAnLi4vdXRpbC9wYXJhbXMnO1xuXG5leHBvcnQgY29uc3QgbGluZURpZmYgPSBuZXcgRGlmZigpO1xubGluZURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICBsZXQgcmV0TGluZXMgPSBbXSxcbiAgICAgIGxpbmVzQW5kTmV3bGluZXMgPSB2YWx1ZS5zcGxpdCgvKFxcbnxcXHJcXG4pLyk7XG5cbiAgLy8gSWdub3JlIHRoZSBmaW5hbCBlbXB0eSB0b2tlbiB0aGF0IG9jY3VycyBpZiB0aGUgc3RyaW5nIGVuZHMgd2l0aCBhIG5ldyBsaW5lXG4gIGlmICghbGluZXNBbmROZXdsaW5lc1tsaW5lc0FuZE5ld2xpbmVzLmxlbmd0aCAtIDFdKSB7XG4gICAgbGluZXNBbmROZXdsaW5lcy5wb3AoKTtcbiAgfVxuXG4gIC8vIE1lcmdlIHRoZSBjb250ZW50IGFuZCBsaW5lIHNlcGFyYXRvcnMgaW50byBzaW5nbGUgdG9rZW5zXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgbGluZXNBbmROZXdsaW5lcy5sZW5ndGg7IGkrKykge1xuICAgIGxldCBsaW5lID0gbGluZXNBbmROZXdsaW5lc1tpXTtcblxuICAgIGlmIChpICUgMiAmJiAhdGhpcy5vcHRpb25zLm5ld2xpbmVJc1Rva2VuKSB7XG4gICAgICByZXRMaW5lc1tyZXRMaW5lcy5sZW5ndGggLSAxXSArPSBsaW5lO1xuICAgIH0gZWxzZSB7XG4gICAgICBpZiAodGhpcy5vcHRpb25zLmlnbm9yZVdoaXRlc3BhY2UpIHtcbiAgICAgICAgbGluZSA9IGxpbmUudHJpbSgpO1xuICAgICAgfVxuICAgICAgcmV0TGluZXMucHVzaChsaW5lKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gcmV0TGluZXM7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkxpbmVzKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjaykgeyByZXR1cm4gbGluZURpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG5leHBvcnQgZnVuY3Rpb24gZGlmZlRyaW1tZWRMaW5lcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHtcbiAgbGV0IG9wdGlvbnMgPSBnZW5lcmF0ZU9wdGlvbnMoY2FsbGJhY2ssIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiBsaW5lRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cbiJdfQ== + + +/***/ }), +/* 6 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.sentenceDiff = undefined; + exports. /*istanbul ignore end*/diffSentences = diffSentences; + + var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/var sentenceDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/sentenceDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); + sentenceDiff.tokenize = function (value) { + return value.split(/(\S.+?[.!?])(?=\s+|$)/); + }; + + function diffSentences(oldStr, newStr, callback) { + return sentenceDiff.diff(oldStr, newStr, callback); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3NlbnRlbmNlLmpzIl0sIm5hbWVzIjpbImRpZmZTZW50ZW5jZXMiLCJzZW50ZW5jZURpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic3BsaXQiLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBUWdCQSxhLEdBQUFBLGE7O0FBUmhCOzs7Ozs7dUJBR08sSUFBTUMsdUZBQWUsd0VBQXJCO0FBQ1BBLGFBQWFDLFFBQWIsR0FBd0IsVUFBU0MsS0FBVCxFQUFnQjtBQUN0QyxTQUFPQSxNQUFNQyxLQUFOLENBQVksdUJBQVosQ0FBUDtBQUNELENBRkQ7O0FBSU8sU0FBU0osYUFBVCxDQUF1QkssTUFBdkIsRUFBK0JDLE1BQS9CLEVBQXVDQyxRQUF2QyxFQUFpRDtBQUFFLFNBQU9OLGFBQWFPLElBQWIsQ0FBa0JILE1BQWxCLEVBQTBCQyxNQUExQixFQUFrQ0MsUUFBbEMsQ0FBUDtBQUFxRCIsImZpbGUiOiJzZW50ZW5jZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cblxuZXhwb3J0IGNvbnN0IHNlbnRlbmNlRGlmZiA9IG5ldyBEaWZmKCk7XG5zZW50ZW5jZURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhcXFMuKz9bLiE/XSkoPz1cXHMrfCQpLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZlNlbnRlbmNlcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIHNlbnRlbmNlRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjayk7IH1cbiJdfQ== + + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.cssDiff = undefined; + exports. /*istanbul ignore end*/diffCss = diffCss; + + var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/var cssDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/cssDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); + cssDiff.tokenize = function (value) { + return value.split(/([{}:;,]|\s+)/); + }; + + function diffCss(oldStr, newStr, callback) { + return cssDiff.diff(oldStr, newStr, callback); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Nzcy5qcyJdLCJuYW1lcyI6WyJkaWZmQ3NzIiwiY3NzRGlmZiIsInRva2VuaXplIiwidmFsdWUiLCJzcGxpdCIsIm9sZFN0ciIsIm5ld1N0ciIsImNhbGxiYWNrIiwiZGlmZiJdLCJtYXBwaW5ncyI6Ijs7OztnQ0FPZ0JBLE8sR0FBQUEsTzs7QUFQaEI7Ozs7Ozt1QkFFTyxJQUFNQyw2RUFBVSx3RUFBaEI7QUFDUEEsUUFBUUMsUUFBUixHQUFtQixVQUFTQyxLQUFULEVBQWdCO0FBQ2pDLFNBQU9BLE1BQU1DLEtBQU4sQ0FBWSxlQUFaLENBQVA7QUFDRCxDQUZEOztBQUlPLFNBQVNKLE9BQVQsQ0FBaUJLLE1BQWpCLEVBQXlCQyxNQUF6QixFQUFpQ0MsUUFBakMsRUFBMkM7QUFBRSxTQUFPTixRQUFRTyxJQUFSLENBQWFILE1BQWIsRUFBcUJDLE1BQXJCLEVBQTZCQyxRQUE3QixDQUFQO0FBQWdEIiwiZmlsZSI6ImNzcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cbmV4cG9ydCBjb25zdCBjc3NEaWZmID0gbmV3IERpZmYoKTtcbmNzc0RpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhbe306OyxdfFxccyspLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkNzcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIGNzc0RpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG4iXX0= + + +/***/ }), +/* 8 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.jsonDiff = undefined; + + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + + exports. /*istanbul ignore end*/diffJson = diffJson; + /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = canonicalize; + + var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + /*istanbul ignore end*/var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; + + /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/var objectPrototypeToString = Object.prototype.toString; + + var jsonDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/jsonDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); + // Discriminate between two lines of pretty-printed, serialized JSON where one of them has a + // dangling comma and the other doesn't. Turns out including the dangling comma yields the nicest output: + jsonDiff.useLongestToken = true; + + jsonDiff.tokenize = /*istanbul ignore start*/_line.lineDiff /*istanbul ignore end*/.tokenize; + jsonDiff.castInput = function (value) { + /*istanbul ignore start*/var _options = /*istanbul ignore end*/this.options, + undefinedReplacement = _options.undefinedReplacement, + _options$stringifyRep = _options.stringifyReplacer, + stringifyReplacer = _options$stringifyRep === undefined ? function (k, v) /*istanbul ignore start*/{ + return (/*istanbul ignore end*/typeof v === 'undefined' ? undefinedReplacement : v + ); + } : _options$stringifyRep; + + + return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' '); + }; + jsonDiff.equals = function (left, right) { + return (/*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/.prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, '$1'), right.replace(/,([\r\n])/g, '$1')) + ); + }; + + function diffJson(oldObj, newObj, options) { + return jsonDiff.diff(oldObj, newObj, options); + } + + // This function handles the presence of circular references by bailing out when encountering an + // object that is already on the "stack" of items being processed. Accepts an optional replacer + function canonicalize(obj, stack, replacementStack, replacer, key) { + stack = stack || []; + replacementStack = replacementStack || []; + + if (replacer) { + obj = replacer(key, obj); + } + + var i = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; + + for (i = 0; i < stack.length; i += 1) { + if (stack[i] === obj) { + return replacementStack[i]; + } + } + + var canonicalizedObj = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; + + if ('[object Array]' === objectPrototypeToString.call(obj)) { + stack.push(obj); + canonicalizedObj = new Array(obj.length); + replacementStack.push(canonicalizedObj); + for (i = 0; i < obj.length; i += 1) { + canonicalizedObj[i] = canonicalize(obj[i], stack, replacementStack, replacer, key); + } + stack.pop(); + replacementStack.pop(); + return canonicalizedObj; + } + + if (obj && obj.toJSON) { + obj = obj.toJSON(); + } + + if ( /*istanbul ignore start*/(typeof /*istanbul ignore end*/obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj !== null) { + stack.push(obj); + canonicalizedObj = {}; + replacementStack.push(canonicalizedObj); + var sortedKeys = [], + _key = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; + for (_key in obj) { + /* istanbul ignore else */ + if (obj.hasOwnProperty(_key)) { + sortedKeys.push(_key); + } + } + sortedKeys.sort(); + for (i = 0; i < sortedKeys.length; i += 1) { + _key = sortedKeys[i]; + canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key); + } + stack.pop(); + replacementStack.pop(); + } else { + canonicalizedObj = obj; + } + return canonicalizedObj; + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2pzb24uanMiXSwibmFtZXMiOlsiZGlmZkpzb24iLCJjYW5vbmljYWxpemUiLCJvYmplY3RQcm90b3R5cGVUb1N0cmluZyIsIk9iamVjdCIsInByb3RvdHlwZSIsInRvU3RyaW5nIiwianNvbkRpZmYiLCJ1c2VMb25nZXN0VG9rZW4iLCJ0b2tlbml6ZSIsImNhc3RJbnB1dCIsInZhbHVlIiwib3B0aW9ucyIsInVuZGVmaW5lZFJlcGxhY2VtZW50Iiwic3RyaW5naWZ5UmVwbGFjZXIiLCJrIiwidiIsIkpTT04iLCJzdHJpbmdpZnkiLCJlcXVhbHMiLCJsZWZ0IiwicmlnaHQiLCJjYWxsIiwicmVwbGFjZSIsIm9sZE9iaiIsIm5ld09iaiIsImRpZmYiLCJvYmoiLCJzdGFjayIsInJlcGxhY2VtZW50U3RhY2siLCJyZXBsYWNlciIsImtleSIsImkiLCJsZW5ndGgiLCJjYW5vbmljYWxpemVkT2JqIiwicHVzaCIsIkFycmF5IiwicG9wIiwidG9KU09OIiwic29ydGVkS2V5cyIsImhhc093blByb3BlcnR5Iiwic29ydCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztnQ0FxQmdCQSxRLEdBQUFBLFE7eURBSUFDLFksR0FBQUEsWTs7QUF6QmhCOzs7O3VCQUNBOzs7O3VCQUVBLElBQU1DLDBCQUEwQkMsT0FBT0MsU0FBUCxDQUFpQkMsUUFBakQ7O0FBR08sSUFBTUMsK0VBQVcsd0VBQWpCO0FBQ1A7QUFDQTtBQUNBQSxTQUFTQyxlQUFULEdBQTJCLElBQTNCOztBQUVBRCxTQUFTRSxRQUFULEdBQW9CLGdFQUFTQSxRQUE3QjtBQUNBRixTQUFTRyxTQUFULEdBQXFCLFVBQVNDLEtBQVQsRUFBZ0I7QUFBQSxpRUFDK0UsS0FBS0MsT0FEcEY7QUFBQSxNQUM1QkMsb0JBRDRCLFlBQzVCQSxvQkFENEI7QUFBQSx1Q0FDTkMsaUJBRE07QUFBQSxNQUNOQSxpQkFETSx5Q0FDYyxVQUFDQyxDQUFELEVBQUlDLENBQUo7QUFBQSxtQ0FBVSxPQUFPQSxDQUFQLEtBQWEsV0FBYixHQUEyQkgsb0JBQTNCLEdBQWtERztBQUE1RDtBQUFBLEdBRGQ7OztBQUduQyxTQUFPLE9BQU9MLEtBQVAsS0FBaUIsUUFBakIsR0FBNEJBLEtBQTVCLEdBQW9DTSxLQUFLQyxTQUFMLENBQWVoQixhQUFhUyxLQUFiLEVBQW9CLElBQXBCLEVBQTBCLElBQTFCLEVBQWdDRyxpQkFBaEMsQ0FBZixFQUFtRUEsaUJBQW5FLEVBQXNGLElBQXRGLENBQTNDO0FBQ0QsQ0FKRDtBQUtBUCxTQUFTWSxNQUFULEdBQWtCLFVBQVNDLElBQVQsRUFBZUMsS0FBZixFQUFzQjtBQUN0QyxTQUFPLG9FQUFLaEIsU0FBTCxDQUFlYyxNQUFmLENBQXNCRyxJQUF0QixDQUEyQmYsUUFBM0IsRUFBcUNhLEtBQUtHLE9BQUwsQ0FBYSxZQUFiLEVBQTJCLElBQTNCLENBQXJDLEVBQXVFRixNQUFNRSxPQUFOLENBQWMsWUFBZCxFQUE0QixJQUE1QixDQUF2RTtBQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTdEIsUUFBVCxDQUFrQnVCLE1BQWxCLEVBQTBCQyxNQUExQixFQUFrQ2IsT0FBbEMsRUFBMkM7QUFBRSxTQUFPTCxTQUFTbUIsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUFnRDs7QUFFcEc7QUFDQTtBQUNPLFNBQVNWLFlBQVQsQ0FBc0J5QixHQUF0QixFQUEyQkMsS0FBM0IsRUFBa0NDLGdCQUFsQyxFQUFvREMsUUFBcEQsRUFBOERDLEdBQTlELEVBQW1FO0FBQ3hFSCxVQUFRQSxTQUFTLEVBQWpCO0FBQ0FDLHFCQUFtQkEsb0JBQW9CLEVBQXZDOztBQUVBLE1BQUlDLFFBQUosRUFBYztBQUNaSCxVQUFNRyxTQUFTQyxHQUFULEVBQWNKLEdBQWQsQ0FBTjtBQUNEOztBQUVELE1BQUlLLG1DQUFKOztBQUVBLE9BQUtBLElBQUksQ0FBVCxFQUFZQSxJQUFJSixNQUFNSyxNQUF0QixFQUE4QkQsS0FBSyxDQUFuQyxFQUFzQztBQUNwQyxRQUFJSixNQUFNSSxDQUFOLE1BQWFMLEdBQWpCLEVBQXNCO0FBQ3BCLGFBQU9FLGlCQUFpQkcsQ0FBakIsQ0FBUDtBQUNEO0FBQ0Y7O0FBRUQsTUFBSUUsa0RBQUo7O0FBRUEsTUFBSSxxQkFBcUIvQix3QkFBd0JtQixJQUF4QixDQUE2QkssR0FBN0IsQ0FBekIsRUFBNEQ7QUFDMURDLFVBQU1PLElBQU4sQ0FBV1IsR0FBWDtBQUNBTyx1QkFBbUIsSUFBSUUsS0FBSixDQUFVVCxJQUFJTSxNQUFkLENBQW5CO0FBQ0FKLHFCQUFpQk0sSUFBakIsQ0FBc0JELGdCQUF0QjtBQUNBLFNBQUtGLElBQUksQ0FBVCxFQUFZQSxJQUFJTCxJQUFJTSxNQUFwQixFQUE0QkQsS0FBSyxDQUFqQyxFQUFvQztBQUNsQ0UsdUJBQWlCRixDQUFqQixJQUFzQjlCLGFBQWF5QixJQUFJSyxDQUFKLENBQWIsRUFBcUJKLEtBQXJCLEVBQTRCQyxnQkFBNUIsRUFBOENDLFFBQTlDLEVBQXdEQyxHQUF4RCxDQUF0QjtBQUNEO0FBQ0RILFVBQU1TLEdBQU47QUFDQVIscUJBQWlCUSxHQUFqQjtBQUNBLFdBQU9ILGdCQUFQO0FBQ0Q7O0FBRUQsTUFBSVAsT0FBT0EsSUFBSVcsTUFBZixFQUF1QjtBQUNyQlgsVUFBTUEsSUFBSVcsTUFBSixFQUFOO0FBQ0Q7O0FBRUQsTUFBSSx5REFBT1gsR0FBUCx5Q0FBT0EsR0FBUCxPQUFlLFFBQWYsSUFBMkJBLFFBQVEsSUFBdkMsRUFBNkM7QUFDM0NDLFVBQU1PLElBQU4sQ0FBV1IsR0FBWDtBQUNBTyx1QkFBbUIsRUFBbkI7QUFDQUwscUJBQWlCTSxJQUFqQixDQUFzQkQsZ0JBQXRCO0FBQ0EsUUFBSUssYUFBYSxFQUFqQjtBQUFBLFFBQ0lSLHNDQURKO0FBRUEsU0FBS0EsSUFBTCxJQUFZSixHQUFaLEVBQWlCO0FBQ2Y7QUFDQSxVQUFJQSxJQUFJYSxjQUFKLENBQW1CVCxJQUFuQixDQUFKLEVBQTZCO0FBQzNCUSxtQkFBV0osSUFBWCxDQUFnQkosSUFBaEI7QUFDRDtBQUNGO0FBQ0RRLGVBQVdFLElBQVg7QUFDQSxTQUFLVCxJQUFJLENBQVQsRUFBWUEsSUFBSU8sV0FBV04sTUFBM0IsRUFBbUNELEtBQUssQ0FBeEMsRUFBMkM7QUFDekNELGFBQU1RLFdBQVdQLENBQVgsQ0FBTjtBQUNBRSx1QkFBaUJILElBQWpCLElBQXdCN0IsYUFBYXlCLElBQUlJLElBQUosQ0FBYixFQUF1QkgsS0FBdkIsRUFBOEJDLGdCQUE5QixFQUFnREMsUUFBaEQsRUFBMERDLElBQTFELENBQXhCO0FBQ0Q7QUFDREgsVUFBTVMsR0FBTjtBQUNBUixxQkFBaUJRLEdBQWpCO0FBQ0QsR0FuQkQsTUFtQk87QUFDTEgsdUJBQW1CUCxHQUFuQjtBQUNEO0FBQ0QsU0FBT08sZ0JBQVA7QUFDRCIsImZpbGUiOiJqc29uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcbmltcG9ydCB7bGluZURpZmZ9IGZyb20gJy4vbGluZSc7XG5cbmNvbnN0IG9iamVjdFByb3RvdHlwZVRvU3RyaW5nID0gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZztcblxuXG5leHBvcnQgY29uc3QganNvbkRpZmYgPSBuZXcgRGlmZigpO1xuLy8gRGlzY3JpbWluYXRlIGJldHdlZW4gdHdvIGxpbmVzIG9mIHByZXR0eS1wcmludGVkLCBzZXJpYWxpemVkIEpTT04gd2hlcmUgb25lIG9mIHRoZW0gaGFzIGFcbi8vIGRhbmdsaW5nIGNvbW1hIGFuZCB0aGUgb3RoZXIgZG9lc24ndC4gVHVybnMgb3V0IGluY2x1ZGluZyB0aGUgZGFuZ2xpbmcgY29tbWEgeWllbGRzIHRoZSBuaWNlc3Qgb3V0cHV0OlxuanNvbkRpZmYudXNlTG9uZ2VzdFRva2VuID0gdHJ1ZTtcblxuanNvbkRpZmYudG9rZW5pemUgPSBsaW5lRGlmZi50b2tlbml6ZTtcbmpzb25EaWZmLmNhc3RJbnB1dCA9IGZ1bmN0aW9uKHZhbHVlKSB7XG4gIGNvbnN0IHt1bmRlZmluZWRSZXBsYWNlbWVudCwgc3RyaW5naWZ5UmVwbGFjZXIgPSAoaywgdikgPT4gdHlwZW9mIHYgPT09ICd1bmRlZmluZWQnID8gdW5kZWZpbmVkUmVwbGFjZW1lbnQgOiB2fSA9IHRoaXMub3B0aW9ucztcblxuICByZXR1cm4gdHlwZW9mIHZhbHVlID09PSAnc3RyaW5nJyA/IHZhbHVlIDogSlNPTi5zdHJpbmdpZnkoY2Fub25pY2FsaXplKHZhbHVlLCBudWxsLCBudWxsLCBzdHJpbmdpZnlSZXBsYWNlciksIHN0cmluZ2lmeVJlcGxhY2VyLCAnICAnKTtcbn07XG5qc29uRGlmZi5lcXVhbHMgPSBmdW5jdGlvbihsZWZ0LCByaWdodCkge1xuICByZXR1cm4gRGlmZi5wcm90b3R5cGUuZXF1YWxzLmNhbGwoanNvbkRpZmYsIGxlZnQucmVwbGFjZSgvLChbXFxyXFxuXSkvZywgJyQxJyksIHJpZ2h0LnJlcGxhY2UoLywoW1xcclxcbl0pL2csICckMScpKTtcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBkaWZmSnNvbihvbGRPYmosIG5ld09iaiwgb3B0aW9ucykgeyByZXR1cm4ganNvbkRpZmYuZGlmZihvbGRPYmosIG5ld09iaiwgb3B0aW9ucyk7IH1cblxuLy8gVGhpcyBmdW5jdGlvbiBoYW5kbGVzIHRoZSBwcmVzZW5jZSBvZiBjaXJjdWxhciByZWZlcmVuY2VzIGJ5IGJhaWxpbmcgb3V0IHdoZW4gZW5jb3VudGVyaW5nIGFuXG4vLyBvYmplY3QgdGhhdCBpcyBhbHJlYWR5IG9uIHRoZSBcInN0YWNrXCIgb2YgaXRlbXMgYmVpbmcgcHJvY2Vzc2VkLiBBY2NlcHRzIGFuIG9wdGlvbmFsIHJlcGxhY2VyXG5leHBvcnQgZnVuY3Rpb24gY2Fub25pY2FsaXplKG9iaiwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpIHtcbiAgc3RhY2sgPSBzdGFjayB8fCBbXTtcbiAgcmVwbGFjZW1lbnRTdGFjayA9IHJlcGxhY2VtZW50U3RhY2sgfHwgW107XG5cbiAgaWYgKHJlcGxhY2VyKSB7XG4gICAgb2JqID0gcmVwbGFjZXIoa2V5LCBvYmopO1xuICB9XG5cbiAgbGV0IGk7XG5cbiAgZm9yIChpID0gMDsgaSA8IHN0YWNrLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgaWYgKHN0YWNrW2ldID09PSBvYmopIHtcbiAgICAgIHJldHVybiByZXBsYWNlbWVudFN0YWNrW2ldO1xuICAgIH1cbiAgfVxuXG4gIGxldCBjYW5vbmljYWxpemVkT2JqO1xuXG4gIGlmICgnW29iamVjdCBBcnJheV0nID09PSBvYmplY3RQcm90b3R5cGVUb1N0cmluZy5jYWxsKG9iaikpIHtcbiAgICBzdGFjay5wdXNoKG9iaik7XG4gICAgY2Fub25pY2FsaXplZE9iaiA9IG5ldyBBcnJheShvYmoubGVuZ3RoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnB1c2goY2Fub25pY2FsaXplZE9iaik7XG4gICAgZm9yIChpID0gMDsgaSA8IG9iai5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgY2Fub25pY2FsaXplZE9ialtpXSA9IGNhbm9uaWNhbGl6ZShvYmpbaV0sIHN0YWNrLCByZXBsYWNlbWVudFN0YWNrLCByZXBsYWNlciwga2V5KTtcbiAgICB9XG4gICAgc3RhY2sucG9wKCk7XG4gICAgcmVwbGFjZW1lbnRTdGFjay5wb3AoKTtcbiAgICByZXR1cm4gY2Fub25pY2FsaXplZE9iajtcbiAgfVxuXG4gIGlmIChvYmogJiYgb2JqLnRvSlNPTikge1xuICAgIG9iaiA9IG9iai50b0pTT04oKTtcbiAgfVxuXG4gIGlmICh0eXBlb2Ygb2JqID09PSAnb2JqZWN0JyAmJiBvYmogIT09IG51bGwpIHtcbiAgICBzdGFjay5wdXNoKG9iaik7XG4gICAgY2Fub25pY2FsaXplZE9iaiA9IHt9O1xuICAgIHJlcGxhY2VtZW50U3RhY2sucHVzaChjYW5vbmljYWxpemVkT2JqKTtcbiAgICBsZXQgc29ydGVkS2V5cyA9IFtdLFxuICAgICAgICBrZXk7XG4gICAgZm9yIChrZXkgaW4gb2JqKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgIHNvcnRlZEtleXMucHVzaChrZXkpO1xuICAgICAgfVxuICAgIH1cbiAgICBzb3J0ZWRLZXlzLnNvcnQoKTtcbiAgICBmb3IgKGkgPSAwOyBpIDwgc29ydGVkS2V5cy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAga2V5ID0gc29ydGVkS2V5c1tpXTtcbiAgICAgIGNhbm9uaWNhbGl6ZWRPYmpba2V5XSA9IGNhbm9uaWNhbGl6ZShvYmpba2V5XSwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpO1xuICAgIH1cbiAgICBzdGFjay5wb3AoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnBvcCgpO1xuICB9IGVsc2Uge1xuICAgIGNhbm9uaWNhbGl6ZWRPYmogPSBvYmo7XG4gIH1cbiAgcmV0dXJuIGNhbm9uaWNhbGl6ZWRPYmo7XG59XG4iXX0= + + +/***/ }), +/* 9 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports.arrayDiff = undefined; + exports. /*istanbul ignore end*/diffArrays = diffArrays; + + var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/var arrayDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); + arrayDiff.tokenize = function (value) { + return value.slice(); + }; + arrayDiff.join = arrayDiff.removeEmpty = function (value) { + return value; + }; + + function diffArrays(oldArr, newArr, callback) { + return arrayDiff.diff(oldArr, newArr, callback); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2FycmF5LmpzIl0sIm5hbWVzIjpbImRpZmZBcnJheXMiLCJhcnJheURpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic2xpY2UiLCJqb2luIiwicmVtb3ZlRW1wdHkiLCJvbGRBcnIiLCJuZXdBcnIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBVWdCQSxVLEdBQUFBLFU7O0FBVmhCOzs7Ozs7dUJBRU8sSUFBTUMsaUZBQVksd0VBQWxCO0FBQ1BBLFVBQVVDLFFBQVYsR0FBcUIsVUFBU0MsS0FBVCxFQUFnQjtBQUNuQyxTQUFPQSxNQUFNQyxLQUFOLEVBQVA7QUFDRCxDQUZEO0FBR0FILFVBQVVJLElBQVYsR0FBaUJKLFVBQVVLLFdBQVYsR0FBd0IsVUFBU0gsS0FBVCxFQUFnQjtBQUN2RCxTQUFPQSxLQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTSCxVQUFULENBQW9CTyxNQUFwQixFQUE0QkMsTUFBNUIsRUFBb0NDLFFBQXBDLEVBQThDO0FBQUUsU0FBT1IsVUFBVVMsSUFBVixDQUFlSCxNQUFmLEVBQXVCQyxNQUF2QixFQUErQkMsUUFBL0IsQ0FBUDtBQUFrRCIsImZpbGUiOiJhcnJheS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cbmV4cG9ydCBjb25zdCBhcnJheURpZmYgPSBuZXcgRGlmZigpO1xuYXJyYXlEaWZmLnRva2VuaXplID0gZnVuY3Rpb24odmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlLnNsaWNlKCk7XG59O1xuYXJyYXlEaWZmLmpvaW4gPSBhcnJheURpZmYucmVtb3ZlRW1wdHkgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWU7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkFycmF5cyhvbGRBcnIsIG5ld0FyciwgY2FsbGJhY2spIHsgcmV0dXJuIGFycmF5RGlmZi5kaWZmKG9sZEFyciwgbmV3QXJyLCBjYWxsYmFjayk7IH1cbiJdfQ== + + +/***/ }), +/* 10 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports. /*istanbul ignore end*/applyPatch = applyPatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = applyPatches; + + var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_distanceIterator = __webpack_require__(12) /*istanbul ignore end*/; + + /*istanbul ignore start*/var _distanceIterator2 = _interopRequireDefault(_distanceIterator); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + + /*istanbul ignore end*/function applyPatch(source, uniDiff) { + /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + if (typeof uniDiff === 'string') { + uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff); + } + + if (Array.isArray(uniDiff)) { + if (uniDiff.length > 1) { + throw new Error('applyPatch only works with a single input.'); + } + + uniDiff = uniDiff[0]; + } + + // Apply the diff to the input + var lines = source.split(/\r\n|[\n\v\f\r\x85]/), + delimiters = source.match(/\r\n|[\n\v\f\r\x85]/g) || [], + hunks = uniDiff.hunks, + compareLine = options.compareLine || function (lineNumber, line, operation, patchContent) /*istanbul ignore start*/{ + return (/*istanbul ignore end*/line === patchContent + ); + }, + errorCount = 0, + fuzzFactor = options.fuzzFactor || 0, + minLine = 0, + offset = 0, + removeEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/, + addEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; + + /** + * Checks if the hunk exactly fits on the provided location + */ + function hunkFits(hunk, toPos) { + for (var j = 0; j < hunk.lines.length; j++) { + var line = hunk.lines[j], + operation = line.length > 0 ? line[0] : ' ', + content = line.length > 0 ? line.substr(1) : line; + + if (operation === ' ' || operation === '-') { + // Context sanity check + if (!compareLine(toPos + 1, lines[toPos], operation, content)) { + errorCount++; + + if (errorCount > fuzzFactor) { + return false; + } + } + toPos++; + } + } + + return true; + } + + // Search best fit offsets for each hunk based on the previous ones + for (var i = 0; i < hunks.length; i++) { + var hunk = hunks[i], + maxLine = lines.length - hunk.oldLines, + localOffset = 0, + toPos = offset + hunk.oldStart - 1; + + var iterator = /*istanbul ignore start*/(0, _distanceIterator2['default']) /*istanbul ignore end*/(toPos, minLine, maxLine); + + for (; localOffset !== undefined; localOffset = iterator()) { + if (hunkFits(hunk, toPos + localOffset)) { + hunk.offset = offset += localOffset; + break; + } + } + + if (localOffset === undefined) { + return false; + } + + // Set lower text limit to end of the current hunk, so next ones don't try + // to fit over already patched text + minLine = hunk.offset + hunk.oldStart + hunk.oldLines; + } + + // Apply patch hunks + var diffOffset = 0; + for (var _i = 0; _i < hunks.length; _i++) { + var _hunk = hunks[_i], + _toPos = _hunk.oldStart + _hunk.offset + diffOffset - 1; + diffOffset += _hunk.newLines - _hunk.oldLines; + + if (_toPos < 0) { + // Creating a new file + _toPos = 0; + } + + for (var j = 0; j < _hunk.lines.length; j++) { + var line = _hunk.lines[j], + operation = line.length > 0 ? line[0] : ' ', + content = line.length > 0 ? line.substr(1) : line, + delimiter = _hunk.linedelimiters[j]; + + if (operation === ' ') { + _toPos++; + } else if (operation === '-') { + lines.splice(_toPos, 1); + delimiters.splice(_toPos, 1); + /* istanbul ignore else */ + } else if (operation === '+') { + lines.splice(_toPos, 0, content); + delimiters.splice(_toPos, 0, delimiter); + _toPos++; + } else if (operation === '\\') { + var previousOperation = _hunk.lines[j - 1] ? _hunk.lines[j - 1][0] : null; + if (previousOperation === '+') { + removeEOFNL = true; + } else if (previousOperation === '-') { + addEOFNL = true; + } + } + } + } + + // Handle EOFNL insertion/removal + if (removeEOFNL) { + while (!lines[lines.length - 1]) { + lines.pop(); + delimiters.pop(); + } + } else if (addEOFNL) { + lines.push(''); + delimiters.push('\n'); + } + for (var _k = 0; _k < lines.length - 1; _k++) { + lines[_k] = lines[_k] + delimiters[_k]; + } + return lines.join(''); + } + + // Wrapper that supports multiple file patches via callbacks. + function applyPatches(uniDiff, options) { + if (typeof uniDiff === 'string') { + uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff); + } + + var currentIndex = 0; + function processIndex() { + var index = uniDiff[currentIndex++]; + if (!index) { + return options.complete(); + } + + options.loadFile(index, function (err, data) { + if (err) { + return options.complete(err); + } + + var updatedContent = applyPatch(data, index, options); + options.patched(index, updatedContent, function (err) { + if (err) { + return options.complete(err); + } + + processIndex(); + }); + }); + } + processIndex(); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9hcHBseS5qcyJdLCJuYW1lcyI6WyJhcHBseVBhdGNoIiwiYXBwbHlQYXRjaGVzIiwic291cmNlIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJBcnJheSIsImlzQXJyYXkiLCJsZW5ndGgiLCJFcnJvciIsImxpbmVzIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJodW5rcyIsImNvbXBhcmVMaW5lIiwibGluZU51bWJlciIsImxpbmUiLCJvcGVyYXRpb24iLCJwYXRjaENvbnRlbnQiLCJlcnJvckNvdW50IiwiZnV6ekZhY3RvciIsIm1pbkxpbmUiLCJvZmZzZXQiLCJyZW1vdmVFT0ZOTCIsImFkZEVPRk5MIiwiaHVua0ZpdHMiLCJodW5rIiwidG9Qb3MiLCJqIiwiY29udGVudCIsInN1YnN0ciIsImkiLCJtYXhMaW5lIiwib2xkTGluZXMiLCJsb2NhbE9mZnNldCIsIm9sZFN0YXJ0IiwiaXRlcmF0b3IiLCJ1bmRlZmluZWQiLCJkaWZmT2Zmc2V0IiwibmV3TGluZXMiLCJkZWxpbWl0ZXIiLCJsaW5lZGVsaW1pdGVycyIsInNwbGljZSIsInByZXZpb3VzT3BlcmF0aW9uIiwicG9wIiwicHVzaCIsIl9rIiwiam9pbiIsImN1cnJlbnRJbmRleCIsInByb2Nlc3NJbmRleCIsImluZGV4IiwiY29tcGxldGUiLCJsb2FkRmlsZSIsImVyciIsImRhdGEiLCJ1cGRhdGVkQ29udGVudCIsInBhdGNoZWQiXSwibWFwcGluZ3MiOiI7OztnQ0FHZ0JBLFUsR0FBQUEsVTt5REFvSUFDLFksR0FBQUEsWTs7QUF2SWhCOztBQUNBOzs7Ozs7dUJBRU8sU0FBU0QsVUFBVCxDQUFvQkUsTUFBcEIsRUFBNEJDLE9BQTVCLEVBQW1EO0FBQUEsc0RBQWRDLE9BQWMsdUVBQUosRUFBSTs7QUFDeEQsTUFBSSxPQUFPRCxPQUFQLEtBQW1CLFFBQXZCLEVBQWlDO0FBQy9CQSxjQUFVLHdFQUFXQSxPQUFYLENBQVY7QUFDRDs7QUFFRCxNQUFJRSxNQUFNQyxPQUFOLENBQWNILE9BQWQsQ0FBSixFQUE0QjtBQUMxQixRQUFJQSxRQUFRSSxNQUFSLEdBQWlCLENBQXJCLEVBQXdCO0FBQ3RCLFlBQU0sSUFBSUMsS0FBSixDQUFVLDRDQUFWLENBQU47QUFDRDs7QUFFREwsY0FBVUEsUUFBUSxDQUFSLENBQVY7QUFDRDs7QUFFRDtBQUNBLE1BQUlNLFFBQVFQLE9BQU9RLEtBQVAsQ0FBYSxxQkFBYixDQUFaO0FBQUEsTUFDSUMsYUFBYVQsT0FBT1UsS0FBUCxDQUFhLHNCQUFiLEtBQXdDLEVBRHpEO0FBQUEsTUFFSUMsUUFBUVYsUUFBUVUsS0FGcEI7QUFBQSxNQUlJQyxjQUFjVixRQUFRVSxXQUFSLElBQXdCLFVBQUNDLFVBQUQsRUFBYUMsSUFBYixFQUFtQkMsU0FBbkIsRUFBOEJDLFlBQTlCO0FBQUEsbUNBQStDRixTQUFTRTtBQUF4RDtBQUFBLEdBSjFDO0FBQUEsTUFLSUMsYUFBYSxDQUxqQjtBQUFBLE1BTUlDLGFBQWFoQixRQUFRZ0IsVUFBUixJQUFzQixDQU52QztBQUFBLE1BT0lDLFVBQVUsQ0FQZDtBQUFBLE1BUUlDLFNBQVMsQ0FSYjtBQUFBLE1BVUlDLDZDQVZKO0FBQUEsTUFXSUMsMENBWEo7O0FBYUE7OztBQUdBLFdBQVNDLFFBQVQsQ0FBa0JDLElBQWxCLEVBQXdCQyxLQUF4QixFQUErQjtBQUM3QixTQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUYsS0FBS2pCLEtBQUwsQ0FBV0YsTUFBL0IsRUFBdUNxQixHQUF2QyxFQUE0QztBQUMxQyxVQUFJWixPQUFPVSxLQUFLakIsS0FBTCxDQUFXbUIsQ0FBWCxDQUFYO0FBQUEsVUFDSVgsWUFBYUQsS0FBS1QsTUFBTCxHQUFjLENBQWQsR0FBa0JTLEtBQUssQ0FBTCxDQUFsQixHQUE0QixHQUQ3QztBQUFBLFVBRUlhLFVBQVdiLEtBQUtULE1BQUwsR0FBYyxDQUFkLEdBQWtCUyxLQUFLYyxNQUFMLENBQVksQ0FBWixDQUFsQixHQUFtQ2QsSUFGbEQ7O0FBSUEsVUFBSUMsY0FBYyxHQUFkLElBQXFCQSxjQUFjLEdBQXZDLEVBQTRDO0FBQzFDO0FBQ0EsWUFBSSxDQUFDSCxZQUFZYSxRQUFRLENBQXBCLEVBQXVCbEIsTUFBTWtCLEtBQU4sQ0FBdkIsRUFBcUNWLFNBQXJDLEVBQWdEWSxPQUFoRCxDQUFMLEVBQStEO0FBQzdEVjs7QUFFQSxjQUFJQSxhQUFhQyxVQUFqQixFQUE2QjtBQUMzQixtQkFBTyxLQUFQO0FBQ0Q7QUFDRjtBQUNETztBQUNEO0FBQ0Y7O0FBRUQsV0FBTyxJQUFQO0FBQ0Q7O0FBRUQ7QUFDQSxPQUFLLElBQUlJLElBQUksQ0FBYixFQUFnQkEsSUFBSWxCLE1BQU1OLE1BQTFCLEVBQWtDd0IsR0FBbEMsRUFBdUM7QUFDckMsUUFBSUwsT0FBT2IsTUFBTWtCLENBQU4sQ0FBWDtBQUFBLFFBQ0lDLFVBQVV2QixNQUFNRixNQUFOLEdBQWVtQixLQUFLTyxRQURsQztBQUFBLFFBRUlDLGNBQWMsQ0FGbEI7QUFBQSxRQUdJUCxRQUFRTCxTQUFTSSxLQUFLUyxRQUFkLEdBQXlCLENBSHJDOztBQUtBLFFBQUlDLFdBQVcsb0ZBQWlCVCxLQUFqQixFQUF3Qk4sT0FBeEIsRUFBaUNXLE9BQWpDLENBQWY7O0FBRUEsV0FBT0UsZ0JBQWdCRyxTQUF2QixFQUFrQ0gsY0FBY0UsVUFBaEQsRUFBNEQ7QUFDMUQsVUFBSVgsU0FBU0MsSUFBVCxFQUFlQyxRQUFRTyxXQUF2QixDQUFKLEVBQXlDO0FBQ3ZDUixhQUFLSixNQUFMLEdBQWNBLFVBQVVZLFdBQXhCO0FBQ0E7QUFDRDtBQUNGOztBQUVELFFBQUlBLGdCQUFnQkcsU0FBcEIsRUFBK0I7QUFDN0IsYUFBTyxLQUFQO0FBQ0Q7O0FBRUQ7QUFDQTtBQUNBaEIsY0FBVUssS0FBS0osTUFBTCxHQUFjSSxLQUFLUyxRQUFuQixHQUE4QlQsS0FBS08sUUFBN0M7QUFDRDs7QUFFRDtBQUNBLE1BQUlLLGFBQWEsQ0FBakI7QUFDQSxPQUFLLElBQUlQLEtBQUksQ0FBYixFQUFnQkEsS0FBSWxCLE1BQU1OLE1BQTFCLEVBQWtDd0IsSUFBbEMsRUFBdUM7QUFDckMsUUFBSUwsUUFBT2IsTUFBTWtCLEVBQU4sQ0FBWDtBQUFBLFFBQ0lKLFNBQVFELE1BQUtTLFFBQUwsR0FBZ0JULE1BQUtKLE1BQXJCLEdBQThCZ0IsVUFBOUIsR0FBMkMsQ0FEdkQ7QUFFQUEsa0JBQWNaLE1BQUthLFFBQUwsR0FBZ0JiLE1BQUtPLFFBQW5DOztBQUVBLFFBQUlOLFNBQVEsQ0FBWixFQUFlO0FBQUU7QUFDZkEsZUFBUSxDQUFSO0FBQ0Q7O0FBRUQsU0FBSyxJQUFJQyxJQUFJLENBQWIsRUFBZ0JBLElBQUlGLE1BQUtqQixLQUFMLENBQVdGLE1BQS9CLEVBQXVDcUIsR0FBdkMsRUFBNEM7QUFDMUMsVUFBSVosT0FBT1UsTUFBS2pCLEtBQUwsQ0FBV21CLENBQVgsQ0FBWDtBQUFBLFVBQ0lYLFlBQWFELEtBQUtULE1BQUwsR0FBYyxDQUFkLEdBQWtCUyxLQUFLLENBQUwsQ0FBbEIsR0FBNEIsR0FEN0M7QUFBQSxVQUVJYSxVQUFXYixLQUFLVCxNQUFMLEdBQWMsQ0FBZCxHQUFrQlMsS0FBS2MsTUFBTCxDQUFZLENBQVosQ0FBbEIsR0FBbUNkLElBRmxEO0FBQUEsVUFHSXdCLFlBQVlkLE1BQUtlLGNBQUwsQ0FBb0JiLENBQXBCLENBSGhCOztBQUtBLFVBQUlYLGNBQWMsR0FBbEIsRUFBdUI7QUFDckJVO0FBQ0QsT0FGRCxNQUVPLElBQUlWLGNBQWMsR0FBbEIsRUFBdUI7QUFDNUJSLGNBQU1pQyxNQUFOLENBQWFmLE1BQWIsRUFBb0IsQ0FBcEI7QUFDQWhCLG1CQUFXK0IsTUFBWCxDQUFrQmYsTUFBbEIsRUFBeUIsQ0FBekI7QUFDRjtBQUNDLE9BSk0sTUFJQSxJQUFJVixjQUFjLEdBQWxCLEVBQXVCO0FBQzVCUixjQUFNaUMsTUFBTixDQUFhZixNQUFiLEVBQW9CLENBQXBCLEVBQXVCRSxPQUF2QjtBQUNBbEIsbUJBQVcrQixNQUFYLENBQWtCZixNQUFsQixFQUF5QixDQUF6QixFQUE0QmEsU0FBNUI7QUFDQWI7QUFDRCxPQUpNLE1BSUEsSUFBSVYsY0FBYyxJQUFsQixFQUF3QjtBQUM3QixZQUFJMEIsb0JBQW9CakIsTUFBS2pCLEtBQUwsQ0FBV21CLElBQUksQ0FBZixJQUFvQkYsTUFBS2pCLEtBQUwsQ0FBV21CLElBQUksQ0FBZixFQUFrQixDQUFsQixDQUFwQixHQUEyQyxJQUFuRTtBQUNBLFlBQUllLHNCQUFzQixHQUExQixFQUErQjtBQUM3QnBCLHdCQUFjLElBQWQ7QUFDRCxTQUZELE1BRU8sSUFBSW9CLHNCQUFzQixHQUExQixFQUErQjtBQUNwQ25CLHFCQUFXLElBQVg7QUFDRDtBQUNGO0FBQ0Y7QUFDRjs7QUFFRDtBQUNBLE1BQUlELFdBQUosRUFBaUI7QUFDZixXQUFPLENBQUNkLE1BQU1BLE1BQU1GLE1BQU4sR0FBZSxDQUFyQixDQUFSLEVBQWlDO0FBQy9CRSxZQUFNbUMsR0FBTjtBQUNBakMsaUJBQVdpQyxHQUFYO0FBQ0Q7QUFDRixHQUxELE1BS08sSUFBSXBCLFFBQUosRUFBYztBQUNuQmYsVUFBTW9DLElBQU4sQ0FBVyxFQUFYO0FBQ0FsQyxlQUFXa0MsSUFBWCxDQUFnQixJQUFoQjtBQUNEO0FBQ0QsT0FBSyxJQUFJQyxLQUFLLENBQWQsRUFBaUJBLEtBQUtyQyxNQUFNRixNQUFOLEdBQWUsQ0FBckMsRUFBd0N1QyxJQUF4QyxFQUE4QztBQUM1Q3JDLFVBQU1xQyxFQUFOLElBQVlyQyxNQUFNcUMsRUFBTixJQUFZbkMsV0FBV21DLEVBQVgsQ0FBeEI7QUFDRDtBQUNELFNBQU9yQyxNQUFNc0MsSUFBTixDQUFXLEVBQVgsQ0FBUDtBQUNEOztBQUVEO0FBQ08sU0FBUzlDLFlBQVQsQ0FBc0JFLE9BQXRCLEVBQStCQyxPQUEvQixFQUF3QztBQUM3QyxNQUFJLE9BQU9ELE9BQVAsS0FBbUIsUUFBdkIsRUFBaUM7QUFDL0JBLGNBQVUsd0VBQVdBLE9BQVgsQ0FBVjtBQUNEOztBQUVELE1BQUk2QyxlQUFlLENBQW5CO0FBQ0EsV0FBU0MsWUFBVCxHQUF3QjtBQUN0QixRQUFJQyxRQUFRL0MsUUFBUTZDLGNBQVIsQ0FBWjtBQUNBLFFBQUksQ0FBQ0UsS0FBTCxFQUFZO0FBQ1YsYUFBTzlDLFFBQVErQyxRQUFSLEVBQVA7QUFDRDs7QUFFRC9DLFlBQVFnRCxRQUFSLENBQWlCRixLQUFqQixFQUF3QixVQUFTRyxHQUFULEVBQWNDLElBQWQsRUFBb0I7QUFDMUMsVUFBSUQsR0FBSixFQUFTO0FBQ1AsZUFBT2pELFFBQVErQyxRQUFSLENBQWlCRSxHQUFqQixDQUFQO0FBQ0Q7O0FBRUQsVUFBSUUsaUJBQWlCdkQsV0FBV3NELElBQVgsRUFBaUJKLEtBQWpCLEVBQXdCOUMsT0FBeEIsQ0FBckI7QUFDQUEsY0FBUW9ELE9BQVIsQ0FBZ0JOLEtBQWhCLEVBQXVCSyxjQUF2QixFQUF1QyxVQUFTRixHQUFULEVBQWM7QUFDbkQsWUFBSUEsR0FBSixFQUFTO0FBQ1AsaUJBQU9qRCxRQUFRK0MsUUFBUixDQUFpQkUsR0FBakIsQ0FBUDtBQUNEOztBQUVESjtBQUNELE9BTkQ7QUFPRCxLQWJEO0FBY0Q7QUFDREE7QUFDRCIsImZpbGUiOiJhcHBseS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7cGFyc2VQYXRjaH0gZnJvbSAnLi9wYXJzZSc7XG5pbXBvcnQgZGlzdGFuY2VJdGVyYXRvciBmcm9tICcuLi91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yJztcblxuZXhwb3J0IGZ1bmN0aW9uIGFwcGx5UGF0Y2goc291cmNlLCB1bmlEaWZmLCBvcHRpb25zID0ge30pIHtcbiAgaWYgKHR5cGVvZiB1bmlEaWZmID09PSAnc3RyaW5nJykge1xuICAgIHVuaURpZmYgPSBwYXJzZVBhdGNoKHVuaURpZmYpO1xuICB9XG5cbiAgaWYgKEFycmF5LmlzQXJyYXkodW5pRGlmZikpIHtcbiAgICBpZiAodW5pRGlmZi5sZW5ndGggPiAxKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ2FwcGx5UGF0Y2ggb25seSB3b3JrcyB3aXRoIGEgc2luZ2xlIGlucHV0LicpO1xuICAgIH1cblxuICAgIHVuaURpZmYgPSB1bmlEaWZmWzBdO1xuICB9XG5cbiAgLy8gQXBwbHkgdGhlIGRpZmYgdG8gdGhlIGlucHV0XG4gIGxldCBsaW5lcyA9IHNvdXJjZS5zcGxpdCgvXFxyXFxufFtcXG5cXHZcXGZcXHJcXHg4NV0vKSxcbiAgICAgIGRlbGltaXRlcnMgPSBzb3VyY2UubWF0Y2goL1xcclxcbnxbXFxuXFx2XFxmXFxyXFx4ODVdL2cpIHx8IFtdLFxuICAgICAgaHVua3MgPSB1bmlEaWZmLmh1bmtzLFxuXG4gICAgICBjb21wYXJlTGluZSA9IG9wdGlvbnMuY29tcGFyZUxpbmUgfHwgKChsaW5lTnVtYmVyLCBsaW5lLCBvcGVyYXRpb24sIHBhdGNoQ29udGVudCkgPT4gbGluZSA9PT0gcGF0Y2hDb250ZW50KSxcbiAgICAgIGVycm9yQ291bnQgPSAwLFxuICAgICAgZnV6ekZhY3RvciA9IG9wdGlvbnMuZnV6ekZhY3RvciB8fCAwLFxuICAgICAgbWluTGluZSA9IDAsXG4gICAgICBvZmZzZXQgPSAwLFxuXG4gICAgICByZW1vdmVFT0ZOTCxcbiAgICAgIGFkZEVPRk5MO1xuXG4gIC8qKlxuICAgKiBDaGVja3MgaWYgdGhlIGh1bmsgZXhhY3RseSBmaXRzIG9uIHRoZSBwcm92aWRlZCBsb2NhdGlvblxuICAgKi9cbiAgZnVuY3Rpb24gaHVua0ZpdHMoaHVuaywgdG9Qb3MpIHtcbiAgICBmb3IgKGxldCBqID0gMDsgaiA8IGh1bmsubGluZXMubGVuZ3RoOyBqKyspIHtcbiAgICAgIGxldCBsaW5lID0gaHVuay5saW5lc1tqXSxcbiAgICAgICAgICBvcGVyYXRpb24gPSAobGluZS5sZW5ndGggPiAwID8gbGluZVswXSA6ICcgJyksXG4gICAgICAgICAgY29udGVudCA9IChsaW5lLmxlbmd0aCA+IDAgPyBsaW5lLnN1YnN0cigxKSA6IGxpbmUpO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnLScpIHtcbiAgICAgICAgLy8gQ29udGV4dCBzYW5pdHkgY2hlY2tcbiAgICAgICAgaWYgKCFjb21wYXJlTGluZSh0b1BvcyArIDEsIGxpbmVzW3RvUG9zXSwgb3BlcmF0aW9uLCBjb250ZW50KSkge1xuICAgICAgICAgIGVycm9yQ291bnQrKztcblxuICAgICAgICAgIGlmIChlcnJvckNvdW50ID4gZnV6ekZhY3Rvcikge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0b1BvcysrO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0cnVlO1xuICB9XG5cbiAgLy8gU2VhcmNoIGJlc3QgZml0IG9mZnNldHMgZm9yIGVhY2ggaHVuayBiYXNlZCBvbiB0aGUgcHJldmlvdXMgb25lc1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGh1bmtzLmxlbmd0aDsgaSsrKSB7XG4gICAgbGV0IGh1bmsgPSBodW5rc1tpXSxcbiAgICAgICAgbWF4TGluZSA9IGxpbmVzLmxlbmd0aCAtIGh1bmsub2xkTGluZXMsXG4gICAgICAgIGxvY2FsT2Zmc2V0ID0gMCxcbiAgICAgICAgdG9Qb3MgPSBvZmZzZXQgKyBodW5rLm9sZFN0YXJ0IC0gMTtcblxuICAgIGxldCBpdGVyYXRvciA9IGRpc3RhbmNlSXRlcmF0b3IodG9Qb3MsIG1pbkxpbmUsIG1heExpbmUpO1xuXG4gICAgZm9yICg7IGxvY2FsT2Zmc2V0ICE9PSB1bmRlZmluZWQ7IGxvY2FsT2Zmc2V0ID0gaXRlcmF0b3IoKSkge1xuICAgICAgaWYgKGh1bmtGaXRzKGh1bmssIHRvUG9zICsgbG9jYWxPZmZzZXQpKSB7XG4gICAgICAgIGh1bmsub2Zmc2V0ID0gb2Zmc2V0ICs9IGxvY2FsT2Zmc2V0O1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAobG9jYWxPZmZzZXQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIC8vIFNldCBsb3dlciB0ZXh0IGxpbWl0IHRvIGVuZCBvZiB0aGUgY3VycmVudCBodW5rLCBzbyBuZXh0IG9uZXMgZG9uJ3QgdHJ5XG4gICAgLy8gdG8gZml0IG92ZXIgYWxyZWFkeSBwYXRjaGVkIHRleHRcbiAgICBtaW5MaW5lID0gaHVuay5vZmZzZXQgKyBodW5rLm9sZFN0YXJ0ICsgaHVuay5vbGRMaW5lcztcbiAgfVxuXG4gIC8vIEFwcGx5IHBhdGNoIGh1bmtzXG4gIGxldCBkaWZmT2Zmc2V0ID0gMDtcbiAgZm9yIChsZXQgaSA9IDA7IGkgPCBodW5rcy5sZW5ndGg7IGkrKykge1xuICAgIGxldCBodW5rID0gaHVua3NbaV0sXG4gICAgICAgIHRvUG9zID0gaHVuay5vbGRTdGFydCArIGh1bmsub2Zmc2V0ICsgZGlmZk9mZnNldCAtIDE7XG4gICAgZGlmZk9mZnNldCArPSBodW5rLm5ld0xpbmVzIC0gaHVuay5vbGRMaW5lcztcblxuICAgIGlmICh0b1BvcyA8IDApIHsgLy8gQ3JlYXRpbmcgYSBuZXcgZmlsZVxuICAgICAgdG9Qb3MgPSAwO1xuICAgIH1cblxuICAgIGZvciAobGV0IGogPSAwOyBqIDwgaHVuay5saW5lcy5sZW5ndGg7IGorKykge1xuICAgICAgbGV0IGxpbmUgPSBodW5rLmxpbmVzW2pdLFxuICAgICAgICAgIG9wZXJhdGlvbiA9IChsaW5lLmxlbmd0aCA+IDAgPyBsaW5lWzBdIDogJyAnKSxcbiAgICAgICAgICBjb250ZW50ID0gKGxpbmUubGVuZ3RoID4gMCA/IGxpbmUuc3Vic3RyKDEpIDogbGluZSksXG4gICAgICAgICAgZGVsaW1pdGVyID0gaHVuay5saW5lZGVsaW1pdGVyc1tqXTtcblxuICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJyAnKSB7XG4gICAgICAgIHRvUG9zKys7XG4gICAgICB9IGVsc2UgaWYgKG9wZXJhdGlvbiA9PT0gJy0nKSB7XG4gICAgICAgIGxpbmVzLnNwbGljZSh0b1BvcywgMSk7XG4gICAgICAgIGRlbGltaXRlcnMuc3BsaWNlKHRvUG9zLCAxKTtcbiAgICAgIC8qIGlzdGFuYnVsIGlnbm9yZSBlbHNlICovXG4gICAgICB9IGVsc2UgaWYgKG9wZXJhdGlvbiA9PT0gJysnKSB7XG4gICAgICAgIGxpbmVzLnNwbGljZSh0b1BvcywgMCwgY29udGVudCk7XG4gICAgICAgIGRlbGltaXRlcnMuc3BsaWNlKHRvUG9zLCAwLCBkZWxpbWl0ZXIpO1xuICAgICAgICB0b1BvcysrO1xuICAgICAgfSBlbHNlIGlmIChvcGVyYXRpb24gPT09ICdcXFxcJykge1xuICAgICAgICBsZXQgcHJldmlvdXNPcGVyYXRpb24gPSBodW5rLmxpbmVzW2ogLSAxXSA/IGh1bmsubGluZXNbaiAtIDFdWzBdIDogbnVsbDtcbiAgICAgICAgaWYgKHByZXZpb3VzT3BlcmF0aW9uID09PSAnKycpIHtcbiAgICAgICAgICByZW1vdmVFT0ZOTCA9IHRydWU7XG4gICAgICAgIH0gZWxzZSBpZiAocHJldmlvdXNPcGVyYXRpb24gPT09ICctJykge1xuICAgICAgICAgIGFkZEVPRk5MID0gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vIEhhbmRsZSBFT0ZOTCBpbnNlcnRpb24vcmVtb3ZhbFxuICBpZiAocmVtb3ZlRU9GTkwpIHtcbiAgICB3aGlsZSAoIWxpbmVzW2xpbmVzLmxlbmd0aCAtIDFdKSB7XG4gICAgICBsaW5lcy5wb3AoKTtcbiAgICAgIGRlbGltaXRlcnMucG9wKCk7XG4gICAgfVxuICB9IGVsc2UgaWYgKGFkZEVPRk5MKSB7XG4gICAgbGluZXMucHVzaCgnJyk7XG4gICAgZGVsaW1pdGVycy5wdXNoKCdcXG4nKTtcbiAgfVxuICBmb3IgKGxldCBfayA9IDA7IF9rIDwgbGluZXMubGVuZ3RoIC0gMTsgX2srKykge1xuICAgIGxpbmVzW19rXSA9IGxpbmVzW19rXSArIGRlbGltaXRlcnNbX2tdO1xuICB9XG4gIHJldHVybiBsaW5lcy5qb2luKCcnKTtcbn1cblxuLy8gV3JhcHBlciB0aGF0IHN1cHBvcnRzIG11bHRpcGxlIGZpbGUgcGF0Y2hlcyB2aWEgY2FsbGJhY2tzLlxuZXhwb3J0IGZ1bmN0aW9uIGFwcGx5UGF0Y2hlcyh1bmlEaWZmLCBvcHRpb25zKSB7XG4gIGlmICh0eXBlb2YgdW5pRGlmZiA9PT0gJ3N0cmluZycpIHtcbiAgICB1bmlEaWZmID0gcGFyc2VQYXRjaCh1bmlEaWZmKTtcbiAgfVxuXG4gIGxldCBjdXJyZW50SW5kZXggPSAwO1xuICBmdW5jdGlvbiBwcm9jZXNzSW5kZXgoKSB7XG4gICAgbGV0IGluZGV4ID0gdW5pRGlmZltjdXJyZW50SW5kZXgrK107XG4gICAgaWYgKCFpbmRleCkge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoKTtcbiAgICB9XG5cbiAgICBvcHRpb25zLmxvYWRGaWxlKGluZGV4LCBmdW5jdGlvbihlcnIsIGRhdGEpIHtcbiAgICAgIGlmIChlcnIpIHtcbiAgICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoZXJyKTtcbiAgICAgIH1cblxuICAgICAgbGV0IHVwZGF0ZWRDb250ZW50ID0gYXBwbHlQYXRjaChkYXRhLCBpbmRleCwgb3B0aW9ucyk7XG4gICAgICBvcHRpb25zLnBhdGNoZWQoaW5kZXgsIHVwZGF0ZWRDb250ZW50LCBmdW5jdGlvbihlcnIpIHtcbiAgICAgICAgaWYgKGVycikge1xuICAgICAgICAgIHJldHVybiBvcHRpb25zLmNvbXBsZXRlKGVycik7XG4gICAgICAgIH1cblxuICAgICAgICBwcm9jZXNzSW5kZXgoKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9XG4gIHByb2Nlc3NJbmRleCgpO1xufVxuIl19 + + +/***/ }), +/* 11 */ +/***/ (function(module, exports) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports. /*istanbul ignore end*/parsePatch = parsePatch; + function parsePatch(uniDiff) { + /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var diffstr = uniDiff.split(/\r\n|[\n\v\f\r\x85]/), + delimiters = uniDiff.match(/\r\n|[\n\v\f\r\x85]/g) || [], + list = [], + i = 0; + + function parseIndex() { + var index = {}; + list.push(index); + + // Parse diff metadata + while (i < diffstr.length) { + var line = diffstr[i]; + + // File header found, end parsing diff metadata + if (/^(\-\-\-|\+\+\+|@@)\s/.test(line)) { + break; + } + + // Diff index + var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line); + if (header) { + index.index = header[1]; + } + + i++; + } + + // Parse file headers if they are defined. Unified diff requires them, but + // there's no technical issues to have an isolated hunk without file header + parseFileHeader(index); + parseFileHeader(index); + + // Parse hunks + index.hunks = []; + + while (i < diffstr.length) { + var _line = diffstr[i]; + + if (/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(_line)) { + break; + } else if (/^@@/.test(_line)) { + index.hunks.push(parseHunk()); + } else if (_line && options.strict) { + // Ignore unexpected content unless in strict mode + throw new Error('Unknown line ' + (i + 1) + ' ' + JSON.stringify(_line)); + } else { + i++; + } + } + } + + // Parses the --- and +++ headers, if none are found, no lines + // are consumed. + function parseFileHeader(index) { + var fileHeader = /^(---|\+\+\+)\s+(.*)$/.exec(diffstr[i]); + if (fileHeader) { + var keyPrefix = fileHeader[1] === '---' ? 'old' : 'new'; + var data = fileHeader[2].split('\t', 2); + var fileName = data[0].replace(/\\\\/g, '\\'); + if (/^".*"$/.test(fileName)) { + fileName = fileName.substr(1, fileName.length - 2); + } + index[keyPrefix + 'FileName'] = fileName; + index[keyPrefix + 'Header'] = (data[1] || '').trim(); + + i++; + } + } + + // Parses a hunk + // This assumes that we are at the start of a hunk. + function parseHunk() { + var chunkHeaderIndex = i, + chunkHeaderLine = diffstr[i++], + chunkHeader = chunkHeaderLine.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/); + + var hunk = { + oldStart: +chunkHeader[1], + oldLines: +chunkHeader[2] || 1, + newStart: +chunkHeader[3], + newLines: +chunkHeader[4] || 1, + lines: [], + linedelimiters: [] + }; + + var addCount = 0, + removeCount = 0; + for (; i < diffstr.length; i++) { + // Lines starting with '---' could be mistaken for the "remove line" operation + // But they could be the header for the next file. Therefore prune such cases out. + if (diffstr[i].indexOf('--- ') === 0 && i + 2 < diffstr.length && diffstr[i + 1].indexOf('+++ ') === 0 && diffstr[i + 2].indexOf('@@') === 0) { + break; + } + var operation = diffstr[i].length == 0 && i != diffstr.length - 1 ? ' ' : diffstr[i][0]; + + if (operation === '+' || operation === '-' || operation === ' ' || operation === '\\') { + hunk.lines.push(diffstr[i]); + hunk.linedelimiters.push(delimiters[i] || '\n'); + + if (operation === '+') { + addCount++; + } else if (operation === '-') { + removeCount++; + } else if (operation === ' ') { + addCount++; + removeCount++; + } + } else { + break; + } + } + + // Handle the empty block count case + if (!addCount && hunk.newLines === 1) { + hunk.newLines = 0; + } + if (!removeCount && hunk.oldLines === 1) { + hunk.oldLines = 0; + } + + // Perform optional sanity checking + if (options.strict) { + if (addCount !== hunk.newLines) { + throw new Error('Added line count did not match for hunk at line ' + (chunkHeaderIndex + 1)); + } + if (removeCount !== hunk.oldLines) { + throw new Error('Removed line count did not match for hunk at line ' + (chunkHeaderIndex + 1)); + } + } + + return hunk; + } + + while (i < diffstr.length) { + parseIndex(); + } + + return list; + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9wYXJzZS5qcyJdLCJuYW1lcyI6WyJwYXJzZVBhdGNoIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJkaWZmc3RyIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJsaXN0IiwiaSIsInBhcnNlSW5kZXgiLCJpbmRleCIsInB1c2giLCJsZW5ndGgiLCJsaW5lIiwidGVzdCIsImhlYWRlciIsImV4ZWMiLCJwYXJzZUZpbGVIZWFkZXIiLCJodW5rcyIsInBhcnNlSHVuayIsInN0cmljdCIsIkVycm9yIiwiSlNPTiIsInN0cmluZ2lmeSIsImZpbGVIZWFkZXIiLCJrZXlQcmVmaXgiLCJkYXRhIiwiZmlsZU5hbWUiLCJyZXBsYWNlIiwic3Vic3RyIiwidHJpbSIsImNodW5rSGVhZGVySW5kZXgiLCJjaHVua0hlYWRlckxpbmUiLCJjaHVua0hlYWRlciIsImh1bmsiLCJvbGRTdGFydCIsIm9sZExpbmVzIiwibmV3U3RhcnQiLCJuZXdMaW5lcyIsImxpbmVzIiwibGluZWRlbGltaXRlcnMiLCJhZGRDb3VudCIsInJlbW92ZUNvdW50IiwiaW5kZXhPZiIsIm9wZXJhdGlvbiJdLCJtYXBwaW5ncyI6Ijs7O2dDQUFnQkEsVSxHQUFBQSxVO0FBQVQsU0FBU0EsVUFBVCxDQUFvQkMsT0FBcEIsRUFBMkM7QUFBQSxzREFBZEMsT0FBYyx1RUFBSixFQUFJOztBQUNoRCxNQUFJQyxVQUFVRixRQUFRRyxLQUFSLENBQWMscUJBQWQsQ0FBZDtBQUFBLE1BQ0lDLGFBQWFKLFFBQVFLLEtBQVIsQ0FBYyxzQkFBZCxLQUF5QyxFQUQxRDtBQUFBLE1BRUlDLE9BQU8sRUFGWDtBQUFBLE1BR0lDLElBQUksQ0FIUjs7QUFLQSxXQUFTQyxVQUFULEdBQXNCO0FBQ3BCLFFBQUlDLFFBQVEsRUFBWjtBQUNBSCxTQUFLSSxJQUFMLENBQVVELEtBQVY7O0FBRUE7QUFDQSxXQUFPRixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6QixVQUFJQyxPQUFPVixRQUFRSyxDQUFSLENBQVg7O0FBRUE7QUFDQSxVQUFJLHdCQUF3Qk0sSUFBeEIsQ0FBNkJELElBQTdCLENBQUosRUFBd0M7QUFDdEM7QUFDRDs7QUFFRDtBQUNBLFVBQUlFLFNBQVUsMENBQUQsQ0FBNkNDLElBQTdDLENBQWtESCxJQUFsRCxDQUFiO0FBQ0EsVUFBSUUsTUFBSixFQUFZO0FBQ1ZMLGNBQU1BLEtBQU4sR0FBY0ssT0FBTyxDQUFQLENBQWQ7QUFDRDs7QUFFRFA7QUFDRDs7QUFFRDtBQUNBO0FBQ0FTLG9CQUFnQlAsS0FBaEI7QUFDQU8sb0JBQWdCUCxLQUFoQjs7QUFFQTtBQUNBQSxVQUFNUSxLQUFOLEdBQWMsRUFBZDs7QUFFQSxXQUFPVixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6QixVQUFJQyxRQUFPVixRQUFRSyxDQUFSLENBQVg7O0FBRUEsVUFBSSxpQ0FBaUNNLElBQWpDLENBQXNDRCxLQUF0QyxDQUFKLEVBQWlEO0FBQy9DO0FBQ0QsT0FGRCxNQUVPLElBQUksTUFBTUMsSUFBTixDQUFXRCxLQUFYLENBQUosRUFBc0I7QUFDM0JILGNBQU1RLEtBQU4sQ0FBWVAsSUFBWixDQUFpQlEsV0FBakI7QUFDRCxPQUZNLE1BRUEsSUFBSU4sU0FBUVgsUUFBUWtCLE1BQXBCLEVBQTRCO0FBQ2pDO0FBQ0EsY0FBTSxJQUFJQyxLQUFKLENBQVUsbUJBQW1CYixJQUFJLENBQXZCLElBQTRCLEdBQTVCLEdBQWtDYyxLQUFLQyxTQUFMLENBQWVWLEtBQWYsQ0FBNUMsQ0FBTjtBQUNELE9BSE0sTUFHQTtBQUNMTDtBQUNEO0FBQ0Y7QUFDRjs7QUFFRDtBQUNBO0FBQ0EsV0FBU1MsZUFBVCxDQUF5QlAsS0FBekIsRUFBZ0M7QUFDOUIsUUFBTWMsYUFBYyx1QkFBRCxDQUEwQlIsSUFBMUIsQ0FBK0JiLFFBQVFLLENBQVIsQ0FBL0IsQ0FBbkI7QUFDQSxRQUFJZ0IsVUFBSixFQUFnQjtBQUNkLFVBQUlDLFlBQVlELFdBQVcsQ0FBWCxNQUFrQixLQUFsQixHQUEwQixLQUExQixHQUFrQyxLQUFsRDtBQUNBLFVBQU1FLE9BQU9GLFdBQVcsQ0FBWCxFQUFjcEIsS0FBZCxDQUFvQixJQUFwQixFQUEwQixDQUExQixDQUFiO0FBQ0EsVUFBSXVCLFdBQVdELEtBQUssQ0FBTCxFQUFRRSxPQUFSLENBQWdCLE9BQWhCLEVBQXlCLElBQXpCLENBQWY7QUFDQSxVQUFJLFNBQVNkLElBQVQsQ0FBY2EsUUFBZCxDQUFKLEVBQTZCO0FBQzNCQSxtQkFBV0EsU0FBU0UsTUFBVCxDQUFnQixDQUFoQixFQUFtQkYsU0FBU2YsTUFBVCxHQUFrQixDQUFyQyxDQUFYO0FBQ0Q7QUFDREYsWUFBTWUsWUFBWSxVQUFsQixJQUFnQ0UsUUFBaEM7QUFDQWpCLFlBQU1lLFlBQVksUUFBbEIsSUFBOEIsQ0FBQ0MsS0FBSyxDQUFMLEtBQVcsRUFBWixFQUFnQkksSUFBaEIsRUFBOUI7O0FBRUF0QjtBQUNEO0FBQ0Y7O0FBRUQ7QUFDQTtBQUNBLFdBQVNXLFNBQVQsR0FBcUI7QUFDbkIsUUFBSVksbUJBQW1CdkIsQ0FBdkI7QUFBQSxRQUNJd0Isa0JBQWtCN0IsUUFBUUssR0FBUixDQUR0QjtBQUFBLFFBRUl5QixjQUFjRCxnQkFBZ0I1QixLQUFoQixDQUFzQiw0Q0FBdEIsQ0FGbEI7O0FBSUEsUUFBSThCLE9BQU87QUFDVEMsZ0JBQVUsQ0FBQ0YsWUFBWSxDQUFaLENBREY7QUFFVEcsZ0JBQVUsQ0FBQ0gsWUFBWSxDQUFaLENBQUQsSUFBbUIsQ0FGcEI7QUFHVEksZ0JBQVUsQ0FBQ0osWUFBWSxDQUFaLENBSEY7QUFJVEssZ0JBQVUsQ0FBQ0wsWUFBWSxDQUFaLENBQUQsSUFBbUIsQ0FKcEI7QUFLVE0sYUFBTyxFQUxFO0FBTVRDLHNCQUFnQjtBQU5QLEtBQVg7O0FBU0EsUUFBSUMsV0FBVyxDQUFmO0FBQUEsUUFDSUMsY0FBYyxDQURsQjtBQUVBLFdBQU9sQyxJQUFJTCxRQUFRUyxNQUFuQixFQUEyQkosR0FBM0IsRUFBZ0M7QUFDOUI7QUFDQTtBQUNBLFVBQUlMLFFBQVFLLENBQVIsRUFBV21DLE9BQVgsQ0FBbUIsTUFBbkIsTUFBK0IsQ0FBL0IsSUFDTW5DLElBQUksQ0FBSixHQUFRTCxRQUFRUyxNQUR0QixJQUVLVCxRQUFRSyxJQUFJLENBQVosRUFBZW1DLE9BQWYsQ0FBdUIsTUFBdkIsTUFBbUMsQ0FGeEMsSUFHS3hDLFFBQVFLLElBQUksQ0FBWixFQUFlbUMsT0FBZixDQUF1QixJQUF2QixNQUFpQyxDQUgxQyxFQUc2QztBQUN6QztBQUNIO0FBQ0QsVUFBSUMsWUFBYXpDLFFBQVFLLENBQVIsRUFBV0ksTUFBWCxJQUFxQixDQUFyQixJQUEwQkosS0FBTUwsUUFBUVMsTUFBUixHQUFpQixDQUFsRCxHQUF3RCxHQUF4RCxHQUE4RFQsUUFBUUssQ0FBUixFQUFXLENBQVgsQ0FBOUU7O0FBRUEsVUFBSW9DLGNBQWMsR0FBZCxJQUFxQkEsY0FBYyxHQUFuQyxJQUEwQ0EsY0FBYyxHQUF4RCxJQUErREEsY0FBYyxJQUFqRixFQUF1RjtBQUNyRlYsYUFBS0ssS0FBTCxDQUFXNUIsSUFBWCxDQUFnQlIsUUFBUUssQ0FBUixDQUFoQjtBQUNBMEIsYUFBS00sY0FBTCxDQUFvQjdCLElBQXBCLENBQXlCTixXQUFXRyxDQUFYLEtBQWlCLElBQTFDOztBQUVBLFlBQUlvQyxjQUFjLEdBQWxCLEVBQXVCO0FBQ3JCSDtBQUNELFNBRkQsTUFFTyxJQUFJRyxjQUFjLEdBQWxCLEVBQXVCO0FBQzVCRjtBQUNELFNBRk0sTUFFQSxJQUFJRSxjQUFjLEdBQWxCLEVBQXVCO0FBQzVCSDtBQUNBQztBQUNEO0FBQ0YsT0FaRCxNQVlPO0FBQ0w7QUFDRDtBQUNGOztBQUVEO0FBQ0EsUUFBSSxDQUFDRCxRQUFELElBQWFQLEtBQUtJLFFBQUwsS0FBa0IsQ0FBbkMsRUFBc0M7QUFDcENKLFdBQUtJLFFBQUwsR0FBZ0IsQ0FBaEI7QUFDRDtBQUNELFFBQUksQ0FBQ0ksV0FBRCxJQUFnQlIsS0FBS0UsUUFBTCxLQUFrQixDQUF0QyxFQUF5QztBQUN2Q0YsV0FBS0UsUUFBTCxHQUFnQixDQUFoQjtBQUNEOztBQUVEO0FBQ0EsUUFBSWxDLFFBQVFrQixNQUFaLEVBQW9CO0FBQ2xCLFVBQUlxQixhQUFhUCxLQUFLSSxRQUF0QixFQUFnQztBQUM5QixjQUFNLElBQUlqQixLQUFKLENBQVUsc0RBQXNEVSxtQkFBbUIsQ0FBekUsQ0FBVixDQUFOO0FBQ0Q7QUFDRCxVQUFJVyxnQkFBZ0JSLEtBQUtFLFFBQXpCLEVBQW1DO0FBQ2pDLGNBQU0sSUFBSWYsS0FBSixDQUFVLHdEQUF3RFUsbUJBQW1CLENBQTNFLENBQVYsQ0FBTjtBQUNEO0FBQ0Y7O0FBRUQsV0FBT0csSUFBUDtBQUNEOztBQUVELFNBQU8xQixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6Qkg7QUFDRDs7QUFFRCxTQUFPRixJQUFQO0FBQ0QiLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gcGFyc2VQYXRjaCh1bmlEaWZmLCBvcHRpb25zID0ge30pIHtcbiAgbGV0IGRpZmZzdHIgPSB1bmlEaWZmLnNwbGl0KC9cXHJcXG58W1xcblxcdlxcZlxcclxceDg1XS8pLFxuICAgICAgZGVsaW1pdGVycyA9IHVuaURpZmYubWF0Y2goL1xcclxcbnxbXFxuXFx2XFxmXFxyXFx4ODVdL2cpIHx8IFtdLFxuICAgICAgbGlzdCA9IFtdLFxuICAgICAgaSA9IDA7XG5cbiAgZnVuY3Rpb24gcGFyc2VJbmRleCgpIHtcbiAgICBsZXQgaW5kZXggPSB7fTtcbiAgICBsaXN0LnB1c2goaW5kZXgpO1xuXG4gICAgLy8gUGFyc2UgZGlmZiBtZXRhZGF0YVxuICAgIHdoaWxlIChpIDwgZGlmZnN0ci5sZW5ndGgpIHtcbiAgICAgIGxldCBsaW5lID0gZGlmZnN0cltpXTtcblxuICAgICAgLy8gRmlsZSBoZWFkZXIgZm91bmQsIGVuZCBwYXJzaW5nIGRpZmYgbWV0YWRhdGFcbiAgICAgIGlmICgvXihcXC1cXC1cXC18XFwrXFwrXFwrfEBAKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH1cblxuICAgICAgLy8gRGlmZiBpbmRleFxuICAgICAgbGV0IGhlYWRlciA9ICgvXig/OkluZGV4OnxkaWZmKD86IC1yIFxcdyspKylcXHMrKC4rPylcXHMqJC8pLmV4ZWMobGluZSk7XG4gICAgICBpZiAoaGVhZGVyKSB7XG4gICAgICAgIGluZGV4LmluZGV4ID0gaGVhZGVyWzFdO1xuICAgICAgfVxuXG4gICAgICBpKys7XG4gICAgfVxuXG4gICAgLy8gUGFyc2UgZmlsZSBoZWFkZXJzIGlmIHRoZXkgYXJlIGRlZmluZWQuIFVuaWZpZWQgZGlmZiByZXF1aXJlcyB0aGVtLCBidXRcbiAgICAvLyB0aGVyZSdzIG5vIHRlY2huaWNhbCBpc3N1ZXMgdG8gaGF2ZSBhbiBpc29sYXRlZCBodW5rIHdpdGhvdXQgZmlsZSBoZWFkZXJcbiAgICBwYXJzZUZpbGVIZWFkZXIoaW5kZXgpO1xuICAgIHBhcnNlRmlsZUhlYWRlcihpbmRleCk7XG5cbiAgICAvLyBQYXJzZSBodW5rc1xuICAgIGluZGV4Lmh1bmtzID0gW107XG5cbiAgICB3aGlsZSAoaSA8IGRpZmZzdHIubGVuZ3RoKSB7XG4gICAgICBsZXQgbGluZSA9IGRpZmZzdHJbaV07XG5cbiAgICAgIGlmICgvXihJbmRleDp8ZGlmZnxcXC1cXC1cXC18XFwrXFwrXFwrKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH0gZWxzZSBpZiAoL15AQC8udGVzdChsaW5lKSkge1xuICAgICAgICBpbmRleC5odW5rcy5wdXNoKHBhcnNlSHVuaygpKTtcbiAgICAgIH0gZWxzZSBpZiAobGluZSAmJiBvcHRpb25zLnN0cmljdCkge1xuICAgICAgICAvLyBJZ25vcmUgdW5leHBlY3RlZCBjb250ZW50IHVubGVzcyBpbiBzdHJpY3QgbW9kZVxuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1Vua25vd24gbGluZSAnICsgKGkgKyAxKSArICcgJyArIEpTT04uc3RyaW5naWZ5KGxpbmUpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGkrKztcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyBQYXJzZXMgdGhlIC0tLSBhbmQgKysrIGhlYWRlcnMsIGlmIG5vbmUgYXJlIGZvdW5kLCBubyBsaW5lc1xuICAvLyBhcmUgY29uc3VtZWQuXG4gIGZ1bmN0aW9uIHBhcnNlRmlsZUhlYWRlcihpbmRleCkge1xuICAgIGNvbnN0IGZpbGVIZWFkZXIgPSAoL14oLS0tfFxcK1xcK1xcKylcXHMrKC4qKSQvKS5leGVjKGRpZmZzdHJbaV0pO1xuICAgIGlmIChmaWxlSGVhZGVyKSB7XG4gICAgICBsZXQga2V5UHJlZml4ID0gZmlsZUhlYWRlclsxXSA9PT0gJy0tLScgPyAnb2xkJyA6ICduZXcnO1xuICAgICAgY29uc3QgZGF0YSA9IGZpbGVIZWFkZXJbMl0uc3BsaXQoJ1xcdCcsIDIpO1xuICAgICAgbGV0IGZpbGVOYW1lID0gZGF0YVswXS5yZXBsYWNlKC9cXFxcXFxcXC9nLCAnXFxcXCcpO1xuICAgICAgaWYgKC9eXCIuKlwiJC8udGVzdChmaWxlTmFtZSkpIHtcbiAgICAgICAgZmlsZU5hbWUgPSBmaWxlTmFtZS5zdWJzdHIoMSwgZmlsZU5hbWUubGVuZ3RoIC0gMik7XG4gICAgICB9XG4gICAgICBpbmRleFtrZXlQcmVmaXggKyAnRmlsZU5hbWUnXSA9IGZpbGVOYW1lO1xuICAgICAgaW5kZXhba2V5UHJlZml4ICsgJ0hlYWRlciddID0gKGRhdGFbMV0gfHwgJycpLnRyaW0oKTtcblxuICAgICAgaSsrO1xuICAgIH1cbiAgfVxuXG4gIC8vIFBhcnNlcyBhIGh1bmtcbiAgLy8gVGhpcyBhc3N1bWVzIHRoYXQgd2UgYXJlIGF0IHRoZSBzdGFydCBvZiBhIGh1bmsuXG4gIGZ1bmN0aW9uIHBhcnNlSHVuaygpIHtcbiAgICBsZXQgY2h1bmtIZWFkZXJJbmRleCA9IGksXG4gICAgICAgIGNodW5rSGVhZGVyTGluZSA9IGRpZmZzdHJbaSsrXSxcbiAgICAgICAgY2h1bmtIZWFkZXIgPSBjaHVua0hlYWRlckxpbmUuc3BsaXQoL0BAIC0oXFxkKykoPzosKFxcZCspKT8gXFwrKFxcZCspKD86LChcXGQrKSk/IEBALyk7XG5cbiAgICBsZXQgaHVuayA9IHtcbiAgICAgIG9sZFN0YXJ0OiArY2h1bmtIZWFkZXJbMV0sXG4gICAgICBvbGRMaW5lczogK2NodW5rSGVhZGVyWzJdIHx8IDEsXG4gICAgICBuZXdTdGFydDogK2NodW5rSGVhZGVyWzNdLFxuICAgICAgbmV3TGluZXM6ICtjaHVua0hlYWRlcls0XSB8fCAxLFxuICAgICAgbGluZXM6IFtdLFxuICAgICAgbGluZWRlbGltaXRlcnM6IFtdXG4gICAgfTtcblxuICAgIGxldCBhZGRDb3VudCA9IDAsXG4gICAgICAgIHJlbW92ZUNvdW50ID0gMDtcbiAgICBmb3IgKDsgaSA8IGRpZmZzdHIubGVuZ3RoOyBpKyspIHtcbiAgICAgIC8vIExpbmVzIHN0YXJ0aW5nIHdpdGggJy0tLScgY291bGQgYmUgbWlzdGFrZW4gZm9yIHRoZSBcInJlbW92ZSBsaW5lXCIgb3BlcmF0aW9uXG4gICAgICAvLyBCdXQgdGhleSBjb3VsZCBiZSB0aGUgaGVhZGVyIGZvciB0aGUgbmV4dCBmaWxlLiBUaGVyZWZvcmUgcHJ1bmUgc3VjaCBjYXNlcyBvdXQuXG4gICAgICBpZiAoZGlmZnN0cltpXS5pbmRleE9mKCctLS0gJykgPT09IDBcbiAgICAgICAgICAgICYmIChpICsgMiA8IGRpZmZzdHIubGVuZ3RoKVxuICAgICAgICAgICAgJiYgZGlmZnN0cltpICsgMV0uaW5kZXhPZignKysrICcpID09PSAwXG4gICAgICAgICAgICAmJiBkaWZmc3RyW2kgKyAyXS5pbmRleE9mKCdAQCcpID09PSAwKSB7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICB9XG4gICAgICBsZXQgb3BlcmF0aW9uID0gKGRpZmZzdHJbaV0ubGVuZ3RoID09IDAgJiYgaSAhPSAoZGlmZnN0ci5sZW5ndGggLSAxKSkgPyAnICcgOiBkaWZmc3RyW2ldWzBdO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnKycgfHwgb3BlcmF0aW9uID09PSAnLScgfHwgb3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnXFxcXCcpIHtcbiAgICAgICAgaHVuay5saW5lcy5wdXNoKGRpZmZzdHJbaV0pO1xuICAgICAgICBodW5rLmxpbmVkZWxpbWl0ZXJzLnB1c2goZGVsaW1pdGVyc1tpXSB8fCAnXFxuJyk7XG5cbiAgICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJysnKSB7XG4gICAgICAgICAgYWRkQ291bnQrKztcbiAgICAgICAgfSBlbHNlIGlmIChvcGVyYXRpb24gPT09ICctJykge1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH0gZWxzZSBpZiAob3BlcmF0aW9uID09PSAnICcpIHtcbiAgICAgICAgICBhZGRDb3VudCsrO1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIEhhbmRsZSB0aGUgZW1wdHkgYmxvY2sgY291bnQgY2FzZVxuICAgIGlmICghYWRkQ291bnQgJiYgaHVuay5uZXdMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5uZXdMaW5lcyA9IDA7XG4gICAgfVxuICAgIGlmICghcmVtb3ZlQ291bnQgJiYgaHVuay5vbGRMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5vbGRMaW5lcyA9IDA7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybSBvcHRpb25hbCBzYW5pdHkgY2hlY2tpbmdcbiAgICBpZiAob3B0aW9ucy5zdHJpY3QpIHtcbiAgICAgIGlmIChhZGRDb3VudCAhPT0gaHVuay5uZXdMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0FkZGVkIGxpbmUgY291bnQgZGlkIG5vdCBtYXRjaCBmb3IgaHVuayBhdCBsaW5lICcgKyAoY2h1bmtIZWFkZXJJbmRleCArIDEpKTtcbiAgICAgIH1cbiAgICAgIGlmIChyZW1vdmVDb3VudCAhPT0gaHVuay5vbGRMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1JlbW92ZWQgbGluZSBjb3VudCBkaWQgbm90IG1hdGNoIGZvciBodW5rIGF0IGxpbmUgJyArIChjaHVua0hlYWRlckluZGV4ICsgMSkpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBodW5rO1xuICB9XG5cbiAgd2hpbGUgKGkgPCBkaWZmc3RyLmxlbmd0aCkge1xuICAgIHBhcnNlSW5kZXgoKTtcbiAgfVxuXG4gIHJldHVybiBsaXN0O1xufVxuIl19 + + +/***/ }), +/* 12 */ +/***/ (function(module, exports) { + + /*istanbul ignore start*/"use strict"; + + exports.__esModule = true; + + exports["default"] = /*istanbul ignore end*/function (start, minLine, maxLine) { + var wantForward = true, + backwardExhausted = false, + forwardExhausted = false, + localOffset = 1; + + return function iterator() { + if (wantForward && !forwardExhausted) { + if (backwardExhausted) { + localOffset++; + } else { + wantForward = false; + } + + // Check if trying to fit beyond text length, and if not, check it fits + // after offset location (or desired location on first iteration) + if (start + localOffset <= maxLine) { + return localOffset; + } + + forwardExhausted = true; + } + + if (!backwardExhausted) { + if (!forwardExhausted) { + wantForward = true; + } + + // Check if trying to fit before text beginning, and if not, check it fits + // before offset location + if (minLine <= start - localOffset) { + return -localOffset++; + } + + backwardExhausted = true; + return iterator(); + } + + // We tried to fit hunk before text beginning and beyond text length, then + // hunk can't fit on the text. Return undefined + }; + }; + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yLmpzIl0sIm5hbWVzIjpbInN0YXJ0IiwibWluTGluZSIsIm1heExpbmUiLCJ3YW50Rm9yd2FyZCIsImJhY2t3YXJkRXhoYXVzdGVkIiwiZm9yd2FyZEV4aGF1c3RlZCIsImxvY2FsT2Zmc2V0IiwiaXRlcmF0b3IiXSwibWFwcGluZ3MiOiI7Ozs7NENBR2UsVUFBU0EsS0FBVCxFQUFnQkMsT0FBaEIsRUFBeUJDLE9BQXpCLEVBQWtDO0FBQy9DLE1BQUlDLGNBQWMsSUFBbEI7QUFBQSxNQUNJQyxvQkFBb0IsS0FEeEI7QUFBQSxNQUVJQyxtQkFBbUIsS0FGdkI7QUFBQSxNQUdJQyxjQUFjLENBSGxCOztBQUtBLFNBQU8sU0FBU0MsUUFBVCxHQUFvQjtBQUN6QixRQUFJSixlQUFlLENBQUNFLGdCQUFwQixFQUFzQztBQUNwQyxVQUFJRCxpQkFBSixFQUF1QjtBQUNyQkU7QUFDRCxPQUZELE1BRU87QUFDTEgsc0JBQWMsS0FBZDtBQUNEOztBQUVEO0FBQ0E7QUFDQSxVQUFJSCxRQUFRTSxXQUFSLElBQXVCSixPQUEzQixFQUFvQztBQUNsQyxlQUFPSSxXQUFQO0FBQ0Q7O0FBRURELHlCQUFtQixJQUFuQjtBQUNEOztBQUVELFFBQUksQ0FBQ0QsaUJBQUwsRUFBd0I7QUFDdEIsVUFBSSxDQUFDQyxnQkFBTCxFQUF1QjtBQUNyQkYsc0JBQWMsSUFBZDtBQUNEOztBQUVEO0FBQ0E7QUFDQSxVQUFJRixXQUFXRCxRQUFRTSxXQUF2QixFQUFvQztBQUNsQyxlQUFPLENBQUNBLGFBQVI7QUFDRDs7QUFFREYsMEJBQW9CLElBQXBCO0FBQ0EsYUFBT0csVUFBUDtBQUNEOztBQUVEO0FBQ0E7QUFDRCxHQWxDRDtBQW1DRCxDIiwiZmlsZSI6ImRpc3RhbmNlLWl0ZXJhdG9yLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gSXRlcmF0b3IgdGhhdCB0cmF2ZXJzZXMgaW4gdGhlIHJhbmdlIG9mIFttaW4sIG1heF0sIHN0ZXBwaW5nXG4vLyBieSBkaXN0YW5jZSBmcm9tIGEgZ2l2ZW4gc3RhcnQgcG9zaXRpb24uIEkuZS4gZm9yIFswLCA0XSwgd2l0aFxuLy8gc3RhcnQgb2YgMiwgdGhpcyB3aWxsIGl0ZXJhdGUgMiwgMywgMSwgNCwgMC5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKHN0YXJ0LCBtaW5MaW5lLCBtYXhMaW5lKSB7XG4gIGxldCB3YW50Rm9yd2FyZCA9IHRydWUsXG4gICAgICBiYWNrd2FyZEV4aGF1c3RlZCA9IGZhbHNlLFxuICAgICAgZm9yd2FyZEV4aGF1c3RlZCA9IGZhbHNlLFxuICAgICAgbG9jYWxPZmZzZXQgPSAxO1xuXG4gIHJldHVybiBmdW5jdGlvbiBpdGVyYXRvcigpIHtcbiAgICBpZiAod2FudEZvcndhcmQgJiYgIWZvcndhcmRFeGhhdXN0ZWQpIHtcbiAgICAgIGlmIChiYWNrd2FyZEV4aGF1c3RlZCkge1xuICAgICAgICBsb2NhbE9mZnNldCsrO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgd2FudEZvcndhcmQgPSBmYWxzZTtcbiAgICAgIH1cblxuICAgICAgLy8gQ2hlY2sgaWYgdHJ5aW5nIHRvIGZpdCBiZXlvbmQgdGV4dCBsZW5ndGgsIGFuZCBpZiBub3QsIGNoZWNrIGl0IGZpdHNcbiAgICAgIC8vIGFmdGVyIG9mZnNldCBsb2NhdGlvbiAob3IgZGVzaXJlZCBsb2NhdGlvbiBvbiBmaXJzdCBpdGVyYXRpb24pXG4gICAgICBpZiAoc3RhcnQgKyBsb2NhbE9mZnNldCA8PSBtYXhMaW5lKSB7XG4gICAgICAgIHJldHVybiBsb2NhbE9mZnNldDtcbiAgICAgIH1cblxuICAgICAgZm9yd2FyZEV4aGF1c3RlZCA9IHRydWU7XG4gICAgfVxuXG4gICAgaWYgKCFiYWNrd2FyZEV4aGF1c3RlZCkge1xuICAgICAgaWYgKCFmb3J3YXJkRXhoYXVzdGVkKSB7XG4gICAgICAgIHdhbnRGb3J3YXJkID0gdHJ1ZTtcbiAgICAgIH1cblxuICAgICAgLy8gQ2hlY2sgaWYgdHJ5aW5nIHRvIGZpdCBiZWZvcmUgdGV4dCBiZWdpbm5pbmcsIGFuZCBpZiBub3QsIGNoZWNrIGl0IGZpdHNcbiAgICAgIC8vIGJlZm9yZSBvZmZzZXQgbG9jYXRpb25cbiAgICAgIGlmIChtaW5MaW5lIDw9IHN0YXJ0IC0gbG9jYWxPZmZzZXQpIHtcbiAgICAgICAgcmV0dXJuIC1sb2NhbE9mZnNldCsrO1xuICAgICAgfVxuXG4gICAgICBiYWNrd2FyZEV4aGF1c3RlZCA9IHRydWU7XG4gICAgICByZXR1cm4gaXRlcmF0b3IoKTtcbiAgICB9XG5cbiAgICAvLyBXZSB0cmllZCB0byBmaXQgaHVuayBiZWZvcmUgdGV4dCBiZWdpbm5pbmcgYW5kIGJleW9uZCB0ZXh0IGxlbmd0aCwgdGhlblxuICAgIC8vIGh1bmsgY2FuJ3QgZml0IG9uIHRoZSB0ZXh0LiBSZXR1cm4gdW5kZWZpbmVkXG4gIH07XG59XG4iXX0= + + +/***/ }), +/* 13 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports. /*istanbul ignore end*/calcLineCount = calcLineCount; + /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = merge; + + var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; + + var /*istanbul ignore start*/_array = __webpack_require__(15) /*istanbul ignore end*/; + + /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + + /*istanbul ignore end*/function calcLineCount(hunk) { + /*istanbul ignore start*/var _calcOldNewLineCount = /*istanbul ignore end*/calcOldNewLineCount(hunk.lines), + oldLines = _calcOldNewLineCount.oldLines, + newLines = _calcOldNewLineCount.newLines; + + if (oldLines !== undefined) { + hunk.oldLines = oldLines; + } else { + delete hunk.oldLines; + } + + if (newLines !== undefined) { + hunk.newLines = newLines; + } else { + delete hunk.newLines; + } + } + + function merge(mine, theirs, base) { + mine = loadPatch(mine, base); + theirs = loadPatch(theirs, base); + + var ret = {}; + + // For index we just let it pass through as it doesn't have any necessary meaning. + // Leaving sanity checks on this to the API consumer that may know more about the + // meaning in their own context. + if (mine.index || theirs.index) { + ret.index = mine.index || theirs.index; + } + + if (mine.newFileName || theirs.newFileName) { + if (!fileNameChanged(mine)) { + // No header or no change in ours, use theirs (and ours if theirs does not exist) + ret.oldFileName = theirs.oldFileName || mine.oldFileName; + ret.newFileName = theirs.newFileName || mine.newFileName; + ret.oldHeader = theirs.oldHeader || mine.oldHeader; + ret.newHeader = theirs.newHeader || mine.newHeader; + } else if (!fileNameChanged(theirs)) { + // No header or no change in theirs, use ours + ret.oldFileName = mine.oldFileName; + ret.newFileName = mine.newFileName; + ret.oldHeader = mine.oldHeader; + ret.newHeader = mine.newHeader; + } else { + // Both changed... figure it out + ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName); + ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName); + ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader); + ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader); + } + } + + ret.hunks = []; + + var mineIndex = 0, + theirsIndex = 0, + mineOffset = 0, + theirsOffset = 0; + + while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) { + var mineCurrent = mine.hunks[mineIndex] || { oldStart: Infinity }, + theirsCurrent = theirs.hunks[theirsIndex] || { oldStart: Infinity }; + + if (hunkBefore(mineCurrent, theirsCurrent)) { + // This patch does not overlap with any of the others, yay. + ret.hunks.push(cloneHunk(mineCurrent, mineOffset)); + mineIndex++; + theirsOffset += mineCurrent.newLines - mineCurrent.oldLines; + } else if (hunkBefore(theirsCurrent, mineCurrent)) { + // This patch does not overlap with any of the others, yay. + ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset)); + theirsIndex++; + mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines; + } else { + // Overlap, merge as best we can + var mergedHunk = { + oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart), + oldLines: 0, + newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset), + newLines: 0, + lines: [] + }; + mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines); + theirsIndex++; + mineIndex++; + + ret.hunks.push(mergedHunk); + } + } + + return ret; + } + + function loadPatch(param, base) { + if (typeof param === 'string') { + if (/^@@/m.test(param) || /^Index:/m.test(param)) { + return (/*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(param)[0] + ); + } + + if (!base) { + throw new Error('Must provide a base reference or pass in a patch'); + } + return (/*istanbul ignore start*/(0, _create.structuredPatch) /*istanbul ignore end*/(undefined, undefined, base, param) + ); + } + + return param; + } + + function fileNameChanged(patch) { + return patch.newFileName && patch.newFileName !== patch.oldFileName; + } + + function selectField(index, mine, theirs) { + if (mine === theirs) { + return mine; + } else { + index.conflict = true; + return { mine: mine, theirs: theirs }; + } + } + + function hunkBefore(test, check) { + return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart; + } + + function cloneHunk(hunk, offset) { + return { + oldStart: hunk.oldStart, oldLines: hunk.oldLines, + newStart: hunk.newStart + offset, newLines: hunk.newLines, + lines: hunk.lines + }; + } + + function mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) { + // This will generally result in a conflicted hunk, but there are cases where the context + // is the only overlap where we can successfully merge the content here. + var mine = { offset: mineOffset, lines: mineLines, index: 0 }, + their = { offset: theirOffset, lines: theirLines, index: 0 }; + + // Handle any leading content + insertLeading(hunk, mine, their); + insertLeading(hunk, their, mine); + + // Now in the overlap content. Scan through and select the best changes from each. + while (mine.index < mine.lines.length && their.index < their.lines.length) { + var mineCurrent = mine.lines[mine.index], + theirCurrent = their.lines[their.index]; + + if ((mineCurrent[0] === '-' || mineCurrent[0] === '+') && (theirCurrent[0] === '-' || theirCurrent[0] === '+')) { + // Both modified ... + mutualChange(hunk, mine, their); + } else if (mineCurrent[0] === '+' && theirCurrent[0] === ' ') { + /*istanbul ignore start*/var _hunk$lines; + + /*istanbul ignore end*/ // Mine inserted + /*istanbul ignore start*/(_hunk$lines = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(mine))); + } else if (theirCurrent[0] === '+' && mineCurrent[0] === ' ') { + /*istanbul ignore start*/var _hunk$lines2; + + /*istanbul ignore end*/ // Theirs inserted + /*istanbul ignore start*/(_hunk$lines2 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(their))); + } else if (mineCurrent[0] === '-' && theirCurrent[0] === ' ') { + // Mine removed or edited + removal(hunk, mine, their); + } else if (theirCurrent[0] === '-' && mineCurrent[0] === ' ') { + // Their removed or edited + removal(hunk, their, mine, true); + } else if (mineCurrent === theirCurrent) { + // Context identity + hunk.lines.push(mineCurrent); + mine.index++; + their.index++; + } else { + // Context mismatch + conflict(hunk, collectChange(mine), collectChange(their)); + } + } + + // Now push anything that may be remaining + insertTrailing(hunk, mine); + insertTrailing(hunk, their); + + calcLineCount(hunk); + } + + function mutualChange(hunk, mine, their) { + var myChanges = collectChange(mine), + theirChanges = collectChange(their); + + if (allRemoves(myChanges) && allRemoves(theirChanges)) { + // Special case for remove changes that are supersets of one another + if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)) { + /*istanbul ignore start*/var _hunk$lines3; + + /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines3 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges)); + return; + } else if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)) { + /*istanbul ignore start*/var _hunk$lines4; + + /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines4 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines4 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges)); + return; + } + } else if ( /*istanbul ignore start*/(0, _array.arrayEqual) /*istanbul ignore end*/(myChanges, theirChanges)) { + /*istanbul ignore start*/var _hunk$lines5; + + /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines5 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines5 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges)); + return; + } + + conflict(hunk, myChanges, theirChanges); + } + + function removal(hunk, mine, their, swap) { + var myChanges = collectChange(mine), + theirChanges = collectContext(their, myChanges); + if (theirChanges.merged) { + /*istanbul ignore start*/var _hunk$lines6; + + /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines6 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines6 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges.merged)); + } else { + conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges); + } + } + + function conflict(hunk, mine, their) { + hunk.conflict = true; + hunk.lines.push({ + conflict: true, + mine: mine, + theirs: their + }); + } + + function insertLeading(hunk, insert, their) { + while (insert.offset < their.offset && insert.index < insert.lines.length) { + var line = insert.lines[insert.index++]; + hunk.lines.push(line); + insert.offset++; + } + } + function insertTrailing(hunk, insert) { + while (insert.index < insert.lines.length) { + var line = insert.lines[insert.index++]; + hunk.lines.push(line); + } + } + + function collectChange(state) { + var ret = [], + operation = state.lines[state.index][0]; + while (state.index < state.lines.length) { + var line = state.lines[state.index]; + + // Group additions that are immediately after subtractions and treat them as one "atomic" modify change. + if (operation === '-' && line[0] === '+') { + operation = '+'; + } + + if (operation === line[0]) { + ret.push(line); + state.index++; + } else { + break; + } + } + + return ret; + } + function collectContext(state, matchChanges) { + var changes = [], + merged = [], + matchIndex = 0, + contextChanges = false, + conflicted = false; + while (matchIndex < matchChanges.length && state.index < state.lines.length) { + var change = state.lines[state.index], + match = matchChanges[matchIndex]; + + // Once we've hit our add, then we are done + if (match[0] === '+') { + break; + } + + contextChanges = contextChanges || change[0] !== ' '; + + merged.push(match); + matchIndex++; + + // Consume any additions in the other block as a conflict to attempt + // to pull in the remaining context after this + if (change[0] === '+') { + conflicted = true; + + while (change[0] === '+') { + changes.push(change); + change = state.lines[++state.index]; + } + } + + if (match.substr(1) === change.substr(1)) { + changes.push(change); + state.index++; + } else { + conflicted = true; + } + } + + if ((matchChanges[matchIndex] || '')[0] === '+' && contextChanges) { + conflicted = true; + } + + if (conflicted) { + return changes; + } + + while (matchIndex < matchChanges.length) { + merged.push(matchChanges[matchIndex++]); + } + + return { + merged: merged, + changes: changes + }; + } + + function allRemoves(changes) { + return changes.reduce(function (prev, change) { + return prev && change[0] === '-'; + }, true); + } + function skipRemoveSuperset(state, removeChanges, delta) { + for (var i = 0; i < delta; i++) { + var changeContent = removeChanges[removeChanges.length - delta + i].substr(1); + if (state.lines[state.index + i] !== ' ' + changeContent) { + return false; + } + } + + state.index += delta; + return true; + } + + function calcOldNewLineCount(lines) { + var oldLines = 0; + var newLines = 0; + + lines.forEach(function (line) { + if (typeof line !== 'string') { + var myCount = calcOldNewLineCount(line.mine); + var theirCount = calcOldNewLineCount(line.theirs); + + if (oldLines !== undefined) { + if (myCount.oldLines === theirCount.oldLines) { + oldLines += myCount.oldLines; + } else { + oldLines = undefined; + } + } + + if (newLines !== undefined) { + if (myCount.newLines === theirCount.newLines) { + newLines += myCount.newLines; + } else { + newLines = undefined; + } + } + } else { + if (newLines !== undefined && (line[0] === '+' || line[0] === ' ')) { + newLines++; + } + if (oldLines !== undefined && (line[0] === '-' || line[0] === ' ')) { + oldLines++; + } + } + }); + + return { oldLines: oldLines, newLines: newLines }; + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9tZXJnZS5qcyJdLCJuYW1lcyI6WyJjYWxjTGluZUNvdW50IiwibWVyZ2UiLCJodW5rIiwiY2FsY09sZE5ld0xpbmVDb3VudCIsImxpbmVzIiwib2xkTGluZXMiLCJuZXdMaW5lcyIsInVuZGVmaW5lZCIsIm1pbmUiLCJ0aGVpcnMiLCJiYXNlIiwibG9hZFBhdGNoIiwicmV0IiwiaW5kZXgiLCJuZXdGaWxlTmFtZSIsImZpbGVOYW1lQ2hhbmdlZCIsIm9sZEZpbGVOYW1lIiwib2xkSGVhZGVyIiwibmV3SGVhZGVyIiwic2VsZWN0RmllbGQiLCJodW5rcyIsIm1pbmVJbmRleCIsInRoZWlyc0luZGV4IiwibWluZU9mZnNldCIsInRoZWlyc09mZnNldCIsImxlbmd0aCIsIm1pbmVDdXJyZW50Iiwib2xkU3RhcnQiLCJJbmZpbml0eSIsInRoZWlyc0N1cnJlbnQiLCJodW5rQmVmb3JlIiwicHVzaCIsImNsb25lSHVuayIsIm1lcmdlZEh1bmsiLCJNYXRoIiwibWluIiwibmV3U3RhcnQiLCJtZXJnZUxpbmVzIiwicGFyYW0iLCJ0ZXN0IiwiRXJyb3IiLCJwYXRjaCIsImNvbmZsaWN0IiwiY2hlY2siLCJvZmZzZXQiLCJtaW5lTGluZXMiLCJ0aGVpck9mZnNldCIsInRoZWlyTGluZXMiLCJ0aGVpciIsImluc2VydExlYWRpbmciLCJ0aGVpckN1cnJlbnQiLCJtdXR1YWxDaGFuZ2UiLCJjb2xsZWN0Q2hhbmdlIiwicmVtb3ZhbCIsImluc2VydFRyYWlsaW5nIiwibXlDaGFuZ2VzIiwidGhlaXJDaGFuZ2VzIiwiYWxsUmVtb3ZlcyIsInNraXBSZW1vdmVTdXBlcnNldCIsInN3YXAiLCJjb2xsZWN0Q29udGV4dCIsIm1lcmdlZCIsImluc2VydCIsImxpbmUiLCJzdGF0ZSIsIm9wZXJhdGlvbiIsIm1hdGNoQ2hhbmdlcyIsImNoYW5nZXMiLCJtYXRjaEluZGV4IiwiY29udGV4dENoYW5nZXMiLCJjb25mbGljdGVkIiwiY2hhbmdlIiwibWF0Y2giLCJzdWJzdHIiLCJyZWR1Y2UiLCJwcmV2IiwicmVtb3ZlQ2hhbmdlcyIsImRlbHRhIiwiaSIsImNoYW5nZUNvbnRlbnQiLCJmb3JFYWNoIiwibXlDb3VudCIsInRoZWlyQ291bnQiXSwibWFwcGluZ3MiOiI7OztnQ0FLZ0JBLGEsR0FBQUEsYTt5REFnQkFDLEssR0FBQUEsSzs7QUFyQmhCOztBQUNBOztBQUVBOzs7O3VCQUVPLFNBQVNELGFBQVQsQ0FBdUJFLElBQXZCLEVBQTZCO0FBQUEsNkVBQ0xDLG9CQUFvQkQsS0FBS0UsS0FBekIsQ0FESztBQUFBLE1BQzNCQyxRQUQyQix3QkFDM0JBLFFBRDJCO0FBQUEsTUFDakJDLFFBRGlCLHdCQUNqQkEsUUFEaUI7O0FBR2xDLE1BQUlELGFBQWFFLFNBQWpCLEVBQTRCO0FBQzFCTCxTQUFLRyxRQUFMLEdBQWdCQSxRQUFoQjtBQUNELEdBRkQsTUFFTztBQUNMLFdBQU9ILEtBQUtHLFFBQVo7QUFDRDs7QUFFRCxNQUFJQyxhQUFhQyxTQUFqQixFQUE0QjtBQUMxQkwsU0FBS0ksUUFBTCxHQUFnQkEsUUFBaEI7QUFDRCxHQUZELE1BRU87QUFDTCxXQUFPSixLQUFLSSxRQUFaO0FBQ0Q7QUFDRjs7QUFFTSxTQUFTTCxLQUFULENBQWVPLElBQWYsRUFBcUJDLE1BQXJCLEVBQTZCQyxJQUE3QixFQUFtQztBQUN4Q0YsU0FBT0csVUFBVUgsSUFBVixFQUFnQkUsSUFBaEIsQ0FBUDtBQUNBRCxXQUFTRSxVQUFVRixNQUFWLEVBQWtCQyxJQUFsQixDQUFUOztBQUVBLE1BQUlFLE1BQU0sRUFBVjs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxNQUFJSixLQUFLSyxLQUFMLElBQWNKLE9BQU9JLEtBQXpCLEVBQWdDO0FBQzlCRCxRQUFJQyxLQUFKLEdBQVlMLEtBQUtLLEtBQUwsSUFBY0osT0FBT0ksS0FBakM7QUFDRDs7QUFFRCxNQUFJTCxLQUFLTSxXQUFMLElBQW9CTCxPQUFPSyxXQUEvQixFQUE0QztBQUMxQyxRQUFJLENBQUNDLGdCQUFnQlAsSUFBaEIsQ0FBTCxFQUE0QjtBQUMxQjtBQUNBSSxVQUFJSSxXQUFKLEdBQWtCUCxPQUFPTyxXQUFQLElBQXNCUixLQUFLUSxXQUE3QztBQUNBSixVQUFJRSxXQUFKLEdBQWtCTCxPQUFPSyxXQUFQLElBQXNCTixLQUFLTSxXQUE3QztBQUNBRixVQUFJSyxTQUFKLEdBQWdCUixPQUFPUSxTQUFQLElBQW9CVCxLQUFLUyxTQUF6QztBQUNBTCxVQUFJTSxTQUFKLEdBQWdCVCxPQUFPUyxTQUFQLElBQW9CVixLQUFLVSxTQUF6QztBQUNELEtBTkQsTUFNTyxJQUFJLENBQUNILGdCQUFnQk4sTUFBaEIsQ0FBTCxFQUE4QjtBQUNuQztBQUNBRyxVQUFJSSxXQUFKLEdBQWtCUixLQUFLUSxXQUF2QjtBQUNBSixVQUFJRSxXQUFKLEdBQWtCTixLQUFLTSxXQUF2QjtBQUNBRixVQUFJSyxTQUFKLEdBQWdCVCxLQUFLUyxTQUFyQjtBQUNBTCxVQUFJTSxTQUFKLEdBQWdCVixLQUFLVSxTQUFyQjtBQUNELEtBTk0sTUFNQTtBQUNMO0FBQ0FOLFVBQUlJLFdBQUosR0FBa0JHLFlBQVlQLEdBQVosRUFBaUJKLEtBQUtRLFdBQXRCLEVBQW1DUCxPQUFPTyxXQUExQyxDQUFsQjtBQUNBSixVQUFJRSxXQUFKLEdBQWtCSyxZQUFZUCxHQUFaLEVBQWlCSixLQUFLTSxXQUF0QixFQUFtQ0wsT0FBT0ssV0FBMUMsQ0FBbEI7QUFDQUYsVUFBSUssU0FBSixHQUFnQkUsWUFBWVAsR0FBWixFQUFpQkosS0FBS1MsU0FBdEIsRUFBaUNSLE9BQU9RLFNBQXhDLENBQWhCO0FBQ0FMLFVBQUlNLFNBQUosR0FBZ0JDLFlBQVlQLEdBQVosRUFBaUJKLEtBQUtVLFNBQXRCLEVBQWlDVCxPQUFPUyxTQUF4QyxDQUFoQjtBQUNEO0FBQ0Y7O0FBRUROLE1BQUlRLEtBQUosR0FBWSxFQUFaOztBQUVBLE1BQUlDLFlBQVksQ0FBaEI7QUFBQSxNQUNJQyxjQUFjLENBRGxCO0FBQUEsTUFFSUMsYUFBYSxDQUZqQjtBQUFBLE1BR0lDLGVBQWUsQ0FIbkI7O0FBS0EsU0FBT0gsWUFBWWIsS0FBS1ksS0FBTCxDQUFXSyxNQUF2QixJQUFpQ0gsY0FBY2IsT0FBT1csS0FBUCxDQUFhSyxNQUFuRSxFQUEyRTtBQUN6RSxRQUFJQyxjQUFjbEIsS0FBS1ksS0FBTCxDQUFXQyxTQUFYLEtBQXlCLEVBQUNNLFVBQVVDLFFBQVgsRUFBM0M7QUFBQSxRQUNJQyxnQkFBZ0JwQixPQUFPVyxLQUFQLENBQWFFLFdBQWIsS0FBNkIsRUFBQ0ssVUFBVUMsUUFBWCxFQURqRDs7QUFHQSxRQUFJRSxXQUFXSixXQUFYLEVBQXdCRyxhQUF4QixDQUFKLEVBQTRDO0FBQzFDO0FBQ0FqQixVQUFJUSxLQUFKLENBQVVXLElBQVYsQ0FBZUMsVUFBVU4sV0FBVixFQUF1QkgsVUFBdkIsQ0FBZjtBQUNBRjtBQUNBRyxzQkFBZ0JFLFlBQVlwQixRQUFaLEdBQXVCb0IsWUFBWXJCLFFBQW5EO0FBQ0QsS0FMRCxNQUtPLElBQUl5QixXQUFXRCxhQUFYLEVBQTBCSCxXQUExQixDQUFKLEVBQTRDO0FBQ2pEO0FBQ0FkLFVBQUlRLEtBQUosQ0FBVVcsSUFBVixDQUFlQyxVQUFVSCxhQUFWLEVBQXlCTCxZQUF6QixDQUFmO0FBQ0FGO0FBQ0FDLG9CQUFjTSxjQUFjdkIsUUFBZCxHQUF5QnVCLGNBQWN4QixRQUFyRDtBQUNELEtBTE0sTUFLQTtBQUNMO0FBQ0EsVUFBSTRCLGFBQWE7QUFDZk4sa0JBQVVPLEtBQUtDLEdBQUwsQ0FBU1QsWUFBWUMsUUFBckIsRUFBK0JFLGNBQWNGLFFBQTdDLENBREs7QUFFZnRCLGtCQUFVLENBRks7QUFHZitCLGtCQUFVRixLQUFLQyxHQUFMLENBQVNULFlBQVlVLFFBQVosR0FBdUJiLFVBQWhDLEVBQTRDTSxjQUFjRixRQUFkLEdBQXlCSCxZQUFyRSxDQUhLO0FBSWZsQixrQkFBVSxDQUpLO0FBS2ZGLGVBQU87QUFMUSxPQUFqQjtBQU9BaUMsaUJBQVdKLFVBQVgsRUFBdUJQLFlBQVlDLFFBQW5DLEVBQTZDRCxZQUFZdEIsS0FBekQsRUFBZ0V5QixjQUFjRixRQUE5RSxFQUF3RkUsY0FBY3pCLEtBQXRHO0FBQ0FrQjtBQUNBRDs7QUFFQVQsVUFBSVEsS0FBSixDQUFVVyxJQUFWLENBQWVFLFVBQWY7QUFDRDtBQUNGOztBQUVELFNBQU9yQixHQUFQO0FBQ0Q7O0FBRUQsU0FBU0QsU0FBVCxDQUFtQjJCLEtBQW5CLEVBQTBCNUIsSUFBMUIsRUFBZ0M7QUFDOUIsTUFBSSxPQUFPNEIsS0FBUCxLQUFpQixRQUFyQixFQUErQjtBQUM3QixRQUFJLE9BQU9DLElBQVAsQ0FBWUQsS0FBWixLQUF1QixXQUFXQyxJQUFYLENBQWdCRCxLQUFoQixDQUEzQixFQUFvRDtBQUNsRCxhQUFPLHlFQUFXQSxLQUFYLEVBQWtCLENBQWxCO0FBQVA7QUFDRDs7QUFFRCxRQUFJLENBQUM1QixJQUFMLEVBQVc7QUFDVCxZQUFNLElBQUk4QixLQUFKLENBQVUsa0RBQVYsQ0FBTjtBQUNEO0FBQ0QsV0FBTywrRUFBZ0JqQyxTQUFoQixFQUEyQkEsU0FBM0IsRUFBc0NHLElBQXRDLEVBQTRDNEIsS0FBNUM7QUFBUDtBQUNEOztBQUVELFNBQU9BLEtBQVA7QUFDRDs7QUFFRCxTQUFTdkIsZUFBVCxDQUF5QjBCLEtBQXpCLEVBQWdDO0FBQzlCLFNBQU9BLE1BQU0zQixXQUFOLElBQXFCMkIsTUFBTTNCLFdBQU4sS0FBc0IyQixNQUFNekIsV0FBeEQ7QUFDRDs7QUFFRCxTQUFTRyxXQUFULENBQXFCTixLQUFyQixFQUE0QkwsSUFBNUIsRUFBa0NDLE1BQWxDLEVBQTBDO0FBQ3hDLE1BQUlELFNBQVNDLE1BQWIsRUFBcUI7QUFDbkIsV0FBT0QsSUFBUDtBQUNELEdBRkQsTUFFTztBQUNMSyxVQUFNNkIsUUFBTixHQUFpQixJQUFqQjtBQUNBLFdBQU8sRUFBQ2xDLFVBQUQsRUFBT0MsY0FBUCxFQUFQO0FBQ0Q7QUFDRjs7QUFFRCxTQUFTcUIsVUFBVCxDQUFvQlMsSUFBcEIsRUFBMEJJLEtBQTFCLEVBQWlDO0FBQy9CLFNBQU9KLEtBQUtaLFFBQUwsR0FBZ0JnQixNQUFNaEIsUUFBdEIsSUFDRFksS0FBS1osUUFBTCxHQUFnQlksS0FBS2xDLFFBQXRCLEdBQWtDc0MsTUFBTWhCLFFBRDdDO0FBRUQ7O0FBRUQsU0FBU0ssU0FBVCxDQUFtQjlCLElBQW5CLEVBQXlCMEMsTUFBekIsRUFBaUM7QUFDL0IsU0FBTztBQUNMakIsY0FBVXpCLEtBQUt5QixRQURWLEVBQ29CdEIsVUFBVUgsS0FBS0csUUFEbkM7QUFFTCtCLGNBQVVsQyxLQUFLa0MsUUFBTCxHQUFnQlEsTUFGckIsRUFFNkJ0QyxVQUFVSixLQUFLSSxRQUY1QztBQUdMRixXQUFPRixLQUFLRTtBQUhQLEdBQVA7QUFLRDs7QUFFRCxTQUFTaUMsVUFBVCxDQUFvQm5DLElBQXBCLEVBQTBCcUIsVUFBMUIsRUFBc0NzQixTQUF0QyxFQUFpREMsV0FBakQsRUFBOERDLFVBQTlELEVBQTBFO0FBQ3hFO0FBQ0E7QUFDQSxNQUFJdkMsT0FBTyxFQUFDb0MsUUFBUXJCLFVBQVQsRUFBcUJuQixPQUFPeUMsU0FBNUIsRUFBdUNoQyxPQUFPLENBQTlDLEVBQVg7QUFBQSxNQUNJbUMsUUFBUSxFQUFDSixRQUFRRSxXQUFULEVBQXNCMUMsT0FBTzJDLFVBQTdCLEVBQXlDbEMsT0FBTyxDQUFoRCxFQURaOztBQUdBO0FBQ0FvQyxnQkFBYy9DLElBQWQsRUFBb0JNLElBQXBCLEVBQTBCd0MsS0FBMUI7QUFDQUMsZ0JBQWMvQyxJQUFkLEVBQW9COEMsS0FBcEIsRUFBMkJ4QyxJQUEzQjs7QUFFQTtBQUNBLFNBQU9BLEtBQUtLLEtBQUwsR0FBYUwsS0FBS0osS0FBTCxDQUFXcUIsTUFBeEIsSUFBa0N1QixNQUFNbkMsS0FBTixHQUFjbUMsTUFBTTVDLEtBQU4sQ0FBWXFCLE1BQW5FLEVBQTJFO0FBQ3pFLFFBQUlDLGNBQWNsQixLQUFLSixLQUFMLENBQVdJLEtBQUtLLEtBQWhCLENBQWxCO0FBQUEsUUFDSXFDLGVBQWVGLE1BQU01QyxLQUFOLENBQVk0QyxNQUFNbkMsS0FBbEIsQ0FEbkI7O0FBR0EsUUFBSSxDQUFDYSxZQUFZLENBQVosTUFBbUIsR0FBbkIsSUFBMEJBLFlBQVksQ0FBWixNQUFtQixHQUE5QyxNQUNJd0IsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCQSxhQUFhLENBQWIsTUFBb0IsR0FEbkQsQ0FBSixFQUM2RDtBQUMzRDtBQUNBQyxtQkFBYWpELElBQWIsRUFBbUJNLElBQW5CLEVBQXlCd0MsS0FBekI7QUFDRCxLQUpELE1BSU8sSUFBSXRCLFlBQVksQ0FBWixNQUFtQixHQUFuQixJQUEwQndCLGFBQWEsQ0FBYixNQUFvQixHQUFsRCxFQUF1RDtBQUFBOztBQUFBLDhCQUM1RDtBQUNBLDBFQUFLOUMsS0FBTCxFQUFXMkIsSUFBWCw0TEFBb0JxQixjQUFjNUMsSUFBZCxDQUFwQjtBQUNELEtBSE0sTUFHQSxJQUFJMEMsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCeEIsWUFBWSxDQUFaLE1BQW1CLEdBQWxELEVBQXVEO0FBQUE7O0FBQUEsOEJBQzVEO0FBQ0EsMkVBQUt0QixLQUFMLEVBQVcyQixJQUFYLDZMQUFvQnFCLGNBQWNKLEtBQWQsQ0FBcEI7QUFDRCxLQUhNLE1BR0EsSUFBSXRCLFlBQVksQ0FBWixNQUFtQixHQUFuQixJQUEwQndCLGFBQWEsQ0FBYixNQUFvQixHQUFsRCxFQUF1RDtBQUM1RDtBQUNBRyxjQUFRbkQsSUFBUixFQUFjTSxJQUFkLEVBQW9Cd0MsS0FBcEI7QUFDRCxLQUhNLE1BR0EsSUFBSUUsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCeEIsWUFBWSxDQUFaLE1BQW1CLEdBQWxELEVBQXVEO0FBQzVEO0FBQ0EyQixjQUFRbkQsSUFBUixFQUFjOEMsS0FBZCxFQUFxQnhDLElBQXJCLEVBQTJCLElBQTNCO0FBQ0QsS0FITSxNQUdBLElBQUlrQixnQkFBZ0J3QixZQUFwQixFQUFrQztBQUN2QztBQUNBaEQsV0FBS0UsS0FBTCxDQUFXMkIsSUFBWCxDQUFnQkwsV0FBaEI7QUFDQWxCLFdBQUtLLEtBQUw7QUFDQW1DLFlBQU1uQyxLQUFOO0FBQ0QsS0FMTSxNQUtBO0FBQ0w7QUFDQTZCLGVBQVN4QyxJQUFULEVBQWVrRCxjQUFjNUMsSUFBZCxDQUFmLEVBQW9DNEMsY0FBY0osS0FBZCxDQUFwQztBQUNEO0FBQ0Y7O0FBRUQ7QUFDQU0saUJBQWVwRCxJQUFmLEVBQXFCTSxJQUFyQjtBQUNBOEMsaUJBQWVwRCxJQUFmLEVBQXFCOEMsS0FBckI7O0FBRUFoRCxnQkFBY0UsSUFBZDtBQUNEOztBQUVELFNBQVNpRCxZQUFULENBQXNCakQsSUFBdEIsRUFBNEJNLElBQTVCLEVBQWtDd0MsS0FBbEMsRUFBeUM7QUFDdkMsTUFBSU8sWUFBWUgsY0FBYzVDLElBQWQsQ0FBaEI7QUFBQSxNQUNJZ0QsZUFBZUosY0FBY0osS0FBZCxDQURuQjs7QUFHQSxNQUFJUyxXQUFXRixTQUFYLEtBQXlCRSxXQUFXRCxZQUFYLENBQTdCLEVBQXVEO0FBQ3JEO0FBQ0EsUUFBSSw4RUFBZ0JELFNBQWhCLEVBQTJCQyxZQUEzQixLQUNHRSxtQkFBbUJWLEtBQW5CLEVBQTBCTyxTQUExQixFQUFxQ0EsVUFBVTlCLE1BQVYsR0FBbUIrQixhQUFhL0IsTUFBckUsQ0FEUCxFQUNxRjtBQUFBOztBQUFBLDZCQUNuRixzRUFBS3JCLEtBQUwsRUFBVzJCLElBQVgsNkxBQW9Cd0IsU0FBcEI7QUFDQTtBQUNELEtBSkQsTUFJTyxJQUFJLDhFQUFnQkMsWUFBaEIsRUFBOEJELFNBQTlCLEtBQ0pHLG1CQUFtQmxELElBQW5CLEVBQXlCZ0QsWUFBekIsRUFBdUNBLGFBQWEvQixNQUFiLEdBQXNCOEIsVUFBVTlCLE1BQXZFLENBREEsRUFDZ0Y7QUFBQTs7QUFBQSw2QkFDckYsc0VBQUtyQixLQUFMLEVBQVcyQixJQUFYLDZMQUFvQnlCLFlBQXBCO0FBQ0E7QUFDRDtBQUNGLEdBWEQsTUFXTyxJQUFJLHlFQUFXRCxTQUFYLEVBQXNCQyxZQUF0QixDQUFKLEVBQXlDO0FBQUE7O0FBQUEsMkJBQzlDLHNFQUFLcEQsS0FBTCxFQUFXMkIsSUFBWCw2TEFBb0J3QixTQUFwQjtBQUNBO0FBQ0Q7O0FBRURiLFdBQVN4QyxJQUFULEVBQWVxRCxTQUFmLEVBQTBCQyxZQUExQjtBQUNEOztBQUVELFNBQVNILE9BQVQsQ0FBaUJuRCxJQUFqQixFQUF1Qk0sSUFBdkIsRUFBNkJ3QyxLQUE3QixFQUFvQ1csSUFBcEMsRUFBMEM7QUFDeEMsTUFBSUosWUFBWUgsY0FBYzVDLElBQWQsQ0FBaEI7QUFBQSxNQUNJZ0QsZUFBZUksZUFBZVosS0FBZixFQUFzQk8sU0FBdEIsQ0FEbkI7QUFFQSxNQUFJQyxhQUFhSyxNQUFqQixFQUF5QjtBQUFBOztBQUFBLDJCQUN2QixzRUFBS3pELEtBQUwsRUFBVzJCLElBQVgsNkxBQW9CeUIsYUFBYUssTUFBakM7QUFDRCxHQUZELE1BRU87QUFDTG5CLGFBQVN4QyxJQUFULEVBQWV5RCxPQUFPSCxZQUFQLEdBQXNCRCxTQUFyQyxFQUFnREksT0FBT0osU0FBUCxHQUFtQkMsWUFBbkU7QUFDRDtBQUNGOztBQUVELFNBQVNkLFFBQVQsQ0FBa0J4QyxJQUFsQixFQUF3Qk0sSUFBeEIsRUFBOEJ3QyxLQUE5QixFQUFxQztBQUNuQzlDLE9BQUt3QyxRQUFMLEdBQWdCLElBQWhCO0FBQ0F4QyxPQUFLRSxLQUFMLENBQVcyQixJQUFYLENBQWdCO0FBQ2RXLGNBQVUsSUFESTtBQUVkbEMsVUFBTUEsSUFGUTtBQUdkQyxZQUFRdUM7QUFITSxHQUFoQjtBQUtEOztBQUVELFNBQVNDLGFBQVQsQ0FBdUIvQyxJQUF2QixFQUE2QjRELE1BQTdCLEVBQXFDZCxLQUFyQyxFQUE0QztBQUMxQyxTQUFPYyxPQUFPbEIsTUFBUCxHQUFnQkksTUFBTUosTUFBdEIsSUFBZ0NrQixPQUFPakQsS0FBUCxHQUFlaUQsT0FBTzFELEtBQVAsQ0FBYXFCLE1BQW5FLEVBQTJFO0FBQ3pFLFFBQUlzQyxPQUFPRCxPQUFPMUQsS0FBUCxDQUFhMEQsT0FBT2pELEtBQVAsRUFBYixDQUFYO0FBQ0FYLFNBQUtFLEtBQUwsQ0FBVzJCLElBQVgsQ0FBZ0JnQyxJQUFoQjtBQUNBRCxXQUFPbEIsTUFBUDtBQUNEO0FBQ0Y7QUFDRCxTQUFTVSxjQUFULENBQXdCcEQsSUFBeEIsRUFBOEI0RCxNQUE5QixFQUFzQztBQUNwQyxTQUFPQSxPQUFPakQsS0FBUCxHQUFlaUQsT0FBTzFELEtBQVAsQ0FBYXFCLE1BQW5DLEVBQTJDO0FBQ3pDLFFBQUlzQyxPQUFPRCxPQUFPMUQsS0FBUCxDQUFhMEQsT0FBT2pELEtBQVAsRUFBYixDQUFYO0FBQ0FYLFNBQUtFLEtBQUwsQ0FBVzJCLElBQVgsQ0FBZ0JnQyxJQUFoQjtBQUNEO0FBQ0Y7O0FBRUQsU0FBU1gsYUFBVCxDQUF1QlksS0FBdkIsRUFBOEI7QUFDNUIsTUFBSXBELE1BQU0sRUFBVjtBQUFBLE1BQ0lxRCxZQUFZRCxNQUFNNUQsS0FBTixDQUFZNEQsTUFBTW5ELEtBQWxCLEVBQXlCLENBQXpCLENBRGhCO0FBRUEsU0FBT21ELE1BQU1uRCxLQUFOLEdBQWNtRCxNQUFNNUQsS0FBTixDQUFZcUIsTUFBakMsRUFBeUM7QUFDdkMsUUFBSXNDLE9BQU9DLE1BQU01RCxLQUFOLENBQVk0RCxNQUFNbkQsS0FBbEIsQ0FBWDs7QUFFQTtBQUNBLFFBQUlvRCxjQUFjLEdBQWQsSUFBcUJGLEtBQUssQ0FBTCxNQUFZLEdBQXJDLEVBQTBDO0FBQ3hDRSxrQkFBWSxHQUFaO0FBQ0Q7O0FBRUQsUUFBSUEsY0FBY0YsS0FBSyxDQUFMLENBQWxCLEVBQTJCO0FBQ3pCbkQsVUFBSW1CLElBQUosQ0FBU2dDLElBQVQ7QUFDQUMsWUFBTW5ELEtBQU47QUFDRCxLQUhELE1BR087QUFDTDtBQUNEO0FBQ0Y7O0FBRUQsU0FBT0QsR0FBUDtBQUNEO0FBQ0QsU0FBU2dELGNBQVQsQ0FBd0JJLEtBQXhCLEVBQStCRSxZQUEvQixFQUE2QztBQUMzQyxNQUFJQyxVQUFVLEVBQWQ7QUFBQSxNQUNJTixTQUFTLEVBRGI7QUFBQSxNQUVJTyxhQUFhLENBRmpCO0FBQUEsTUFHSUMsaUJBQWlCLEtBSHJCO0FBQUEsTUFJSUMsYUFBYSxLQUpqQjtBQUtBLFNBQU9GLGFBQWFGLGFBQWF6QyxNQUExQixJQUNFdUMsTUFBTW5ELEtBQU4sR0FBY21ELE1BQU01RCxLQUFOLENBQVlxQixNQURuQyxFQUMyQztBQUN6QyxRQUFJOEMsU0FBU1AsTUFBTTVELEtBQU4sQ0FBWTRELE1BQU1uRCxLQUFsQixDQUFiO0FBQUEsUUFDSTJELFFBQVFOLGFBQWFFLFVBQWIsQ0FEWjs7QUFHQTtBQUNBLFFBQUlJLE1BQU0sQ0FBTixNQUFhLEdBQWpCLEVBQXNCO0FBQ3BCO0FBQ0Q7O0FBRURILHFCQUFpQkEsa0JBQWtCRSxPQUFPLENBQVAsTUFBYyxHQUFqRDs7QUFFQVYsV0FBTzlCLElBQVAsQ0FBWXlDLEtBQVo7QUFDQUo7O0FBRUE7QUFDQTtBQUNBLFFBQUlHLE9BQU8sQ0FBUCxNQUFjLEdBQWxCLEVBQXVCO0FBQ3JCRCxtQkFBYSxJQUFiOztBQUVBLGFBQU9DLE9BQU8sQ0FBUCxNQUFjLEdBQXJCLEVBQTBCO0FBQ3hCSixnQkFBUXBDLElBQVIsQ0FBYXdDLE1BQWI7QUFDQUEsaUJBQVNQLE1BQU01RCxLQUFOLENBQVksRUFBRTRELE1BQU1uRCxLQUFwQixDQUFUO0FBQ0Q7QUFDRjs7QUFFRCxRQUFJMkQsTUFBTUMsTUFBTixDQUFhLENBQWIsTUFBb0JGLE9BQU9FLE1BQVAsQ0FBYyxDQUFkLENBQXhCLEVBQTBDO0FBQ3hDTixjQUFRcEMsSUFBUixDQUFhd0MsTUFBYjtBQUNBUCxZQUFNbkQsS0FBTjtBQUNELEtBSEQsTUFHTztBQUNMeUQsbUJBQWEsSUFBYjtBQUNEO0FBQ0Y7O0FBRUQsTUFBSSxDQUFDSixhQUFhRSxVQUFiLEtBQTRCLEVBQTdCLEVBQWlDLENBQWpDLE1BQXdDLEdBQXhDLElBQ0dDLGNBRFAsRUFDdUI7QUFDckJDLGlCQUFhLElBQWI7QUFDRDs7QUFFRCxNQUFJQSxVQUFKLEVBQWdCO0FBQ2QsV0FBT0gsT0FBUDtBQUNEOztBQUVELFNBQU9DLGFBQWFGLGFBQWF6QyxNQUFqQyxFQUF5QztBQUN2Q29DLFdBQU85QixJQUFQLENBQVltQyxhQUFhRSxZQUFiLENBQVo7QUFDRDs7QUFFRCxTQUFPO0FBQ0xQLGtCQURLO0FBRUxNO0FBRkssR0FBUDtBQUlEOztBQUVELFNBQVNWLFVBQVQsQ0FBb0JVLE9BQXBCLEVBQTZCO0FBQzNCLFNBQU9BLFFBQVFPLE1BQVIsQ0FBZSxVQUFTQyxJQUFULEVBQWVKLE1BQWYsRUFBdUI7QUFDM0MsV0FBT0ksUUFBUUosT0FBTyxDQUFQLE1BQWMsR0FBN0I7QUFDRCxHQUZNLEVBRUosSUFGSSxDQUFQO0FBR0Q7QUFDRCxTQUFTYixrQkFBVCxDQUE0Qk0sS0FBNUIsRUFBbUNZLGFBQW5DLEVBQWtEQyxLQUFsRCxFQUF5RDtBQUN2RCxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsS0FBcEIsRUFBMkJDLEdBQTNCLEVBQWdDO0FBQzlCLFFBQUlDLGdCQUFnQkgsY0FBY0EsY0FBY25ELE1BQWQsR0FBdUJvRCxLQUF2QixHQUErQkMsQ0FBN0MsRUFBZ0RMLE1BQWhELENBQXVELENBQXZELENBQXBCO0FBQ0EsUUFBSVQsTUFBTTVELEtBQU4sQ0FBWTRELE1BQU1uRCxLQUFOLEdBQWNpRSxDQUExQixNQUFpQyxNQUFNQyxhQUEzQyxFQUEwRDtBQUN4RCxhQUFPLEtBQVA7QUFDRDtBQUNGOztBQUVEZixRQUFNbkQsS0FBTixJQUFlZ0UsS0FBZjtBQUNBLFNBQU8sSUFBUDtBQUNEOztBQUVELFNBQVMxRSxtQkFBVCxDQUE2QkMsS0FBN0IsRUFBb0M7QUFDbEMsTUFBSUMsV0FBVyxDQUFmO0FBQ0EsTUFBSUMsV0FBVyxDQUFmOztBQUVBRixRQUFNNEUsT0FBTixDQUFjLFVBQVNqQixJQUFULEVBQWU7QUFDM0IsUUFBSSxPQUFPQSxJQUFQLEtBQWdCLFFBQXBCLEVBQThCO0FBQzVCLFVBQUlrQixVQUFVOUUsb0JBQW9CNEQsS0FBS3ZELElBQXpCLENBQWQ7QUFDQSxVQUFJMEUsYUFBYS9FLG9CQUFvQjRELEtBQUt0RCxNQUF6QixDQUFqQjs7QUFFQSxVQUFJSixhQUFhRSxTQUFqQixFQUE0QjtBQUMxQixZQUFJMEUsUUFBUTVFLFFBQVIsS0FBcUI2RSxXQUFXN0UsUUFBcEMsRUFBOEM7QUFDNUNBLHNCQUFZNEUsUUFBUTVFLFFBQXBCO0FBQ0QsU0FGRCxNQUVPO0FBQ0xBLHFCQUFXRSxTQUFYO0FBQ0Q7QUFDRjs7QUFFRCxVQUFJRCxhQUFhQyxTQUFqQixFQUE0QjtBQUMxQixZQUFJMEUsUUFBUTNFLFFBQVIsS0FBcUI0RSxXQUFXNUUsUUFBcEMsRUFBOEM7QUFDNUNBLHNCQUFZMkUsUUFBUTNFLFFBQXBCO0FBQ0QsU0FGRCxNQUVPO0FBQ0xBLHFCQUFXQyxTQUFYO0FBQ0Q7QUFDRjtBQUNGLEtBbkJELE1BbUJPO0FBQ0wsVUFBSUQsYUFBYUMsU0FBYixLQUEyQndELEtBQUssQ0FBTCxNQUFZLEdBQVosSUFBbUJBLEtBQUssQ0FBTCxNQUFZLEdBQTFELENBQUosRUFBb0U7QUFDbEV6RDtBQUNEO0FBQ0QsVUFBSUQsYUFBYUUsU0FBYixLQUEyQndELEtBQUssQ0FBTCxNQUFZLEdBQVosSUFBbUJBLEtBQUssQ0FBTCxNQUFZLEdBQTFELENBQUosRUFBb0U7QUFDbEUxRDtBQUNEO0FBQ0Y7QUFDRixHQTVCRDs7QUE4QkEsU0FBTyxFQUFDQSxrQkFBRCxFQUFXQyxrQkFBWCxFQUFQO0FBQ0QiLCJmaWxlIjoibWVyZ2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge3N0cnVjdHVyZWRQYXRjaH0gZnJvbSAnLi9jcmVhdGUnO1xuaW1wb3J0IHtwYXJzZVBhdGNofSBmcm9tICcuL3BhcnNlJztcblxuaW1wb3J0IHthcnJheUVxdWFsLCBhcnJheVN0YXJ0c1dpdGh9IGZyb20gJy4uL3V0aWwvYXJyYXknO1xuXG5leHBvcnQgZnVuY3Rpb24gY2FsY0xpbmVDb3VudChodW5rKSB7XG4gIGNvbnN0IHtvbGRMaW5lcywgbmV3TGluZXN9ID0gY2FsY09sZE5ld0xpbmVDb3VudChodW5rLmxpbmVzKTtcblxuICBpZiAob2xkTGluZXMgIT09IHVuZGVmaW5lZCkge1xuICAgIGh1bmsub2xkTGluZXMgPSBvbGRMaW5lcztcbiAgfSBlbHNlIHtcbiAgICBkZWxldGUgaHVuay5vbGRMaW5lcztcbiAgfVxuXG4gIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgaHVuay5uZXdMaW5lcyA9IG5ld0xpbmVzO1xuICB9IGVsc2Uge1xuICAgIGRlbGV0ZSBodW5rLm5ld0xpbmVzO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtZXJnZShtaW5lLCB0aGVpcnMsIGJhc2UpIHtcbiAgbWluZSA9IGxvYWRQYXRjaChtaW5lLCBiYXNlKTtcbiAgdGhlaXJzID0gbG9hZFBhdGNoKHRoZWlycywgYmFzZSk7XG5cbiAgbGV0IHJldCA9IHt9O1xuXG4gIC8vIEZvciBpbmRleCB3ZSBqdXN0IGxldCBpdCBwYXNzIHRocm91Z2ggYXMgaXQgZG9lc24ndCBoYXZlIGFueSBuZWNlc3NhcnkgbWVhbmluZy5cbiAgLy8gTGVhdmluZyBzYW5pdHkgY2hlY2tzIG9uIHRoaXMgdG8gdGhlIEFQSSBjb25zdW1lciB0aGF0IG1heSBrbm93IG1vcmUgYWJvdXQgdGhlXG4gIC8vIG1lYW5pbmcgaW4gdGhlaXIgb3duIGNvbnRleHQuXG4gIGlmIChtaW5lLmluZGV4IHx8IHRoZWlycy5pbmRleCkge1xuICAgIHJldC5pbmRleCA9IG1pbmUuaW5kZXggfHwgdGhlaXJzLmluZGV4O1xuICB9XG5cbiAgaWYgKG1pbmUubmV3RmlsZU5hbWUgfHwgdGhlaXJzLm5ld0ZpbGVOYW1lKSB7XG4gICAgaWYgKCFmaWxlTmFtZUNoYW5nZWQobWluZSkpIHtcbiAgICAgIC8vIE5vIGhlYWRlciBvciBubyBjaGFuZ2UgaW4gb3VycywgdXNlIHRoZWlycyAoYW5kIG91cnMgaWYgdGhlaXJzIGRvZXMgbm90IGV4aXN0KVxuICAgICAgcmV0Lm9sZEZpbGVOYW1lID0gdGhlaXJzLm9sZEZpbGVOYW1lIHx8IG1pbmUub2xkRmlsZU5hbWU7XG4gICAgICByZXQubmV3RmlsZU5hbWUgPSB0aGVpcnMubmV3RmlsZU5hbWUgfHwgbWluZS5uZXdGaWxlTmFtZTtcbiAgICAgIHJldC5vbGRIZWFkZXIgPSB0aGVpcnMub2xkSGVhZGVyIHx8IG1pbmUub2xkSGVhZGVyO1xuICAgICAgcmV0Lm5ld0hlYWRlciA9IHRoZWlycy5uZXdIZWFkZXIgfHwgbWluZS5uZXdIZWFkZXI7XG4gICAgfSBlbHNlIGlmICghZmlsZU5hbWVDaGFuZ2VkKHRoZWlycykpIHtcbiAgICAgIC8vIE5vIGhlYWRlciBvciBubyBjaGFuZ2UgaW4gdGhlaXJzLCB1c2Ugb3Vyc1xuICAgICAgcmV0Lm9sZEZpbGVOYW1lID0gbWluZS5vbGRGaWxlTmFtZTtcbiAgICAgIHJldC5uZXdGaWxlTmFtZSA9IG1pbmUubmV3RmlsZU5hbWU7XG4gICAgICByZXQub2xkSGVhZGVyID0gbWluZS5vbGRIZWFkZXI7XG4gICAgICByZXQubmV3SGVhZGVyID0gbWluZS5uZXdIZWFkZXI7XG4gICAgfSBlbHNlIHtcbiAgICAgIC8vIEJvdGggY2hhbmdlZC4uLiBmaWd1cmUgaXQgb3V0XG4gICAgICByZXQub2xkRmlsZU5hbWUgPSBzZWxlY3RGaWVsZChyZXQsIG1pbmUub2xkRmlsZU5hbWUsIHRoZWlycy5vbGRGaWxlTmFtZSk7XG4gICAgICByZXQubmV3RmlsZU5hbWUgPSBzZWxlY3RGaWVsZChyZXQsIG1pbmUubmV3RmlsZU5hbWUsIHRoZWlycy5uZXdGaWxlTmFtZSk7XG4gICAgICByZXQub2xkSGVhZGVyID0gc2VsZWN0RmllbGQocmV0LCBtaW5lLm9sZEhlYWRlciwgdGhlaXJzLm9sZEhlYWRlcik7XG4gICAgICByZXQubmV3SGVhZGVyID0gc2VsZWN0RmllbGQocmV0LCBtaW5lLm5ld0hlYWRlciwgdGhlaXJzLm5ld0hlYWRlcik7XG4gICAgfVxuICB9XG5cbiAgcmV0Lmh1bmtzID0gW107XG5cbiAgbGV0IG1pbmVJbmRleCA9IDAsXG4gICAgICB0aGVpcnNJbmRleCA9IDAsXG4gICAgICBtaW5lT2Zmc2V0ID0gMCxcbiAgICAgIHRoZWlyc09mZnNldCA9IDA7XG5cbiAgd2hpbGUgKG1pbmVJbmRleCA8IG1pbmUuaHVua3MubGVuZ3RoIHx8IHRoZWlyc0luZGV4IDwgdGhlaXJzLmh1bmtzLmxlbmd0aCkge1xuICAgIGxldCBtaW5lQ3VycmVudCA9IG1pbmUuaHVua3NbbWluZUluZGV4XSB8fCB7b2xkU3RhcnQ6IEluZmluaXR5fSxcbiAgICAgICAgdGhlaXJzQ3VycmVudCA9IHRoZWlycy5odW5rc1t0aGVpcnNJbmRleF0gfHwge29sZFN0YXJ0OiBJbmZpbml0eX07XG5cbiAgICBpZiAoaHVua0JlZm9yZShtaW5lQ3VycmVudCwgdGhlaXJzQ3VycmVudCkpIHtcbiAgICAgIC8vIFRoaXMgcGF0Y2ggZG9lcyBub3Qgb3ZlcmxhcCB3aXRoIGFueSBvZiB0aGUgb3RoZXJzLCB5YXkuXG4gICAgICByZXQuaHVua3MucHVzaChjbG9uZUh1bmsobWluZUN1cnJlbnQsIG1pbmVPZmZzZXQpKTtcbiAgICAgIG1pbmVJbmRleCsrO1xuICAgICAgdGhlaXJzT2Zmc2V0ICs9IG1pbmVDdXJyZW50Lm5ld0xpbmVzIC0gbWluZUN1cnJlbnQub2xkTGluZXM7XG4gICAgfSBlbHNlIGlmIChodW5rQmVmb3JlKHRoZWlyc0N1cnJlbnQsIG1pbmVDdXJyZW50KSkge1xuICAgICAgLy8gVGhpcyBwYXRjaCBkb2VzIG5vdCBvdmVybGFwIHdpdGggYW55IG9mIHRoZSBvdGhlcnMsIHlheS5cbiAgICAgIHJldC5odW5rcy5wdXNoKGNsb25lSHVuayh0aGVpcnNDdXJyZW50LCB0aGVpcnNPZmZzZXQpKTtcbiAgICAgIHRoZWlyc0luZGV4Kys7XG4gICAgICBtaW5lT2Zmc2V0ICs9IHRoZWlyc0N1cnJlbnQubmV3TGluZXMgLSB0aGVpcnNDdXJyZW50Lm9sZExpbmVzO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBPdmVybGFwLCBtZXJnZSBhcyBiZXN0IHdlIGNhblxuICAgICAgbGV0IG1lcmdlZEh1bmsgPSB7XG4gICAgICAgIG9sZFN0YXJ0OiBNYXRoLm1pbihtaW5lQ3VycmVudC5vbGRTdGFydCwgdGhlaXJzQ3VycmVudC5vbGRTdGFydCksXG4gICAgICAgIG9sZExpbmVzOiAwLFxuICAgICAgICBuZXdTdGFydDogTWF0aC5taW4obWluZUN1cnJlbnQubmV3U3RhcnQgKyBtaW5lT2Zmc2V0LCB0aGVpcnNDdXJyZW50Lm9sZFN0YXJ0ICsgdGhlaXJzT2Zmc2V0KSxcbiAgICAgICAgbmV3TGluZXM6IDAsXG4gICAgICAgIGxpbmVzOiBbXVxuICAgICAgfTtcbiAgICAgIG1lcmdlTGluZXMobWVyZ2VkSHVuaywgbWluZUN1cnJlbnQub2xkU3RhcnQsIG1pbmVDdXJyZW50LmxpbmVzLCB0aGVpcnNDdXJyZW50Lm9sZFN0YXJ0LCB0aGVpcnNDdXJyZW50LmxpbmVzKTtcbiAgICAgIHRoZWlyc0luZGV4Kys7XG4gICAgICBtaW5lSW5kZXgrKztcblxuICAgICAgcmV0Lmh1bmtzLnB1c2gobWVyZ2VkSHVuayk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHJldDtcbn1cblxuZnVuY3Rpb24gbG9hZFBhdGNoKHBhcmFtLCBiYXNlKSB7XG4gIGlmICh0eXBlb2YgcGFyYW0gPT09ICdzdHJpbmcnKSB7XG4gICAgaWYgKC9eQEAvbS50ZXN0KHBhcmFtKSB8fCAoL15JbmRleDovbS50ZXN0KHBhcmFtKSkpIHtcbiAgICAgIHJldHVybiBwYXJzZVBhdGNoKHBhcmFtKVswXTtcbiAgICB9XG5cbiAgICBpZiAoIWJhc2UpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignTXVzdCBwcm92aWRlIGEgYmFzZSByZWZlcmVuY2Ugb3IgcGFzcyBpbiBhIHBhdGNoJyk7XG4gICAgfVxuICAgIHJldHVybiBzdHJ1Y3R1cmVkUGF0Y2godW5kZWZpbmVkLCB1bmRlZmluZWQsIGJhc2UsIHBhcmFtKTtcbiAgfVxuXG4gIHJldHVybiBwYXJhbTtcbn1cblxuZnVuY3Rpb24gZmlsZU5hbWVDaGFuZ2VkKHBhdGNoKSB7XG4gIHJldHVybiBwYXRjaC5uZXdGaWxlTmFtZSAmJiBwYXRjaC5uZXdGaWxlTmFtZSAhPT0gcGF0Y2gub2xkRmlsZU5hbWU7XG59XG5cbmZ1bmN0aW9uIHNlbGVjdEZpZWxkKGluZGV4LCBtaW5lLCB0aGVpcnMpIHtcbiAgaWYgKG1pbmUgPT09IHRoZWlycykge1xuICAgIHJldHVybiBtaW5lO1xuICB9IGVsc2Uge1xuICAgIGluZGV4LmNvbmZsaWN0ID0gdHJ1ZTtcbiAgICByZXR1cm4ge21pbmUsIHRoZWlyc307XG4gIH1cbn1cblxuZnVuY3Rpb24gaHVua0JlZm9yZSh0ZXN0LCBjaGVjaykge1xuICByZXR1cm4gdGVzdC5vbGRTdGFydCA8IGNoZWNrLm9sZFN0YXJ0XG4gICAgJiYgKHRlc3Qub2xkU3RhcnQgKyB0ZXN0Lm9sZExpbmVzKSA8IGNoZWNrLm9sZFN0YXJ0O1xufVxuXG5mdW5jdGlvbiBjbG9uZUh1bmsoaHVuaywgb2Zmc2V0KSB7XG4gIHJldHVybiB7XG4gICAgb2xkU3RhcnQ6IGh1bmsub2xkU3RhcnQsIG9sZExpbmVzOiBodW5rLm9sZExpbmVzLFxuICAgIG5ld1N0YXJ0OiBodW5rLm5ld1N0YXJ0ICsgb2Zmc2V0LCBuZXdMaW5lczogaHVuay5uZXdMaW5lcyxcbiAgICBsaW5lczogaHVuay5saW5lc1xuICB9O1xufVxuXG5mdW5jdGlvbiBtZXJnZUxpbmVzKGh1bmssIG1pbmVPZmZzZXQsIG1pbmVMaW5lcywgdGhlaXJPZmZzZXQsIHRoZWlyTGluZXMpIHtcbiAgLy8gVGhpcyB3aWxsIGdlbmVyYWxseSByZXN1bHQgaW4gYSBjb25mbGljdGVkIGh1bmssIGJ1dCB0aGVyZSBhcmUgY2FzZXMgd2hlcmUgdGhlIGNvbnRleHRcbiAgLy8gaXMgdGhlIG9ubHkgb3ZlcmxhcCB3aGVyZSB3ZSBjYW4gc3VjY2Vzc2Z1bGx5IG1lcmdlIHRoZSBjb250ZW50IGhlcmUuXG4gIGxldCBtaW5lID0ge29mZnNldDogbWluZU9mZnNldCwgbGluZXM6IG1pbmVMaW5lcywgaW5kZXg6IDB9LFxuICAgICAgdGhlaXIgPSB7b2Zmc2V0OiB0aGVpck9mZnNldCwgbGluZXM6IHRoZWlyTGluZXMsIGluZGV4OiAwfTtcblxuICAvLyBIYW5kbGUgYW55IGxlYWRpbmcgY29udGVudFxuICBpbnNlcnRMZWFkaW5nKGh1bmssIG1pbmUsIHRoZWlyKTtcbiAgaW5zZXJ0TGVhZGluZyhodW5rLCB0aGVpciwgbWluZSk7XG5cbiAgLy8gTm93IGluIHRoZSBvdmVybGFwIGNvbnRlbnQuIFNjYW4gdGhyb3VnaCBhbmQgc2VsZWN0IHRoZSBiZXN0IGNoYW5nZXMgZnJvbSBlYWNoLlxuICB3aGlsZSAobWluZS5pbmRleCA8IG1pbmUubGluZXMubGVuZ3RoICYmIHRoZWlyLmluZGV4IDwgdGhlaXIubGluZXMubGVuZ3RoKSB7XG4gICAgbGV0IG1pbmVDdXJyZW50ID0gbWluZS5saW5lc1ttaW5lLmluZGV4XSxcbiAgICAgICAgdGhlaXJDdXJyZW50ID0gdGhlaXIubGluZXNbdGhlaXIuaW5kZXhdO1xuXG4gICAgaWYgKChtaW5lQ3VycmVudFswXSA9PT0gJy0nIHx8IG1pbmVDdXJyZW50WzBdID09PSAnKycpXG4gICAgICAgICYmICh0aGVpckN1cnJlbnRbMF0gPT09ICctJyB8fCB0aGVpckN1cnJlbnRbMF0gPT09ICcrJykpIHtcbiAgICAgIC8vIEJvdGggbW9kaWZpZWQgLi4uXG4gICAgICBtdXR1YWxDaGFuZ2UoaHVuaywgbWluZSwgdGhlaXIpO1xuICAgIH0gZWxzZSBpZiAobWluZUN1cnJlbnRbMF0gPT09ICcrJyAmJiB0aGVpckN1cnJlbnRbMF0gPT09ICcgJykge1xuICAgICAgLy8gTWluZSBpbnNlcnRlZFxuICAgICAgaHVuay5saW5lcy5wdXNoKC4uLiBjb2xsZWN0Q2hhbmdlKG1pbmUpKTtcbiAgICB9IGVsc2UgaWYgKHRoZWlyQ3VycmVudFswXSA9PT0gJysnICYmIG1pbmVDdXJyZW50WzBdID09PSAnICcpIHtcbiAgICAgIC8vIFRoZWlycyBpbnNlcnRlZFxuICAgICAgaHVuay5saW5lcy5wdXNoKC4uLiBjb2xsZWN0Q2hhbmdlKHRoZWlyKSk7XG4gICAgfSBlbHNlIGlmIChtaW5lQ3VycmVudFswXSA9PT0gJy0nICYmIHRoZWlyQ3VycmVudFswXSA9PT0gJyAnKSB7XG4gICAgICAvLyBNaW5lIHJlbW92ZWQgb3IgZWRpdGVkXG4gICAgICByZW1vdmFsKGh1bmssIG1pbmUsIHRoZWlyKTtcbiAgICB9IGVsc2UgaWYgKHRoZWlyQ3VycmVudFswXSA9PT0gJy0nICYmIG1pbmVDdXJyZW50WzBdID09PSAnICcpIHtcbiAgICAgIC8vIFRoZWlyIHJlbW92ZWQgb3IgZWRpdGVkXG4gICAgICByZW1vdmFsKGh1bmssIHRoZWlyLCBtaW5lLCB0cnVlKTtcbiAgICB9IGVsc2UgaWYgKG1pbmVDdXJyZW50ID09PSB0aGVpckN1cnJlbnQpIHtcbiAgICAgIC8vIENvbnRleHQgaWRlbnRpdHlcbiAgICAgIGh1bmsubGluZXMucHVzaChtaW5lQ3VycmVudCk7XG4gICAgICBtaW5lLmluZGV4Kys7XG4gICAgICB0aGVpci5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBDb250ZXh0IG1pc21hdGNoXG4gICAgICBjb25mbGljdChodW5rLCBjb2xsZWN0Q2hhbmdlKG1pbmUpLCBjb2xsZWN0Q2hhbmdlKHRoZWlyKSk7XG4gICAgfVxuICB9XG5cbiAgLy8gTm93IHB1c2ggYW55dGhpbmcgdGhhdCBtYXkgYmUgcmVtYWluaW5nXG4gIGluc2VydFRyYWlsaW5nKGh1bmssIG1pbmUpO1xuICBpbnNlcnRUcmFpbGluZyhodW5rLCB0aGVpcik7XG5cbiAgY2FsY0xpbmVDb3VudChodW5rKTtcbn1cblxuZnVuY3Rpb24gbXV0dWFsQ2hhbmdlKGh1bmssIG1pbmUsIHRoZWlyKSB7XG4gIGxldCBteUNoYW5nZXMgPSBjb2xsZWN0Q2hhbmdlKG1pbmUpLFxuICAgICAgdGhlaXJDaGFuZ2VzID0gY29sbGVjdENoYW5nZSh0aGVpcik7XG5cbiAgaWYgKGFsbFJlbW92ZXMobXlDaGFuZ2VzKSAmJiBhbGxSZW1vdmVzKHRoZWlyQ2hhbmdlcykpIHtcbiAgICAvLyBTcGVjaWFsIGNhc2UgZm9yIHJlbW92ZSBjaGFuZ2VzIHRoYXQgYXJlIHN1cGVyc2V0cyBvZiBvbmUgYW5vdGhlclxuICAgIGlmIChhcnJheVN0YXJ0c1dpdGgobXlDaGFuZ2VzLCB0aGVpckNoYW5nZXMpXG4gICAgICAgICYmIHNraXBSZW1vdmVTdXBlcnNldCh0aGVpciwgbXlDaGFuZ2VzLCBteUNoYW5nZXMubGVuZ3RoIC0gdGhlaXJDaGFuZ2VzLmxlbmd0aCkpIHtcbiAgICAgIGh1bmsubGluZXMucHVzaCguLi4gbXlDaGFuZ2VzKTtcbiAgICAgIHJldHVybjtcbiAgICB9IGVsc2UgaWYgKGFycmF5U3RhcnRzV2l0aCh0aGVpckNoYW5nZXMsIG15Q2hhbmdlcylcbiAgICAgICAgJiYgc2tpcFJlbW92ZVN1cGVyc2V0KG1pbmUsIHRoZWlyQ2hhbmdlcywgdGhlaXJDaGFuZ2VzLmxlbmd0aCAtIG15Q2hhbmdlcy5sZW5ndGgpKSB7XG4gICAgICBodW5rLmxpbmVzLnB1c2goLi4uIHRoZWlyQ2hhbmdlcyk7XG4gICAgICByZXR1cm47XG4gICAgfVxuICB9IGVsc2UgaWYgKGFycmF5RXF1YWwobXlDaGFuZ2VzLCB0aGVpckNoYW5nZXMpKSB7XG4gICAgaHVuay5saW5lcy5wdXNoKC4uLiBteUNoYW5nZXMpO1xuICAgIHJldHVybjtcbiAgfVxuXG4gIGNvbmZsaWN0KGh1bmssIG15Q2hhbmdlcywgdGhlaXJDaGFuZ2VzKTtcbn1cblxuZnVuY3Rpb24gcmVtb3ZhbChodW5rLCBtaW5lLCB0aGVpciwgc3dhcCkge1xuICBsZXQgbXlDaGFuZ2VzID0gY29sbGVjdENoYW5nZShtaW5lKSxcbiAgICAgIHRoZWlyQ2hhbmdlcyA9IGNvbGxlY3RDb250ZXh0KHRoZWlyLCBteUNoYW5nZXMpO1xuICBpZiAodGhlaXJDaGFuZ2VzLm1lcmdlZCkge1xuICAgIGh1bmsubGluZXMucHVzaCguLi4gdGhlaXJDaGFuZ2VzLm1lcmdlZCk7XG4gIH0gZWxzZSB7XG4gICAgY29uZmxpY3QoaHVuaywgc3dhcCA/IHRoZWlyQ2hhbmdlcyA6IG15Q2hhbmdlcywgc3dhcCA/IG15Q2hhbmdlcyA6IHRoZWlyQ2hhbmdlcyk7XG4gIH1cbn1cblxuZnVuY3Rpb24gY29uZmxpY3QoaHVuaywgbWluZSwgdGhlaXIpIHtcbiAgaHVuay5jb25mbGljdCA9IHRydWU7XG4gIGh1bmsubGluZXMucHVzaCh7XG4gICAgY29uZmxpY3Q6IHRydWUsXG4gICAgbWluZTogbWluZSxcbiAgICB0aGVpcnM6IHRoZWlyXG4gIH0pO1xufVxuXG5mdW5jdGlvbiBpbnNlcnRMZWFkaW5nKGh1bmssIGluc2VydCwgdGhlaXIpIHtcbiAgd2hpbGUgKGluc2VydC5vZmZzZXQgPCB0aGVpci5vZmZzZXQgJiYgaW5zZXJ0LmluZGV4IDwgaW5zZXJ0LmxpbmVzLmxlbmd0aCkge1xuICAgIGxldCBsaW5lID0gaW5zZXJ0LmxpbmVzW2luc2VydC5pbmRleCsrXTtcbiAgICBodW5rLmxpbmVzLnB1c2gobGluZSk7XG4gICAgaW5zZXJ0Lm9mZnNldCsrO1xuICB9XG59XG5mdW5jdGlvbiBpbnNlcnRUcmFpbGluZyhodW5rLCBpbnNlcnQpIHtcbiAgd2hpbGUgKGluc2VydC5pbmRleCA8IGluc2VydC5saW5lcy5sZW5ndGgpIHtcbiAgICBsZXQgbGluZSA9IGluc2VydC5saW5lc1tpbnNlcnQuaW5kZXgrK107XG4gICAgaHVuay5saW5lcy5wdXNoKGxpbmUpO1xuICB9XG59XG5cbmZ1bmN0aW9uIGNvbGxlY3RDaGFuZ2Uoc3RhdGUpIHtcbiAgbGV0IHJldCA9IFtdLFxuICAgICAgb3BlcmF0aW9uID0gc3RhdGUubGluZXNbc3RhdGUuaW5kZXhdWzBdO1xuICB3aGlsZSAoc3RhdGUuaW5kZXggPCBzdGF0ZS5saW5lcy5sZW5ndGgpIHtcbiAgICBsZXQgbGluZSA9IHN0YXRlLmxpbmVzW3N0YXRlLmluZGV4XTtcblxuICAgIC8vIEdyb3VwIGFkZGl0aW9ucyB0aGF0IGFyZSBpbW1lZGlhdGVseSBhZnRlciBzdWJ0cmFjdGlvbnMgYW5kIHRyZWF0IHRoZW0gYXMgb25lIFwiYXRvbWljXCIgbW9kaWZ5IGNoYW5nZS5cbiAgICBpZiAob3BlcmF0aW9uID09PSAnLScgJiYgbGluZVswXSA9PT0gJysnKSB7XG4gICAgICBvcGVyYXRpb24gPSAnKyc7XG4gICAgfVxuXG4gICAgaWYgKG9wZXJhdGlvbiA9PT0gbGluZVswXSkge1xuICAgICAgcmV0LnB1c2gobGluZSk7XG4gICAgICBzdGF0ZS5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICBicmVhaztcbiAgICB9XG4gIH1cblxuICByZXR1cm4gcmV0O1xufVxuZnVuY3Rpb24gY29sbGVjdENvbnRleHQoc3RhdGUsIG1hdGNoQ2hhbmdlcykge1xuICBsZXQgY2hhbmdlcyA9IFtdLFxuICAgICAgbWVyZ2VkID0gW10sXG4gICAgICBtYXRjaEluZGV4ID0gMCxcbiAgICAgIGNvbnRleHRDaGFuZ2VzID0gZmFsc2UsXG4gICAgICBjb25mbGljdGVkID0gZmFsc2U7XG4gIHdoaWxlIChtYXRjaEluZGV4IDwgbWF0Y2hDaGFuZ2VzLmxlbmd0aFxuICAgICAgICAmJiBzdGF0ZS5pbmRleCA8IHN0YXRlLmxpbmVzLmxlbmd0aCkge1xuICAgIGxldCBjaGFuZ2UgPSBzdGF0ZS5saW5lc1tzdGF0ZS5pbmRleF0sXG4gICAgICAgIG1hdGNoID0gbWF0Y2hDaGFuZ2VzW21hdGNoSW5kZXhdO1xuXG4gICAgLy8gT25jZSB3ZSd2ZSBoaXQgb3VyIGFkZCwgdGhlbiB3ZSBhcmUgZG9uZVxuICAgIGlmIChtYXRjaFswXSA9PT0gJysnKSB7XG4gICAgICBicmVhaztcbiAgICB9XG5cbiAgICBjb250ZXh0Q2hhbmdlcyA9IGNvbnRleHRDaGFuZ2VzIHx8IGNoYW5nZVswXSAhPT0gJyAnO1xuXG4gICAgbWVyZ2VkLnB1c2gobWF0Y2gpO1xuICAgIG1hdGNoSW5kZXgrKztcblxuICAgIC8vIENvbnN1bWUgYW55IGFkZGl0aW9ucyBpbiB0aGUgb3RoZXIgYmxvY2sgYXMgYSBjb25mbGljdCB0byBhdHRlbXB0XG4gICAgLy8gdG8gcHVsbCBpbiB0aGUgcmVtYWluaW5nIGNvbnRleHQgYWZ0ZXIgdGhpc1xuICAgIGlmIChjaGFuZ2VbMF0gPT09ICcrJykge1xuICAgICAgY29uZmxpY3RlZCA9IHRydWU7XG5cbiAgICAgIHdoaWxlIChjaGFuZ2VbMF0gPT09ICcrJykge1xuICAgICAgICBjaGFuZ2VzLnB1c2goY2hhbmdlKTtcbiAgICAgICAgY2hhbmdlID0gc3RhdGUubGluZXNbKytzdGF0ZS5pbmRleF07XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKG1hdGNoLnN1YnN0cigxKSA9PT0gY2hhbmdlLnN1YnN0cigxKSkge1xuICAgICAgY2hhbmdlcy5wdXNoKGNoYW5nZSk7XG4gICAgICBzdGF0ZS5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICBjb25mbGljdGVkID0gdHJ1ZTtcbiAgICB9XG4gIH1cblxuICBpZiAoKG1hdGNoQ2hhbmdlc1ttYXRjaEluZGV4XSB8fCAnJylbMF0gPT09ICcrJ1xuICAgICAgJiYgY29udGV4dENoYW5nZXMpIHtcbiAgICBjb25mbGljdGVkID0gdHJ1ZTtcbiAgfVxuXG4gIGlmIChjb25mbGljdGVkKSB7XG4gICAgcmV0dXJuIGNoYW5nZXM7XG4gIH1cblxuICB3aGlsZSAobWF0Y2hJbmRleCA8IG1hdGNoQ2hhbmdlcy5sZW5ndGgpIHtcbiAgICBtZXJnZWQucHVzaChtYXRjaENoYW5nZXNbbWF0Y2hJbmRleCsrXSk7XG4gIH1cblxuICByZXR1cm4ge1xuICAgIG1lcmdlZCxcbiAgICBjaGFuZ2VzXG4gIH07XG59XG5cbmZ1bmN0aW9uIGFsbFJlbW92ZXMoY2hhbmdlcykge1xuICByZXR1cm4gY2hhbmdlcy5yZWR1Y2UoZnVuY3Rpb24ocHJldiwgY2hhbmdlKSB7XG4gICAgcmV0dXJuIHByZXYgJiYgY2hhbmdlWzBdID09PSAnLSc7XG4gIH0sIHRydWUpO1xufVxuZnVuY3Rpb24gc2tpcFJlbW92ZVN1cGVyc2V0KHN0YXRlLCByZW1vdmVDaGFuZ2VzLCBkZWx0YSkge1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGRlbHRhOyBpKyspIHtcbiAgICBsZXQgY2hhbmdlQ29udGVudCA9IHJlbW92ZUNoYW5nZXNbcmVtb3ZlQ2hhbmdlcy5sZW5ndGggLSBkZWx0YSArIGldLnN1YnN0cigxKTtcbiAgICBpZiAoc3RhdGUubGluZXNbc3RhdGUuaW5kZXggKyBpXSAhPT0gJyAnICsgY2hhbmdlQ29udGVudCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfVxuXG4gIHN0YXRlLmluZGV4ICs9IGRlbHRhO1xuICByZXR1cm4gdHJ1ZTtcbn1cblxuZnVuY3Rpb24gY2FsY09sZE5ld0xpbmVDb3VudChsaW5lcykge1xuICBsZXQgb2xkTGluZXMgPSAwO1xuICBsZXQgbmV3TGluZXMgPSAwO1xuXG4gIGxpbmVzLmZvckVhY2goZnVuY3Rpb24obGluZSkge1xuICAgIGlmICh0eXBlb2YgbGluZSAhPT0gJ3N0cmluZycpIHtcbiAgICAgIGxldCBteUNvdW50ID0gY2FsY09sZE5ld0xpbmVDb3VudChsaW5lLm1pbmUpO1xuICAgICAgbGV0IHRoZWlyQ291bnQgPSBjYWxjT2xkTmV3TGluZUNvdW50KGxpbmUudGhlaXJzKTtcblxuICAgICAgaWYgKG9sZExpbmVzICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgaWYgKG15Q291bnQub2xkTGluZXMgPT09IHRoZWlyQ291bnQub2xkTGluZXMpIHtcbiAgICAgICAgICBvbGRMaW5lcyArPSBteUNvdW50Lm9sZExpbmVzO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG9sZExpbmVzID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGlmIChteUNvdW50Lm5ld0xpbmVzID09PSB0aGVpckNvdW50Lm5ld0xpbmVzKSB7XG4gICAgICAgICAgbmV3TGluZXMgKz0gbXlDb3VudC5uZXdMaW5lcztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBuZXdMaW5lcyA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAobmV3TGluZXMgIT09IHVuZGVmaW5lZCAmJiAobGluZVswXSA9PT0gJysnIHx8IGxpbmVbMF0gPT09ICcgJykpIHtcbiAgICAgICAgbmV3TGluZXMrKztcbiAgICAgIH1cbiAgICAgIGlmIChvbGRMaW5lcyAhPT0gdW5kZWZpbmVkICYmIChsaW5lWzBdID09PSAnLScgfHwgbGluZVswXSA9PT0gJyAnKSkge1xuICAgICAgICBvbGRMaW5lcysrO1xuICAgICAgfVxuICAgIH1cbiAgfSk7XG5cbiAgcmV0dXJuIHtvbGRMaW5lcywgbmV3TGluZXN9O1xufVxuIl19 + + +/***/ }), +/* 14 */ +/***/ (function(module, exports, __webpack_require__) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports. /*istanbul ignore end*/structuredPatch = structuredPatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = createTwoFilesPatch; + /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = createPatch; + + var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; + + /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + + /*istanbul ignore end*/function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) { + if (!options) { + options = {}; + } + if (typeof options.context === 'undefined') { + options.context = 4; + } + + var diff = /*istanbul ignore start*/(0, _line.diffLines) /*istanbul ignore end*/(oldStr, newStr, options); + diff.push({ value: '', lines: [] }); // Append an empty value to make cleanup easier + + function contextLines(lines) { + return lines.map(function (entry) { + return ' ' + entry; + }); + } + + var hunks = []; + var oldRangeStart = 0, + newRangeStart = 0, + curRange = [], + oldLine = 1, + newLine = 1; + + /*istanbul ignore start*/var _loop = function _loop( /*istanbul ignore end*/i) { + var current = diff[i], + lines = current.lines || current.value.replace(/\n$/, '').split('\n'); + current.lines = lines; + + if (current.added || current.removed) { + /*istanbul ignore start*/var _curRange; + + /*istanbul ignore end*/ // If we have previous context, start with that + if (!oldRangeStart) { + var prev = diff[i - 1]; + oldRangeStart = oldLine; + newRangeStart = newLine; + + if (prev) { + curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : []; + oldRangeStart -= curRange.length; + newRangeStart -= curRange.length; + } + } + + // Output our changes + /*istanbul ignore start*/(_curRange = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/lines.map(function (entry) { + return (current.added ? '+' : '-') + entry; + }))); + + // Track the updated file position + if (current.added) { + newLine += lines.length; + } else { + oldLine += lines.length; + } + } else { + // Identical context lines. Track line changes + if (oldRangeStart) { + // Close out any changes that have been output (or join overlapping) + if (lines.length <= options.context * 2 && i < diff.length - 2) { + /*istanbul ignore start*/var _curRange2; + + /*istanbul ignore end*/ // Overlapping + /*istanbul ignore start*/(_curRange2 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines))); + } else { + /*istanbul ignore start*/var _curRange3; + + /*istanbul ignore end*/ // end the range and output + var contextSize = Math.min(lines.length, options.context); + /*istanbul ignore start*/(_curRange3 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines.slice(0, contextSize)))); + + var hunk = { + oldStart: oldRangeStart, + oldLines: oldLine - oldRangeStart + contextSize, + newStart: newRangeStart, + newLines: newLine - newRangeStart + contextSize, + lines: curRange + }; + if (i >= diff.length - 2 && lines.length <= options.context) { + // EOF is inside this hunk + var oldEOFNewline = /\n$/.test(oldStr); + var newEOFNewline = /\n$/.test(newStr); + if (lines.length == 0 && !oldEOFNewline) { + // special case: old has no eol and no trailing context; no-nl can end up before adds + curRange.splice(hunk.oldLines, 0, '\\ No newline at end of file'); + } else if (!oldEOFNewline || !newEOFNewline) { + curRange.push('\\ No newline at end of file'); + } + } + hunks.push(hunk); + + oldRangeStart = 0; + newRangeStart = 0; + curRange = []; + } + } + oldLine += lines.length; + newLine += lines.length; + } + }; + + for (var i = 0; i < diff.length; i++) { + /*istanbul ignore start*/_loop( /*istanbul ignore end*/i); + } + + return { + oldFileName: oldFileName, newFileName: newFileName, + oldHeader: oldHeader, newHeader: newHeader, + hunks: hunks + }; + } + + function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) { + var diff = structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options); + + var ret = []; + if (oldFileName == newFileName) { + ret.push('Index: ' + oldFileName); + } + ret.push('==================================================================='); + ret.push('--- ' + diff.oldFileName + (typeof diff.oldHeader === 'undefined' ? '' : '\t' + diff.oldHeader)); + ret.push('+++ ' + diff.newFileName + (typeof diff.newHeader === 'undefined' ? '' : '\t' + diff.newHeader)); + + for (var i = 0; i < diff.hunks.length; i++) { + var hunk = diff.hunks[i]; + ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines + ' +' + hunk.newStart + ',' + hunk.newLines + ' @@'); + ret.push.apply(ret, hunk.lines); + } + + return ret.join('\n') + '\n'; + } + + function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) { + return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options); + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9jcmVhdGUuanMiXSwibmFtZXMiOlsic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwib2xkRmlsZU5hbWUiLCJuZXdGaWxlTmFtZSIsIm9sZFN0ciIsIm5ld1N0ciIsIm9sZEhlYWRlciIsIm5ld0hlYWRlciIsIm9wdGlvbnMiLCJjb250ZXh0IiwiZGlmZiIsInB1c2giLCJ2YWx1ZSIsImxpbmVzIiwiY29udGV4dExpbmVzIiwibWFwIiwiZW50cnkiLCJodW5rcyIsIm9sZFJhbmdlU3RhcnQiLCJuZXdSYW5nZVN0YXJ0IiwiY3VyUmFuZ2UiLCJvbGRMaW5lIiwibmV3TGluZSIsImkiLCJjdXJyZW50IiwicmVwbGFjZSIsInNwbGl0IiwiYWRkZWQiLCJyZW1vdmVkIiwicHJldiIsInNsaWNlIiwibGVuZ3RoIiwiY29udGV4dFNpemUiLCJNYXRoIiwibWluIiwiaHVuayIsIm9sZFN0YXJ0Iiwib2xkTGluZXMiLCJuZXdTdGFydCIsIm5ld0xpbmVzIiwib2xkRU9GTmV3bGluZSIsInRlc3QiLCJuZXdFT0ZOZXdsaW5lIiwic3BsaWNlIiwicmV0IiwiYXBwbHkiLCJqb2luIiwiZmlsZU5hbWUiXSwibWFwcGluZ3MiOiI7OztnQ0FFZ0JBLGUsR0FBQUEsZTt5REFpR0FDLG1CLEdBQUFBLG1CO3lEQXdCQUMsVyxHQUFBQSxXOztBQTNIaEI7Ozs7dUJBRU8sU0FBU0YsZUFBVCxDQUF5QkcsV0FBekIsRUFBc0NDLFdBQXRDLEVBQW1EQyxNQUFuRCxFQUEyREMsTUFBM0QsRUFBbUVDLFNBQW5FLEVBQThFQyxTQUE5RSxFQUF5RkMsT0FBekYsRUFBa0c7QUFDdkcsTUFBSSxDQUFDQSxPQUFMLEVBQWM7QUFDWkEsY0FBVSxFQUFWO0FBQ0Q7QUFDRCxNQUFJLE9BQU9BLFFBQVFDLE9BQWYsS0FBMkIsV0FBL0IsRUFBNEM7QUFDMUNELFlBQVFDLE9BQVIsR0FBa0IsQ0FBbEI7QUFDRDs7QUFFRCxNQUFNQyxPQUFPLHNFQUFVTixNQUFWLEVBQWtCQyxNQUFsQixFQUEwQkcsT0FBMUIsQ0FBYjtBQUNBRSxPQUFLQyxJQUFMLENBQVUsRUFBQ0MsT0FBTyxFQUFSLEVBQVlDLE9BQU8sRUFBbkIsRUFBVixFQVR1RyxDQVNsRTs7QUFFckMsV0FBU0MsWUFBVCxDQUFzQkQsS0FBdEIsRUFBNkI7QUFDM0IsV0FBT0EsTUFBTUUsR0FBTixDQUFVLFVBQVNDLEtBQVQsRUFBZ0I7QUFBRSxhQUFPLE1BQU1BLEtBQWI7QUFBcUIsS0FBakQsQ0FBUDtBQUNEOztBQUVELE1BQUlDLFFBQVEsRUFBWjtBQUNBLE1BQUlDLGdCQUFnQixDQUFwQjtBQUFBLE1BQXVCQyxnQkFBZ0IsQ0FBdkM7QUFBQSxNQUEwQ0MsV0FBVyxFQUFyRDtBQUFBLE1BQ0lDLFVBQVUsQ0FEZDtBQUFBLE1BQ2lCQyxVQUFVLENBRDNCOztBQWhCdUcsOEVBa0I5RkMsQ0FsQjhGO0FBbUJyRyxRQUFNQyxVQUFVZCxLQUFLYSxDQUFMLENBQWhCO0FBQUEsUUFDTVYsUUFBUVcsUUFBUVgsS0FBUixJQUFpQlcsUUFBUVosS0FBUixDQUFjYSxPQUFkLENBQXNCLEtBQXRCLEVBQTZCLEVBQTdCLEVBQWlDQyxLQUFqQyxDQUF1QyxJQUF2QyxDQUQvQjtBQUVBRixZQUFRWCxLQUFSLEdBQWdCQSxLQUFoQjs7QUFFQSxRQUFJVyxRQUFRRyxLQUFSLElBQWlCSCxRQUFRSSxPQUE3QixFQUFzQztBQUFBOztBQUFBLDhCQUNwQztBQUNBLFVBQUksQ0FBQ1YsYUFBTCxFQUFvQjtBQUNsQixZQUFNVyxPQUFPbkIsS0FBS2EsSUFBSSxDQUFULENBQWI7QUFDQUwsd0JBQWdCRyxPQUFoQjtBQUNBRix3QkFBZ0JHLE9BQWhCOztBQUVBLFlBQUlPLElBQUosRUFBVTtBQUNSVCxxQkFBV1osUUFBUUMsT0FBUixHQUFrQixDQUFsQixHQUFzQkssYUFBYWUsS0FBS2hCLEtBQUwsQ0FBV2lCLEtBQVgsQ0FBaUIsQ0FBQ3RCLFFBQVFDLE9BQTFCLENBQWIsQ0FBdEIsR0FBeUUsRUFBcEY7QUFDQVMsMkJBQWlCRSxTQUFTVyxNQUExQjtBQUNBWiwyQkFBaUJDLFNBQVNXLE1BQTFCO0FBQ0Q7QUFDRjs7QUFFRDtBQUNBLDZFQUFTcEIsSUFBVCwwTEFBa0JFLE1BQU1FLEdBQU4sQ0FBVSxVQUFTQyxLQUFULEVBQWdCO0FBQzFDLGVBQU8sQ0FBQ1EsUUFBUUcsS0FBUixHQUFnQixHQUFoQixHQUFzQixHQUF2QixJQUE4QlgsS0FBckM7QUFDRCxPQUZpQixDQUFsQjs7QUFJQTtBQUNBLFVBQUlRLFFBQVFHLEtBQVosRUFBbUI7QUFDakJMLG1CQUFXVCxNQUFNa0IsTUFBakI7QUFDRCxPQUZELE1BRU87QUFDTFYsbUJBQVdSLE1BQU1rQixNQUFqQjtBQUNEO0FBQ0YsS0F6QkQsTUF5Qk87QUFDTDtBQUNBLFVBQUliLGFBQUosRUFBbUI7QUFDakI7QUFDQSxZQUFJTCxNQUFNa0IsTUFBTixJQUFnQnZCLFFBQVFDLE9BQVIsR0FBa0IsQ0FBbEMsSUFBdUNjLElBQUliLEtBQUtxQixNQUFMLEdBQWMsQ0FBN0QsRUFBZ0U7QUFBQTs7QUFBQSxrQ0FDOUQ7QUFDQSxrRkFBU3BCLElBQVQsMkxBQWtCRyxhQUFhRCxLQUFiLENBQWxCO0FBQ0QsU0FIRCxNQUdPO0FBQUE7O0FBQUEsa0NBQ0w7QUFDQSxjQUFJbUIsY0FBY0MsS0FBS0MsR0FBTCxDQUFTckIsTUFBTWtCLE1BQWYsRUFBdUJ2QixRQUFRQyxPQUEvQixDQUFsQjtBQUNBLGtGQUFTRSxJQUFULDJMQUFrQkcsYUFBYUQsTUFBTWlCLEtBQU4sQ0FBWSxDQUFaLEVBQWVFLFdBQWYsQ0FBYixDQUFsQjs7QUFFQSxjQUFJRyxPQUFPO0FBQ1RDLHNCQUFVbEIsYUFERDtBQUVUbUIsc0JBQVdoQixVQUFVSCxhQUFWLEdBQTBCYyxXQUY1QjtBQUdUTSxzQkFBVW5CLGFBSEQ7QUFJVG9CLHNCQUFXakIsVUFBVUgsYUFBVixHQUEwQmEsV0FKNUI7QUFLVG5CLG1CQUFPTztBQUxFLFdBQVg7QUFPQSxjQUFJRyxLQUFLYixLQUFLcUIsTUFBTCxHQUFjLENBQW5CLElBQXdCbEIsTUFBTWtCLE1BQU4sSUFBZ0J2QixRQUFRQyxPQUFwRCxFQUE2RDtBQUMzRDtBQUNBLGdCQUFJK0IsZ0JBQWlCLE1BQU1DLElBQU4sQ0FBV3JDLE1BQVgsQ0FBckI7QUFDQSxnQkFBSXNDLGdCQUFpQixNQUFNRCxJQUFOLENBQVdwQyxNQUFYLENBQXJCO0FBQ0EsZ0JBQUlRLE1BQU1rQixNQUFOLElBQWdCLENBQWhCLElBQXFCLENBQUNTLGFBQTFCLEVBQXlDO0FBQ3ZDO0FBQ0FwQix1QkFBU3VCLE1BQVQsQ0FBZ0JSLEtBQUtFLFFBQXJCLEVBQStCLENBQS9CLEVBQWtDLDhCQUFsQztBQUNELGFBSEQsTUFHTyxJQUFJLENBQUNHLGFBQUQsSUFBa0IsQ0FBQ0UsYUFBdkIsRUFBc0M7QUFDM0N0Qix1QkFBU1QsSUFBVCxDQUFjLDhCQUFkO0FBQ0Q7QUFDRjtBQUNETSxnQkFBTU4sSUFBTixDQUFXd0IsSUFBWDs7QUFFQWpCLDBCQUFnQixDQUFoQjtBQUNBQywwQkFBZ0IsQ0FBaEI7QUFDQUMscUJBQVcsRUFBWDtBQUNEO0FBQ0Y7QUFDREMsaUJBQVdSLE1BQU1rQixNQUFqQjtBQUNBVCxpQkFBV1QsTUFBTWtCLE1BQWpCO0FBQ0Q7QUF2Rm9HOztBQWtCdkcsT0FBSyxJQUFJUixJQUFJLENBQWIsRUFBZ0JBLElBQUliLEtBQUtxQixNQUF6QixFQUFpQ1IsR0FBakMsRUFBc0M7QUFBQSwyREFBN0JBLENBQTZCO0FBc0VyQzs7QUFFRCxTQUFPO0FBQ0xyQixpQkFBYUEsV0FEUixFQUNxQkMsYUFBYUEsV0FEbEM7QUFFTEcsZUFBV0EsU0FGTixFQUVpQkMsV0FBV0EsU0FGNUI7QUFHTFUsV0FBT0E7QUFIRixHQUFQO0FBS0Q7O0FBRU0sU0FBU2pCLG1CQUFULENBQTZCRSxXQUE3QixFQUEwQ0MsV0FBMUMsRUFBdURDLE1BQXZELEVBQStEQyxNQUEvRCxFQUF1RUMsU0FBdkUsRUFBa0ZDLFNBQWxGLEVBQTZGQyxPQUE3RixFQUFzRztBQUMzRyxNQUFNRSxPQUFPWCxnQkFBZ0JHLFdBQWhCLEVBQTZCQyxXQUE3QixFQUEwQ0MsTUFBMUMsRUFBa0RDLE1BQWxELEVBQTBEQyxTQUExRCxFQUFxRUMsU0FBckUsRUFBZ0ZDLE9BQWhGLENBQWI7O0FBRUEsTUFBTW9DLE1BQU0sRUFBWjtBQUNBLE1BQUkxQyxlQUFlQyxXQUFuQixFQUFnQztBQUM5QnlDLFFBQUlqQyxJQUFKLENBQVMsWUFBWVQsV0FBckI7QUFDRDtBQUNEMEMsTUFBSWpDLElBQUosQ0FBUyxxRUFBVDtBQUNBaUMsTUFBSWpDLElBQUosQ0FBUyxTQUFTRCxLQUFLUixXQUFkLElBQTZCLE9BQU9RLEtBQUtKLFNBQVosS0FBMEIsV0FBMUIsR0FBd0MsRUFBeEMsR0FBNkMsT0FBT0ksS0FBS0osU0FBdEYsQ0FBVDtBQUNBc0MsTUFBSWpDLElBQUosQ0FBUyxTQUFTRCxLQUFLUCxXQUFkLElBQTZCLE9BQU9PLEtBQUtILFNBQVosS0FBMEIsV0FBMUIsR0FBd0MsRUFBeEMsR0FBNkMsT0FBT0csS0FBS0gsU0FBdEYsQ0FBVDs7QUFFQSxPQUFLLElBQUlnQixJQUFJLENBQWIsRUFBZ0JBLElBQUliLEtBQUtPLEtBQUwsQ0FBV2MsTUFBL0IsRUFBdUNSLEdBQXZDLEVBQTRDO0FBQzFDLFFBQU1ZLE9BQU96QixLQUFLTyxLQUFMLENBQVdNLENBQVgsQ0FBYjtBQUNBcUIsUUFBSWpDLElBQUosQ0FDRSxTQUFTd0IsS0FBS0MsUUFBZCxHQUF5QixHQUF6QixHQUErQkQsS0FBS0UsUUFBcEMsR0FDRSxJQURGLEdBQ1NGLEtBQUtHLFFBRGQsR0FDeUIsR0FEekIsR0FDK0JILEtBQUtJLFFBRHBDLEdBRUUsS0FISjtBQUtBSyxRQUFJakMsSUFBSixDQUFTa0MsS0FBVCxDQUFlRCxHQUFmLEVBQW9CVCxLQUFLdEIsS0FBekI7QUFDRDs7QUFFRCxTQUFPK0IsSUFBSUUsSUFBSixDQUFTLElBQVQsSUFBaUIsSUFBeEI7QUFDRDs7QUFFTSxTQUFTN0MsV0FBVCxDQUFxQjhDLFFBQXJCLEVBQStCM0MsTUFBL0IsRUFBdUNDLE1BQXZDLEVBQStDQyxTQUEvQyxFQUEwREMsU0FBMUQsRUFBcUVDLE9BQXJFLEVBQThFO0FBQ25GLFNBQU9SLG9CQUFvQitDLFFBQXBCLEVBQThCQSxRQUE5QixFQUF3QzNDLE1BQXhDLEVBQWdEQyxNQUFoRCxFQUF3REMsU0FBeEQsRUFBbUVDLFNBQW5FLEVBQThFQyxPQUE5RSxDQUFQO0FBQ0QiLCJmaWxlIjoiY3JlYXRlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtkaWZmTGluZXN9IGZyb20gJy4uL2RpZmYvbGluZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiBzdHJ1Y3R1cmVkUGF0Y2gob2xkRmlsZU5hbWUsIG5ld0ZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgaWYgKCFvcHRpb25zKSB7XG4gICAgb3B0aW9ucyA9IHt9O1xuICB9XG4gIGlmICh0eXBlb2Ygb3B0aW9ucy5jb250ZXh0ID09PSAndW5kZWZpbmVkJykge1xuICAgIG9wdGlvbnMuY29udGV4dCA9IDQ7XG4gIH1cblxuICBjb25zdCBkaWZmID0gZGlmZkxpbmVzKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbiAgZGlmZi5wdXNoKHt2YWx1ZTogJycsIGxpbmVzOiBbXX0pOyAgIC8vIEFwcGVuZCBhbiBlbXB0eSB2YWx1ZSB0byBtYWtlIGNsZWFudXAgZWFzaWVyXG5cbiAgZnVuY3Rpb24gY29udGV4dExpbmVzKGxpbmVzKSB7XG4gICAgcmV0dXJuIGxpbmVzLm1hcChmdW5jdGlvbihlbnRyeSkgeyByZXR1cm4gJyAnICsgZW50cnk7IH0pO1xuICB9XG5cbiAgbGV0IGh1bmtzID0gW107XG4gIGxldCBvbGRSYW5nZVN0YXJ0ID0gMCwgbmV3UmFuZ2VTdGFydCA9IDAsIGN1clJhbmdlID0gW10sXG4gICAgICBvbGRMaW5lID0gMSwgbmV3TGluZSA9IDE7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgZGlmZi5sZW5ndGg7IGkrKykge1xuICAgIGNvbnN0IGN1cnJlbnQgPSBkaWZmW2ldLFxuICAgICAgICAgIGxpbmVzID0gY3VycmVudC5saW5lcyB8fCBjdXJyZW50LnZhbHVlLnJlcGxhY2UoL1xcbiQvLCAnJykuc3BsaXQoJ1xcbicpO1xuICAgIGN1cnJlbnQubGluZXMgPSBsaW5lcztcblxuICAgIGlmIChjdXJyZW50LmFkZGVkIHx8IGN1cnJlbnQucmVtb3ZlZCkge1xuICAgICAgLy8gSWYgd2UgaGF2ZSBwcmV2aW91cyBjb250ZXh0LCBzdGFydCB3aXRoIHRoYXRcbiAgICAgIGlmICghb2xkUmFuZ2VTdGFydCkge1xuICAgICAgICBjb25zdCBwcmV2ID0gZGlmZltpIC0gMV07XG4gICAgICAgIG9sZFJhbmdlU3RhcnQgPSBvbGRMaW5lO1xuICAgICAgICBuZXdSYW5nZVN0YXJ0ID0gbmV3TGluZTtcblxuICAgICAgICBpZiAocHJldikge1xuICAgICAgICAgIGN1clJhbmdlID0gb3B0aW9ucy5jb250ZXh0ID4gMCA/IGNvbnRleHRMaW5lcyhwcmV2LmxpbmVzLnNsaWNlKC1vcHRpb25zLmNvbnRleHQpKSA6IFtdO1xuICAgICAgICAgIG9sZFJhbmdlU3RhcnQgLT0gY3VyUmFuZ2UubGVuZ3RoO1xuICAgICAgICAgIG5ld1JhbmdlU3RhcnQgLT0gY3VyUmFuZ2UubGVuZ3RoO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC8vIE91dHB1dCBvdXIgY2hhbmdlc1xuICAgICAgY3VyUmFuZ2UucHVzaCguLi4gbGluZXMubWFwKGZ1bmN0aW9uKGVudHJ5KSB7XG4gICAgICAgIHJldHVybiAoY3VycmVudC5hZGRlZCA/ICcrJyA6ICctJykgKyBlbnRyeTtcbiAgICAgIH0pKTtcblxuICAgICAgLy8gVHJhY2sgdGhlIHVwZGF0ZWQgZmlsZSBwb3NpdGlvblxuICAgICAgaWYgKGN1cnJlbnQuYWRkZWQpIHtcbiAgICAgICAgbmV3TGluZSArPSBsaW5lcy5sZW5ndGg7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBvbGRMaW5lICs9IGxpbmVzLmxlbmd0aDtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgLy8gSWRlbnRpY2FsIGNvbnRleHQgbGluZXMuIFRyYWNrIGxpbmUgY2hhbmdlc1xuICAgICAgaWYgKG9sZFJhbmdlU3RhcnQpIHtcbiAgICAgICAgLy8gQ2xvc2Ugb3V0IGFueSBjaGFuZ2VzIHRoYXQgaGF2ZSBiZWVuIG91dHB1dCAob3Igam9pbiBvdmVybGFwcGluZylcbiAgICAgICAgaWYgKGxpbmVzLmxlbmd0aCA8PSBvcHRpb25zLmNvbnRleHQgKiAyICYmIGkgPCBkaWZmLmxlbmd0aCAtIDIpIHtcbiAgICAgICAgICAvLyBPdmVybGFwcGluZ1xuICAgICAgICAgIGN1clJhbmdlLnB1c2goLi4uIGNvbnRleHRMaW5lcyhsaW5lcykpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIGVuZCB0aGUgcmFuZ2UgYW5kIG91dHB1dFxuICAgICAgICAgIGxldCBjb250ZXh0U2l6ZSA9IE1hdGgubWluKGxpbmVzLmxlbmd0aCwgb3B0aW9ucy5jb250ZXh0KTtcbiAgICAgICAgICBjdXJSYW5nZS5wdXNoKC4uLiBjb250ZXh0TGluZXMobGluZXMuc2xpY2UoMCwgY29udGV4dFNpemUpKSk7XG5cbiAgICAgICAgICBsZXQgaHVuayA9IHtcbiAgICAgICAgICAgIG9sZFN0YXJ0OiBvbGRSYW5nZVN0YXJ0LFxuICAgICAgICAgICAgb2xkTGluZXM6IChvbGRMaW5lIC0gb2xkUmFuZ2VTdGFydCArIGNvbnRleHRTaXplKSxcbiAgICAgICAgICAgIG5ld1N0YXJ0OiBuZXdSYW5nZVN0YXJ0LFxuICAgICAgICAgICAgbmV3TGluZXM6IChuZXdMaW5lIC0gbmV3UmFuZ2VTdGFydCArIGNvbnRleHRTaXplKSxcbiAgICAgICAgICAgIGxpbmVzOiBjdXJSYW5nZVxuICAgICAgICAgIH07XG4gICAgICAgICAgaWYgKGkgPj0gZGlmZi5sZW5ndGggLSAyICYmIGxpbmVzLmxlbmd0aCA8PSBvcHRpb25zLmNvbnRleHQpIHtcbiAgICAgICAgICAgIC8vIEVPRiBpcyBpbnNpZGUgdGhpcyBodW5rXG4gICAgICAgICAgICBsZXQgb2xkRU9GTmV3bGluZSA9ICgvXFxuJC8udGVzdChvbGRTdHIpKTtcbiAgICAgICAgICAgIGxldCBuZXdFT0ZOZXdsaW5lID0gKC9cXG4kLy50ZXN0KG5ld1N0cikpO1xuICAgICAgICAgICAgaWYgKGxpbmVzLmxlbmd0aCA9PSAwICYmICFvbGRFT0ZOZXdsaW5lKSB7XG4gICAgICAgICAgICAgIC8vIHNwZWNpYWwgY2FzZTogb2xkIGhhcyBubyBlb2wgYW5kIG5vIHRyYWlsaW5nIGNvbnRleHQ7IG5vLW5sIGNhbiBlbmQgdXAgYmVmb3JlIGFkZHNcbiAgICAgICAgICAgICAgY3VyUmFuZ2Uuc3BsaWNlKGh1bmsub2xkTGluZXMsIDAsICdcXFxcIE5vIG5ld2xpbmUgYXQgZW5kIG9mIGZpbGUnKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIW9sZEVPRk5ld2xpbmUgfHwgIW5ld0VPRk5ld2xpbmUpIHtcbiAgICAgICAgICAgICAgY3VyUmFuZ2UucHVzaCgnXFxcXCBObyBuZXdsaW5lIGF0IGVuZCBvZiBmaWxlJyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICAgIGh1bmtzLnB1c2goaHVuayk7XG5cbiAgICAgICAgICBvbGRSYW5nZVN0YXJ0ID0gMDtcbiAgICAgICAgICBuZXdSYW5nZVN0YXJ0ID0gMDtcbiAgICAgICAgICBjdXJSYW5nZSA9IFtdO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICBvbGRMaW5lICs9IGxpbmVzLmxlbmd0aDtcbiAgICAgIG5ld0xpbmUgKz0gbGluZXMubGVuZ3RoO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiB7XG4gICAgb2xkRmlsZU5hbWU6IG9sZEZpbGVOYW1lLCBuZXdGaWxlTmFtZTogbmV3RmlsZU5hbWUsXG4gICAgb2xkSGVhZGVyOiBvbGRIZWFkZXIsIG5ld0hlYWRlcjogbmV3SGVhZGVyLFxuICAgIGh1bmtzOiBodW5rc1xuICB9O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlVHdvRmlsZXNQYXRjaChvbGRGaWxlTmFtZSwgbmV3RmlsZU5hbWUsIG9sZFN0ciwgbmV3U3RyLCBvbGRIZWFkZXIsIG5ld0hlYWRlciwgb3B0aW9ucykge1xuICBjb25zdCBkaWZmID0gc3RydWN0dXJlZFBhdGNoKG9sZEZpbGVOYW1lLCBuZXdGaWxlTmFtZSwgb2xkU3RyLCBuZXdTdHIsIG9sZEhlYWRlciwgbmV3SGVhZGVyLCBvcHRpb25zKTtcblxuICBjb25zdCByZXQgPSBbXTtcbiAgaWYgKG9sZEZpbGVOYW1lID09IG5ld0ZpbGVOYW1lKSB7XG4gICAgcmV0LnB1c2goJ0luZGV4OiAnICsgb2xkRmlsZU5hbWUpO1xuICB9XG4gIHJldC5wdXNoKCc9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Jyk7XG4gIHJldC5wdXNoKCctLS0gJyArIGRpZmYub2xkRmlsZU5hbWUgKyAodHlwZW9mIGRpZmYub2xkSGVhZGVyID09PSAndW5kZWZpbmVkJyA/ICcnIDogJ1xcdCcgKyBkaWZmLm9sZEhlYWRlcikpO1xuICByZXQucHVzaCgnKysrICcgKyBkaWZmLm5ld0ZpbGVOYW1lICsgKHR5cGVvZiBkaWZmLm5ld0hlYWRlciA9PT0gJ3VuZGVmaW5lZCcgPyAnJyA6ICdcXHQnICsgZGlmZi5uZXdIZWFkZXIpKTtcblxuICBmb3IgKGxldCBpID0gMDsgaSA8IGRpZmYuaHVua3MubGVuZ3RoOyBpKyspIHtcbiAgICBjb25zdCBodW5rID0gZGlmZi5odW5rc1tpXTtcbiAgICByZXQucHVzaChcbiAgICAgICdAQCAtJyArIGh1bmsub2xkU3RhcnQgKyAnLCcgKyBodW5rLm9sZExpbmVzXG4gICAgICArICcgKycgKyBodW5rLm5ld1N0YXJ0ICsgJywnICsgaHVuay5uZXdMaW5lc1xuICAgICAgKyAnIEBAJ1xuICAgICk7XG4gICAgcmV0LnB1c2guYXBwbHkocmV0LCBodW5rLmxpbmVzKTtcbiAgfVxuXG4gIHJldHVybiByZXQuam9pbignXFxuJykgKyAnXFxuJztcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVBhdGNoKGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgcmV0dXJuIGNyZWF0ZVR3b0ZpbGVzUGF0Y2goZmlsZU5hbWUsIGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpO1xufVxuIl19 + + +/***/ }), +/* 15 */ +/***/ (function(module, exports) { + + /*istanbul ignore start*/"use strict"; + + exports.__esModule = true; + exports. /*istanbul ignore end*/arrayEqual = arrayEqual; + /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayStartsWith = arrayStartsWith; + function arrayEqual(a, b) { + if (a.length !== b.length) { + return false; + } + + return arrayStartsWith(a, b); + } + + function arrayStartsWith(array, start) { + if (start.length > array.length) { + return false; + } + + for (var i = 0; i < start.length; i++) { + if (start[i] !== array[i]) { + return false; + } + } + + return true; + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2FycmF5LmpzIl0sIm5hbWVzIjpbImFycmF5RXF1YWwiLCJhcnJheVN0YXJ0c1dpdGgiLCJhIiwiYiIsImxlbmd0aCIsImFycmF5Iiwic3RhcnQiLCJpIl0sIm1hcHBpbmdzIjoiOzs7Z0NBQWdCQSxVLEdBQUFBLFU7eURBUUFDLGUsR0FBQUEsZTtBQVJULFNBQVNELFVBQVQsQ0FBb0JFLENBQXBCLEVBQXVCQyxDQUF2QixFQUEwQjtBQUMvQixNQUFJRCxFQUFFRSxNQUFGLEtBQWFELEVBQUVDLE1BQW5CLEVBQTJCO0FBQ3pCLFdBQU8sS0FBUDtBQUNEOztBQUVELFNBQU9ILGdCQUFnQkMsQ0FBaEIsRUFBbUJDLENBQW5CLENBQVA7QUFDRDs7QUFFTSxTQUFTRixlQUFULENBQXlCSSxLQUF6QixFQUFnQ0MsS0FBaEMsRUFBdUM7QUFDNUMsTUFBSUEsTUFBTUYsTUFBTixHQUFlQyxNQUFNRCxNQUF6QixFQUFpQztBQUMvQixXQUFPLEtBQVA7QUFDRDs7QUFFRCxPQUFLLElBQUlHLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsTUFBTUYsTUFBMUIsRUFBa0NHLEdBQWxDLEVBQXVDO0FBQ3JDLFFBQUlELE1BQU1DLENBQU4sTUFBYUYsTUFBTUUsQ0FBTixDQUFqQixFQUEyQjtBQUN6QixhQUFPLEtBQVA7QUFDRDtBQUNGOztBQUVELFNBQU8sSUFBUDtBQUNEIiwiZmlsZSI6ImFycmF5LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGFycmF5RXF1YWwoYSwgYikge1xuICBpZiAoYS5sZW5ndGggIT09IGIubGVuZ3RoKSB7XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG5cbiAgcmV0dXJuIGFycmF5U3RhcnRzV2l0aChhLCBiKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGFycmF5U3RhcnRzV2l0aChhcnJheSwgc3RhcnQpIHtcbiAgaWYgKHN0YXJ0Lmxlbmd0aCA+IGFycmF5Lmxlbmd0aCkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgc3RhcnQubGVuZ3RoOyBpKyspIHtcbiAgICBpZiAoc3RhcnRbaV0gIT09IGFycmF5W2ldKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHRydWU7XG59XG4iXX0= + + +/***/ }), +/* 16 */ +/***/ (function(module, exports) { + + /*istanbul ignore start*/"use strict"; + + exports.__esModule = true; + exports. /*istanbul ignore end*/convertChangesToDMP = convertChangesToDMP; + // See: http://code.google.com/p/google-diff-match-patch/wiki/API + function convertChangesToDMP(changes) { + var ret = [], + change = /*istanbul ignore start*/void 0 /*istanbul ignore end*/, + operation = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; + for (var i = 0; i < changes.length; i++) { + change = changes[i]; + if (change.added) { + operation = 1; + } else if (change.removed) { + operation = -1; + } else { + operation = 0; + } + + ret.push([operation, change.value]); + } + return ret; + } + //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0L2RtcC5qcyJdLCJuYW1lcyI6WyJjb252ZXJ0Q2hhbmdlc1RvRE1QIiwiY2hhbmdlcyIsInJldCIsImNoYW5nZSIsIm9wZXJhdGlvbiIsImkiLCJsZW5ndGgiLCJhZGRlZCIsInJlbW92ZWQiLCJwdXNoIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7OztnQ0FDZ0JBLG1CLEdBQUFBLG1CO0FBRGhCO0FBQ08sU0FBU0EsbUJBQVQsQ0FBNkJDLE9BQTdCLEVBQXNDO0FBQzNDLE1BQUlDLE1BQU0sRUFBVjtBQUFBLE1BQ0lDLHdDQURKO0FBQUEsTUFFSUMsMkNBRko7QUFHQSxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUosUUFBUUssTUFBNUIsRUFBb0NELEdBQXBDLEVBQXlDO0FBQ3ZDRixhQUFTRixRQUFRSSxDQUFSLENBQVQ7QUFDQSxRQUFJRixPQUFPSSxLQUFYLEVBQWtCO0FBQ2hCSCxrQkFBWSxDQUFaO0FBQ0QsS0FGRCxNQUVPLElBQUlELE9BQU9LLE9BQVgsRUFBb0I7QUFDekJKLGtCQUFZLENBQUMsQ0FBYjtBQUNELEtBRk0sTUFFQTtBQUNMQSxrQkFBWSxDQUFaO0FBQ0Q7O0FBRURGLFFBQUlPLElBQUosQ0FBUyxDQUFDTCxTQUFELEVBQVlELE9BQU9PLEtBQW5CLENBQVQ7QUFDRDtBQUNELFNBQU9SLEdBQVA7QUFDRCIsImZpbGUiOiJkbXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBTZWU6IGh0dHA6Ly9jb2RlLmdvb2dsZS5jb20vcC9nb29nbGUtZGlmZi1tYXRjaC1wYXRjaC93aWtpL0FQSVxuZXhwb3J0IGZ1bmN0aW9uIGNvbnZlcnRDaGFuZ2VzVG9ETVAoY2hhbmdlcykge1xuICBsZXQgcmV0ID0gW10sXG4gICAgICBjaGFuZ2UsXG4gICAgICBvcGVyYXRpb247XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgY2hhbmdlcy5sZW5ndGg7IGkrKykge1xuICAgIGNoYW5nZSA9IGNoYW5nZXNbaV07XG4gICAgaWYgKGNoYW5nZS5hZGRlZCkge1xuICAgICAgb3BlcmF0aW9uID0gMTtcbiAgICB9IGVsc2UgaWYgKGNoYW5nZS5yZW1vdmVkKSB7XG4gICAgICBvcGVyYXRpb24gPSAtMTtcbiAgICB9IGVsc2Uge1xuICAgICAgb3BlcmF0aW9uID0gMDtcbiAgICB9XG5cbiAgICByZXQucHVzaChbb3BlcmF0aW9uLCBjaGFuZ2UudmFsdWVdKTtcbiAgfVxuICByZXR1cm4gcmV0O1xufVxuIl19 + + +/***/ }), +/* 17 */ +/***/ (function(module, exports) { + + /*istanbul ignore start*/'use strict'; + + exports.__esModule = true; + exports. /*istanbul ignore end*/convertChangesToXML = convertChangesToXML; + function convertChangesToXML(changes) { + var ret = []; + for (var i = 0; i < changes.length; i++) { + var change = changes[i]; + if (change.added) { + ret.push(''); + } else if (change.removed) { + ret.push(''); + } + + ret.push(escapeHTML(change.value)); + + if (change.added) { + ret.push(''); + } else if (change.removed) { + ret.push(''); + } + } + return ret.join(''); + } + + function escapeHTML(s) { + var n = s; + n = n.replace(/&/g, '&'); + n = n.replace(//g, '>'); + n = n.replace(/"/g, '"'); + + return n; + } + + +/***/ }) +/******/ ]) +}); +; + +/***/ }), + /***/ 21: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -319,13 +3379,49 @@ function _objectWithoutProperties(source, excluded) { /***/ }), +/***/ 23: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["url"]; }()); + +/***/ }), + +/***/ 24: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["hooks"]; }()); + +/***/ }), + /***/ 25: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["dom"]; }()); + +/***/ }), + +/***/ 26: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(54); + + +/***/ }), + +/***/ 27: +/***/ (function(module, exports) { + +(function() { module.exports = this["React"]; }()); + +/***/ }), + +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(34); +var arrayWithHoles = __webpack_require__(37); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(arr, i) { @@ -354,7 +3450,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(35); +var nonIterableRest = __webpack_require__(38); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); @@ -367,7 +3463,22 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 28: +/***/ 3: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -649,7 +3760,26 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 29: +/***/ 31: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(89)(); +} + + +/***/ }), + +/***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -672,22 +3802,32 @@ function _typeof(obj) { /***/ }), -/***/ 3: +/***/ 33: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 34: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } /***/ }), -/***/ 312: +/***/ 35: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), + +/***/ 357: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -698,35 +3838,35 @@ __webpack_require__.d(actions_namespaceObject, "resetBlocks", function() { retur __webpack_require__.d(actions_namespaceObject, "receiveBlocks", function() { return receiveBlocks; }); __webpack_require__.d(actions_namespaceObject, "updateBlockAttributes", function() { return updateBlockAttributes; }); __webpack_require__.d(actions_namespaceObject, "updateBlock", function() { return updateBlock; }); -__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return selectBlock; }); +__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return actions_selectBlock; }); __webpack_require__.d(actions_namespaceObject, "selectPreviousBlock", function() { return selectPreviousBlock; }); __webpack_require__.d(actions_namespaceObject, "selectNextBlock", function() { return selectNextBlock; }); __webpack_require__.d(actions_namespaceObject, "startMultiSelect", function() { return startMultiSelect; }); __webpack_require__.d(actions_namespaceObject, "stopMultiSelect", function() { return stopMultiSelect; }); -__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return multiSelect; }); +__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return actions_multiSelect; }); __webpack_require__.d(actions_namespaceObject, "clearSelectedBlock", function() { return clearSelectedBlock; }); __webpack_require__.d(actions_namespaceObject, "toggleSelection", function() { return toggleSelection; }); -__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return replaceBlocks; }); +__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return actions_replaceBlocks; }); __webpack_require__.d(actions_namespaceObject, "replaceBlock", function() { return replaceBlock; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return moveBlocksDown; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return moveBlocksUp; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return actions_moveBlocksDown; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return actions_moveBlocksUp; }); __webpack_require__.d(actions_namespaceObject, "moveBlockToPosition", function() { return moveBlockToPosition; }); -__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return insertBlock; }); -__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return insertBlocks; }); -__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return showInsertionPoint; }); -__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return hideInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return actions_insertBlock; }); +__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return actions_insertBlocks; }); +__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return actions_showInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return actions_hideInsertionPoint; }); __webpack_require__.d(actions_namespaceObject, "setTemplateValidity", function() { return setTemplateValidity; }); __webpack_require__.d(actions_namespaceObject, "synchronizeTemplate", function() { return synchronizeTemplate; }); __webpack_require__.d(actions_namespaceObject, "mergeBlocks", function() { return mergeBlocks; }); -__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return removeBlocks; }); +__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return actions_removeBlocks; }); __webpack_require__.d(actions_namespaceObject, "removeBlock", function() { return removeBlock; }); __webpack_require__.d(actions_namespaceObject, "toggleBlockMode", function() { return toggleBlockMode; }); __webpack_require__.d(actions_namespaceObject, "startTyping", function() { return startTyping; }); __webpack_require__.d(actions_namespaceObject, "stopTyping", function() { return stopTyping; }); __webpack_require__.d(actions_namespaceObject, "enterFormattedText", function() { return enterFormattedText; }); __webpack_require__.d(actions_namespaceObject, "exitFormattedText", function() { return exitFormattedText; }); -__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return insertDefaultBlock; }); -__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return updateBlockListSettings; }); +__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return actions_insertDefaultBlock; }); +__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return actions_updateBlockListSettings; }); __webpack_require__.d(actions_namespaceObject, "updateSettings", function() { return updateSettings; }); __webpack_require__.d(actions_namespaceObject, "__unstableSaveReusableBlock", function() { return __unstableSaveReusableBlock; }); __webpack_require__.d(actions_namespaceObject, "__unstableMarkLastChangeAsPersistent", function() { return __unstableMarkLastChangeAsPersistent; }); @@ -737,75 +3877,84 @@ __webpack_require__.d(selectors_namespaceObject, "INSERTER_UTILITY_MEDIUM", func __webpack_require__.d(selectors_namespaceObject, "INSERTER_UTILITY_LOW", function() { return INSERTER_UTILITY_LOW; }); __webpack_require__.d(selectors_namespaceObject, "INSERTER_UTILITY_NONE", function() { return INSERTER_UTILITY_NONE; }); __webpack_require__.d(selectors_namespaceObject, "getBlockDependantsCacheBust", function() { return getBlockDependantsCacheBust; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockName", function() { return getBlockName; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockValid", function() { return isBlockValid; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockName", function() { return selectors_getBlockName; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockValid", function() { return selectors_isBlockValid; }); __webpack_require__.d(selectors_namespaceObject, "getBlockAttributes", function() { return getBlockAttributes; }); -__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return getBlock; }); -__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return __unstableGetBlockWithoutInnerBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return selectors_getBlock; }); +__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return selectors_unstableGetBlockWithoutInnerBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getBlocks", function() { return getBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsOfDescendants", function() { return selectors_getClientIdsOfDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsWithDescendants", function() { return getClientIdsWithDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getGlobalBlockCount", function() { return getGlobalBlockCount; }); -__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return getBlocksByClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockCount", function() { return getBlockCount; }); +__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return selectors_getBlocksByClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockCount", function() { return selectors_getBlockCount; }); __webpack_require__.d(selectors_namespaceObject, "getBlockSelectionStart", function() { return getBlockSelectionStart; }); __webpack_require__.d(selectors_namespaceObject, "getBlockSelectionEnd", function() { return getBlockSelectionEnd; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockCount", function() { return getSelectedBlockCount; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockCount", function() { return selectors_getSelectedBlockCount; }); __webpack_require__.d(selectors_namespaceObject, "hasSelectedBlock", function() { return hasSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockClientId", function() { return getSelectedBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlock", function() { return getSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockRootClientId", function() { return getBlockRootClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockClientId", function() { return selectors_getSelectedBlockClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlock", function() { return selectors_getSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockRootClientId", function() { return selectors_getBlockRootClientId; }); __webpack_require__.d(selectors_namespaceObject, "getBlockHierarchyRootClientId", function() { return getBlockHierarchyRootClientId; }); __webpack_require__.d(selectors_namespaceObject, "getAdjacentBlockClientId", function() { return getAdjacentBlockClientId; }); __webpack_require__.d(selectors_namespaceObject, "getPreviousBlockClientId", function() { return getPreviousBlockClientId; }); __webpack_require__.d(selectors_namespaceObject, "getNextBlockClientId", function() { return getNextBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlocksInitialCaretPosition", function() { return getSelectedBlocksInitialCaretPosition; }); -__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlockClientIds", function() { return getMultiSelectedBlockClientIds; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlocksInitialCaretPosition", function() { return selectors_getSelectedBlocksInitialCaretPosition; }); +__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlockClientIds", function() { return selectors_getMultiSelectedBlockClientIds; }); __webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocks", function() { return getMultiSelectedBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getFirstMultiSelectedBlockClientId", function() { return getFirstMultiSelectedBlockClientId; }); __webpack_require__.d(selectors_namespaceObject, "getLastMultiSelectedBlockClientId", function() { return getLastMultiSelectedBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "isFirstMultiSelectedBlock", function() { return isFirstMultiSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockMultiSelected", function() { return isBlockMultiSelected; }); -__webpack_require__.d(selectors_namespaceObject, "isAncestorMultiSelected", function() { return isAncestorMultiSelected; }); +__webpack_require__.d(selectors_namespaceObject, "isFirstMultiSelectedBlock", function() { return selectors_isFirstMultiSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockMultiSelected", function() { return selectors_isBlockMultiSelected; }); +__webpack_require__.d(selectors_namespaceObject, "isAncestorMultiSelected", function() { return selectors_isAncestorMultiSelected; }); __webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksStartClientId", function() { return getMultiSelectedBlocksStartClientId; }); __webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksEndClientId", function() { return getMultiSelectedBlocksEndClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockOrder", function() { return getBlockOrder; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockIndex", function() { return getBlockIndex; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockSelected", function() { return isBlockSelected; }); -__webpack_require__.d(selectors_namespaceObject, "hasSelectedInnerBlock", function() { return hasSelectedInnerBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockOrder", function() { return selectors_getBlockOrder; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockIndex", function() { return selectors_getBlockIndex; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockSelected", function() { return selectors_isBlockSelected; }); +__webpack_require__.d(selectors_namespaceObject, "hasSelectedInnerBlock", function() { return selectors_hasSelectedInnerBlock; }); __webpack_require__.d(selectors_namespaceObject, "isBlockWithinSelection", function() { return isBlockWithinSelection; }); -__webpack_require__.d(selectors_namespaceObject, "hasMultiSelection", function() { return hasMultiSelection; }); -__webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function() { return isMultiSelecting; }); -__webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return isSelectionEnabled; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return getBlockMode; }); +__webpack_require__.d(selectors_namespaceObject, "hasMultiSelection", function() { return selectors_hasMultiSelection; }); +__webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function() { return selectors_isMultiSelecting; }); +__webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return selectors_isSelectionEnabled; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; }); __webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; }); __webpack_require__.d(selectors_namespaceObject, "isCaretWithinFormattedText", function() { return selectors_isCaretWithinFormattedText; }); __webpack_require__.d(selectors_namespaceObject, "getBlockInsertionPoint", function() { return getBlockInsertionPoint; }); __webpack_require__.d(selectors_namespaceObject, "isBlockInsertionPointVisible", function() { return isBlockInsertionPointVisible; }); __webpack_require__.d(selectors_namespaceObject, "isValidTemplate", function() { return isValidTemplate; }); __webpack_require__.d(selectors_namespaceObject, "getTemplate", function() { return getTemplate; }); -__webpack_require__.d(selectors_namespaceObject, "getTemplateLock", function() { return getTemplateLock; }); -__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return canInsertBlockType; }); -__webpack_require__.d(selectors_namespaceObject, "getInserterItems", function() { return getInserterItems; }); +__webpack_require__.d(selectors_namespaceObject, "getTemplateLock", function() { return selectors_getTemplateLock; }); +__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return selectors_canInsertBlockType; }); +__webpack_require__.d(selectors_namespaceObject, "getInserterItems", function() { return selectors_getInserterItems; }); __webpack_require__.d(selectors_namespaceObject, "hasInserterItems", function() { return hasInserterItems; }); __webpack_require__.d(selectors_namespaceObject, "getBlockListSettings", function() { return getBlockListSettings; }); -__webpack_require__.d(selectors_namespaceObject, "getSettings", function() { return getSettings; }); +__webpack_require__.d(selectors_namespaceObject, "getSettings", function() { return selectors_getSettings; }); __webpack_require__.d(selectors_namespaceObject, "isLastBlockChangePersistent", function() { return isLastBlockChangePersistent; }); // EXTERNAL MODULE: external {"this":["wp","blocks"]} var external_this_wp_blocks_ = __webpack_require__(14); +// EXTERNAL MODULE: external {"this":["wp","coreData"]} +var external_this_wp_coreData_ = __webpack_require__(72); + +// EXTERNAL MODULE: external {"this":["wp","richText"]} +var external_this_wp_richText_ = __webpack_require__(20); + +// EXTERNAL MODULE: external {"this":["wp","viewport"]} +var external_this_wp_viewport_ = __webpack_require__(40); + // EXTERNAL MODULE: external {"this":["wp","data"]} var external_this_wp_data_ = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules var objectWithoutProperties = __webpack_require__(21); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(15); @@ -827,20 +3976,22 @@ var PREFERENCES_DEFAULTS = { /** * The default editor settings * - * alignWide boolean Enable/Disable Wide/Full Alignments - * colors Array Palette colors - * disableCustomColors boolean Whether or not the custom colors are disabled - * fontSizes Array Available font sizes - * disableCustomFontSizes boolean Whether or not the custom font sizes are disabled - * imageSizes Array Available image sizes - * maxWidth number Max width to constraint resizing - * allowedBlockTypes boolean|Array Allowed block types - * hasFixedToolbar boolean Whether or not the editor toolbar is fixed - * focusMode boolean Whether the focus mode is enabled or not - * styles Array Editor Styles - * isRTL boolean Whether the editor is in RTL mode - * bodyPlaceholder string Empty post placeholder - * titlePlaceholder string Empty title placeholder + * alignWide boolean Enable/Disable Wide/Full Alignments + * availableLegacyWidgets Array Array of objects representing the legacy widgets available. + * colors Array Palette colors + * disableCustomColors boolean Whether or not the custom colors are disabled + * fontSizes Array Available font sizes + * disableCustomFontSizes boolean Whether or not the custom font sizes are disabled + * imageSizes Array Available image sizes + * maxWidth number Max width to constraint resizing + * allowedBlockTypes boolean|Array Allowed block types + * hasFixedToolbar boolean Whether or not the editor toolbar is fixed + * hasPermissionsToManageWidgets boolean Whether or not the user is able to manage widgets. + * focusMode boolean Whether the focus mode is enabled or not + * styles Array Editor Styles + * isRTL boolean Whether the editor is in RTL mode + * bodyPlaceholder string Empty post placeholder + * titlePlaceholder string Empty title placeholder */ var SETTINGS_DEFAULTS = { @@ -932,7 +4083,9 @@ var SETTINGS_DEFAULTS = { // Maximum upload size in bytes allowed for the site. maxUploadFileSize: 0, // List of allowed mime types and file extensions. - allowedMimeTypes: null + allowedMimeTypes: null, + availableLegacyWidgets: {}, + hasPermissionsToManageWidgets: false }; // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/array.js @@ -1548,7 +4701,7 @@ var reducer_blocks = Object(external_lodash_["flow"])(external_this_wp_data_["co * @return {boolean} Updated state. */ -function isTyping() { +function reducer_isTyping() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var action = arguments.length > 1 ? arguments[1] : undefined; @@ -1571,7 +4724,7 @@ function isTyping() { * @return {boolean} Updated state. */ -function isCaretWithinFormattedText() { +function reducer_isCaretWithinFormattedText() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var action = arguments.length > 1 ? arguments[1] : undefined; @@ -1784,7 +4937,7 @@ function reducer_template() { * @return {Object} Updated state. */ -function settings() { +function reducer_settings() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SETTINGS_DEFAULTS; var action = arguments.length > 1 ? arguments[1] : undefined; @@ -1881,30 +5034,34 @@ var reducer_blockListSettings = function blockListSettings() { }; /* harmony default export */ var store_reducer = (Object(external_this_wp_data_["combineReducers"])({ blocks: reducer_blocks, - isTyping: isTyping, - isCaretWithinFormattedText: isCaretWithinFormattedText, + isTyping: reducer_isTyping, + isCaretWithinFormattedText: reducer_isCaretWithinFormattedText, blockSelection: blockSelection, blocksMode: blocksMode, blockListSettings: reducer_blockListSettings, insertionPoint: insertionPoint, template: reducer_template, - settings: settings, + settings: reducer_settings, preferences: preferences })); // EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(64); +var refx = __webpack_require__(70); var refx_default = /*#__PURE__*/__webpack_require__.n(refx); // EXTERNAL MODULE: ./node_modules/redux-multi/lib/index.js -var lib = __webpack_require__(87); +var lib = __webpack_require__(97); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(25); +var slicedToArray = __webpack_require__(28); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(44); +var external_this_wp_a11y_ = __webpack_require__(48); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js +var regenerator = __webpack_require__(26); +var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/controls.js @@ -1935,7 +5092,7 @@ function controls_select(storeName, selectorName) { args: args }; } -var controls = { +var controls_controls = { SELECT: Object(external_this_wp_data_["createRegistryControl"])(function (registry) { return function (_ref) { var _registry$select; @@ -1947,18 +5104,20 @@ var controls = { }; }) }; -/* harmony default export */ var store_controls = (controls); +/* harmony default export */ var store_controls = (controls_controls); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/actions.js + + var _marked = /*#__PURE__*/ -regeneratorRuntime.mark(selectPreviousBlock), +regenerator_default.a.mark(selectPreviousBlock), _marked2 = /*#__PURE__*/ -regeneratorRuntime.mark(selectNextBlock), +regenerator_default.a.mark(selectNextBlock), _marked3 = /*#__PURE__*/ -regeneratorRuntime.mark(removeBlocks); +regenerator_default.a.mark(actions_removeBlocks); /** * External dependencies @@ -2053,7 +5212,7 @@ function updateBlock(clientId, updates) { * @return {Object} Action object. */ -function selectBlock(clientId) { +function actions_selectBlock(clientId) { var initialPosition = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; return { type: 'SELECT_BLOCK', @@ -2070,7 +5229,7 @@ function selectBlock(clientId) { function selectPreviousBlock(clientId) { var previousBlockClientId; - return regeneratorRuntime.wrap(function selectPreviousBlock$(_context) { + return regenerator_default.a.wrap(function selectPreviousBlock$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -2080,7 +5239,7 @@ function selectPreviousBlock(clientId) { case 2: previousBlockClientId = _context.sent; _context.next = 5; - return selectBlock(previousBlockClientId, -1); + return actions_selectBlock(previousBlockClientId, -1); case 5: case "end": @@ -2098,7 +5257,7 @@ function selectPreviousBlock(clientId) { function selectNextBlock(clientId) { var nextBlockClientId; - return regeneratorRuntime.wrap(function selectNextBlock$(_context2) { + return regenerator_default.a.wrap(function selectNextBlock$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: @@ -2108,7 +5267,7 @@ function selectNextBlock(clientId) { case 2: nextBlockClientId = _context2.sent; _context2.next = 5; - return selectBlock(nextBlockClientId); + return actions_selectBlock(nextBlockClientId); case 5: case "end": @@ -2148,7 +5307,7 @@ function stopMultiSelect() { * @return {Object} Action object. */ -function multiSelect(start, end) { +function actions_multiSelect(start, end) { return { type: 'MULTI_SELECT', start: start, @@ -2192,7 +5351,7 @@ function toggleSelection() { * @return {Object} Action object. */ -function replaceBlocks(clientIds, blocks) { +function actions_replaceBlocks(clientIds, blocks) { return { type: 'REPLACE_BLOCKS', clientIds: Object(external_lodash_["castArray"])(clientIds), @@ -2211,7 +5370,7 @@ function replaceBlocks(clientIds, blocks) { */ function replaceBlock(clientId, block) { - return replaceBlocks(clientId, block); + return actions_replaceBlocks(clientId, block); } /** * Higher-order action creator which, given the action type to dispatch creates @@ -2232,8 +5391,8 @@ function createOnMove(type) { }; } -var moveBlocksDown = createOnMove('MOVE_BLOCKS_DOWN'); -var moveBlocksUp = createOnMove('MOVE_BLOCKS_UP'); +var actions_moveBlocksDown = createOnMove('MOVE_BLOCKS_DOWN'); +var actions_moveBlocksUp = createOnMove('MOVE_BLOCKS_UP'); /** * Returns an action object signalling that an indexed block should be moved * to a new index. @@ -2267,9 +5426,9 @@ function moveBlockToPosition(clientId, fromRootClientId, toRootClientId, index) * @return {Object} Action object. */ -function insertBlock(block, index, rootClientId) { +function actions_insertBlock(block, index, rootClientId) { var updateSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; - return insertBlocks([block], index, rootClientId, updateSelection); + return actions_insertBlocks([block], index, rootClientId, updateSelection); } /** * Returns an action object used in signalling that an array of blocks should @@ -2283,7 +5442,7 @@ function insertBlock(block, index, rootClientId) { * @return {Object} Action object. */ -function insertBlocks(blocks, index, rootClientId) { +function actions_insertBlocks(blocks, index, rootClientId) { var updateSelection = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; return { type: 'INSERT_BLOCKS', @@ -2305,7 +5464,7 @@ function insertBlocks(blocks, index, rootClientId) { * @return {Object} Action object. */ -function showInsertionPoint(rootClientId, index) { +function actions_showInsertionPoint(rootClientId, index) { return { type: 'SHOW_INSERTION_POINT', rootClientId: rootClientId, @@ -2318,7 +5477,7 @@ function showInsertionPoint(rootClientId, index) { * @return {Object} Action object. */ -function hideInsertionPoint() { +function actions_hideInsertionPoint() { return { type: 'HIDE_INSERTION_POINT' }; @@ -2372,11 +5531,11 @@ function mergeBlocks(firstBlockClientId, secondBlockClientId) { * selected when a block is removed. */ -function removeBlocks(clientIds) { +function actions_removeBlocks(clientIds) { var selectPrevious, count, _args3 = arguments; - return regeneratorRuntime.wrap(function removeBlocks$(_context3) { + return regenerator_default.a.wrap(function removeBlocks$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: @@ -2411,7 +5570,7 @@ function removeBlocks(clientIds) { } _context3.next = 13; - return insertDefaultBlock(); + return actions_insertDefaultBlock(); case 13: case "end": @@ -2432,7 +5591,7 @@ function removeBlocks(clientIds) { */ function removeBlock(clientId, selectPrevious) { - return removeBlocks([clientId], selectPrevious); + return actions_removeBlocks([clientId], selectPrevious); } /** * Returns an action object used to toggle the block editing mode between @@ -2505,9 +5664,9 @@ function exitFormattedText() { * @return {Object} Action object */ -function insertDefaultBlock(attributes, rootClientId, index) { +function actions_insertDefaultBlock(attributes, rootClientId, index) { var block = Object(external_this_wp_blocks_["createBlock"])(Object(external_this_wp_blocks_["getDefaultBlockName"])(), attributes); - return insertBlock(block, index, rootClientId); + return actions_insertBlock(block, index, rootClientId); } /** * Returns an action object that changes the nested settings of a given block. @@ -2519,7 +5678,7 @@ function insertDefaultBlock(attributes, rootClientId, index) { * @return {Object} Action object */ -function updateBlockListSettings(clientId, settings) { +function actions_updateBlockListSettings(clientId, settings) { return { type: 'UPDATE_BLOCK_LIST_SETTINGS', clientId: clientId, @@ -2570,7 +5729,7 @@ function __unstableMarkLastChangeAsPersistent() { } // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(28); +var rememo = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/store/selectors.js @@ -2634,8 +5793,8 @@ var EMPTY_OBJECT = {}; var getBlockDependantsCacheBust = Object(rememo["a" /* default */])(function () { return []; }, function (state, clientId) { - return Object(external_lodash_["map"])(getBlockOrder(state, clientId), function (innerBlockClientId) { - return getBlock(state, innerBlockClientId); + return Object(external_lodash_["map"])(selectors_getBlockOrder(state, clientId), function (innerBlockClientId) { + return selectors_getBlock(state, innerBlockClientId); }); }); /** @@ -2648,7 +5807,7 @@ var getBlockDependantsCacheBust = Object(rememo["a" /* default */])(function () * @return {string} Block name. */ -function getBlockName(state, clientId) { +function selectors_getBlockName(state, clientId) { var block = state.blocks.byClientId[clientId]; return block ? block.name : null; } @@ -2661,7 +5820,7 @@ function getBlockName(state, clientId) { * @return {boolean} Is Valid. */ -function isBlockValid(state, clientId) { +function selectors_isBlockValid(state, clientId) { var block = state.blocks.byClientId[clientId]; return !!block && block.isValid; } @@ -2719,7 +5878,7 @@ var getBlockAttributes = Object(rememo["a" /* default */])(function (state, clie * @return {Object} Parsed block object. */ -var getBlock = Object(rememo["a" /* default */])(function (state, clientId) { +var selectors_getBlock = Object(rememo["a" /* default */])(function (state, clientId) { var block = state.blocks.byClientId[clientId]; if (!block) { @@ -2733,7 +5892,7 @@ var getBlock = Object(rememo["a" /* default */])(function (state, clientId) { }, function (state, clientId) { return [].concat(Object(toConsumableArray["a" /* default */])(getBlockAttributes.getDependants(state, clientId)), [getBlockDependantsCacheBust(state, clientId)]); }); -var __unstableGetBlockWithoutInnerBlocks = Object(rememo["a" /* default */])(function (state, clientId) { +var selectors_unstableGetBlockWithoutInnerBlocks = Object(rememo["a" /* default */])(function (state, clientId) { var block = state.blocks.byClientId[clientId]; if (!block) { @@ -2760,8 +5919,8 @@ var __unstableGetBlockWithoutInnerBlocks = Object(rememo["a" /* default */])(fun */ var getBlocks = Object(rememo["a" /* default */])(function (state, rootClientId) { - return Object(external_lodash_["map"])(getBlockOrder(state, rootClientId), function (clientId) { - return getBlock(state, clientId); + return Object(external_lodash_["map"])(selectors_getBlockOrder(state, rootClientId), function (clientId) { + return selectors_getBlock(state, clientId); }); }, function (state) { return [state.blocks.byClientId, state.blocks.order, state.blocks.attributes]; @@ -2778,7 +5937,7 @@ var getBlocks = Object(rememo["a" /* default */])(function (state, rootClientId) var selectors_getClientIdsOfDescendants = function getClientIdsOfDescendants(state, clientIds) { return Object(external_lodash_["flatMap"])(clientIds, function (clientId) { - var descendants = getBlockOrder(state, clientId); + var descendants = selectors_getBlockOrder(state, clientId); return [].concat(Object(toConsumableArray["a" /* default */])(descendants), Object(toConsumableArray["a" /* default */])(getClientIdsOfDescendants(state, descendants))); }); }; @@ -2792,7 +5951,7 @@ var selectors_getClientIdsOfDescendants = function getClientIdsOfDescendants(sta */ var getClientIdsWithDescendants = Object(rememo["a" /* default */])(function (state) { - var topLevelIds = getBlockOrder(state); + var topLevelIds = selectors_getBlockOrder(state); return [].concat(Object(toConsumableArray["a" /* default */])(topLevelIds), Object(toConsumableArray["a" /* default */])(selectors_getClientIdsOfDescendants(state, topLevelIds))); }, function (state) { return [state.blocks.order]; @@ -2831,9 +5990,9 @@ var getGlobalBlockCount = Object(rememo["a" /* default */])(function (state, blo * @return {WPBlock[]} Block objects. */ -var getBlocksByClientId = Object(rememo["a" /* default */])(function (state, clientIds) { +var selectors_getBlocksByClientId = Object(rememo["a" /* default */])(function (state, clientIds) { return Object(external_lodash_["map"])(Object(external_lodash_["castArray"])(clientIds), function (clientId) { - return getBlock(state, clientId); + return selectors_getBlock(state, clientId); }); }, function (state) { return [getPostMeta(state), state.blocks.byClientId, state.blocks.order, state.blocks.attributes]; @@ -2847,8 +6006,8 @@ var getBlocksByClientId = Object(rememo["a" /* default */])(function (state, cli * @return {number} Number of blocks in the post. */ -function getBlockCount(state, rootClientId) { - return getBlockOrder(state, rootClientId).length; +function selectors_getBlockCount(state, rootClientId) { + return selectors_getBlockOrder(state, rootClientId).length; } /** * Returns the current block selection start. This value may be null, and it @@ -2884,8 +6043,8 @@ function getBlockSelectionEnd(state) { * @return {number} Number of blocks selected in the post. */ -function getSelectedBlockCount(state) { - var multiSelectedBlockCount = getMultiSelectedBlockClientIds(state).length; +function selectors_getSelectedBlockCount(state) { + var multiSelectedBlockCount = selectors_getMultiSelectedBlockClientIds(state).length; if (multiSelectedBlockCount) { return multiSelectedBlockCount; @@ -2916,7 +6075,7 @@ function hasSelectedBlock(state) { * @return {?string} Selected block client ID. */ -function getSelectedBlockClientId(state) { +function selectors_getSelectedBlockClientId(state) { var _state$blockSelection2 = state.blockSelection, start = _state$blockSelection2.start, end = _state$blockSelection2.end; // We need to check the block exists because the current blockSelection @@ -2933,9 +6092,9 @@ function getSelectedBlockClientId(state) { * @return {?Object} Selected block. */ -function getSelectedBlock(state) { - var clientId = getSelectedBlockClientId(state); - return clientId ? getBlock(state, clientId) : null; +function selectors_getSelectedBlock(state) { + var clientId = selectors_getSelectedBlockClientId(state); + return clientId ? selectors_getBlock(state, clientId) : null; } /** * Given a block client ID, returns the root block from which the block is @@ -2948,7 +6107,7 @@ function getSelectedBlock(state) { * @return {?string} Root client ID, if exists */ -var getBlockRootClientId = Object(rememo["a" /* default */])(function (state, clientId) { +var selectors_getBlockRootClientId = Object(rememo["a" /* default */])(function (state, clientId) { var order = state.blocks.order; for (var rootClientId in order) { @@ -2976,7 +6135,7 @@ var getBlockHierarchyRootClientId = Object(rememo["a" /* default */])(function ( while (rootClientId) { current = rootClientId; - rootClientId = getBlockRootClientId(state, current); + rootClientId = selectors_getBlockRootClientId(state, current); } return current; @@ -3003,7 +6162,7 @@ function getAdjacentBlockClientId(state, startClientId) { // Default to selected block. if (startClientId === undefined) { - startClientId = getSelectedBlockClientId(state); + startClientId = selectors_getSelectedBlockClientId(state); } // Try multi-selection starting at extent based on modifier. @@ -3022,7 +6181,7 @@ function getAdjacentBlockClientId(state, startClientId) { // empty string top-level root by explicitly testing against null. - var rootClientId = getBlockRootClientId(state, startClientId); + var rootClientId = selectors_getBlockRootClientId(state, startClientId); if (rootClientId === null) { return null; @@ -3084,7 +6243,7 @@ function getNextBlockClientId(state, startClientId) { * @return {?Object} Selected block. */ -function getSelectedBlocksInitialCaretPosition(state) { +function selectors_getSelectedBlocksInitialCaretPosition(state) { var _state$blockSelection3 = state.blockSelection, start = _state$blockSelection3.start, end = _state$blockSelection3.end; @@ -3104,7 +6263,7 @@ function getSelectedBlocksInitialCaretPosition(state) { * @return {Array} Multi-selected block client IDs. */ -var getMultiSelectedBlockClientIds = Object(rememo["a" /* default */])(function (state) { +var selectors_getMultiSelectedBlockClientIds = Object(rememo["a" /* default */])(function (state) { var _state$blockSelection4 = state.blockSelection, start = _state$blockSelection4.start, end = _state$blockSelection4.end; @@ -3116,13 +6275,13 @@ var getMultiSelectedBlockClientIds = Object(rememo["a" /* default */])(function // by explicitly testing against null. - var rootClientId = getBlockRootClientId(state, start); + var rootClientId = selectors_getBlockRootClientId(state, start); if (rootClientId === null) { return []; } - var blockOrder = getBlockOrder(state, rootClientId); + var blockOrder = selectors_getBlockOrder(state, rootClientId); var startIndex = blockOrder.indexOf(start); var endIndex = blockOrder.indexOf(end); @@ -3144,17 +6303,17 @@ var getMultiSelectedBlockClientIds = Object(rememo["a" /* default */])(function */ var getMultiSelectedBlocks = Object(rememo["a" /* default */])(function (state) { - var multiSelectedBlockClientIds = getMultiSelectedBlockClientIds(state); + var multiSelectedBlockClientIds = selectors_getMultiSelectedBlockClientIds(state); if (!multiSelectedBlockClientIds.length) { return EMPTY_ARRAY; } return multiSelectedBlockClientIds.map(function (clientId) { - return getBlock(state, clientId); + return selectors_getBlock(state, clientId); }); }, function (state) { - return [].concat(Object(toConsumableArray["a" /* default */])(getMultiSelectedBlockClientIds.getDependants(state)), [state.blocks.byClientId, state.blocks.order, state.blocks.attributes, getPostMeta(state)]); + return [].concat(Object(toConsumableArray["a" /* default */])(selectors_getMultiSelectedBlockClientIds.getDependants(state)), [state.blocks.byClientId, state.blocks.order, state.blocks.attributes, getPostMeta(state)]); }); /** * Returns the client ID of the first block in the multi-selection set, or null @@ -3166,7 +6325,7 @@ var getMultiSelectedBlocks = Object(rememo["a" /* default */])(function (state) */ function getFirstMultiSelectedBlockClientId(state) { - return Object(external_lodash_["first"])(getMultiSelectedBlockClientIds(state)) || null; + return Object(external_lodash_["first"])(selectors_getMultiSelectedBlockClientIds(state)) || null; } /** * Returns the client ID of the last block in the multi-selection set, or null @@ -3178,7 +6337,7 @@ function getFirstMultiSelectedBlockClientId(state) { */ function getLastMultiSelectedBlockClientId(state) { - return Object(external_lodash_["last"])(getMultiSelectedBlockClientIds(state)) || null; + return Object(external_lodash_["last"])(selectors_getMultiSelectedBlockClientIds(state)) || null; } /** * Checks if possibleAncestorId is an ancestor of possibleDescendentId. @@ -3195,7 +6354,7 @@ var isAncestorOf = Object(rememo["a" /* default */])(function (state, possibleAn var idToCheck = possibleDescendentId; while (possibleAncestorId !== idToCheck && idToCheck) { - idToCheck = getBlockRootClientId(state, idToCheck); + idToCheck = selectors_getBlockRootClientId(state, idToCheck); } return possibleAncestorId === idToCheck; @@ -3213,7 +6372,7 @@ var isAncestorOf = Object(rememo["a" /* default */])(function (state, possibleAn * @return {boolean} Whether block is first in multi-selection. */ -function isFirstMultiSelectedBlock(state, clientId) { +function selectors_isFirstMultiSelectedBlock(state, clientId) { return getFirstMultiSelectedBlockClientId(state) === clientId; } /** @@ -3226,8 +6385,8 @@ function isFirstMultiSelectedBlock(state, clientId) { * @return {boolean} Whether block is in multi-selection set. */ -function isBlockMultiSelected(state, clientId) { - return getMultiSelectedBlockClientIds(state).indexOf(clientId) !== -1; +function selectors_isBlockMultiSelected(state, clientId) { + return selectors_getMultiSelectedBlockClientIds(state).indexOf(clientId) !== -1; } /** * Returns true if an ancestor of the block is multi-selected, or false @@ -3240,13 +6399,13 @@ function isBlockMultiSelected(state, clientId) { * set. */ -var isAncestorMultiSelected = Object(rememo["a" /* default */])(function (state, clientId) { +var selectors_isAncestorMultiSelected = Object(rememo["a" /* default */])(function (state, clientId) { var ancestorClientId = clientId; var isMultiSelected = false; while (ancestorClientId && !isMultiSelected) { - ancestorClientId = getBlockRootClientId(state, ancestorClientId); - isMultiSelected = isBlockMultiSelected(state, ancestorClientId); + ancestorClientId = selectors_getBlockRootClientId(state, ancestorClientId); + isMultiSelected = selectors_isBlockMultiSelected(state, ancestorClientId); } return isMultiSelected; @@ -3312,7 +6471,7 @@ function getMultiSelectedBlocksEndClientId(state) { * @return {Array} Ordered client IDs of editor blocks. */ -function getBlockOrder(state, rootClientId) { +function selectors_getBlockOrder(state, rootClientId) { return state.blocks.order[rootClientId || ''] || EMPTY_ARRAY; } /** @@ -3326,8 +6485,8 @@ function getBlockOrder(state, rootClientId) { * @return {number} Index at which block exists in order. */ -function getBlockIndex(state, clientId, rootClientId) { - return getBlockOrder(state, rootClientId).indexOf(clientId); +function selectors_getBlockIndex(state, clientId, rootClientId) { + return selectors_getBlockOrder(state, rootClientId).indexOf(clientId); } /** * Returns true if the block corresponding to the specified client ID is @@ -3339,7 +6498,7 @@ function getBlockIndex(state, clientId, rootClientId) { * @return {boolean} Whether block is selected and multi-selection exists. */ -function isBlockSelected(state, clientId) { +function selectors_isBlockSelected(state, clientId) { var _state$blockSelection7 = state.blockSelection, start = _state$blockSelection7.start, end = _state$blockSelection7.end; @@ -3360,10 +6519,10 @@ function isBlockSelected(state, clientId) { * @return {boolean} Whether the block as an inner block selected */ -function hasSelectedInnerBlock(state, clientId) { +function selectors_hasSelectedInnerBlock(state, clientId) { var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - return Object(external_lodash_["some"])(getBlockOrder(state, clientId), function (innerClientId) { - return isBlockSelected(state, innerClientId) || isBlockMultiSelected(state, innerClientId) || deep && hasSelectedInnerBlock(state, innerClientId, deep); + return Object(external_lodash_["some"])(selectors_getBlockOrder(state, clientId), function (innerClientId) { + return selectors_isBlockSelected(state, innerClientId) || selectors_isBlockMultiSelected(state, innerClientId) || deep && selectors_hasSelectedInnerBlock(state, innerClientId, deep); }); } /** @@ -3384,7 +6543,7 @@ function isBlockWithinSelection(state, clientId) { return false; } - var clientIds = getMultiSelectedBlockClientIds(state); + var clientIds = selectors_getMultiSelectedBlockClientIds(state); var index = clientIds.indexOf(clientId); return index > -1 && index < clientIds.length - 1; } @@ -3396,7 +6555,7 @@ function isBlockWithinSelection(state, clientId) { * @return {boolean} Whether multi-selection has been made. */ -function hasMultiSelection(state) { +function selectors_hasMultiSelection(state) { var _state$blockSelection8 = state.blockSelection, start = _state$blockSelection8.start, end = _state$blockSelection8.end; @@ -3414,7 +6573,7 @@ function hasMultiSelection(state) { * @return {boolean} True if multi-selecting, false if not. */ -function isMultiSelecting(state) { +function selectors_isMultiSelecting(state) { return state.blockSelection.isMultiSelecting; } /** @@ -3425,7 +6584,7 @@ function isMultiSelecting(state) { * @return {boolean} True if it should be possible to multi-select blocks, false if multi-selection is disabled. */ -function isSelectionEnabled(state) { +function selectors_isSelectionEnabled(state) { return state.blockSelection.isEnabled; } /** @@ -3438,7 +6597,7 @@ function isSelectionEnabled(state) { * @return {Object} Block editing mode. */ -function getBlockMode(state, clientId) { +function selectors_getBlockMode(state, clientId) { return state.blocksMode[clientId] || 'visual'; } /** @@ -3484,10 +6643,10 @@ function getBlockInsertionPoint(state) { var end = blockSelection.end; if (end) { - rootClientId = getBlockRootClientId(state, end) || undefined; - index = getBlockIndex(state, end, rootClientId) + 1; + rootClientId = selectors_getBlockRootClientId(state, end) || undefined; + index = selectors_getBlockIndex(state, end, rootClientId) + 1; } else { - index = getBlockOrder(state).length; + index = selectors_getBlockOrder(state).length; } return { @@ -3536,7 +6695,7 @@ function getTemplate(state) { * @return {?string} Block Template Lock */ -function getTemplateLock(state, rootClientId) { +function selectors_getTemplateLock(state, rootClientId) { if (!rootClientId) { return state.settings.templateLock; } @@ -3584,7 +6743,7 @@ var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoiz return false; } - var _getSettings = getSettings(state), + var _getSettings = selectors_getSettings(state), allowedBlockTypes = _getSettings.allowedBlockTypes; var isBlockAllowedInEditor = checkAllowList(allowedBlockTypes, blockName, true); @@ -3593,7 +6752,7 @@ var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoiz return false; } - var isLocked = !!getTemplateLock(state, rootClientId); + var isLocked = !!selectors_getTemplateLock(state, rootClientId); if (isLocked) { return false; @@ -3603,7 +6762,7 @@ var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoiz var parentAllowedBlocks = Object(external_lodash_["get"])(parentBlockListSettings, ['allowedBlocks']); var hasParentAllowedBlock = checkAllowList(parentAllowedBlocks, blockName); var blockAllowedParentBlocks = blockType.parent; - var parentName = getBlockName(state, rootClientId); + var parentName = selectors_getBlockName(state, rootClientId); var hasBlockAllowedParent = checkAllowList(blockAllowedParentBlocks, parentName); if (hasParentAllowedBlock !== null && hasBlockAllowedParent !== null) { @@ -3627,7 +6786,7 @@ var selectors_canInsertBlockTypeUnmemoized = function canInsertBlockTypeUnmemoiz */ -var canInsertBlockType = Object(rememo["a" /* default */])(selectors_canInsertBlockTypeUnmemoized, function (state, blockName, rootClientId) { +var selectors_canInsertBlockType = Object(rememo["a" /* default */])(selectors_canInsertBlockTypeUnmemoized, function (state, blockName, rootClientId) { return [state.blockListSettings[rootClientId], state.blocks.byClientId[rootClientId], state.settings.allowedBlockTypes, state.settings.templateLock]; }); /** @@ -3678,7 +6837,7 @@ var selectors_canIncludeReusableBlockInInserter = function canIncludeReusableBlo return false; } - var referencedBlockName = getBlockName(state, reusableBlock.clientId); + var referencedBlockName = selectors_getBlockName(state, reusableBlock.clientId); if (!referencedBlockName) { return false; @@ -3740,7 +6899,7 @@ var selectors_canIncludeReusableBlockInInserter = function canIncludeReusableBlo */ -var getInserterItems = Object(rememo["a" /* default */])(function (state) { +var selectors_getInserterItems = Object(rememo["a" /* default */])(function (state) { var rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var calculateUtility = function calculateUtility(category, count, isContextual) { @@ -3784,7 +6943,7 @@ var getInserterItems = Object(rememo["a" /* default */])(function (state) { var isDisabled = false; if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType.name, 'multiple', true)) { - isDisabled = Object(external_lodash_["some"])(getBlocksByClientId(state, getClientIdsWithDescendants(state)), { + isDisabled = Object(external_lodash_["some"])(selectors_getBlocksByClientId(state, getClientIdsWithDescendants(state)), { name: blockType.name }); } @@ -3813,7 +6972,7 @@ var getInserterItems = Object(rememo["a" /* default */])(function (state) { var buildReusableBlockInserterItem = function buildReusableBlockInserterItem(reusableBlock) { var id = "core/block/".concat(reusableBlock.id); - var referencedBlockName = getBlockName(state, reusableBlock.clientId); + var referencedBlockName = selectors_getBlockName(state, reusableBlock.clientId); var referencedBlockType = Object(external_this_wp_blocks_["getBlockType"])(referencedBlockName); var _ref2 = getInsertUsage(state, id) || {}, @@ -3894,7 +7053,7 @@ function getBlockListSettings(state, clientId) { * @return {Object} The editor settings object. */ -function getSettings(state) { +function selectors_getSettings(state) { return state.settings; } /** @@ -3971,7 +7130,7 @@ function getReusableBlocks(state) { function validateBlocksToTemplate(action, store) { var state = store.getState(); var template = getTemplate(state); - var templateLock = getTemplateLock(state); // Unlocked templates are considered always valid because they act + var templateLock = selectors_getTemplateLock(state); // Unlocked templates are considered always valid because they act // as default values only. var isBlocksValidToTemplate = !template || templateLock !== 'all' || Object(external_this_wp_blocks_["doBlocksMatchTemplate"])(action.blocks, template); // Update if validity has changed. @@ -3993,8 +7152,8 @@ function validateBlocksToTemplate(action, store) { */ function ensureDefaultBlock(action, store) { - if (!getBlockCount(store.getState())) { - return insertDefaultBlock(); + if (!selectors_getBlockCount(store.getState())) { + return actions_insertDefaultBlock(); } } /* harmony default export */ var effects = ({ @@ -4006,17 +7165,17 @@ function ensureDefaultBlock(action, store) { firstBlockClientId = _action$blocks[0], secondBlockClientId = _action$blocks[1]; - var blockA = getBlock(state, firstBlockClientId); + var blockA = selectors_getBlock(state, firstBlockClientId); var blockType = Object(external_this_wp_blocks_["getBlockType"])(blockA.name); // Only focus the previous block if it's not mergeable if (!blockType.merge) { - dispatch(selectBlock(blockA.clientId)); + dispatch(actions_selectBlock(blockA.clientId)); return; } // We can only merge blocks with similar types // thus, we transform the block to merge first - var blockB = getBlock(state, secondBlockClientId); + var blockB = selectors_getBlock(state, secondBlockClientId); var blocksWithTheSameType = blockA.name === blockB.name ? [blockB] : Object(external_this_wp_blocks_["switchToBlockType"])(blockB, blockA.name); // If the block types can not match, do nothing if (!blocksWithTheSameType || !blocksWithTheSameType.length) { @@ -4025,8 +7184,8 @@ function ensureDefaultBlock(action, store) { var updatedAttributes = blockType.merge(blockA.attributes, blocksWithTheSameType[0].attributes); - dispatch(selectBlock(blockA.clientId, -1)); - dispatch(replaceBlocks([blockA.clientId, blockB.clientId], [Object(objectSpread["a" /* default */])({}, blockA, { + dispatch(actions_selectBlock(blockA.clientId, -1)); + dispatch(actions_replaceBlocks([blockA.clientId, blockB.clientId], [Object(objectSpread["a" /* default */])({}, blockA, { attributes: Object(objectSpread["a" /* default */])({}, blockA.attributes, updatedAttributes) })].concat(Object(toConsumableArray["a" /* default */])(blocksWithTheSameType.slice(1))))); }, @@ -4034,7 +7193,7 @@ function ensureDefaultBlock(action, store) { REPLACE_BLOCKS: [ensureDefaultBlock], MULTI_SELECT: function MULTI_SELECT(action, _ref) { var getState = _ref.getState; - var blockCount = getSelectedBlockCount(getState()); + var blockCount = selectors_getSelectedBlockCount(getState()); /* translators: %s: number of selected blocks */ Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%s block selected.', '%s blocks selected.', blockCount), blockCount), 'assertive'); @@ -4124,6 +7283,22 @@ var store_store = Object(external_this_wp_data_["registerStore"])(MODULE_KEY, { store_middlewares(store_store); /* harmony default export */ var build_module_store = (store_store); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","hooks"]} +var external_this_wp_hooks_ = __webpack_require__(24); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js var classCallCheck = __webpack_require__(10); @@ -4139,19 +7314,2664 @@ var getPrototypeOf = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules var inherits = __webpack_require__(13); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(19); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); // EXTERNAL MODULE: external {"this":["wp","components"]} var external_this_wp_components_ = __webpack_require__(4); -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/context.js -// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var _createContext = Object(external_this_wp_element_["createContext"])({ + name: '', + isSelected: false, + focusedElement: null, + setFocusedElement: external_lodash_["noop"], + clientId: null +}), + Consumer = _createContext.Consumer, + Provider = _createContext.Provider; + + +/** + * A Higher Order Component used to inject BlockEdit context to the + * wrapped component. + * + * @param {Function} mapContextToProps Function called on every context change, + * expected to return object of props to + * merge with the component's own props. + * + * @return {Component} Enhanced component with injected context as props. + */ + +var context_withBlockEditContext = function withBlockEditContext(mapContextToProps) { + return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { + return function (props) { + return Object(external_this_wp_element_["createElement"])(Consumer, null, function (context) { + return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, props, mapContextToProps(context, props))); + }); + }; + }, 'withBlockEditContext'); +}; +/** + * A Higher Order Component used to render conditionally the wrapped + * component only when the BlockEdit has selected state set. + * + * @param {Component} OriginalComponent Component to wrap. + * + * @return {Component} Component which renders only when the BlockEdit is selected. + */ + +var ifBlockEditSelected = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { + return function (props) { + return Object(external_this_wp_element_["createElement"])(Consumer, null, function (_ref) { + var isSelected = _ref.isSelected; + return isSelected && Object(external_this_wp_element_["createElement"])(OriginalComponent, props); + }); + }; +}, 'ifBlockEditSelected'); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/autocomplete/index.js + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +/* + * Use one array instance for fallback rather than inline array literals + * because the latter may cause rerender due to failed prop equality checks. + */ + +var completersFallback = []; +/** + * Wrap the default Autocomplete component with one that + * supports a filter hook for customizing its list of autocompleters. + * + * Since there may be many Autocomplete instances at one time, this component + * applies the filter on demand, when the component is first focused after + * receiving a new list of completers. + * + * This function is exported for unit test. + * + * @param {Function} Autocomplete Original component. + * @return {Function} Wrapped component + */ + +function withFilteredAutocompleters(Autocomplete) { + return ( + /*#__PURE__*/ + function (_Component) { + Object(inherits["a" /* default */])(FilteredAutocomplete, _Component); + + function FilteredAutocomplete() { + var _this; + + Object(classCallCheck["a" /* default */])(this, FilteredAutocomplete); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FilteredAutocomplete).call(this)); + _this.state = { + completers: completersFallback + }; + _this.saveParentRef = _this.saveParentRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(FilteredAutocomplete, [{ + key: "componentDidUpdate", + value: function componentDidUpdate() { + var hasFocus = this.parentNode.contains(document.activeElement); + /* + * It's possible for props to be updated when the component has focus, + * so here, we ensure new completers are immediately applied while we + * have the focus. + * + * NOTE: This may trigger another render but only when the component has focus. + */ + + if (hasFocus && this.hasStaleCompleters()) { + this.updateCompletersState(); + } + } + }, { + key: "onFocus", + value: function onFocus() { + if (this.hasStaleCompleters()) { + this.updateCompletersState(); + } + } + }, { + key: "hasStaleCompleters", + value: function hasStaleCompleters() { + return !('lastFilteredCompletersProp' in this.state) || this.state.lastFilteredCompletersProp !== this.props.completers; + } + }, { + key: "updateCompletersState", + value: function updateCompletersState() { + var _this$props = this.props, + blockName = _this$props.blockName, + completers = _this$props.completers; + var nextCompleters = completers; + var lastFilteredCompletersProp = nextCompleters; + + if (Object(external_this_wp_hooks_["hasFilter"])('editor.Autocomplete.completers')) { + nextCompleters = Object(external_this_wp_hooks_["applyFilters"])('editor.Autocomplete.completers', // Provide copies so filters may directly modify them. + nextCompleters && nextCompleters.map(external_lodash_["clone"]), blockName); + } + + this.setState({ + lastFilteredCompletersProp: lastFilteredCompletersProp, + completers: nextCompleters || completersFallback + }); + } + }, { + key: "saveParentRef", + value: function saveParentRef(parentNode) { + this.parentNode = parentNode; + } + }, { + key: "render", + value: function render() { + var completers = this.state.completers; + + var autocompleteProps = Object(objectSpread["a" /* default */])({}, this.props, { + completers: completers + }); + + return Object(external_this_wp_element_["createElement"])("div", { + onFocus: this.onFocus, + ref: this.saveParentRef + }, Object(external_this_wp_element_["createElement"])(Autocomplete, Object(esm_extends["a" /* default */])({ + onFocus: this.onFocus + }, autocompleteProps))); + } + }]); + + return FilteredAutocomplete; + }(external_this_wp_element_["Component"]) + ); +} +/* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([context_withBlockEditContext(function (_ref) { + var name = _ref.name; + return { + blockName: name + }; +}), withFilteredAutocompleters])(external_this_wp_components_["Autocomplete"])); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-toolbar/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +var DEFAULT_ALIGNMENT_CONTROLS = [{ + icon: 'editor-alignleft', + title: Object(external_this_wp_i18n_["__"])('Align text left'), + align: 'left' +}, { + icon: 'editor-aligncenter', + title: Object(external_this_wp_i18n_["__"])('Align text center'), + align: 'center' +}, { + icon: 'editor-alignright', + title: Object(external_this_wp_i18n_["__"])('Align text right'), + align: 'right' +}]; +function AlignmentToolbar(_ref) { + var isCollapsed = _ref.isCollapsed, + value = _ref.value, + onChange = _ref.onChange, + _ref$alignmentControl = _ref.alignmentControls, + alignmentControls = _ref$alignmentControl === void 0 ? DEFAULT_ALIGNMENT_CONTROLS : _ref$alignmentControl; + + function applyOrUnset(align) { + return function () { + return onChange(value === align ? undefined : align); + }; + } + + var activeAlignment = Object(external_lodash_["find"])(alignmentControls, function (control) { + return control.align === value; + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + isCollapsed: isCollapsed, + icon: activeAlignment ? activeAlignment.icon : 'editor-alignleft', + label: Object(external_this_wp_i18n_["__"])('Change Text Alignment'), + controls: alignmentControls.map(function (control) { + var align = control.align; + var isActive = value === align; + return Object(objectSpread["a" /* default */])({}, control, { + isActive: isActive, + onClick: applyOrUnset(align) + }); + }) + }); +} +/* harmony default export */ var alignment_toolbar = (Object(external_this_wp_compose_["compose"])(context_withBlockEditContext(function (_ref2) { + var clientId = _ref2.clientId; + return { + clientId: clientId + }; +}), Object(external_this_wp_viewport_["withViewportMatch"])({ + isLargeViewport: 'medium' +}), Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var clientId = _ref3.clientId, + isLargeViewport = _ref3.isLargeViewport, + isCollapsed = _ref3.isCollapsed; + + var _select = select('core/block-editor'), + getBlockRootClientId = _select.getBlockRootClientId, + getSettings = _select.getSettings; + + return { + isCollapsed: isCollapsed || !isLargeViewport || !getSettings().hasFixedToolbar && getBlockRootClientId(clientId) + }; +}))(AlignmentToolbar)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-toolbar/index.js + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var BLOCK_ALIGNMENTS_CONTROLS = { + left: { + icon: 'align-left', + title: Object(external_this_wp_i18n_["__"])('Align left') + }, + center: { + icon: 'align-center', + title: Object(external_this_wp_i18n_["__"])('Align center') + }, + right: { + icon: 'align-right', + title: Object(external_this_wp_i18n_["__"])('Align right') + }, + wide: { + icon: 'align-wide', + title: Object(external_this_wp_i18n_["__"])('Wide width') + }, + full: { + icon: 'align-full-width', + title: Object(external_this_wp_i18n_["__"])('Full width') + } +}; +var DEFAULT_CONTROLS = ['left', 'center', 'right', 'wide', 'full']; +var WIDE_CONTROLS = ['wide', 'full']; +function BlockAlignmentToolbar(_ref) { + var isCollapsed = _ref.isCollapsed, + value = _ref.value, + onChange = _ref.onChange, + _ref$controls = _ref.controls, + controls = _ref$controls === void 0 ? DEFAULT_CONTROLS : _ref$controls, + _ref$wideControlsEnab = _ref.wideControlsEnabled, + wideControlsEnabled = _ref$wideControlsEnab === void 0 ? false : _ref$wideControlsEnab; + + function applyOrUnset(align) { + return function () { + return onChange(value === align ? undefined : align); + }; + } + + var enabledControls = wideControlsEnabled ? controls : controls.filter(function (control) { + return WIDE_CONTROLS.indexOf(control) === -1; + }); + var activeAlignment = BLOCK_ALIGNMENTS_CONTROLS[value]; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + isCollapsed: isCollapsed, + icon: activeAlignment ? activeAlignment.icon : 'align-left', + label: Object(external_this_wp_i18n_["__"])('Change Alignment'), + controls: enabledControls.map(function (control) { + return Object(objectSpread["a" /* default */])({}, BLOCK_ALIGNMENTS_CONTROLS[control], { + isActive: value === control, + onClick: applyOrUnset(control) + }); + }) + }); +} +/* harmony default export */ var block_alignment_toolbar = (Object(external_this_wp_compose_["compose"])(context_withBlockEditContext(function (_ref2) { + var clientId = _ref2.clientId; + return { + clientId: clientId + }; +}), Object(external_this_wp_viewport_["withViewportMatch"])({ + isLargeViewport: 'medium' +}), Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var clientId = _ref3.clientId, + isLargeViewport = _ref3.isLargeViewport, + isCollapsed = _ref3.isCollapsed; + + var _select = select('core/block-editor'), + getBlockRootClientId = _select.getBlockRootClientId, + getSettings = _select.getSettings; + + var settings = getSettings(); + return { + wideControlsEnabled: settings.alignWide, + isCollapsed: isCollapsed || !isLargeViewport || !settings.hasFixedToolbar && getBlockRootClientId(clientId) + }; +}))(BlockAlignmentToolbar)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockControls'), + Fill = _createSlotFill.Fill, + Slot = _createSlotFill.Slot; + +var block_controls_BlockControlsFill = function BlockControlsFill(_ref) { + var controls = _ref.controls, + children = _ref.children; + return Object(external_this_wp_element_["createElement"])(Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: controls + }), children); +}; + +var BlockControls = ifBlockEditSelected(block_controls_BlockControlsFill); +BlockControls.Slot = Slot; +/* harmony default export */ var block_controls = (BlockControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/edit.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var edit_Edit = function Edit(props) { + var _props$attributes = props.attributes, + attributes = _props$attributes === void 0 ? {} : _props$attributes, + name = props.name; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + + if (!blockType) { + return null; + } // Generate a class name for the block's editable form + + + var generatedClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true) ? Object(external_this_wp_blocks_["getBlockDefaultClassName"])(name) : null; + var className = classnames_default()(generatedClassName, attributes.className); // `edit` and `save` are functions or components describing the markup + // with which a block is displayed. If `blockType` is valid, assign + // them preferentially as the render value for the block. + + var Component = blockType.edit || blockType.save; + return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({}, props, { + className: className + })); +}; +/* harmony default export */ var edit = (Object(external_this_wp_components_["withFilters"])('editor.BlockEdit')(edit_Edit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-edit/index.js + + + + + + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +var block_edit_BlockEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockEdit, _Component); + + function BlockEdit(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockEdit).call(this, props)); + _this.setFocusedElement = _this.setFocusedElement.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + focusedElement: null, + setFocusedElement: _this.setFocusedElement + }; + return _this; + } + + Object(createClass["a" /* default */])(BlockEdit, [{ + key: "setFocusedElement", + value: function setFocusedElement(focusedElement) { + this.setState(function (prevState) { + if (prevState.focusedElement === focusedElement) { + return null; + } + + return { + focusedElement: focusedElement + }; + }); + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(Provider, { + value: this.state + }, Object(external_this_wp_element_["createElement"])(edit, this.props)); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props) { + var clientId = props.clientId, + name = props.name, + isSelected = props.isSelected; + return { + name: name, + isSelected: isSelected, + clientId: clientId + }; + } + }]); + + return BlockEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_edit = (block_edit_BlockEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-format-controls/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var block_format_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockFormatControls'), + block_format_controls_Fill = block_format_controls_createSlotFill.Fill, + block_format_controls_Slot = block_format_controls_createSlotFill.Slot; + +var BlockFormatControls = ifBlockEditSelected(block_format_controls_Fill); +BlockFormatControls.Slot = block_format_controls_Slot; +/* harmony default export */ var block_format_controls = (BlockFormatControls); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(18); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +function BlockIcon(_ref) { + var icon = _ref.icon, + _ref$showColors = _ref.showColors, + showColors = _ref$showColors === void 0 ? false : _ref$showColors, + className = _ref.className; + + if (Object(external_lodash_["get"])(icon, ['src']) === 'block-default') { + icon = { + src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19 7h-1V5h-4v2h-4V5H6v2H5c-1.1 0-2 .9-2 2v10h18V9c0-1.1-.9-2-2-2zm0 10H5V9h14v8z" + })) + }; + } + + var renderedIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { + icon: icon && icon.src ? icon.src : icon + }); + var style = showColors ? { + backgroundColor: icon && icon.background, + color: icon && icon.foreground + } : {}; + return Object(external_this_wp_element_["createElement"])("span", { + style: style, + className: classnames_default()('editor-block-icon block-editor-block-icon', className, { + 'has-colors': showColors + }) + }, renderedIcon); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/index.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +function BlockNavigationList(_ref) { + var blocks = _ref.blocks, + selectedBlockClientId = _ref.selectedBlockClientId, + selectBlock = _ref.selectBlock, + showNestedBlocks = _ref.showNestedBlocks; + return ( + /* + * Disable reason: The `list` ARIA role is redundant but + * Safari+VoiceOver won't announce the list otherwise. + */ + + /* eslint-disable jsx-a11y/no-redundant-roles */ + Object(external_this_wp_element_["createElement"])("ul", { + className: "editor-block-navigation__list block-editor-block-navigation__list", + role: "list" + }, Object(external_lodash_["map"])(blocks, function (block) { + var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); + var isSelected = block.clientId === selectedBlockClientId; + return Object(external_this_wp_element_["createElement"])("li", { + key: block.clientId + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-navigation__item block-editor-block-navigation__item" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: classnames_default()('editor-block-navigation__item-button block-editor-block-navigation__item-button', { + 'is-selected': isSelected + }), + onClick: function onClick() { + return selectBlock(block.clientId); + } + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: blockType.icon, + showColors: true + }), blockType.title, isSelected && Object(external_this_wp_element_["createElement"])("span", { + className: "screen-reader-text" + }, Object(external_this_wp_i18n_["__"])('(selected block)')))), showNestedBlocks && !!block.innerBlocks && !!block.innerBlocks.length && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { + blocks: block.innerBlocks, + selectedBlockClientId: selectedBlockClientId, + selectBlock: selectBlock, + showNestedBlocks: true + })); + })) + /* eslint-enable jsx-a11y/no-redundant-roles */ + + ); +} + +function BlockNavigation(_ref2) { + var rootBlock = _ref2.rootBlock, + rootBlocks = _ref2.rootBlocks, + selectedBlockClientId = _ref2.selectedBlockClientId, + selectBlock = _ref2.selectBlock; + + if (!rootBlocks || rootBlocks.length === 0) { + return null; + } + + var hasHierarchy = rootBlock && (rootBlock.clientId !== selectedBlockClientId || rootBlock.innerBlocks && rootBlock.innerBlocks.length !== 0); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { + role: "presentation", + className: "editor-block-navigation__container block-editor-block-navigation__container" + }, Object(external_this_wp_element_["createElement"])("p", { + className: "editor-block-navigation__label block-editor-block-navigation__label" + }, Object(external_this_wp_i18n_["__"])('Block Navigation')), hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { + blocks: [rootBlock], + selectedBlockClientId: selectedBlockClientId, + selectBlock: selectBlock, + showNestedBlocks: true + }), !hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { + blocks: rootBlocks, + selectedBlockClientId: selectedBlockClientId, + selectBlock: selectBlock + })); +} + +/* harmony default export */ var block_navigation = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getBlockHierarchyRootClientId = _select.getBlockHierarchyRootClientId, + getBlock = _select.getBlock, + getBlocks = _select.getBlocks; + + var selectedBlockClientId = getSelectedBlockClientId(); + return { + rootBlocks: getBlocks(), + rootBlock: selectedBlockClientId ? getBlock(getBlockHierarchyRootClientId(selectedBlockClientId)) : null, + selectedBlockClientId: selectedBlockClientId + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var _ref3$onSelect = _ref3.onSelect, + onSelect = _ref3$onSelect === void 0 ? external_lodash_["noop"] : _ref3$onSelect; + return { + selectBlock: function selectBlock(clientId) { + dispatch('core/block-editor').selectBlock(clientId); + onSelect(clientId); + } + }; +}))(BlockNavigation)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-navigation/dropdown.js + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var MenuIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24", + width: "20", + height: "20" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z" +})); + +function BlockNavigationDropdown(_ref) { + var hasBlocks = _ref.hasBlocks, + isDisabled = _ref.isDisabled; + var isEnabled = hasBlocks && !isDisabled; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + renderToggle: function renderToggle(_ref2) { + var isOpen = _ref2.isOpen, + onToggle = _ref2.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, isEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true, + shortcuts: Object(defineProperty["a" /* default */])({}, external_this_wp_keycodes_["rawShortcut"].access('o'), onToggle) + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: MenuIcon, + "aria-expanded": isOpen, + onClick: isEnabled ? onToggle : undefined, + label: Object(external_this_wp_i18n_["__"])('Block Navigation'), + className: "editor-block-navigation block-editor-block-navigation", + shortcut: external_this_wp_keycodes_["displayShortcut"].access('o'), + "aria-disabled": !isEnabled + })); + }, + renderContent: function renderContent(_ref4) { + var onClose = _ref4.onClose; + return Object(external_this_wp_element_["createElement"])(block_navigation, { + onSelect: onClose + }); + } + }); +} + +/* harmony default export */ var dropdown = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + hasBlocks: !!select('core/block-editor').getBlockCount() + }; +})(BlockNavigationDropdown)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/with-color-context.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/* harmony default export */ var with_color_context = (Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var settings = select('core/block-editor').getSettings(); + var colors = ownProps.colors === undefined ? settings.colors : ownProps.colors; + var disableCustomColors = ownProps.disableCustomColors === undefined ? settings.disableCustomColors : ownProps.disableCustomColors; + return { + colors: colors, + disableCustomColors: disableCustomColors, + hasColorsToChoose: !Object(external_lodash_["isEmpty"])(colors) || !disableCustomColors + }; +}), 'withColorContext')); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +/* harmony default export */ var color_palette = (with_color_context(external_this_wp_components_["ColorPalette"])); + +// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js +var tinycolor = __webpack_require__(45); +var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/utils.js +/** + * External dependencies + */ + + +/** + * Provided an array of color objects as set by the theme or by the editor defaults, + * and the values of the defined color or custom color returns a color object describing the color. + * + * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. + * @param {?string} definedColor A string containing the color slug. + * @param {?string} customColor A string containing the customColor value. + * + * @return {?string} If definedColor is passed and the name is found in colors, + * the color object exactly as set by the theme or editor defaults is returned. + * Otherwise, an object that just sets the color is defined. + */ + +var utils_getColorObjectByAttributeValues = function getColorObjectByAttributeValues(colors, definedColor, customColor) { + if (definedColor) { + var colorObj = Object(external_lodash_["find"])(colors, { + slug: definedColor + }); + + if (colorObj) { + return colorObj; + } + } + + return { + color: customColor + }; +}; +/** +* Provided an array of color objects as set by the theme or by the editor defaults, and a color value returns the color object matching that value or undefined. +* +* @param {Array} colors Array of color objects as set by the theme or by the editor defaults. +* @param {?string} colorValue A string containing the color value. +* +* @return {?string} Returns the color object included in the colors array whose color property equals colorValue. +* Returns undefined if no color object matches this requirement. +*/ + +var utils_getColorObjectByColorValue = function getColorObjectByColorValue(colors, colorValue) { + return Object(external_lodash_["find"])(colors, { + color: colorValue + }); +}; +/** + * Returns a class based on the context a color is being used and its slug. + * + * @param {string} colorContextName Context/place where color is being used e.g: background, text etc... + * @param {string} colorSlug Slug of the color. + * + * @return {string} String with the class corresponding to the color in the provided context. + */ + +function getColorClassName(colorContextName, colorSlug) { + if (!colorContextName || !colorSlug) { + return; + } + + return "has-".concat(Object(external_lodash_["kebabCase"])(colorSlug), "-").concat(colorContextName); +} +/** +* Given an array of color objects and a color value returns the color value of the most readable color in the array. +* +* @param {Array} colors Array of color objects as set by the theme or by the editor defaults. +* @param {?string} colorValue A string containing the color value. +* +* @return {string} String with the color value of the most readable color. +*/ + +function utils_getMostReadableColor(colors, colorValue) { + return tinycolor_default.a.mostReadable(colorValue, Object(external_lodash_["map"])(colors, 'color')).toHexString(); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js + + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +var DEFAULT_COLORS = []; +/** + * Higher order component factory for injecting the `colorsArray` argument as + * the colors prop in the `withCustomColors` HOC. + * + * @param {Array} colorsArray An array of color objects. + * + * @return {function} The higher order component. + */ + +var with_colors_withCustomColorPalette = function withCustomColorPalette(colorsArray) { + return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { + return function (props) { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { + colors: colorsArray + })); + }; + }, 'withCustomColorPalette'); +}; +/** + * Higher order component factory for injecting the editor colors as the + * `colors` prop in the `withColors` HOC. + * + * @return {function} The higher order component. + */ + + +var with_colors_withEditorColorPalette = function withEditorColorPalette() { + return Object(external_this_wp_data_["withSelect"])(function (select) { + var settings = select('core/block-editor').getSettings(); + return { + colors: Object(external_lodash_["get"])(settings, ['colors'], DEFAULT_COLORS) + }; + }); +}; +/** + * Helper function used with `createHigherOrderComponent` to create + * higher order components for managing color logic. + * + * @param {Array} colorTypes An array of color types (e.g. 'backgroundColor, borderColor). + * @param {Function} withColorPalette A HOC for injecting the 'colors' prop into the WrappedComponent. + * + * @return {Component} The component that can be used as a HOC. + */ + + +function createColorHOC(colorTypes, withColorPalette) { + var colorMap = Object(external_lodash_["reduce"])(colorTypes, function (colorObject, colorType) { + return Object(objectSpread["a" /* default */])({}, colorObject, Object(external_lodash_["isString"])(colorType) ? Object(defineProperty["a" /* default */])({}, colorType, Object(external_lodash_["kebabCase"])(colorType)) : colorType); + }, {}); + return Object(external_this_wp_compose_["compose"])([withColorPalette, function (WrappedComponent) { + return ( + /*#__PURE__*/ + function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + function _class(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, _class); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).call(this, props)); + _this.setters = _this.createSetters(); + _this.colorUtils = { + getMostReadableColor: _this.getMostReadableColor.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))) + }; + _this.state = {}; + return _this; + } + + Object(createClass["a" /* default */])(_class, [{ + key: "getMostReadableColor", + value: function getMostReadableColor(colorValue) { + var colors = this.props.colors; + return utils_getMostReadableColor(colors, colorValue); + } + }, { + key: "createSetters", + value: function createSetters() { + var _this2 = this; + + return Object(external_lodash_["reduce"])(colorMap, function (settersAccumulator, colorContext, colorAttributeName) { + var upperFirstColorAttributeName = Object(external_lodash_["upperFirst"])(colorAttributeName); + var customColorAttributeName = "custom".concat(upperFirstColorAttributeName); + settersAccumulator["set".concat(upperFirstColorAttributeName)] = _this2.createSetColor(colorAttributeName, customColorAttributeName); + return settersAccumulator; + }, {}); + } + }, { + key: "createSetColor", + value: function createSetColor(colorAttributeName, customColorAttributeName) { + var _this3 = this; + + return function (colorValue) { + var _this3$props$setAttri; + + var colorObject = utils_getColorObjectByColorValue(_this3.props.colors, colorValue); + + _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, colorAttributeName, colorObject && colorObject.slug ? colorObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customColorAttributeName, colorObject && colorObject.slug ? undefined : colorValue), _this3$props$setAttri)); + }; + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(objectSpread["a" /* default */])({}, this.props, { + colors: undefined + }, this.state, this.setters, { + colorUtils: this.colorUtils + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(_ref2, previousState) { + var attributes = _ref2.attributes, + colors = _ref2.colors; + return Object(external_lodash_["reduce"])(colorMap, function (newState, colorContext, colorAttributeName) { + var colorObject = utils_getColorObjectByAttributeValues(colors, attributes[colorAttributeName], attributes["custom".concat(Object(external_lodash_["upperFirst"])(colorAttributeName))]); + var previousColorObject = previousState[colorAttributeName]; + var previousColor = Object(external_lodash_["get"])(previousColorObject, ['color']); + /** + * The "and previousColorObject" condition checks that a previous color object was already computed. + * At the start previousColorObject and colorValue are both equal to undefined + * bus as previousColorObject does not exist we should compute the object. + */ + + if (previousColor === colorObject.color && previousColorObject) { + newState[colorAttributeName] = previousColorObject; + } else { + newState[colorAttributeName] = Object(objectSpread["a" /* default */])({}, colorObject, { + class: getColorClassName(colorContext, colorObject.slug) + }); + } + + return newState; + }, {}); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]) + ); + }]); +} +/** + * A higher-order component factory for creating a 'withCustomColors' HOC, which handles color logic + * for class generation color value, retrieval and color attribute setting. + * + * Use this higher-order component to work with a custom set of colors. + * + * @example + * + * ```jsx + * const CUSTOM_COLORS = [ { name: 'Red', slug: 'red', color: '#ff0000' }, { name: 'Blue', slug: 'blue', color: '#0000ff' } ]; + * const withCustomColors = createCustomColorsHOC( CUSTOM_COLORS ); + * // ... + * export default compose( + * withCustomColors( 'backgroundColor', 'borderColor' ), + * MyColorfulComponent, + * ); + * ``` + * + * @param {Array} colorsArray The array of color objects (name, slug, color, etc... ). + * + * @return {Function} Higher-order component. + */ + + +function createCustomColorsHOC(colorsArray) { + return function () { + var withColorPalette = with_colors_withCustomColorPalette(colorsArray); + + for (var _len = arguments.length, colorTypes = new Array(_len), _key = 0; _key < _len; _key++) { + colorTypes[_key] = arguments[_key]; + } + + return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withCustomColors'); + }; +} +/** + * A higher-order component, which handles color logic for class generation color value, retrieval and color attribute setting. + * + * For use with the default editor/theme color palette. + * + * @example + * + * ```jsx + * export default compose( + * withColors( 'backgroundColor', { textColor: 'color' } ), + * MyColorfulComponent, + * ); + * ``` + * + * @param {...(object|string)} colorTypes The arguments can be strings or objects. If the argument is an object, + * it should contain the color attribute name as key and the color context as value. + * If the argument is a string the value should be the color attribute name, + * the color context is computed by applying a kebab case transform to the value. + * Color context represents the context/place where the color is going to be used. + * The class name of the color is generated using 'has' followed by the color name + * and ending with the color context all in kebab case e.g: has-green-background-color. + * + * @return {Function} Higher-order component. + */ + +function withColors() { + var withColorPalette = with_colors_withEditorColorPalette(); + + for (var _len2 = arguments.length, colorTypes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + colorTypes[_key2] = arguments[_key2]; + } + + return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withColors'); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/colors/index.js + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/contrast-checker/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +function ContrastChecker(_ref) { + var backgroundColor = _ref.backgroundColor, + fallbackBackgroundColor = _ref.fallbackBackgroundColor, + fallbackTextColor = _ref.fallbackTextColor, + fontSize = _ref.fontSize, + isLargeText = _ref.isLargeText, + textColor = _ref.textColor; + + if (!(backgroundColor || fallbackBackgroundColor) || !(textColor || fallbackTextColor)) { + return null; + } + + var tinyBackgroundColor = tinycolor_default()(backgroundColor || fallbackBackgroundColor); + var tinyTextColor = tinycolor_default()(textColor || fallbackTextColor); + var hasTransparency = tinyBackgroundColor.getAlpha() !== 1 || tinyTextColor.getAlpha() !== 1; + + if (hasTransparency || tinycolor_default.a.isReadable(tinyBackgroundColor, tinyTextColor, { + level: 'AA', + size: isLargeText || isLargeText !== false && fontSize >= 24 ? 'large' : 'small' + })) { + return null; + } + + var msg = tinyBackgroundColor.getBrightness() < tinyTextColor.getBrightness() ? Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color.') : Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.'); + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-contrast-checker block-editor-contrast-checker" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { + status: "warning", + isDismissible: false + }, msg)); +} + +/* harmony default export */ var contrast_checker = (ContrastChecker); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/utils.js +/** + * External dependencies + */ + +/** + * Returns the font size object based on an array of named font sizes and the namedFontSize and customFontSize values. + * If namedFontSize is undefined or not found in fontSizes an object with just the size value based on customFontSize is returned. + * + * @param {Array} fontSizes Array of font size objects containing at least the "name" and "size" values as properties. + * @param {?string} fontSizeAttribute Content of the font size attribute (slug). + * @param {?number} customFontSizeAttribute Contents of the custom font size attribute (value). + * + * @return {?string} If fontSizeAttribute is set and an equal slug is found in fontSizes it returns the font size object for that slug. + * Otherwise, an object with just the size value based on customFontSize is returned. + */ + +var utils_getFontSize = function getFontSize(fontSizes, fontSizeAttribute, customFontSizeAttribute) { + if (fontSizeAttribute) { + var fontSizeObject = Object(external_lodash_["find"])(fontSizes, { + slug: fontSizeAttribute + }); + + if (fontSizeObject) { + return fontSizeObject; + } + } + + return { + size: customFontSizeAttribute + }; +}; +/** + * Returns a class based on fontSizeName. + * + * @param {string} fontSizeSlug Slug of the fontSize. + * + * @return {string} String with the class corresponding to the fontSize passed. + * The class is generated by appending 'has-' followed by fontSizeSlug in kebabCase and ending with '-font-size'. + */ + +function getFontSizeClass(fontSizeSlug) { + if (!fontSizeSlug) { + return; + } + + return "has-".concat(Object(external_lodash_["kebabCase"])(fontSizeSlug), "-font-size"); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/font-size-picker.js +/** + * WordPress dependencies + */ + + +/* harmony default export */ var font_size_picker = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select$getSettings = select('core/block-editor').getSettings(), + disableCustomFontSizes = _select$getSettings.disableCustomFontSizes, + fontSizes = _select$getSettings.fontSizes; + + return { + disableCustomFontSizes: disableCustomFontSizes, + fontSizes: fontSizes + }; +})(external_this_wp_components_["FontSizePicker"])); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/with-font-sizes.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Higher-order component, which handles font size logic for class generation, + * font size value retrieval, and font size change handling. + * + * @param {...(object|string)} args The arguments should all be strings + * Each string contains the font size attribute name e.g: 'fontSize'. + * + * @return {Function} Higher-order component. + */ + +/* harmony default export */ var with_font_sizes = (function () { + for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) { + fontSizeNames[_key] = arguments[_key]; + } + + /* + * Computes an object whose key is the font size attribute name as passed in the array, + * and the value is the custom font size attribute name. + * Custom font size is automatically compted by appending custom followed by the font size attribute name in with the first letter capitalized. + */ + var fontSizeAttributeNames = Object(external_lodash_["reduce"])(fontSizeNames, function (fontSizeAttributeNamesAccumulator, fontSizeAttributeName) { + fontSizeAttributeNamesAccumulator[fontSizeAttributeName] = "custom".concat(Object(external_lodash_["upperFirst"])(fontSizeAttributeName)); + return fontSizeAttributeNamesAccumulator; + }, {}); + return Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select$getSettings = select('core/block-editor').getSettings(), + fontSizes = _select$getSettings.fontSizes; + + return { + fontSizes: fontSizes + }; + }), function (WrappedComponent) { + return ( + /*#__PURE__*/ + function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + function _class(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, _class); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).call(this, props)); + _this.setters = _this.createSetters(); + _this.state = {}; + return _this; + } + + Object(createClass["a" /* default */])(_class, [{ + key: "createSetters", + value: function createSetters() { + var _this2 = this; + + return Object(external_lodash_["reduce"])(fontSizeAttributeNames, function (settersAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { + var upperFirstFontSizeAttributeName = Object(external_lodash_["upperFirst"])(fontSizeAttributeName); + settersAccumulator["set".concat(upperFirstFontSizeAttributeName)] = _this2.createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName); + return settersAccumulator; + }, {}); + } + }, { + key: "createSetFontSize", + value: function createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName) { + var _this3 = this; + + return function (fontSizeValue) { + var _this3$props$setAttri; + + var fontSizeObject = Object(external_lodash_["find"])(_this3.props.fontSizes, { + size: fontSizeValue + }); + + _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, fontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? fontSizeObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customFontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? undefined : fontSizeValue), _this3$props$setAttri)); + }; + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(objectSpread["a" /* default */])({}, this.props, { + fontSizes: undefined + }, this.state, this.setters)); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(_ref, previousState) { + var attributes = _ref.attributes, + fontSizes = _ref.fontSizes; + + var didAttributesChange = function didAttributesChange(customFontSizeAttributeName, fontSizeAttributeName) { + if (previousState[fontSizeAttributeName]) { + // if new font size is name compare with the previous slug + if (attributes[fontSizeAttributeName]) { + return attributes[fontSizeAttributeName] !== previousState[fontSizeAttributeName].slug; + } // if font size is not named, update when the font size value changes. + + + return previousState[fontSizeAttributeName].size !== attributes[customFontSizeAttributeName]; + } // in this case we need to build the font size object + + + return true; + }; + + if (!Object(external_lodash_["some"])(fontSizeAttributeNames, didAttributesChange)) { + return null; + } + + var newState = Object(external_lodash_["reduce"])(Object(external_lodash_["pickBy"])(fontSizeAttributeNames, didAttributesChange), function (newStateAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { + var fontSizeAttributeValue = attributes[fontSizeAttributeName]; + var fontSizeObject = utils_getFontSize(fontSizes, fontSizeAttributeValue, attributes[customFontSizeAttributeName]); + newStateAccumulator[fontSizeAttributeName] = Object(objectSpread["a" /* default */])({}, fontSizeObject, { + class: getFontSizeClass(fontSizeAttributeValue) + }); + return newStateAccumulator; + }, {}); + return Object(objectSpread["a" /* default */])({}, previousState, newState); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]) + ); + }]), 'withFontSizes'); +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/index.js + + + + +// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} +var external_this_wp_isShallowEqual_ = __webpack_require__(42); +var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); + +// EXTERNAL MODULE: external {"this":["wp","dom"]} +var external_this_wp_dom_ = __webpack_require__(25); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js +/** + * WordPress dependencies + */ + +/** + * Return a label for the block movement controls depending on block position. + * + * @param {number} selectedCount Number of blocks selected. + * @param {string} type Block type - in the case of a single block, should + * define its 'type'. I.e. 'Text', 'Heading', 'Image' etc. + * @param {number} firstIndex The index (position - 1) of the first block selected. + * @param {boolean} isFirst This is the first block. + * @param {boolean} isLast This is the last block. + * @param {number} dir Direction of movement (> 0 is considered to be going + * down, < 0 is up). + * + * @return {string} Label for the block movement controls. + */ + +function getBlockMoverDescription(selectedCount, type, firstIndex, isFirst, isLast, dir) { + var position = firstIndex + 1; + + if (selectedCount > 1) { + return getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir); + } + + if (isFirst && isLast) { + // translators: %s: Type of block (i.e. Text, Image etc) + return Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block %s is the only block, and cannot be moved'), type); + } + + if (dir > 0 && !isLast) { + // moving down + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d down to position %3$d'), type, position, position + 1); + } + + if (dir > 0 && isLast) { + // moving down, and is the last item + // translators: %s: Type of block (i.e. Text, Image etc) + return Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block %s is at the end of the content and can’t be moved down'), type); + } + + if (dir < 0 && !isFirst) { + // moving up + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position + Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d up to position %3$d'), type, position, position - 1); + } + + if (dir < 0 && isFirst) { + // moving up, and is the first item + // translators: %s: Type of block (i.e. Text, Image etc) + return Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block %s is at the beginning of the content and can’t be moved up'), type); + } +} +/** + * Return a label for the block movement controls depending on block position. + * + * @param {number} selectedCount Number of blocks selected. + * @param {number} firstIndex The index (position - 1) of the first block selected. + * @param {boolean} isFirst This is the first block. + * @param {boolean} isLast This is the last block. + * @param {number} dir Direction of movement (> 0 is considered to be going + * down, < 0 is up). + * + * @return {string} Label for the block movement controls. + */ + +function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir) { + var position = firstIndex + 1; + + if (dir < 0 && isFirst) { + return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved up as they are already at the top'); + } + + if (dir > 0 && isLast) { + return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved down as they are already at the bottom'); + } + + if (dir < 0 && !isFirst) { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks + Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d up by one place', 'Move %1$d blocks from position %2$d up by one place', selectedCount), selectedCount, position); + } + + if (dir > 0 && !isLast) { + return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks + Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d down by one place', 'Move %1$d blocks from position %2$d down by one place', selectedCount), selectedCount, position); + } +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/icons.js + + +/** + * WordPress dependencies + */ + +var upArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "18", + height: "18", + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 18 18" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { + points: "9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 " +})); +var downArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "18", + height: "18", + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 18 18" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { + points: "9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 " +})); +var dragHandle = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + width: "18", + height: "18", + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 18 18" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z" +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-draggable/index.js + + +/** + * WordPress dependencies + */ + + + +var block_draggable_BlockDraggable = function BlockDraggable(_ref) { + var children = _ref.children, + clientId = _ref.clientId, + rootClientId = _ref.rootClientId, + blockElementId = _ref.blockElementId, + index = _ref.index, + onDragStart = _ref.onDragStart, + onDragEnd = _ref.onDragEnd; + var transferData = { + type: 'block', + srcIndex: index, + srcRootClientId: rootClientId, + srcClientId: clientId + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Draggable"], { + elementId: blockElementId, + transferData: transferData, + onDragStart: onDragStart, + onDragEnd: onDragEnd + }, function (_ref2) { + var onDraggableStart = _ref2.onDraggableStart, + onDraggableEnd = _ref2.onDraggableEnd; + return children({ + onDraggableStart: onDraggableStart, + onDraggableEnd: onDraggableEnd + }); + }); +}; + +/* harmony default export */ var block_draggable = (Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var clientId = _ref3.clientId; + + var _select = select('core/block-editor'), + getBlockIndex = _select.getBlockIndex, + getBlockRootClientId = _select.getBlockRootClientId; + + var rootClientId = getBlockRootClientId(clientId); + return { + index: getBlockIndex(clientId, rootClientId), + rootClientId: rootClientId + }; +})(block_draggable_BlockDraggable)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/drag-handle.js + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + +var drag_handle_IconDragHandle = function IconDragHandle(_ref) { + var isVisible = _ref.isVisible, + className = _ref.className, + icon = _ref.icon, + onDragStart = _ref.onDragStart, + onDragEnd = _ref.onDragEnd, + blockElementId = _ref.blockElementId, + clientId = _ref.clientId; + + if (!isVisible) { + return null; + } + + var dragHandleClassNames = classnames_default()('editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle', className); + return Object(external_this_wp_element_["createElement"])(block_draggable, { + clientId: clientId, + blockElementId: blockElementId, + onDragStart: onDragStart, + onDragEnd: onDragEnd + }, function (_ref2) { + var onDraggableStart = _ref2.onDraggableStart, + onDraggableEnd = _ref2.onDraggableEnd; + return Object(external_this_wp_element_["createElement"])("div", { + className: dragHandleClassNames, + "aria-hidden": "true", + onDragStart: onDraggableStart, + onDragEnd: onDraggableEnd, + draggable: true + }, icon); + }); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/index.js + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + +var block_mover_BlockMover = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockMover, _Component); + + function BlockMover() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockMover); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockMover).apply(this, arguments)); + _this.state = { + isFocused: false + }; + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockMover, [{ + key: "onFocus", + value: function onFocus() { + this.setState({ + isFocused: true + }); + } + }, { + key: "onBlur", + value: function onBlur() { + this.setState({ + isFocused: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + onMoveUp = _this$props.onMoveUp, + onMoveDown = _this$props.onMoveDown, + isFirst = _this$props.isFirst, + isLast = _this$props.isLast, + isDraggable = _this$props.isDraggable, + onDragStart = _this$props.onDragStart, + onDragEnd = _this$props.onDragEnd, + clientIds = _this$props.clientIds, + blockElementId = _this$props.blockElementId, + blockType = _this$props.blockType, + firstIndex = _this$props.firstIndex, + isLocked = _this$props.isLocked, + instanceId = _this$props.instanceId, + isHidden = _this$props.isHidden; + var isFocused = this.state.isFocused; + var blocksCount = Object(external_lodash_["castArray"])(clientIds).length; + + if (isLocked || isFirst && isLast) { + return null; + } // We emulate a disabled state because forcefully applying the `disabled` + // attribute on the button while it has focus causes the screen to change + // to an unfocused state (body as active element) without firing blur on, + // the rendering parent, leaving it unable to react to focus out. + + + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('editor-block-mover block-editor-block-mover', { + 'is-visible': isFocused || !isHidden + }) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "editor-block-mover__control block-editor-block-mover__control", + onClick: isFirst ? null : onMoveUp, + icon: upArrow, + label: Object(external_this_wp_i18n_["__"])('Move up'), + "aria-describedby": "block-editor-block-mover__up-description-".concat(instanceId), + "aria-disabled": isFirst, + onFocus: this.onFocus, + onBlur: this.onBlur + }), Object(external_this_wp_element_["createElement"])(drag_handle_IconDragHandle, { + className: "editor-block-mover__control block-editor-block-mover__control", + icon: dragHandle, + clientId: clientIds, + blockElementId: blockElementId, + isVisible: isDraggable, + onDragStart: onDragStart, + onDragEnd: onDragEnd + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "editor-block-mover__control block-editor-block-mover__control", + onClick: isLast ? null : onMoveDown, + icon: downArrow, + label: Object(external_this_wp_i18n_["__"])('Move down'), + "aria-describedby": "block-editor-block-mover__down-description-".concat(instanceId), + "aria-disabled": isLast, + onFocus: this.onFocus, + onBlur: this.onBlur + }), Object(external_this_wp_element_["createElement"])("span", { + id: "block-editor-block-mover__up-description-".concat(instanceId), + className: "editor-block-mover__description block-editor-block-mover__description" + }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, -1)), Object(external_this_wp_element_["createElement"])("span", { + id: "block-editor-block-mover__down-description-".concat(instanceId), + className: "editor-block-mover__description block-editor-block-mover__description" + }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, 1))); + } + }]); + + return BlockMover; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var block_mover = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var clientIds = _ref.clientIds; + + var _select = select('core/block-editor'), + getBlock = _select.getBlock, + getBlockIndex = _select.getBlockIndex, + getTemplateLock = _select.getTemplateLock, + getBlockRootClientId = _select.getBlockRootClientId; + + var firstClientId = Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds)); + var block = getBlock(firstClientId); + var rootClientId = getBlockRootClientId(Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds))); + return { + firstIndex: getBlockIndex(firstClientId, rootClientId), + blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null, + isLocked: getTemplateLock(rootClientId) === 'all', + rootClientId: rootClientId + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var clientIds = _ref2.clientIds, + rootClientId = _ref2.rootClientId; + + var _dispatch = dispatch('core/block-editor'), + moveBlocksDown = _dispatch.moveBlocksDown, + moveBlocksUp = _dispatch.moveBlocksUp; + + return { + onMoveDown: Object(external_lodash_["partial"])(moveBlocksDown, clientIds, rootClientId), + onMoveUp: Object(external_lodash_["partial"])(moveBlocksUp, clientIds, rootClientId) + }; +}), external_this_wp_compose_["withInstanceId"])(block_mover_BlockMover)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/check.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +function MediaUploadCheck(_ref) { + var hasUploadPermissions = _ref.hasUploadPermissions, + _ref$fallback = _ref.fallback, + fallback = _ref$fallback === void 0 ? null : _ref$fallback, + children = _ref.children; + return hasUploadPermissions ? children : fallback; +} +/* harmony default export */ var check = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core'), + canUser = _select.canUser; + + return { + hasUploadPermissions: Object(external_lodash_["defaultTo"])(canUser('create', 'media'), true) + }; +})(MediaUploadCheck)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-drop-zone/index.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var parseDropEvent = function parseDropEvent(event) { + var result = { + srcRootClientId: null, + srcClientId: null, + srcIndex: null, + type: null + }; + + if (!event.dataTransfer) { + return result; + } + + try { + result = Object.assign(result, JSON.parse(event.dataTransfer.getData('text'))); + } catch (err) { + return result; + } + + return result; +}; + +var block_drop_zone_BlockDropZone = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockDropZone, _Component); + + function BlockDropZone() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockDropZone); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockDropZone).apply(this, arguments)); + _this.onFilesDrop = _this.onFilesDrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onHTMLDrop = _this.onHTMLDrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onDrop = _this.onDrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockDropZone, [{ + key: "getInsertIndex", + value: function getInsertIndex(position) { + var _this$props = this.props, + clientId = _this$props.clientId, + rootClientId = _this$props.rootClientId, + getBlockIndex = _this$props.getBlockIndex; + + if (clientId !== undefined) { + var index = getBlockIndex(clientId, rootClientId); + return position.y === 'top' ? index : index + 1; + } + } + }, { + key: "onFilesDrop", + value: function onFilesDrop(files, position) { + var transformation = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('from'), function (transform) { + return transform.type === 'files' && transform.isMatch(files); + }); + + if (transformation) { + var insertIndex = this.getInsertIndex(position); + var blocks = transformation.transform(files, this.props.updateBlockAttributes); + this.props.insertBlocks(blocks, insertIndex); + } + } + }, { + key: "onHTMLDrop", + value: function onHTMLDrop(HTML, position) { + var blocks = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: HTML, + mode: 'BLOCKS' + }); + + if (blocks.length) { + this.props.insertBlocks(blocks, this.getInsertIndex(position)); + } + } + }, { + key: "onDrop", + value: function onDrop(event, position) { + var _this$props2 = this.props, + dstRootClientId = _this$props2.rootClientId, + dstClientId = _this$props2.clientId, + getClientIdsOfDescendants = _this$props2.getClientIdsOfDescendants, + getBlockIndex = _this$props2.getBlockIndex; + + var _parseDropEvent = parseDropEvent(event), + srcRootClientId = _parseDropEvent.srcRootClientId, + srcClientId = _parseDropEvent.srcClientId, + srcIndex = _parseDropEvent.srcIndex, + type = _parseDropEvent.type; + + var isBlockDropType = function isBlockDropType(dropType) { + return dropType === 'block'; + }; + + var isSameLevel = function isSameLevel(srcRoot, dstRoot) { + // Note that rootClientId of top-level blocks will be undefined OR a void string, + // so we also need to account for that case separately. + return srcRoot === dstRoot || !srcRoot === true && !dstRoot === true; + }; + + var isSameBlock = function isSameBlock(src, dst) { + return src === dst; + }; + + var isSrcBlockAnAncestorOfDstBlock = function isSrcBlockAnAncestorOfDstBlock(src, dst) { + return getClientIdsOfDescendants([src]).some(function (id) { + return id === dst; + }); + }; + + if (!isBlockDropType(type) || isSameBlock(srcClientId, dstClientId) || isSrcBlockAnAncestorOfDstBlock(srcClientId, dstClientId || dstRootClientId)) { + return; + } + + var dstIndex = dstClientId ? getBlockIndex(dstClientId, dstRootClientId) : undefined; + var positionIndex = this.getInsertIndex(position); // If the block is kept at the same level and moved downwards, + // subtract to account for blocks shifting upward to occupy its old position. + + var insertIndex = dstIndex && srcIndex < dstIndex && isSameLevel(srcRootClientId, dstRootClientId) ? positionIndex - 1 : positionIndex; + this.props.moveBlockToPosition(srcClientId, srcRootClientId, insertIndex); + } + }, { + key: "render", + value: function render() { + var _this$props3 = this.props, + isLocked = _this$props3.isLocked, + index = _this$props3.index; + + if (isLocked) { + return null; + } + + var isAppender = index === undefined; + return Object(external_this_wp_element_["createElement"])(check, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { + className: classnames_default()('editor-block-drop-zone block-editor-block-drop-zone', { + 'is-appender': isAppender + }), + onFilesDrop: this.onFilesDrop, + onHTMLDrop: this.onHTMLDrop, + onDrop: this.onDrop + })); + } + }]); + + return BlockDropZone; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_drop_zone = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var _dispatch = dispatch('core/block-editor'), + _insertBlocks = _dispatch.insertBlocks, + _updateBlockAttributes = _dispatch.updateBlockAttributes, + _moveBlockToPosition = _dispatch.moveBlockToPosition; + + return { + insertBlocks: function insertBlocks(blocks, index) { + var rootClientId = ownProps.rootClientId; + + _insertBlocks(blocks, index, rootClientId); + }, + updateBlockAttributes: function updateBlockAttributes() { + _updateBlockAttributes.apply(void 0, arguments); + }, + moveBlockToPosition: function moveBlockToPosition(srcClientId, srcRootClientId, dstIndex) { + var dstRootClientId = ownProps.rootClientId; + + _moveBlockToPosition(srcClientId, srcRootClientId, dstRootClientId, dstIndex); + } + }; +}), Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var rootClientId = _ref.rootClientId; + + var _select = select('core/block-editor'), + getClientIdsOfDescendants = _select.getClientIdsOfDescendants, + getTemplateLock = _select.getTemplateLock, + getBlockIndex = _select.getBlockIndex; + + return { + isLocked: !!getTemplateLock(rootClientId), + getClientIdsOfDescendants: getClientIdsOfDescendants, + getBlockIndex: getBlockIndex + }; +}), Object(external_this_wp_components_["withFilters"])('editor.BlockDropZone'))(block_drop_zone_BlockDropZone)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/warning/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function Warning(_ref) { + var className = _ref.className, + actions = _ref.actions, + children = _ref.children, + secondaryActions = _ref.secondaryActions; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()(className, 'editor-warning block-editor-warning') + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-warning__contents block-editor-warning__contents" + }, Object(external_this_wp_element_["createElement"])("p", { + className: "editor-warning__message block-editor-warning__message" + }, children), external_this_wp_element_["Children"].count(actions) > 0 && Object(external_this_wp_element_["createElement"])("div", { + className: "editor-warning__actions block-editor-warning__actions" + }, external_this_wp_element_["Children"].map(actions, function (action, i) { + return Object(external_this_wp_element_["createElement"])("span", { + key: i, + className: "editor-warning__action block-editor-warning__action" + }, action); + }))), secondaryActions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + className: "editor-warning__secondary block-editor-warning__secondary", + position: "bottom left", + renderToggle: function renderToggle(_ref2) { + var isOpen = _ref2.isOpen, + onToggle = _ref2.onToggle; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "ellipsis", + label: Object(external_this_wp_i18n_["__"])('More options'), + onClick: onToggle, + "aria-expanded": isOpen + }); + }, + renderContent: function renderContent() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, secondaryActions.map(function (item, pos) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: item.onClick, + key: pos + }, item.title); + })); + } + })); +} + +/* harmony default export */ var warning = (Warning); + +// EXTERNAL MODULE: ./node_modules/diff/dist/diff.js +var diff = __webpack_require__(207); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/block-view.js + + +/** + * WordPress dependencies + */ + + +var block_view_BlockView = function BlockView(_ref) { + var title = _ref.title, + rawContent = _ref.rawContent, + renderedContent = _ref.renderedContent, + action = _ref.action, + actionText = _ref.actionText, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-compare__content block-editor-block-compare__content" + }, Object(external_this_wp_element_["createElement"])("h2", { + className: "editor-block-compare__heading block-editor-block-compare__heading" + }, title), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-compare__html block-editor-block-compare__html" + }, rawContent), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-compare__preview block-editor-block-compare__preview edit-post-visual-editor" + }, renderedContent)), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-compare__action block-editor-block-compare__action" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + tabIndex: "0", + onClick: action + }, actionText))); +}; + +/* harmony default export */ var block_view = (block_view_BlockView); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-compare/index.js + + + + + + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var block_compare_BlockCompare = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockCompare, _Component); + + function BlockCompare() { + Object(classCallCheck["a" /* default */])(this, BlockCompare); + + return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockCompare).apply(this, arguments)); + } + + Object(createClass["a" /* default */])(BlockCompare, [{ + key: "getDifference", + value: function getDifference(originalContent, newContent) { + var difference = Object(diff["diffChars"])(originalContent, newContent); + return difference.map(function (item, pos) { + var classes = classnames_default()({ + 'editor-block-compare__added block-editor-block-compare__added': item.added, + 'editor-block-compare__removed block-editor-block-compare__removed': item.removed + }); + return Object(external_this_wp_element_["createElement"])("span", { + key: pos, + className: classes + }, item.value); + }); + } + }, { + key: "getOriginalContent", + value: function getOriginalContent(block) { + return { + rawContent: block.originalContent, + renderedContent: Object(external_this_wp_blocks_["getSaveElement"])(block.name, block.attributes) + }; + } + }, { + key: "getConvertedContent", + value: function getConvertedContent(block) { + // The convertor may return an array of items or a single item + var newBlocks = Object(external_lodash_["castArray"])(block); // Get converted block details + + var newContent = newBlocks.map(function (item) { + return Object(external_this_wp_blocks_["getSaveContent"])(item.name, item.attributes, item.innerBlocks); + }); + var renderedContent = newBlocks.map(function (item) { + return Object(external_this_wp_blocks_["getSaveElement"])(item.name, item.attributes, item.innerBlocks); + }); + return { + rawContent: newContent.join(''), + renderedContent: renderedContent + }; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + block = _this$props.block, + onKeep = _this$props.onKeep, + onConvert = _this$props.onConvert, + convertor = _this$props.convertor, + convertButtonText = _this$props.convertButtonText; + var original = this.getOriginalContent(block); + var converted = this.getConvertedContent(convertor(block)); + var difference = this.getDifference(original.rawContent, converted.rawContent); + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-compare__wrapper block-editor-block-compare__wrapper" + }, Object(external_this_wp_element_["createElement"])(block_view, { + title: Object(external_this_wp_i18n_["__"])('Current'), + className: "editor-block-compare__current block-editor-block-compare__current", + action: onKeep, + actionText: Object(external_this_wp_i18n_["__"])('Convert to HTML'), + rawContent: original.rawContent, + renderedContent: original.renderedContent + }), Object(external_this_wp_element_["createElement"])(block_view, { + title: Object(external_this_wp_i18n_["__"])('After Conversion'), + className: "editor-block-compare__converted block-editor-block-compare__converted", + action: onConvert, + actionText: convertButtonText, + rawContent: difference, + renderedContent: converted.renderedContent + })); + } + }]); + + return BlockCompare; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_compare = (block_compare_BlockCompare); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-invalid-warning.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var block_invalid_warning_BlockInvalidWarning = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockInvalidWarning, _Component); + + function BlockInvalidWarning(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockInvalidWarning); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockInvalidWarning).call(this, props)); + _this.state = { + compare: false + }; + _this.onCompare = _this.onCompare.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onCompareClose = _this.onCompareClose.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockInvalidWarning, [{ + key: "onCompare", + value: function onCompare() { + this.setState({ + compare: true + }); + } + }, { + key: "onCompareClose", + value: function onCompareClose() { + this.setState({ + compare: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + convertToHTML = _this$props.convertToHTML, + convertToBlocks = _this$props.convertToBlocks, + convertToClassic = _this$props.convertToClassic, + attemptBlockRecovery = _this$props.attemptBlockRecovery, + block = _this$props.block; + var hasHTMLBlock = !!Object(external_this_wp_blocks_["getBlockType"])('core/html'); + var compare = this.state.compare; + var hiddenActions = [{ + title: Object(external_this_wp_i18n_["__"])('Convert to Classic Block'), + onClick: convertToClassic + }, { + title: Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'), + onClick: attemptBlockRecovery + }]; + + if (compare) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { + title: // translators: Dialog title to fix block content + Object(external_this_wp_i18n_["__"])('Resolve Block'), + onRequestClose: this.onCompareClose, + className: "editor-block-compare block-editor-block-compare" + }, Object(external_this_wp_element_["createElement"])(block_compare, { + block: block, + onKeep: convertToHTML, + onConvert: convertToBlocks, + convertor: block_invalid_warning_blockToBlocks, + convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks') + })); + } + + return Object(external_this_wp_element_["createElement"])(warning, { + actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "convert", + onClick: this.onCompare, + isLarge: true, + isPrimary: !hasHTMLBlock + }, // translators: Button to fix block content + Object(external_this_wp_i18n_["_x"])('Resolve', 'imperative verb')), hasHTMLBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "edit", + onClick: convertToHTML, + isLarge: true, + isPrimary: true + }, Object(external_this_wp_i18n_["__"])('Convert to HTML'))], + secondaryActions: hiddenActions + }, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')); + } + }]); + + return BlockInvalidWarning; +}(external_this_wp_element_["Component"]); + +var block_invalid_warning_blockToClassic = function blockToClassic(block) { + return Object(external_this_wp_blocks_["createBlock"])('core/freeform', { + content: block.originalContent + }); +}; + +var block_invalid_warning_blockToHTML = function blockToHTML(block) { + return Object(external_this_wp_blocks_["createBlock"])('core/html', { + content: block.originalContent + }); +}; + +var block_invalid_warning_blockToBlocks = function blockToBlocks(block) { + return Object(external_this_wp_blocks_["rawHandler"])({ + HTML: block.originalContent + }); +}; + +var block_invalid_warning_recoverBlock = function recoverBlock(_ref) { + var name = _ref.name, + attributes = _ref.attributes, + innerBlocks = _ref.innerBlocks; + return Object(external_this_wp_blocks_["createBlock"])(name, attributes, innerBlocks); +}; + +/* harmony default export */ var block_invalid_warning = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + return { + block: select('core/block-editor').getBlock(clientId) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var block = _ref3.block; + + var _dispatch = dispatch('core/block-editor'), + replaceBlock = _dispatch.replaceBlock; + + return { + convertToClassic: function convertToClassic() { + replaceBlock(block.clientId, block_invalid_warning_blockToClassic(block)); + }, + convertToHTML: function convertToHTML() { + replaceBlock(block.clientId, block_invalid_warning_blockToHTML(block)); + }, + convertToBlocks: function convertToBlocks() { + replaceBlock(block.clientId, block_invalid_warning_blockToBlocks(block)); + }, + attemptBlockRecovery: function attemptBlockRecovery() { + replaceBlock(block.clientId, block_invalid_warning_recoverBlock(block)); + } + }; +})])(block_invalid_warning_BlockInvalidWarning)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-warning.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var block_crash_warning_warning = Object(external_this_wp_element_["createElement"])(warning, null, Object(external_this_wp_i18n_["__"])('This block has encountered an error and cannot be previewed.')); +/* harmony default export */ var block_crash_warning = (function () { + return block_crash_warning_warning; +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-crash-boundary.js + + + + + + +/** + * WordPress dependencies + */ + + +var block_crash_boundary_BlockCrashBoundary = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockCrashBoundary, _Component); + + function BlockCrashBoundary() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockCrashBoundary); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockCrashBoundary).apply(this, arguments)); + _this.state = { + hasError: false + }; + return _this; + } + + Object(createClass["a" /* default */])(BlockCrashBoundary, [{ + key: "componentDidCatch", + value: function componentDidCatch(error) { + this.props.onError(error); + this.setState({ + hasError: true + }); + } + }, { + key: "render", + value: function render() { + if (this.state.hasError) { + return null; + } + + return this.props.children; + } + }]); + + return BlockCrashBoundary; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary); + +// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js +var react_autosize_textarea_lib = __webpack_require__(61); +var react_autosize_textarea_lib_default = /*#__PURE__*/__webpack_require__.n(react_autosize_textarea_lib); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-html.js + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +var block_html_BlockHTML = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockHTML, _Component); + + function BlockHTML(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockHTML); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockHTML).apply(this, arguments)); + _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + html: props.block.isValid ? Object(external_this_wp_blocks_["getBlockContent"])(props.block) : props.block.originalContent + }; + return _this; + } + + Object(createClass["a" /* default */])(BlockHTML, [{ + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (!Object(external_lodash_["isEqual"])(this.props.block.attributes, prevProps.block.attributes)) { + this.setState({ + html: Object(external_this_wp_blocks_["getBlockContent"])(this.props.block) + }); + } + } + }, { + key: "onBlur", + value: function onBlur() { + var html = this.state.html; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(this.props.block.name); + var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(blockType, html, this.props.block.attributes); // If html is empty we reset the block to the default HTML and mark it as valid to avoid triggering an error + + var content = html ? html : Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributes); + var isValid = html ? Object(external_this_wp_blocks_["isValidBlockContent"])(blockType, attributes, content) : true; + this.props.onChange(this.props.clientId, attributes, content, isValid); // Ensure the state is updated if we reset so it displays the default content + + if (!html) { + this.setState({ + html: content + }); + } + } + }, { + key: "onChange", + value: function onChange(event) { + this.setState({ + html: event.target.value + }); + } + }, { + key: "render", + value: function render() { + var html = this.state.html; + return Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, { + className: "editor-block-list__block-html-textarea block-editor-block-list__block-html-textarea", + value: html, + onBlur: this.onBlur, + onChange: this.onChange + }); + } + }]); + + return BlockHTML; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var block_html = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + return { + block: select('core/block-editor').getBlock(ownProps.clientId) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + return { + onChange: function onChange(clientId, attributes, originalContent, isValid) { + dispatch('core/block-editor').updateBlock(clientId, { + attributes: attributes, + originalContent: originalContent, + isValid: isValid + }); + } + }; +})])(block_html_BlockHTML)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-title/index.js +/** + * WordPress dependencies + */ + + +/** + * Renders the block's configured title as a string, or empty if the title + * cannot be determined. + * + * @example + * + * ```jsx + * + * ``` + * + * @param {?string} props.name Block name. + * + * @return {?string} Block title. + */ + +function BlockTitle(_ref) { + var name = _ref.name; + + if (!name) { + return null; + } + + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); + + if (!blockType) { + return null; + } + + return blockType.title; +} +/* harmony default export */ var block_title = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/block-editor'), + getBlockName = _select.getBlockName; + + var clientId = ownProps.clientId; + return { + name: getBlockName(clientId) + }; +})(BlockTitle)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/breadcrumb.js @@ -4168,23 +9988,8848 @@ var external_this_wp_compose_ = __webpack_require__(7); /** - * Higher-order component which renders the original component with the current - * registry context passed as its `registry` prop. - * - * @param {WPComponent} OriginalComponent Original component. - * - * @return {WPComponent} Enhanced component. + * Internal dependencies */ -var withRegistry = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["RegistryConsumer"], null, function (registry) { - return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, props, { - registry: registry - })); - }); + +/** + * Block breadcrumb component, displaying the label of the block. If the block + * descends from a root block, a button is displayed enabling the user to select + * the root block. + * + * @param {string} props.clientId Client ID of block. + * @param {string} props.rootClientId Client ID of block's root. + * @param {Function} props.selectRootBlock Callback to select root block. + */ + +var breadcrumb_BlockBreadcrumb = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockBreadcrumb, _Component); + + function BlockBreadcrumb() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockBreadcrumb); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockBreadcrumb).apply(this, arguments)); + _this.state = { + isFocused: false + }; + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockBreadcrumb, [{ + key: "onFocus", + value: function onFocus(event) { + this.setState({ + isFocused: true + }); // This is used for improved interoperability + // with the block's `onFocus` handler which selects the block, thus conflicting + // with the intention to select the root block. + + event.stopPropagation(); + } + }, { + key: "onBlur", + value: function onBlur() { + this.setState({ + isFocused: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + clientId = _this$props.clientId, + rootClientId = _this$props.rootClientId; + return Object(external_this_wp_element_["createElement"])("div", { + className: 'editor-block-list__breadcrumb block-editor-block-list__breadcrumb' + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, rootClientId && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_title, { + clientId: rootClientId + }), Object(external_this_wp_element_["createElement"])("span", { + className: "editor-block-list__descendant-arrow block-editor-block-list__descendant-arrow" + })), Object(external_this_wp_element_["createElement"])(block_title, { + clientId: clientId + }))); + } + }]); + + return BlockBreadcrumb; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var breadcrumb = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/block-editor'), + getBlockRootClientId = _select.getBlockRootClientId; + + var clientId = ownProps.clientId; + return { + rootClientId: getBlockRootClientId(clientId) }; -}, 'withRegistry'); +})])(breadcrumb_BlockBreadcrumb)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/navigable-toolbar/index.js + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Browser dependencies + */ + +var _window = window, + Node = _window.Node, + getSelection = _window.getSelection; + +var navigable_toolbar_NavigableToolbar = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(NavigableToolbar, _Component); + + function NavigableToolbar() { + var _this; + + Object(classCallCheck["a" /* default */])(this, NavigableToolbar); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(NavigableToolbar).apply(this, arguments)); + _this.focusToolbar = _this.focusToolbar.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.focusSelection = _this.focusSelection.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.switchOnKeyDown = Object(external_lodash_["cond"])([[Object(external_lodash_["matchesProperty"])(['keyCode'], external_this_wp_keycodes_["ESCAPE"]), _this.focusSelection]]); + _this.toolbar = Object(external_this_wp_element_["createRef"])(); + return _this; + } + + Object(createClass["a" /* default */])(NavigableToolbar, [{ + key: "focusToolbar", + value: function focusToolbar() { + var tabbables = external_this_wp_dom_["focus"].tabbable.find(this.toolbar.current); + + if (tabbables.length) { + tabbables[0].focus(); + } + } + /** + * Programmatically shifts focus to the element where the current selection + * exists, if there is a selection. + */ + + }, { + key: "focusSelection", + value: function focusSelection() { + // Ensure that a selection exists. + var selection = getSelection(); + + if (!selection) { + return; + } // Focus node may be a text node, which cannot be focused directly. + // Find its parent element instead. + + + var focusNode = selection.focusNode; + var focusElement = focusNode; + + if (focusElement.nodeType !== Node.ELEMENT_NODE) { + focusElement = focusElement.parentElement; + } + + if (focusElement) { + focusElement.focus(); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (this.props.focusOnMount) { + this.focusToolbar(); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["children"]); + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], Object(esm_extends["a" /* default */])({ + orientation: "horizontal", + role: "toolbar", + ref: this.toolbar, + onKeyDown: this.switchOnKeyDown + }, Object(external_lodash_["omit"])(props, ['focusOnMount'])), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true // Use the same event that TinyMCE uses in the Classic block for its own `alt+f10` shortcut. + , + eventName: "keydown", + shortcuts: { + 'alt+f10': this.focusToolbar + } + }), children); + } + }]); + + return NavigableToolbar; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var navigable_toolbar = (navigable_toolbar_NavigableToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-contextual-toolbar.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +function BlockContextualToolbar(_ref) { + var focusOnMount = _ref.focusOnMount; + return Object(external_this_wp_element_["createElement"])(navigable_toolbar, { + focusOnMount: focusOnMount, + className: "editor-block-contextual-toolbar block-editor-block-contextual-toolbar" + /* translators: accessibility text for the block toolbar */ + , + "aria-label": Object(external_this_wp_i18n_["__"])('Block tools') + }, Object(external_this_wp_element_["createElement"])(block_toolbar, null)); +} + +/* harmony default export */ var block_contextual_toolbar = (BlockContextualToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/multi-controls.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function BlockListMultiControls(_ref) { + var multiSelectedBlockClientIds = _ref.multiSelectedBlockClientIds, + clientId = _ref.clientId, + isSelecting = _ref.isSelecting, + isFirst = _ref.isFirst, + isLast = _ref.isLast; + + if (isSelecting) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(block_mover, { + key: "mover", + clientId: clientId, + clientIds: multiSelectedBlockClientIds, + isFirst: isFirst, + isLast: isLast + }); +} + +/* harmony default export */ var multi_controls = (Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + + var _select = select('core/block-editor'), + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, + isMultiSelecting = _select.isMultiSelecting, + getBlockIndex = _select.getBlockIndex, + getBlockCount = _select.getBlockCount; + + var clientIds = getMultiSelectedBlockClientIds(); + var firstIndex = getBlockIndex(Object(external_lodash_["first"])(clientIds), clientId); + var lastIndex = getBlockIndex(Object(external_lodash_["last"])(clientIds), clientId); + return { + multiSelectedBlockClientIds: clientIds, + isSelecting: isMultiSelecting(), + isFirst: firstIndex === 0, + isLast: lastIndex + 1 === getBlockCount() + }; +})(BlockListMultiControls)); + +// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js +var dom_scroll_into_view_lib = __webpack_require__(67); +var dom_scroll_into_view_lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib); + +// EXTERNAL MODULE: external {"this":["wp","url"]} +var external_this_wp_url_ = __webpack_require__(23); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-preview/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Block Preview Component: It renders a preview given a block name and attributes. + * + * @param {Object} props Component props. + * + * @return {WPElement} Rendered element. + */ + +function BlockPreview(props) { + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-preview block-editor-block-preview" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-preview__title block-editor-block-preview__title" + }, Object(external_this_wp_i18n_["__"])('Preview')), Object(external_this_wp_element_["createElement"])(BlockPreviewContent, props)); +} + +function BlockPreviewContent(_ref) { + var name = _ref.name, + attributes = _ref.attributes; + var block = Object(external_this_wp_blocks_["createBlock"])(name, attributes); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], { + className: "editor-block-preview__content block-editor-block-preview__content editor-styles-wrapper", + "aria-hidden": true + }, Object(external_this_wp_element_["createElement"])(block_edit, { + name: name, + focus: false, + attributes: block.attributes, + setAttributes: external_lodash_["noop"] + })); +} +/* harmony default export */ var block_preview = (BlockPreview); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js + + + + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + + + +function InserterListItem(_ref) { + var icon = _ref.icon, + hasChildBlocksWithInserterSupport = _ref.hasChildBlocksWithInserterSupport, + _onClick = _ref.onClick, + isDisabled = _ref.isDisabled, + title = _ref.title, + className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["icon", "hasChildBlocksWithInserterSupport", "onClick", "isDisabled", "title", "className"]); + + var itemIconStyle = icon ? { + backgroundColor: icon.background, + color: icon.foreground + } : {}; + var itemIconStackStyle = icon && icon.shadowColor ? { + backgroundColor: icon.shadowColor + } : {}; + return Object(external_this_wp_element_["createElement"])("li", { + className: "editor-block-types-list__list-item block-editor-block-types-list__list-item" + }, Object(external_this_wp_element_["createElement"])("button", Object(esm_extends["a" /* default */])({ + className: classnames_default()('editor-block-types-list__item block-editor-block-types-list__item', className, { + 'editor-block-types-list__item-has-children block-editor-block-types-list__item-has-children': hasChildBlocksWithInserterSupport + }), + onClick: function onClick(event) { + event.preventDefault(); + + _onClick(); + }, + disabled: isDisabled, + "aria-label": title // Fix for IE11 and JAWS 2018. + + }, props), Object(external_this_wp_element_["createElement"])("span", { + className: "editor-block-types-list__item-icon block-editor-block-types-list__item-icon", + style: itemIconStyle + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon, + showColors: true + }), hasChildBlocksWithInserterSupport && Object(external_this_wp_element_["createElement"])("span", { + className: "editor-block-types-list__item-icon-stack block-editor-block-types-list__item-icon-stack", + style: itemIconStackStyle + })), Object(external_this_wp_element_["createElement"])("span", { + className: "editor-block-types-list__item-title block-editor-block-types-list__item-title" + }, title))); +} + +/* harmony default export */ var inserter_list_item = (InserterListItem); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-types-list/index.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +function BlockTypesList(_ref) { + var items = _ref.items, + onSelect = _ref.onSelect, + _ref$onHover = _ref.onHover, + onHover = _ref$onHover === void 0 ? function () {} : _ref$onHover, + children = _ref.children; + return ( + /* + * Disable reason: The `list` ARIA role is redundant but + * Safari+VoiceOver won't announce the list otherwise. + */ + + /* eslint-disable jsx-a11y/no-redundant-roles */ + Object(external_this_wp_element_["createElement"])("ul", { + role: "list", + className: "editor-block-types-list block-editor-block-types-list" + }, items && items.map(function (item) { + return Object(external_this_wp_element_["createElement"])(inserter_list_item, { + key: item.id, + className: Object(external_this_wp_blocks_["getBlockMenuDefaultClassName"])(item.id), + icon: item.icon, + hasChildBlocksWithInserterSupport: item.hasChildBlocksWithInserterSupport, + onClick: function onClick() { + onSelect(item); + onHover(null); + }, + onFocus: function onFocus() { + return onHover(item); + }, + onMouseEnter: function onMouseEnter() { + return onHover(item); + }, + onMouseLeave: function onMouseLeave() { + return onHover(null); + }, + onBlur: function onBlur() { + return onHover(null); + }, + isDisabled: item.isDisabled, + title: item.title + }); + }), children) + /* eslint-enable jsx-a11y/no-redundant-roles */ + + ); +} + +/* harmony default export */ var block_types_list = (BlockTypesList); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/child-blocks.js + + + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + +function ChildBlocks(_ref) { + var rootBlockIcon = _ref.rootBlockIcon, + rootBlockTitle = _ref.rootBlockTitle, + items = _ref.items, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["rootBlockIcon", "rootBlockTitle", "items"]); + + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-inserter__child-blocks block-editor-inserter__child-blocks" + }, (rootBlockIcon || rootBlockTitle) && Object(external_this_wp_element_["createElement"])("div", { + className: "editor-inserter__parent-block-header block-editor-inserter__parent-block-header" + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: rootBlockIcon, + showColors: true + }), rootBlockTitle && Object(external_this_wp_element_["createElement"])("h2", null, rootBlockTitle)), Object(external_this_wp_element_["createElement"])(block_types_list, Object(esm_extends["a" /* default */])({ + items: items + }, props))); +} + +/* harmony default export */ var child_blocks = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_compose_["ifCondition"])(function (_ref2) { + var items = _ref2.items; + return items && items.length > 0; +}), Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var rootClientId = _ref3.rootClientId; + + var _select = select('core/blocks'), + getBlockType = _select.getBlockType; + + var _select2 = select('core/block-editor'), + getBlockName = _select2.getBlockName; + + var rootBlockName = getBlockName(rootClientId); + var rootBlockType = getBlockType(rootBlockName); + return { + rootBlockTitle: rootBlockType && rootBlockType.title, + rootBlockIcon: rootBlockType && rootBlockType.icon + }; +}))(ChildBlocks)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/menu.js + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Internal dependencies + */ + + + + +var MAX_SUGGESTED_ITEMS = 9; + +var stopKeyPropagation = function stopKeyPropagation(event) { + return event.stopPropagation(); +}; +/** + * Filters an item list given a search term. + * + * @param {Array} items Item list + * @param {string} searchTerm Search term. + * + * @return {Array} Filtered item list. + */ + + +var menu_searchItems = function searchItems(items, searchTerm) { + var normalizedSearchTerm = menu_normalizeTerm(searchTerm); + + var matchSearch = function matchSearch(string) { + return menu_normalizeTerm(string).indexOf(normalizedSearchTerm) !== -1; + }; + + var categories = Object(external_this_wp_blocks_["getCategories"])(); + return items.filter(function (item) { + var itemCategory = Object(external_lodash_["find"])(categories, { + slug: item.category + }); + return matchSearch(item.title) || Object(external_lodash_["some"])(item.keywords, matchSearch) || itemCategory && matchSearch(itemCategory.title); + }); +}; +/** + * Converts the search term into a normalized term. + * + * @param {string} term The search term to normalize. + * + * @return {string} The normalized search term. + */ + +var menu_normalizeTerm = function normalizeTerm(term) { + // Disregard diacritics. + // Input: "média" + term = Object(external_lodash_["deburr"])(term); // Accommodate leading slash, matching autocomplete expectations. + // Input: "/media" + + term = term.replace(/^\//, ''); // Lowercase. + // Input: "MEDIA" + + term = term.toLowerCase(); // Strip leading and trailing whitespace. + // Input: " media " + + term = term.trim(); + return term; +}; +var menu_InserterMenu = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(InserterMenu, _Component); + + function InserterMenu() { + var _this; + + Object(classCallCheck["a" /* default */])(this, InserterMenu); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(InserterMenu).apply(this, arguments)); + _this.state = { + childItems: [], + filterValue: '', + hoveredItem: null, + suggestedItems: [], + reusableItems: [], + itemsPerCategory: {}, + openPanels: ['suggested'] + }; + _this.onChangeSearchInput = _this.onChangeSearchInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onHover = _this.onHover.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.panels = {}; + _this.inserterResults = Object(external_this_wp_element_["createRef"])(); + return _this; + } + + Object(createClass["a" /* default */])(InserterMenu, [{ + key: "componentDidMount", + value: function componentDidMount() { + // This could be replaced by a resolver. + this.props.fetchReusableBlocks(); + this.filter(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (prevProps.items !== this.props.items) { + this.filter(this.state.filterValue); + } + } + }, { + key: "onChangeSearchInput", + value: function onChangeSearchInput(event) { + this.filter(event.target.value); + } + }, { + key: "onHover", + value: function onHover(item) { + this.setState({ + hoveredItem: item + }); + var _this$props = this.props, + showInsertionPoint = _this$props.showInsertionPoint, + hideInsertionPoint = _this$props.hideInsertionPoint; + + if (item) { + showInsertionPoint(); + } else { + hideInsertionPoint(); + } + } + }, { + key: "bindPanel", + value: function bindPanel(name) { + var _this2 = this; + + return function (ref) { + _this2.panels[name] = ref; + }; + } + }, { + key: "onTogglePanel", + value: function onTogglePanel(panel) { + var _this3 = this; + + return function () { + var isOpened = _this3.state.openPanels.indexOf(panel) !== -1; + + if (isOpened) { + _this3.setState({ + openPanels: Object(external_lodash_["without"])(_this3.state.openPanels, panel) + }); + } else { + _this3.setState({ + openPanels: [].concat(Object(toConsumableArray["a" /* default */])(_this3.state.openPanels), [panel]) + }); + + _this3.props.setTimeout(function () { + // We need a generic way to access the panel's container + // eslint-disable-next-line react/no-find-dom-node + dom_scroll_into_view_lib_default()(_this3.panels[panel], _this3.inserterResults.current, { + alignWithTop: true + }); + }); + } + }; + } + }, { + key: "filterOpenPanels", + value: function filterOpenPanels(filterValue, itemsPerCategory, filteredItems, reusableItems) { + if (filterValue === this.state.filterValue) { + return this.state.openPanels; + } + + if (!filterValue) { + return ['suggested']; + } + + var openPanels = []; + + if (reusableItems.length > 0) { + openPanels.push('reusable'); + } + + if (filteredItems.length > 0) { + openPanels = openPanels.concat(Object.keys(itemsPerCategory)); + } + + return openPanels; + } + }, { + key: "filter", + value: function filter() { + var filterValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var _this$props2 = this.props, + debouncedSpeak = _this$props2.debouncedSpeak, + items = _this$props2.items, + rootChildBlocks = _this$props2.rootChildBlocks; + var filteredItems = menu_searchItems(items, filterValue); + + var childItems = Object(external_lodash_["filter"])(filteredItems, function (_ref) { + var name = _ref.name; + return Object(external_lodash_["includes"])(rootChildBlocks, name); + }); + + var suggestedItems = []; + + if (!filterValue) { + var maxSuggestedItems = this.props.maxSuggestedItems || MAX_SUGGESTED_ITEMS; + suggestedItems = Object(external_lodash_["filter"])(items, function (item) { + return item.utility > 0; + }).slice(0, maxSuggestedItems); + } + + var reusableItems = Object(external_lodash_["filter"])(filteredItems, { + category: 'reusable' + }); + + var getCategoryIndex = function getCategoryIndex(item) { + return Object(external_lodash_["findIndex"])(Object(external_this_wp_blocks_["getCategories"])(), function (category) { + return category.slug === item.category; + }); + }; + + var itemsPerCategory = Object(external_lodash_["flow"])(function (itemList) { + return Object(external_lodash_["filter"])(itemList, function (item) { + return item.category !== 'reusable'; + }); + }, function (itemList) { + return Object(external_lodash_["sortBy"])(itemList, getCategoryIndex); + }, function (itemList) { + return Object(external_lodash_["groupBy"])(itemList, 'category'); + })(filteredItems); + this.setState({ + hoveredItem: null, + childItems: childItems, + filterValue: filterValue, + suggestedItems: suggestedItems, + reusableItems: reusableItems, + itemsPerCategory: itemsPerCategory, + openPanels: this.filterOpenPanels(filterValue, itemsPerCategory, filteredItems, reusableItems) + }); + var resultCount = Object.keys(itemsPerCategory).reduce(function (accumulator, currentCategorySlug) { + return accumulator + itemsPerCategory[currentCategorySlug].length; + }, 0); + var resultsFoundMessage = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d result found.', '%d results found.', resultCount), resultCount); + debouncedSpeak(resultsFoundMessage); + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + if (Object(external_lodash_["includes"])([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]], event.keyCode)) { + // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. + event.stopPropagation(); + } + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props3 = this.props, + instanceId = _this$props3.instanceId, + onSelect = _this$props3.onSelect, + rootClientId = _this$props3.rootClientId; + var _this$state = this.state, + childItems = _this$state.childItems, + hoveredItem = _this$state.hoveredItem, + itemsPerCategory = _this$state.itemsPerCategory, + openPanels = _this$state.openPanels, + reusableItems = _this$state.reusableItems, + suggestedItems = _this$state.suggestedItems; + + var isPanelOpen = function isPanelOpen(panel) { + return openPanels.indexOf(panel) !== -1; + }; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which + // is always visible, and one which already incurs this behavior of autoFocus via + // Popover's focusOnMount. + // Disable reason (no-static-element-interactions): Navigational key-presses within + // the menu are prevented from triggering WritingFlow and ObserveTyping interactions. + + /* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ + + + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-inserter__menu block-editor-inserter__menu", + onKeyPress: stopKeyPropagation, + onKeyDown: this.onKeyDown + }, Object(external_this_wp_element_["createElement"])("label", { + htmlFor: "block-editor-inserter__search-".concat(instanceId), + className: "screen-reader-text" + }, Object(external_this_wp_i18n_["__"])('Search for a block')), Object(external_this_wp_element_["createElement"])("input", { + id: "block-editor-inserter__search-".concat(instanceId), + type: "search", + placeholder: Object(external_this_wp_i18n_["__"])('Search for a block'), + className: "editor-inserter__search block-editor-inserter__search", + autoFocus: true, + onChange: this.onChangeSearchInput + }), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-inserter__results block-editor-inserter__results", + ref: this.inserterResults, + tabIndex: "0", + role: "region", + "aria-label": Object(external_this_wp_i18n_["__"])('Available block types') + }, Object(external_this_wp_element_["createElement"])(child_blocks, { + rootClientId: rootClientId, + items: childItems, + onSelect: onSelect, + onHover: this.onHover + }), !!suggestedItems.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["_x"])('Most Used', 'blocks'), + opened: isPanelOpen('suggested'), + onToggle: this.onTogglePanel('suggested'), + ref: this.bindPanel('suggested') + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: suggestedItems, + onSelect: onSelect, + onHover: this.onHover + })), Object(external_lodash_["map"])(Object(external_this_wp_blocks_["getCategories"])(), function (category) { + var categoryItems = itemsPerCategory[category.slug]; + + if (!categoryItems || !categoryItems.length) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + key: category.slug, + title: category.title, + icon: category.icon, + opened: isPanelOpen(category.slug), + onToggle: _this4.onTogglePanel(category.slug), + ref: _this4.bindPanel(category.slug) + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: categoryItems, + onSelect: onSelect, + onHover: _this4.onHover + })); + }), !!reusableItems.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + className: "editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel", + title: Object(external_this_wp_i18n_["__"])('Reusable'), + opened: isPanelOpen('reusable'), + onToggle: this.onTogglePanel('reusable'), + icon: "controls-repeat", + ref: this.bindPanel('reusable') + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: reusableItems, + onSelect: onSelect, + onHover: this.onHover + }), Object(external_this_wp_element_["createElement"])("a", { + className: "editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks", + href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', { + post_type: 'wp_block' + }) + }, Object(external_this_wp_i18n_["__"])('Manage All Reusable Blocks'))), Object(external_lodash_["isEmpty"])(suggestedItems) && Object(external_lodash_["isEmpty"])(reusableItems) && Object(external_lodash_["isEmpty"])(itemsPerCategory) && Object(external_this_wp_element_["createElement"])("p", { + className: "editor-inserter__no-results block-editor-inserter__no-results" + }, Object(external_this_wp_i18n_["__"])('No blocks found.'))), hoveredItem && Object(external_this_wp_blocks_["isReusableBlock"])(hoveredItem) && Object(external_this_wp_element_["createElement"])(block_preview, { + name: hoveredItem.name, + attributes: hoveredItem.initialAttributes + })); + /* eslint-enable jsx-a11y/no-autofocus, jsx-a11y/no-noninteractive-element-interactions */ + } + }]); + + return InserterMenu; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var menu = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId, + isAppender = _ref2.isAppender, + rootClientId = _ref2.rootClientId; + + var _select = select('core/block-editor'), + getInserterItems = _select.getInserterItems, + getBlockName = _select.getBlockName, + getBlockRootClientId = _select.getBlockRootClientId, + getBlockSelectionEnd = _select.getBlockSelectionEnd; + + var _select2 = select('core/blocks'), + getChildBlockNames = _select2.getChildBlockNames; + + var destinationRootClientId = rootClientId; + + if (!destinationRootClientId && !clientId && !isAppender) { + var end = getBlockSelectionEnd(); + + if (end) { + destinationRootClientId = getBlockRootClientId(end) || undefined; + } + } + + var destinationRootBlockName = getBlockName(destinationRootClientId); + return { + rootChildBlocks: getChildBlockNames(destinationRootBlockName), + items: getInserterItems(destinationRootClientId), + destinationRootClientId: destinationRootClientId + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref3) { + var select = _ref3.select; + + var _dispatch = dispatch('core/block-editor'), + _showInsertionPoint = _dispatch.showInsertionPoint, + hideInsertionPoint = _dispatch.hideInsertionPoint; // This should be an external action provided in the editor settings. + + + var _dispatch2 = dispatch('core/editor'), + fetchReusableBlocks = _dispatch2.__experimentalFetchReusableBlocks; // To avoid duplication, getInsertionIndex is extracted and used in two event handlers + // This breaks the withDispatch not containing any logic rule. + // Since it's a function only called when the event handlers are called, + // it's fine to extract it. + // eslint-disable-next-line no-restricted-syntax + + + function getInsertionIndex() { + var _select3 = select('core/block-editor'), + getBlockIndex = _select3.getBlockIndex, + getBlockSelectionEnd = _select3.getBlockSelectionEnd, + getBlockOrder = _select3.getBlockOrder; + + var clientId = ownProps.clientId, + destinationRootClientId = ownProps.destinationRootClientId, + isAppender = ownProps.isAppender; // If the clientId is defined, we insert at the position of the block. + + if (clientId) { + return getBlockIndex(clientId, destinationRootClientId); + } // If there a selected block, we insert after the selected block. + + + var end = getBlockSelectionEnd(); + + if (!isAppender && end) { + return getBlockIndex(end, destinationRootClientId) + 1; + } // Otherwise, we insert at the end of the current rootClientId + + + return getBlockOrder(destinationRootClientId).length; + } + + return { + fetchReusableBlocks: fetchReusableBlocks, + showInsertionPoint: function showInsertionPoint() { + var index = getInsertionIndex(); + + _showInsertionPoint(ownProps.destinationRootClientId, index); + }, + hideInsertionPoint: hideInsertionPoint, + onSelect: function onSelect(item) { + var _dispatch3 = dispatch('core/block-editor'), + replaceBlocks = _dispatch3.replaceBlocks, + insertBlock = _dispatch3.insertBlock; + + var _select4 = select('core/block-editor'), + getSelectedBlock = _select4.getSelectedBlock; + + var isAppender = ownProps.isAppender; + var name = item.name, + initialAttributes = item.initialAttributes; + var selectedBlock = getSelectedBlock(); + var insertedBlock = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes); + + if (!isAppender && selectedBlock && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(selectedBlock)) { + replaceBlocks(selectedBlock.clientId, insertedBlock); + } else { + insertBlock(insertedBlock, getInsertionIndex(), ownProps.destinationRootClientId); + } + + ownProps.onSelect(); + } + }; +}), external_this_wp_components_["withSpokenMessages"], external_this_wp_compose_["withInstanceId"], external_this_wp_compose_["withSafeTimeout"])(menu_InserterMenu)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/index.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +var inserter_defaultRenderToggle = function defaultRenderToggle(_ref) { + var onToggle = _ref.onToggle, + disabled = _ref.disabled, + isOpen = _ref.isOpen; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "insert", + label: Object(external_this_wp_i18n_["__"])('Add block'), + labelPosition: "bottom", + onClick: onToggle, + className: "editor-inserter__toggle block-editor-inserter__toggle", + "aria-haspopup": "true", + "aria-expanded": isOpen, + disabled: disabled + }); +}; + +var inserter_Inserter = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(Inserter, _Component); + + function Inserter() { + var _this; + + Object(classCallCheck["a" /* default */])(this, Inserter); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Inserter).apply(this, arguments)); + _this.onToggle = _this.onToggle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.renderToggle = _this.renderToggle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.renderContent = _this.renderContent.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(Inserter, [{ + key: "onToggle", + value: function onToggle(isOpen) { + var onToggle = this.props.onToggle; // Surface toggle callback to parent component + + if (onToggle) { + onToggle(isOpen); + } + } + /** + * Render callback to display Dropdown toggle element. + * + * @param {Function} options.onToggle Callback to invoke when toggle is + * pressed. + * @param {boolean} options.isOpen Whether dropdown is currently open. + * + * @return {WPElement} Dropdown toggle element. + */ + + }, { + key: "renderToggle", + value: function renderToggle(_ref2) { + var onToggle = _ref2.onToggle, + isOpen = _ref2.isOpen; + var _this$props = this.props, + disabled = _this$props.disabled, + _this$props$renderTog = _this$props.renderToggle, + renderToggle = _this$props$renderTog === void 0 ? inserter_defaultRenderToggle : _this$props$renderTog; + return renderToggle({ + onToggle: onToggle, + isOpen: isOpen, + disabled: disabled + }); + } + /** + * Render callback to display Dropdown content element. + * + * @param {Function} options.onClose Callback to invoke when dropdown is + * closed. + * + * @return {WPElement} Dropdown content element. + */ + + }, { + key: "renderContent", + value: function renderContent(_ref3) { + var onClose = _ref3.onClose; + var _this$props2 = this.props, + rootClientId = _this$props2.rootClientId, + clientId = _this$props2.clientId, + isAppender = _this$props2.isAppender; + return Object(external_this_wp_element_["createElement"])(menu, { + onSelect: onClose, + rootClientId: rootClientId, + clientId: clientId, + isAppender: isAppender + }); + } + }, { + key: "render", + value: function render() { + var _this$props3 = this.props, + position = _this$props3.position, + title = _this$props3.title; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + className: "editor-inserter block-editor-inserter", + contentClassName: "editor-inserter__popover block-editor-inserter__popover", + position: position, + onToggle: this.onToggle, + expandOnMobile: true, + headerTitle: title, + renderToggle: this.renderToggle, + renderContent: this.renderContent + }); + } + }]); + + return Inserter; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var inserter = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { + var rootClientId = _ref4.rootClientId; + + var _select = select('core/block-editor'), + hasInserterItems = _select.hasInserterItems; // The title should be removed from the inserter + // or replaced by a prop passed to the inserter. + + + var _select2 = select('core/editor'), + getEditedPostAttribute = _select2.getEditedPostAttribute; + + return { + title: getEditedPostAttribute('title'), + hasItems: hasInserterItems(rootClientId) + }; +}), Object(external_this_wp_compose_["ifCondition"])(function (_ref5) { + var hasItems = _ref5.hasItems; + return hasItems; +})])(inserter_Inserter)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block-mobile-toolbar.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + +function BlockMobileToolbar(_ref) { + var clientId = _ref.clientId; + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-list__block-mobile-toolbar block-editor-block-list__block-mobile-toolbar" + }, Object(external_this_wp_element_["createElement"])(inserter, null), Object(external_this_wp_element_["createElement"])(block_mover, { + clientIds: [clientId] + })); +} + +/* harmony default export */ var block_mobile_toolbar = (Object(external_this_wp_viewport_["ifViewportMatches"])('< small')(BlockMobileToolbar)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/insertion-point.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var insertion_point_BlockInsertionPoint = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockInsertionPoint, _Component); + + function BlockInsertionPoint() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockInsertionPoint); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockInsertionPoint).apply(this, arguments)); + _this.state = { + isInserterFocused: false + }; + _this.onBlurInserter = _this.onBlurInserter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onFocusInserter = _this.onFocusInserter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockInsertionPoint, [{ + key: "onFocusInserter", + value: function onFocusInserter(event) { + // Stop propagation of the focus event to avoid selecting the current + // block while inserting a new block, as it is not relevant to sibling + // insertion and conflicts with contextual toolbar placement. + event.stopPropagation(); + this.setState({ + isInserterFocused: true + }); + } + }, { + key: "onBlurInserter", + value: function onBlurInserter() { + this.setState({ + isInserterFocused: false + }); + } + }, { + key: "render", + value: function render() { + var isInserterFocused = this.state.isInserterFocused; + var _this$props = this.props, + showInsertionPoint = _this$props.showInsertionPoint, + rootClientId = _this$props.rootClientId, + clientId = _this$props.clientId; + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-list__insertion-point block-editor-block-list__insertion-point" + }, showInsertionPoint && Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-list__insertion-point-indicator block-editor-block-list__insertion-point-indicator" + }), Object(external_this_wp_element_["createElement"])("div", { + onFocus: this.onFocusInserter, + onBlur: this.onBlurInserter // While ideally it would be enough to capture the + // bubbling focus event from the Inserter, due to the + // characteristics of click focusing of `button`s in + // Firefox and Safari, it is not reliable. + // + // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + , + tabIndex: -1, + className: classnames_default()('editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter', { + 'is-visible': isInserterFocused + }) + }, Object(external_this_wp_element_["createElement"])(inserter, { + rootClientId: rootClientId, + clientId: clientId + }))); + } + }]); + + return BlockInsertionPoint; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var insertion_point = (Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var clientId = _ref.clientId, + rootClientId = _ref.rootClientId; + + var _select = select('core/block-editor'), + getBlockIndex = _select.getBlockIndex, + getBlockInsertionPoint = _select.getBlockInsertionPoint, + isBlockInsertionPointVisible = _select.isBlockInsertionPointVisible; + + var blockIndex = getBlockIndex(clientId, rootClientId); + var insertionPoint = getBlockInsertionPoint(); + var showInsertionPoint = isBlockInsertionPointVisible() && insertionPoint.index === blockIndex && insertionPoint.rootClientId === rootClientId; + return { + showInsertionPoint: showInsertionPoint + }; +})(insertion_point_BlockInsertionPoint)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/ignore-nested-events/index.js + + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Component which renders a div with passed props applied except the optional + * `childHandledEvents` prop. Event prop handlers are replaced with a proxying + * event handler to capture and prevent events from being handled by ancestor + * `IgnoreNestedEvents` elements by testing the presence of a private property + * assigned on the event object. + * + * Optionally accepts an `childHandledEvents` prop array, which can be used in + * instances where an inner `IgnoreNestedEvents` element exists and the outer + * element should stop propagation but not invoke a callback handler, since it + * would be assumed these are invoked by the child element. + * + * @type {Component} + */ + +var ignore_nested_events_IgnoreNestedEvents = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(IgnoreNestedEvents, _Component); + + function IgnoreNestedEvents() { + var _this; + + Object(classCallCheck["a" /* default */])(this, IgnoreNestedEvents); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(IgnoreNestedEvents).apply(this, arguments)); + _this.proxyEvent = _this.proxyEvent.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); // The event map is responsible for tracking an event type to a React + // component prop name, since it is easy to determine event type from + // a React prop name, but not the other way around. + + _this.eventMap = {}; + return _this; + } + /** + * General event handler which only calls to its original props callback if + * it has not already been handled by a descendant IgnoreNestedEvents. + * + * @param {Event} event Event object. + * + * @return {void} + */ + + + Object(createClass["a" /* default */])(IgnoreNestedEvents, [{ + key: "proxyEvent", + value: function proxyEvent(event) { + var isHandled = !!event.nativeEvent._blockHandled; // Assign into the native event, since React will reuse their synthetic + // event objects and this property assignment could otherwise leak. + // + // See: https://reactjs.org/docs/events.html#event-pooling + + event.nativeEvent._blockHandled = true; // Invoke original prop handler + + var propKey = this.eventMap[event.type]; // If already handled (i.e. assume nested block), only invoke a + // corresponding "Handled"-suffixed prop callback. + + if (isHandled) { + propKey += 'Handled'; + } + + if (this.props[propKey]) { + this.props[propKey](event); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + _this$props$childHand = _this$props.childHandledEvents, + childHandledEvents = _this$props$childHand === void 0 ? [] : _this$props$childHand, + forwardedRef = _this$props.forwardedRef, + props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["childHandledEvents", "forwardedRef"]); + + var eventHandlers = Object(external_lodash_["reduce"])([].concat(Object(toConsumableArray["a" /* default */])(childHandledEvents), Object(toConsumableArray["a" /* default */])(Object.keys(props))), function (result, key) { + // Try to match prop key as event handler + var match = key.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/); + + if (match) { + var isHandledProp = !!match[2]; + + if (isHandledProp) { + // Avoid assigning through the invalid prop key. This + // assumes mutation of shallow clone by above spread. + delete props[key]; + } // Re-map the prop to the local proxy handler to check whether + // the event has already been handled. + + + var proxiedPropName = 'on' + match[1]; + result[proxiedPropName] = _this2.proxyEvent; // Assign event -> propName into an instance variable, so as to + // avoid re-renders which could be incurred either by setState + // or in mapping values to a newly created function. + + _this2.eventMap[match[1].toLowerCase()] = proxiedPropName; + } + + return result; + }, {}); + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + ref: forwardedRef + }, props, eventHandlers)); + } + }]); + + return IgnoreNestedEvents; +}(external_this_wp_element_["Component"]); + +var ignore_nested_events_forwardedIgnoreNestedEvents = function forwardedIgnoreNestedEvents(props, ref) { + return Object(external_this_wp_element_["createElement"])(ignore_nested_events_IgnoreNestedEvents, Object(esm_extends["a" /* default */])({}, props, { + forwardedRef: ref + })); +}; + +ignore_nested_events_forwardedIgnoreNestedEvents.displayName = 'IgnoreNestedEvents'; +/* harmony default export */ var ignore_nested_events = (Object(external_this_wp_element_["forwardRef"])(ignore_nested_events_forwardedIgnoreNestedEvents)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-with-shortcuts/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +function InserterWithShortcuts(_ref) { + var items = _ref.items, + isLocked = _ref.isLocked, + onInsert = _ref.onInsert; + + if (isLocked) { + return null; + } + + var itemsWithoutDefaultBlock = Object(external_lodash_["filter"])(items, function (item) { + return !item.isDisabled && (item.name !== Object(external_this_wp_blocks_["getDefaultBlockName"])() || !Object(external_lodash_["isEmpty"])(item.initialAttributes)); + }).slice(0, 3); + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-inserter-with-shortcuts block-editor-inserter-with-shortcuts" + }, itemsWithoutDefaultBlock.map(function (item) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + key: item.id, + className: "editor-inserter-with-shortcuts__block block-editor-inserter-with-shortcuts__block", + onClick: function onClick() { + return onInsert(item); + } // translators: %s: block title/name to be added + , + label: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Add %s'), item.title), + icon: Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: item.icon + }) + }); + })); +} + +/* harmony default export */ var inserter_with_shortcuts = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var rootClientId = _ref2.rootClientId; + + var _select = select('core/block-editor'), + getInserterItems = _select.getInserterItems, + getTemplateLock = _select.getTemplateLock; + + return { + items: getInserterItems(rootClientId), + isLocked: !!getTemplateLock(rootClientId) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var clientId = ownProps.clientId, + rootClientId = ownProps.rootClientId; + return { + onInsert: function onInsert(_ref3) { + var name = _ref3.name, + initialAttributes = _ref3.initialAttributes; + var block = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes); + + if (clientId) { + dispatch('core/block-editor').replaceBlocks(clientId, block); + } else { + dispatch('core/block-editor').insertBlock(block, undefined, rootClientId); + } + } + }; +}))(InserterWithShortcuts)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/hover-area.js + + + + + + + +/** + * WordPress dependencies + */ + + + +var hover_area_HoverArea = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(HoverArea, _Component); + + function HoverArea() { + var _this; + + Object(classCallCheck["a" /* default */])(this, HoverArea); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HoverArea).apply(this, arguments)); + _this.state = { + hoverArea: null + }; + _this.onMouseLeave = _this.onMouseLeave.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onMouseMove = _this.onMouseMove.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(HoverArea, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.props.container) { + this.toggleListeners(this.props.container, false); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + if (this.props.container) { + this.toggleListeners(this.props.container); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (prevProps.container === this.props.container) { + return; + } + + if (prevProps.container) { + this.toggleListeners(prevProps.container, false); + } + + if (this.props.container) { + this.toggleListeners(this.props.container, true); + } + } + }, { + key: "toggleListeners", + value: function toggleListeners(container) { + var shouldListnerToEvents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var method = shouldListnerToEvents ? 'addEventListener' : 'removeEventListener'; + container[method]('mousemove', this.onMouseMove); + container[method]('mouseleave', this.onMouseLeave); + } + }, { + key: "onMouseLeave", + value: function onMouseLeave() { + if (this.state.hoverArea) { + this.setState({ + hoverArea: null + }); + } + } + }, { + key: "onMouseMove", + value: function onMouseMove(event) { + var _this$props = this.props, + isRTL = _this$props.isRTL, + container = _this$props.container; + + var _container$getBoundin = container.getBoundingClientRect(), + width = _container$getBoundin.width, + left = _container$getBoundin.left, + right = _container$getBoundin.right; + + var hoverArea = null; + + if (event.clientX - left < width / 3) { + hoverArea = isRTL ? 'right' : 'left'; + } else if (right - event.clientX < width / 3) { + hoverArea = isRTL ? 'left' : 'right'; + } + + if (hoverArea !== this.state.hoverArea) { + this.setState({ + hoverArea: hoverArea + }); + } + } + }, { + key: "render", + value: function render() { + var hoverArea = this.state.hoverArea; + var children = this.props.children; + return children({ + hoverArea: hoverArea + }); + } + }]); + + return HoverArea; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var hover_area = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + isRTL: select('core/block-editor').getSettings().isRTL + }; +})(hover_area_HoverArea)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/dom.js +/** + * Given a block client ID, returns the corresponding DOM node for the block, + * if exists. As much as possible, this helper should be avoided, and used only + * in cases where isolated behaviors need remote access to a block node. + * + * @param {string} clientId Block client ID. + * + * @return {Element} Block DOM node. + */ +function getBlockDOMNode(clientId) { + return document.querySelector('[data-block="' + clientId + '"]'); +} +/** + * Given a block client ID, returns the corresponding DOM node for the block + * focusable wrapper, if exists. As much as possible, this helper should be + * avoided, and used only in cases where isolated behaviors need remote access + * to a block node. + * + * @param {string} clientId Block client ID. + * + * @return {Element} Block DOM node. + */ + +function getBlockFocusableWrapper(clientId) { + return getBlockDOMNode(clientId).closest('.block-editor-block-list__block'); +} +/** + * Returns true if the given HTMLElement is a block focus stop. Blocks without + * their own text fields rely on the focus stop to be keyboard navigable. + * + * @param {HTMLElement} element Element to test. + * + * @return {boolean} Whether element is a block focus stop. + */ + +function isBlockFocusStop(element) { + return element.classList.contains('block-editor-block-list__block'); +} +/** + * Returns true if two elements are contained within the same block. + * + * @param {HTMLElement} a First element. + * @param {HTMLElement} b Second element. + * + * @return {boolean} Whether elements are in the same block. + */ + +function isInSameBlock(a, b) { + return a.closest('[data-block]') === b.closest('[data-block]'); +} +/** + * Returns true if an elements is considered part of the block and not its children. + * + * @param {HTMLElement} blockElement Block container element. + * @param {HTMLElement} element Element. + * + * @return {boolean} Whether element is in the block Element but not its children. + */ + +function isInsideRootBlock(blockElement, element) { + var innerBlocksContainer = blockElement.querySelector('.block-editor-block-list__layout'); + return blockElement.contains(element) && (!innerBlocksContainer || !innerBlocksContainer.contains(element)); +} +/** + * Returns true if the given HTMLElement contains inner blocks (an InnerBlocks + * element). + * + * @param {HTMLElement} element Element to test. + * + * @return {boolean} Whether element contains inner blocks. + */ + +function hasInnerBlocksContext(element) { + return !!element.querySelector('.block-editor-block-list__layout'); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/block.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + + + +/** + * Internal dependencies + */ + + + + + + + + + + + + + + + + + + +var block_BlockListBlock = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockListBlock, _Component); + + function BlockListBlock() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockListBlock); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockListBlock).apply(this, arguments)); + _this.setBlockListRef = _this.setBlockListRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.bindBlockNode = _this.bindBlockNode.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.maybeHover = _this.maybeHover.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.forceFocusedContextualToolbar = _this.forceFocusedContextualToolbar.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.hideHoverEffects = _this.hideHoverEffects.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.preventDrag = _this.preventDrag.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onPointerDown = _this.onPointerDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.deleteOrInsertAfterWrapper = _this.deleteOrInsertAfterWrapper.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onBlockError = _this.onBlockError.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onTouchStart = _this.onTouchStart.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onClick = _this.onClick.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onDragStart = _this.onDragStart.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onDragEnd = _this.onDragEnd.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.selectOnOpen = _this.selectOnOpen.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.hadTouchStart = false; + _this.state = { + error: null, + dragging: false, + isHovered: false + }; + _this.isForcingContextualToolbar = false; + return _this; + } + + Object(createClass["a" /* default */])(BlockListBlock, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (this.props.isSelected) { + this.focusTabbable(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.isForcingContextualToolbar) { + // The forcing of contextual toolbar should only be true during one update, + // after the first update normal conditions should apply. + this.isForcingContextualToolbar = false; + } + + if (this.props.isTypingWithinBlock || this.props.isSelected) { + this.hideHoverEffects(); + } + + if (this.props.isSelected && !prevProps.isSelected) { + this.focusTabbable(true); + } // When triggering a multi-selection, move the focus to the wrapper of the first selected block. + // This ensures that it is not possible to continue editing the initially selected block + // when a multi-selection is triggered. + + + if (this.props.isFirstMultiSelected && !prevProps.isFirstMultiSelected) { + this.wrapperNode.focus(); + } + } + }, { + key: "setBlockListRef", + value: function setBlockListRef(node) { + this.wrapperNode = node; + this.props.blockRef(node, this.props.clientId); // We need to rerender to trigger a rerendering of HoverArea + // it depents on this.wrapperNode but we can't keep this.wrapperNode in state + // Because we need it to be immediately availeble for `focusableTabbable` to work. + + this.forceUpdate(); + } + }, { + key: "bindBlockNode", + value: function bindBlockNode(node) { + this.node = node; + } + /** + * When a block becomes selected, transition focus to an inner tabbable. + * + * @param {boolean} ignoreInnerBlocks Should not focus inner blocks. + */ + + }, { + key: "focusTabbable", + value: function focusTabbable(ignoreInnerBlocks) { + var _this2 = this; + + var initialPosition = this.props.initialPosition; // Focus is captured by the wrapper node, so while focus transition + // should only consider tabbables within editable display, since it + // may be the wrapper itself or a side control which triggered the + // focus event, don't unnecessary transition to an inner tabbable. + + if (this.wrapperNode.contains(document.activeElement)) { + return; + } // Find all tabbables within node. + + + var textInputs = external_this_wp_dom_["focus"].tabbable.find(this.node).filter(external_this_wp_dom_["isTextField"]) // Exclude inner blocks + .filter(function (node) { + return !ignoreInnerBlocks || isInsideRootBlock(_this2.node, node); + }); // If reversed (e.g. merge via backspace), use the last in the set of + // tabbables. + + var isReverse = -1 === initialPosition; + var target = (isReverse ? external_lodash_["last"] : external_lodash_["first"])(textInputs); + + if (!target) { + this.wrapperNode.focus(); + return; + } + + target.focus(); // In reverse case, need to explicitly place caret position. + + if (isReverse) { + Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, true); + Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(target, true); + } + } + }, { + key: "setAttributes", + value: function setAttributes(attributes) { + var _this$props = this.props, + clientId = _this$props.clientId, + name = _this$props.name, + onChange = _this$props.onChange; + var type = Object(external_this_wp_blocks_["getBlockType"])(name); + onChange(clientId, attributes); + var metaAttributes = Object(external_lodash_["reduce"])(attributes, function (result, value, key) { + if (Object(external_lodash_["get"])(type, ['attributes', key, 'source']) === 'meta') { + result[type.attributes[key].meta] = value; + } + + return result; + }, {}); + + if (Object(external_lodash_["size"])(metaAttributes)) { + this.props.onMetaChange(metaAttributes); + } + } + }, { + key: "onTouchStart", + value: function onTouchStart() { + // Detect touchstart to disable hover on iOS + this.hadTouchStart = true; + } + }, { + key: "onClick", + value: function onClick() { + // Clear touchstart detection + // Browser will try to emulate mouse events also see https://www.html5rocks.com/en/mobile/touchandmouse/ + this.hadTouchStart = false; + } + /** + * A mouseover event handler to apply hover effect when a pointer device is + * placed within the bounds of the block. The mouseover event is preferred + * over mouseenter because it may be the case that a previous mouseenter + * event was blocked from being handled by a IgnoreNestedEvents component, + * therefore transitioning out of a nested block to the bounds of the block + * would otherwise not trigger a hover effect. + * + * @see https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter + */ + + }, { + key: "maybeHover", + value: function maybeHover() { + var _this$props2 = this.props, + isPartOfMultiSelection = _this$props2.isPartOfMultiSelection, + isSelected = _this$props2.isSelected; + var isHovered = this.state.isHovered; + + if (isHovered || isPartOfMultiSelection || isSelected || this.hadTouchStart) { + return; + } + + this.setState({ + isHovered: true + }); + } + /** + * Sets the block state as unhovered if currently hovering. There are cases + * where mouseleave may occur but the block is not hovered (multi-select), + * so to avoid unnecesary renders, the state is only set if hovered. + */ + + }, { + key: "hideHoverEffects", + value: function hideHoverEffects() { + if (this.state.isHovered) { + this.setState({ + isHovered: false + }); + } + } + /** + * Marks the block as selected when focused and not already selected. This + * specifically handles the case where block does not set focus on its own + * (via `setFocus`), typically if there is no focusable input in the block. + * + * @return {void} + */ + + }, { + key: "onFocus", + value: function onFocus() { + if (!this.props.isSelected && !this.props.isPartOfMultiSelection) { + this.props.onSelect(); + } + } + /** + * Prevents default dragging behavior within a block to allow for multi- + * selection to take effect unhampered. + * + * @param {DragEvent} event Drag event. + * + * @return {void} + */ + + }, { + key: "preventDrag", + value: function preventDrag(event) { + event.preventDefault(); + } + /** + * Begins tracking cursor multi-selection when clicking down within block. + * + * @param {MouseEvent} event A mousedown event. + * + * @return {void} + */ + + }, { + key: "onPointerDown", + value: function onPointerDown(event) { + // Not the main button. + // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button + if (event.button !== 0) { + return; + } + + if (event.shiftKey) { + if (!this.props.isSelected) { + this.props.onShiftSelection(); + event.preventDefault(); + } + } else { + this.props.onSelectionStart(this.props.clientId); // Allow user to escape out of a multi-selection to a singular + // selection of a block via click. This is handled here since + // onFocus excludes blocks involved in a multiselection, as + // focus can be incurred by starting a multiselection (focus + // moved to first block's multi-controls). + + if (this.props.isPartOfMultiSelection) { + this.props.onSelect(); + } + } + } + /** + * Interprets keydown event intent to remove or insert after block if key + * event occurs on wrapper node. This can occur when the block has no text + * fields of its own, particularly after initial insertion, to allow for + * easy deletion and continuous writing flow to add additional content. + * + * @param {KeyboardEvent} event Keydown event. + */ + + }, { + key: "deleteOrInsertAfterWrapper", + value: function deleteOrInsertAfterWrapper(event) { + var keyCode = event.keyCode, + target = event.target; // These block shortcuts should only trigger if the wrapper of the block is selected + // And when it's not a multi-selection to avoid conflicting with RichText/Inputs and multiselection. + + if (!this.props.isSelected || target !== this.wrapperNode || this.props.isLocked) { + return; + } + + switch (keyCode) { + case external_this_wp_keycodes_["ENTER"]: + // Insert default block after current block if enter and event + // not already handled by descendant. + this.props.onInsertDefaultBlockAfter(); + event.preventDefault(); + break; + + case external_this_wp_keycodes_["BACKSPACE"]: + case external_this_wp_keycodes_["DELETE"]: + // Remove block on backspace. + var _this$props3 = this.props, + clientId = _this$props3.clientId, + onRemove = _this$props3.onRemove; + onRemove(clientId); + event.preventDefault(); + break; + } + } + }, { + key: "onBlockError", + value: function onBlockError(error) { + this.setState({ + error: error + }); + } + }, { + key: "onDragStart", + value: function onDragStart() { + this.setState({ + dragging: true + }); + } + }, { + key: "onDragEnd", + value: function onDragEnd() { + this.setState({ + dragging: false + }); + } + }, { + key: "selectOnOpen", + value: function selectOnOpen(open) { + if (open && !this.props.isSelected) { + this.props.onSelect(); + } + } + }, { + key: "forceFocusedContextualToolbar", + value: function forceFocusedContextualToolbar() { + this.isForcingContextualToolbar = true; // trigger a re-render + + this.setState(function () { + return {}; + }); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + return Object(external_this_wp_element_["createElement"])(hover_area, { + container: this.wrapperNode + }, function (_ref) { + var hoverArea = _ref.hoverArea; + var _this3$props = _this3.props, + mode = _this3$props.mode, + isFocusMode = _this3$props.isFocusMode, + hasFixedToolbar = _this3$props.hasFixedToolbar, + isLocked = _this3$props.isLocked, + isFirst = _this3$props.isFirst, + isLast = _this3$props.isLast, + clientId = _this3$props.clientId, + rootClientId = _this3$props.rootClientId, + isSelected = _this3$props.isSelected, + isPartOfMultiSelection = _this3$props.isPartOfMultiSelection, + isFirstMultiSelected = _this3$props.isFirstMultiSelected, + isTypingWithinBlock = _this3$props.isTypingWithinBlock, + isCaretWithinFormattedText = _this3$props.isCaretWithinFormattedText, + isEmptyDefaultBlock = _this3$props.isEmptyDefaultBlock, + isMovable = _this3$props.isMovable, + isParentOfSelectedBlock = _this3$props.isParentOfSelectedBlock, + isDraggable = _this3$props.isDraggable, + className = _this3$props.className, + name = _this3$props.name, + isValid = _this3$props.isValid, + attributes = _this3$props.attributes; + var isHovered = _this3.state.isHovered && !isPartOfMultiSelection; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); // translators: %s: Type of block (i.e. Text, Image etc) + + var blockLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block: %s'), blockType.title); // The block as rendered in the editor is composed of general block UI + // (mover, toolbar, wrapper) and the display of the block content. + + var isUnregisteredBlock = name === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); // If the block is selected and we're typing the block should not appear. + // Empty paragraph blocks should always show up as unselected. + + var showEmptyBlockSideInserter = (isSelected || isHovered) && isEmptyDefaultBlock && isValid; + var shouldAppearSelected = !isFocusMode && !showEmptyBlockSideInserter && isSelected && !isTypingWithinBlock; + var shouldAppearHovered = !isFocusMode && !hasFixedToolbar && isHovered && !isEmptyDefaultBlock; // We render block movers and block settings to keep them tabbale even if hidden + + var shouldRenderMovers = !isFocusMode && (isSelected || hoverArea === 'left') && !showEmptyBlockSideInserter && !isPartOfMultiSelection && !isTypingWithinBlock; + var shouldShowBreadcrumb = !isFocusMode && isHovered && !isEmptyDefaultBlock; + var shouldShowContextualToolbar = !hasFixedToolbar && !showEmptyBlockSideInserter && (isSelected && (!isTypingWithinBlock || isCaretWithinFormattedText) || isFirstMultiSelected); + var shouldShowMobileToolbar = shouldAppearSelected; + var _this3$state = _this3.state, + error = _this3$state.error, + dragging = _this3$state.dragging; // Insertion point can only be made visible if the block is at the + // the extent of a multi-selection, or not in a multi-selection. + + var shouldShowInsertionPoint = isPartOfMultiSelection && isFirstMultiSelected || !isPartOfMultiSelection; // The wp-block className is important for editor styles. + // Generate the wrapper class names handling the different states of the block. + + var wrapperClassName = classnames_default()('wp-block editor-block-list__block block-editor-block-list__block', { + 'has-warning': !isValid || !!error || isUnregisteredBlock, + 'is-selected': shouldAppearSelected, + 'is-multi-selected': isPartOfMultiSelection, + 'is-hovered': shouldAppearHovered, + 'is-reusable': Object(external_this_wp_blocks_["isReusableBlock"])(blockType), + 'is-dragging': dragging, + 'is-typing': isTypingWithinBlock, + 'is-focused': isFocusMode && (isSelected || isParentOfSelectedBlock), + 'is-focus-mode': isFocusMode + }, className); + var onReplace = _this3.props.onReplace; // Determine whether the block has props to apply to the wrapper. + + var wrapperProps = _this3.props.wrapperProps; + + if (blockType.getEditWrapperProps) { + wrapperProps = Object(objectSpread["a" /* default */])({}, wrapperProps, blockType.getEditWrapperProps(attributes)); + } + + var blockElementId = "block-".concat(clientId); // We wrap the BlockEdit component in a div that hides it when editing in + // HTML mode. This allows us to render all of the ancillary pieces + // (InspectorControls, etc.) which are inside `BlockEdit` but not + // `BlockHTML`, even in HTML mode. + + var blockEdit = Object(external_this_wp_element_["createElement"])(block_edit, { + name: name, + isSelected: isSelected, + attributes: attributes, + setAttributes: _this3.setAttributes, + insertBlocksAfter: isLocked ? undefined : _this3.props.onInsertBlocksAfter, + onReplace: isLocked ? undefined : onReplace, + mergeBlocks: isLocked ? undefined : _this3.props.onMerge, + clientId: clientId, + isSelectionEnabled: _this3.props.isSelectionEnabled, + toggleSelection: _this3.props.toggleSelection + }); + + if (mode !== 'visual') { + blockEdit = Object(external_this_wp_element_["createElement"])("div", { + style: { + display: 'none' + } + }, blockEdit); + } // Disable reasons: + // + // jsx-a11y/mouse-events-have-key-events: + // - onMouseOver is explicitly handling hover effects + // + // jsx-a11y/no-static-element-interactions: + // - Each block can be selected by clicking on it + + /* eslint-disable jsx-a11y/mouse-events-have-key-events, jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + + + return Object(external_this_wp_element_["createElement"])(ignore_nested_events, Object(esm_extends["a" /* default */])({ + id: blockElementId, + ref: _this3.setBlockListRef, + onMouseOver: _this3.maybeHover, + onMouseOverHandled: _this3.hideHoverEffects, + onMouseLeave: _this3.hideHoverEffects, + className: wrapperClassName, + "data-type": name, + onTouchStart: _this3.onTouchStart, + onFocus: _this3.onFocus, + onClick: _this3.onClick, + onKeyDown: _this3.deleteOrInsertAfterWrapper, + tabIndex: "0", + "aria-label": blockLabel, + childHandledEvents: ['onDragStart', 'onMouseDown'] + }, wrapperProps), shouldShowInsertionPoint && Object(external_this_wp_element_["createElement"])(insertion_point, { + clientId: clientId, + rootClientId: rootClientId + }), Object(external_this_wp_element_["createElement"])(block_drop_zone, { + clientId: clientId, + rootClientId: rootClientId + }), isFirstMultiSelected && Object(external_this_wp_element_["createElement"])(multi_controls, { + rootClientId: rootClientId + }), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-list__block-edit block-editor-block-list__block-edit" + }, shouldRenderMovers && Object(external_this_wp_element_["createElement"])(block_mover, { + clientIds: clientId, + blockElementId: blockElementId, + isFirst: isFirst, + isLast: isLast, + isHidden: !(isHovered || isSelected) || hoverArea !== 'left', + isDraggable: isDraggable !== false && !isPartOfMultiSelection && isMovable, + onDragStart: _this3.onDragStart, + onDragEnd: _this3.onDragEnd + }), shouldShowBreadcrumb && Object(external_this_wp_element_["createElement"])(breadcrumb, { + clientId: clientId, + isHidden: !(isHovered || isSelected) || hoverArea !== 'left' + }), (shouldShowContextualToolbar || _this3.isForcingContextualToolbar) && Object(external_this_wp_element_["createElement"])(block_contextual_toolbar // If the toolbar is being shown because of being forced + // it should focus the toolbar right after the mount. + , { + focusOnMount: _this3.isForcingContextualToolbar + }), !shouldShowContextualToolbar && isSelected && !hasFixedToolbar && !isEmptyDefaultBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true, + eventName: "keydown", + shortcuts: { + 'alt+f10': _this3.forceFocusedContextualToolbar + } + }), Object(external_this_wp_element_["createElement"])(ignore_nested_events, { + ref: _this3.bindBlockNode, + onDragStart: _this3.preventDrag, + onMouseDown: _this3.onPointerDown, + "data-block": clientId + }, Object(external_this_wp_element_["createElement"])(block_crash_boundary, { + onError: _this3.onBlockError + }, isValid && blockEdit, isValid && mode === 'html' && Object(external_this_wp_element_["createElement"])(block_html, { + clientId: clientId + }), !isValid && [Object(external_this_wp_element_["createElement"])(block_invalid_warning, { + key: "invalid-warning", + clientId: clientId + }), Object(external_this_wp_element_["createElement"])("div", { + key: "invalid-preview" + }, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes))]), shouldShowMobileToolbar && Object(external_this_wp_element_["createElement"])(block_mobile_toolbar, { + clientId: clientId + }), !!error && Object(external_this_wp_element_["createElement"])(block_crash_warning, null))), showEmptyBlockSideInserter && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-list__side-inserter block-editor-block-list__side-inserter" + }, Object(external_this_wp_element_["createElement"])(inserter_with_shortcuts, { + clientId: clientId, + rootClientId: rootClientId, + onToggle: _this3.selectOnOpen + })), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-list__empty-block-inserter block-editor-block-list__empty-block-inserter" + }, Object(external_this_wp_element_["createElement"])(inserter, { + position: "top right", + onToggle: _this3.selectOnOpen, + rootClientId: rootClientId, + clientId: clientId + })))); + /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + }); + } + }]); + + return BlockListBlock; +}(external_this_wp_element_["Component"]); +var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId, + rootClientId = _ref2.rootClientId, + isLargeViewport = _ref2.isLargeViewport; + + var _select = select('core/block-editor'), + isBlockSelected = _select.isBlockSelected, + isAncestorMultiSelected = _select.isAncestorMultiSelected, + isBlockMultiSelected = _select.isBlockMultiSelected, + isFirstMultiSelectedBlock = _select.isFirstMultiSelectedBlock, + isTyping = _select.isTyping, + isCaretWithinFormattedText = _select.isCaretWithinFormattedText, + getBlockMode = _select.getBlockMode, + isSelectionEnabled = _select.isSelectionEnabled, + getSelectedBlocksInitialCaretPosition = _select.getSelectedBlocksInitialCaretPosition, + getSettings = _select.getSettings, + hasSelectedInnerBlock = _select.hasSelectedInnerBlock, + getTemplateLock = _select.getTemplateLock, + __unstableGetBlockWithoutInnerBlocks = _select.__unstableGetBlockWithoutInnerBlocks; + + var block = __unstableGetBlockWithoutInnerBlocks(clientId); + + var isSelected = isBlockSelected(clientId); + + var _getSettings = getSettings(), + hasFixedToolbar = _getSettings.hasFixedToolbar, + focusMode = _getSettings.focusMode; + + var templateLock = getTemplateLock(rootClientId); + var isParentOfSelectedBlock = hasSelectedInnerBlock(clientId, true); // The fallback to `{}` is a temporary fix. + // This function should never be called when a block is not present in the state. + // It happens now because the order in withSelect rendering is not correct. + + var _ref3 = block || {}, + name = _ref3.name, + attributes = _ref3.attributes, + isValid = _ref3.isValid; + + return { + isPartOfMultiSelection: isBlockMultiSelected(clientId) || isAncestorMultiSelected(clientId), + isFirstMultiSelected: isFirstMultiSelectedBlock(clientId), + // We only care about this prop when the block is selected + // Thus to avoid unnecessary rerenders we avoid updating the prop if the block is not selected. + isTypingWithinBlock: (isSelected || isParentOfSelectedBlock) && isTyping(), + isCaretWithinFormattedText: isCaretWithinFormattedText(), + mode: getBlockMode(clientId), + isSelectionEnabled: isSelectionEnabled(), + initialPosition: isSelected ? getSelectedBlocksInitialCaretPosition() : null, + isEmptyDefaultBlock: name && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])({ + name: name, + attributes: attributes + }), + isMovable: 'all' !== templateLock, + isLocked: !!templateLock, + isFocusMode: focusMode && isLargeViewport, + hasFixedToolbar: hasFixedToolbar && isLargeViewport, + // Users of the editor.BlockListBlock filter used to be able to access the block prop + // Ideally these blocks would rely on the clientId prop only. + // This is kept for backward compatibility reasons. + block: block, + name: name, + attributes: attributes, + isValid: isValid, + isSelected: isSelected, + isParentOfSelectedBlock: isParentOfSelectedBlock + }; +}); +var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref4) { + var select = _ref4.select; + + var _dispatch = dispatch('core/block-editor'), + updateBlockAttributes = _dispatch.updateBlockAttributes, + selectBlock = _dispatch.selectBlock, + multiSelect = _dispatch.multiSelect, + insertBlocks = _dispatch.insertBlocks, + insertDefaultBlock = _dispatch.insertDefaultBlock, + removeBlock = _dispatch.removeBlock, + mergeBlocks = _dispatch.mergeBlocks, + replaceBlocks = _dispatch.replaceBlocks, + _toggleSelection = _dispatch.toggleSelection; + + return { + onChange: function onChange(clientId, attributes) { + updateBlockAttributes(clientId, attributes); + }, + onSelect: function onSelect() { + var clientId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ownProps.clientId; + var initialPosition = arguments.length > 1 ? arguments[1] : undefined; + selectBlock(clientId, initialPosition); + }, + onInsertBlocks: function onInsertBlocks(blocks, index) { + var rootClientId = ownProps.rootClientId; + insertBlocks(blocks, index, rootClientId); + }, + onInsertDefaultBlockAfter: function onInsertDefaultBlockAfter() { + var clientId = ownProps.clientId, + rootClientId = ownProps.rootClientId; + + var _select2 = select('core/block-editor'), + getBlockIndex = _select2.getBlockIndex; + + var index = getBlockIndex(clientId, rootClientId); + insertDefaultBlock({}, rootClientId, index + 1); + }, + onInsertBlocksAfter: function onInsertBlocksAfter(blocks) { + var clientId = ownProps.clientId, + rootClientId = ownProps.rootClientId; + + var _select3 = select('core/block-editor'), + getBlockIndex = _select3.getBlockIndex; + + var index = getBlockIndex(clientId, rootClientId); + insertBlocks(blocks, index + 1, rootClientId); + }, + onRemove: function onRemove(clientId) { + removeBlock(clientId); + }, + onMerge: function onMerge(forward) { + var clientId = ownProps.clientId; + + var _select4 = select('core/block-editor'), + getPreviousBlockClientId = _select4.getPreviousBlockClientId, + getNextBlockClientId = _select4.getNextBlockClientId; + + if (forward) { + var nextBlockClientId = getNextBlockClientId(clientId); + + if (nextBlockClientId) { + mergeBlocks(clientId, nextBlockClientId); + } + } else { + var previousBlockClientId = getPreviousBlockClientId(clientId); + + if (previousBlockClientId) { + mergeBlocks(previousBlockClientId, clientId); + } + } + }, + onReplace: function onReplace(blocks) { + replaceBlocks([ownProps.clientId], blocks); + }, + onMetaChange: function onMetaChange(updatedMeta) { + var _select5 = select('core/block-editor'), + getSettings = _select5.getSettings; + + var onChangeMeta = getSettings().__experimentalMetaSource.onChange; + + onChangeMeta(updatedMeta); + }, + onShiftSelection: function onShiftSelection() { + if (!ownProps.isSelectionEnabled) { + return; + } + + var _select6 = select('core/block-editor'), + getBlockSelectionStart = _select6.getBlockSelectionStart; + + if (getBlockSelectionStart()) { + multiSelect(getBlockSelectionStart(), ownProps.clientId); + } else { + selectBlock(ownProps.clientId); + } + }, + toggleSelection: function toggleSelection(selectionEnabled) { + _toggleSelection(selectionEnabled); + } + }; +}); +/* harmony default export */ var block_list_block = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], Object(external_this_wp_viewport_["withViewportMatch"])({ + isLargeViewport: 'medium' +}), applyWithSelect, applyWithDispatch, Object(external_this_wp_components_["withFilters"])('editor.BlockListBlock'))(block_BlockListBlock)); + +// EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} +var external_this_wp_htmlEntities_ = __webpack_require__(57); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/default-block-appender/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + +function DefaultBlockAppender(_ref) { + var isLocked = _ref.isLocked, + isVisible = _ref.isVisible, + onAppend = _ref.onAppend, + showPrompt = _ref.showPrompt, + placeholder = _ref.placeholder, + rootClientId = _ref.rootClientId, + hovered = _ref.hovered, + setState = _ref.setState; + + if (isLocked || !isVisible) { + return null; + } + + var value = Object(external_this_wp_htmlEntities_["decodeEntities"])(placeholder) || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'); // The appender "button" is in-fact a text field so as to support + // transitions by WritingFlow occurring by arrow key press. WritingFlow + // only supports tab transitions into text fields and to the block focus + // boundary. + // + // See: https://github.com/WordPress/gutenberg/issues/4829#issuecomment-374213658 + // + // If it were ever to be made to be a proper `button` element, it is + // important to note that `onFocus` alone would not be sufficient to + // capture click events, notably in Firefox. + // + // See: https://gist.github.com/cvrebert/68659d0333a578d75372 + // The wp-block className is important for editor styles. + + + return Object(external_this_wp_element_["createElement"])("div", { + "data-root-client-id": rootClientId || '', + className: "wp-block editor-default-block-appender block-editor-default-block-appender", + onMouseEnter: function onMouseEnter() { + return setState({ + hovered: true + }); + }, + onMouseLeave: function onMouseLeave() { + return setState({ + hovered: false + }); + } + }, Object(external_this_wp_element_["createElement"])(block_drop_zone, { + rootClientId: rootClientId + }), Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, { + role: "button", + "aria-label": Object(external_this_wp_i18n_["__"])('Add block'), + className: "editor-default-block-appender__content block-editor-default-block-appender__content", + readOnly: true, + onFocus: onAppend, + value: showPrompt ? value : '' + }), hovered && Object(external_this_wp_element_["createElement"])(inserter_with_shortcuts, { + rootClientId: rootClientId + }), Object(external_this_wp_element_["createElement"])(inserter, { + rootClientId: rootClientId, + position: "top right", + isAppender: true + })); +} +/* harmony default export */ var default_block_appender = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_compose_["withState"])({ + hovered: false +}), Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/block-editor'), + getBlockCount = _select.getBlockCount, + getBlockName = _select.getBlockName, + isBlockValid = _select.isBlockValid, + getSettings = _select.getSettings, + getTemplateLock = _select.getTemplateLock; + + var isEmpty = !getBlockCount(ownProps.rootClientId); + var isLastBlockDefault = getBlockName(ownProps.lastBlockClientId) === Object(external_this_wp_blocks_["getDefaultBlockName"])(); + var isLastBlockValid = isBlockValid(ownProps.lastBlockClientId); + + var _getSettings = getSettings(), + bodyPlaceholder = _getSettings.bodyPlaceholder; + + return { + isVisible: isEmpty || !isLastBlockDefault || !isLastBlockValid, + showPrompt: isEmpty, + isLocked: !!getTemplateLock(ownProps.rootClientId), + placeholder: bodyPlaceholder + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var _dispatch = dispatch('core/block-editor'), + insertDefaultBlock = _dispatch.insertDefaultBlock, + startTyping = _dispatch.startTyping; + + return { + onAppend: function onAppend() { + var rootClientId = ownProps.rootClientId; + insertDefaultBlock(undefined, rootClientId); + startTyping(); + } + }; +}))(DefaultBlockAppender)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list-appender/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + + +function BlockListAppender(_ref) { + var blockClientIds = _ref.blockClientIds, + rootClientId = _ref.rootClientId, + canInsertDefaultBlock = _ref.canInsertDefaultBlock, + isLocked = _ref.isLocked; + + if (isLocked) { + return null; + } + + if (canInsertDefaultBlock) { + return Object(external_this_wp_element_["createElement"])(ignore_nested_events, { + childHandledEvents: ['onFocus', 'onClick', 'onKeyDown'] + }, Object(external_this_wp_element_["createElement"])(default_block_appender, { + rootClientId: rootClientId, + lastBlockClientId: Object(external_lodash_["last"])(blockClientIds) + })); + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "block-list-appender" + }, Object(external_this_wp_element_["createElement"])(inserter, { + rootClientId: rootClientId, + renderToggle: function renderToggle(_ref2) { + var onToggle = _ref2.onToggle, + disabled = _ref2.disabled, + isOpen = _ref2.isOpen; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + label: Object(external_this_wp_i18n_["__"])('Add block'), + icon: "insert", + onClick: onToggle, + className: "block-list-appender__toggle", + "aria-haspopup": "true", + "aria-expanded": isOpen, + disabled: disabled + }); + }, + isAppender: true + })); +} + +/* harmony default export */ var block_list_appender = (Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { + var rootClientId = _ref3.rootClientId; + + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder, + canInsertBlockType = _select.canInsertBlockType, + getTemplateLock = _select.getTemplateLock; + + return { + isLocked: !!getTemplateLock(rootClientId), + blockClientIds: getBlockOrder(rootClientId), + canInsertDefaultBlock: canInsertBlockType(Object(external_this_wp_blocks_["getDefaultBlockName"])(), rootClientId) + }; +})(BlockListAppender)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-list/index.js + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + +var block_list_forceSyncUpdates = function forceSyncUpdates(WrappedComponent) { + return function (props) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["__experimentalAsyncModeProvider"], { + value: false + }, Object(external_this_wp_element_["createElement"])(WrappedComponent, props)); + }; +}; + +var block_list_BlockList = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockList, _Component); + + function BlockList(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockList); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockList).call(this, props)); + _this.onSelectionStart = _this.onSelectionStart.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectionEnd = _this.onSelectionEnd.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setBlockRef = _this.setBlockRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setLastClientY = _this.setLastClientY.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onPointerMove = Object(external_lodash_["throttle"])(_this.onPointerMove.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), 100); // Browser does not fire `*move` event when the pointer position changes + // relative to the document, so fire it with the last known position. + + _this.onScroll = function () { + return _this.onPointerMove({ + clientY: _this.lastClientY + }); + }; + + _this.lastClientY = 0; + _this.nodes = {}; + return _this; + } + + Object(createClass["a" /* default */])(BlockList, [{ + key: "componentDidMount", + value: function componentDidMount() { + window.addEventListener('mousemove', this.setLastClientY); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + window.removeEventListener('mousemove', this.setLastClientY); + } + }, { + key: "setLastClientY", + value: function setLastClientY(_ref) { + var clientY = _ref.clientY; + this.lastClientY = clientY; + } + }, { + key: "setBlockRef", + value: function setBlockRef(node, clientId) { + if (node === null) { + delete this.nodes[clientId]; + } else { + this.nodes = Object(objectSpread["a" /* default */])({}, this.nodes, Object(defineProperty["a" /* default */])({}, clientId, node)); + } + } + /** + * Handles a pointer move event to update the extent of the current cursor + * multi-selection. + * + * @param {MouseEvent} event A mousemove event object. + * + * @return {void} + */ + + }, { + key: "onPointerMove", + value: function onPointerMove(_ref2) { + var clientY = _ref2.clientY; + + // We don't start multi-selection until the mouse starts moving, so as + // to avoid dispatching multi-selection actions on an in-place click. + if (!this.props.isMultiSelecting) { + this.props.onStartMultiSelect(); + } + + var blockContentBoundaries = getBlockDOMNode(this.selectionAtStart).getBoundingClientRect(); // prevent multi-selection from triggering when the selected block is a float + // and the cursor is still between the top and the bottom of the block. + + if (clientY >= blockContentBoundaries.top && clientY <= blockContentBoundaries.bottom) { + return; + } + + var y = clientY - blockContentBoundaries.top; + var key = Object(external_lodash_["findLast"])(this.coordMapKeys, function (coordY) { + return coordY < y; + }); + this.onSelectionChange(this.coordMap[key]); + } + /** + * Binds event handlers to the document for tracking a pending multi-select + * in response to a mousedown event occurring in a rendered block. + * + * @param {string} clientId Client ID of block where mousedown occurred. + * + * @return {void} + */ + + }, { + key: "onSelectionStart", + value: function onSelectionStart(clientId) { + if (!this.props.isSelectionEnabled) { + return; + } + + var boundaries = this.nodes[clientId].getBoundingClientRect(); // Create a clientId to Y coördinate map. + + var clientIdToCoordMap = Object(external_lodash_["mapValues"])(this.nodes, function (node) { + return node.getBoundingClientRect().top - boundaries.top; + }); // Cache a Y coördinate to clientId map for use in `onPointerMove`. + + this.coordMap = Object(external_lodash_["invert"])(clientIdToCoordMap); // Cache an array of the Y coördinates for use in `onPointerMove`. + // Sort the coördinates, as `this.nodes` will not necessarily reflect + // the current block sequence. + + this.coordMapKeys = Object(external_lodash_["sortBy"])(Object.values(clientIdToCoordMap)); + this.selectionAtStart = clientId; + window.addEventListener('mousemove', this.onPointerMove); // Capture scroll on all elements. + + window.addEventListener('scroll', this.onScroll, true); + window.addEventListener('mouseup', this.onSelectionEnd); + } + /** + * Handles multi-selection changes in response to pointer move. + * + * @param {string} clientId Client ID of block under cursor in multi-select + * drag. + */ + + }, { + key: "onSelectionChange", + value: function onSelectionChange(clientId) { + var _this$props = this.props, + onMultiSelect = _this$props.onMultiSelect, + selectionStart = _this$props.selectionStart, + selectionEnd = _this$props.selectionEnd; + var selectionAtStart = this.selectionAtStart; + var isAtStart = selectionAtStart === clientId; + + if (!selectionAtStart || !this.props.isSelectionEnabled) { + return; + } // If multi-selecting and cursor extent returns to the start of + // selection, cancel multi-select. + + + if (isAtStart && selectionStart) { + onMultiSelect(null, null); + } // Expand multi-selection to block under cursor. + + + if (!isAtStart && selectionEnd !== clientId) { + onMultiSelect(selectionAtStart, clientId); + } + } + /** + * Handles a mouseup event to end the current cursor multi-selection. + * + * @return {void} + */ + + }, { + key: "onSelectionEnd", + value: function onSelectionEnd() { + // Cancel throttled calls. + this.onPointerMove.cancel(); + delete this.coordMap; + delete this.coordMapKeys; + delete this.selectionAtStart; + window.removeEventListener('mousemove', this.onPointerMove); + window.removeEventListener('scroll', this.onScroll, true); + window.removeEventListener('mouseup', this.onSelectionEnd); // We may or may not be in a multi-selection when mouseup occurs (e.g. + // an in-place mouse click), so only trigger stop if multi-selecting. + + if (this.props.isMultiSelecting) { + this.props.onStopMultiSelect(); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props2 = this.props, + blockClientIds = _this$props2.blockClientIds, + rootClientId = _this$props2.rootClientId, + isDraggable = _this$props2.isDraggable, + selectedBlockClientId = _this$props2.selectedBlockClientId, + multiSelectedBlockClientIds = _this$props2.multiSelectedBlockClientIds, + hasMultiSelection = _this$props2.hasMultiSelection; + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-list__layout block-editor-block-list__layout" + }, Object(external_lodash_["map"])(blockClientIds, function (clientId, blockIndex) { + var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; + return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["__experimentalAsyncModeProvider"], { + key: 'block-' + clientId, + value: !isBlockInSelection + }, Object(external_this_wp_element_["createElement"])(block_list_block, { + clientId: clientId, + blockRef: _this2.setBlockRef, + onSelectionStart: _this2.onSelectionStart, + rootClientId: rootClientId, + isFirst: blockIndex === 0, + isLast: blockIndex === blockClientIds.length - 1, + isDraggable: isDraggable + })); + }), Object(external_this_wp_element_["createElement"])(block_list_appender, { + rootClientId: rootClientId + })); + } + }]); + + return BlockList; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_list = (Object(external_this_wp_compose_["compose"])([// This component needs to always be synchronous +// as it's the one changing the async mode +// depending on the block selection. +block_list_forceSyncUpdates, Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder, + isSelectionEnabled = _select.isSelectionEnabled, + isMultiSelecting = _select.isMultiSelecting, + getMultiSelectedBlocksStartClientId = _select.getMultiSelectedBlocksStartClientId, + getMultiSelectedBlocksEndClientId = _select.getMultiSelectedBlocksEndClientId, + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, + hasMultiSelection = _select.hasMultiSelection; + + var rootClientId = ownProps.rootClientId; + return { + blockClientIds: getBlockOrder(rootClientId), + selectionStart: getMultiSelectedBlocksStartClientId(), + selectionEnd: getMultiSelectedBlocksEndClientId(), + isSelectionEnabled: isSelectionEnabled(), + isMultiSelecting: isMultiSelecting(), + selectedBlockClientId: getSelectedBlockClientId(), + multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(), + hasMultiSelection: hasMultiSelection() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + startMultiSelect = _dispatch.startMultiSelect, + stopMultiSelect = _dispatch.stopMultiSelect, + multiSelect = _dispatch.multiSelect; + + return { + onStartMultiSelect: startMultiSelect, + onStopMultiSelect: stopMultiSelect, + onMultiSelect: multiSelect + }; +})])(block_list_BlockList)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inner-blocks/index.js + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + +var inner_blocks_InnerBlocks = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(InnerBlocks, _Component); + + function InnerBlocks() { + var _this; + + Object(classCallCheck["a" /* default */])(this, InnerBlocks); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(InnerBlocks).apply(this, arguments)); + _this.state = { + templateInProcess: !!_this.props.template + }; + + _this.updateNestedSettings(); + + return _this; + } + + Object(createClass["a" /* default */])(InnerBlocks, [{ + key: "getTemplateLock", + value: function getTemplateLock() { + var _this$props = this.props, + templateLock = _this$props.templateLock, + parentLock = _this$props.parentLock; + return templateLock === undefined ? parentLock : templateLock; + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + var innerBlocks = this.props.block.innerBlocks; // only synchronize innerBlocks with template if innerBlocks are empty or a locking all exists + + if (innerBlocks.length === 0 || this.getTemplateLock() === 'all') { + this.synchronizeBlocksWithTemplate(); + } + + if (this.state.templateInProcess) { + this.setState({ + templateInProcess: false + }); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props2 = this.props, + template = _this$props2.template, + block = _this$props2.block; + var innerBlocks = block.innerBlocks; + this.updateNestedSettings(); // only synchronize innerBlocks with template if innerBlocks are empty or a locking all exists + + if (innerBlocks.length === 0 || this.getTemplateLock() === 'all') { + var hasTemplateChanged = !Object(external_lodash_["isEqual"])(template, prevProps.template); + + if (hasTemplateChanged) { + this.synchronizeBlocksWithTemplate(); + } + } + } + /** + * Called on mount or when a mismatch exists between the templates and + * inner blocks, synchronizes inner blocks with the template, replacing + * current blocks. + */ + + }, { + key: "synchronizeBlocksWithTemplate", + value: function synchronizeBlocksWithTemplate() { + var _this$props3 = this.props, + template = _this$props3.template, + block = _this$props3.block, + replaceInnerBlocks = _this$props3.replaceInnerBlocks; + var innerBlocks = block.innerBlocks; // Synchronize with templates. If the next set differs, replace. + + var nextBlocks = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(innerBlocks, template); + + if (!Object(external_lodash_["isEqual"])(nextBlocks, innerBlocks)) { + replaceInnerBlocks(nextBlocks); + } + } + }, { + key: "updateNestedSettings", + value: function updateNestedSettings() { + var _this$props4 = this.props, + blockListSettings = _this$props4.blockListSettings, + allowedBlocks = _this$props4.allowedBlocks, + updateNestedSettings = _this$props4.updateNestedSettings; + var newSettings = { + allowedBlocks: allowedBlocks, + templateLock: this.getTemplateLock() + }; + + if (!external_this_wp_isShallowEqual_default()(blockListSettings, newSettings)) { + updateNestedSettings(newSettings); + } + } + }, { + key: "render", + value: function render() { + var _this$props5 = this.props, + clientId = _this$props5.clientId, + isSmallScreen = _this$props5.isSmallScreen, + isSelectedBlockInRoot = _this$props5.isSelectedBlockInRoot; + var templateInProcess = this.state.templateInProcess; + var classes = classnames_default()('editor-inner-blocks block-editor-inner-blocks', { + 'has-overlay': isSmallScreen && !isSelectedBlockInRoot + }); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes + }, !templateInProcess && Object(external_this_wp_element_["createElement"])(block_list, { + rootClientId: clientId + })); + } + }]); + + return InnerBlocks; +}(external_this_wp_element_["Component"]); + +inner_blocks_InnerBlocks = Object(external_this_wp_compose_["compose"])([context_withBlockEditContext(function (context) { + return Object(external_lodash_["pick"])(context, ['clientId']); +}), Object(external_this_wp_viewport_["withViewportMatch"])({ + isSmallScreen: '< medium' +}), Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/block-editor'), + isBlockSelected = _select.isBlockSelected, + hasSelectedInnerBlock = _select.hasSelectedInnerBlock, + getBlock = _select.getBlock, + getBlockListSettings = _select.getBlockListSettings, + getBlockRootClientId = _select.getBlockRootClientId, + getTemplateLock = _select.getTemplateLock; + + var clientId = ownProps.clientId; + var rootClientId = getBlockRootClientId(clientId); + return { + isSelectedBlockInRoot: isBlockSelected(clientId) || hasSelectedInnerBlock(clientId), + block: getBlock(clientId), + blockListSettings: getBlockListSettings(clientId), + parentLock: getTemplateLock(rootClientId) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var _dispatch = dispatch('core/block-editor'), + replaceBlocks = _dispatch.replaceBlocks, + insertBlocks = _dispatch.insertBlocks, + updateBlockListSettings = _dispatch.updateBlockListSettings; + + var block = ownProps.block, + clientId = ownProps.clientId, + _ownProps$templateIns = ownProps.templateInsertUpdatesSelection, + templateInsertUpdatesSelection = _ownProps$templateIns === void 0 ? true : _ownProps$templateIns; + return { + replaceInnerBlocks: function replaceInnerBlocks(blocks) { + var clientIds = Object(external_lodash_["map"])(block.innerBlocks, 'clientId'); + + if (clientIds.length) { + replaceBlocks(clientIds, blocks); + } else { + insertBlocks(blocks, undefined, clientId, templateInsertUpdatesSelection); + } + }, + updateNestedSettings: function updateNestedSettings(settings) { + dispatch(updateBlockListSettings(clientId, settings)); + } + }; +})])(inner_blocks_InnerBlocks); +inner_blocks_InnerBlocks.Content = Object(external_this_wp_blocks_["withBlockContentContext"])(function (_ref) { + var BlockContent = _ref.BlockContent; + return Object(external_this_wp_element_["createElement"])(BlockContent, null); +}); +/* harmony default export */ var inner_blocks = (inner_blocks_InnerBlocks); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-advanced-controls/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var inspector_advanced_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('InspectorAdvancedControls'), + inspector_advanced_controls_Fill = inspector_advanced_controls_createSlotFill.Fill, + inspector_advanced_controls_Slot = inspector_advanced_controls_createSlotFill.Slot; + +var InspectorAdvancedControls = ifBlockEditSelected(inspector_advanced_controls_Fill); +InspectorAdvancedControls.Slot = inspector_advanced_controls_Slot; +/* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +var inspector_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('InspectorControls'), + inspector_controls_Fill = inspector_controls_createSlotFill.Fill, + inspector_controls_Slot = inspector_controls_createSlotFill.Slot; + +var InspectorControls = ifBlockEditSelected(inspector_controls_Fill); +InspectorControls.Slot = inspector_controls_Slot; +/* harmony default export */ var inspector_controls = (InspectorControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/color-palette/control.js + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + // translators: first %s: The type of color (e.g. background color), second %s: the color name or value (e.g. red or #ff0000) + +var colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(current %s: %s)'); + +function ColorPaletteControl(_ref) { + var colors = _ref.colors, + disableCustomColors = _ref.disableCustomColors, + label = _ref.label, + onChange = _ref.onChange, + value = _ref.value; + var colorObject = utils_getColorObjectByColorValue(colors, value); + var colorName = colorObject && colorObject.name; + var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(colorIndicatorAriaLabel, label.toLowerCase(), colorName || value); + var labelElement = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, label, value && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { + colorValue: value, + "aria-label": ariaLabel + })); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: "editor-color-palette-control block-editor-color-palette-control", + label: labelElement + }, Object(external_this_wp_element_["createElement"])(color_palette, Object(esm_extends["a" /* default */])({ + className: "editor-color-palette-control__color-palette block-editor-color-palette-control__color-palette", + value: value, + onChange: onChange + }, { + colors: colors, + disableCustomColors: disableCustomColors + }))); +} +/* harmony default export */ var color_palette_control = (Object(external_this_wp_compose_["compose"])([with_color_context, Object(external_this_wp_compose_["ifCondition"])(function (_ref2) { + var hasColorsToChoose = _ref2.hasColorsToChoose; + return hasColorsToChoose; +})])(ColorPaletteControl)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/panel-color-settings/index.js + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + +var hasCustomColorsDisabledForSetting = function hasCustomColorsDisabledForSetting(disableCustomColors, colorSetting) { + if (colorSetting.disableCustomColors !== undefined) { + return colorSetting.disableCustomColors; + } + + return disableCustomColors; +}; + +var hasColorsToChooseInSetting = function hasColorsToChooseInSetting() { + var colors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var disableCustomColors = arguments.length > 1 ? arguments[1] : undefined; + var colorSetting = arguments.length > 2 ? arguments[2] : undefined; + + if (!hasCustomColorsDisabledForSetting(disableCustomColors, colorSetting)) { + return true; + } + + return (colorSetting.colors || colors).length > 0; +}; + +var panel_color_settings_hasColorsToChoose = function hasColorsToChoose(_ref) { + var colors = _ref.colors, + disableCustomColors = _ref.disableCustomColors, + colorSettings = _ref.colorSettings; + return Object(external_lodash_["some"])(colorSettings, function (colorSetting) { + return hasColorsToChooseInSetting(colors, disableCustomColors, colorSetting); + }); +}; // translators: first %s: The type of color (e.g. background color), second %s: the color name or value (e.g. red or #ff0000) + + +var panel_color_settings_colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(%s: %s)'); + +var panel_color_settings_renderColorIndicators = function renderColorIndicators(colorSettings, colors) { + return colorSettings.map(function (_ref2, index) { + var value = _ref2.value, + label = _ref2.label, + availableColors = _ref2.colors; + + if (!value) { + return null; + } + + var colorObject = utils_getColorObjectByColorValue(availableColors || colors, value); + var colorName = colorObject && colorObject.name; + var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(panel_color_settings_colorIndicatorAriaLabel, label.toLowerCase(), colorName || value); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { + key: index, + colorValue: value, + "aria-label": ariaLabel + }); + }); +}; // colorSettings is passed as an array of props so that it can be used for +// mapping both ColorIndicator and ColorPaletteControl components. Passing +// an array of components/nodes here wouldn't be feasible. + + +var PanelColorSettings = Object(external_this_wp_compose_["ifCondition"])(panel_color_settings_hasColorsToChoose)(function (_ref3) { + var children = _ref3.children, + colors = _ref3.colors, + colorSettings = _ref3.colorSettings, + disableCustomColors = _ref3.disableCustomColors, + title = _ref3.title, + props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["children", "colors", "colorSettings", "disableCustomColors", "title"]); + + var titleElement = Object(external_this_wp_element_["createElement"])("span", { + className: "editor-panel-color-settings__panel-title block-editor-panel-color-settings__panel-title" + }, title, panel_color_settings_renderColorIndicators(colorSettings, colors)); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], Object(esm_extends["a" /* default */])({ + className: "editor-panel-color-settings block-editor-panel-color-settings", + title: titleElement + }, props), colorSettings.map(function (settings, index) { + return Object(external_this_wp_element_["createElement"])(color_palette_control, Object(esm_extends["a" /* default */])({ + key: index + }, Object(objectSpread["a" /* default */])({ + colors: colors, + disableCustomColors: disableCustomColors + }, settings))); + }), children); +}); +/* harmony default export */ var panel_color_settings = (with_color_context(PanelColorSettings)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/plain-text/index.js + + + + +/** + * External dependencies + */ + + + +function PlainText(_ref) { + var _onChange = _ref.onChange, + className = _ref.className, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "className"]); + + return Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, Object(esm_extends["a" /* default */])({ + className: classnames_default()('editor-plain-text block-editor-plain-text', className), + onChange: function onChange(event) { + return _onChange(event.target.value); + } + }, props)); +} + +/* harmony default export */ var plain_text = (PlainText); + +// EXTERNAL MODULE: ./node_modules/memize/index.js +var memize = __webpack_require__(41); +var memize_default = /*#__PURE__*/__webpack_require__.n(memize); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + +// EXTERNAL MODULE: external {"this":["wp","deprecated"]} +var external_this_wp_deprecated_ = __webpack_require__(49); +var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-edit.js + + +/** + * WordPress dependencies + */ + + + + +var format_edit_FormatEdit = function FormatEdit(_ref) { + var formatTypes = _ref.formatTypes, + onChange = _ref.onChange, + value = _ref.value; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, formatTypes.map(function (_ref2) { + var name = _ref2.name, + Edit = _ref2.edit; + + if (!Edit) { + return null; + } + + var activeFormat = Object(external_this_wp_richText_["getActiveFormat"])(value, name); + var isActive = activeFormat !== undefined; + var activeObject = Object(external_this_wp_richText_["getActiveObject"])(value); + var isObjectActive = activeObject !== undefined; + return Object(external_this_wp_element_["createElement"])(Edit, { + key: name, + isActive: isActive, + activeAttributes: isActive ? activeFormat.attributes || {} : {}, + isObjectActive: isObjectActive, + activeObjectAttributes: isObjectActive ? activeObject.attributes || {} : {}, + value: value, + onChange: onChange + }); + })); +}; + +/* harmony default export */ var format_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/rich-text'), + getFormatTypes = _select.getFormatTypes; + + return { + formatTypes: getFormatTypes() + }; +})(format_edit_FormatEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/format-toolbar/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var format_toolbar_FormatToolbar = function FormatToolbar(_ref) { + var controls = _ref.controls; + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-format-toolbar block-editor-format-toolbar" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, controls.map(function (format) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { + name: "RichText.ToolbarControls.".concat(format), + key: format + }); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { + name: "RichText.ToolbarControls" + }, function (fills) { + return fills.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + icon: false, + position: "bottom left", + label: Object(external_this_wp_i18n_["__"])('More Rich Text Controls'), + controls: Object(external_lodash_["orderBy"])(fills.map(function (_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + props = _ref3[0].props; + + return props; + }), 'title') + }); + }))); +}; + +/* harmony default export */ var format_toolbar = (format_toolbar_FormatToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/aria.js +/** + * External dependencies + */ + + +var aria_isAriaPropName = function isAriaPropName(name) { + return Object(external_lodash_["startsWith"])(name, 'aria-'); +}; + +var aria_pickAriaProps = function pickAriaProps(props) { + return Object(external_lodash_["pickBy"])(props, function (value, key) { + return aria_isAriaPropName(key) && !Object(external_lodash_["isNil"])(value); + }); +}; +var aria_diffAriaProps = function diffAriaProps(props, nextProps) { + var prevAriaKeys = Object(external_lodash_["keys"])(aria_pickAriaProps(props)); + var nextAriaKeys = Object(external_lodash_["keys"])(aria_pickAriaProps(nextProps)); + var removedKeys = Object(external_lodash_["difference"])(prevAriaKeys, nextAriaKeys); + var updatedKeys = nextAriaKeys.filter(function (key) { + return !Object(external_lodash_["isEqual"])(props[key], nextProps[key]); + }); + return { + removedKeys: removedKeys, + updatedKeys: updatedKeys + }; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/editable.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/** + * Browser dependencies + */ + +var userAgent = window.navigator.userAgent; +/** + * Applies a fix that provides `input` events for contenteditable in Internet Explorer. + * + * @param {Element} editorNode The root editor node. + * + * @return {Function} A function to remove the fix (for cleanup). + */ + +function applyInternetExplorerInputFix(editorNode) { + /** + * Dispatches `input` events in response to `textinput` events. + * + * IE provides a `textinput` event that is similar to an `input` event, + * and we use it to manually dispatch an `input` event. + * `textinput` is dispatched for text entry but for not deletions. + * + * @param {Event} textInputEvent An Internet Explorer `textinput` event. + */ + function mapTextInputEvent(textInputEvent) { + textInputEvent.stopImmediatePropagation(); + var inputEvent = document.createEvent('Event'); + inputEvent.initEvent('input', true, false); + inputEvent.data = textInputEvent.data; + textInputEvent.target.dispatchEvent(inputEvent); + } + /** + * Dispatches `input` events in response to Delete and Backspace keyup. + * + * It would be better dispatch an `input` event after each deleting + * `keydown` because the DOM is updated after each, but it is challenging + * to determine the right time to dispatch `input` since propagation of + * `keydown` can be stopped at any point. + * + * It's easier to listen for `keyup` in the capture phase and dispatch + * `input` before `keyup` propagates further. It's not perfect, but should + * be good enough. + * + * @param {KeyboardEvent} keyUp + * @param {Node} keyUp.target The event target. + * @param {number} keyUp.keyCode The key code. + */ + + + function mapDeletionKeyUpEvents(_ref) { + var target = _ref.target, + keyCode = _ref.keyCode; + var isDeletion = external_this_wp_keycodes_["BACKSPACE"] === keyCode || external_this_wp_keycodes_["DELETE"] === keyCode; + + if (isDeletion && editorNode.contains(target)) { + var inputEvent = document.createEvent('Event'); + inputEvent.initEvent('input', true, false); + inputEvent.data = null; + target.dispatchEvent(inputEvent); + } + } + + editorNode.addEventListener('textinput', mapTextInputEvent); + document.addEventListener('keyup', mapDeletionKeyUpEvents, true); + return function removeInternetExplorerInputFix() { + editorNode.removeEventListener('textinput', mapTextInputEvent); + document.removeEventListener('keyup', mapDeletionKeyUpEvents, true); + }; +} + +var IS_PLACEHOLDER_VISIBLE_ATTR_NAME = 'data-is-placeholder-visible'; +var CLASS_NAME = 'editor-rich-text__editable block-editor-rich-text__editable'; +/** + * Whether or not the user agent is Internet Explorer. + * + * @type {boolean} + */ + +var IS_IE = userAgent.indexOf('Trident') >= 0; + +var editable_Editable = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(Editable, _Component); + + function Editable() { + var _this; + + Object(classCallCheck["a" /* default */])(this, Editable); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Editable).call(this)); + _this.bindEditorNode = _this.bindEditorNode.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } // We must prevent rerenders because the browser will modify the DOM. React + // will rerender the DOM fine, but we're losing selection and it would be + // more expensive to do so as it would just set the inner HTML through + // `dangerouslySetInnerHTML`. Instead RichText does it's own diffing and + // selection setting. + // + // Because we never update the component, we have to look through props and + // update the attributes on the wrapper nodes here. `componentDidUpdate` + // will never be called. + + + Object(createClass["a" /* default */])(Editable, [{ + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps) { + var _this2 = this; + + this.configureIsPlaceholderVisible(nextProps.isPlaceholderVisible); + + if (!Object(external_lodash_["isEqual"])(this.props.style, nextProps.style)) { + this.editorNode.setAttribute('style', ''); + Object.assign(this.editorNode.style, nextProps.style); + } + + if (!Object(external_lodash_["isEqual"])(this.props.className, nextProps.className)) { + this.editorNode.className = classnames_default()(nextProps.className, CLASS_NAME); + } + + var _diffAriaProps = aria_diffAriaProps(this.props, nextProps), + removedKeys = _diffAriaProps.removedKeys, + updatedKeys = _diffAriaProps.updatedKeys; + + removedKeys.forEach(function (key) { + return _this2.editorNode.removeAttribute(key); + }); + updatedKeys.forEach(function (key) { + return _this2.editorNode.setAttribute(key, nextProps[key]); + }); + return false; + } + }, { + key: "configureIsPlaceholderVisible", + value: function configureIsPlaceholderVisible(isPlaceholderVisible) { + var isPlaceholderVisibleString = String(!!isPlaceholderVisible); + + if (this.editorNode.getAttribute(IS_PLACEHOLDER_VISIBLE_ATTR_NAME) !== isPlaceholderVisibleString) { + this.editorNode.setAttribute(IS_PLACEHOLDER_VISIBLE_ATTR_NAME, isPlaceholderVisibleString); + } + } + }, { + key: "bindEditorNode", + value: function bindEditorNode(editorNode) { + this.editorNode = editorNode; + this.props.setRef(editorNode); + + if (IS_IE) { + if (editorNode) { + // Mounting: + this.removeInternetExplorerInputFix = applyInternetExplorerInputFix(editorNode); + } else { + // Unmounting: + this.removeInternetExplorerInputFix(); + } + } + } + }, { + key: "render", + value: function render() { + var _objectSpread2; + + var _this$props = this.props, + _this$props$tagName = _this$props.tagName, + tagName = _this$props$tagName === void 0 ? 'div' : _this$props$tagName, + style = _this$props.style, + record = _this$props.record, + valueToEditableHTML = _this$props.valueToEditableHTML, + className = _this$props.className, + isPlaceholderVisible = _this$props.isPlaceholderVisible, + remainingProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["tagName", "style", "record", "valueToEditableHTML", "className", "isPlaceholderVisible"]); + + delete remainingProps.setRef; + return Object(external_this_wp_element_["createElement"])(tagName, Object(objectSpread["a" /* default */])((_objectSpread2 = { + role: 'textbox', + 'aria-multiline': true, + className: classnames_default()(className, CLASS_NAME), + contentEditable: true + }, Object(defineProperty["a" /* default */])(_objectSpread2, IS_PLACEHOLDER_VISIBLE_ATTR_NAME, isPlaceholderVisible), Object(defineProperty["a" /* default */])(_objectSpread2, "ref", this.bindEditorNode), Object(defineProperty["a" /* default */])(_objectSpread2, "style", style), Object(defineProperty["a" /* default */])(_objectSpread2, "suppressContentEditableWarning", true), Object(defineProperty["a" /* default */])(_objectSpread2, "dangerouslySetInnerHTML", { + __html: valueToEditableHTML(record) + }), _objectSpread2), remainingProps)); + } + }]); + + return Editable; +}(external_this_wp_element_["Component"]); + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/patterns.js +/** + * WordPress dependencies + */ + + +function getPatterns(_ref) { + var onReplace = _ref.onReplace, + valueToFormat = _ref.valueToFormat; + var prefixTransforms = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref2) { + var type = _ref2.type; + return type === 'prefix'; + }); + return [function (record) { + if (!onReplace) { + return record; + } + + var start = Object(external_this_wp_richText_["getSelectionStart"])(record); + var text = Object(external_this_wp_richText_["getTextContent"])(record); + var characterBefore = text.slice(start - 1, start); + + if (!/\s/.test(characterBefore)) { + return record; + } + + var trimmedTextBefore = text.slice(0, start).trim(); + var transformation = Object(external_this_wp_blocks_["findTransform"])(prefixTransforms, function (_ref3) { + var prefix = _ref3.prefix; + return trimmedTextBefore === prefix; + }); + + if (!transformation) { + return record; + } + + var content = valueToFormat(Object(external_this_wp_richText_["slice"])(record, start, text.length)); + var block = transformation.transform(content); + onReplace([block]); + return record; + }, function (record) { + var BACKTICK = '`'; + var start = Object(external_this_wp_richText_["getSelectionStart"])(record); + var text = Object(external_this_wp_richText_["getTextContent"])(record); + var characterBefore = text.slice(start - 1, start); // Quick check the text for the necessary character. + + if (characterBefore !== BACKTICK) { + return record; + } + + var textBefore = text.slice(0, start - 1); + var indexBefore = textBefore.lastIndexOf(BACKTICK); + + if (indexBefore === -1) { + return record; + } + + var startIndex = indexBefore; + var endIndex = start - 2; + + if (startIndex === endIndex) { + return record; + } + + record = Object(external_this_wp_richText_["remove"])(record, startIndex, startIndex + 1); + record = Object(external_this_wp_richText_["remove"])(record, endIndex, endIndex + 1); + record = Object(external_this_wp_richText_["applyFormat"])(record, { + type: 'code' + }, startIndex, endIndex); + return record; + }]; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/shortcut.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + +var shortcut_RichTextShortcut = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(RichTextShortcut, _Component); + + function RichTextShortcut() { + var _this; + + Object(classCallCheck["a" /* default */])(this, RichTextShortcut); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RichTextShortcut).apply(this, arguments)); + _this.onUse = _this.onUse.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(RichTextShortcut, [{ + key: "onUse", + value: function onUse() { + this.props.onUse(); + return false; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + character = _this$props.character, + type = _this$props.type; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true, + shortcuts: Object(defineProperty["a" /* default */])({}, external_this_wp_keycodes_["rawShortcut"][type](character), this.onUse) + }); + } + }]); + + return RichTextShortcut; +}(external_this_wp_element_["Component"]); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/list-edit.js + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var _window$Node = window.Node, + TEXT_NODE = _window$Node.TEXT_NODE, + ELEMENT_NODE = _window$Node.ELEMENT_NODE; +/** + * Gets the selected list node, which is the closest list node to the start of + * the selection. + * + * @return {?Element} The selected list node, or undefined if none is selected. + */ + +function getSelectedListNode() { + var selection = window.getSelection(); + + if (selection.rangeCount === 0) { + return; + } + + var _selection$getRangeAt = selection.getRangeAt(0), + startContainer = _selection$getRangeAt.startContainer; + + if (startContainer.nodeType === TEXT_NODE) { + startContainer = startContainer.parentNode; + } + + if (startContainer.nodeType !== ELEMENT_NODE) { + return; + } + + var rootNode = startContainer.closest('*[contenteditable]'); + + if (!rootNode || !rootNode.contains(startContainer)) { + return; + } + + return startContainer.closest('ol,ul'); +} +/** + * Whether or not the root list is selected. + * + * @return {boolean} True if the root list or nothing is selected, false if an + * inner list is selected. + */ + + +function isListRootSelected() { + var listNode = getSelectedListNode(); // Consider the root list selected if nothing is selected. + + return !listNode || listNode.contentEditable === 'true'; +} +/** + * Wether or not the selected list has the given tag name. + * + * @param {string} tagName The tag name the list should have. + * @param {string} rootTagName The current root tag name, to compare with in + * case nothing is selected. + * + * @return {boolean} [description] + */ + + +function isActiveListType(tagName, rootTagName) { + var listNode = getSelectedListNode(); + + if (!listNode) { + return tagName === rootTagName; + } + + return listNode.nodeName.toLowerCase() === tagName; +} + +var list_edit_ListEdit = function ListEdit(_ref) { + var onTagNameChange = _ref.onTagNameChange, + tagName = _ref.tagName, + value = _ref.value, + onChange = _ref.onChange; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { + type: "primary", + character: "[", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["outdentListItems"])(value)); + } + }), Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { + type: "primary", + character: "]", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["indentListItems"])(value, { + type: tagName + })); + } + }), Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { + type: "primary", + character: "m", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["indentListItems"])(value, { + type: tagName + })); + } + }), Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { + type: "primaryShift", + character: "m", + onUse: function onUse() { + onChange(Object(external_this_wp_richText_["outdentListItems"])(value)); + } + }), Object(external_this_wp_element_["createElement"])(block_format_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: [onTagNameChange && { + icon: 'editor-ul', + title: Object(external_this_wp_i18n_["__"])('Convert to unordered list'), + isActive: isActiveListType('ul', tagName), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["changeListType"])(value, { + type: 'ul' + })); + + if (isListRootSelected()) { + onTagNameChange('ul'); + } + } + }, onTagNameChange && { + icon: 'editor-ol', + title: Object(external_this_wp_i18n_["__"])('Convert to ordered list'), + isActive: isActiveListType('ol', tagName), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["changeListType"])(value, { + type: 'ol' + })); + + if (isListRootSelected()) { + onTagNameChange('ol'); + } + } + }, { + icon: 'editor-outdent', + title: Object(external_this_wp_i18n_["__"])('Outdent list item'), + shortcut: Object(external_this_wp_i18n_["_x"])('Backspace', 'keyboard key'), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["outdentListItems"])(value)); + } + }, { + icon: 'editor-indent', + title: Object(external_this_wp_i18n_["__"])('Indent list item'), + shortcut: Object(external_this_wp_i18n_["_x"])('Space', 'keyboard key'), + onClick: function onClick() { + onChange(Object(external_this_wp_richText_["indentListItems"])(value, { + type: tagName + })); + } + }].filter(Boolean) + }))); +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/remove-browser-shortcuts.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Set of keyboard shortcuts handled internally by RichText. + * + * @type {Array} + */ + +var HANDLED_SHORTCUTS = [external_this_wp_keycodes_["rawShortcut"].primary('z'), external_this_wp_keycodes_["rawShortcut"].primaryShift('z'), external_this_wp_keycodes_["rawShortcut"].primary('y')]; +/** + * An instance of a KeyboardShortcuts element pre-bound for the handled + * shortcuts. Since shortcuts never change, the element can be considered + * static, and can be skipped in reconciliation. + * + * @type {WPElement} + */ + +var SHORTCUTS_ELEMENT = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true, + shortcuts: Object(external_lodash_["fromPairs"])(HANDLED_SHORTCUTS.map(function (shortcut) { + return [shortcut, function (event) { + return event.preventDefault(); + }]; + })) +}); +/** + * Component which registered keyboard event handlers to prevent default + * behaviors for key combinations otherwise handled internally by RichText. + * + * @return {WPElement} WordPress element. + */ + +var RemoveBrowserShortcuts = function RemoveBrowserShortcuts() { + return SHORTCUTS_ELEMENT; +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/toolbar-button.js + + + + +/** + * WordPress dependencies + */ + + +function RichTextToolbarButton(_ref) { + var name = _ref.name, + shortcutType = _ref.shortcutType, + shortcutCharacter = _ref.shortcutCharacter, + props = Object(objectWithoutProperties["a" /* default */])(_ref, ["name", "shortcutType", "shortcutCharacter"]); + + var shortcut; + var fillName = 'RichText.ToolbarControls'; + + if (name) { + fillName += ".".concat(name); + } + + if (shortcutType && shortcutCharacter) { + shortcut = external_this_wp_keycodes_["displayShortcut"][shortcutType](shortcutCharacter); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Fill"], { + name: fillName + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], Object(esm_extends["a" /* default */])({}, props, { + shortcut: shortcut + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/input-event.js + + + + + + + +/** + * WordPress dependencies + */ + +var input_event_UnstableRichTextInputEvent = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(UnstableRichTextInputEvent, _Component); + + function UnstableRichTextInputEvent() { + var _this; + + Object(classCallCheck["a" /* default */])(this, UnstableRichTextInputEvent); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(UnstableRichTextInputEvent).apply(this, arguments)); + _this.onInput = _this.onInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(UnstableRichTextInputEvent, [{ + key: "onInput", + value: function onInput(event) { + if (event.inputType === this.props.inputType) { + this.props.onInput(); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + document.addEventListener('input', this.onInput, true); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + document.removeEventListener('input', this.onInput, true); + } + }, { + key: "render", + value: function render() { + return null; + } + }]); + + return UnstableRichTextInputEvent; +}(external_this_wp_element_["Component"]); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/index.js + + + + + + + + + + + + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + + + + + + + + + + +/** + * Internal dependencies + */ + + + + + + + + + + + +/** + * Browser dependencies + */ + +var rich_text_window = window, + rich_text_getSelection = rich_text_window.getSelection, + getComputedStyle = rich_text_window.getComputedStyle; +/** + * All inserting input types that would insert HTML into the DOM. + * + * @see https://www.w3.org/TR/input-events-2/#interface-InputEvent-Attributes + * + * @type {Set} + */ + +var INSERTION_INPUT_TYPES_TO_IGNORE = new Set(['insertParagraph', 'insertOrderedList', 'insertUnorderedList', 'insertHorizontalRule', 'insertLink']); +var rich_text_RichText = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(RichText, _Component); + + function RichText(_ref) { + var _this; + + var value = _ref.value, + onReplace = _ref.onReplace, + multiline = _ref.multiline; + + Object(classCallCheck["a" /* default */])(this, RichText); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RichText).apply(this, arguments)); + + if (multiline === true || multiline === 'p' || multiline === 'li') { + _this.multilineTag = multiline === true ? 'p' : multiline; + } + + if (_this.multilineTag === 'li') { + _this.multilineWrapperTags = ['ul', 'ol']; + } + + if (_this.props.onSplit) { + _this.onSplit = _this.props.onSplit; + external_this_wp_deprecated_default()('wp.editor.RichText onSplit prop', { + plugin: 'Gutenberg', + alternative: 'wp.editor.RichText unstableOnSplit prop' + }); + } else if (_this.props.unstableOnSplit) { + _this.onSplit = _this.props.unstableOnSplit; + } + + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onDeleteKeyDown = _this.onDeleteKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onPaste = _this.onPaste.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onCreateUndoLevel = _this.onCreateUndoLevel.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setFocusedElement = _this.setFocusedElement.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onInput = _this.onInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onCompositionEnd = _this.onCompositionEnd.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectionChange = _this.onSelectionChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.getRecord = _this.getRecord.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.createRecord = _this.createRecord.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.applyRecord = _this.applyRecord.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.isEmpty = _this.isEmpty.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.valueToFormat = _this.valueToFormat.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setRef = _this.setRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.valueToEditableHTML = _this.valueToEditableHTML.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.handleHorizontalNavigation = _this.handleHorizontalNavigation.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onPointerDown = _this.onPointerDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.formatToValue = memize_default()(_this.formatToValue.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), { + size: 1 + }); + _this.savedContent = value; + _this.patterns = getPatterns({ + onReplace: onReplace, + valueToFormat: _this.valueToFormat + }); + _this.enterPatterns = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref2) { + var type = _ref2.type; + return type === 'enter'; + }); + _this.state = {}; + _this.usedDeprecatedChildrenSource = Array.isArray(value); + _this.lastHistoryValue = value; + return _this; + } + + Object(createClass["a" /* default */])(RichText, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + document.removeEventListener('selectionchange', this.onSelectionChange); + } + }, { + key: "setRef", + value: function setRef(node) { + if (node) { + if (false) { var computedStyle; } + + this.editableRef = node; + } else { + delete this.editableRef; + } + } + }, { + key: "setFocusedElement", + value: function setFocusedElement() { + if (this.props.setFocusedElement) { + this.props.setFocusedElement(this.props.instanceId); + } + } + /** + * Get the current record (value and selection) from props and state. + * + * @return {Object} The current record (value and selection). + */ + + }, { + key: "getRecord", + value: function getRecord() { + var _this$formatToValue = this.formatToValue(this.props.value), + formats = _this$formatToValue.formats, + replacements = _this$formatToValue.replacements, + text = _this$formatToValue.text; + + var _this$state = this.state, + start = _this$state.start, + end = _this$state.end, + selectedFormat = _this$state.selectedFormat; + return { + formats: formats, + replacements: replacements, + text: text, + start: start, + end: end, + selectedFormat: selectedFormat + }; + } + }, { + key: "createRecord", + value: function createRecord() { + var selection = rich_text_getSelection(); + var range = selection.rangeCount > 0 ? selection.getRangeAt(0) : null; + return Object(external_this_wp_richText_["create"])({ + element: this.editableRef, + range: range, + multilineTag: this.multilineTag, + multilineWrapperTags: this.multilineWrapperTags, + prepareEditableTree: this.props.prepareEditableTree, + __unstableIsEditableTree: true + }); + } + }, { + key: "applyRecord", + value: function applyRecord(record) { + var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + domOnly = _ref3.domOnly; + + Object(external_this_wp_richText_["apply"])({ + value: record, + current: this.editableRef, + multilineTag: this.multilineTag, + multilineWrapperTags: this.multilineWrapperTags, + prepareEditableTree: this.props.prepareEditableTree, + __unstableDomOnly: domOnly + }); + } + }, { + key: "isEmpty", + value: function isEmpty() { + return Object(external_this_wp_richText_["isEmpty"])(this.formatToValue(this.props.value)); + } + /** + * Handles a paste event. + * + * Saves the pasted data as plain text in `pastedPlainText`. + * + * @param {PasteEvent} event The paste event. + */ + + }, { + key: "onPaste", + value: function onPaste(event) { + var clipboardData = event.clipboardData; + var items = clipboardData.items, + files = clipboardData.files; // In Edge these properties can be null instead of undefined, so a more + // rigorous test is required over using default values. + + items = Object(external_lodash_["isNil"])(items) ? [] : items; + files = Object(external_lodash_["isNil"])(files) ? [] : files; + var plainText = ''; + var html = ''; // IE11 only supports `Text` as an argument for `getData` and will + // otherwise throw an invalid argument error, so we try the standard + // arguments first, then fallback to `Text` if they fail. + + try { + plainText = clipboardData.getData('text/plain'); + html = clipboardData.getData('text/html'); + } catch (error1) { + try { + html = clipboardData.getData('Text'); + } catch (error2) { + // Some browsers like UC Browser paste plain text by default and + // don't support clipboardData at all, so allow default + // behaviour. + return; + } + } + + event.preventDefault(); // Allows us to ask for this information when we get a report. + + window.console.log('Received HTML:\n\n', html); + window.console.log('Received plain text:\n\n', plainText); // Only process file if no HTML is present. + // Note: a pasted file may have the URL as plain text. + + var item = Object(external_lodash_["find"])([].concat(Object(toConsumableArray["a" /* default */])(items), Object(toConsumableArray["a" /* default */])(files)), function (_ref4) { + var type = _ref4.type; + return /^image\/(?:jpe?g|png|gif)$/.test(type); + }); + + if (item && !html) { + var file = item.getAsFile ? item.getAsFile() : item; + + var _content = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: ""), + mode: 'BLOCKS', + tagName: this.props.tagName + }); + + var _shouldReplace = this.props.onReplace && this.isEmpty(); // Allows us to ask for this information when we get a report. + + + window.console.log('Received item:\n\n', file); + + if (_shouldReplace) { + this.props.onReplace(_content); + } else if (this.onSplit) { + this.splitContent(_content); + } + + return; + } + + var record = this.getRecord(); // There is a selection, check if a URL is pasted. + + if (!Object(external_this_wp_richText_["isCollapsed"])(record)) { + var pastedText = (html || plainText).replace(/<[^>]+>/g, '').trim(); // A URL was pasted, turn the selection into a link + + if (Object(external_this_wp_url_["isURL"])(pastedText)) { + this.onChange(Object(external_this_wp_richText_["applyFormat"])(record, { + type: 'a', + attributes: { + href: Object(external_this_wp_htmlEntities_["decodeEntities"])(pastedText) + } + })); // Allows us to ask for this information when we get a report. + + window.console.log('Created link:\n\n', pastedText); + return; + } + } + + var shouldReplace = this.props.onReplace && this.isEmpty(); + var mode = 'INLINE'; + + if (shouldReplace) { + mode = 'BLOCKS'; + } else if (this.onSplit) { + mode = 'AUTO'; + } + + var content = Object(external_this_wp_blocks_["pasteHandler"])({ + HTML: html, + plainText: plainText, + mode: mode, + tagName: this.props.tagName, + canUserUseUnfilteredHTML: this.props.canUserUseUnfilteredHTML + }); + + if (typeof content === 'string') { + var recordToInsert = Object(external_this_wp_richText_["create"])({ + html: content + }); + this.onChange(Object(external_this_wp_richText_["insert"])(record, recordToInsert)); + } else if (this.onSplit) { + if (!content.length) { + return; + } + + if (shouldReplace) { + this.props.onReplace(content); + } else { + this.splitContent(content, { + paste: true + }); + } + } + } + /** + * Handles a focus event on the contenteditable field, calling the + * `unstableOnFocus` prop callback if one is defined. The callback does not + * receive any arguments. + * + * This is marked as a private API and the `unstableOnFocus` prop is not + * documented, as the current requirements where it is used are subject to + * future refactoring following `isSelected` handling. + * + * In contrast with `setFocusedElement`, this is only triggered in response + * to focus within the contenteditable field, whereas `setFocusedElement` + * is triggered on focus within any `RichText` descendent element. + * + * @see setFocusedElement + * + * @private + */ + + }, { + key: "onFocus", + value: function onFocus() { + var unstableOnFocus = this.props.unstableOnFocus; + + if (unstableOnFocus) { + unstableOnFocus(); + } + + document.addEventListener('selectionchange', this.onSelectionChange); + } + }, { + key: "onBlur", + value: function onBlur() { + document.removeEventListener('selectionchange', this.onSelectionChange); + } + /** + * Handle input on the next selection change event. + * + * @param {SyntheticEvent} event Synthetic input event. + */ + + }, { + key: "onInput", + value: function onInput(event) { + // For Input Method Editor (IME), used in Chinese, Japanese, and Korean + // (CJK), do not trigger a change if characters are being composed. + // Browsers setting `isComposing` to `true` will usually emit a final + // `input` event when the characters are composed. + if (event && event.nativeEvent.isComposing) { + // Also don't update any selection. + document.removeEventListener('selectionchange', this.onSelectionChange); + return; + } + + if (event && event.nativeEvent.inputType) { + var inputType = event.nativeEvent.inputType; // The browser formatted something or tried to insert HTML. + // Overwrite it. It will be handled later by the format library if + // needed. + + if (inputType.indexOf('format') === 0 || INSERTION_INPUT_TYPES_TO_IGNORE.has(inputType)) { + this.applyRecord(this.getRecord()); + return; + } + } + + var selectedFormat = this.state.selectedFormat; + + var _this$createRecord = this.createRecord(), + formats = _this$createRecord.formats, + replacements = _this$createRecord.replacements, + text = _this$createRecord.text, + start = _this$createRecord.start, + end = _this$createRecord.end; + + if (this.formatPlaceholder) { + selectedFormat = this.formatPlaceholder.length; + + if (selectedFormat > 0) { + formats[this.state.start] = this.formatPlaceholder; + } else { + delete formats[this.state.start]; + } + } else if (selectedFormat > 0) { + var formatsBefore = formats[start - 1] || []; + var formatsAfter = formats[start] || []; + var source = formatsBefore; + + if (formatsAfter.length > formatsBefore.length) { + source = formatsAfter; + } + + source = source.slice(0, selectedFormat); + formats[this.state.start] = source; + } else { + delete formats[this.state.start]; + } + + var change = { + formats: formats, + replacements: replacements, + text: text, + start: start, + end: end, + selectedFormat: selectedFormat + }; + this.onChange(change, { + withoutHistory: true + }); + var transformed = this.patterns.reduce(function (accumlator, transform) { + return transform(accumlator); + }, change); + + if (transformed !== change) { + this.onCreateUndoLevel(); + this.onChange(Object(objectSpread["a" /* default */])({}, transformed, { + selectedFormat: selectedFormat + })); + } // Create an undo level when input stops for over a second. + + + this.props.clearTimeout(this.onInput.timeout); + this.onInput.timeout = this.props.setTimeout(this.onCreateUndoLevel, 1000); + } + }, { + key: "onCompositionEnd", + value: function onCompositionEnd() { + // Ensure the value is up-to-date for browsers that don't emit a final + // input event after composition. + this.onInput(); // Tracking selection changes can be resumed. + + document.addEventListener('selectionchange', this.onSelectionChange); + } + /** + * Handles the `selectionchange` event: sync the selection to local state. + */ + + }, { + key: "onSelectionChange", + value: function onSelectionChange() { + if (this.ignoreSelectionChange) { + delete this.ignoreSelectionChange; + return; + } + + var value = this.createRecord(); + var start = value.start, + end = value.end, + formats = value.formats; + + if (start !== this.state.start || end !== this.state.end) { + var isCaretWithinFormattedText = this.props.isCaretWithinFormattedText; + + if (!isCaretWithinFormattedText && formats[start]) { + this.props.onEnterFormattedText(); + } else if (isCaretWithinFormattedText && !formats[start]) { + this.props.onExitFormattedText(); + } + + var selectedFormat; + + if (Object(external_this_wp_richText_["isCollapsed"])(value)) { + var formatsBefore = formats[start - 1] || []; + var formatsAfter = formats[start] || []; + selectedFormat = Math.min(formatsBefore.length, formatsAfter.length); + } + + this.setState({ + start: start, + end: end, + selectedFormat: selectedFormat + }); + this.applyRecord(Object(objectSpread["a" /* default */])({}, value, { + selectedFormat: selectedFormat + }), { + domOnly: true + }); + delete this.formatPlaceholder; + } + } + /** + * Calls all registered onChangeEditableValue handlers. + * + * @param {Array} formats The formats of the latest rich-text value. + * @param {string} text The text of the latest rich-text value. + */ + + }, { + key: "onChangeEditableValue", + value: function onChangeEditableValue(_ref5) { + var formats = _ref5.formats, + text = _ref5.text; + Object(external_lodash_["get"])(this.props, ['onChangeEditableValue'], []).forEach(function (eventHandler) { + eventHandler(formats, text); + }); + } + /** + * Sync the value to global state. The node tree and selection will also be + * updated if differences are found. + * + * @param {Object} record The record to sync and apply. + * @param {Object} $2 Named options. + * @param {boolean} $2.withoutHistory If true, no undo level will be + * created. + */ + + }, { + key: "onChange", + value: function onChange(record) { + var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + withoutHistory = _ref6.withoutHistory; + + this.applyRecord(record); + var start = record.start, + end = record.end, + formatPlaceholder = record.formatPlaceholder, + selectedFormat = record.selectedFormat; + this.formatPlaceholder = formatPlaceholder; + this.onChangeEditableValue(record); + this.savedContent = this.valueToFormat(record); + this.props.onChange(this.savedContent); + this.setState({ + start: start, + end: end, + selectedFormat: selectedFormat + }); + + if (!withoutHistory) { + this.onCreateUndoLevel(); + } + } + }, { + key: "onCreateUndoLevel", + value: function onCreateUndoLevel() { + // If the content is the same, no level needs to be created. + if (this.lastHistoryValue === this.savedContent) { + return; + } + + this.props.onCreateUndoLevel(); + this.lastHistoryValue = this.savedContent; + } + /** + * Handles a delete keyDown event to handle merge or removal for collapsed + * selection where caret is at directional edge: forward for a delete key, + * reverse for a backspace key. + * + * @link https://en.wikipedia.org/wiki/Caret_navigation + * + * @param {KeyboardEvent} event Keydown event. + */ + + }, { + key: "onDeleteKeyDown", + value: function onDeleteKeyDown(event) { + var _this$props = this.props, + onMerge = _this$props.onMerge, + onRemove = _this$props.onRemove; + + if (!onMerge && !onRemove) { + return; + } + + var keyCode = event.keyCode; + var isReverse = keyCode === external_this_wp_keycodes_["BACKSPACE"]; // Only process delete if the key press occurs at uncollapsed edge. + + if (!Object(external_this_wp_richText_["isCollapsed"])(this.createRecord())) { + return; + } + + var empty = this.isEmpty(); // It is important to consider emptiness because an empty container + // will include a padding BR node _after_ the caret, so in a forward + // deletion the isHorizontalEdge function will incorrectly interpret the + // presence of the BR node as not being at the edge. + + var isEdge = empty || Object(external_this_wp_dom_["isHorizontalEdge"])(this.editableRef, isReverse); + + if (!isEdge) { + return; + } + + if (onMerge) { + onMerge(!isReverse); + } // Only handle remove on Backspace. This serves dual-purpose of being + // an intentional user interaction distinguishing between Backspace and + // Delete to remove the empty field, but also to avoid merge & remove + // causing destruction of two fields (merge, then removed merged). + + + if (onRemove && empty && isReverse) { + onRemove(!isReverse); + } + + event.preventDefault(); + } + /** + * Handles a keydown event. + * + * @param {SyntheticEvent} event A synthetic keyboard event. + */ + + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + var keyCode = event.keyCode, + shiftKey = event.shiftKey, + altKey = event.altKey, + metaKey = event.metaKey, + ctrlKey = event.ctrlKey; + + if ( // Only override left and right keys without modifiers pressed. + !shiftKey && !altKey && !metaKey && !ctrlKey && (keyCode === external_this_wp_keycodes_["LEFT"] || keyCode === external_this_wp_keycodes_["RIGHT"])) { + this.handleHorizontalNavigation(event); + } // Use the space key in list items (at the start of an item) to indent + // the list item. + + + if (keyCode === external_this_wp_keycodes_["SPACE"] && this.multilineTag === 'li') { + var value = this.createRecord(); + + if (Object(external_this_wp_richText_["isCollapsed"])(value)) { + var text = value.text, + start = value.start; + var characterBefore = text[start - 1]; // The caret must be at the start of a line. + + if (!characterBefore || characterBefore === external_this_wp_richText_["LINE_SEPARATOR"]) { + this.onChange(Object(external_this_wp_richText_["indentListItems"])(value, { + type: this.props.tagName + })); + event.preventDefault(); + } + } + } + + if (keyCode === external_this_wp_keycodes_["DELETE"] || keyCode === external_this_wp_keycodes_["BACKSPACE"]) { + var _value = this.createRecord(); + + var replacements = _value.replacements, + _text = _value.text, + _start = _value.start, + end = _value.end; // Always handle full content deletion ourselves. + + if (_start === 0 && end !== 0 && end === _value.text.length) { + this.onChange(Object(external_this_wp_richText_["remove"])(_value)); + event.preventDefault(); + return; + } + + if (this.multilineTag) { + var newValue; + + if (keyCode === external_this_wp_keycodes_["BACKSPACE"]) { + var index = _start - 1; + + if (_text[index] === external_this_wp_richText_["LINE_SEPARATOR"]) { + var collapsed = Object(external_this_wp_richText_["isCollapsed"])(_value); // If the line separator that is about te be removed + // contains wrappers, remove the wrappers first. + + if (collapsed && replacements[index] && replacements[index].length) { + var newReplacements = replacements.slice(); + newReplacements[index] = replacements[index].slice(0, -1); + newValue = Object(objectSpread["a" /* default */])({}, _value, { + replacements: newReplacements + }); + } else { + newValue = Object(external_this_wp_richText_["remove"])(_value, // Only remove the line if the selection is + // collapsed, otherwise remove the selection. + collapsed ? _start - 1 : _start, end); + } + } + } else if (_text[end] === external_this_wp_richText_["LINE_SEPARATOR"]) { + var _collapsed = Object(external_this_wp_richText_["isCollapsed"])(_value); // If the line separator that is about te be removed + // contains wrappers, remove the wrappers first. + + + if (_collapsed && replacements[end] && replacements[end].length) { + var _newReplacements = replacements.slice(); + + _newReplacements[end] = replacements[end].slice(0, -1); + newValue = Object(objectSpread["a" /* default */])({}, _value, { + replacements: _newReplacements + }); + } else { + newValue = Object(external_this_wp_richText_["remove"])(_value, _start, // Only remove the line if the selection is + // collapsed, otherwise remove the selection. + _collapsed ? end + 1 : end); + } + } + + if (newValue) { + this.onChange(newValue); + event.preventDefault(); + } + } + + this.onDeleteKeyDown(event); + } else if (keyCode === external_this_wp_keycodes_["ENTER"]) { + event.preventDefault(); + var record = this.createRecord(); + + if (this.props.onReplace) { + var _text2 = Object(external_this_wp_richText_["getTextContent"])(record); + + var transformation = Object(external_this_wp_blocks_["findTransform"])(this.enterPatterns, function (item) { + return item.regExp.test(_text2); + }); + + if (transformation) { + this.props.onReplace([transformation.transform({ + content: _text2 + })]); + return; + } + } + + if (this.multilineTag) { + if (event.shiftKey) { + this.onChange(Object(external_this_wp_richText_["insertLineBreak"])(record)); + } else if (this.onSplit && Object(external_this_wp_richText_["isEmptyLine"])(record)) { + this.onSplit.apply(this, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(record).map(this.valueToFormat))); + } else { + this.onChange(Object(external_this_wp_richText_["insertLineSeparator"])(record)); + } + } else if (event.shiftKey || !this.onSplit) { + this.onChange(Object(external_this_wp_richText_["insertLineBreak"])(record)); + } else { + this.splitContent(); + } + } + } + /** + * Handles horizontal keyboard navigation when no modifiers are pressed. The + * navigation is handled separately to move correctly around format + * boundaries. + * + * @param {SyntheticEvent} event A synthetic keyboard event. + */ + + }, { + key: "handleHorizontalNavigation", + value: function handleHorizontalNavigation(event) { + var value = this.createRecord(); + var formats = value.formats, + text = value.text, + start = value.start, + end = value.end; + var selectedFormat = this.state.selectedFormat; + var collapsed = Object(external_this_wp_richText_["isCollapsed"])(value); + var isReverse = event.keyCode === external_this_wp_keycodes_["LEFT"]; + delete this.formatPlaceholder; // If the selection is collapsed and at the very start, do nothing if + // navigating backward. + // If the selection is collapsed and at the very end, do nothing if + // navigating forward. + + if (collapsed && selectedFormat === 0) { + if (start === 0 && isReverse) { + return; + } + + if (end === text.length && !isReverse) { + return; + } + } // If the selection is not collapsed, let the browser handle collapsing + // the selection for now. Later we could expand this logic to set + // boundary positions if needed. + + + if (!collapsed) { + return; + } // In all other cases, prevent default behaviour. + + + event.preventDefault(); // Ignore the selection change handler when setting selection, all state + // will be set here. + + this.ignoreSelectionChange = true; + var formatsBefore = formats[start - 1] || []; + var formatsAfter = formats[start] || []; + var newSelectedFormat = selectedFormat; // If the amount of formats before the caret and after the caret is + // different, the caret is at a format boundary. + + if (formatsBefore.length < formatsAfter.length) { + if (!isReverse && selectedFormat < formatsAfter.length) { + newSelectedFormat++; + } + + if (isReverse && selectedFormat > formatsBefore.length) { + newSelectedFormat--; + } + } else if (formatsBefore.length > formatsAfter.length) { + if (!isReverse && selectedFormat > formatsAfter.length) { + newSelectedFormat--; + } + + if (isReverse && selectedFormat < formatsBefore.length) { + newSelectedFormat++; + } + } + + if (newSelectedFormat !== selectedFormat) { + this.applyRecord(Object(objectSpread["a" /* default */])({}, value, { + selectedFormat: newSelectedFormat + })); + this.setState({ + selectedFormat: newSelectedFormat + }); + return; + } + + var newPos = value.start + (isReverse ? -1 : 1); + this.setState({ + start: newPos, + end: newPos + }); + this.applyRecord(Object(objectSpread["a" /* default */])({}, value, { + start: newPos, + end: newPos, + selectedFormat: isReverse ? formatsBefore.length : formatsAfter.length + })); + } + /** + * Splits the content at the location of the selection. + * + * Replaces the content of the editor inside this element with the contents + * before the selection. Sends the elements after the selection to the `onSplit` + * handler. + * + * @param {Array} blocks The blocks to add after the split point. + * @param {Object} context The context for splitting. + */ + + }, { + key: "splitContent", + value: function splitContent() { + var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (!this.onSplit) { + return; + } + + var record = this.createRecord(); + + var _split = Object(external_this_wp_richText_["split"])(record), + _split2 = Object(slicedToArray["a" /* default */])(_split, 2), + before = _split2[0], + after = _split2[1]; // In case split occurs at the trailing or leading edge of the field, + // assume that the before/after values respectively reflect the current + // value. This also provides an opportunity for the parent component to + // determine whether the before/after value has changed using a trivial + // strict equality operation. + + + if (Object(external_this_wp_richText_["isEmpty"])(after)) { + before = record; + } else if (Object(external_this_wp_richText_["isEmpty"])(before)) { + after = record; + } // If pasting and the split would result in no content other than the + // pasted blocks, remove the before and after blocks. + + + if (context.paste) { + before = Object(external_this_wp_richText_["isEmpty"])(before) ? null : before; + after = Object(external_this_wp_richText_["isEmpty"])(after) ? null : after; + } + + if (before) { + before = this.valueToFormat(before); + } + + if (after) { + after = this.valueToFormat(after); + } + + this.onSplit.apply(this, [before, after].concat(Object(toConsumableArray["a" /* default */])(blocks))); + } + /** + * Select object when they are clicked. The browser will not set any + * selection when clicking e.g. an image. + * + * @param {SyntheticEvent} event Synthetic mousedown or touchstart event. + */ + + }, { + key: "onPointerDown", + value: function onPointerDown(event) { + var target = event.target; // If the child element has no text content, it must be an object. + + if (target === this.editableRef || target.textContent) { + return; + } + + var parentNode = target.parentNode; + var index = Array.from(parentNode.childNodes).indexOf(target); + var range = target.ownerDocument.createRange(); + var selection = rich_text_getSelection(); + range.setStart(target.parentNode, index); + range.setEnd(target.parentNode, index + 1); + selection.removeAllRanges(); + selection.addRange(range); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this2 = this; + + var _this$props2 = this.props, + tagName = _this$props2.tagName, + value = _this$props2.value, + isSelected = _this$props2.isSelected; + + if (tagName === prevProps.tagName && value !== prevProps.value && value !== this.savedContent) { + // Handle deprecated `children` and `node` sources. + // The old way of passing a value with the `node` matcher required + // the value to be mapped first, creating a new array each time, so + // a shallow check wouldn't work. We need to check deep equality. + // This is only executed for a deprecated API and will eventually be + // removed. + if (Array.isArray(value) && Object(external_lodash_["isEqual"])(value, this.savedContent)) { + return; + } + + var record = this.formatToValue(value); + + if (isSelected) { + var prevRecord = this.formatToValue(prevProps.value); + var length = Object(external_this_wp_richText_["getTextContent"])(prevRecord).length; + record.start = length; + record.end = length; + } + + this.applyRecord(record); + this.savedContent = value; + } // If any format props update, reapply value. + + + var shouldReapply = Object.keys(this.props).some(function (name) { + if (name.indexOf('format_') !== 0) { + return false; + } // Allow primitives and arrays: + + + if (!Object(external_lodash_["isPlainObject"])(_this2.props[name])) { + return _this2.props[name] !== prevProps[name]; + } + + return Object.keys(_this2.props[name]).some(function (subName) { + return _this2.props[name][subName] !== prevProps[name][subName]; + }); + }); + + if (shouldReapply) { + var _record = this.formatToValue(value); // Maintain the previous selection if the instance is currently + // selected. + + + if (isSelected) { + _record.start = this.state.start; + _record.end = this.state.end; + } + + this.applyRecord(_record); + } + } + /** + * Get props that are provided by formats to modify RichText. + * + * @return {Object} Props that start with 'format_'. + */ + + }, { + key: "getFormatProps", + value: function getFormatProps() { + return Object(external_lodash_["pickBy"])(this.props, function (propValue, name) { + return name.startsWith('format_'); + }); + } + /** + * Converts the outside data structure to our internal representation. + * + * @param {*} value The outside value, data type depends on props. + * @return {Object} An internal rich-text value. + */ + + }, { + key: "formatToValue", + value: function formatToValue(value) { + // Handle deprecated `children` and `node` sources. + if (Array.isArray(value)) { + return Object(external_this_wp_richText_["create"])({ + html: external_this_wp_blocks_["children"].toHTML(value), + multilineTag: this.multilineTag, + multilineWrapperTags: this.multilineWrapperTags + }); + } + + if (this.props.format === 'string') { + return Object(external_this_wp_richText_["create"])({ + html: value, + multilineTag: this.multilineTag, + multilineWrapperTags: this.multilineWrapperTags + }); + } // Guard for blocks passing `null` in onSplit callbacks. May be removed + // if onSplit is revised to not pass a `null` value. + + + if (value === null) { + return Object(external_this_wp_richText_["create"])(); + } + + return value; + } + }, { + key: "valueToEditableHTML", + value: function valueToEditableHTML(value) { + return Object(external_this_wp_richText_["unstableToDom"])({ + value: value, + multilineTag: this.multilineTag, + prepareEditableTree: this.props.prepareEditableTree + }).body.innerHTML; + } + /** + * Removes editor only formats from the value. + * + * Editor only formats are applied using `prepareEditableTree`, so we need to + * remove them before converting the internal state + * + * @param {Object} value The internal rich-text value. + * @return {Object} A new rich-text value. + */ + + }, { + key: "removeEditorOnlyFormats", + value: function removeEditorOnlyFormats(value) { + this.props.formatTypes.forEach(function (formatType) { + // Remove formats created by prepareEditableTree, because they are editor only. + if (formatType.__experimentalCreatePrepareEditableTree) { + value = Object(external_this_wp_richText_["removeFormat"])(value, formatType.name, 0, value.text.length); + } + }); + return value; + } + /** + * Converts the internal value to the external data format. + * + * @param {Object} value The internal rich-text value. + * @return {*} The external data format, data type depends on props. + */ + + }, { + key: "valueToFormat", + value: function valueToFormat(value) { + value = this.removeEditorOnlyFormats(value); // Handle deprecated `children` and `node` sources. + + if (this.usedDeprecatedChildrenSource) { + return external_this_wp_blocks_["children"].fromDOM(Object(external_this_wp_richText_["unstableToDom"])({ + value: value, + multilineTag: this.multilineTag, + isEditableTree: false + }).body.childNodes); + } + + if (this.props.format === 'string') { + return Object(external_this_wp_richText_["toHTMLString"])({ + value: value, + multilineTag: this.multilineTag + }); + } + + return value; + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var _this$props3 = this.props, + _this$props3$tagName = _this$props3.tagName, + Tagname = _this$props3$tagName === void 0 ? 'div' : _this$props3$tagName, + style = _this$props3.style, + wrapperClassName = _this$props3.wrapperClassName, + className = _this$props3.className, + _this$props3$inlineTo = _this$props3.inlineToolbar, + inlineToolbar = _this$props3$inlineTo === void 0 ? false : _this$props3$inlineTo, + formattingControls = _this$props3.formattingControls, + placeholder = _this$props3.placeholder, + _this$props3$keepPlac = _this$props3.keepPlaceholderOnFocus, + keepPlaceholderOnFocus = _this$props3$keepPlac === void 0 ? false : _this$props3$keepPlac, + isSelected = _this$props3.isSelected, + autocompleters = _this$props3.autocompleters, + onTagNameChange = _this$props3.onTagNameChange; // Generating a key that includes `tagName` ensures that if the tag + // changes, we replace the relevant element. This is needed because we + // prevent Editable component updates. + + var key = Tagname; + var MultilineTag = this.multilineTag; + var ariaProps = aria_pickAriaProps(this.props); + var isPlaceholderVisible = placeholder && (!isSelected || keepPlaceholderOnFocus) && this.isEmpty(); + var classes = classnames_default()(wrapperClassName, 'editor-rich-text block-editor-rich-text'); + var record = this.getRecord(); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + onFocus: this.setFocusedElement + }, isSelected && this.multilineTag === 'li' && Object(external_this_wp_element_["createElement"])(list_edit_ListEdit, { + onTagNameChange: onTagNameChange, + tagName: Tagname, + value: record, + onChange: this.onChange + }), isSelected && !inlineToolbar && Object(external_this_wp_element_["createElement"])(block_format_controls, null, Object(external_this_wp_element_["createElement"])(format_toolbar, { + controls: formattingControls + })), isSelected && inlineToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IsolatedEventContainer"], { + className: "editor-rich-text__inline-toolbar block-editor-rich-text__inline-toolbar" + }, Object(external_this_wp_element_["createElement"])(format_toolbar, { + controls: formattingControls + })), Object(external_this_wp_element_["createElement"])(autocomplete, { + onReplace: this.props.onReplace, + completers: autocompleters, + record: record, + onChange: this.onChange + }, function (_ref7) { + var listBoxId = _ref7.listBoxId, + activeId = _ref7.activeId; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(editable_Editable, Object(esm_extends["a" /* default */])({ + tagName: Tagname, + style: style, + record: record, + valueToEditableHTML: _this3.valueToEditableHTML, + isPlaceholderVisible: isPlaceholderVisible, + "aria-label": placeholder, + "aria-autocomplete": "list", + "aria-owns": listBoxId, + "aria-activedescendant": activeId + }, ariaProps, { + className: className, + key: key, + onPaste: _this3.onPaste, + onInput: _this3.onInput, + onCompositionEnd: _this3.onCompositionEnd, + onKeyDown: _this3.onKeyDown, + onFocus: _this3.onFocus, + onBlur: _this3.onBlur, + onMouseDown: _this3.onPointerDown, + onTouchStart: _this3.onPointerDown, + setRef: _this3.setRef + })), isPlaceholderVisible && Object(external_this_wp_element_["createElement"])(Tagname, { + className: classnames_default()('editor-rich-text__editable block-editor-rich-text__editable', className), + style: style + }, MultilineTag ? Object(external_this_wp_element_["createElement"])(MultilineTag, null, placeholder) : placeholder), isSelected && Object(external_this_wp_element_["createElement"])(format_edit, { + value: record, + onChange: _this3.onChange + })); + }), isSelected && Object(external_this_wp_element_["createElement"])(RemoveBrowserShortcuts, null)); + } + }]); + + return RichText; +}(external_this_wp_element_["Component"]); +rich_text_RichText.defaultProps = { + formattingControls: ['bold', 'italic', 'link', 'strikethrough'], + format: 'string', + value: '' +}; +var RichTextContainer = Object(external_this_wp_compose_["compose"])([external_this_wp_compose_["withInstanceId"], context_withBlockEditContext(function (context, ownProps) { + // When explicitly set as not selected, do nothing. + if (ownProps.isSelected === false) { + return { + clientId: context.clientId + }; + } // When explicitly set as selected, use the value stored in the context instead. + + + if (ownProps.isSelected === true) { + return { + isSelected: context.isSelected, + clientId: context.clientId + }; + } // Ensures that only one RichText component can be focused. + + + return { + isSelected: context.isSelected && context.focusedElement === ownProps.instanceId, + setFocusedElement: context.setFocusedElement, + clientId: context.clientId + }; +}), Object(external_this_wp_data_["withSelect"])(function (select) { + // This should probably be moved to the block editor settings. + var _select = select('core/editor'), + canUserUseUnfilteredHTML = _select.canUserUseUnfilteredHTML; + + var _select2 = select('core/block-editor'), + isCaretWithinFormattedText = _select2.isCaretWithinFormattedText; + + var _select3 = select('core/rich-text'), + getFormatTypes = _select3.getFormatTypes; + + return { + canUserUseUnfilteredHTML: canUserUseUnfilteredHTML(), + isCaretWithinFormattedText: isCaretWithinFormattedText(), + formatTypes: getFormatTypes() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + __unstableMarkLastChangeAsPersistent = _dispatch.__unstableMarkLastChangeAsPersistent, + enterFormattedText = _dispatch.enterFormattedText, + exitFormattedText = _dispatch.exitFormattedText; + + return { + onCreateUndoLevel: __unstableMarkLastChangeAsPersistent, + onEnterFormattedText: enterFormattedText, + onExitFormattedText: exitFormattedText + }; +}), external_this_wp_compose_["withSafeTimeout"], Object(external_this_wp_components_["withFilters"])('experimentalRichText')])(rich_text_RichText); + +RichTextContainer.Content = function (_ref8) { + var value = _ref8.value, + Tag = _ref8.tagName, + multiline = _ref8.multiline, + props = Object(objectWithoutProperties["a" /* default */])(_ref8, ["value", "tagName", "multiline"]); + + var html = value; + var MultilineTag; + + if (multiline === true || multiline === 'p' || multiline === 'li') { + MultilineTag = multiline === true ? 'p' : multiline; + } // Handle deprecated `children` and `node` sources. + + + if (Array.isArray(value)) { + html = external_this_wp_blocks_["children"].toHTML(value); + } + + if (!html && MultilineTag) { + html = "<".concat(MultilineTag, ">"); + } + + var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, html); + + if (Tag) { + return Object(external_this_wp_element_["createElement"])(Tag, Object(external_lodash_["omit"])(props, ['format']), content); + } + + return content; +}; + +RichTextContainer.isEmpty = function () { + var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + + // Handle deprecated `children` and `node` sources. + if (Array.isArray(value)) { + return !value || value.length === 0; + } + + return value.length === 0; +}; + +RichTextContainer.Content.defaultProps = { + format: 'string', + value: '' +}; +/* harmony default export */ var rich_text = (RichTextContainer); + + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js +/** + * WordPress dependencies + */ + +/** + * This is a placeholder for the media upload component necessary to make it possible to provide + * an integration with the core blocks that handle media files. By default it renders nothing but + * it provides a way to have it overridden with the `editor.MediaUpload` filter. + * + * @return {WPElement} Media upload element. + */ + +var MediaUpload = function MediaUpload() { + return null; +}; // Todo: rename the filter + + +/* harmony default export */ var media_upload = (Object(external_this_wp_components_["withFilters"])('editor.MediaUpload')(MediaUpload)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-popover/index.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + +var url_popover_URLPopover = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(URLPopover, _Component); + + function URLPopover() { + var _this; + + Object(classCallCheck["a" /* default */])(this, URLPopover); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLPopover).apply(this, arguments)); + _this.toggleSettingsVisibility = _this.toggleSettingsVisibility.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + isSettingsExpanded: false + }; + return _this; + } + + Object(createClass["a" /* default */])(URLPopover, [{ + key: "toggleSettingsVisibility", + value: function toggleSettingsVisibility() { + this.setState({ + isSettingsExpanded: !this.state.isSettingsExpanded + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + renderSettings = _this$props.renderSettings, + onClose = _this$props.onClose, + onClickOutside = _this$props.onClickOutside, + _this$props$position = _this$props.position, + position = _this$props$position === void 0 ? 'bottom center' : _this$props$position, + _this$props$focusOnMo = _this$props.focusOnMount, + focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo; + var isSettingsExpanded = this.state.isSettingsExpanded; + var showSettings = !!renderSettings && isSettingsExpanded; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { + className: "editor-url-popover block-editor-url-popover", + focusOnMount: focusOnMount, + position: position, + onClose: onClose, + onClickOutside: onClickOutside + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-url-popover__row block-editor-url-popover__row" + }, children, !!renderSettings && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle", + icon: "arrow-down-alt2", + label: Object(external_this_wp_i18n_["__"])('Link Settings'), + onClick: this.toggleSettingsVisibility, + "aria-expanded": isSettingsExpanded + })), showSettings && Object(external_this_wp_element_["createElement"])("div", { + className: "editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings" + }, renderSettings())); + } + }]); + + return URLPopover; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var url_popover = (url_popover_URLPopover); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-placeholder/index.js + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + +var media_placeholder_InsertFromURLPopover = function InsertFromURLPopover(_ref) { + var src = _ref.src, + onChange = _ref.onChange, + onSubmit = _ref.onSubmit, + onClose = _ref.onClose; + return Object(external_this_wp_element_["createElement"])(url_popover, { + onClose: onClose + }, Object(external_this_wp_element_["createElement"])("form", { + className: "editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form", + onSubmit: onSubmit + }, Object(external_this_wp_element_["createElement"])("input", { + className: "editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field", + type: "url", + "aria-label": Object(external_this_wp_i18n_["__"])('URL'), + placeholder: Object(external_this_wp_i18n_["__"])('Paste or type URL'), + onChange: onChange, + value: src + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button", + icon: "editor-break", + label: Object(external_this_wp_i18n_["__"])('Apply'), + type: "submit" + }))); +}; + +var media_placeholder_MediaPlaceholder = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MediaPlaceholder, _Component); + + function MediaPlaceholder() { + var _this; + + Object(classCallCheck["a" /* default */])(this, MediaPlaceholder); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaPlaceholder).apply(this, arguments)); + _this.state = { + src: '', + isURLInputVisible: false + }; + _this.onChangeSrc = _this.onChangeSrc.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSubmitSrc = _this.onSubmitSrc.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onUpload = _this.onUpload.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onFilesUpload = _this.onFilesUpload.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.openURLInput = _this.openURLInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.closeURLInput = _this.closeURLInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(MediaPlaceholder, [{ + key: "onlyAllowsImages", + value: function onlyAllowsImages() { + var allowedTypes = this.props.allowedTypes; + + if (!allowedTypes) { + return false; + } + + return Object(external_lodash_["every"])(allowedTypes, function (allowedType) { + return allowedType === 'image' || Object(external_lodash_["startsWith"])(allowedType, 'image/'); + }); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this.setState({ + src: Object(external_lodash_["get"])(this.props.value, ['src'], '') + }); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (Object(external_lodash_["get"])(prevProps.value, ['src'], '') !== Object(external_lodash_["get"])(this.props.value, ['src'], '')) { + this.setState({ + src: Object(external_lodash_["get"])(this.props.value, ['src'], '') + }); + } + } + }, { + key: "onChangeSrc", + value: function onChangeSrc(event) { + this.setState({ + src: event.target.value + }); + } + }, { + key: "onSubmitSrc", + value: function onSubmitSrc(event) { + event.preventDefault(); + + if (this.state.src && this.props.onSelectURL) { + this.props.onSelectURL(this.state.src); + this.closeURLInput(); + } + } + }, { + key: "onUpload", + value: function onUpload(event) { + this.onFilesUpload(event.target.files); + } + }, { + key: "onFilesUpload", + value: function onFilesUpload(files) { + var _this$props = this.props, + onSelect = _this$props.onSelect, + multiple = _this$props.multiple, + onError = _this$props.onError, + allowedTypes = _this$props.allowedTypes, + mediaUpload = _this$props.mediaUpload; + var setMedia = multiple ? onSelect : function (_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + media = _ref3[0]; + + return onSelect(media); + }; + mediaUpload({ + allowedTypes: allowedTypes, + filesList: files, + onFileChange: setMedia, + onError: onError + }); + } + }, { + key: "openURLInput", + value: function openURLInput() { + this.setState({ + isURLInputVisible: true + }); + } + }, { + key: "closeURLInput", + value: function closeURLInput() { + this.setState({ + isURLInputVisible: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + accept = _this$props2.accept, + icon = _this$props2.icon, + className = _this$props2.className, + _this$props2$labels = _this$props2.labels, + labels = _this$props2$labels === void 0 ? {} : _this$props2$labels, + onSelect = _this$props2.onSelect, + _this$props2$value = _this$props2.value, + value = _this$props2$value === void 0 ? {} : _this$props2$value, + onSelectURL = _this$props2.onSelectURL, + _this$props2$onHTMLDr = _this$props2.onHTMLDrop, + onHTMLDrop = _this$props2$onHTMLDr === void 0 ? external_lodash_["noop"] : _this$props2$onHTMLDr, + _this$props2$multiple = _this$props2.multiple, + multiple = _this$props2$multiple === void 0 ? false : _this$props2$multiple, + notices = _this$props2.notices, + _this$props2$allowedT = _this$props2.allowedTypes, + allowedTypes = _this$props2$allowedT === void 0 ? [] : _this$props2$allowedT, + hasUploadPermissions = _this$props2.hasUploadPermissions, + mediaUpload = _this$props2.mediaUpload; + var _this$state = this.state, + isURLInputVisible = _this$state.isURLInputVisible, + src = _this$state.src; + var instructions = labels.instructions || ''; + var title = labels.title || ''; + + if (!hasUploadPermissions && !onSelectURL) { + instructions = Object(external_this_wp_i18n_["__"])('To edit this block, you need permission to upload media.'); + } + + if (!instructions || !title) { + var isOneType = 1 === allowedTypes.length; + var isAudio = isOneType && 'audio' === allowedTypes[0]; + var isImage = isOneType && 'image' === allowedTypes[0]; + var isVideo = isOneType && 'video' === allowedTypes[0]; + + if (!instructions) { + if (hasUploadPermissions) { + instructions = Object(external_this_wp_i18n_["__"])('Drag a media file, upload a new one or select a file from your library.'); + + if (isAudio) { + instructions = Object(external_this_wp_i18n_["__"])('Drag an audio, upload a new one or select a file from your library.'); + } else if (isImage) { + instructions = Object(external_this_wp_i18n_["__"])('Drag an image, upload a new one or select a file from your library.'); + } else if (isVideo) { + instructions = Object(external_this_wp_i18n_["__"])('Drag a video, upload a new one or select a file from your library.'); + } + } else if (!hasUploadPermissions && onSelectURL) { + instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link a media file, you cannot upload.'); + + if (isAudio) { + instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link an audio, you cannot upload.'); + } else if (isImage) { + instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link an image, you cannot upload.'); + } else if (isVideo) { + instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link a video, you cannot upload.'); + } + } + } + + if (!title) { + title = Object(external_this_wp_i18n_["__"])('Media'); + + if (isAudio) { + title = Object(external_this_wp_i18n_["__"])('Audio'); + } else if (isImage) { + title = Object(external_this_wp_i18n_["__"])('Image'); + } else if (isVideo) { + title = Object(external_this_wp_i18n_["__"])('Video'); + } + } + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: icon, + label: title, + instructions: instructions, + className: classnames_default()('editor-media-placeholder block-editor-media-placeholder', className), + notices: notices + }, Object(external_this_wp_element_["createElement"])(check, null, !!mediaUpload && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { + onFilesDrop: this.onFilesUpload, + onHTMLDrop: onHTMLDrop + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + isLarge: true, + className: "editor-media-placeholder__button block-editor-media-placeholder__button", + onChange: this.onUpload, + accept: accept, + multiple: multiple + }, Object(external_this_wp_i18n_["__"])('Upload'))), Object(external_this_wp_element_["createElement"])(media_upload, { + gallery: multiple && this.onlyAllowsImages(), + multiple: multiple, + onSelect: onSelect, + allowedTypes: allowedTypes, + value: value.id, + render: function render(_ref4) { + var open = _ref4.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + className: "editor-media-placeholder__button block-editor-media-placeholder__button", + onClick: open + }, Object(external_this_wp_i18n_["__"])('Media Library')); + } + })), onSelectURL && Object(external_this_wp_element_["createElement"])("div", { + className: "editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "editor-media-placeholder__button block-editor-media-placeholder__button", + onClick: this.openURLInput, + isToggled: isURLInputVisible, + isLarge: true + }, Object(external_this_wp_i18n_["__"])('Insert from URL')), isURLInputVisible && Object(external_this_wp_element_["createElement"])(media_placeholder_InsertFromURLPopover, { + src: src, + onChange: this.onChangeSrc, + onSubmit: this.onSubmitSrc, + onClose: this.closeURLInput + }))); + } + }]); + + return MediaPlaceholder; +}(external_this_wp_element_["Component"]); +var media_placeholder_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core'), + canUser = _select.canUser; + + var _select2 = select('core/block-editor'), + getSettings = _select2.getSettings; + + return { + hasUploadPermissions: Object(external_lodash_["defaultTo"])(canUser('create', 'media'), true), + mediaUpload: getSettings().__experimentalMediaUpload + }; +}); +/* harmony default export */ var media_placeholder = (Object(external_this_wp_compose_["compose"])(media_placeholder_applyWithSelect, Object(external_this_wp_components_["withFilters"])('editor.MediaPlaceholder'))(media_placeholder_MediaPlaceholder)); + +// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} +var external_this_wp_apiFetch_ = __webpack_require__(33); +var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/index.js + + + + + + + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + + + + + + // Since URLInput is rendered in the context of other inputs, but should be +// considered a separate modal node, prevent keyboard events from propagating +// as being considered from the input. + +var stopEventPropagation = function stopEventPropagation(event) { + return event.stopPropagation(); +}; + +var url_input_URLInput = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(URLInput, _Component); + + function URLInput(_ref) { + var _this; + + var autocompleteRef = _ref.autocompleteRef; + + Object(classCallCheck["a" /* default */])(this, URLInput); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLInput).apply(this, arguments)); + _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.autocompleteRef = autocompleteRef || Object(external_this_wp_element_["createRef"])(); + _this.inputRef = Object(external_this_wp_element_["createRef"])(); + _this.updateSuggestions = Object(external_lodash_["throttle"])(_this.updateSuggestions.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), 200); + _this.suggestionNodes = []; + _this.state = { + posts: [], + showSuggestions: false, + selectedSuggestion: null + }; + return _this; + } + + Object(createClass["a" /* default */])(URLInput, [{ + key: "componentDidUpdate", + value: function componentDidUpdate() { + var _this2 = this; + + var _this$state = this.state, + showSuggestions = _this$state.showSuggestions, + selectedSuggestion = _this$state.selectedSuggestion; // only have to worry about scrolling selected suggestion into view + // when already expanded + + if (showSuggestions && selectedSuggestion !== null && !this.scrollingIntoView) { + this.scrollingIntoView = true; + dom_scroll_into_view_lib_default()(this.suggestionNodes[selectedSuggestion], this.autocompleteRef.current, { + onlyScrollIfNeeded: true + }); + setTimeout(function () { + _this2.scrollingIntoView = false; + }, 100); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + delete this.suggestionsRequest; + } + }, { + key: "bindSuggestionNode", + value: function bindSuggestionNode(index) { + var _this3 = this; + + return function (ref) { + _this3.suggestionNodes[index] = ref; + }; + } + }, { + key: "updateSuggestions", + value: function updateSuggestions(value) { + var _this4 = this; + + // Show the suggestions after typing at least 2 characters + // and also for URLs + if (value.length < 2 || /^https?:/.test(value)) { + this.setState({ + showSuggestions: false, + selectedSuggestion: null, + loading: false + }); + return; + } + + this.setState({ + showSuggestions: true, + selectedSuggestion: null, + loading: true + }); + var request = external_this_wp_apiFetch_default()({ + path: Object(external_this_wp_url_["addQueryArgs"])('/wp/v2/search', { + search: value, + per_page: 20, + type: 'post' + }) + }); + request.then(function (posts) { + // A fetch Promise doesn't have an abort option. It's mimicked by + // comparing the request reference in on the instance, which is + // reset or deleted on subsequent requests or unmounting. + if (_this4.suggestionsRequest !== request) { + return; + } + + _this4.setState({ + posts: posts, + loading: false + }); + + if (!!posts.length) { + _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', posts.length), posts.length), 'assertive'); + } else { + _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); + } + }).catch(function () { + if (_this4.suggestionsRequest === request) { + _this4.setState({ + loading: false + }); + } + }); + this.suggestionsRequest = request; + } + }, { + key: "onChange", + value: function onChange(event) { + var inputValue = event.target.value; + this.props.onChange(inputValue); + this.updateSuggestions(inputValue); + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + var _this$state2 = this.state, + showSuggestions = _this$state2.showSuggestions, + selectedSuggestion = _this$state2.selectedSuggestion, + posts = _this$state2.posts, + loading = _this$state2.loading; // If the suggestions are not shown or loading, we shouldn't handle the arrow keys + // We shouldn't preventDefault to allow block arrow keys navigation + + if (!showSuggestions || !posts.length || loading) { + // In the Windows version of Firefox the up and down arrows don't move the caret + // within an input field like they do for Mac Firefox/Chrome/Safari. This causes + // a form of focus trapping that is disruptive to the user experience. This disruption + // only happens if the caret is not in the first or last position in the text input. + // See: https://github.com/WordPress/gutenberg/issues/5693#issuecomment-436684747 + switch (event.keyCode) { + // When UP is pressed, if the caret is at the start of the text, move it to the 0 + // position. + case external_this_wp_keycodes_["UP"]: + { + if (0 !== event.target.selectionStart) { + event.stopPropagation(); + event.preventDefault(); // Set the input caret to position 0 + + event.target.setSelectionRange(0, 0); + } + + break; + } + // When DOWN is pressed, if the caret is not at the end of the text, move it to the + // last position. + + case external_this_wp_keycodes_["DOWN"]: + { + if (this.props.value.length !== event.target.selectionStart) { + event.stopPropagation(); + event.preventDefault(); // Set the input caret to the last position + + event.target.setSelectionRange(this.props.value.length, this.props.value.length); + } + + break; + } + } + + return; + } + + var post = this.state.posts[this.state.selectedSuggestion]; + + switch (event.keyCode) { + case external_this_wp_keycodes_["UP"]: + { + event.stopPropagation(); + event.preventDefault(); + var previousIndex = !selectedSuggestion ? posts.length - 1 : selectedSuggestion - 1; + this.setState({ + selectedSuggestion: previousIndex + }); + break; + } + + case external_this_wp_keycodes_["DOWN"]: + { + event.stopPropagation(); + event.preventDefault(); + var nextIndex = selectedSuggestion === null || selectedSuggestion === posts.length - 1 ? 0 : selectedSuggestion + 1; + this.setState({ + selectedSuggestion: nextIndex + }); + break; + } + + case external_this_wp_keycodes_["TAB"]: + { + if (this.state.selectedSuggestion !== null) { + this.selectLink(post); // Announce a link has been selected when tabbing away from the input field. + + this.props.speak(Object(external_this_wp_i18n_["__"])('Link selected.')); + } + + break; + } + + case external_this_wp_keycodes_["ENTER"]: + { + if (this.state.selectedSuggestion !== null) { + event.stopPropagation(); + this.selectLink(post); + } + + break; + } + } + } + }, { + key: "selectLink", + value: function selectLink(post) { + this.props.onChange(post.url, post); + this.setState({ + selectedSuggestion: null, + showSuggestions: false + }); + } + }, { + key: "handleOnClick", + value: function handleOnClick(post) { + this.selectLink(post); // Move focus to the input field when a link suggestion is clicked. + + this.inputRef.current.focus(); + } + }, { + key: "render", + value: function render() { + var _this5 = this; + + var _this$props = this.props, + _this$props$value = _this$props.value, + value = _this$props$value === void 0 ? '' : _this$props$value, + _this$props$autoFocus = _this$props.autoFocus, + autoFocus = _this$props$autoFocus === void 0 ? true : _this$props$autoFocus, + instanceId = _this$props.instanceId, + className = _this$props.className; + var _this$state3 = this.state, + showSuggestions = _this$state3.showSuggestions, + posts = _this$state3.posts, + selectedSuggestion = _this$state3.selectedSuggestion, + loading = _this$state3.loading; + /* eslint-disable jsx-a11y/no-autofocus */ + + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('editor-url-input block-editor-url-input', className) + }, Object(external_this_wp_element_["createElement"])("input", { + autoFocus: autoFocus, + type: "text", + "aria-label": Object(external_this_wp_i18n_["__"])('URL'), + required: true, + value: value, + onChange: this.onChange, + onInput: stopEventPropagation, + placeholder: Object(external_this_wp_i18n_["__"])('Paste URL or type to search'), + onKeyDown: this.onKeyDown, + role: "combobox", + "aria-expanded": showSuggestions, + "aria-autocomplete": "list", + "aria-owns": "block-editor-url-input-suggestions-".concat(instanceId), + "aria-activedescendant": selectedSuggestion !== null ? "block-editor-url-input-suggestion-".concat(instanceId, "-").concat(selectedSuggestion) : undefined, + ref: this.inputRef + }), loading && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), showSuggestions && !!posts.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { + position: "bottom", + noArrow: true, + focusOnMount: false + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-url-input__suggestions block-editor-url-input__suggestions", + id: "editor-url-input-suggestions-".concat(instanceId), + ref: this.autocompleteRef, + role: "listbox" + }, posts.map(function (post, index) { + return Object(external_this_wp_element_["createElement"])("button", { + key: post.id, + role: "option", + tabIndex: "-1", + id: "block-editor-url-input-suggestion-".concat(instanceId, "-").concat(index), + ref: _this5.bindSuggestionNode(index), + className: classnames_default()('editor-url-input__suggestion block-editor-url-input__suggestion', { + 'is-selected': index === selectedSuggestion + }), + onClick: function onClick() { + return _this5.handleOnClick(post); + }, + "aria-selected": index === selectedSuggestion + }, Object(external_this_wp_htmlEntities_["decodeEntities"])(post.title) || Object(external_this_wp_i18n_["__"])('(no title)')); + })))); + /* eslint-enable jsx-a11y/no-autofocus */ + } + }]); + + return URLInput; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var url_input = (Object(external_this_wp_components_["withSpokenMessages"])(Object(external_this_wp_compose_["withInstanceId"])(url_input_URLInput))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/button.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var button_URLInputButton = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(URLInputButton, _Component); + + function URLInputButton() { + var _this; + + Object(classCallCheck["a" /* default */])(this, URLInputButton); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLInputButton).apply(this, arguments)); + _this.toggle = _this.toggle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.submitLink = _this.submitLink.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + expanded: false + }; + return _this; + } + + Object(createClass["a" /* default */])(URLInputButton, [{ + key: "toggle", + value: function toggle() { + this.setState({ + expanded: !this.state.expanded + }); + } + }, { + key: "submitLink", + value: function submitLink(event) { + event.preventDefault(); + this.toggle(); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + url = _this$props.url, + onChange = _this$props.onChange; + var expanded = this.state.expanded; + var buttonLabel = url ? Object(external_this_wp_i18n_["__"])('Edit Link') : Object(external_this_wp_i18n_["__"])('Insert Link'); + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-url-input__button block-editor-url-input__button" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "admin-links", + label: buttonLabel, + onClick: this.toggle, + className: classnames_default()('components-toolbar__control', { + 'is-active': url + }) + }), expanded && Object(external_this_wp_element_["createElement"])("form", { + className: "editor-url-input__button-modal block-editor-url-input__button-modal", + onSubmit: this.submitLink + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-url-input__button-modal-line block-editor-url-input__button-modal-line" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "editor-url-input__back block-editor-url-input__back", + icon: "arrow-left-alt", + label: Object(external_this_wp_i18n_["__"])('Close'), + onClick: this.toggle + }), Object(external_this_wp_element_["createElement"])(url_input, { + value: url || '', + onChange: onChange + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "editor-break", + label: Object(external_this_wp_i18n_["__"])('Submit'), + type: "submit" + })))); + } + }]); + + return URLInputButton; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var url_input_button = (button_URLInputButton); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-actions/index.js +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function BlockActions(_ref) { + var onDuplicate = _ref.onDuplicate, + onRemove = _ref.onRemove, + onInsertBefore = _ref.onInsertBefore, + onInsertAfter = _ref.onInsertAfter, + isLocked = _ref.isLocked, + canDuplicate = _ref.canDuplicate, + children = _ref.children; + return children({ + onDuplicate: onDuplicate, + onRemove: onRemove, + onInsertAfter: onInsertAfter, + onInsertBefore: onInsertBefore, + isLocked: isLocked, + canDuplicate: canDuplicate + }); +} + +/* harmony default export */ var block_actions = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { + var _select = select('core/block-editor'), + getBlocksByClientId = _select.getBlocksByClientId, + getTemplateLock = _select.getTemplateLock, + getBlockRootClientId = _select.getBlockRootClientId; + + var blocks = getBlocksByClientId(props.clientIds); + var canDuplicate = Object(external_lodash_["every"])(blocks, function (block) { + return !!block && Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true); + }); + var rootClientId = getBlockRootClientId(props.clientIds[0]); + return { + isLocked: !!getTemplateLock(rootClientId), + blocks: blocks, + canDuplicate: canDuplicate, + rootClientId: rootClientId, + extraProps: props + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, props, _ref2) { + var select = _ref2.select; + var clientIds = props.clientIds, + rootClientId = props.rootClientId, + blocks = props.blocks, + isLocked = props.isLocked, + canDuplicate = props.canDuplicate; + + var _dispatch = dispatch('core/block-editor'), + insertBlocks = _dispatch.insertBlocks, + multiSelect = _dispatch.multiSelect, + removeBlocks = _dispatch.removeBlocks, + insertDefaultBlock = _dispatch.insertDefaultBlock; + + return { + onDuplicate: function onDuplicate() { + if (isLocked || !canDuplicate) { + return; + } + + var _select2 = select('core/block-editor'), + getBlockIndex = _select2.getBlockIndex; + + var lastSelectedIndex = getBlockIndex(Object(external_lodash_["last"])(Object(external_lodash_["castArray"])(clientIds)), rootClientId); + var clonedBlocks = blocks.map(function (block) { + return Object(external_this_wp_blocks_["cloneBlock"])(block); + }); + insertBlocks(clonedBlocks, lastSelectedIndex + 1, rootClientId); + + if (clonedBlocks.length > 1) { + multiSelect(Object(external_lodash_["first"])(clonedBlocks).clientId, Object(external_lodash_["last"])(clonedBlocks).clientId); + } + }, + onRemove: function onRemove() { + if (!isLocked) { + removeBlocks(clientIds); + } + }, + onInsertBefore: function onInsertBefore() { + if (!isLocked) { + var _select3 = select('core/block-editor'), + getBlockIndex = _select3.getBlockIndex; + + var firstSelectedIndex = getBlockIndex(Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds)), rootClientId); + insertDefaultBlock({}, rootClientId, firstSelectedIndex); + } + }, + onInsertAfter: function onInsertAfter() { + if (!isLocked) { + var _select4 = select('core/block-editor'), + getBlockIndex = _select4.getBlockIndex; + + var lastSelectedIndex = getBlockIndex(Object(external_lodash_["last"])(Object(external_lodash_["castArray"])(clientIds)), rootClientId); + insertDefaultBlock({}, rootClientId, lastSelectedIndex + 1); + } + } + }; +})])(BlockActions)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-editor-keyboard-shortcuts/index.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var preventDefault = function preventDefault(event) { + event.preventDefault(); + return event; +}; + +var shortcuts = { + duplicate: { + raw: external_this_wp_keycodes_["rawShortcut"].primaryShift('d'), + display: external_this_wp_keycodes_["displayShortcut"].primaryShift('d') + }, + removeBlock: { + raw: external_this_wp_keycodes_["rawShortcut"].access('z'), + display: external_this_wp_keycodes_["displayShortcut"].access('z') + }, + insertBefore: { + raw: external_this_wp_keycodes_["rawShortcut"].primaryAlt('t'), + display: external_this_wp_keycodes_["displayShortcut"].primaryAlt('t') + }, + insertAfter: { + raw: external_this_wp_keycodes_["rawShortcut"].primaryAlt('y'), + display: external_this_wp_keycodes_["displayShortcut"].primaryAlt('y') + } +}; + +var block_editor_keyboard_shortcuts_BlockEditorKeyboardShortcuts = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockEditorKeyboardShortcuts, _Component); + + function BlockEditorKeyboardShortcuts() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockEditorKeyboardShortcuts); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockEditorKeyboardShortcuts).apply(this, arguments)); + _this.selectAll = _this.selectAll.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.deleteSelectedBlocks = _this.deleteSelectedBlocks.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.clearMultiSelection = _this.clearMultiSelection.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockEditorKeyboardShortcuts, [{ + key: "selectAll", + value: function selectAll(event) { + var _this$props = this.props, + rootBlocksClientIds = _this$props.rootBlocksClientIds, + onMultiSelect = _this$props.onMultiSelect; + event.preventDefault(); + onMultiSelect(Object(external_lodash_["first"])(rootBlocksClientIds), Object(external_lodash_["last"])(rootBlocksClientIds)); + } + }, { + key: "deleteSelectedBlocks", + value: function deleteSelectedBlocks(event) { + var _this$props2 = this.props, + selectedBlockClientIds = _this$props2.selectedBlockClientIds, + hasMultiSelection = _this$props2.hasMultiSelection, + onRemove = _this$props2.onRemove, + isLocked = _this$props2.isLocked; + + if (hasMultiSelection) { + event.preventDefault(); + + if (!isLocked) { + onRemove(selectedBlockClientIds); + } + } + } + /** + * Clears current multi-selection, if one exists. + */ + + }, { + key: "clearMultiSelection", + value: function clearMultiSelection() { + var _this$props3 = this.props, + hasMultiSelection = _this$props3.hasMultiSelection, + clearSelectedBlock = _this$props3.clearSelectedBlock; + + if (hasMultiSelection) { + clearSelectedBlock(); + window.getSelection().removeAllRanges(); + } + } + }, { + key: "render", + value: function render() { + var _ref; + + var selectedBlockClientIds = this.props.selectedBlockClientIds; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + shortcuts: (_ref = {}, Object(defineProperty["a" /* default */])(_ref, external_this_wp_keycodes_["rawShortcut"].primary('a'), this.selectAll), Object(defineProperty["a" /* default */])(_ref, "backspace", this.deleteSelectedBlocks), Object(defineProperty["a" /* default */])(_ref, "del", this.deleteSelectedBlocks), Object(defineProperty["a" /* default */])(_ref, "escape", this.clearMultiSelection), _ref) + }), selectedBlockClientIds.length > 0 && Object(external_this_wp_element_["createElement"])(block_actions, { + clientIds: selectedBlockClientIds + }, function (_ref2) { + var _ref3; + + var onDuplicate = _ref2.onDuplicate, + onRemove = _ref2.onRemove, + onInsertAfter = _ref2.onInsertAfter, + onInsertBefore = _ref2.onInsertBefore; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + bindGlobal: true, + shortcuts: (_ref3 = {}, Object(defineProperty["a" /* default */])(_ref3, shortcuts.duplicate.raw, Object(external_lodash_["flow"])(preventDefault, onDuplicate)), Object(defineProperty["a" /* default */])(_ref3, shortcuts.removeBlock.raw, Object(external_lodash_["flow"])(preventDefault, onRemove)), Object(defineProperty["a" /* default */])(_ref3, shortcuts.insertBefore.raw, Object(external_lodash_["flow"])(preventDefault, onInsertBefore)), Object(defineProperty["a" /* default */])(_ref3, shortcuts.insertAfter.raw, Object(external_lodash_["flow"])(preventDefault, onInsertAfter)), _ref3) + }); + })); + } + }]); + + return BlockEditorKeyboardShortcuts; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_editor_keyboard_shortcuts = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getBlockOrder = _select.getBlockOrder, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, + hasMultiSelection = _select.hasMultiSelection, + getBlockRootClientId = _select.getBlockRootClientId, + getTemplateLock = _select.getTemplateLock, + getSelectedBlockClientId = _select.getSelectedBlockClientId; + + var selectedBlockClientId = getSelectedBlockClientId(); + var selectedBlockClientIds = selectedBlockClientId ? [selectedBlockClientId] : getMultiSelectedBlockClientIds(); + return { + rootBlocksClientIds: getBlockOrder(), + hasMultiSelection: hasMultiSelection(), + isLocked: Object(external_lodash_["some"])(selectedBlockClientIds, function (clientId) { + return !!getTemplateLock(getBlockRootClientId(clientId)); + }), + selectedBlockClientIds: selectedBlockClientIds + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + clearSelectedBlock = _dispatch.clearSelectedBlock, + multiSelect = _dispatch.multiSelect, + removeBlocks = _dispatch.removeBlocks; + + return { + clearSelectedBlock: clearSelectedBlock, + onMultiSelect: multiSelect, + onRemove: removeBlocks + }; +})])(block_editor_keyboard_shortcuts_BlockEditorKeyboardShortcuts)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/skip-to-selected-block/index.js + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var skip_to_selected_block_SkipToSelectedBlock = function SkipToSelectedBlock(_ref) { + var selectedBlockClientId = _ref.selectedBlockClientId; + + var onClick = function onClick() { + var selectedBlockElement = getBlockFocusableWrapper(selectedBlockClientId); + selectedBlockElement.focus(); + }; + + return selectedBlockClientId && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isDefault: true, + type: "button", + className: "editor-skip-to-selected-block block-editor-skip-to-selected-block", + onClick: onClick + }, Object(external_this_wp_i18n_["__"])('Skip to the selected block')); +}; + +/* harmony default export */ var skip_to_selected_block = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + selectedBlockClientId: select('core/block-editor').getBlockSelectionStart() + }; +})(skip_to_selected_block_SkipToSelectedBlock)); + +// EXTERNAL MODULE: external {"this":["wp","tokenList"]} +var external_this_wp_tokenList_ = __webpack_require__(135); +var external_this_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_tokenList_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-styles/index.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + +/** + * Returns the active style from the given className. + * + * @param {Array} styles Block style variations. + * @param {string} className Class name + * + * @return {Object?} The active style. + */ + +function getActiveStyle(styles, className) { + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = new external_this_wp_tokenList_default.a(className).values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var style = _step.value; + + if (style.indexOf('is-style-') === -1) { + continue; + } + + var potentialStyleName = style.substring(9); + var activeStyle = Object(external_lodash_["find"])(styles, { + name: potentialStyleName + }); + + if (activeStyle) { + return activeStyle; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + return Object(external_lodash_["find"])(styles, 'isDefault'); +} +/** + * Replaces the active style in the block's className. + * + * @param {string} className Class name. + * @param {Object?} activeStyle The replaced style. + * @param {Object} newStyle The replacing style. + * + * @return {string} The updated className. + */ + +function replaceActiveStyle(className, activeStyle, newStyle) { + var list = new external_this_wp_tokenList_default.a(className); + + if (activeStyle) { + list.remove('is-style-' + activeStyle.name); + } + + list.add('is-style-' + newStyle.name); + return list.value; +} + +function BlockStyles(_ref) { + var styles = _ref.styles, + className = _ref.className, + onChangeClassName = _ref.onChangeClassName, + name = _ref.name, + attributes = _ref.attributes, + type = _ref.type, + _ref$onSwitch = _ref.onSwitch, + onSwitch = _ref$onSwitch === void 0 ? external_lodash_["noop"] : _ref$onSwitch, + _ref$onHoverClassName = _ref.onHoverClassName, + onHoverClassName = _ref$onHoverClassName === void 0 ? external_lodash_["noop"] : _ref$onHoverClassName; + + if (!styles || styles.length === 0) { + return null; + } + + if (!type.styles && !Object(external_lodash_["find"])(styles, 'isDefault')) { + styles = [{ + name: 'default', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }].concat(Object(toConsumableArray["a" /* default */])(styles)); + } + + var activeStyle = getActiveStyle(styles, className); + + function updateClassName(style) { + var updatedClassName = replaceActiveStyle(className, activeStyle, style); + onChangeClassName(updatedClassName); + onHoverClassName(null); + onSwitch(); + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-styles block-editor-block-styles" + }, styles.map(function (style) { + var styleClassName = replaceActiveStyle(className, activeStyle, style); + return Object(external_this_wp_element_["createElement"])("div", { + key: style.name, + className: classnames_default()('editor-block-styles__item block-editor-block-styles__item', { + 'is-active': activeStyle === style + }), + onClick: function onClick() { + return updateClassName(style); + }, + onKeyDown: function onKeyDown(event) { + if (external_this_wp_keycodes_["ENTER"] === event.keyCode || external_this_wp_keycodes_["SPACE"] === event.keyCode) { + event.preventDefault(); + updateClassName(style); + } + }, + onMouseEnter: function onMouseEnter() { + return onHoverClassName(styleClassName); + }, + onMouseLeave: function onMouseLeave() { + return onHoverClassName(null); + }, + role: "button", + tabIndex: "0", + "aria-label": style.label || style.name + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-styles__item-preview block-editor-block-styles__item-preview" + }, Object(external_this_wp_element_["createElement"])(BlockPreviewContent, { + name: name, + attributes: Object(objectSpread["a" /* default */])({}, attributes, { + className: styleClassName + }) + })), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-styles__item-label block-editor-block-styles__item-label" + }, style.label || style.name)); + })); +} + +/* harmony default export */ var block_styles = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + + var _select = select('core/block-editor'), + getBlock = _select.getBlock; + + var _select2 = select('core/blocks'), + getBlockStyles = _select2.getBlockStyles; + + var block = getBlock(clientId); + var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); + return { + name: block.name, + attributes: block.attributes, + className: block.attributes.className || '', + styles: getBlockStyles(block.name), + type: blockType + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var clientId = _ref3.clientId; + return { + onChangeClassName: function onChangeClassName(newClassName) { + dispatch('core/block-editor').updateBlockAttributes(clientId, { + className: newClassName + }); + } + }; +})])(BlockStyles)); + +// EXTERNAL MODULE: external {"this":["wp","wordcount"]} +var external_this_wp_wordcount_ = __webpack_require__(98); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +function MultiSelectionInspector(_ref) { + var blocks = _ref.blocks; + var words = Object(external_this_wp_wordcount_["count"])(Object(external_this_wp_blocks_["serialize"])(blocks), 'words'); + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-multi-selection-inspector__card block-editor-multi-selection-inspector__card" + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" + })), + showColors: true + }), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-multi-selection-inspector__card-content block-editor-multi-selection-inspector__card-content" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-multi-selection-inspector__card-title block-editor-multi-selection-inspector__card-title" + }, + /* translators: %d: number of blocks */ + Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d block', '%d blocks', blocks.length), blocks.length)), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-multi-selection-inspector__card-description block-editor-multi-selection-inspector__card-description" + }, + /* translators: %d: number of words */ + Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d word', '%d words', words), words)))); +} + +/* harmony default export */ var multi_selection_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getMultiSelectedBlocks = _select.getMultiSelectedBlocks; + + return { + blocks: getMultiSelectedBlocks() + }; +})(MultiSelectionInspector)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-inspector/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + + + +var block_inspector_BlockInspector = function BlockInspector(_ref) { + var selectedBlockClientId = _ref.selectedBlockClientId, + selectedBlockName = _ref.selectedBlockName, + blockType = _ref.blockType, + count = _ref.count, + hasBlockStyles = _ref.hasBlockStyles; + + if (count > 1) { + return Object(external_this_wp_element_["createElement"])(multi_selection_inspector, null); + } + + var isSelectedBlockUnregistered = selectedBlockName === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); + /* + * If the selected block is of an unregistered type, avoid showing it as an actual selection + * because we want the user to focus on the unregistered block warning, not block settings. + */ + + if (!blockType || !selectedBlockClientId || isSelectedBlockUnregistered) { + return Object(external_this_wp_element_["createElement"])("span", { + className: "editor-block-inspector__no-blocks block-editor-block-inspector__no-blocks" + }, Object(external_this_wp_i18n_["__"])('No block selected.')); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-inspector__card block-editor-block-inspector__card" + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: blockType.icon, + showColors: true + }), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-inspector__card-content block-editor-block-inspector__card-content" + }, Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-inspector__card-title block-editor-block-inspector__card-title" + }, blockType.title), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-inspector__card-description block-editor-block-inspector__card-description" + }, blockType.description))), hasBlockStyles && Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Styles'), + initialOpen: false + }, Object(external_this_wp_element_["createElement"])(block_styles, { + clientId: selectedBlockClientId + }))), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(inspector_controls.Slot, null)), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(inspector_advanced_controls.Slot, null, function (fills) { + return !Object(external_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + className: "editor-block-inspector__advanced block-editor-block-inspector__advanced", + title: Object(external_this_wp_i18n_["__"])('Advanced'), + initialOpen: false + }, fills); + })), Object(external_this_wp_element_["createElement"])(skip_to_selected_block, { + key: "back" + })); +}; + +/* harmony default export */ var block_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getSelectedBlockCount = _select.getSelectedBlockCount, + getBlockName = _select.getBlockName; + + var _select2 = select('core/blocks'), + getBlockStyles = _select2.getBlockStyles; + + var selectedBlockClientId = getSelectedBlockClientId(); + var selectedBlockName = selectedBlockClientId && getBlockName(selectedBlockClientId); + var blockType = selectedBlockClientId && Object(external_this_wp_blocks_["getBlockType"])(selectedBlockName); + var blockStyles = selectedBlockClientId && getBlockStyles(selectedBlockName); + return { + count: getSelectedBlockCount(), + hasBlockStyles: blockStyles && blockStyles.length > 0, + selectedBlockName: selectedBlockName, + selectedBlockClientId: selectedBlockClientId, + blockType: blockType + }; +})(block_inspector_BlockInspector)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-selection-clearer/index.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +var block_selection_clearer_BlockSelectionClearer = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockSelectionClearer, _Component); + + function BlockSelectionClearer() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockSelectionClearer); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockSelectionClearer).apply(this, arguments)); + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.clearSelectionIfFocusTarget = _this.clearSelectionIfFocusTarget.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockSelectionClearer, [{ + key: "bindContainer", + value: function bindContainer(ref) { + this.container = ref; + } + /** + * Clears the selected block on focus if the container is the target of the + * focus. This assumes no other descendents have received focus until event + * has bubbled to the container. + * + * @param {FocusEvent} event Focus event. + */ + + }, { + key: "clearSelectionIfFocusTarget", + value: function clearSelectionIfFocusTarget(event) { + var _this$props = this.props, + hasSelectedBlock = _this$props.hasSelectedBlock, + hasMultiSelection = _this$props.hasMultiSelection, + clearSelectedBlock = _this$props.clearSelectedBlock; + var hasSelection = hasSelectedBlock || hasMultiSelection; + + if (event.target === this.container && hasSelection) { + clearSelectedBlock(); + } + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ + tabIndex: -1, + onFocus: this.clearSelectionIfFocusTarget, + ref: this.bindContainer + }, Object(external_lodash_["omit"])(this.props, ['clearSelectedBlock', 'hasSelectedBlock', 'hasMultiSelection']))); + } + }]); + + return BlockSelectionClearer; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var block_selection_clearer = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + hasSelectedBlock = _select.hasSelectedBlock, + hasMultiSelection = _select.hasMultiSelection; + + return { + hasSelectedBlock: hasSelectedBlock(), + hasMultiSelection: hasMultiSelection() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + clearSelectedBlock = _dispatch.clearSelectedBlock; + + return { + clearSelectedBlock: clearSelectedBlock + }; +})])(block_selection_clearer_BlockSelectionClearer)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function BlockModeToggle(_ref) { + var blockType = _ref.blockType, + mode = _ref.mode, + onToggleMode = _ref.onToggleMode, + _ref$small = _ref.small, + small = _ref$small === void 0 ? false : _ref$small; + + if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'html', true)) { + return null; + } + + var label = mode === 'visual' ? Object(external_this_wp_i18n_["__"])('Edit as HTML') : Object(external_this_wp_i18n_["__"])('Edit visually'); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + onClick: onToggleMode, + icon: "html", + label: small ? label : undefined + }, !small && label); +} +/* harmony default export */ var block_mode_toggle = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + + var _select = select('core/block-editor'), + getBlock = _select.getBlock, + getBlockMode = _select.getBlockMode; + + var block = getBlock(clientId); + return { + mode: getBlockMode(clientId), + blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var _ref3$onToggle = _ref3.onToggle, + onToggle = _ref3$onToggle === void 0 ? external_lodash_["noop"] : _ref3$onToggle, + clientId = _ref3.clientId; + return { + onToggleMode: function onToggleMode() { + dispatch('core/block-editor').toggleBlockMode(clientId); + onToggle(); + } + }; +})])(BlockModeToggle)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/reusable-block-convert-button.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +function ReusableBlockConvertButton(_ref) { + var isVisible = _ref.isVisible, + isReusable = _ref.isReusable, + onConvertToStatic = _ref.onConvertToStatic, + onConvertToReusable = _ref.onConvertToReusable; + + if (!isVisible) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isReusable && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + icon: "controls-repeat", + onClick: onConvertToReusable + }, Object(external_this_wp_i18n_["__"])('Add to Reusable Blocks')), isReusable && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + icon: "controls-repeat", + onClick: onConvertToStatic + }, Object(external_this_wp_i18n_["__"])('Convert to Regular Block'))); +} +/* harmony default export */ var reusable_block_convert_button = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientIds = _ref2.clientIds; + + var _select = select('core/block-editor'), + getBlocksByClientId = _select.getBlocksByClientId, + canInsertBlockType = _select.canInsertBlockType; + + var _select2 = select('core/editor'), + getReusableBlock = _select2.__experimentalGetReusableBlock; + + var _select3 = select('core'), + canUser = _select3.canUser; + + var blocks = getBlocksByClientId(clientIds); + var isReusable = blocks.length === 1 && blocks[0] && Object(external_this_wp_blocks_["isReusableBlock"])(blocks[0]) && !!getReusableBlock(blocks[0].attributes.ref); // Show 'Convert to Regular Block' when selected block is a reusable block + + var isVisible = isReusable || // Hide 'Add to Reusable Blocks' when reusable blocks are disabled + canInsertBlockType('core/block') && Object(external_lodash_["every"])(blocks, function (block) { + return (// Guard against the case where a regular block has *just* been converted + !!block && // Hide 'Add to Reusable Blocks' on invalid blocks + block.isValid && // Hide 'Add to Reusable Blocks' when block doesn't support being made reusable + Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'reusable', true) + ); + }) && // Hide 'Add to Reusable Blocks' when current doesn't have permission to do that + !!canUser('create', 'blocks'); + return { + isReusable: isReusable, + isVisible: isVisible + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { + var clientIds = _ref3.clientIds, + _ref3$onToggle = _ref3.onToggle, + onToggle = _ref3$onToggle === void 0 ? external_lodash_["noop"] : _ref3$onToggle; + + var _dispatch = dispatch('core/editor'), + convertBlockToReusable = _dispatch.__experimentalConvertBlockToReusable, + convertBlockToStatic = _dispatch.__experimentalConvertBlockToStatic; + + return { + onConvertToStatic: function onConvertToStatic() { + if (clientIds.length !== 1) { + return; + } + + convertBlockToStatic(clientIds[0]); + onToggle(); + }, + onConvertToReusable: function onConvertToReusable() { + convertBlockToReusable(clientIds); + onToggle(); + } + }; +})])(ReusableBlockConvertButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/reusable-block-delete-button.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function ReusableBlockDeleteButton(_ref) { + var isVisible = _ref.isVisible, + isDisabled = _ref.isDisabled, + onDelete = _ref.onDelete; + + if (!isVisible) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + icon: "no", + disabled: isDisabled, + onClick: function onClick() { + return onDelete(); + } + }, Object(external_this_wp_i18n_["__"])('Remove from Reusable Blocks')); +} +/* harmony default export */ var reusable_block_delete_button = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var clientId = _ref2.clientId; + + var _select = select('core/block-editor'), + getBlock = _select.getBlock; + + var _select2 = select('core'), + canUser = _select2.canUser; + + var _select3 = select('core/editor'), + getReusableBlock = _select3.__experimentalGetReusableBlock; + + var block = getBlock(clientId); + var reusableBlock = block && Object(external_this_wp_blocks_["isReusableBlock"])(block) ? getReusableBlock(block.attributes.ref) : null; + return { + isVisible: !!reusableBlock && !!canUser('delete', 'blocks', reusableBlock.id), + isDisabled: reusableBlock && reusableBlock.isTemporary + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3, _ref4) { + var clientId = _ref3.clientId, + _ref3$onToggle = _ref3.onToggle, + onToggle = _ref3$onToggle === void 0 ? external_lodash_["noop"] : _ref3$onToggle; + var select = _ref4.select; + + var _dispatch = dispatch('core/editor'), + deleteReusableBlock = _dispatch.__experimentalDeleteReusableBlock; + + var _select4 = select('core/block-editor'), + getBlock = _select4.getBlock; + + return { + onDelete: function onDelete() { + // TODO: Make this a component or similar + // eslint-disable-next-line no-alert + var hasConfirmed = window.confirm(Object(external_this_wp_i18n_["__"])('Are you sure you want to delete this Reusable Block?\n\n' + 'It will be permanently removed from all posts and pages that use it.')); + + if (hasConfirmed) { + var block = getBlock(clientId); + deleteReusableBlock(block.attributes.ref); + onToggle(); + } + } + }; +})])(ReusableBlockDeleteButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-convert-button.js + + +/** + * WordPress dependencies + */ + + +function BlockConvertButton(_ref) { + var shouldRender = _ref.shouldRender, + onClick = _ref.onClick, + small = _ref.small; + + if (!shouldRender) { + return null; + } + + var label = Object(external_this_wp_i18n_["__"])('Convert to Blocks'); + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + onClick: onClick, + icon: "screenoptions", + label: small ? label : undefined + }, !small && label); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-html-convert-button.js +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var block_html_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var clientId = _ref.clientId; + var block = select('core/block-editor').getBlock(clientId); + return { + block: block, + shouldRender: block && block.name === 'core/html' + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var block = _ref2.block; + return { + onClick: function onClick() { + return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ + HTML: Object(external_this_wp_blocks_["getBlockContent"])(block) + })); + } + }; +}))(BlockConvertButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-unknown-convert-button.js +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/* harmony default export */ var block_unknown_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { + var clientId = _ref.clientId; + var block = select('core/block-editor').getBlock(clientId); + return { + block: block, + shouldRender: block && block.name === Object(external_this_wp_blocks_["getFreeformContentHandlerName"])() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { + var block = _ref2.block; + return { + onClick: function onClick() { + return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ + HTML: Object(external_this_wp_blocks_["serialize"])(block) + })); + } + }; +}))(BlockConvertButton)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js +/** + * WordPress dependencies + */ + + +var block_settings_menu_first_item_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('_BlockSettingsMenuFirstItem'), + _BlockSettingsMenuFirstItem = block_settings_menu_first_item_createSlotFill.Fill, + block_settings_menu_first_item_Slot = block_settings_menu_first_item_createSlotFill.Slot; + +_BlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot; +/* harmony default export */ var block_settings_menu_first_item = (_BlockSettingsMenuFirstItem); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/block-settings-menu-plugins-extension.js +/** + * WordPress dependencies + */ + + +var block_settings_menu_plugins_extension_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('_BlockSettingsMenuPluginsExtension'), + _BlockSettingsMenuPluginsExtension = block_settings_menu_plugins_extension_createSlotFill.Fill, + block_settings_menu_plugins_extension_Slot = block_settings_menu_plugins_extension_createSlotFill.Slot; + +_BlockSettingsMenuPluginsExtension.Slot = block_settings_menu_plugins_extension_Slot; +/* harmony default export */ var block_settings_menu_plugins_extension = (_BlockSettingsMenuPluginsExtension); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu/index.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + + + + + + + +function BlockSettingsMenu(_ref) { + var clientIds = _ref.clientIds, + onSelect = _ref.onSelect; + var blockClientIds = Object(external_lodash_["castArray"])(clientIds); + var count = blockClientIds.length; + var firstBlockClientId = blockClientIds[0]; + return Object(external_this_wp_element_["createElement"])(block_actions, { + clientIds: clientIds + }, function (_ref2) { + var onDuplicate = _ref2.onDuplicate, + onRemove = _ref2.onRemove, + onInsertAfter = _ref2.onInsertAfter, + onInsertBefore = _ref2.onInsertBefore, + canDuplicate = _ref2.canDuplicate, + isLocked = _ref2.isLocked; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + contentClassName: "editor-block-settings-menu__popover block-editor-block-settings-menu__popover", + position: "bottom right", + renderToggle: function renderToggle(_ref3) { + var onToggle = _ref3.onToggle, + isOpen = _ref3.isOpen; + var toggleClassname = classnames_default()('editor-block-settings-menu__toggle block-editor-block-settings-menu__toggle', { + 'is-opened': isOpen + }); + var label = isOpen ? Object(external_this_wp_i18n_["__"])('Hide options') : Object(external_this_wp_i18n_["__"])('More options'); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: [{ + icon: 'ellipsis', + title: label, + onClick: function onClick() { + if (count === 1) { + onSelect(firstBlockClientId); + } + + onToggle(); + }, + className: toggleClassname, + extraProps: { + 'aria-expanded': isOpen + } + }] + }); + }, + renderContent: function renderContent(_ref4) { + var onClose = _ref4.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { + className: "editor-block-settings-menu__content block-editor-block-settings-menu__content" + }, Object(external_this_wp_element_["createElement"])(block_settings_menu_first_item.Slot, { + fillProps: { + onClose: onClose + } + }), count === 1 && Object(external_this_wp_element_["createElement"])(block_unknown_convert_button, { + clientId: firstBlockClientId + }), count === 1 && Object(external_this_wp_element_["createElement"])(block_html_convert_button, { + clientId: firstBlockClientId + }), !isLocked && canDuplicate && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + onClick: onDuplicate, + icon: "admin-page", + shortcut: shortcuts.duplicate.display + }, Object(external_this_wp_i18n_["__"])('Duplicate')), !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + onClick: onInsertBefore, + icon: "insert-before", + shortcut: shortcuts.insertBefore.display + }, Object(external_this_wp_i18n_["__"])('Insert Before')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + onClick: onInsertAfter, + icon: "insert-after", + shortcut: shortcuts.insertAfter.display + }, Object(external_this_wp_i18n_["__"])('Insert After'))), count === 1 && Object(external_this_wp_element_["createElement"])(block_mode_toggle, { + clientId: firstBlockClientId, + onToggle: onClose + }), Object(external_this_wp_element_["createElement"])(reusable_block_convert_button, { + clientIds: clientIds, + onToggle: onClose + }), Object(external_this_wp_element_["createElement"])(block_settings_menu_plugins_extension.Slot, { + fillProps: { + clientIds: clientIds, + onClose: onClose + } + }), Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-settings-menu__separator block-editor-block-settings-menu__separator" + }), count === 1 && Object(external_this_wp_element_["createElement"])(reusable_block_delete_button, { + clientId: firstBlockClientId, + onToggle: onClose + }), !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", + onClick: onRemove, + icon: "trash", + shortcut: shortcuts.removeBlock.display + }, Object(external_this_wp_i18n_["__"])('Remove Block'))); + } + }); + }); +} +/* harmony default export */ var block_settings_menu = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + selectBlock = _dispatch.selectBlock; + + return { + onSelect: function onSelect(clientId) { + selectBlock(clientId); + } + }; +})(BlockSettingsMenu)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/index.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +/** + * Internal dependencies + */ + + + + + +var block_switcher_BlockSwitcher = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(BlockSwitcher, _Component); + + function BlockSwitcher() { + var _this; + + Object(classCallCheck["a" /* default */])(this, BlockSwitcher); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockSwitcher).apply(this, arguments)); + _this.state = { + hoveredClassName: null + }; + _this.onHoverClassName = _this.onHoverClassName.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(BlockSwitcher, [{ + key: "onHoverClassName", + value: function onHoverClassName(className) { + this.setState({ + hoveredClassName: className + }); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + blocks = _this$props.blocks, + onTransform = _this$props.onTransform, + inserterItems = _this$props.inserterItems, + hasBlockStyles = _this$props.hasBlockStyles; + var hoveredClassName = this.state.hoveredClassName; + + if (!blocks || !blocks.length) { + return null; + } + + var itemsByName = Object(external_lodash_["mapKeys"])(inserterItems, function (_ref) { + var name = _ref.name; + return name; + }); + var possibleBlockTransformations = Object(external_lodash_["orderBy"])(Object(external_lodash_["filter"])(Object(external_this_wp_blocks_["getPossibleBlockTransformations"])(blocks), function (block) { + return block && !!itemsByName[block.name]; + }), function (block) { + return itemsByName[block.name].frecency; + }, 'desc'); // When selection consists of blocks of multiple types, display an + // appropriate icon to communicate the non-uniformity. + + var isSelectionOfSameType = Object(external_lodash_["uniq"])(Object(external_lodash_["map"])(blocks, 'name')).length === 1; + var icon; + + if (isSelectionOfSameType) { + var sourceBlockName = blocks[0].name; + var blockType = Object(external_this_wp_blocks_["getBlockType"])(sourceBlockName); + icon = blockType.icon; + } else { + icon = 'layout'; + } + + if (!hasBlockStyles && !possibleBlockTransformations.length) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + disabled: true, + className: "editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon", + label: Object(external_this_wp_i18n_["__"])('Block icon') + }, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon, + showColors: true + }))); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { + position: "bottom right", + className: "editor-block-switcher block-editor-block-switcher", + contentClassName: "editor-block-switcher__popover block-editor-block-switcher__popover", + renderToggle: function renderToggle(_ref2) { + var onToggle = _ref2.onToggle, + isOpen = _ref2.isOpen; + + var openOnArrowDown = function openOnArrowDown(event) { + if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) { + event.preventDefault(); + event.stopPropagation(); + onToggle(); + } + }; + + var label = 1 === blocks.length ? Object(external_this_wp_i18n_["__"])('Change block type or style') : Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('Change type of %d block', 'Change type of %d blocks', blocks.length), blocks.length); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "editor-block-switcher__toggle block-editor-block-switcher__toggle", + onClick: onToggle, + "aria-haspopup": "true", + "aria-expanded": isOpen, + label: label, + tooltip: label, + onKeyDown: openOnArrowDown, + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockIcon, { + icon: icon, + showColors: true + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + className: "editor-block-switcher__transform block-editor-block-switcher__transform", + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z" + }))) + })); + }, + renderContent: function renderContent(_ref3) { + var onClose = _ref3.onClose; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, hasBlockStyles && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Block Styles'), + initialOpen: true + }, Object(external_this_wp_element_["createElement"])(block_styles, { + clientId: blocks[0].clientId, + onSwitch: onClose, + onHoverClassName: _this2.onHoverClassName + })), possibleBlockTransformations.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Transform To:'), + initialOpen: true + }, Object(external_this_wp_element_["createElement"])(block_types_list, { + items: possibleBlockTransformations.map(function (destinationBlockType) { + return { + id: destinationBlockType.name, + icon: destinationBlockType.icon, + title: destinationBlockType.title, + hasChildBlocksWithInserterSupport: Object(external_this_wp_blocks_["hasChildBlocksWithInserterSupport"])(destinationBlockType.name) + }; + }), + onSelect: function onSelect(item) { + onTransform(blocks, item.id); + onClose(); + } + })), hoveredClassName !== null && Object(external_this_wp_element_["createElement"])(block_preview, { + name: blocks[0].name, + attributes: Object(objectSpread["a" /* default */])({}, blocks[0].attributes, { + className: hoveredClassName + }) + })); + } + }); + } + }]); + + return BlockSwitcher; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var block_switcher = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { + var clientIds = _ref4.clientIds; + + var _select = select('core/block-editor'), + getBlocksByClientId = _select.getBlocksByClientId, + getBlockRootClientId = _select.getBlockRootClientId, + getInserterItems = _select.getInserterItems; + + var _select2 = select('core/blocks'), + getBlockStyles = _select2.getBlockStyles; + + var rootClientId = getBlockRootClientId(Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds))); + var blocks = getBlocksByClientId(clientIds); + var firstBlock = blocks && blocks.length === 1 ? blocks[0] : null; + var styles = firstBlock && getBlockStyles(firstBlock.name); + return { + blocks: blocks, + inserterItems: getInserterItems(rootClientId), + hasBlockStyles: styles && styles.length > 0 + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + return { + onTransform: function onTransform(blocks, name) { + dispatch('core/block-editor').replaceBlocks(ownProps.clientIds, Object(external_this_wp_blocks_["switchToBlockType"])(blocks, name)); + } + }; +}))(block_switcher_BlockSwitcher)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-switcher/multi-blocks-switcher.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function MultiBlocksSwitcher(_ref) { + var isMultiBlockSelection = _ref.isMultiBlockSelection, + selectedBlockClientIds = _ref.selectedBlockClientIds; + + if (!isMultiBlockSelection) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(block_switcher, { + key: "switcher", + clientIds: selectedBlockClientIds + }); +} +/* harmony default export */ var multi_blocks_switcher = (Object(external_this_wp_data_["withSelect"])(function (select) { + var selectedBlockClientIds = select('core/block-editor').getMultiSelectedBlockClientIds(); + return { + isMultiBlockSelection: selectedBlockClientIds.length > 1, + selectedBlockClientIds: selectedBlockClientIds + }; +})(MultiBlocksSwitcher)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + + +function BlockToolbar(_ref) { + var blockClientIds = _ref.blockClientIds, + isValid = _ref.isValid, + mode = _ref.mode; + + if (blockClientIds.length === 0) { + return null; + } + + if (blockClientIds.length > 1) { + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-toolbar block-editor-block-toolbar" + }, Object(external_this_wp_element_["createElement"])(multi_blocks_switcher, null), Object(external_this_wp_element_["createElement"])(block_settings_menu, { + clientIds: blockClientIds + })); + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-block-toolbar block-editor-block-toolbar" + }, mode === 'visual' && isValid && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_switcher, { + clientIds: blockClientIds + }), Object(external_this_wp_element_["createElement"])(block_controls.Slot, null), Object(external_this_wp_element_["createElement"])(block_format_controls.Slot, null)), Object(external_this_wp_element_["createElement"])(block_settings_menu, { + clientIds: blockClientIds + })); +} + +/* harmony default export */ var block_toolbar = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getBlockMode = _select.getBlockMode, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, + isBlockValid = _select.isBlockValid; + + var selectedBlockClientId = getSelectedBlockClientId(); + var blockClientIds = selectedBlockClientId ? [selectedBlockClientId] : getMultiSelectedBlockClientIds(); + return { + blockClientIds: blockClientIds, + isValid: selectedBlockClientId ? isBlockValid(selectedBlockClientId) : null, + mode: selectedBlockClientId ? getBlockMode(selectedBlockClientId) : null + }; +})(BlockToolbar)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/copy-handler/index.js + + + + + + +/** + * WordPress dependencies + */ + + + + + + +var copy_handler_CopyHandler = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(CopyHandler, _Component); + + function CopyHandler() { + var _this; + + Object(classCallCheck["a" /* default */])(this, CopyHandler); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CopyHandler).apply(this, arguments)); + + _this.onCopy = function (event) { + return _this.props.onCopy(event); + }; + + _this.onCut = function (event) { + return _this.props.onCut(event); + }; + + return _this; + } + + Object(createClass["a" /* default */])(CopyHandler, [{ + key: "componentDidMount", + value: function componentDidMount() { + document.addEventListener('copy', this.onCopy); + document.addEventListener('cut', this.onCut); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + document.removeEventListener('copy', this.onCopy); + document.removeEventListener('cut', this.onCut); + } + }, { + key: "render", + value: function render() { + return null; + } + }]); + + return CopyHandler; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var copy_handler = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref) { + var select = _ref.select; + + var _select = select('core/block-editor'), + getBlocksByClientId = _select.getBlocksByClientId, + getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, + getSelectedBlockClientId = _select.getSelectedBlockClientId, + hasMultiSelection = _select.hasMultiSelection; + + var _dispatch = dispatch('core/block-editor'), + removeBlocks = _dispatch.removeBlocks; + + var onCopy = function onCopy(event) { + var selectedBlockClientIds = getSelectedBlockClientId() ? [getSelectedBlockClientId()] : getMultiSelectedBlockClientIds(); + + if (selectedBlockClientIds.length === 0) { + return; + } // Let native copy behaviour take over in input fields. + + + if (!hasMultiSelection() && Object(external_this_wp_dom_["documentHasSelection"])()) { + return; + } + + var serialized = Object(external_this_wp_blocks_["serialize"])(getBlocksByClientId(selectedBlockClientIds)); + event.clipboardData.setData('text/plain', serialized); + event.clipboardData.setData('text/html', serialized); + event.preventDefault(); + }; + + return { + onCopy: onCopy, + onCut: function onCut(event) { + onCopy(event); + + if (hasMultiSelection()) { + var selectedBlockClientIds = getSelectedBlockClientId() ? [getSelectedBlockClientId()] : getMultiSelectedBlockClientIds(); + removeBlocks(selectedBlockClientIds); + } + } + }; +})])(copy_handler_CopyHandler)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-select-scroll-into-view/index.js + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var multi_select_scroll_into_view_MultiSelectScrollIntoView = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MultiSelectScrollIntoView, _Component); + + function MultiSelectScrollIntoView() { + Object(classCallCheck["a" /* default */])(this, MultiSelectScrollIntoView); + + return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MultiSelectScrollIntoView).apply(this, arguments)); + } + + Object(createClass["a" /* default */])(MultiSelectScrollIntoView, [{ + key: "componentDidUpdate", + value: function componentDidUpdate() { + // Relies on expectation that `componentDidUpdate` will only be called + // if value of `extentClientId` changes. + this.scrollIntoView(); + } + /** + * Ensures that if a multi-selection exists, the extent of the selection is + * visible within the nearest scrollable container. + * + * @return {void} + */ + + }, { + key: "scrollIntoView", + value: function scrollIntoView() { + var extentClientId = this.props.extentClientId; + + if (!extentClientId) { + return; + } + + var extentNode = getBlockDOMNode(extentClientId); + + if (!extentNode) { + return; + } + + var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(extentNode); // If there's no scroll container, it follows that there's no scrollbar + // and thus there's no need to try to scroll into view. + + if (!scrollContainer) { + return; + } + + dom_scroll_into_view_lib_default()(extentNode, scrollContainer, { + onlyScrollIfNeeded: true + }); + } + }, { + key: "render", + value: function render() { + return null; + } + }]); + + return MultiSelectScrollIntoView; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var multi_select_scroll_into_view = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId; + + return { + extentClientId: getLastMultiSelectedBlockClientId() + }; +})(multi_select_scroll_into_view_MultiSelectScrollIntoView)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/observe-typing/index.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Set of key codes upon which typing is to be initiated on a keydown event. + * + * @type {number[]} + */ + +var KEY_DOWN_ELIGIBLE_KEY_CODES = [external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["ENTER"], external_this_wp_keycodes_["BACKSPACE"]]; +/** + * Returns true if a given keydown event can be inferred as intent to start + * typing, or false otherwise. A keydown is considered eligible if it is a + * text navigation without shift active. + * + * @param {KeyboardEvent} event Keydown event to test. + * + * @return {boolean} Whether event is eligible to start typing. + */ + +function isKeyDownEligibleForStartTyping(event) { + var keyCode = event.keyCode, + shiftKey = event.shiftKey; + return !shiftKey && Object(external_lodash_["includes"])(KEY_DOWN_ELIGIBLE_KEY_CODES, keyCode); +} + +var observe_typing_ObserveTyping = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ObserveTyping, _Component); + + function ObserveTyping() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ObserveTyping); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ObserveTyping).apply(this, arguments)); + _this.stopTypingOnSelectionUncollapse = _this.stopTypingOnSelectionUncollapse.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.stopTypingOnMouseMove = _this.stopTypingOnMouseMove.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.startTypingInTextField = _this.startTypingInTextField.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.stopTypingOnNonTextField = _this.stopTypingOnNonTextField.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.stopTypingOnEscapeKey = _this.stopTypingOnEscapeKey.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onKeyDown = Object(external_lodash_["over"])([_this.startTypingInTextField, _this.stopTypingOnEscapeKey]); + _this.lastMouseMove = null; + return _this; + } + + Object(createClass["a" /* default */])(ObserveTyping, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.toggleEventBindings(this.props.isTyping); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.isTyping !== prevProps.isTyping) { + this.toggleEventBindings(this.props.isTyping); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.toggleEventBindings(false); + } + /** + * Bind or unbind events to the document when typing has started or stopped + * respectively, or when component has become unmounted. + * + * @param {boolean} isBound Whether event bindings should be applied. + */ + + }, { + key: "toggleEventBindings", + value: function toggleEventBindings(isBound) { + var bindFn = isBound ? 'addEventListener' : 'removeEventListener'; + document[bindFn]('selectionchange', this.stopTypingOnSelectionUncollapse); + document[bindFn]('mousemove', this.stopTypingOnMouseMove); + } + /** + * On mouse move, unset typing flag if user has moved cursor. + * + * @param {MouseEvent} event Mousemove event. + */ + + }, { + key: "stopTypingOnMouseMove", + value: function stopTypingOnMouseMove(event) { + var clientX = event.clientX, + clientY = event.clientY; // We need to check that the mouse really moved because Safari triggers + // mousemove events when shift or ctrl are pressed. + + if (this.lastMouseMove) { + var _this$lastMouseMove = this.lastMouseMove, + lastClientX = _this$lastMouseMove.clientX, + lastClientY = _this$lastMouseMove.clientY; + + if (lastClientX !== clientX || lastClientY !== clientY) { + this.props.onStopTyping(); + } + } + + this.lastMouseMove = { + clientX: clientX, + clientY: clientY + }; + } + /** + * On selection change, unset typing flag if user has made an uncollapsed + * (shift) selection. + */ + + }, { + key: "stopTypingOnSelectionUncollapse", + value: function stopTypingOnSelectionUncollapse() { + var selection = window.getSelection(); + var isCollapsed = selection.rangeCount > 0 && selection.getRangeAt(0).collapsed; + + if (!isCollapsed) { + this.props.onStopTyping(); + } + } + /** + * Unsets typing flag if user presses Escape while typing flag is active. + * + * @param {KeyboardEvent} event Keypress or keydown event to interpret. + */ + + }, { + key: "stopTypingOnEscapeKey", + value: function stopTypingOnEscapeKey(event) { + if (this.props.isTyping && event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { + this.props.onStopTyping(); + } + } + /** + * Handles a keypress or keydown event to infer intention to start typing. + * + * @param {KeyboardEvent} event Keypress or keydown event to interpret. + */ + + }, { + key: "startTypingInTextField", + value: function startTypingInTextField(event) { + var _this$props = this.props, + isTyping = _this$props.isTyping, + onStartTyping = _this$props.onStartTyping; + var type = event.type, + target = event.target; // Abort early if already typing, or key press is incurred outside a + // text field (e.g. arrow-ing through toolbar buttons). + // Ignore typing in a block toolbar + + if (isTyping || !Object(external_this_wp_dom_["isTextField"])(target) || target.closest('.block-editor-block-toolbar')) { + return; + } // Special-case keydown because certain keys do not emit a keypress + // event. Conversely avoid keydown as the canonical event since there + // are many keydown which are explicitly not targeted for typing. + + + if (type === 'keydown' && !isKeyDownEligibleForStartTyping(event)) { + return; + } + + onStartTyping(); + } + /** + * Stops typing when focus transitions to a non-text field element. + * + * @param {FocusEvent} event Focus event. + */ + + }, { + key: "stopTypingOnNonTextField", + value: function stopTypingOnNonTextField(event) { + var _this2 = this; + + event.persist(); // Since focus to a non-text field via arrow key will trigger before + // the keydown event, wait until after current stack before evaluating + // whether typing is to be stopped. Otherwise, typing will re-start. + + this.props.setTimeout(function () { + var _this2$props = _this2.props, + isTyping = _this2$props.isTyping, + onStopTyping = _this2$props.onStopTyping; + var target = event.target; + + if (isTyping && !Object(external_this_wp_dom_["isTextField"])(target)) { + onStopTyping(); + } + }); + } + }, { + key: "render", + value: function render() { + var children = this.props.children; // Disable reason: This component is responsible for capturing bubbled + // keyboard events which are interpreted as typing intent. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + return Object(external_this_wp_element_["createElement"])("div", { + onFocus: this.stopTypingOnNonTextField, + onKeyPress: this.startTypingInTextField, + onKeyDown: this.onKeyDown + }, children); + /* eslint-enable jsx-a11y/no-static-element-interactions */ + } + }]); + + return ObserveTyping; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var observe_typing = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + isTyping = _select.isTyping; + + return { + isTyping: isTyping() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + startTyping = _dispatch.startTyping, + stopTyping = _dispatch.stopTyping; + + return { + onStartTyping: startTyping, + onStopTyping: stopTyping + }; +}), external_this_wp_compose_["withSafeTimeout"]])(observe_typing_ObserveTyping)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/preserve-scroll-in-reorder/index.js + + + + + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +/** + * Non-visual component which preserves offset of selected block within nearest + * scrollable container while reordering. + * + * @example + * + * ```jsx + * + * ``` + */ + +var preserve_scroll_in_reorder_PreserveScrollInReorder = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(PreserveScrollInReorder, _Component); + + function PreserveScrollInReorder() { + Object(classCallCheck["a" /* default */])(this, PreserveScrollInReorder); + + return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PreserveScrollInReorder).apply(this, arguments)); + } + + Object(createClass["a" /* default */])(PreserveScrollInReorder, [{ + key: "getSnapshotBeforeUpdate", + value: function getSnapshotBeforeUpdate(prevProps) { + var _this$props = this.props, + blockOrder = _this$props.blockOrder, + selectionStart = _this$props.selectionStart; + + if (blockOrder !== prevProps.blockOrder && selectionStart) { + return this.getOffset(selectionStart); + } + + return null; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState, snapshot) { + if (snapshot) { + this.restorePreviousOffset(snapshot); + } + } + /** + * Given the block client ID of the start of the selection, saves the + * block's top offset as an instance property before a reorder is to occur. + * + * @param {string} selectionStart Client ID of selected block. + * + * @return {number?} The scroll offset. + */ + + }, { + key: "getOffset", + value: function getOffset(selectionStart) { + var blockNode = getBlockDOMNode(selectionStart); + + if (!blockNode) { + return null; + } + + return blockNode.getBoundingClientRect().top; + } + /** + * After a block reordering, restores the previous viewport top offset. + * + * @param {number} offset The scroll offset. + */ + + }, { + key: "restorePreviousOffset", + value: function restorePreviousOffset(offset) { + var selectionStart = this.props.selectionStart; + var blockNode = getBlockDOMNode(selectionStart); + + if (blockNode) { + var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(blockNode); + + if (scrollContainer) { + scrollContainer.scrollTop = scrollContainer.scrollTop + blockNode.getBoundingClientRect().top - offset; + } + } + } + }, { + key: "render", + value: function render() { + return null; + } + }]); + + return PreserveScrollInReorder; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var preserve_scroll_in_reorder = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + blockOrder: select('core/block-editor').getBlockOrder(), + selectionStart: select('core/block-editor').getBlockSelectionStart() + }; +})(preserve_scroll_in_reorder_PreserveScrollInReorder)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/writing-flow/index.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * Browser constants + */ + +var writing_flow_window = window, + writing_flow_getSelection = writing_flow_window.getSelection; +/** + * Given an element, returns true if the element is a tabbable text field, or + * false otherwise. + * + * @param {Element} element Element to test. + * + * @return {boolean} Whether element is a tabbable text field. + */ + +var isTabbableTextField = Object(external_lodash_["overEvery"])([external_this_wp_dom_["isTextField"], external_this_wp_dom_["focus"].tabbable.isTabbableIndex]); +/** + * Returns true if the element should consider edge navigation upon a keyboard + * event of the given directional key code, or false otherwise. + * + * @param {Element} element HTML element to test. + * @param {number} keyCode KeyboardEvent keyCode to test. + * @param {boolean} hasModifier Whether a modifier is pressed. + * + * @return {boolean} Whether element should consider edge navigation. + */ + +function isNavigationCandidate(element, keyCode, hasModifier) { + var isVertical = keyCode === external_this_wp_keycodes_["UP"] || keyCode === external_this_wp_keycodes_["DOWN"]; // Currently, all elements support unmodified vertical navigation. + + if (isVertical && !hasModifier) { + return true; + } // Native inputs should not navigate horizontally. + + + var tagName = element.tagName; + return tagName !== 'INPUT' && tagName !== 'TEXTAREA'; +} + +var writing_flow_WritingFlow = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(WritingFlow, _Component); + + function WritingFlow() { + var _this; + + Object(classCallCheck["a" /* default */])(this, WritingFlow); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WritingFlow).apply(this, arguments)); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.clearVerticalRect = _this.clearVerticalRect.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.focusLastTextField = _this.focusLastTextField.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + /** + * Here a rectangle is stored while moving the caret vertically so + * vertical position of the start position can be restored. + * This is to recreate browser behaviour across blocks. + * + * @type {?DOMRect} + */ + + _this.verticalRect = null; + return _this; + } + + Object(createClass["a" /* default */])(WritingFlow, [{ + key: "bindContainer", + value: function bindContainer(ref) { + this.container = ref; + } + }, { + key: "clearVerticalRect", + value: function clearVerticalRect() { + this.verticalRect = null; + } + /** + * Returns the optimal tab target from the given focused element in the + * desired direction. A preference is made toward text fields, falling back + * to the block focus stop if no other candidates exist for the block. + * + * @param {Element} target Currently focused text field. + * @param {boolean} isReverse True if considering as the first field. + * + * @return {?Element} Optimal tab target, if one exists. + */ + + }, { + key: "getClosestTabbable", + value: function getClosestTabbable(target, isReverse) { + // Since the current focus target is not guaranteed to be a text field, + // find all focusables. Tabbability is considered later. + var focusableNodes = external_this_wp_dom_["focus"].focusable.find(this.container); + + if (isReverse) { + focusableNodes = Object(external_lodash_["reverse"])(focusableNodes); + } // Consider as candidates those focusables after the current target. + // It's assumed this can only be reached if the target is focusable + // (on its keydown event), so no need to verify it exists in the set. + + + focusableNodes = focusableNodes.slice(focusableNodes.indexOf(target) + 1); + + function isTabCandidate(node, i, array) { + // Not a candidate if the node is not tabbable. + if (!external_this_wp_dom_["focus"].tabbable.isTabbableIndex(node)) { + return false; + } // Prefer text fields... + + + if (Object(external_this_wp_dom_["isTextField"])(node)) { + return true; + } // ...but settle for block focus stop. + + + if (!isBlockFocusStop(node)) { + return false; + } // If element contains inner blocks, stop immediately at its focus + // wrapper. + + + if (hasInnerBlocksContext(node)) { + return true; + } // If navigating out of a block (in reverse), don't consider its + // block focus stop. + + + if (node.contains(target)) { + return false; + } // In case of block focus stop, check to see if there's a better + // text field candidate within. + + + for (var offset = 1, nextNode; nextNode = array[i + offset]; offset++) { + // Abort if no longer testing descendents of focus stop. + if (!node.contains(nextNode)) { + break; + } // Apply same tests by recursion. This is important to consider + // nestable blocks where we don't want to settle for the inner + // block focus stop. + + + if (isTabCandidate(nextNode, i + offset, array)) { + return false; + } + } + + return true; + } + + return Object(external_lodash_["find"])(focusableNodes, isTabCandidate); + } + }, { + key: "expandSelection", + value: function expandSelection(isReverse) { + var _this$props = this.props, + selectedBlockClientId = _this$props.selectedBlockClientId, + selectionStartClientId = _this$props.selectionStartClientId, + selectionBeforeEndClientId = _this$props.selectionBeforeEndClientId, + selectionAfterEndClientId = _this$props.selectionAfterEndClientId; + var nextSelectionEndClientId = isReverse ? selectionBeforeEndClientId : selectionAfterEndClientId; + + if (nextSelectionEndClientId) { + this.props.onMultiSelect(selectionStartClientId || selectedBlockClientId, nextSelectionEndClientId); + } + } + }, { + key: "moveSelection", + value: function moveSelection(isReverse) { + var _this$props2 = this.props, + selectedFirstClientId = _this$props2.selectedFirstClientId, + selectedLastClientId = _this$props2.selectedLastClientId; + var focusedBlockClientId = isReverse ? selectedFirstClientId : selectedLastClientId; + + if (focusedBlockClientId) { + this.props.onSelectBlock(focusedBlockClientId); + } + } + /** + * Returns true if the given target field is the last in its block which + * can be considered for tab transition. For example, in a block with two + * text fields, this would return true when reversing from the first of the + * two fields, but false when reversing from the second. + * + * @param {Element} target Currently focused text field. + * @param {boolean} isReverse True if considering as the first field. + * + * @return {boolean} Whether field is at edge for tab transition. + */ + + }, { + key: "isTabbableEdge", + value: function isTabbableEdge(target, isReverse) { + var closestTabbable = this.getClosestTabbable(target, isReverse); + return !closestTabbable || !isInSameBlock(target, closestTabbable); + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + var _this$props3 = this.props, + hasMultiSelection = _this$props3.hasMultiSelection, + onMultiSelect = _this$props3.onMultiSelect, + blocks = _this$props3.blocks, + selectionBeforeEndClientId = _this$props3.selectionBeforeEndClientId, + selectionAfterEndClientId = _this$props3.selectionAfterEndClientId; + var keyCode = event.keyCode, + target = event.target; + var isUp = keyCode === external_this_wp_keycodes_["UP"]; + var isDown = keyCode === external_this_wp_keycodes_["DOWN"]; + var isLeft = keyCode === external_this_wp_keycodes_["LEFT"]; + var isRight = keyCode === external_this_wp_keycodes_["RIGHT"]; + var isReverse = isUp || isLeft; + var isHorizontal = isLeft || isRight; + var isVertical = isUp || isDown; + var isNav = isHorizontal || isVertical; + var isShift = event.shiftKey; + var hasModifier = isShift || event.ctrlKey || event.altKey || event.metaKey; + var isNavEdge = isVertical ? external_this_wp_dom_["isVerticalEdge"] : external_this_wp_dom_["isHorizontalEdge"]; // This logic inside this condition needs to be checked before + // the check for event.nativeEvent.defaultPrevented. + // The logic handles meta+a keypress and this event is default prevented + // by RichText. + + if (!isNav) { + // Set immediately before the meta+a combination can be pressed. + if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event)) { + this.isEntirelySelected = Object(external_this_wp_dom_["isEntirelySelected"])(target); + } + + if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event, 'a')) { + // When the target is contentEditable, selection will already + // have been set by the browser earlier in this call stack. We + // need check the previous result, otherwise all blocks will be + // selected right away. + if (target.isContentEditable ? this.isEntirelySelected : Object(external_this_wp_dom_["isEntirelySelected"])(target)) { + onMultiSelect(Object(external_lodash_["first"])(blocks), Object(external_lodash_["last"])(blocks)); + event.preventDefault(); + } // After pressing primary + A we can assume isEntirelySelected is true. + // Calling right away isEntirelySelected after primary + A may still return false on some browsers. + + + this.isEntirelySelected = true; + } + + return; + } // Abort if navigation has already been handled (e.g. RichText inline + // boundaries). + + + if (event.nativeEvent.defaultPrevented) { + return; + } // Abort if our current target is not a candidate for navigation (e.g. + // preserve native input behaviors). + + + if (!isNavigationCandidate(target, keyCode, hasModifier)) { + return; + } + + if (!isVertical) { + this.verticalRect = null; + } else if (!this.verticalRect) { + this.verticalRect = Object(external_this_wp_dom_["computeCaretRect"])(target); + } + + if (isShift) { + if (( // Ensure that there is a target block. + isReverse && selectionBeforeEndClientId || !isReverse && selectionAfterEndClientId) && (hasMultiSelection || this.isTabbableEdge(target, isReverse) && isNavEdge(target, isReverse))) { + // Shift key is down, and there is multi selection or we're at + // the end of the current block. + this.expandSelection(isReverse); + event.preventDefault(); + } + } else if (hasMultiSelection) { + // Moving from block multi-selection to single block selection + this.moveSelection(isReverse); + event.preventDefault(); + } else if (isVertical && Object(external_this_wp_dom_["isVerticalEdge"])(target, isReverse)) { + var closestTabbable = this.getClosestTabbable(target, isReverse); + + if (closestTabbable) { + Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(closestTabbable, isReverse, this.verticalRect); + event.preventDefault(); + } + } else if (isHorizontal && writing_flow_getSelection().isCollapsed && Object(external_this_wp_dom_["isHorizontalEdge"])(target, isReverse)) { + var _closestTabbable = this.getClosestTabbable(target, isReverse); + + Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(_closestTabbable, isReverse); + event.preventDefault(); + } + } + /** + * Sets focus to the end of the last tabbable text field, if one exists. + */ + + }, { + key: "focusLastTextField", + value: function focusLastTextField() { + var focusableNodes = external_this_wp_dom_["focus"].focusable.find(this.container); + var target = Object(external_lodash_["findLast"])(focusableNodes, isTabbableTextField); + + if (target) { + Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, true); + } + } + }, { + key: "render", + value: function render() { + var children = this.props.children; // Disable reason: Wrapper itself is non-interactive, but must capture + // bubbling events from children to determine focus transition intents. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + return Object(external_this_wp_element_["createElement"])("div", { + className: "editor-writing-flow block-editor-writing-flow" + }, Object(external_this_wp_element_["createElement"])("div", { + ref: this.bindContainer, + onKeyDown: this.onKeyDown, + onMouseDown: this.clearVerticalRect + }, children), Object(external_this_wp_element_["createElement"])("div", { + "aria-hidden": true, + tabIndex: -1, + onClick: this.focusLastTextField, + className: "wp-block editor-writing-flow__click-redirect block-editor-writing-flow__click-redirect" + })); + /* eslint-disable jsx-a11y/no-static-element-interactions */ + } + }]); + + return WritingFlow; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var writing_flow = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSelectedBlockClientId = _select.getSelectedBlockClientId, + getMultiSelectedBlocksStartClientId = _select.getMultiSelectedBlocksStartClientId, + getMultiSelectedBlocksEndClientId = _select.getMultiSelectedBlocksEndClientId, + getPreviousBlockClientId = _select.getPreviousBlockClientId, + getNextBlockClientId = _select.getNextBlockClientId, + getFirstMultiSelectedBlockClientId = _select.getFirstMultiSelectedBlockClientId, + getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId, + hasMultiSelection = _select.hasMultiSelection, + getBlockOrder = _select.getBlockOrder; + + var selectedBlockClientId = getSelectedBlockClientId(); + var selectionStartClientId = getMultiSelectedBlocksStartClientId(); + var selectionEndClientId = getMultiSelectedBlocksEndClientId(); + return { + selectedBlockClientId: selectedBlockClientId, + selectionStartClientId: selectionStartClientId, + selectionBeforeEndClientId: getPreviousBlockClientId(selectionEndClientId || selectedBlockClientId), + selectionAfterEndClientId: getNextBlockClientId(selectionEndClientId || selectedBlockClientId), + selectedFirstClientId: getFirstMultiSelectedBlockClientId(), + selectedLastClientId: getLastMultiSelectedBlockClientId(), + hasMultiSelection: hasMultiSelection(), + blocks: getBlockOrder() + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/block-editor'), + multiSelect = _dispatch.multiSelect, + selectBlock = _dispatch.selectBlock; + + return { + onMultiSelect: multiSelect, + onSelectBlock: selectBlock + }; +})])(writing_flow_WritingFlow)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/provider/index.js + + + + + + + +/** + * WordPress dependencies + */ + + + + var provider_BlockEditorProvider = /*#__PURE__*/ @@ -4312,18 +18957,638 @@ function (_Component) { updateSettings: updateSettings, resetBlocks: resetBlocks }; -}), withRegistry])(provider_BlockEditorProvider)); +}), external_this_wp_data_["withRegistry"]])(provider_BlockEditorProvider)); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/index.js +// Block Creation Components + + + + + + + + + + + + + + + + + + + + + + + + + // Content Related Components + + + + + + + + + + + + + + + + + + + + + + // State Related Components + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/align.js + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +/** + * An array which includes all possible valid alignments, + * used to validate if an alignment is valid or not. + * + * @constant + * @type {string[]} +*/ + +var ALL_ALIGNMENTS = ['left', 'center', 'right', 'wide', 'full']; +/** + * An array which includes all wide alignments. + * In order for this alignments to be valid they need to be supported by the block, + * and by the theme. + * + * @constant + * @type {string[]} +*/ + +var WIDE_ALIGNMENTS = ['wide', 'full']; +/** + * Returns the valid alignments. + * Takes into consideration the aligns supported by a block, if the block supports wide controls or not and if theme supports wide controls or not. + * Exported just for testing purposes, not exported outside the module. + * + * @param {?boolean|string[]} blockAlign Aligns supported by the block. + * @param {?boolean} hasWideBlockSupport True if block supports wide alignments. And False otherwise. + * @param {?boolean} hasWideEnabled True if theme supports wide alignments. And False otherwise. + * + * @return {string[]} Valid alignments. + */ + +function getValidAlignments(blockAlign) { + var hasWideBlockSupport = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var hasWideEnabled = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var validAlignments; + + if (Array.isArray(blockAlign)) { + validAlignments = blockAlign; + } else if (blockAlign === true) { + // `true` includes all alignments... + validAlignments = ALL_ALIGNMENTS; + } else { + validAlignments = []; + } + + if (!hasWideEnabled || blockAlign === true && !hasWideBlockSupport) { + return external_lodash_["without"].apply(void 0, [validAlignments].concat(WIDE_ALIGNMENTS)); + } + + return validAlignments; +} +/** + * Filters registered block settings, extending attributes to include `align`. + * + * @param {Object} settings Original block settings + * @return {Object} Filtered block settings + */ + +function addAttribute(settings) { + // allow blocks to specify their own attribute definition with default values if needed. + if (Object(external_lodash_["has"])(settings.attributes, ['align', 'type'])) { + return settings; + } + + if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'align')) { + // Use Lodash's assign to gracefully handle if attributes are undefined + settings.attributes = Object(external_lodash_["assign"])(settings.attributes, { + align: { + type: 'string' + } + }); + } + + return settings; +} +/** + * Override the default edit UI to include new toolbar controls for block + * alignment, if block defines support. + * + * @param {Function} BlockEdit Original component + * @return {Function} Wrapped component + */ + +var withToolbarControls = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return function (props) { + var blockName = props.name; // Compute valid alignments without taking into account, + // if the theme supports wide alignments or not. + // BlockAlignmentToolbar takes into account the theme support. + + var validAlignments = getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(blockName, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'alignWide', true)); + + var updateAlignment = function updateAlignment(nextAlign) { + if (!nextAlign) { + var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name); + var blockDefaultAlign = Object(external_lodash_["get"])(blockType, ['attributes', 'align', 'default']); + + if (blockDefaultAlign) { + nextAlign = ''; + } + } + + props.setAttributes({ + align: nextAlign + }); + }; + + return [validAlignments.length > 0 && props.isSelected && Object(external_this_wp_element_["createElement"])(block_controls, { + key: "align-controls" + }, Object(external_this_wp_element_["createElement"])(block_alignment_toolbar, { + value: props.attributes.align, + onChange: updateAlignment, + controls: validAlignments + })), Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ + key: "edit" + }, props))]; + }; +}, 'withToolbarControls'); // Exported just for testing purposes, not exported outside the module. + +var align_insideSelectWithDataAlign = function insideSelectWithDataAlign(BlockListBlock) { + return function (props) { + var name = props.name, + attributes = props.attributes, + hasWideEnabled = props.hasWideEnabled; + var align = attributes.align; + var validAlignments = getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(name, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(name, 'alignWide', true), hasWideEnabled); + var wrapperProps = props.wrapperProps; + + if (Object(external_lodash_["includes"])(validAlignments, align)) { + wrapperProps = Object(objectSpread["a" /* default */])({}, wrapperProps, { + 'data-align': align + }); + } + + return Object(external_this_wp_element_["createElement"])(BlockListBlock, Object(esm_extends["a" /* default */])({}, props, { + wrapperProps: wrapperProps + })); + }; +}; +/** + * Override the default block element to add alignment wrapper props. + * + * @param {Function} BlockListBlock Original component + * @return {Function} Wrapped component + */ + +var withDataAlign = Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + hasWideEnabled: !!getSettings().alignWide + }; +}), align_insideSelectWithDataAlign])); +/** + * Override props assigned to save component to inject alignment class name if + * block supports it. + * + * @param {Object} props Additional props applied to save element + * @param {Object} blockType Block type + * @param {Object} attributes Block attributes + * @return {Object} Filtered props applied to save element + */ + +function addAssignedAlign(props, blockType, attributes) { + var align = attributes.align; + var blockAlign = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, 'align'); + var hasWideBlockSupport = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'alignWide', true); + var isAlignValid = Object(external_lodash_["includes"])( // Compute valid alignments without taking into account, + // if the theme supports wide alignments or not. + // This way changing themes does not impacts the block save. + getValidAlignments(blockAlign, hasWideBlockSupport), align); + + if (isAlignValid) { + props.className = classnames_default()("align".concat(align), props.className); + } + + return props; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/align/addAttribute', addAttribute); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/editor/align/with-data-align', withDataAlign); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/align/with-toolbar-controls', withToolbarControls); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/align/addAssignedAlign', addAssignedAlign); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/anchor.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + +/** + * Regular expression matching invalid anchor characters for replacement. + * + * @type {RegExp} + */ + +var ANCHOR_REGEX = /[\s#]/g; +/** + * Filters registered block settings, extending attributes with anchor using ID + * of the first node. + * + * @param {Object} settings Original block settings. + * + * @return {Object} Filtered block settings. + */ + +function anchor_addAttribute(settings) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'anchor')) { + // Use Lodash's assign to gracefully handle if attributes are undefined + settings.attributes = Object(external_lodash_["assign"])(settings.attributes, { + anchor: { + type: 'string', + source: 'attribute', + attribute: 'id', + selector: '*' + } + }); + } + + return settings; +} +/** + * Override the default edit UI to include a new block inspector control for + * assigning the anchor ID, if block supports anchor. + * + * @param {function|Component} BlockEdit Original component. + * + * @return {string} Wrapped component. + */ + +var withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return function (props) { + var hasAnchor = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'anchor'); + + if (hasAnchor && props.isSelected) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('HTML Anchor'), + help: Object(external_this_wp_i18n_["__"])('Anchors lets you link directly to a section on a page.'), + value: props.attributes.anchor || '', + onChange: function onChange(nextValue) { + nextValue = nextValue.replace(ANCHOR_REGEX, '-'); + props.setAttributes({ + anchor: nextValue + }); + } + }))); + } + + return Object(external_this_wp_element_["createElement"])(BlockEdit, props); + }; +}, 'withInspectorControl'); +/** + * Override props assigned to save component to inject anchor ID, if block + * supports anchor. This is only applied if the block's save result is an + * element and not a markup string. + * + * @param {Object} extraProps Additional props applied to save element. + * @param {Object} blockType Block type. + * @param {Object} attributes Current block attributes. + * + * @return {Object} Filtered props applied to save element. + */ + +function addSaveProps(extraProps, blockType, attributes) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'anchor')) { + extraProps.id = attributes.anchor === '' ? null : attributes.anchor; + } + + return extraProps; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/anchor/with-inspector-control', withInspectorControl); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/anchor/save-props', addSaveProps); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/custom-class-name.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + +/** + * Filters registered block settings, extending attributes with anchor using ID + * of the first node. + * + * @param {Object} settings Original block settings. + * + * @return {Object} Filtered block settings. + */ + +function custom_class_name_addAttribute(settings) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'customClassName', true)) { + // Use Lodash's assign to gracefully handle if attributes are undefined + settings.attributes = Object(external_lodash_["assign"])(settings.attributes, { + className: { + type: 'string' + } + }); + } + + return settings; +} +/** + * Override the default edit UI to include a new block inspector control for + * assigning the custom class name, if block supports custom class name. + * + * @param {function|Component} BlockEdit Original component. + * + * @return {string} Wrapped component. + */ + +var custom_class_name_withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { + return function (props) { + var hasCustomClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'customClassName', true); + + if (hasCustomClassName && props.isSelected) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Additional CSS Class'), + value: props.attributes.className || '', + onChange: function onChange(nextValue) { + props.setAttributes({ + className: nextValue !== '' ? nextValue : undefined + }); + } + }))); + } + + return Object(external_this_wp_element_["createElement"])(BlockEdit, props); + }; +}, 'withInspectorControl'); +/** + * Override props assigned to save component to inject anchor ID, if block + * supports anchor. This is only applied if the block's save result is an + * element and not a markup string. + * + * @param {Object} extraProps Additional props applied to save element. + * @param {Object} blockType Block type. + * @param {Object} attributes Current block attributes. + * + * @return {Object} Filtered props applied to save element. + */ + +function custom_class_name_addSaveProps(extraProps, blockType, attributes) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true) && attributes.className) { + extraProps.className = classnames_default()(extraProps.className, attributes.className); + } + + return extraProps; +} +/** + * Given an HTML string, returns an array of class names assigned to the root + * element in the markup. + * + * @param {string} innerHTML Markup string from which to extract classes. + * + * @return {string[]} Array of class names assigned to the root element. + */ + +function getHTMLRootElementClasses(innerHTML) { + innerHTML = "

    ".concat(innerHTML, "
    "); + var parsed = Object(external_this_wp_blocks_["parseWithAttributeSchema"])(innerHTML, { + type: 'string', + source: 'attribute', + selector: '[data-custom-class-name] > *', + attribute: 'class' + }); + return parsed ? parsed.trim().split(/\s+/) : []; +} +/** + * Given a parsed set of block attributes, if the block supports custom class + * names and an unknown class (per the block's serialization behavior) is + * found, the unknown classes are treated as custom classes. This prevents the + * block from being considered as invalid. + * + * @param {Object} blockAttributes Original block attributes. + * @param {Object} blockType Block type settings. + * @param {string} innerHTML Original block markup. + * + * @return {Object} Filtered block attributes. + */ + +function addParsedDifference(blockAttributes, blockType, innerHTML) { + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true)) { + // To determine difference, serialize block given the known set of + // attributes, with the exception of `className`. This will determine + // the default set of classes. From there, any difference in innerHTML + // can be considered as custom classes. + var attributesSansClassName = Object(external_lodash_["omit"])(blockAttributes, ['className']); + var serialized = Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributesSansClassName); + var defaultClasses = getHTMLRootElementClasses(serialized); + var actualClasses = getHTMLRootElementClasses(innerHTML); + var customClasses = Object(external_lodash_["difference"])(actualClasses, defaultClasses); + + if (customClasses.length) { + blockAttributes.className = customClasses.join(' '); + } else if (serialized) { + delete blockAttributes.className; + } + } + + return blockAttributes; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/custom-class-name/attribute', custom_class_name_addAttribute); +Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/custom-class-name/with-inspector-control', custom_class_name_withInspectorControl); +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/custom-class-name/save-props', custom_class_name_addSaveProps); +Object(external_this_wp_hooks_["addFilter"])('blocks.getBlockAttributes', 'core/custom-class-name/addParsedDifference', addParsedDifference); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/generated-class-name.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Override props assigned to save component to inject generated className if + * block supports it. This is only applied if the block's save result is an + * element and not a markup string. + * + * @param {Object} extraProps Additional props applied to save element. + * @param {Object} blockType Block type. + * + * @return {Object} Filtered props applied to save element. + */ + +function addGeneratedClassName(extraProps, blockType) { + // Adding the generated className + if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true)) { + if (typeof extraProps.className === 'string') { + // We have some extra classes and want to add the default classname + // We use uniq to prevent duplicate classnames + extraProps.className = Object(external_lodash_["uniq"])([Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name)].concat(Object(toConsumableArray["a" /* default */])(extraProps.className.split(' ')))).join(' ').trim(); + } else { + // There is no string in the className variable, + // so we just dump the default name in there + extraProps.className = Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name); + } + } + + return extraProps; +} +Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/index.js +/** + * Internal dependencies + */ + + + // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/index.js +/* concated harmony reexport Autocomplete */__webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return autocomplete; }); +/* concated harmony reexport AlignmentToolbar */__webpack_require__.d(__webpack_exports__, "AlignmentToolbar", function() { return alignment_toolbar; }); +/* concated harmony reexport BlockAlignmentToolbar */__webpack_require__.d(__webpack_exports__, "BlockAlignmentToolbar", function() { return block_alignment_toolbar; }); +/* concated harmony reexport BlockControls */__webpack_require__.d(__webpack_exports__, "BlockControls", function() { return block_controls; }); +/* concated harmony reexport BlockEdit */__webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return block_edit; }); +/* concated harmony reexport BlockFormatControls */__webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return block_format_controls; }); +/* concated harmony reexport BlockNavigationDropdown */__webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return dropdown; }); +/* concated harmony reexport BlockIcon */__webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return BlockIcon; }); +/* concated harmony reexport ColorPalette */__webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return color_palette; }); +/* concated harmony reexport withColorContext */__webpack_require__.d(__webpack_exports__, "withColorContext", function() { return with_color_context; }); +/* concated harmony reexport ContrastChecker */__webpack_require__.d(__webpack_exports__, "ContrastChecker", function() { return contrast_checker; }); +/* concated harmony reexport InnerBlocks */__webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return inner_blocks; }); +/* concated harmony reexport InspectorAdvancedControls */__webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return inspector_advanced_controls; }); +/* concated harmony reexport InspectorControls */__webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return inspector_controls; }); +/* concated harmony reexport PanelColorSettings */__webpack_require__.d(__webpack_exports__, "PanelColorSettings", function() { return panel_color_settings; }); +/* concated harmony reexport PlainText */__webpack_require__.d(__webpack_exports__, "PlainText", function() { return plain_text; }); +/* concated harmony reexport RichText */__webpack_require__.d(__webpack_exports__, "RichText", function() { return rich_text; }); +/* concated harmony reexport RichTextShortcut */__webpack_require__.d(__webpack_exports__, "RichTextShortcut", function() { return shortcut_RichTextShortcut; }); +/* concated harmony reexport RichTextToolbarButton */__webpack_require__.d(__webpack_exports__, "RichTextToolbarButton", function() { return RichTextToolbarButton; }); +/* concated harmony reexport UnstableRichTextInputEvent */__webpack_require__.d(__webpack_exports__, "UnstableRichTextInputEvent", function() { return input_event_UnstableRichTextInputEvent; }); +/* concated harmony reexport MediaPlaceholder */__webpack_require__.d(__webpack_exports__, "MediaPlaceholder", function() { return media_placeholder; }); +/* concated harmony reexport MediaUpload */__webpack_require__.d(__webpack_exports__, "MediaUpload", function() { return media_upload; }); +/* concated harmony reexport MediaUploadCheck */__webpack_require__.d(__webpack_exports__, "MediaUploadCheck", function() { return check; }); +/* concated harmony reexport URLInput */__webpack_require__.d(__webpack_exports__, "URLInput", function() { return url_input; }); +/* concated harmony reexport URLInputButton */__webpack_require__.d(__webpack_exports__, "URLInputButton", function() { return url_input_button; }); +/* concated harmony reexport URLPopover */__webpack_require__.d(__webpack_exports__, "URLPopover", function() { return url_popover; }); +/* concated harmony reexport BlockEditorKeyboardShortcuts */__webpack_require__.d(__webpack_exports__, "BlockEditorKeyboardShortcuts", function() { return block_editor_keyboard_shortcuts; }); +/* concated harmony reexport BlockInspector */__webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return block_inspector; }); +/* concated harmony reexport BlockList */__webpack_require__.d(__webpack_exports__, "BlockList", function() { return block_list; }); +/* concated harmony reexport BlockMover */__webpack_require__.d(__webpack_exports__, "BlockMover", function() { return block_mover; }); +/* concated harmony reexport BlockSelectionClearer */__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return block_selection_clearer; }); +/* concated harmony reexport BlockSettingsMenu */__webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return block_settings_menu; }); +/* concated harmony reexport _BlockSettingsMenuFirstItem */__webpack_require__.d(__webpack_exports__, "_BlockSettingsMenuFirstItem", function() { return block_settings_menu_first_item; }); +/* concated harmony reexport _BlockSettingsMenuPluginsExtension */__webpack_require__.d(__webpack_exports__, "_BlockSettingsMenuPluginsExtension", function() { return block_settings_menu_plugins_extension; }); +/* concated harmony reexport BlockTitle */__webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return block_title; }); +/* concated harmony reexport BlockToolbar */__webpack_require__.d(__webpack_exports__, "BlockToolbar", function() { return block_toolbar; }); +/* concated harmony reexport CopyHandler */__webpack_require__.d(__webpack_exports__, "CopyHandler", function() { return copy_handler; }); +/* concated harmony reexport DefaultBlockAppender */__webpack_require__.d(__webpack_exports__, "DefaultBlockAppender", function() { return default_block_appender; }); +/* concated harmony reexport Inserter */__webpack_require__.d(__webpack_exports__, "Inserter", function() { return inserter; }); +/* concated harmony reexport MultiBlocksSwitcher */__webpack_require__.d(__webpack_exports__, "MultiBlocksSwitcher", function() { return multi_blocks_switcher; }); +/* concated harmony reexport MultiSelectScrollIntoView */__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return multi_select_scroll_into_view; }); +/* concated harmony reexport NavigableToolbar */__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return navigable_toolbar; }); +/* concated harmony reexport ObserveTyping */__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return observe_typing; }); +/* concated harmony reexport PreserveScrollInReorder */__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return preserve_scroll_in_reorder; }); +/* concated harmony reexport SkipToSelectedBlock */__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return skip_to_selected_block; }); +/* concated harmony reexport Warning */__webpack_require__.d(__webpack_exports__, "Warning", function() { return warning; }); +/* concated harmony reexport WritingFlow */__webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return writing_flow; }); /* concated harmony reexport BlockEditorProvider */__webpack_require__.d(__webpack_exports__, "BlockEditorProvider", function() { return provider; }); +/* concated harmony reexport getColorClassName */__webpack_require__.d(__webpack_exports__, "getColorClassName", function() { return getColorClassName; }); +/* concated harmony reexport getColorObjectByAttributeValues */__webpack_require__.d(__webpack_exports__, "getColorObjectByAttributeValues", function() { return utils_getColorObjectByAttributeValues; }); +/* concated harmony reexport getColorObjectByColorValue */__webpack_require__.d(__webpack_exports__, "getColorObjectByColorValue", function() { return utils_getColorObjectByColorValue; }); +/* concated harmony reexport createCustomColorsHOC */__webpack_require__.d(__webpack_exports__, "createCustomColorsHOC", function() { return createCustomColorsHOC; }); +/* concated harmony reexport withColors */__webpack_require__.d(__webpack_exports__, "withColors", function() { return withColors; }); +/* concated harmony reexport getFontSize */__webpack_require__.d(__webpack_exports__, "getFontSize", function() { return utils_getFontSize; }); +/* concated harmony reexport getFontSizeClass */__webpack_require__.d(__webpack_exports__, "getFontSizeClass", function() { return getFontSizeClass; }); +/* concated harmony reexport FontSizePicker */__webpack_require__.d(__webpack_exports__, "FontSizePicker", function() { return font_size_picker; }); +/* concated harmony reexport withFontSizes */__webpack_require__.d(__webpack_exports__, "withFontSizes", function() { return with_font_sizes; }); /* concated harmony reexport SETTINGS_DEFAULTS */__webpack_require__.d(__webpack_exports__, "SETTINGS_DEFAULTS", function() { return SETTINGS_DEFAULTS; }); /** * WordPress dependencies */ + + + /** * Internal dependencies */ @@ -4333,20 +19598,10 @@ function (_Component) { -/***/ }), - -/***/ 33: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} /***/ }), -/***/ 34: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4357,7 +19612,7 @@ function _arrayWithHoles(arr) { /***/ }), -/***/ 35: +/***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4375,13 +19630,1353 @@ function _nonIterableRest() { /***/ }), -/***/ 44: +/***/ 40: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["viewport"]; }()); + +/***/ }), + +/***/ 41: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = function memize( fn, options ) { + var size = 0, + maxSize, head, tail; + + if ( options && options.maxSize ) { + maxSize = options.maxSize; + } + + function memoized( /* ...args */ ) { + var node = head, + len = arguments.length, + args, i; + + searchCache: while ( node ) { + // Perform a shallow equality test to confirm that whether the node + // under test is a candidate for the arguments passed. Two arrays + // are shallowly equal if their length matches and each entry is + // strictly equal between the two sets. Avoid abstracting to a + // function which could incur an arguments leaking deoptimization. + + // Check whether node arguments match arguments length + if ( node.args.length !== arguments.length ) { + node = node.next; + continue; + } + + // Check whether node arguments match arguments values + for ( i = 0; i < len; i++ ) { + if ( node.args[ i ] !== arguments[ i ] ) { + node = node.next; + continue searchCache; + } + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== head ) { + // As tail, shift to previous. Must only shift if not also + // head, since if both head and tail, there is no previous. + if ( node === tail ) { + tail = node.prev; + } + + // Adjust siblings to point to each other. If node was tail, + // this also handles new tail's empty `next` assignment. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = head; + node.prev = null; + head.prev = node; + head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + // Create a copy of arguments (avoid leaking deoptimization) + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + node = { + args: args, + + // Generate the result from original function + val: fn.apply( null, args ) + }; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( head ) { + head.prev = node; + node.next = head; + } else { + // If no head, follows that there's no tail (at initial or reset) + tail = node; + } + + // Trim tail if we're reached max size and are pending cache insertion + if ( size === maxSize ) { + tail = tail.prev; + tail.next = null; + } else { + size++; + } + + head = node; + + return node.val; + } + + memoized.clear = function() { + head = null; + tail = null; + size = 0; + }; + + if ( false ) {} + + return memoized; +}; + + +/***/ }), + +/***/ 42: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["isShallowEqual"]; }()); + +/***/ }), + +/***/ 45: +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 +// https://github.com/bgrins/TinyColor +// Brian Grinstead, MIT License + +(function(Math) { + +var trimLeft = /^\s+/, + trimRight = /\s+$/, + tinyCounter = 0, + mathRound = Math.round, + mathMin = Math.min, + mathMax = Math.max, + mathRandom = Math.random; + +function tinycolor (color, opts) { + + color = (color) ? color : ''; + opts = opts || { }; + + // If input is already a tinycolor, return itself + if (color instanceof tinycolor) { + return color; + } + // If we are called as a function, call using new instead + if (!(this instanceof tinycolor)) { + return new tinycolor(color, opts); + } + + var rgb = inputToRGB(color); + this._originalInput = color, + this._r = rgb.r, + this._g = rgb.g, + this._b = rgb.b, + this._a = rgb.a, + this._roundA = mathRound(100*this._a) / 100, + this._format = opts.format || rgb.format; + this._gradientType = opts.gradientType; + + // Don't let the range of [0,255] come back in [0,1]. + // Potentially lose a little bit of precision here, but will fix issues where + // .5 gets interpreted as half of the total, instead of half of 1 + // If it was supposed to be 128, this was already taken care of by `inputToRgb` + if (this._r < 1) { this._r = mathRound(this._r); } + if (this._g < 1) { this._g = mathRound(this._g); } + if (this._b < 1) { this._b = mathRound(this._b); } + + this._ok = rgb.ok; + this._tc_id = tinyCounter++; +} + +tinycolor.prototype = { + isDark: function() { + return this.getBrightness() < 128; + }, + isLight: function() { + return !this.isDark(); + }, + isValid: function() { + return this._ok; + }, + getOriginalInput: function() { + return this._originalInput; + }, + getFormat: function() { + return this._format; + }, + getAlpha: function() { + return this._a; + }, + getBrightness: function() { + //http://www.w3.org/TR/AERT#color-contrast + var rgb = this.toRgb(); + return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000; + }, + getLuminance: function() { + //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef + var rgb = this.toRgb(); + var RsRGB, GsRGB, BsRGB, R, G, B; + RsRGB = rgb.r/255; + GsRGB = rgb.g/255; + BsRGB = rgb.b/255; + + if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);} + if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);} + if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);} + return (0.2126 * R) + (0.7152 * G) + (0.0722 * B); + }, + setAlpha: function(value) { + this._a = boundAlpha(value); + this._roundA = mathRound(100*this._a) / 100; + return this; + }, + toHsv: function() { + var hsv = rgbToHsv(this._r, this._g, this._b); + return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a }; + }, + toHsvString: function() { + var hsv = rgbToHsv(this._r, this._g, this._b); + var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100); + return (this._a == 1) ? + "hsv(" + h + ", " + s + "%, " + v + "%)" : + "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")"; + }, + toHsl: function() { + var hsl = rgbToHsl(this._r, this._g, this._b); + return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a }; + }, + toHslString: function() { + var hsl = rgbToHsl(this._r, this._g, this._b); + var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100); + return (this._a == 1) ? + "hsl(" + h + ", " + s + "%, " + l + "%)" : + "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")"; + }, + toHex: function(allow3Char) { + return rgbToHex(this._r, this._g, this._b, allow3Char); + }, + toHexString: function(allow3Char) { + return '#' + this.toHex(allow3Char); + }, + toHex8: function(allow4Char) { + return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char); + }, + toHex8String: function(allow4Char) { + return '#' + this.toHex8(allow4Char); + }, + toRgb: function() { + return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a }; + }, + toRgbString: function() { + return (this._a == 1) ? + "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : + "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")"; + }, + toPercentageRgb: function() { + return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a }; + }, + toPercentageRgbString: function() { + return (this._a == 1) ? + "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" : + "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")"; + }, + toName: function() { + if (this._a === 0) { + return "transparent"; + } + + if (this._a < 1) { + return false; + } + + return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false; + }, + toFilter: function(secondColor) { + var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a); + var secondHex8String = hex8String; + var gradientType = this._gradientType ? "GradientType = 1, " : ""; + + if (secondColor) { + var s = tinycolor(secondColor); + secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a); + } + + return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"; + }, + toString: function(format) { + var formatSet = !!format; + format = format || this._format; + + var formattedString = false; + var hasAlpha = this._a < 1 && this._a >= 0; + var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name"); + + if (needsAlphaFormat) { + // Special case for "transparent", all other non-alpha formats + // will return rgba when there is transparency. + if (format === "name" && this._a === 0) { + return this.toName(); + } + return this.toRgbString(); + } + if (format === "rgb") { + formattedString = this.toRgbString(); + } + if (format === "prgb") { + formattedString = this.toPercentageRgbString(); + } + if (format === "hex" || format === "hex6") { + formattedString = this.toHexString(); + } + if (format === "hex3") { + formattedString = this.toHexString(true); + } + if (format === "hex4") { + formattedString = this.toHex8String(true); + } + if (format === "hex8") { + formattedString = this.toHex8String(); + } + if (format === "name") { + formattedString = this.toName(); + } + if (format === "hsl") { + formattedString = this.toHslString(); + } + if (format === "hsv") { + formattedString = this.toHsvString(); + } + + return formattedString || this.toHexString(); + }, + clone: function() { + return tinycolor(this.toString()); + }, + + _applyModification: function(fn, args) { + var color = fn.apply(null, [this].concat([].slice.call(args))); + this._r = color._r; + this._g = color._g; + this._b = color._b; + this.setAlpha(color._a); + return this; + }, + lighten: function() { + return this._applyModification(lighten, arguments); + }, + brighten: function() { + return this._applyModification(brighten, arguments); + }, + darken: function() { + return this._applyModification(darken, arguments); + }, + desaturate: function() { + return this._applyModification(desaturate, arguments); + }, + saturate: function() { + return this._applyModification(saturate, arguments); + }, + greyscale: function() { + return this._applyModification(greyscale, arguments); + }, + spin: function() { + return this._applyModification(spin, arguments); + }, + + _applyCombination: function(fn, args) { + return fn.apply(null, [this].concat([].slice.call(args))); + }, + analogous: function() { + return this._applyCombination(analogous, arguments); + }, + complement: function() { + return this._applyCombination(complement, arguments); + }, + monochromatic: function() { + return this._applyCombination(monochromatic, arguments); + }, + splitcomplement: function() { + return this._applyCombination(splitcomplement, arguments); + }, + triad: function() { + return this._applyCombination(triad, arguments); + }, + tetrad: function() { + return this._applyCombination(tetrad, arguments); + } +}; + +// If input is an object, force 1 into "1.0" to handle ratios properly +// String input requires "1.0" as input, so 1 will be treated as 1 +tinycolor.fromRatio = function(color, opts) { + if (typeof color == "object") { + var newColor = {}; + for (var i in color) { + if (color.hasOwnProperty(i)) { + if (i === "a") { + newColor[i] = color[i]; + } + else { + newColor[i] = convertToPercentage(color[i]); + } + } + } + color = newColor; + } + + return tinycolor(color, opts); +}; + +// Given a string or object, convert that input to RGB +// Possible string inputs: +// +// "red" +// "#f00" or "f00" +// "#ff0000" or "ff0000" +// "#ff000000" or "ff000000" +// "rgb 255 0 0" or "rgb (255, 0, 0)" +// "rgb 1.0 0 0" or "rgb (1, 0, 0)" +// "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1" +// "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1" +// "hsl(0, 100%, 50%)" or "hsl 0 100% 50%" +// "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1" +// "hsv(0, 100%, 100%)" or "hsv 0 100% 100%" +// +function inputToRGB(color) { + + var rgb = { r: 0, g: 0, b: 0 }; + var a = 1; + var s = null; + var v = null; + var l = null; + var ok = false; + var format = false; + + if (typeof color == "string") { + color = stringInputToObject(color); + } + + if (typeof color == "object") { + if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) { + rgb = rgbToRgb(color.r, color.g, color.b); + ok = true; + format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; + } + else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) { + s = convertToPercentage(color.s); + v = convertToPercentage(color.v); + rgb = hsvToRgb(color.h, s, v); + ok = true; + format = "hsv"; + } + else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) { + s = convertToPercentage(color.s); + l = convertToPercentage(color.l); + rgb = hslToRgb(color.h, s, l); + ok = true; + format = "hsl"; + } + + if (color.hasOwnProperty("a")) { + a = color.a; + } + } + + a = boundAlpha(a); + + return { + ok: ok, + format: color.format || format, + r: mathMin(255, mathMax(rgb.r, 0)), + g: mathMin(255, mathMax(rgb.g, 0)), + b: mathMin(255, mathMax(rgb.b, 0)), + a: a + }; +} + + +// Conversion Functions +// -------------------- + +// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from: +// + +// `rgbToRgb` +// Handle bounds / percentage checking to conform to CSS color spec +// +// *Assumes:* r, g, b in [0, 255] or [0, 1] +// *Returns:* { r, g, b } in [0, 255] +function rgbToRgb(r, g, b){ + return { + r: bound01(r, 255) * 255, + g: bound01(g, 255) * 255, + b: bound01(b, 255) * 255 + }; +} + +// `rgbToHsl` +// Converts an RGB color value to HSL. +// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1] +// *Returns:* { h, s, l } in [0,1] +function rgbToHsl(r, g, b) { + + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + + var max = mathMax(r, g, b), min = mathMin(r, g, b); + var h, s, l = (max + min) / 2; + + if(max == min) { + h = s = 0; // achromatic + } + else { + var d = max - min; + s = l > 0.5 ? d / (2 - max - min) : d / (max + min); + switch(max) { + case r: h = (g - b) / d + (g < b ? 6 : 0); break; + case g: h = (b - r) / d + 2; break; + case b: h = (r - g) / d + 4; break; + } + + h /= 6; + } + + return { h: h, s: s, l: l }; +} + +// `hslToRgb` +// Converts an HSL color value to RGB. +// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] +// *Returns:* { r, g, b } in the set [0, 255] +function hslToRgb(h, s, l) { + var r, g, b; + + h = bound01(h, 360); + s = bound01(s, 100); + l = bound01(l, 100); + + function hue2rgb(p, q, t) { + if(t < 0) t += 1; + if(t > 1) t -= 1; + if(t < 1/6) return p + (q - p) * 6 * t; + if(t < 1/2) return q; + if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; + return p; + } + + if(s === 0) { + r = g = b = l; // achromatic + } + else { + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + r = hue2rgb(p, q, h + 1/3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1/3); + } + + return { r: r * 255, g: g * 255, b: b * 255 }; +} + +// `rgbToHsv` +// Converts an RGB color value to HSV +// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] +// *Returns:* { h, s, v } in [0,1] +function rgbToHsv(r, g, b) { + + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + + var max = mathMax(r, g, b), min = mathMin(r, g, b); + var h, s, v = max; + + var d = max - min; + s = max === 0 ? 0 : d / max; + + if(max == min) { + h = 0; // achromatic + } + else { + switch(max) { + case r: h = (g - b) / d + (g < b ? 6 : 0); break; + case g: h = (b - r) / d + 2; break; + case b: h = (r - g) / d + 4; break; + } + h /= 6; + } + return { h: h, s: s, v: v }; +} + +// `hsvToRgb` +// Converts an HSV color value to RGB. +// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] +// *Returns:* { r, g, b } in the set [0, 255] + function hsvToRgb(h, s, v) { + + h = bound01(h, 360) * 6; + s = bound01(s, 100); + v = bound01(v, 100); + + var i = Math.floor(h), + f = h - i, + p = v * (1 - s), + q = v * (1 - f * s), + t = v * (1 - (1 - f) * s), + mod = i % 6, + r = [v, q, p, p, t, v][mod], + g = [t, v, v, q, p, p][mod], + b = [p, p, t, v, v, q][mod]; + + return { r: r * 255, g: g * 255, b: b * 255 }; +} + +// `rgbToHex` +// Converts an RGB color to hex +// Assumes r, g, and b are contained in the set [0, 255] +// Returns a 3 or 6 character hex +function rgbToHex(r, g, b, allow3Char) { + + var hex = [ + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)) + ]; + + // Return a 3 character hex if possible + if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) { + return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0); + } + + return hex.join(""); +} + +// `rgbaToHex` +// Converts an RGBA color plus alpha transparency to hex +// Assumes r, g, b are contained in the set [0, 255] and +// a in [0, 1]. Returns a 4 or 8 character rgba hex +function rgbaToHex(r, g, b, a, allow4Char) { + + var hex = [ + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)), + pad2(convertDecimalToHex(a)) + ]; + + // Return a 4 character hex if possible + if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) { + return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); + } + + return hex.join(""); +} + +// `rgbaToArgbHex` +// Converts an RGBA color to an ARGB Hex8 string +// Rarely used, but required for "toFilter()" +function rgbaToArgbHex(r, g, b, a) { + + var hex = [ + pad2(convertDecimalToHex(a)), + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)) + ]; + + return hex.join(""); +} + +// `equals` +// Can be called with any tinycolor input +tinycolor.equals = function (color1, color2) { + if (!color1 || !color2) { return false; } + return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString(); +}; + +tinycolor.random = function() { + return tinycolor.fromRatio({ + r: mathRandom(), + g: mathRandom(), + b: mathRandom() + }); +}; + + +// Modification Functions +// ---------------------- +// Thanks to less.js for some of the basics here +// + +function desaturate(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.s -= amount / 100; + hsl.s = clamp01(hsl.s); + return tinycolor(hsl); +} + +function saturate(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.s += amount / 100; + hsl.s = clamp01(hsl.s); + return tinycolor(hsl); +} + +function greyscale(color) { + return tinycolor(color).desaturate(100); +} + +function lighten (color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.l += amount / 100; + hsl.l = clamp01(hsl.l); + return tinycolor(hsl); +} + +function brighten(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var rgb = tinycolor(color).toRgb(); + rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100)))); + rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100)))); + rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100)))); + return tinycolor(rgb); +} + +function darken (color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.l -= amount / 100; + hsl.l = clamp01(hsl.l); + return tinycolor(hsl); +} + +// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue. +// Values outside of this range will be wrapped into this range. +function spin(color, amount) { + var hsl = tinycolor(color).toHsl(); + var hue = (hsl.h + amount) % 360; + hsl.h = hue < 0 ? 360 + hue : hue; + return tinycolor(hsl); +} + +// Combination Functions +// --------------------- +// Thanks to jQuery xColor for some of the ideas behind these +// + +function complement(color) { + var hsl = tinycolor(color).toHsl(); + hsl.h = (hsl.h + 180) % 360; + return tinycolor(hsl); +} + +function triad(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) + ]; +} + +function tetrad(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) + ]; +} + +function splitcomplement(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}), + tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l}) + ]; +} + +function analogous(color, results, slices) { + results = results || 6; + slices = slices || 30; + + var hsl = tinycolor(color).toHsl(); + var part = 360 / slices; + var ret = [tinycolor(color)]; + + for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) { + hsl.h = (hsl.h + part) % 360; + ret.push(tinycolor(hsl)); + } + return ret; +} + +function monochromatic(color, results) { + results = results || 6; + var hsv = tinycolor(color).toHsv(); + var h = hsv.h, s = hsv.s, v = hsv.v; + var ret = []; + var modification = 1 / results; + + while (results--) { + ret.push(tinycolor({ h: h, s: s, v: v})); + v = (v + modification) % 1; + } + + return ret; +} + +// Utility Functions +// --------------------- + +tinycolor.mix = function(color1, color2, amount) { + amount = (amount === 0) ? 0 : (amount || 50); + + var rgb1 = tinycolor(color1).toRgb(); + var rgb2 = tinycolor(color2).toRgb(); + + var p = amount / 100; + + var rgba = { + r: ((rgb2.r - rgb1.r) * p) + rgb1.r, + g: ((rgb2.g - rgb1.g) * p) + rgb1.g, + b: ((rgb2.b - rgb1.b) * p) + rgb1.b, + a: ((rgb2.a - rgb1.a) * p) + rgb1.a + }; + + return tinycolor(rgba); +}; + + +// Readability Functions +// --------------------- +// false +// tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false +tinycolor.isReadable = function(color1, color2, wcag2) { + var readability = tinycolor.readability(color1, color2); + var wcag2Parms, out; + + out = false; + + wcag2Parms = validateWCAG2Parms(wcag2); + switch (wcag2Parms.level + wcag2Parms.size) { + case "AAsmall": + case "AAAlarge": + out = readability >= 4.5; + break; + case "AAlarge": + out = readability >= 3; + break; + case "AAAsmall": + out = readability >= 7; + break; + } + return out; + +}; + +// `mostReadable` +// Given a base color and a list of possible foreground or background +// colors for that base, returns the most readable color. +// Optionally returns Black or White if the most readable color is unreadable. +// *Example* +// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255" +// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff" +// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3" +// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff" +tinycolor.mostReadable = function(baseColor, colorList, args) { + var bestColor = null; + var bestScore = 0; + var readability; + var includeFallbackColors, level, size ; + args = args || {}; + includeFallbackColors = args.includeFallbackColors ; + level = args.level; + size = args.size; + + for (var i= 0; i < colorList.length ; i++) { + readability = tinycolor.readability(baseColor, colorList[i]); + if (readability > bestScore) { + bestScore = readability; + bestColor = tinycolor(colorList[i]); + } + } + + if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) { + return bestColor; + } + else { + args.includeFallbackColors=false; + return tinycolor.mostReadable(baseColor,["#fff", "#000"],args); + } +}; + + +// Big List of Colors +// ------------------ +// +var names = tinycolor.names = { + aliceblue: "f0f8ff", + antiquewhite: "faebd7", + aqua: "0ff", + aquamarine: "7fffd4", + azure: "f0ffff", + beige: "f5f5dc", + bisque: "ffe4c4", + black: "000", + blanchedalmond: "ffebcd", + blue: "00f", + blueviolet: "8a2be2", + brown: "a52a2a", + burlywood: "deb887", + burntsienna: "ea7e5d", + cadetblue: "5f9ea0", + chartreuse: "7fff00", + chocolate: "d2691e", + coral: "ff7f50", + cornflowerblue: "6495ed", + cornsilk: "fff8dc", + crimson: "dc143c", + cyan: "0ff", + darkblue: "00008b", + darkcyan: "008b8b", + darkgoldenrod: "b8860b", + darkgray: "a9a9a9", + darkgreen: "006400", + darkgrey: "a9a9a9", + darkkhaki: "bdb76b", + darkmagenta: "8b008b", + darkolivegreen: "556b2f", + darkorange: "ff8c00", + darkorchid: "9932cc", + darkred: "8b0000", + darksalmon: "e9967a", + darkseagreen: "8fbc8f", + darkslateblue: "483d8b", + darkslategray: "2f4f4f", + darkslategrey: "2f4f4f", + darkturquoise: "00ced1", + darkviolet: "9400d3", + deeppink: "ff1493", + deepskyblue: "00bfff", + dimgray: "696969", + dimgrey: "696969", + dodgerblue: "1e90ff", + firebrick: "b22222", + floralwhite: "fffaf0", + forestgreen: "228b22", + fuchsia: "f0f", + gainsboro: "dcdcdc", + ghostwhite: "f8f8ff", + gold: "ffd700", + goldenrod: "daa520", + gray: "808080", + green: "008000", + greenyellow: "adff2f", + grey: "808080", + honeydew: "f0fff0", + hotpink: "ff69b4", + indianred: "cd5c5c", + indigo: "4b0082", + ivory: "fffff0", + khaki: "f0e68c", + lavender: "e6e6fa", + lavenderblush: "fff0f5", + lawngreen: "7cfc00", + lemonchiffon: "fffacd", + lightblue: "add8e6", + lightcoral: "f08080", + lightcyan: "e0ffff", + lightgoldenrodyellow: "fafad2", + lightgray: "d3d3d3", + lightgreen: "90ee90", + lightgrey: "d3d3d3", + lightpink: "ffb6c1", + lightsalmon: "ffa07a", + lightseagreen: "20b2aa", + lightskyblue: "87cefa", + lightslategray: "789", + lightslategrey: "789", + lightsteelblue: "b0c4de", + lightyellow: "ffffe0", + lime: "0f0", + limegreen: "32cd32", + linen: "faf0e6", + magenta: "f0f", + maroon: "800000", + mediumaquamarine: "66cdaa", + mediumblue: "0000cd", + mediumorchid: "ba55d3", + mediumpurple: "9370db", + mediumseagreen: "3cb371", + mediumslateblue: "7b68ee", + mediumspringgreen: "00fa9a", + mediumturquoise: "48d1cc", + mediumvioletred: "c71585", + midnightblue: "191970", + mintcream: "f5fffa", + mistyrose: "ffe4e1", + moccasin: "ffe4b5", + navajowhite: "ffdead", + navy: "000080", + oldlace: "fdf5e6", + olive: "808000", + olivedrab: "6b8e23", + orange: "ffa500", + orangered: "ff4500", + orchid: "da70d6", + palegoldenrod: "eee8aa", + palegreen: "98fb98", + paleturquoise: "afeeee", + palevioletred: "db7093", + papayawhip: "ffefd5", + peachpuff: "ffdab9", + peru: "cd853f", + pink: "ffc0cb", + plum: "dda0dd", + powderblue: "b0e0e6", + purple: "800080", + rebeccapurple: "663399", + red: "f00", + rosybrown: "bc8f8f", + royalblue: "4169e1", + saddlebrown: "8b4513", + salmon: "fa8072", + sandybrown: "f4a460", + seagreen: "2e8b57", + seashell: "fff5ee", + sienna: "a0522d", + silver: "c0c0c0", + skyblue: "87ceeb", + slateblue: "6a5acd", + slategray: "708090", + slategrey: "708090", + snow: "fffafa", + springgreen: "00ff7f", + steelblue: "4682b4", + tan: "d2b48c", + teal: "008080", + thistle: "d8bfd8", + tomato: "ff6347", + turquoise: "40e0d0", + violet: "ee82ee", + wheat: "f5deb3", + white: "fff", + whitesmoke: "f5f5f5", + yellow: "ff0", + yellowgreen: "9acd32" +}; + +// Make it easy to access colors via `hexNames[hex]` +var hexNames = tinycolor.hexNames = flip(names); + + +// Utilities +// --------- + +// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }` +function flip(o) { + var flipped = { }; + for (var i in o) { + if (o.hasOwnProperty(i)) { + flipped[o[i]] = i; + } + } + return flipped; +} + +// Return a valid alpha value [0,1] with all invalid values being set to 1 +function boundAlpha(a) { + a = parseFloat(a); + + if (isNaN(a) || a < 0 || a > 1) { + a = 1; + } + + return a; +} + +// Take input from [0, n] and return it as [0, 1] +function bound01(n, max) { + if (isOnePointZero(n)) { n = "100%"; } + + var processPercent = isPercentage(n); + n = mathMin(max, mathMax(0, parseFloat(n))); + + // Automatically convert percentage into number + if (processPercent) { + n = parseInt(n * max, 10) / 100; + } + + // Handle floating point rounding errors + if ((Math.abs(n - max) < 0.000001)) { + return 1; + } + + // Convert into [0, 1] range if it isn't already + return (n % max) / parseFloat(max); +} + +// Force a number between 0 and 1 +function clamp01(val) { + return mathMin(1, mathMax(0, val)); +} + +// Parse a base-16 hex value into a base-10 integer +function parseIntFromHex(val) { + return parseInt(val, 16); +} + +// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1 +// +function isOnePointZero(n) { + return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1; +} + +// Check to see if string passed in is a percentage +function isPercentage(n) { + return typeof n === "string" && n.indexOf('%') != -1; +} + +// Force a hex value to have 2 characters +function pad2(c) { + return c.length == 1 ? '0' + c : '' + c; +} + +// Replace a decimal with it's percentage value +function convertToPercentage(n) { + if (n <= 1) { + n = (n * 100) + "%"; + } + + return n; +} + +// Converts a decimal to a hex value +function convertDecimalToHex(d) { + return Math.round(parseFloat(d) * 255).toString(16); +} +// Converts a hex value to a decimal +function convertHexToDecimal(h) { + return (parseIntFromHex(h) / 255); +} + +var matchers = (function() { + + // + var CSS_INTEGER = "[-\\+]?\\d+%?"; + + // + var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; + + // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome. + var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; + + // Actual matching. + // Parentheses and commas are optional, but not required. + // Whitespace can take the place of commas or opening paren + var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; + var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; + + return { + CSS_UNIT: new RegExp(CSS_UNIT), + rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), + rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), + hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), + hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), + hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), + hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }; +})(); + +// `isValidCSSUnit` +// Take in a single string / number and check to see if it looks like a CSS unit +// (see `matchers` above for definition). +function isValidCSSUnit(color) { + return !!matchers.CSS_UNIT.exec(color); +} + +// `stringInputToObject` +// Permissive string parsing. Take in a number of formats, and output an object +// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` +function stringInputToObject(color) { + + color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase(); + var named = false; + if (names[color]) { + color = names[color]; + named = true; + } + else if (color == 'transparent') { + return { r: 0, g: 0, b: 0, a: 0, format: "name" }; + } + + // Try to match string input using regular expressions. + // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360] + // Just return an object and let the conversion functions handle that. + // This way the result will be the same whether the tinycolor is initialized with string or object. + var match; + if ((match = matchers.rgb.exec(color))) { + return { r: match[1], g: match[2], b: match[3] }; + } + if ((match = matchers.rgba.exec(color))) { + return { r: match[1], g: match[2], b: match[3], a: match[4] }; + } + if ((match = matchers.hsl.exec(color))) { + return { h: match[1], s: match[2], l: match[3] }; + } + if ((match = matchers.hsla.exec(color))) { + return { h: match[1], s: match[2], l: match[3], a: match[4] }; + } + if ((match = matchers.hsv.exec(color))) { + return { h: match[1], s: match[2], v: match[3] }; + } + if ((match = matchers.hsva.exec(color))) { + return { h: match[1], s: match[2], v: match[3], a: match[4] }; + } + if ((match = matchers.hex8.exec(color))) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + a: convertHexToDecimal(match[4]), + format: named ? "name" : "hex8" + }; + } + if ((match = matchers.hex6.exec(color))) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + format: named ? "name" : "hex" + }; + } + if ((match = matchers.hex4.exec(color))) { + return { + r: parseIntFromHex(match[1] + '' + match[1]), + g: parseIntFromHex(match[2] + '' + match[2]), + b: parseIntFromHex(match[3] + '' + match[3]), + a: convertHexToDecimal(match[4] + '' + match[4]), + format: named ? "name" : "hex8" + }; + } + if ((match = matchers.hex3.exec(color))) { + return { + r: parseIntFromHex(match[1] + '' + match[1]), + g: parseIntFromHex(match[2] + '' + match[2]), + b: parseIntFromHex(match[3] + '' + match[3]), + format: named ? "name" : "hex" + }; + } + + return false; +} + +function validateWCAG2Parms(parms) { + // return valid WCAG2 parms for isReadable. + // If input parms are invalid, return {"level":"AA", "size":"small"} + var level, size; + parms = parms || {"level":"AA", "size":"small"}; + level = (parms.level || "AA").toUpperCase(); + size = (parms.size || "small").toLowerCase(); + if (level !== "AA" && level !== "AAA") { + level = "AA"; + } + if (size !== "small" && size !== "large") { + size = "small"; + } + return {"level":level, "size":size}; +} + +// Node: Export function +if ( true && module.exports) { + module.exports = tinycolor; +} +// AMD/requirejs: Define the module +else if (true) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); +} +// Browser: Expose to window +else {} + +})(Math); + + +/***/ }), + +/***/ 48: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); /***/ }), +/***/ 49: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); + +/***/ }), + /***/ 5: /***/ (function(module, exports) { @@ -4389,7 +20984,843 @@ function _nonIterableRest() { /***/ }), -/***/ 64: +/***/ 54: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This method of obtaining a reference to the global object needs to be +// kept identical to the way it is obtained in runtime.js +var g = (function() { + return this || (typeof self === "object" && self); +})() || Function("return this")(); + +// Use `getOwnPropertyNames` because not all browsers support calling +// `hasOwnProperty` on the global `self` object in a worker. See #183. +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; + +// Save the old regeneratorRuntime in case it needs to be restored later. +var oldRuntime = hadRuntime && g.regeneratorRuntime; + +// Force reevalutation of runtime.js. +g.regeneratorRuntime = undefined; + +module.exports = __webpack_require__(55); + +if (hadRuntime) { + // Restore the original runtime. + g.regeneratorRuntime = oldRuntime; +} else { + // Remove the global property added by runtime.js. + try { + delete g.regeneratorRuntime; + } catch(e) { + g.regeneratorRuntime = undefined; + } +} + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +!(function(global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + runtime.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); + + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + Gp[toStringTagSymbol] = "Generator"; + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + + Gp.toString = function() { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { + return this || (typeof self === "object" && self); + })() || Function("return this")() +); + + +/***/ }), + +/***/ 57: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["htmlEntities"]; }()); + +/***/ }), + +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["compose"]; }()); + +/***/ }), + +/***/ 61: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +exports.__esModule = true; +var TextareaAutosize_1 = __webpack_require__(111); +exports["default"] = TextareaAutosize_1["default"]; + + +/***/ }), + +/***/ 67: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = __webpack_require__(115); + +/***/ }), + +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + +/***/ }), + +/***/ 70: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4445,42 +21876,124 @@ module.exports = refx; /***/ }), -/***/ 7: +/***/ 72: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["compose"]; }()); +(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), -/***/ 8: +/***/ 89: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = __webpack_require__(90); + +function emptyFunction() {} + +module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = 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' + ); + err.name = 'Invariant Violation'; + throw err; + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; + + +/***/ }), + +/***/ 9: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); } +} - return target; +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; } /***/ }), -/***/ 87: +/***/ 90: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), + +/***/ 97: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4511,26 +22024,10 @@ exports.default = multi; /***/ }), -/***/ 9: -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ 98: +/***/ (function(module, exports) { -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} +(function() { module.exports = this["wp"]["wordcount"]; }()); /***/ }) diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index c0d94d73c7..2d3ff78be4 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -1 +1,55 @@ -this.wp=this.wp||{},this.wp.blockEditor=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=312)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},11:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(29),i=n(3);function c(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(i.a)(t):e}},12:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},13:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",function(){return i})},14:function(t,e){!function(){t.exports=this.wp.blocks}()},15:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},18:function(t,e,n){"use strict";var r=n(33);function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.d(e,"a",function(){return r})},25:function(t,e,n){"use strict";var r=n(34);var i=n(35);function c(t,e){return Object(r.a)(t)||function(t,e){var n=[],r=!0,i=!1,c=void 0;try{for(var o,u=t[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,c=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw c}}return n}(t,e)||Object(i.a)()}n.d(e,"a",function(){return c})},28:function(t,e,n){"use strict";var r,i;function c(t){return[t]}function o(){var t={clear:function(){t.head=null}};return t}function u(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r3&&void 0!==arguments[3]?arguments[3]:1,i=Object(a.a)(t);return i.splice(e,r),p(i,t.slice(e,e+r),n)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},e,[]);return t.forEach(function(t){var r=t.clientId,i=t.innerBlocks;n[e].push(r),Object.assign(n,v(i,r))}),n}function j(t,e){for(var n={},r=Object(a.a)(t);r.length;){var i=r.shift(),c=i.innerBlocks,o=Object(l.a)(i,["innerBlocks"]);r.push.apply(r,Object(a.a)(c)),n[o.clientId]=e(o)}return n}function y(t){return j(t,function(t){return Object(f.omit)(t,"attributes")})}function S(t){return j(t,function(t){return t.attributes})}function k(t,e){return"UPDATE_BLOCK_ATTRIBUTES"===t.type&&void 0!==e&&"UPDATE_BLOCK_ATTRIBUTES"===e.type&&t.clientId===e.clientId&&(n=t.attributes,r=e.attributes,Object(f.isEqual)(Object(f.keys)(n),Object(f.keys)(r)));var n,r}var h=Object(f.flow)(o.combineReducers,function(t){return function(e,n){if(e&&"REMOVE_BLOCKS"===n.type){for(var r=Object(a.a)(n.clientIds),i=0;i1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.reduce)(e[n],function(n,r){return[].concat(Object(a.a)(n),[r],Object(a.a)(t(e,r)))},[])}(e.order);return Object(u.a)({},e,{byClientId:Object(u.a)({},Object(f.omit)(e.byClientId,r),y(n.blocks)),attributes:Object(u.a)({},Object(f.omit)(e.attributes,r),S(n.blocks)),order:Object(u.a)({},Object(f.omit)(e.order,r),v(n.blocks))})}return t(e,n)}},function(t){return function(e,n){if(e&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,i=n.updatedId;if(r===i)return e;(e=Object(u.a)({},e)).attributes=Object(f.mapValues)(e.attributes,function(t,n){return"core/block"===e.byClientId[n].name&&t.ref===r?Object(u.a)({},t,{ref:i}):t})}return t(e,n)}},function(t){var e,n=new Set(["RECEIVE_BLOCKS"]);return function(r,i){var c=t(r,i),o="MARK_LAST_CHANGE_AS_PERSISTENT"===i.type;return r!==c||o?n.has(i.type)?Object(u.a)({},c,{isPersistentChange:!1}):(c=Object(u.a)({},c,{isPersistentChange:o||!k(i,e)}),e=i,c):Object(u.a)({},c,{isPersistentChange:Object(f.get)(r,["isPersistentChange"],!0)})}})({byClientId:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RESET_BLOCKS":return y(e.blocks);case"RECEIVE_BLOCKS":return Object(u.a)({},t,y(e.blocks));case"UPDATE_BLOCK":if(!t[e.clientId])return t;var n=Object(f.omit)(e.updates,"attributes");return Object(f.isEmpty)(n)?t:Object(u.a)({},t,Object(s.a)({},e.clientId,Object(u.a)({},t[e.clientId],n)));case"INSERT_BLOCKS":return Object(u.a)({},t,y(e.blocks));case"REPLACE_BLOCKS":return e.blocks?Object(u.a)({},Object(f.omit)(t,e.clientIds),y(e.blocks)):t;case"REMOVE_BLOCKS":return Object(f.omit)(t,e.clientIds)}return t},attributes:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RESET_BLOCKS":return S(e.blocks);case"RECEIVE_BLOCKS":return Object(u.a)({},t,S(e.blocks));case"UPDATE_BLOCK":return t[e.clientId]&&e.updates.attributes?Object(u.a)({},t,Object(s.a)({},e.clientId,Object(u.a)({},t[e.clientId],e.updates.attributes))):t;case"UPDATE_BLOCK_ATTRIBUTES":if(!t[e.clientId])return t;var n=Object(f.reduce)(e.attributes,function(n,r,i){var c,o;return r!==n[i]&&((n=(c=t[e.clientId])===(o=n)?Object(u.a)({},c):o)[i]=r),n},t[e.clientId]);return n===t[e.clientId]?t:Object(u.a)({},t,Object(s.a)({},e.clientId,n));case"INSERT_BLOCKS":return Object(u.a)({},t,S(e.blocks));case"REPLACE_BLOCKS":return e.blocks?Object(u.a)({},Object(f.omit)(t,e.clientIds),S(e.blocks)):t;case"REMOVE_BLOCKS":return Object(f.omit)(t,e.clientIds)}return t},order:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RESET_BLOCKS":return v(e.blocks);case"RECEIVE_BLOCKS":return Object(u.a)({},t,Object(f.omit)(v(e.blocks),""));case"INSERT_BLOCKS":var n=e.rootClientId,r=void 0===n?"":n,i=t[r]||[],c=v(e.blocks,r),o=e.index,l=void 0===o?i.length:o;return Object(u.a)({},t,c,Object(s.a)({},r,p(i,c[r],l)));case"MOVE_BLOCK_TO_POSITION":var d,b=e.fromRootClientId,O=void 0===b?"":b,j=e.toRootClientId,y=void 0===j?"":j,S=e.clientId,k=e.index,h=void 0===k?t[y].length:k;if(O===y){var m=t[y].indexOf(S);return Object(u.a)({},t,Object(s.a)({},y,g(t[y],m,h)))}return Object(u.a)({},t,(d={},Object(s.a)(d,O,Object(f.without)(t[O],S)),Object(s.a)(d,y,p(t[y],S,h)),d));case"MOVE_BLOCKS_UP":var E=e.clientIds,I=e.rootClientId,_=void 0===I?"":I,T=Object(f.first)(E),B=t[_];if(!B.length||T===Object(f.first)(B))return t;var C=B.indexOf(T);return Object(u.a)({},t,Object(s.a)({},_,g(B,C,C-1,E.length)));case"MOVE_BLOCKS_DOWN":var L=e.clientIds,P=e.rootClientId,R=void 0===P?"":P,w=Object(f.first)(L),A=Object(f.last)(L),M=t[R];if(!M.length||A===Object(f.last)(M))return t;var x=M.indexOf(w);return Object(u.a)({},t,Object(s.a)({},R,g(M,x,x+1,L.length)));case"REPLACE_BLOCKS":var K=e.clientIds;if(!e.blocks)return t;var N=v(e.blocks);return Object(f.flow)([function(t){return Object(f.omit)(t,K)},function(t){return Object(u.a)({},t,Object(f.omit)(N,""))},function(t){return Object(f.mapValues)(t,function(t){return Object(f.reduce)(t,function(t,e){return e===K[0]?[].concat(Object(a.a)(t),Object(a.a)(N[""])):(-1===K.indexOf(e)&&t.push(e),t)},[])})}])(t);case"REMOVE_BLOCKS":return Object(f.flow)([function(t){return Object(f.omit)(t,e.clientIds)},function(t){return Object(f.mapValues)(t,function(t){return f.without.apply(void 0,[t].concat(Object(a.a)(e.clientIds)))})}])(t)}return t}});var m=Object(o.combineReducers)({blocks:h,isTyping:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return t},isCaretWithinFormattedText:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return t},blockSelection:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{start:null,end:null,isMultiSelecting:!1,isEnabled:!0,initialPosition:null},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CLEAR_SELECTED_BLOCK":return null!==t.start||null!==t.end||t.isMultiSelecting?Object(u.a)({},t,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):t;case"START_MULTI_SELECT":return t.isMultiSelecting?t:Object(u.a)({},t,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return t.isMultiSelecting?Object(u.a)({},t,{isMultiSelecting:!1,initialPosition:null}):t;case"MULTI_SELECT":return Object(u.a)({},t,{start:e.start,end:e.end,initialPosition:null});case"SELECT_BLOCK":return e.clientId===t.start&&e.clientId===t.end?t:Object(u.a)({},t,{start:e.clientId,end:e.clientId,initialPosition:e.initialPosition});case"INSERT_BLOCKS":return e.updateSelection?Object(u.a)({},t,{start:e.blocks[0].clientId,end:e.blocks[0].clientId,initialPosition:null,isMultiSelecting:!1}):t;case"REMOVE_BLOCKS":return e.clientIds&&e.clientIds.length&&-1!==e.clientIds.indexOf(t.start)?Object(u.a)({},t,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):t;case"REPLACE_BLOCKS":if(-1===e.clientIds.indexOf(t.start))return t;var n=Object(f.last)(e.blocks),r=n?n.clientId:null;return r===t.start&&r===t.end?t:Object(u.a)({},t,{start:r,end:r,initialPosition:null,isMultiSelecting:!1});case"TOGGLE_SELECTION":return Object(u.a)({},t,{isEnabled:e.isSelectionEnabled})}return t},blocksMode:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===e.type){var n=e.clientId;return Object(u.a)({},t,Object(s.a)({},n,t[n]&&"html"===t[n]?"visual":"html"))}return t},blockListSettings:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(f.omit)(t,e.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=e.clientId;return e.settings?Object(f.isEqual)(t[n],e.settings)?t:Object(u.a)({},t,Object(s.a)({},n,e.settings)):t.hasOwnProperty(n)?Object(f.omit)(t,n):t}return t},insertionPoint:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SHOW_INSERTION_POINT":return{rootClientId:e.rootClientId,index:e.index};case"HIDE_INSERTION_POINT":return null}return t},template:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_TEMPLATE_VALIDITY":return Object(u.a)({},t,{isValid:e.isValid})}return t},settings:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"UPDATE_SETTINGS":return Object(u.a)({},t,e.settings)}return t},preferences:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return e.blocks.reduce(function(t,n){var r=n.name,i={name:n.name};return Object(c.isReusableBlock)(n)&&(i.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(u.a)({},t,{insertUsage:Object(u.a)({},t.insertUsage,Object(s.a)({},r,{time:e.time,count:t.insertUsage[r]?t.insertUsage[r].count+1:1,insert:i}))})},t)}return t}}),E=n(64),I=n.n(E),_=n(87),T=n.n(_),B=n(25),C=n(44);function L(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:null,clientId:t}}function U(t){var e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,L("core/block-editor","getPreviousBlockClientId",t);case 2:return e=n.sent,n.next=5,D(e,-1);case 5:case"end":return n.stop()}},R,this)}function V(t){var e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,L("core/block-editor","getNextBlockClientId",t);case 2:return e=n.sent,n.next=5,D(e);case 5:case"end":return n.stop()}},w,this)}function G(){return{type:"START_MULTI_SELECT"}}function W(){return{type:"STOP_MULTI_SELECT"}}function z(t,e){return{type:"MULTI_SELECT",start:t,end:e}}function F(){return{type:"CLEAR_SELECTED_BLOCK"}}function H(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function Y(t,e){return{type:"REPLACE_BLOCKS",clientIds:Object(f.castArray)(t),blocks:Object(f.castArray)(e),time:Date.now()}}function X(t,e){return Y(t,e)}function q(t){return function(e,n){return{clientIds:Object(f.castArray)(e),type:t,rootClientId:n}}}var Z=q("MOVE_BLOCKS_DOWN"),J=q("MOVE_BLOCKS_UP");function Q(t,e,n,r){return{type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:e,toRootClientId:n,clientId:t,index:r}}function $(t,e,n){return tt([t],e,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function tt(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return{type:"INSERT_BLOCKS",blocks:Object(f.castArray)(t),index:e,rootClientId:n,time:Date.now(),updateSelection:r}}function et(t,e){return{type:"SHOW_INSERTION_POINT",rootClientId:t,index:e}}function nt(){return{type:"HIDE_INSERTION_POINT"}}function rt(t){return{type:"SET_TEMPLATE_VALIDITY",isValid:t}}function it(){return{type:"SYNCHRONIZE_TEMPLATE"}}function ct(t,e){return{type:"MERGE_BLOCKS",blocks:[t,e]}}function ot(t){var e,n=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e=!(n.length>1&&void 0!==n[1])||n[1],t=Object(f.castArray)(t),!e){r.next=5;break}return r.next=5,U(t[0]);case 5:return r.next=7,{type:"REMOVE_BLOCKS",clientIds:t};case 7:return r.next=9,L("core/block-editor","getBlockCount");case 9:if(0!==r.sent){r.next=13;break}return r.next=13,bt();case 13:case"end":return r.stop()}},A,this)}function ut(t,e){return ot([t],e)}function lt(t){return{type:"TOGGLE_BLOCK_MODE",clientId:t}}function at(){return{type:"START_TYPING"}}function st(){return{type:"STOP_TYPING"}}function ft(){return{type:"ENTER_FORMATTED_TEXT"}}function dt(){return{type:"EXIT_FORMATTED_TEXT"}}function bt(t,e,n){return $(Object(c.createBlock)(Object(c.getDefaultBlockName)(),t),n,e)}function Ot(t,e){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:t,settings:e}}function pt(t){return{type:"UPDATE_SETTINGS",settings:t}}function gt(t,e){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:t,updatedId:e}}function vt(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}var jt=n(28),yt=3,St=2,kt=1,ht=0,mt=[],Et={},It=Object(jt.a)(function(){return[]},function(t,e){return Object(f.map)(ce(t,e),function(e){return Ct(t,e)})});function _t(t,e){var n=t.blocks.byClientId[e];return n?n.name:null}function Tt(t,e){var n=t.blocks.byClientId[e];return!!n&&n.isValid}var Bt=Object(jt.a)(function(t,e){var n=t.blocks.byClientId[e];if(!n)return null;var r=t.blocks.attributes[e],i=Object(c.getBlockType)(n.name);return i&&(r=Object(f.reduce)(i.attributes,function(e,n,i){return"meta"===n.source&&(e===r&&(e=Object(u.a)({},e)),e[i]=Pe(t,n.meta)),e},r)),r},function(t,e){return[t.blocks.byClientId[e],t.blocks.attributes[e],Pe(t)]}),Ct=Object(jt.a)(function(t,e){var n=t.blocks.byClientId[e];return n?Object(u.a)({},n,{attributes:Bt(t,e),innerBlocks:Pt(t,e)}):null},function(t,e){return[].concat(Object(a.a)(Bt.getDependants(t,e)),[It(t,e)])}),Lt=Object(jt.a)(function(t,e){var n=t.blocks.byClientId[e];return n?Object(u.a)({},n,{attributes:Bt(t,e)}):null},function(t,e){return[t.blocks.byClientId[e]].concat(Object(a.a)(Bt.getDependants(t,e)))}),Pt=Object(jt.a)(function(t,e){return Object(f.map)(ce(t,e),function(e){return Ct(t,e)})},function(t){return[t.blocks.byClientId,t.blocks.order,t.blocks.attributes]}),Rt=function t(e,n){return Object(f.flatMap)(n,function(n){var r=ce(e,n);return[].concat(Object(a.a)(r),Object(a.a)(t(e,r)))})},wt=Object(jt.a)(function(t){var e=ce(t);return[].concat(Object(a.a)(e),Object(a.a)(Rt(t,e)))},function(t){return[t.blocks.order]}),At=Object(jt.a)(function(t,e){var n=wt(t);return e?Object(f.reduce)(n,function(n,r){return t.blocks.byClientId[r].name===e?n+1:n},0):n.length},function(t){return[t.blocks.order,t.blocks.byClientId]}),Mt=Object(jt.a)(function(t,e){return Object(f.map)(Object(f.castArray)(e),function(e){return Ct(t,e)})},function(t){return[Pe(t),t.blocks.byClientId,t.blocks.order,t.blocks.attributes]});function xt(t,e){return ce(t,e).length}function Kt(t){return t.blockSelection.start}function Nt(t){return t.blockSelection.end}function Dt(t){var e=qt(t).length;return e||(t.blockSelection.start?1:0)}function Ut(t){var e=t.blockSelection,n=e.start,r=e.end;return!!n&&n===r}function Vt(t){var e=t.blockSelection,n=e.start,r=e.end;return n&&n===r&&t.blocks.byClientId[n]?n:null}function Gt(t){var e=Vt(t);return e?Ct(t,e):null}var Wt=Object(jt.a)(function(t,e){var n=t.blocks.order;for(var r in n)if(Object(f.includes)(n[r],e))return r;return null},function(t){return[t.blocks.order]}),zt=Object(jt.a)(function(t,e){for(var n=e,r=e;n;)n=Wt(t,r=n);return r},function(t){return[t.blocks.order]});function Ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===e&&(e=Vt(t)),void 0===e&&(e=n<0?Jt(t):Qt(t)),!e)return null;var r=Wt(t,e);if(null===r)return null;var i=t.blocks.order[r],c=i.indexOf(e)+1*n;return c<0?null:c===i.length?null:i[c]}function Ht(t,e){return Ft(t,e,-1)}function Yt(t,e){return Ft(t,e,1)}function Xt(t){var e=t.blockSelection,n=e.start;return n===e.end&&n?t.blockSelection.initialPosition:null}var qt=Object(jt.a)(function(t){var e=t.blockSelection,n=e.start,r=e.end;if(n===r)return[];var i=Wt(t,n);if(null===i)return[];var c=ce(t,i),o=c.indexOf(n),u=c.indexOf(r);return o>u?c.slice(u,o+1):c.slice(o,u+1)},function(t){return[t.blocks.order,t.blockSelection.start,t.blockSelection.end]}),Zt=Object(jt.a)(function(t){var e=qt(t);return e.length?e.map(function(e){return Ct(t,e)}):mt},function(t){return[].concat(Object(a.a)(qt.getDependants(t)),[t.blocks.byClientId,t.blocks.order,t.blocks.attributes,Pe(t)])});function Jt(t){return Object(f.first)(qt(t))||null}function Qt(t){return Object(f.last)(qt(t))||null}var $t=Object(jt.a)(function(t,e,n){for(var r=n;e!==r&&r;)r=Wt(t,r);return e===r},function(t){return[t.blocks.order]});function te(t,e){return Jt(t)===e}function ee(t,e){return-1!==qt(t).indexOf(e)}var ne=Object(jt.a)(function(t,e){for(var n=e,r=!1;n&&!r;)r=ee(t,n=Wt(t,n));return r},function(t){return[t.blocks.order,t.blockSelection.start,t.blockSelection.end]});function re(t){var e=t.blockSelection,n=e.start;return n===e.end?null:n||null}function ie(t){var e=t.blockSelection,n=e.start,r=e.end;return n===r?null:r||null}function ce(t,e){return t.blocks.order[e||""]||mt}function oe(t,e,n){return ce(t,n).indexOf(e)}function ue(t,e){var n=t.blockSelection,r=n.start;return r===n.end&&r===e}function le(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(f.some)(ce(t,e),function(e){return ue(t,e)||ee(t,e)||n&&le(t,e,n)})}function ae(t,e){if(!e)return!1;var n=qt(t),r=n.indexOf(e);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(f.isBoolean)(t)?t:Object(f.isArray)(t)?Object(f.includes)(t,e):n},i=Object(c.getBlockType)(e);if(!i)return!1;if(!r(Ce(t).allowedBlockTypes,e,!0))return!1;if(!!Se(t,n))return!1;var o=Be(t,n),u=r(Object(f.get)(o,["allowedBlocks"]),e),l=r(i.parent,_t(t,n));return null!==u&&null!==l?u||l:null!==u?u:null===l||l},he=Object(jt.a)(ke,function(t,e,n){return[t.blockListSettings[n],t.blocks.byClientId[n],t.settings.allowedBlockTypes,t.settings.templateLock]});function me(t,e){return t.preferences.insertUsage[e]||null}var Ee=function(t,e,n){return!!Object(c.hasBlockSupport)(e,"inserter",!0)&&ke(t,e.name,n)},Ie=function(t,e,n){if(!ke(t,"core/block",n))return!1;var r=_t(t,e.clientId);return!!r&&(!!Object(c.getBlockType)(r)&&(!!ke(t,r,n)&&!$t(t,e.clientId,n)))},_e=Object(jt.a)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(t,e,n){return n?yt:e>0?St:"common"===t?kt:ht},r=function(t,e){if(!t)return e;var n=Date.now()-t;switch(!0){case n<36e5:return 4*e;case n<864e5:return 2*e;case n<6048e5:return e/2;default:return e/4}},i=Object(c.getBlockTypes)().filter(function(n){return Ee(t,n,e)}).map(function(e){var i=e.name,o=!1;Object(c.hasBlockSupport)(e.name,"multiple",!0)||(o=Object(f.some)(Mt(t,wt(t)),{name:e.name}));var u=Object(f.isArray)(e.parent),l=me(t,i)||{},a=l.time,s=l.count,d=void 0===s?0:s;return{id:i,name:e.name,initialAttributes:{},title:e.title,icon:e.icon,category:e.category,keywords:e.keywords,isDisabled:o,utility:n(e.category,d,u),frecency:r(a,d),hasChildBlocksWithInserterSupport:Object(c.hasChildBlocksWithInserterSupport)(e.name)}}),o=Re(t).filter(function(n){return Ie(t,n,e)}).map(function(e){var i="core/block/".concat(e.id),o=_t(t,e.clientId),u=Object(c.getBlockType)(o),l=me(t,i)||{},a=l.time,s=l.count,f=void 0===s?0:s,d=n("reusable",f,!1),b=r(a,f);return{id:i,name:"core/block",initialAttributes:{ref:e.id},title:e.title,icon:u.icon,category:"reusable",keywords:[],isDisabled:!1,utility:d,frecency:b}});return Object(f.orderBy)([].concat(Object(a.a)(i),Object(a.a)(o)),["utility","frecency"],["desc","desc"])},function(t,e){return[t.blockListSettings[e],t.blocks.byClientId,t.blocks.order,t.preferences.insertUsage,t.settings.allowedBlockTypes,t.settings.templateLock,Re(t),Object(c.getBlockTypes)()]}),Te=Object(jt.a)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!Object(f.some)(Object(c.getBlockTypes)(),function(n){return Ee(t,n,e)})||Object(f.some)(Re(t),function(n){return Ie(t,n,e)})},function(t,e){return[t.blockListSettings[e],t.blocks.byClientId,t.settings.allowedBlockTypes,t.settings.templateLock,Re(t),Object(c.getBlockTypes)()]});function Be(t,e){return t.blockListSettings[e]}function Ce(t){return t.settings}function Le(t){return t.blocks.isPersistentChange}function Pe(t,e){return void 0===e?Object(f.get)(t,["settings","__experimentalMetaSource","value"],Et):Object(f.get)(t,["settings","__experimentalMetaSource","value",e])}function Re(t){return Object(f.get)(t,["settings","__experimentalReusableBlocks"],mt)}var we={MERGE_BLOCKS:function(t,e){var n=e.dispatch,r=e.getState(),i=Object(B.a)(t.blocks,2),o=i[0],l=i[1],s=Ct(r,o),f=Object(c.getBlockType)(s.name);if(f.merge){var d=Ct(r,l),b=s.name===d.name?[d]:Object(c.switchToBlockType)(d,s.name);if(b&&b.length){var O=f.merge(s.attributes,b[0].attributes);n(D(s.clientId,-1)),n(Y([s.clientId,d.clientId],[Object(u.a)({},s,{attributes:Object(u.a)({},s.attributes,O)})].concat(Object(a.a)(b.slice(1)))))}}else n(D(s.clientId))},RESET_BLOCKS:[function(t,e){var n=e.getState(),r=ye(n),i=Se(n),o=!r||"all"!==i||Object(c.doBlocksMatchTemplate)(t.blocks,r);if(o!==je(n))return rt(o)}],REPLACE_BLOCKS:[function(t,e){if(!xt(e.getState()))return bt()}],MULTI_SELECT:function(t,e){var n=Dt((0,e.getState)());Object(C.speak)(Object(d.sprintf)(Object(d._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(t,e){var n=(0,e.getState)(),r=Pt(n),i=ye(n);return M(Object(c.synchronizeBlocksWithTemplate)(r,i))}};var Ae=function(t){var e,n=[I()(we),T.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:t.getState,dispatch:function(){return r.apply(void 0,arguments)}};return e=n.map(function(t){return t(i)}),r=f.flowRight.apply(void 0,Object(a.a)(e))(t.dispatch),t.dispatch=r,t},Me=Object(o.registerStore)("core/block-editor",{reducer:m,selectors:i,actions:r,controls:P,persist:["preferences"]});Ae(Me);var xe=n(10),Ke=n(9),Ne=n(11),De=n(12),Ue=n(13),Ve=n(19),Ge=n(0),We=n(4),ze=n(7),Fe=Object(ze.createHigherOrderComponent)(function(t){return function(e){return Object(Ge.createElement)(o.RegistryConsumer,null,function(n){return Object(Ge.createElement)(t,Object(Ve.a)({},e,{registry:n}))})}},"withRegistry"),He=function(t){function e(){return Object(xe.a)(this,e),Object(Ne.a)(this,Object(De.a)(e).apply(this,arguments))}return Object(Ue.a)(e,t),Object(Ke.a)(e,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.settings,r=e.updateSettings,i=e.value,c=e.resetBlocks,o=e.registry;n!==t.settings&&r(n),o!==t.registry&&this.attachChangeObserver(o),this.isSyncingOutcomingValue?this.isSyncingOutcomingValue=!1:i!==t.value&&(this.isSyncingIncomingValue=!0,c(i))}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"attachChangeObserver",value:function(t){var e=this;this.unsubscribe&&this.unsubscribe();var n=t.select("core/block-editor"),r=n.getBlocks,i=n.isLastBlockChangePersistent,c=r(),o=i();this.unsubscribe=t.subscribe(function(){var t=e.props,n=t.onChange,u=t.onInput,l=r(),a=i();if(l!==c&&e.isSyncingIncomingValue)return e.isSyncingIncomingValue=!1,c=l,void(o=a);(l!==c||a&&!o)&&(c=l,o=a,e.isSyncingOutcomingValue=!0,o?n(c):u(c))})}},{key:"render",value:function(){var t=this.props.children;return Object(Ge.createElement)(We.SlotFillProvider,null,Object(Ge.createElement)(We.DropZoneProvider,null,t))}}]),e}(Ge.Component),Ye=Object(ze.compose)([Object(o.withDispatch)(function(t){var e=t("core/block-editor");return{updateSettings:e.updateSettings,resetBlocks:e.resetBlocks}}),Fe])(He);n.d(e,"BlockEditorProvider",function(){return Ye}),n.d(e,"SETTINGS_DEFAULTS",function(){return O})},33:function(t,e,n){"use strict";function r(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}n.d(e,"a",function(){return r})},34:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",function(){return r})},35:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,"a",function(){return r})},4:function(t,e){!function(){t.exports=this.wp.components}()},44:function(t,e){!function(){t.exports=this.wp.a11y}()},5:function(t,e){!function(){t.exports=this.wp.data}()},64:function(t,e,n){"use strict";t.exports=function(t){var e,n={};return function t(e,n){var r;if(Array.isArray(n))for(r=0;r-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,c=function(){e.clientWidth!==n&&d()},l=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:l,update:d}),"vertical"===(a=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===a.resize&&(e.style.resize="horizontal"),t="content-box"===a.boxSizing?-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)):parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth),isNaN(t)&&(t=0),d()}var a;function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r0?!0===c?o.scrollTop(t,O.top+k.top):!1===c?o.scrollTop(t,O.top+j.top):k.top<0?o.scrollTop(t,O.top+k.top):o.scrollTop(t,O.top+j.top):i||((c=void 0===c||!!c)?o.scrollTop(t,O.top+k.top):o.scrollTop(t,O.top+j.top)),r&&(k.left<0||j.left>0?!0===l?o.scrollLeft(t,O.left+k.left):!1===l?o.scrollLeft(t,O.left+j.left):k.left<0?o.scrollLeft(t,O.left+k.left):o.scrollLeft(t,O.left+j.left):i||((l=void 0===l||!!l)?o.scrollLeft(t,O.left+k.left):o.scrollLeft(t,O.left+j.left)))}},116:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t + +All rights reserved. + +Redistribution and use of this software in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + +* Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + +* Neither the name of Kevin Decker nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +@license +*/ +var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var o,r=n(1),i=(o=r)&&o.__esModule?o:{default:o},c=n(2),l=n(3),a=n(5),s=n(6),u=n(7),d=n(8),b=n(9),f=n(10),p=n(11),h=n(13),v=n(14),m=n(16),g=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=l.diffWords,t.diffWordsWithSpace=l.diffWordsWithSpace,t.diffLines=a.diffLines,t.diffTrimmedLines=a.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=b.diffArrays,t.structuredPatch=v.structuredPatch,t.createTwoFilesPatch=v.createTwoFilesPatch,t.createPatch=v.createPatch,t.applyPatch=f.applyPatch,t.applyPatches=f.applyPatches,t.parsePatch=p.parsePatch,t.merge=h.merge,t.convertChangesToDMP=m.convertChangesToDMP,t.convertChangesToXML=g.convertChangesToXML,t.canonicalize=d.canonicalize},function(e,t){"use strict";function n(){}function o(e,t,n,o,r){for(var i=0,c=t.length,l=0,a=0;ie.length?n:e}),s.value=e.join(d)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(a+=s.count)}}var b=t[c-1];return c>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[c-2].value+=b.value,t.pop()),t}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function c(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,s=1,u=l+a,d=[{newPos:-1,components:[]}],b=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=l&&b+1>=a)return c([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*s;n<=s;n+=2){var r=void 0,u=d[n-1],b=d[n+1],f=(b?b.newPos:0)-n;u&&(d[n-1]=void 0);var p=u&&u.newPos+1=l&&f+1>=a)return c(o(i,r.components,t,e,i.useLongestToken));d[n]=r}else d[n]=void 0}var v;s++}if(r)!function e(){setTimeout(function(){if(s>u)return r();f()||e()},0)}();else for(;s<=u;){var p=f();if(p)return p}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,i=n.length,c=e.newPos,l=c-o,a=0;c+12&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var o=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],l=t.hunks,a=n.compareLine||function(e,t,n,o){return t===o},s=0,u=n.fuzzFactor||0,d=0,b=0,f=void 0,p=void 0;function h(e,t){for(var n=0;n0?r[0]:" ",c=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!a(t+1,o[t],i,c)&&++s>u)return!1;t++}}return!0}for(var v=0;v0?w[0]:" ",T=w.length>0?w.substr(1):w,B=S.linedelimiters[E];if(" "===I)C++;else if("-"===I)o.splice(C,1),i.splice(C,1);else if("+"===I)o.splice(C,0,T),i.splice(C,0,B),C++;else if("\\"===I){var x=S.lines[E-1]?S.lines[E-1][0]:null;"+"===x?f=!0:"-"===x&&(p=!0)}}}if(f)for(;!o[o.length-1];)o.pop(),i.pop();else p&&(o.push(""),i.push("\n"));for(var L=0;L1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],r=[],i=0;function c(){var e={};for(r.push(e);i0?u(l.lines.slice(-a.context)):[],b-=p.length,f-=p.length)}(c=p).push.apply(c,r(o.map(function(e){return(t.added?"+":"-")+e}))),t.added?v+=o.length:h+=o.length}else{if(b)if(o.length<=2*a.context&&e=s.length-2&&o.length<=a.context){var j=/\n$/.test(n),y=/\n$/.test(i);0!=o.length||j?j&&y||p.push("\\ No newline at end of file"):p.splice(k.oldLines,0,"\\ No newline at end of file")}d.push(k),b=0,f=0,p=[]}h+=o.length,v+=o.length}},g=0;ge.length)return!1;for(var n=0;n/g,">")).replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],o=0;o"):r.removed&&t.push(""),t.push(n(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}}])},e.exports=o()},21:function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",function(){return o})},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t){!function(){e.exports=this.wp.hooks}()},25:function(e,t){!function(){e.exports=this.wp.dom}()},26:function(e,t,n){e.exports=n(54)},27:function(e,t){!function(){e.exports=this.React}()},28:function(e,t,n){"use strict";var o=n(37);var r=n(38);function i(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var c,l=e[Symbol.iterator]();!(o=(c=l.next()).done)&&(n.push(c.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||Object(r.a)()}n.d(t,"a",function(){return i})},3:function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return o})},30:function(e,t,n){"use strict";var o,r;function i(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function l(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o3&&void 0!==arguments[3]?arguments[3]:1,r=Object(d.a)(e);return r.splice(t,o),m(r,e.slice(t,t+o),n)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(b.a)({},t,[]);return e.forEach(function(e){var o=e.clientId,r=e.innerBlocks;n[t].push(o),Object.assign(n,O(r,o))}),n}function k(e,t){for(var n={},o=Object(d.a)(e);o.length;){var r=o.shift(),i=r.innerBlocks,c=Object(u.a)(r,["innerBlocks"]);o.push.apply(o,Object(d.a)(i)),n[c.clientId]=t(c)}return n}function j(e){return k(e,function(e){return Object(f.omit)(e,"attributes")})}function y(e){return k(e,function(e){return e.attributes})}function _(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,o=t.attributes,Object(f.isEqual)(Object(f.keys)(n),Object(f.keys)(o)));var n,o}var S=Object(f.flow)(a.combineReducers,function(e){return function(t,n){if(t&&"REMOVE_BLOCKS"===n.type){for(var o=Object(d.a)(n.clientIds),r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.reduce)(t[n],function(n,o){return[].concat(Object(d.a)(n),[o],Object(d.a)(e(t,o)))},[])}(t.order);return Object(s.a)({},t,{byClientId:Object(s.a)({},Object(f.omit)(t.byClientId,o),j(n.blocks)),attributes:Object(s.a)({},Object(f.omit)(t.attributes,o),y(n.blocks)),order:Object(s.a)({},Object(f.omit)(t.order,o),O(n.blocks))})}return e(t,n)}},function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var o=n.id,r=n.updatedId;if(o===r)return t;(t=Object(s.a)({},t)).attributes=Object(f.mapValues)(t.attributes,function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===o?Object(s.a)({},e,{ref:r}):e})}return e(t,n)}},function(e){var t,n=new Set(["RECEIVE_BLOCKS"]);return function(o,r){var i=e(o,r),c="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type;return o!==i||c?n.has(r.type)?Object(s.a)({},i,{isPersistentChange:!1}):(i=Object(s.a)({},i,{isPersistentChange:c||!_(r,t)}),t=r,i):Object(s.a)({},i,{isPersistentChange:Object(f.get)(o,["isPersistentChange"],!0)})}})({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return j(t.blocks);case"RECEIVE_BLOCKS":return Object(s.a)({},e,j(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(f.omit)(t.updates,"attributes");return Object(f.isEmpty)(n)?e:Object(s.a)({},e,Object(b.a)({},t.clientId,Object(s.a)({},e[t.clientId],n)));case"INSERT_BLOCKS":return Object(s.a)({},e,j(t.blocks));case"REPLACE_BLOCKS":return t.blocks?Object(s.a)({},Object(f.omit)(e,t.clientIds),j(t.blocks)):e;case"REMOVE_BLOCKS":return Object(f.omit)(e,t.clientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return y(t.blocks);case"RECEIVE_BLOCKS":return Object(s.a)({},e,y(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(s.a)({},e,Object(b.a)({},t.clientId,Object(s.a)({},e[t.clientId],t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(f.reduce)(t.attributes,function(n,o,r){var i,c;return o!==n[r]&&((n=(i=e[t.clientId])===(c=n)?Object(s.a)({},i):c)[r]=o),n},e[t.clientId]);return n===e[t.clientId]?e:Object(s.a)({},e,Object(b.a)({},t.clientId,n));case"INSERT_BLOCKS":return Object(s.a)({},e,y(t.blocks));case"REPLACE_BLOCKS":return t.blocks?Object(s.a)({},Object(f.omit)(e,t.clientIds),y(t.blocks)):e;case"REMOVE_BLOCKS":return Object(f.omit)(e,t.clientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return O(t.blocks);case"RECEIVE_BLOCKS":return Object(s.a)({},e,Object(f.omit)(O(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,o=void 0===n?"":n,r=e[o]||[],i=O(t.blocks,o),c=t.index,l=void 0===c?r.length:c;return Object(s.a)({},e,i,Object(b.a)({},o,m(r,i[o],l)));case"MOVE_BLOCK_TO_POSITION":var a,u=t.fromRootClientId,p=void 0===u?"":u,h=t.toRootClientId,v=void 0===h?"":h,k=t.clientId,j=t.index,y=void 0===j?e[v].length:j;if(p===v){var _=e[v].indexOf(k);return Object(s.a)({},e,Object(b.a)({},v,g(e[v],_,y)))}return Object(s.a)({},e,(a={},Object(b.a)(a,p,Object(f.without)(e[p],k)),Object(b.a)(a,v,m(e[v],k,y)),a));case"MOVE_BLOCKS_UP":var S=t.clientIds,C=t.rootClientId,E=void 0===C?"":C,w=Object(f.first)(S),I=e[E];if(!I.length||w===Object(f.first)(I))return e;var T=I.indexOf(w);return Object(s.a)({},e,Object(b.a)({},E,g(I,T,T-1,S.length)));case"MOVE_BLOCKS_DOWN":var B=t.clientIds,x=t.rootClientId,L=void 0===x?"":x,N=Object(f.first)(B),M=Object(f.last)(B),R=e[L];if(!R.length||M===Object(f.last)(R))return e;var A=R.indexOf(N);return Object(s.a)({},e,Object(b.a)({},L,g(R,A,A+1,B.length)));case"REPLACE_BLOCKS":var P=t.clientIds;if(!t.blocks)return e;var D=O(t.blocks);return Object(f.flow)([function(e){return Object(f.omit)(e,P)},function(e){return Object(s.a)({},e,Object(f.omit)(D,""))},function(e){return Object(f.mapValues)(e,function(e){return Object(f.reduce)(e,function(e,t){return t===P[0]?[].concat(Object(d.a)(e),Object(d.a)(D[""])):(-1===P.indexOf(t)&&e.push(t),e)},[])})}])(e);case"REMOVE_BLOCKS":return Object(f.flow)([function(e){return Object(f.omit)(e,t.clientIds)},function(e){return Object(f.mapValues)(e,function(e){return f.without.apply(void 0,[e].concat(Object(d.a)(t.clientIds)))})}])(e)}return e}});var C=Object(a.combineReducers)({blocks:S,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},blockSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{start:null,end:null,isMultiSelecting:!1,isEnabled:!0,initialPosition:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return null!==e.start||null!==e.end||e.isMultiSelecting?Object(s.a)({},e,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):e;case"START_MULTI_SELECT":return e.isMultiSelecting?e:Object(s.a)({},e,{isMultiSelecting:!0,initialPosition:null});case"STOP_MULTI_SELECT":return e.isMultiSelecting?Object(s.a)({},e,{isMultiSelecting:!1,initialPosition:null}):e;case"MULTI_SELECT":return Object(s.a)({},e,{start:t.start,end:t.end,initialPosition:null});case"SELECT_BLOCK":return t.clientId===e.start&&t.clientId===e.end?e:Object(s.a)({},e,{start:t.clientId,end:t.clientId,initialPosition:t.initialPosition});case"INSERT_BLOCKS":return t.updateSelection?Object(s.a)({},e,{start:t.blocks[0].clientId,end:t.blocks[0].clientId,initialPosition:null,isMultiSelecting:!1}):e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.start)?Object(s.a)({},e,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.start))return e;var n=Object(f.last)(t.blocks),o=n?n.clientId:null;return o===e.start&&o===e.end?e:Object(s.a)({},e,{start:o,end:o,initialPosition:null,isMultiSelecting:!1});case"TOGGLE_SELECTION":return Object(s.a)({},e,{isEnabled:t.isSelectionEnabled})}return e},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Object(s.a)({},e,Object(b.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(f.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(f.isEqual)(e[n],t.settings)?e:Object(s.a)({},e,Object(b.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(f.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return{rootClientId:t.rootClientId,index:t.index};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(s.a)({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Object(s.a)({},e,t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(function(e,n){var o=n.name,r={name:n.name};return Object(i.isReusableBlock)(n)&&(r.ref=n.attributes.ref,o+="/"+n.attributes.ref),Object(s.a)({},e,{insertUsage:Object(s.a)({},e.insertUsage,Object(b.a)({},o,{time:t.time,count:e.insertUsage[o]?e.insertUsage[o].count+1:1,insert:r}))})},e)}return e}}),E=n(70),w=n.n(E),I=n(97),T=n.n(I),B=n(28),x=n(48),L=n(26),N=n.n(L);function M(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r1&&void 0!==arguments[1]?arguments[1]:null,clientId:e}}function K(e){var t;return N.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,M("core/block-editor","getPreviousBlockClientId",e);case 2:return t=n.sent,n.next=5,z(t,-1);case 5:case"end":return n.stop()}},A,this)}function W(e){var t;return N.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,M("core/block-editor","getNextBlockClientId",e);case 2:return t=n.sent,n.next=5,z(t);case 5:case"end":return n.stop()}},P,this)}function G(){return{type:"START_MULTI_SELECT"}}function q(){return{type:"STOP_MULTI_SELECT"}}function Y(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function $(){return{type:"CLEAR_SELECTED_BLOCK"}}function X(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function J(e,t){return{type:"REPLACE_BLOCKS",clientIds:Object(f.castArray)(e),blocks:Object(f.castArray)(t),time:Date.now()}}function Z(e,t){return J(e,t)}function Q(e){return function(t,n){return{clientIds:Object(f.castArray)(t),type:e,rootClientId:n}}}var ee=Q("MOVE_BLOCKS_DOWN"),te=Q("MOVE_BLOCKS_UP");function ne(e,t,n,o){return{type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:o}}function oe(e,t,n){return re([e],t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function re(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return{type:"INSERT_BLOCKS",blocks:Object(f.castArray)(e),index:t,rootClientId:n,time:Date.now(),updateSelection:o}}function ie(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function ce(){return{type:"HIDE_INSERTION_POINT"}}function le(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function ae(){return{type:"SYNCHRONIZE_TEMPLATE"}}function se(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function ue(e){var t,n=arguments;return N.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(t=!(n.length>1&&void 0!==n[1])||n[1],e=Object(f.castArray)(e),!t){o.next=5;break}return o.next=5,K(e[0]);case 5:return o.next=7,{type:"REMOVE_BLOCKS",clientIds:e};case 7:return o.next=9,M("core/block-editor","getBlockCount");case 9:if(0!==o.sent){o.next=13;break}return o.next=13,me();case 13:case"end":return o.stop()}},D,this)}function de(e,t){return ue([e],t)}function be(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function fe(){return{type:"START_TYPING"}}function pe(){return{type:"STOP_TYPING"}}function he(){return{type:"ENTER_FORMATTED_TEXT"}}function ve(){return{type:"EXIT_FORMATTED_TEXT"}}function me(e,t,n){return oe(Object(i.createBlock)(Object(i.getDefaultBlockName)(),e),n,t)}function ge(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Oe(e){return{type:"UPDATE_SETTINGS",settings:e}}function ke(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function je(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}var ye=n(30),_e=3,Se=2,Ce=1,Ee=0,we=[],Ie={},Te=Object(ye.a)(function(){return[]},function(e,t){return Object(f.map)(st(e,t),function(t){return Ne(e,t)})});function Be(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function xe(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}var Le=Object(ye.a)(function(e,t){var n=e.blocks.byClientId[t];if(!n)return null;var o=e.blocks.attributes[t],r=Object(i.getBlockType)(n.name);return r&&(o=Object(f.reduce)(r.attributes,function(t,n,r){return"meta"===n.source&&(t===o&&(t=Object(s.a)({},t)),t[r]=Rt(e,n.meta)),t},o)),o},function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t],Rt(e)]}),Ne=Object(ye.a)(function(e,t){var n=e.blocks.byClientId[t];return n?Object(s.a)({},n,{attributes:Le(e,t),innerBlocks:Re(e,t)}):null},function(e,t){return[].concat(Object(d.a)(Le.getDependants(e,t)),[Te(e,t)])}),Me=Object(ye.a)(function(e,t){var n=e.blocks.byClientId[t];return n?Object(s.a)({},n,{attributes:Le(e,t)}):null},function(e,t){return[e.blocks.byClientId[t]].concat(Object(d.a)(Le.getDependants(e,t)))}),Re=Object(ye.a)(function(e,t){return Object(f.map)(st(e,t),function(t){return Ne(e,t)})},function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}),Ae=function e(t,n){return Object(f.flatMap)(n,function(n){var o=st(t,n);return[].concat(Object(d.a)(o),Object(d.a)(e(t,o)))})},Pe=Object(ye.a)(function(e){var t=st(e);return[].concat(Object(d.a)(t),Object(d.a)(Ae(e,t)))},function(e){return[e.blocks.order]}),De=Object(ye.a)(function(e,t){var n=Pe(e);return t?Object(f.reduce)(n,function(n,o){return e.blocks.byClientId[o].name===t?n+1:n},0):n.length},function(e){return[e.blocks.order,e.blocks.byClientId]}),Fe=Object(ye.a)(function(e,t){return Object(f.map)(Object(f.castArray)(t),function(t){return Ne(e,t)})},function(e){return[Rt(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]});function He(e,t){return st(e,t).length}function Ue(e){return e.blockSelection.start}function Ve(e){return e.blockSelection.end}function ze(e){var t=Qe(e).length;return t||(e.blockSelection.start?1:0)}function Ke(e){var t=e.blockSelection,n=t.start,o=t.end;return!!n&&n===o}function We(e){var t=e.blockSelection,n=t.start,o=t.end;return n&&n===o&&e.blocks.byClientId[n]?n:null}function Ge(e){var t=We(e);return t?Ne(e,t):null}var qe=Object(ye.a)(function(e,t){var n=e.blocks.order;for(var o in n)if(Object(f.includes)(n[o],t))return o;return null},function(e){return[e.blocks.order]}),Ye=Object(ye.a)(function(e,t){for(var n=t,o=t;n;)n=qe(e,o=n);return o},function(e){return[e.blocks.order]});function $e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=We(e)),void 0===t&&(t=n<0?tt(e):nt(e)),!t)return null;var o=qe(e,t);if(null===o)return null;var r=e.blocks.order[o],i=r.indexOf(t)+1*n;return i<0?null:i===r.length?null:r[i]}function Xe(e,t){return $e(e,t,-1)}function Je(e,t){return $e(e,t,1)}function Ze(e){var t=e.blockSelection,n=t.start;return n===t.end&&n?e.blockSelection.initialPosition:null}var Qe=Object(ye.a)(function(e){var t=e.blockSelection,n=t.start,o=t.end;if(n===o)return[];var r=qe(e,n);if(null===r)return[];var i=st(e,r),c=i.indexOf(n),l=i.indexOf(o);return c>l?i.slice(l,c+1):i.slice(c,l+1)},function(e){return[e.blocks.order,e.blockSelection.start,e.blockSelection.end]}),et=Object(ye.a)(function(e){var t=Qe(e);return t.length?t.map(function(t){return Ne(e,t)}):we},function(e){return[].concat(Object(d.a)(Qe.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes,Rt(e)])});function tt(e){return Object(f.first)(Qe(e))||null}function nt(e){return Object(f.last)(Qe(e))||null}var ot=Object(ye.a)(function(e,t,n){for(var o=n;t!==o&&o;)o=qe(e,o);return t===o},function(e){return[e.blocks.order]});function rt(e,t){return tt(e)===t}function it(e,t){return-1!==Qe(e).indexOf(t)}var ct=Object(ye.a)(function(e,t){for(var n=t,o=!1;n&&!o;)o=it(e,n=qe(e,n));return o},function(e){return[e.blocks.order,e.blockSelection.start,e.blockSelection.end]});function lt(e){var t=e.blockSelection,n=t.start;return n===t.end?null:n||null}function at(e){var t=e.blockSelection,n=t.start,o=t.end;return n===o?null:o||null}function st(e,t){return e.blocks.order[t||""]||we}function ut(e,t,n){return st(e,n).indexOf(t)}function dt(e,t){var n=e.blockSelection,o=n.start;return o===n.end&&o===t}function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(f.some)(st(e,t),function(t){return dt(e,t)||it(e,t)||n&&bt(e,t,n)})}function ft(e,t){if(!t)return!1;var n=Qe(e),o=n.indexOf(t);return o>-1&&o2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(f.isBoolean)(e)?e:Object(f.isArray)(e)?Object(f.includes)(e,t):n},r=Object(i.getBlockType)(t);if(!r)return!1;if(!o(Nt(e).allowedBlockTypes,t,!0))return!1;if(!!St(e,n))return!1;var c=Lt(e,n),l=o(Object(f.get)(c,["allowedBlocks"]),t),a=o(r.parent,Be(e,n));return null!==l&&null!==a?l||a:null!==l?l:null===a||a},Et=Object(ye.a)(Ct,function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]});function wt(e,t){return e.preferences.insertUsage[t]||null}var It=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&Ct(e,t.name,n)},Tt=function(e,t,n){if(!Ct(e,"core/block",n))return!1;var o=Be(e,t.clientId);return!!o&&(!!Object(i.getBlockType)(o)&&(!!Ct(e,o,n)&&!ot(e,t.clientId,n)))},Bt=Object(ye.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?_e:t>0?Se:"common"===e?Ce:Ee},o=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},r=Object(i.getBlockTypes)().filter(function(n){return It(e,n,t)}).map(function(t){var r=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(f.some)(Fe(e,Pe(e)),{name:t.name}));var l=Object(f.isArray)(t.parent),a=wt(e,r)||{},s=a.time,u=a.count,d=void 0===u?0:u;return{id:r,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,l),frecency:o(s,d),hasChildBlocksWithInserterSupport:Object(i.hasChildBlocksWithInserterSupport)(t.name)}}),c=At(e).filter(function(n){return Tt(e,n,t)}).map(function(t){var r="core/block/".concat(t.id),c=Be(e,t.clientId),l=Object(i.getBlockType)(c),a=wt(e,r)||{},s=a.time,u=a.count,d=void 0===u?0:u,b=n("reusable",d,!1),f=o(s,d);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:l.icon,category:"reusable",keywords:[],isDisabled:!1,utility:b,frecency:f}});return Object(f.orderBy)([].concat(Object(d.a)(r),Object(d.a)(c)),["utility","frecency"],["desc","desc"])},function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,At(e),Object(i.getBlockTypes)()]}),xt=Object(ye.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!Object(f.some)(Object(i.getBlockTypes)(),function(n){return It(e,n,t)})||Object(f.some)(At(e),function(n){return Tt(e,n,t)})},function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,At(e),Object(i.getBlockTypes)()]});function Lt(e,t){return e.blockListSettings[t]}function Nt(e){return e.settings}function Mt(e){return e.blocks.isPersistentChange}function Rt(e,t){return void 0===t?Object(f.get)(e,["settings","__experimentalMetaSource","value"],Ie):Object(f.get)(e,["settings","__experimentalMetaSource","value",t])}function At(e){return Object(f.get)(e,["settings","__experimentalReusableBlocks"],we)}var Pt={MERGE_BLOCKS:function(e,t){var n=t.dispatch,o=t.getState(),r=Object(B.a)(e.blocks,2),c=r[0],l=r[1],a=Ne(o,c),u=Object(i.getBlockType)(a.name);if(u.merge){var b=Ne(o,l),f=a.name===b.name?[b]:Object(i.switchToBlockType)(b,a.name);if(f&&f.length){var p=u.merge(a.attributes,f[0].attributes);n(z(a.clientId,-1)),n(J([a.clientId,b.clientId],[Object(s.a)({},a,{attributes:Object(s.a)({},a.attributes,p)})].concat(Object(d.a)(f.slice(1)))))}}else n(z(a.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),o=_t(n),r=St(n),c=!o||"all"!==r||Object(i.doBlocksMatchTemplate)(e.blocks,o);if(c!==yt(n))return le(c)}],REPLACE_BLOCKS:[function(e,t){if(!He(t.getState()))return me()}],MULTI_SELECT:function(e,t){var n=ze((0,t.getState)());Object(x.speak)(Object(p.sprintf)(Object(p._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),o=Re(n),r=_t(n);return F(Object(i.synchronizeBlocksWithTemplate)(o,r))}};var Dt=function(e){var t,n=[w()(Pt),T.a],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map(function(e){return e(r)}),o=f.flowRight.apply(void 0,Object(d.a)(t))(e.dispatch),e.dispatch=o,e},Ft=Object(a.registerStore)("core/block-editor",{reducer:C,selectors:r,actions:o,controls:R,persist:["preferences"]});Dt(Ft);var Ht=n(19),Ut=n(0),Vt=n(16),zt=n.n(Vt),Kt=n(6),Wt=n(24),Gt=n(10),qt=n(9),Yt=n(11),$t=n(12),Xt=n(13),Jt=n(3),Zt=n(4),Qt=Object(Ut.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:f.noop,clientId:null}),en=Qt.Consumer,tn=Qt.Provider,nn=function(e){return Object(Kt.createHigherOrderComponent)(function(t){return function(n){return Object(Ut.createElement)(en,null,function(o){return Object(Ut.createElement)(t,Object(Ht.a)({},n,e(o,n)))})}},"withBlockEditContext")},on=Object(Kt.createHigherOrderComponent)(function(e){return function(t){return Object(Ut.createElement)(en,null,function(n){return n.isSelected&&Object(Ut.createElement)(e,t)})}},"ifBlockEditSelected"),rn=[];var cn=Object(Kt.compose)([nn(function(e){return{blockName:e.name}}),function(e){return function(t){function n(){var e;return Object(Gt.a)(this,n),(e=Object(Yt.a)(this,Object($t.a)(n).call(this))).state={completers:rn},e.saveParentRef=e.saveParentRef.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onFocus=e.onFocus.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(n,t),Object(qt.a)(n,[{key:"componentDidUpdate",value:function(){this.parentNode.contains(document.activeElement)&&this.hasStaleCompleters()&&this.updateCompletersState()}},{key:"onFocus",value:function(){this.hasStaleCompleters()&&this.updateCompletersState()}},{key:"hasStaleCompleters",value:function(){return!("lastFilteredCompletersProp"in this.state)||this.state.lastFilteredCompletersProp!==this.props.completers}},{key:"updateCompletersState",value:function(){var e=this.props,t=e.blockName,n=e.completers,o=n;Object(Wt.hasFilter)("editor.Autocomplete.completers")&&(n=Object(Wt.applyFilters)("editor.Autocomplete.completers",n&&n.map(f.clone),t)),this.setState({lastFilteredCompletersProp:o,completers:n||rn})}},{key:"saveParentRef",value:function(e){this.parentNode=e}},{key:"render",value:function(){var t=this.state.completers,n=Object(s.a)({},this.props,{completers:t});return Object(Ut.createElement)("div",{onFocus:this.onFocus,ref:this.saveParentRef},Object(Ut.createElement)(e,Object(Ht.a)({onFocus:this.onFocus},n)))}}]),n}(Ut.Component)}])(Zt.Autocomplete),ln=[{icon:"editor-alignleft",title:Object(p.__)("Align text left"),align:"left"},{icon:"editor-aligncenter",title:Object(p.__)("Align text center"),align:"center"},{icon:"editor-alignright",title:Object(p.__)("Align text right"),align:"right"}];var an=Object(Kt.compose)(nn(function(e){return{clientId:e.clientId}}),Object(l.withViewportMatch)({isLargeViewport:"medium"}),Object(a.withSelect)(function(e,t){var n=t.clientId,o=t.isLargeViewport,r=t.isCollapsed,i=e("core/block-editor"),c=i.getBlockRootClientId,l=i.getSettings;return{isCollapsed:r||!o||!l().hasFixedToolbar&&c(n)}}))(function(e){var t=e.isCollapsed,n=e.value,o=e.onChange,r=e.alignmentControls,i=void 0===r?ln:r;function c(e){return function(){return o(n===e?void 0:e)}}var l=Object(f.find)(i,function(e){return e.align===n});return Object(Ut.createElement)(Zt.Toolbar,{isCollapsed:t,icon:l?l.icon:"editor-alignleft",label:Object(p.__)("Change Text Alignment"),controls:i.map(function(e){var t=e.align,o=n===t;return Object(s.a)({},e,{isActive:o,onClick:c(t)})})})}),sn={left:{icon:"align-left",title:Object(p.__)("Align left")},center:{icon:"align-center",title:Object(p.__)("Align center")},right:{icon:"align-right",title:Object(p.__)("Align right")},wide:{icon:"align-wide",title:Object(p.__)("Wide width")},full:{icon:"align-full-width",title:Object(p.__)("Full width")}},un=["left","center","right","wide","full"],dn=["wide","full"];var bn=Object(Kt.compose)(nn(function(e){return{clientId:e.clientId}}),Object(l.withViewportMatch)({isLargeViewport:"medium"}),Object(a.withSelect)(function(e,t){var n=t.clientId,o=t.isLargeViewport,r=t.isCollapsed,i=e("core/block-editor"),c=i.getBlockRootClientId,l=(0,i.getSettings)();return{wideControlsEnabled:l.alignWide,isCollapsed:r||!o||!l.hasFixedToolbar&&c(n)}}))(function(e){var t=e.isCollapsed,n=e.value,o=e.onChange,r=e.controls,i=void 0===r?un:r,c=e.wideControlsEnabled,l=void 0!==c&&c?i:i.filter(function(e){return-1===dn.indexOf(e)}),a=sn[n];return Object(Ut.createElement)(Zt.Toolbar,{isCollapsed:t,icon:a?a.icon:"align-left",label:Object(p.__)("Change Alignment"),controls:l.map(function(e){return Object(s.a)({},sn[e],{isActive:n===e,onClick:(t=e,function(){return o(n===t?void 0:t)})});var t})})}),fn=Object(Zt.createSlotFill)("BlockControls"),pn=fn.Fill,hn=fn.Slot,vn=on(function(e){var t=e.controls,n=e.children;return Object(Ut.createElement)(pn,null,Object(Ut.createElement)(Zt.Toolbar,{controls:t}),n)});vn.Slot=hn;var mn=vn,gn=Object(Zt.withFilters)("editor.BlockEdit")(function(e){var t=e.attributes,n=void 0===t?{}:t,o=e.name,r=Object(i.getBlockType)(o);if(!r)return null;var c=Object(i.hasBlockSupport)(r,"className",!0)?Object(i.getBlockDefaultClassName)(o):null,l=zt()(c,n.className),a=r.edit||r.save;return Object(Ut.createElement)(a,Object(Ht.a)({},e,{className:l}))}),On=function(e){function t(e){var n;return Object(Gt.a)(this,t),(n=Object(Yt.a)(this,Object($t.a)(t).call(this,e))).setFocusedElement=n.setFocusedElement.bind(Object(Jt.a)(Object(Jt.a)(n))),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"setFocusedElement",value:function(e){this.setState(function(t){return t.focusedElement===e?null:{focusedElement:e}})}},{key:"render",value:function(){return Object(Ut.createElement)(tn,{value:this.state},Object(Ut.createElement)(gn,this.props))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.clientId;return{name:e.name,isSelected:e.isSelected,clientId:t}}}]),t}(Ut.Component),kn=Object(Zt.createSlotFill)("BlockFormatControls"),jn=kn.Fill,yn=kn.Slot,_n=on(jn);_n.Slot=yn;var Sn=_n,Cn=n(18);function En(e){var t=e.icon,n=e.showColors,o=void 0!==n&&n,r=e.className;"block-default"===Object(f.get)(t,["src"])&&(t={src:Object(Ut.createElement)(Zt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ut.createElement)(Zt.Path,{d:"M19 7h-1V5h-4v2h-4V5H6v2H5c-1.1 0-2 .9-2 2v10h18V9c0-1.1-.9-2-2-2zm0 10H5V9h14v8z"}))});var i=Object(Ut.createElement)(Zt.Icon,{icon:t&&t.src?t.src:t}),c=o?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(Ut.createElement)("span",{style:c,className:zt()("editor-block-icon block-editor-block-icon",r,{"has-colors":o})},i)}function wn(e){var t=e.blocks,n=e.selectedBlockClientId,o=e.selectBlock,r=e.showNestedBlocks;return Object(Ut.createElement)("ul",{className:"editor-block-navigation__list block-editor-block-navigation__list",role:"list"},Object(f.map)(t,function(e){var t=Object(i.getBlockType)(e.name),c=e.clientId===n;return Object(Ut.createElement)("li",{key:e.clientId},Object(Ut.createElement)("div",{className:"editor-block-navigation__item block-editor-block-navigation__item"},Object(Ut.createElement)(Zt.Button,{className:zt()("editor-block-navigation__item-button block-editor-block-navigation__item-button",{"is-selected":c}),onClick:function(){return o(e.clientId)}},Object(Ut.createElement)(En,{icon:t.icon,showColors:!0}),t.title,c&&Object(Ut.createElement)("span",{className:"screen-reader-text"},Object(p.__)("(selected block)")))),r&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(Ut.createElement)(wn,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:o,showNestedBlocks:!0}))}))}var In=Object(Kt.compose)(Object(a.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,o=t.getBlockHierarchyRootClientId,r=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?r(o(c)):null,selectedBlockClientId:c}}),Object(a.withDispatch)(function(e,t){var n=t.onSelect,o=void 0===n?f.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),o(t)}}}))(function(e){var t=e.rootBlock,n=e.rootBlocks,o=e.selectedBlockClientId,r=e.selectBlock;if(!n||0===n.length)return null;var i=t&&(t.clientId!==o||t.innerBlocks&&0!==t.innerBlocks.length);return Object(Ut.createElement)(Zt.NavigableMenu,{role:"presentation",className:"editor-block-navigation__container block-editor-block-navigation__container"},Object(Ut.createElement)("p",{className:"editor-block-navigation__label block-editor-block-navigation__label"},Object(p.__)("Block Navigation")),i&&Object(Ut.createElement)(wn,{blocks:[t],selectedBlockClientId:o,selectBlock:r,showNestedBlocks:!0}),!i&&Object(Ut.createElement)(wn,{blocks:n,selectedBlockClientId:o,selectBlock:r}))}),Tn=Object(Ut.createElement)(Zt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(Ut.createElement)(Zt.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var Bn=Object(a.withSelect)(function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}})(function(e){var t=e.hasBlocks,n=e.isDisabled,o=t&&!n;return Object(Ut.createElement)(Zt.Dropdown,{renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ut.createElement)(Ut.Fragment,null,o&&Object(Ut.createElement)(Zt.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(b.a)({},Cn.rawShortcut.access("o"),n)}),Object(Ut.createElement)(Zt.IconButton,{icon:Tn,"aria-expanded":t,onClick:o?n:void 0,label:Object(p.__)("Block Navigation"),className:"editor-block-navigation block-editor-block-navigation",shortcut:Cn.displayShortcut.access("o"),"aria-disabled":!o}))},renderContent:function(e){var t=e.onClose;return Object(Ut.createElement)(In,{onSelect:t})}})}),xn=Object(Kt.createHigherOrderComponent)(Object(a.withSelect)(function(e,t){var n=e("core/block-editor").getSettings(),o=void 0===t.colors?n.colors:t.colors,r=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:o,disableCustomColors:r,hasColorsToChoose:!Object(f.isEmpty)(o)||!r}}),"withColorContext"),Ln=xn(Zt.ColorPalette),Nn=n(45),Mn=n.n(Nn),Rn=function(e,t,n){if(t){var o=Object(f.find)(e,{slug:t});if(o)return o}return{color:n}},An=function(e,t){return Object(f.find)(e,{color:t})};function Pn(e,t){if(e&&t)return"has-".concat(Object(f.kebabCase)(t),"-").concat(e)}var Dn=[],Fn=function(e){return Object(Kt.createHigherOrderComponent)(function(t){return function(n){return Object(Ut.createElement)(t,Object(Ht.a)({},n,{colors:e}))}},"withCustomColorPalette")},Hn=function(){return Object(a.withSelect)(function(e){var t=e("core/block-editor").getSettings();return{colors:Object(f.get)(t,["colors"],Dn)}})};function Un(e,t){var n=Object(f.reduce)(e,function(e,t){return Object(s.a)({},e,Object(f.isString)(t)?Object(b.a)({},t,Object(f.kebabCase)(t)):t)},{});return Object(Kt.compose)([t,function(e){return function(t){function o(e){var t;return Object(Gt.a)(this,o),(t=Object(Yt.a)(this,Object($t.a)(o).call(this,e))).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(Jt.a)(Object(Jt.a)(t)))},t.state={},t}return Object(Xt.a)(o,t),Object(qt.a)(o,[{key:"getMostReadableColor",value:function(e){return function(e,t){return Mn.a.mostReadable(t,Object(f.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(f.reduce)(n,function(t,n,o){var r=Object(f.upperFirst)(o),i="custom".concat(r);return t["set".concat(r)]=e.createSetColor(o,i),t},{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(o){var r,i=An(n.props.colors,o);n.props.setAttributes((r={},Object(b.a)(r,e,i&&i.slug?i.slug:void 0),Object(b.a)(r,t,i&&i.slug?void 0:o),r))}}},{key:"render",value:function(){return Object(Ut.createElement)(e,Object(s.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var o=e.attributes,r=e.colors;return Object(f.reduce)(n,function(e,n,i){var c=Rn(r,o[i],o["custom".concat(Object(f.upperFirst)(i))]),l=t[i];return Object(f.get)(l,["color"])===c.color&&l?e[i]=l:e[i]=Object(s.a)({},c,{class:Pn(n,c.slug)}),e},{})}}]),o}(Ut.Component)}])}function Vn(e){return function(){for(var t=Fn(e),n=arguments.length,o=new Array(n),r=0;r=24?"large":"small"}))return null;var s=l.getBrightness()1?function(e,t,n,o,r){var i=t+1;if(r<0&&n)return Object(p.__)("Blocks cannot be moved up as they are already at the top");if(r>0&&o)return Object(p.__)("Blocks cannot be moved down as they are already at the bottom");if(r<0&&!n)return Object(p.sprintf)(Object(p._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(r>0&&!o)return Object(p.sprintf)(Object(p._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,o,r,i):o&&r?Object(p.sprintf)(Object(p.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!r?Object(p.sprintf)(Object(p.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&r?Object(p.sprintf)(Object(p.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!o?Object(p.sprintf)(Object(p.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&o?Object(p.sprintf)(Object(p.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Qn=Object(Ut.createElement)(Zt.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ut.createElement)(Zt.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),eo=Object(Ut.createElement)(Zt.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ut.createElement)(Zt.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),to=Object(Ut.createElement)(Zt.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Ut.createElement)(Zt.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),no=Object(a.withSelect)(function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlockIndex,i=(0,o.getBlockRootClientId)(n);return{index:r(n,i),rootClientId:i}})(function(e){var t=e.children,n=e.clientId,o=e.rootClientId,r=e.blockElementId,i=e.index,c=e.onDragStart,l=e.onDragEnd,a={type:"block",srcIndex:i,srcRootClientId:o,srcClientId:n};return Object(Ut.createElement)(Zt.Draggable,{elementId:r,transferData:a,onDragStart:c,onDragEnd:l},function(e){var n=e.onDraggableStart,o=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:o})})}),oo=function(e){var t=e.isVisible,n=e.className,o=e.icon,r=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,l=e.clientId;if(!t)return null;var a=zt()("editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle",n);return Object(Ut.createElement)(no,{clientId:l,blockElementId:c,onDragStart:r,onDragEnd:i},function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(Ut.createElement)("div",{className:a,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},o)})},ro=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onBlur=e.onBlur.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,o=e.isFirst,r=e.isLast,i=e.isDraggable,c=e.onDragStart,l=e.onDragEnd,a=e.clientIds,s=e.blockElementId,u=e.blockType,d=e.firstIndex,b=e.isLocked,h=e.instanceId,v=e.isHidden,m=this.state.isFocused,g=Object(f.castArray)(a).length;return b||o&&r?null:Object(Ut.createElement)("div",{className:zt()("editor-block-mover block-editor-block-mover",{"is-visible":m||!v})},Object(Ut.createElement)(Zt.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:o?null:t,icon:Qn,label:Object(p.__)("Move up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(h),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Ut.createElement)(oo,{className:"editor-block-mover__control block-editor-block-mover__control",icon:to,clientId:a,blockElementId:s,isVisible:i,onDragStart:c,onDragEnd:l}),Object(Ut.createElement)(Zt.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:r?null:n,icon:eo,label:Object(p.__)("Move down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(h),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Ut.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(h),className:"editor-block-mover__description block-editor-block-mover__description"},Zn(g,u&&u.title,d,o,r,-1)),Object(Ut.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(h),className:"editor-block-mover__description block-editor-block-mover__description"},Zn(g,u&&u.title,d,o,r,1)))}}]),t}(Ut.Component),io=Object(Kt.compose)(Object(a.withSelect)(function(e,t){var n=t.clientIds,o=e("core/block-editor"),r=o.getBlock,c=o.getBlockIndex,l=o.getTemplateLock,a=o.getBlockRootClientId,s=Object(f.first)(Object(f.castArray)(n)),u=r(s),d=a(Object(f.first)(Object(f.castArray)(n)));return{firstIndex:c(s,d),blockType:u?Object(i.getBlockType)(u.name):null,isLocked:"all"===l(d),rootClientId:d}}),Object(a.withDispatch)(function(e,t){var n=t.clientIds,o=t.rootClientId,r=e("core/block-editor"),i=r.moveBlocksDown,c=r.moveBlocksUp;return{onMoveDown:Object(f.partial)(i,n,o),onMoveUp:Object(f.partial)(c,n,o)}}),Kt.withInstanceId)(ro);var co=Object(a.withSelect)(function(e){var t=e("core").canUser;return{hasUploadPermissions:Object(f.defaultTo)(t("create","media"),!0)}})(function(e){var t=e.hasUploadPermissions,n=e.fallback,o=void 0===n?null:n,r=e.children;return t?r:o}),lo=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onFilesDrop=e.onFilesDrop.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onHTMLDrop=e.onHTMLDrop.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onDrop=e.onDrop.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"getInsertIndex",value:function(e){var t=this.props,n=t.clientId,o=t.rootClientId,r=t.getBlockIndex;if(void 0!==n){var i=r(n,o);return"top"===e.y?i:i+1}}},{key:"onFilesDrop",value:function(e,t){var n=Object(i.findTransform)(Object(i.getBlockTransforms)("from"),function(t){return"files"===t.type&&t.isMatch(e)});if(n){var o=this.getInsertIndex(t),r=n.transform(e,this.props.updateBlockAttributes);this.props.insertBlocks(r,o)}}},{key:"onHTMLDrop",value:function(e,t){var n=Object(i.pasteHandler)({HTML:e,mode:"BLOCKS"});n.length&&this.props.insertBlocks(n,this.getInsertIndex(t))}},{key:"onDrop",value:function(e,t){var n=this.props,o=n.rootClientId,r=n.clientId,i=n.getClientIdsOfDescendants,c=n.getBlockIndex,l=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),a=l.srcRootClientId,s=l.srcClientId,u=l.srcIndex,d=l.type;if("block"===d&&s!==r&&!function(e,t){return i([e]).some(function(e){return e===t})}(s,r||o)){var b,f,p=r?c(r,o):void 0,h=this.getInsertIndex(t),v=p&&u0&&Object(Ut.createElement)("div",{className:"editor-warning__actions block-editor-warning__actions"},Ut.Children.map(n,function(e,t){return Object(Ut.createElement)("span",{key:t,className:"editor-warning__action block-editor-warning__action"},e)}))),r&&Object(Ut.createElement)(Zt.Dropdown,{className:"editor-warning__secondary block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ut.createElement)(Zt.IconButton,{icon:"ellipsis",label:Object(p.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(Ut.createElement)(Zt.MenuGroup,null,r.map(function(e,t){return Object(Ut.createElement)(Zt.MenuItem,{onClick:e.onClick,key:t},e.title)}))}}))},uo=n(207),bo=function(e){var t=e.title,n=e.rawContent,o=e.renderedContent,r=e.action,i=e.actionText,c=e.className;return Object(Ut.createElement)("div",{className:c},Object(Ut.createElement)("div",{className:"editor-block-compare__content block-editor-block-compare__content"},Object(Ut.createElement)("h2",{className:"editor-block-compare__heading block-editor-block-compare__heading"},t),Object(Ut.createElement)("div",{className:"editor-block-compare__html block-editor-block-compare__html"},n),Object(Ut.createElement)("div",{className:"editor-block-compare__preview block-editor-block-compare__preview edit-post-visual-editor"},o)),Object(Ut.createElement)("div",{className:"editor-block-compare__action block-editor-block-compare__action"},Object(Ut.createElement)(Zt.Button,{isLarge:!0,tabIndex:"0",onClick:r},i)))},fo=function(e){function t(){return Object(Gt.a)(this,t),Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"getDifference",value:function(e,t){return Object(uo.diffChars)(e,t).map(function(e,t){var n=zt()({"editor-block-compare__added block-editor-block-compare__added":e.added,"editor-block-compare__removed block-editor-block-compare__removed":e.removed});return Object(Ut.createElement)("span",{key:t,className:n},e.value)})}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(f.castArray)(e),n=t.map(function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)}),o=t.map(function(e){return Object(i.getSaveElement)(e.name,e.attributes,e.innerBlocks)});return{rawContent:n.join(""),renderedContent:o}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,o=e.onConvert,r=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),l=this.getConvertedContent(r(t)),a=this.getDifference(c.rawContent,l.rawContent);return Object(Ut.createElement)("div",{className:"editor-block-compare__wrapper block-editor-block-compare__wrapper"},Object(Ut.createElement)(bo,{title:Object(p.__)("Current"),className:"editor-block-compare__current block-editor-block-compare__current",action:n,actionText:Object(p.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(Ut.createElement)(bo,{title:Object(p.__)("After Conversion"),className:"editor-block-compare__converted block-editor-block-compare__converted",action:o,actionText:i,rawContent:a,renderedContent:l.renderedContent}))}}]),t}(Ut.Component),po=function(e){function t(e){var n;return Object(Gt.a)(this,t),(n=Object(Yt.a)(this,Object($t.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onCompareClose=n.onCompareClose.bind(Object(Jt.a)(Object(Jt.a)(n))),n}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,o=e.convertToClassic,r=e.attemptBlockRecovery,c=e.block,l=!!Object(i.getBlockType)("core/html"),a=this.state.compare,s=[{title:Object(p.__)("Convert to Classic Block"),onClick:o},{title:Object(p.__)("Attempt Block Recovery"),onClick:r}];return a?Object(Ut.createElement)(Zt.Modal,{title:Object(p.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare block-editor-block-compare"},Object(Ut.createElement)(fo,{block:c,onKeep:t,onConvert:n,convertor:ho,convertButtonText:Object(p.__)("Convert to Blocks")})):Object(Ut.createElement)(so,{actions:[Object(Ut.createElement)(Zt.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!l},Object(p._x)("Resolve","imperative verb")),l&&Object(Ut.createElement)(Zt.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(p.__)("Convert to HTML"))],secondaryActions:s},Object(p.__)("This block contains unexpected or invalid content."))}}]),t}(Ut.Component),ho=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},vo=Object(Kt.compose)([Object(a.withSelect)(function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}}),Object(a.withDispatch)(function(e,t){var n=t.block,o=e("core/block-editor").replaceBlock;return{convertToClassic:function(){o(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){o(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){o(n.clientId,ho(n))},attemptBlockRecovery:function(){var e,t,r,c;o(n.clientId,(t=(e=n).name,r=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,r,c)))}}})])(po),mo=Object(Ut.createElement)(so,null,Object(p.__)("This block has encountered an error and cannot be previewed.")),go=function(){return mo},Oo=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(Ut.Component),ko=n(61),jo=n.n(ko),yo=function(e){function t(e){var n;return Object(Gt.a)(this,t),(n=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onBlur=n.onBlur.bind(Object(Jt.a)(Object(Jt.a)(n))),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidUpdate",value:function(e){Object(f.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(i.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=this.state.html,t=Object(i.getBlockType)(this.props.block.name),n=Object(i.getBlockAttributes)(t,e,this.props.block.attributes),o=e||Object(i.getSaveContent)(t,n),r=!e||Object(i.isValidBlockContent)(t,n,o);this.props.onChange(this.props.clientId,n,o,r),e||this.setState({html:o})}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return Object(Ut.createElement)(jo.a,{className:"editor-block-list__block-html-textarea block-editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(Ut.Component),_o=Object(Kt.compose)([Object(a.withSelect)(function(e,t){return{block:e("core/block-editor").getBlock(t.clientId)}}),Object(a.withDispatch)(function(e){return{onChange:function(t,n,o,r){e("core/block-editor").updateBlock(t,{attributes:n,originalContent:o,isValid:r})}}})])(yo);var So=Object(a.withSelect)(function(e,t){return{name:(0,e("core/block-editor").getBlockName)(t.clientId)}})(function(e){var t=e.name;if(!t)return null;var n=Object(i.getBlockType)(t);return n?n.title:null}),Co=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onBlur=e.onBlur.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onFocus",value:function(e){this.setState({isFocused:!0}),e.stopPropagation()}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.clientId,n=e.rootClientId;return Object(Ut.createElement)("div",{className:"editor-block-list__breadcrumb block-editor-block-list__breadcrumb"},Object(Ut.createElement)(Zt.Toolbar,null,n&&Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(So,{clientId:n}),Object(Ut.createElement)("span",{className:"editor-block-list__descendant-arrow block-editor-block-list__descendant-arrow"})),Object(Ut.createElement)(So,{clientId:t})))}}]),t}(Ut.Component),Eo=Object(Kt.compose)([Object(a.withSelect)(function(e,t){return{rootClientId:(0,e("core/block-editor").getBlockRootClientId)(t.clientId)}})])(Co),wo=window,Io=wo.Node,To=wo.getSelection,Bo=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(Jt.a)(Object(Jt.a)(e))),e.focusSelection=e.focusSelection.bind(Object(Jt.a)(Object(Jt.a)(e))),e.switchOnKeyDown=Object(f.cond)([[Object(f.matchesProperty)(["keyCode"],Cn.ESCAPE),e.focusSelection]]),e.toolbar=Object(Ut.createRef)(),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"focusToolbar",value:function(){var e=Jn.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"focusSelection",value:function(){var e=To();if(e){var t=e.focusNode;t.nodeType!==Io.ELEMENT_NODE&&(t=t.parentElement),t&&t.focus()}}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(u.a)(e,["children"]);return Object(Ut.createElement)(Zt.NavigableMenu,Object(Ht.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar,onKeyDown:this.switchOnKeyDown},Object(f.omit)(n,["focusOnMount"])),Object(Ut.createElement)(Zt.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(Ut.Component);var xo=function(e){var t=e.focusOnMount;return Object(Ut.createElement)(Bo,{focusOnMount:t,className:"editor-block-contextual-toolbar block-editor-block-contextual-toolbar","aria-label":Object(p.__)("Block tools")},Object(Ut.createElement)(Qi,null))};var Lo=Object(a.withSelect)(function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getMultiSelectedBlockClientIds,i=o.isMultiSelecting,c=o.getBlockIndex,l=o.getBlockCount,a=r(),s=c(Object(f.first)(a),n),u=c(Object(f.last)(a),n);return{multiSelectedBlockClientIds:a,isSelecting:i(),isFirst:0===s,isLast:u+1===l()}})(function(e){var t=e.multiSelectedBlockClientIds,n=e.clientId,o=e.isSelecting,r=e.isFirst,i=e.isLast;return o?null:Object(Ut.createElement)(io,{key:"mover",clientId:n,clientIds:t,isFirst:r,isLast:i})}),No=n(67),Mo=n.n(No),Ro=n(23);function Ao(e){var t=e.name,n=e.attributes,o=Object(i.createBlock)(t,n);return Object(Ut.createElement)(Zt.Disabled,{className:"editor-block-preview__content block-editor-block-preview__content editor-styles-wrapper","aria-hidden":!0},Object(Ut.createElement)(On,{name:t,focus:!1,attributes:o.attributes,setAttributes:f.noop}))}var Po=function(e){return Object(Ut.createElement)("div",{className:"editor-block-preview block-editor-block-preview"},Object(Ut.createElement)("div",{className:"editor-block-preview__title block-editor-block-preview__title"},Object(p.__)("Preview")),Object(Ut.createElement)(Ao,e))};var Do=function(e){var t=e.icon,n=e.hasChildBlocksWithInserterSupport,o=e.onClick,r=e.isDisabled,i=e.title,c=e.className,l=Object(u.a)(e,["icon","hasChildBlocksWithInserterSupport","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{},s=t&&t.shadowColor?{backgroundColor:t.shadowColor}:{};return Object(Ut.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(Ut.createElement)("button",Object(Ht.a)({className:zt()("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:r,"aria-label":i},l),Object(Ut.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:a},Object(Ut.createElement)(En,{icon:t,showColors:!0}),n&&Object(Ut.createElement)("span",{className:"editor-block-types-list__item-icon-stack block-editor-block-types-list__item-icon-stack",style:s})),Object(Ut.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},i)))};var Fo=function(e){var t=e.items,n=e.onSelect,o=e.onHover,r=void 0===o?function(){}:o,c=e.children;return Object(Ut.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map(function(e){return Object(Ut.createElement)(Do,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,hasChildBlocksWithInserterSupport:e.hasChildBlocksWithInserterSupport,onClick:function(){n(e),r(null)},onFocus:function(){return r(e)},onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onBlur:function(){return r(null)},isDisabled:e.isDisabled,title:e.title})}),c)};var Ho=Object(Kt.compose)(Object(Kt.ifCondition)(function(e){var t=e.items;return t&&t.length>0}),Object(a.withSelect)(function(e,t){var n=t.rootClientId,o=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:o&&o.title,rootBlockIcon:o&&o.icon}}))(function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,o=e.items,r=Object(u.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(Ut.createElement)("div",{className:"editor-inserter__child-blocks block-editor-inserter__child-blocks"},(t||n)&&Object(Ut.createElement)("div",{className:"editor-inserter__parent-block-header block-editor-inserter__parent-block-header"},Object(Ut.createElement)(En,{icon:t,showColors:!0}),n&&Object(Ut.createElement)("h2",null,n)),Object(Ut.createElement)(Fo,Object(Ht.a)({items:o},r)))}),Uo=function(e){return e.stopPropagation()},Vo=function(e){return e=(e=(e=(e=Object(f.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},zo=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onHover=e.onHover.bind(Object(Jt.a)(Object(Jt.a)(e))),e.panels={},e.inserterResults=Object(Ut.createRef)(),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks(),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,n=t.showInsertionPoint,o=t.hideInsertionPoint;e?n():o()}},{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(f.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(d.a)(t.state.openPanels),[e])}),t.props.setTimeout(function(){Mo()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})}))}}},{key:"filterOpenPanels",value:function(e,t,n,o){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var r=[];return o.length>0&&r.push("reusable"),n.length>0&&(r=r.concat(Object.keys(t))),r}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,o=t.items,r=t.rootChildBlocks,c=function(e,t){var n=Vo(t),o=function(e){return-1!==Vo(e).indexOf(n)},r=Object(i.getCategories)();return e.filter(function(e){var t=Object(f.find)(r,{slug:e.category});return o(e.title)||Object(f.some)(e.keywords,o)||t&&o(t.title)})}(o,e),l=Object(f.filter)(c,function(e){var t=e.name;return Object(f.includes)(r,t)}),a=[];if(!e){var s=this.props.maxSuggestedItems||9;a=Object(f.filter)(o,function(e){return e.utility>0}).slice(0,s)}var u=Object(f.filter)(c,{category:"reusable"}),d=function(e){return Object(f.findIndex)(Object(i.getCategories)(),function(t){return t.slug===e.category})},b=Object(f.flow)(function(e){return Object(f.filter)(e,function(e){return"reusable"!==e.category})},function(e){return Object(f.sortBy)(e,d)},function(e){return Object(f.groupBy)(e,"category")})(c);this.setState({hoveredItem:null,childItems:l,filterValue:e,suggestedItems:a,reusableItems:u,itemsPerCategory:b,openPanels:this.filterOpenPanels(e,b,c,u)});var h=Object.keys(b).reduce(function(e,t){return e+b[t].length},0);n(Object(p.sprintf)(Object(p._n)("%d result found.","%d results found.",h),h))}},{key:"onKeyDown",value:function(e){Object(f.includes)([Cn.LEFT,Cn.DOWN,Cn.RIGHT,Cn.UP,Cn.BACKSPACE,Cn.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.onSelect,r=t.rootClientId,c=this.state,l=c.childItems,a=c.hoveredItem,s=c.itemsPerCategory,u=c.openPanels,d=c.reusableItems,b=c.suggestedItems,h=function(e){return-1!==u.indexOf(e)};return Object(Ut.createElement)("div",{className:"editor-inserter__menu block-editor-inserter__menu",onKeyPress:Uo,onKeyDown:this.onKeyDown},Object(Ut.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(p.__)("Search for a block")),Object(Ut.createElement)("input",{id:"block-editor-inserter__search-".concat(n),type:"search",placeholder:Object(p.__)("Search for a block"),className:"editor-inserter__search block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(Ut.createElement)("div",{className:"editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(p.__)("Available block types")},Object(Ut.createElement)(Ho,{rootClientId:r,items:l,onSelect:o,onHover:this.onHover}),!!b.length&&Object(Ut.createElement)(Zt.PanelBody,{title:Object(p._x)("Most Used","blocks"),opened:h("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(Ut.createElement)(Fo,{items:b,onSelect:o,onHover:this.onHover})),Object(f.map)(Object(i.getCategories)(),function(t){var n=s[t.slug];return n&&n.length?Object(Ut.createElement)(Zt.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:h(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(Ut.createElement)(Fo,{items:n,onSelect:o,onHover:e.onHover})):null}),!!d.length&&Object(Ut.createElement)(Zt.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(p.__)("Reusable"),opened:h("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(Ut.createElement)(Fo,{items:d,onSelect:o,onHover:this.onHover}),Object(Ut.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(Ro.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(p.__)("Manage All Reusable Blocks"))),Object(f.isEmpty)(b)&&Object(f.isEmpty)(d)&&Object(f.isEmpty)(s)&&Object(Ut.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(p.__)("No blocks found."))),a&&Object(i.isReusableBlock)(a)&&Object(Ut.createElement)(Po,{name:a.name,attributes:a.initialAttributes}))}}]),t}(Ut.Component),Ko=Object(Kt.compose)(Object(a.withSelect)(function(e,t){var n=t.clientId,o=t.isAppender,r=t.rootClientId,i=e("core/block-editor"),c=i.getInserterItems,l=i.getBlockName,a=i.getBlockRootClientId,s=i.getBlockSelectionEnd,u=e("core/blocks").getChildBlockNames,d=r;if(!d&&!n&&!o){var b=s();b&&(d=a(b)||void 0)}return{rootChildBlocks:u(l(d)),items:c(d),destinationRootClientId:d}}),Object(a.withDispatch)(function(e,t,n){var o=n.select,r=e("core/block-editor"),c=r.showInsertionPoint,l=r.hideInsertionPoint;function a(){var e=o("core/block-editor"),n=e.getBlockIndex,r=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,l=t.destinationRootClientId,a=t.isAppender;if(c)return n(c,l);var s=r();return!a&&s?n(s,l)+1:i(l).length}return{fetchReusableBlocks:e("core/editor").__experimentalFetchReusableBlocks,showInsertionPoint:function(){var e=a();c(t.destinationRootClientId,e)},hideInsertionPoint:l,onSelect:function(n){var r=e("core/block-editor"),c=r.replaceBlocks,l=r.insertBlock,s=o("core/block-editor").getSelectedBlock,u=t.isAppender,d=n.name,b=n.initialAttributes,f=s(),p=Object(i.createBlock)(d,b);!u&&f&&Object(i.isUnmodifiedDefaultBlock)(f)?c(f.clientId,p):l(p,a(),t.destinationRootClientId),t.onSelect()}}}),Zt.withSpokenMessages,Kt.withInstanceId,Kt.withSafeTimeout)(zo),Wo=function(e){var t=e.onToggle,n=e.disabled,o=e.isOpen;return Object(Ut.createElement)(Zt.IconButton,{icon:"insert",label:Object(p.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":o,disabled:n})},Go=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(Jt.a)(Object(Jt.a)(e))),e.renderToggle=e.renderToggle.bind(Object(Jt.a)(Object(Jt.a)(e))),e.renderContent=e.renderContent.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,o=this.props,r=o.disabled,i=o.renderToggle,c=void 0===i?Wo:i;return c({onToggle:t,isOpen:n,disabled:r})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,o=n.rootClientId,r=n.clientId,i=n.isAppender;return Object(Ut.createElement)(Ko,{onSelect:t,rootClientId:o,clientId:r,isAppender:i})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.title;return Object(Ut.createElement)(Zt.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:n,renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(Ut.Component),qo=Object(Kt.compose)([Object(a.withSelect)(function(e,t){var n=t.rootClientId,o=e("core/block-editor").hasInserterItems;return{title:(0,e("core/editor").getEditedPostAttribute)("title"),hasItems:o(n)}}),Object(Kt.ifCondition)(function(e){return e.hasItems})])(Go);var Yo=Object(l.ifViewportMatches)("< small")(function(e){var t=e.clientId;return Object(Ut.createElement)("div",{className:"editor-block-list__block-mobile-toolbar block-editor-block-list__block-mobile-toolbar"},Object(Ut.createElement)(qo,null),Object(Ut.createElement)(io,{clientIds:[t]}))}),$o=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onFocusInserter=e.onFocusInserter.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,o=t.rootClientId,r=t.clientId;return Object(Ut.createElement)("div",{className:"editor-block-list__insertion-point block-editor-block-list__insertion-point"},n&&Object(Ut.createElement)("div",{className:"editor-block-list__insertion-point-indicator block-editor-block-list__insertion-point-indicator"}),Object(Ut.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:zt()("editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(Ut.createElement)(qo,{rootClientId:o,clientId:r})))}}]),t}(Ut.Component),Xo=Object(a.withSelect)(function(e,t){var n=t.clientId,o=t.rootClientId,r=e("core/block-editor"),i=r.getBlockIndex,c=r.getBlockInsertionPoint,l=r.isBlockInsertionPointVisible,a=i(n,o),s=c();return{showInsertionPoint:l()&&s.index===a&&s.rootClientId===o}})($o),Jo=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(Jt.a)(Object(Jt.a)(e))),e.eventMap={},e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"proxyEvent",value:function(e){var t=!!e.nativeEvent._blockHandled;e.nativeEvent._blockHandled=!0;var n=this.eventMap[e.type];t&&(n+="Handled"),this.props[n]&&this.props[n](e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,o=void 0===n?[]:n,r=t.forwardedRef,i=Object(u.a)(t,["childHandledEvents","forwardedRef"]),c=Object(f.reduce)([].concat(Object(d.a)(o),Object(d.a)(Object.keys(i))),function(t,n){var o=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(o){!!o[2]&&delete i[n];var r="on"+o[1];t[r]=e.proxyEvent,e.eventMap[o[1].toLowerCase()]=r}return t},{});return Object(Ut.createElement)("div",Object(Ht.a)({ref:r},i,c))}}]),t}(Ut.Component),Zo=function(e,t){return Object(Ut.createElement)(Jo,Object(Ht.a)({},e,{forwardedRef:t}))};Zo.displayName="IgnoreNestedEvents";var Qo=Object(Ut.forwardRef)(Zo);var er=Object(Kt.compose)(Object(a.withSelect)(function(e,t){var n=t.rootClientId,o=e("core/block-editor"),r=o.getInserterItems,i=o.getTemplateLock;return{items:r(n),isLocked:!!i(n)}}),Object(a.withDispatch)(function(e,t){var n=t.clientId,o=t.rootClientId;return{onInsert:function(t){var r=t.name,c=t.initialAttributes,l=Object(i.createBlock)(r,c);n?e("core/block-editor").replaceBlocks(n,l):e("core/block-editor").insertBlock(l,void 0,o)}}}))(function(e){var t=e.items,n=e.isLocked,o=e.onInsert;if(n)return null;var r=Object(f.filter)(t,function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(f.isEmpty)(e.initialAttributes))}).slice(0,3);return Object(Ut.createElement)("div",{className:"editor-inserter-with-shortcuts block-editor-inserter-with-shortcuts"},r.map(function(e){return Object(Ut.createElement)(Zt.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block block-editor-inserter-with-shortcuts__block",onClick:function(){return o(e)},label:Object(p.sprintf)(Object(p.__)("Add %s"),e.title),icon:Object(Ut.createElement)(En,{icon:e.icon})})}))}),tr=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={hoverArea:null},e.onMouseLeave=e.onMouseLeave.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onMouseMove=e.onMouseMove.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentWillUnmount",value:function(){this.props.container&&this.toggleListeners(this.props.container,!1)}},{key:"componentDidMount",value:function(){this.props.container&&this.toggleListeners(this.props.container)}},{key:"componentDidUpdate",value:function(e){e.container!==this.props.container&&(e.container&&this.toggleListeners(e.container,!1),this.props.container&&this.toggleListeners(this.props.container,!0))}},{key:"toggleListeners",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"addEventListener":"removeEventListener";e[t]("mousemove",this.onMouseMove),e[t]("mouseleave",this.onMouseLeave)}},{key:"onMouseLeave",value:function(){this.state.hoverArea&&this.setState({hoverArea:null})}},{key:"onMouseMove",value:function(e){var t=this.props,n=t.isRTL,o=t.container.getBoundingClientRect(),r=o.width,i=o.left,c=o.right,l=null;e.clientX-i0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;c(e,n)},onInsertBlocks:function(e,n){var o=t.rootClientId;a(e,n,o)},onInsertDefaultBlockAfter:function(){var e=t.clientId,n=t.rootClientId,r=(0,o("core/block-editor").getBlockIndex)(e,n);s({},n,r+1)},onInsertBlocksAfter:function(e){var n=t.clientId,r=t.rootClientId,i=(0,o("core/block-editor").getBlockIndex)(n,r);a(e,i+1,r)},onRemove:function(e){u(e)},onMerge:function(e){var n=t.clientId,r=o("core/block-editor"),i=r.getPreviousBlockClientId,c=r.getNextBlockClientId;if(e){var l=c(n);l&&d(n,l)}else{var a=i(n);a&&d(a,n)}},onReplace:function(e){b([t.clientId],e)},onMetaChange:function(e){(0,(0,o("core/block-editor").getSettings)().__experimentalMetaSource.onChange)(e)},onShiftSelection:function(){if(t.isSelectionEnabled){var e=o("core/block-editor").getBlockSelectionStart;e()?l(e(),t.clientId):c(t.clientId)}},toggleSelection:function(e){f(e)}}}),lr=Object(Kt.compose)(Kt.pure,Object(l.withViewportMatch)({isLargeViewport:"medium"}),ir,cr,Object(Zt.withFilters)("editor.BlockListBlock"))(rr),ar=n(57);var sr=Object(Kt.compose)(Object(Kt.withState)({hovered:!1}),Object(a.withSelect)(function(e,t){var n=e("core/block-editor"),o=n.getBlockCount,r=n.getBlockName,c=n.isBlockValid,l=n.getSettings,a=n.getTemplateLock,s=!o(t.rootClientId),u=r(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),b=l().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!a(t.rootClientId),placeholder:b}}),Object(a.withDispatch)(function(e,t){var n=e("core/block-editor"),o=n.insertDefaultBlock,r=n.startTyping;return{onAppend:function(){var e=t.rootClientId;o(void 0,e),r()}}}))(function(e){var t=e.isLocked,n=e.isVisible,o=e.onAppend,r=e.showPrompt,i=e.placeholder,c=e.rootClientId,l=e.hovered,a=e.setState;if(t||!n)return null;var s=Object(ar.decodeEntities)(i)||Object(p.__)("Start writing or type / to choose a block");return Object(Ut.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender block-editor-default-block-appender",onMouseEnter:function(){return a({hovered:!0})},onMouseLeave:function(){return a({hovered:!1})}},Object(Ut.createElement)(ao,{rootClientId:c}),Object(Ut.createElement)(jo.a,{role:"button","aria-label":Object(p.__)("Add block"),className:"editor-default-block-appender__content block-editor-default-block-appender__content",readOnly:!0,onFocus:o,value:r?s:""}),l&&Object(Ut.createElement)(er,{rootClientId:c}),Object(Ut.createElement)(qo,{rootClientId:c,position:"top right",isAppender:!0}))});var ur=Object(a.withSelect)(function(e,t){var n=t.rootClientId,o=e("core/block-editor"),r=o.getBlockOrder,c=o.canInsertBlockType;return{isLocked:!!(0,o.getTemplateLock)(n),blockClientIds:r(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}})(function(e){var t=e.blockClientIds,n=e.rootClientId,o=e.canInsertDefaultBlock;return e.isLocked?null:o?Object(Ut.createElement)(Qo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(Ut.createElement)(sr,{rootClientId:n,lastBlockClientId:Object(f.last)(t)})):Object(Ut.createElement)("div",{className:"block-list-appender"},Object(Ut.createElement)(qo,{rootClientId:n,renderToggle:function(e){var t=e.onToggle,n=e.disabled,o=e.isOpen;return Object(Ut.createElement)(Zt.IconButton,{label:Object(p.__)("Add block"),icon:"insert",onClick:t,className:"block-list-appender__toggle","aria-haspopup":"true","aria-expanded":o,disabled:n})},isAppender:!0}))}),dr=function(e){function t(e){var n;return Object(Gt.a)(this,t),(n=Object(Yt.a)(this,Object($t.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onSelectionEnd=n.onSelectionEnd.bind(Object(Jt.a)(Object(Jt.a)(n))),n.setBlockRef=n.setBlockRef.bind(Object(Jt.a)(Object(Jt.a)(n))),n.setLastClientY=n.setLastClientY.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onPointerMove=Object(f.throttle)(n.onPointerMove.bind(Object(Jt.a)(Object(Jt.a)(n))),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.setLastClientY)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.setLastClientY)}},{key:"setLastClientY",value:function(e){var t=e.clientY;this.lastClientY=t}},{key:"setBlockRef",value:function(e,t){null===e?delete this.nodes[t]:this.nodes=Object(s.a)({},this.nodes,Object(b.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=or(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var o=t-n.top,r=Object(f.findLast)(this.coordMapKeys,function(e){return e0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!function(e,t){return void 0!==t.disableCustomColors?t.disableCustomColors:e}(t,n)||(n.colors||e).length>0}(t,n,e)})})(function(e){var t=e.children,n=e.colors,o=e.colorSettings,r=e.disableCustomColors,i=e.title,c=Object(u.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),l=Object(Ut.createElement)("span",{className:"editor-panel-color-settings__panel-title block-editor-panel-color-settings__panel-title"},i,function(e,t){return e.map(function(e,n){var o=e.value,r=e.label,i=e.colors;if(!o)return null;var c=An(i||t,o),l=c&&c.name,a=Object(p.sprintf)(wr,r.toLowerCase(),l||o);return Object(Ut.createElement)(Zt.ColorIndicator,{key:n,colorValue:o,"aria-label":a})})}(o,n));return Object(Ut.createElement)(Zt.PanelBody,Object(Ht.a)({className:"editor-panel-color-settings block-editor-panel-color-settings",title:l},c),o.map(function(e,t){return Object(Ut.createElement)(Er,Object(Ht.a)({key:t},Object(s.a)({colors:n,disableCustomColors:r},e)))}),t)}),Tr=xn(Ir);var Br=function(e){var t=e.onChange,n=e.className,o=Object(u.a)(e,["onChange","className"]);return Object(Ut.createElement)(jo.a,Object(Ht.a)({className:zt()("editor-plain-text block-editor-plain-text",n),onChange:function(e){return t(e.target.value)}},o))},xr=n(41),Lr=n.n(xr),Nr=n(35),Mr=n(49),Rr=n.n(Mr),Ar=Object(a.withSelect)(function(e){return{formatTypes:(0,e("core/rich-text").getFormatTypes)()}})(function(e){var t=e.formatTypes,n=e.onChange,o=e.value;return Object(Ut.createElement)(Ut.Fragment,null,t.map(function(e){var t=e.name,r=e.edit;if(!r)return null;var i=Object(c.getActiveFormat)(o,t),l=void 0!==i,a=Object(c.getActiveObject)(o),s=void 0!==a;return Object(Ut.createElement)(r,{key:t,isActive:l,activeAttributes:l&&i.attributes||{},isObjectActive:s,activeObjectAttributes:s&&a.attributes||{},value:o,onChange:n})}))}),Pr=function(e){var t=e.controls;return Object(Ut.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},Object(Ut.createElement)(Zt.Toolbar,null,t.map(function(e){return Object(Ut.createElement)(Zt.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})}),Object(Ut.createElement)(Zt.Slot,{name:"RichText.ToolbarControls"},function(e){return e.length&&Object(Ut.createElement)(Zt.DropdownMenu,{icon:!1,position:"bottom left",label:Object(p.__)("More Rich Text Controls"),controls:Object(f.orderBy)(e.map(function(e){return Object(B.a)(e,1)[0].props}),"title")})})))},Dr=function(e){return Object(f.pickBy)(e,function(e,t){return n=t,Object(f.startsWith)(n,"aria-")&&!Object(f.isNil)(e);var n})},Fr=window.navigator.userAgent;var Hr="editor-rich-text__editable block-editor-rich-text__editable",Ur=Fr.indexOf("Trident")>=0,Vr=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).call(this))).bindEditorNode=e.bindEditorNode.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"shouldComponentUpdate",value:function(e){var t=this;this.configureIsPlaceholderVisible(e.isPlaceholderVisible),Object(f.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),Object.assign(this.editorNode.style,e.style)),Object(f.isEqual)(this.props.className,e.className)||(this.editorNode.className=zt()(e.className,Hr));var n=function(e,t){var n=Object(f.keys)(Dr(e)),o=Object(f.keys)(Dr(t));return{removedKeys:Object(f.difference)(n,o),updatedKeys:o.filter(function(n){return!Object(f.isEqual)(e[n],t[n])})}}(this.props,e),o=n.removedKeys,r=n.updatedKeys;return o.forEach(function(e){return t.editorNode.removeAttribute(e)}),r.forEach(function(n){return t.editorNode.setAttribute(n,e[n])}),!1}},{key:"configureIsPlaceholderVisible",value:function(e){var t=String(!!e);this.editorNode.getAttribute("data-is-placeholder-visible")!==t&&this.editorNode.setAttribute("data-is-placeholder-visible",t)}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.props.setRef(e),Ur&&(e?this.removeInternetExplorerInputFix=function(e){function t(e){e.stopImmediatePropagation();var t=document.createEvent("Event");t.initEvent("input",!0,!1),t.data=e.data,e.target.dispatchEvent(t)}function n(t){var n=t.target,o=t.keyCode;if((Cn.BACKSPACE===o||Cn.DELETE===o)&&e.contains(n)){var r=document.createEvent("Event");r.initEvent("input",!0,!1),r.data=null,n.dispatchEvent(r)}}return e.addEventListener("textinput",t),document.addEventListener("keyup",n,!0),function(){e.removeEventListener("textinput",t),document.removeEventListener("keyup",n,!0)}}(e):this.removeInternetExplorerInputFix())}},{key:"render",value:function(){var e,t=this.props,n=t.tagName,o=void 0===n?"div":n,r=t.style,i=t.record,c=t.valueToEditableHTML,l=t.className,a=t.isPlaceholderVisible,d=Object(u.a)(t,["tagName","style","record","valueToEditableHTML","className","isPlaceholderVisible"]);return delete d.setRef,Object(Ut.createElement)(o,Object(s.a)((e={role:"textbox","aria-multiline":!0,className:zt()(l,Hr),contentEditable:!0},Object(b.a)(e,"data-is-placeholder-visible",a),Object(b.a)(e,"ref",this.bindEditorNode),Object(b.a)(e,"style",r),Object(b.a)(e,"suppressContentEditableWarning",!0),Object(b.a)(e,"dangerouslySetInnerHTML",{__html:c(i)}),e),d))}}]),t}(Ut.Component);var zr=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(Ut.createElement)(Zt.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(b.a)({},Cn.rawShortcut[n](t),this.onUse)})}}]),t}(Ut.Component),Kr=window.Node,Wr=Kr.TEXT_NODE,Gr=Kr.ELEMENT_NODE;function qr(){var e=window.getSelection();if(0!==e.rangeCount){var t=e.getRangeAt(0).startContainer;if(t.nodeType===Wr&&(t=t.parentNode),t.nodeType===Gr){var n=t.closest("*[contenteditable]");if(n&&n.contains(t))return t.closest("ol,ul")}}}function Yr(){var e=qr();return!e||"true"===e.contentEditable}function $r(e,t){var n=qr();return n?n.nodeName.toLowerCase()===e:e===t}var Xr=function(e){var t=e.onTagNameChange,n=e.tagName,o=e.value,r=e.onChange;return Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(zr,{type:"primary",character:"[",onUse:function(){r(Object(c.outdentListItems)(o))}}),Object(Ut.createElement)(zr,{type:"primary",character:"]",onUse:function(){r(Object(c.indentListItems)(o,{type:n}))}}),Object(Ut.createElement)(zr,{type:"primary",character:"m",onUse:function(){r(Object(c.indentListItems)(o,{type:n}))}}),Object(Ut.createElement)(zr,{type:"primaryShift",character:"m",onUse:function(){r(Object(c.outdentListItems)(o))}}),Object(Ut.createElement)(Sn,null,Object(Ut.createElement)(Zt.Toolbar,{controls:[t&&{icon:"editor-ul",title:Object(p.__)("Convert to unordered list"),isActive:$r("ul",n),onClick:function(){r(Object(c.changeListType)(o,{type:"ul"})),Yr()&&t("ul")}},t&&{icon:"editor-ol",title:Object(p.__)("Convert to ordered list"),isActive:$r("ol",n),onClick:function(){r(Object(c.changeListType)(o,{type:"ol"})),Yr()&&t("ol")}},{icon:"editor-outdent",title:Object(p.__)("Outdent list item"),shortcut:Object(p._x)("Backspace","keyboard key"),onClick:function(){r(Object(c.outdentListItems)(o))}},{icon:"editor-indent",title:Object(p.__)("Indent list item"),shortcut:Object(p._x)("Space","keyboard key"),onClick:function(){r(Object(c.indentListItems)(o,{type:n}))}}].filter(Boolean)})))},Jr=[Cn.rawShortcut.primary("z"),Cn.rawShortcut.primaryShift("z"),Cn.rawShortcut.primary("y")],Zr=Object(Ut.createElement)(Zt.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.fromPairs)(Jr.map(function(e){return[e,function(e){return e.preventDefault()}]}))}),Qr=function(){return Zr};function ei(e){var t,n=e.name,o=e.shortcutType,r=e.shortcutCharacter,i=Object(u.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),o&&r&&(t=Cn.displayShortcut[o](r)),Object(Ut.createElement)(Zt.Fill,{name:c},Object(Ut.createElement)(Zt.ToolbarButton,Object(Ht.a)({},i,{shortcut:t})))}var ti=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),t}(Ut.Component),ni=window,oi=ni.getSelection,ri=(ni.getComputedStyle,new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"])),ii=function(e){function t(e){var n,o=e.value,r=e.onReplace,l=e.multiline;return Object(Gt.a)(this,t),n=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments)),!0!==l&&"p"!==l&&"li"!==l||(n.multilineTag=!0===l?"p":l),"li"===n.multilineTag&&(n.multilineWrapperTags=["ul","ol"]),n.props.onSplit?(n.onSplit=n.props.onSplit,Rr()("wp.editor.RichText onSplit prop",{plugin:"Gutenberg",alternative:"wp.editor.RichText unstableOnSplit prop"})):n.props.unstableOnSplit&&(n.onSplit=n.props.unstableOnSplit),n.onFocus=n.onFocus.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onBlur=n.onBlur.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onChange=n.onChange.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onDeleteKeyDown=n.onDeleteKeyDown.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onKeyDown=n.onKeyDown.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onPaste=n.onPaste.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onCreateUndoLevel=n.onCreateUndoLevel.bind(Object(Jt.a)(Object(Jt.a)(n))),n.setFocusedElement=n.setFocusedElement.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onInput=n.onInput.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onCompositionEnd=n.onCompositionEnd.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onSelectionChange=n.onSelectionChange.bind(Object(Jt.a)(Object(Jt.a)(n))),n.getRecord=n.getRecord.bind(Object(Jt.a)(Object(Jt.a)(n))),n.createRecord=n.createRecord.bind(Object(Jt.a)(Object(Jt.a)(n))),n.applyRecord=n.applyRecord.bind(Object(Jt.a)(Object(Jt.a)(n))),n.isEmpty=n.isEmpty.bind(Object(Jt.a)(Object(Jt.a)(n))),n.valueToFormat=n.valueToFormat.bind(Object(Jt.a)(Object(Jt.a)(n))),n.setRef=n.setRef.bind(Object(Jt.a)(Object(Jt.a)(n))),n.valueToEditableHTML=n.valueToEditableHTML.bind(Object(Jt.a)(Object(Jt.a)(n))),n.handleHorizontalNavigation=n.handleHorizontalNavigation.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onPointerDown=n.onPointerDown.bind(Object(Jt.a)(Object(Jt.a)(n))),n.formatToValue=Lr()(n.formatToValue.bind(Object(Jt.a)(Object(Jt.a)(n))),{size:1}),n.savedContent=o,n.patterns=function(e){var t=e.onReplace,n=e.valueToFormat,o=Object(i.getBlockTransforms)("from").filter(function(e){return"prefix"===e.type});return[function(e){if(!t)return e;var r=Object(c.getSelectionStart)(e),l=Object(c.getTextContent)(e),a=l.slice(r-1,r);if(!/\s/.test(a))return e;var s=l.slice(0,r).trim(),u=Object(i.findTransform)(o,function(e){var t=e.prefix;return s===t});if(!u)return e;var d=n(Object(c.slice)(e,r,l.length)),b=u.transform(d);return t([b]),e},function(e){var t=Object(c.getSelectionStart)(e),n=Object(c.getTextContent)(e);if("`"!==n.slice(t-1,t))return e;var o=n.slice(0,t-1).lastIndexOf("`");if(-1===o)return e;var r=o,i=t-2;return r===i?e:(e=Object(c.remove)(e,r,r+1),e=Object(c.remove)(e,i,i+1),e=Object(c.applyFormat)(e,{type:"code"},r,i))}]}({onReplace:r,valueToFormat:n.valueToFormat}),n.enterPatterns=Object(i.getBlockTransforms)("from").filter(function(e){return"enter"===e.type}),n.state={},n.usedDeprecatedChildrenSource=Array.isArray(o),n.lastHistoryValue=o,n}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"setRef",value:function(e){e?this.editableRef=e:delete this.editableRef}},{key:"setFocusedElement",value:function(){this.props.setFocusedElement&&this.props.setFocusedElement(this.props.instanceId)}},{key:"getRecord",value:function(){var e=this.formatToValue(this.props.value),t=e.formats,n=e.replacements,o=e.text,r=this.state;return{formats:t,replacements:n,text:o,start:r.start,end:r.end,selectedFormat:r.selectedFormat}}},{key:"createRecord",value:function(){var e=oi(),t=e.rangeCount>0?e.getRangeAt(0):null;return Object(c.create)({element:this.editableRef,range:t,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,prepareEditableTree:this.props.prepareEditableTree,__unstableIsEditableTree:!0})}},{key:"applyRecord",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).domOnly;Object(c.apply)({value:e,current:this.editableRef,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,prepareEditableTree:this.props.prepareEditableTree,__unstableDomOnly:t})}},{key:"isEmpty",value:function(){return Object(c.isEmpty)(this.formatToValue(this.props.value))}},{key:"onPaste",value:function(e){var t=e.clipboardData,n=t.items,o=t.files;n=Object(f.isNil)(n)?[]:n,o=Object(f.isNil)(o)?[]:o;var r="",l="";try{r=t.getData("text/plain"),l=t.getData("text/html")}catch(e){try{l=t.getData("Text")}catch(e){return}}e.preventDefault(),window.console.log("Received HTML:\n\n",l),window.console.log("Received plain text:\n\n",r);var a=Object(f.find)([].concat(Object(d.a)(n),Object(d.a)(o)),function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)});if(a&&!l){var s=a.getAsFile?a.getAsFile():a,u=Object(i.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:this.props.tagName}),b=this.props.onReplace&&this.isEmpty();return window.console.log("Received item:\n\n",s),void(b?this.props.onReplace(u):this.onSplit&&this.splitContent(u))}var p=this.getRecord();if(!Object(c.isCollapsed)(p)){var h=(l||r).replace(/<[^>]+>/g,"").trim();if(Object(Ro.isURL)(h))return this.onChange(Object(c.applyFormat)(p,{type:"a",attributes:{href:Object(ar.decodeEntities)(h)}})),void window.console.log("Created link:\n\n",h)}var v=this.props.onReplace&&this.isEmpty(),m="INLINE";v?m="BLOCKS":this.onSplit&&(m="AUTO");var g=Object(i.pasteHandler)({HTML:l,plainText:r,mode:m,tagName:this.props.tagName,canUserUseUnfilteredHTML:this.props.canUserUseUnfilteredHTML});if("string"==typeof g){var O=Object(c.create)({html:g});this.onChange(Object(c.insert)(p,O))}else if(this.onSplit){if(!g.length)return;v?this.props.onReplace(g):this.splitContent(g,{paste:!0})}}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e(),document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"onBlur",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"onInput",value:function(e){if(e&&e.nativeEvent.isComposing)document.removeEventListener("selectionchange",this.onSelectionChange);else{if(e&&e.nativeEvent.inputType){var t=e.nativeEvent.inputType;if(0===t.indexOf("format")||ri.has(t))return void this.applyRecord(this.getRecord())}var n=this.state.selectedFormat,o=this.createRecord(),r=o.formats,i=o.replacements,c=o.text,l=o.start,a=o.end;if(this.formatPlaceholder)(n=this.formatPlaceholder.length)>0?r[this.state.start]=this.formatPlaceholder:delete r[this.state.start];else if(n>0){var u=r[l-1]||[],d=r[l]||[],b=u;d.length>u.length&&(b=d),b=b.slice(0,n),r[this.state.start]=b}else delete r[this.state.start];var f={formats:r,replacements:i,text:c,start:l,end:a,selectedFormat:n};this.onChange(f,{withoutHistory:!0});var p=this.patterns.reduce(function(e,t){return t(e)},f);p!==f&&(this.onCreateUndoLevel(),this.onChange(Object(s.a)({},p,{selectedFormat:n}))),this.props.clearTimeout(this.onInput.timeout),this.onInput.timeout=this.props.setTimeout(this.onCreateUndoLevel,1e3)}}},{key:"onCompositionEnd",value:function(){this.onInput(),document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"onSelectionChange",value:function(){if(this.ignoreSelectionChange)delete this.ignoreSelectionChange;else{var e=this.createRecord(),t=e.start,n=e.end,o=e.formats;if(t!==this.state.start||n!==this.state.end){var r,i=this.props.isCaretWithinFormattedText;if(!i&&o[t]?this.props.onEnterFormattedText():i&&!o[t]&&this.props.onExitFormattedText(),Object(c.isCollapsed)(e)){var l=o[t-1]||[],a=o[t]||[];r=Math.min(l.length,a.length)}this.setState({start:t,end:n,selectedFormat:r}),this.applyRecord(Object(s.a)({},e,{selectedFormat:r}),{domOnly:!0}),delete this.formatPlaceholder}}}},{key:"onChangeEditableValue",value:function(e){var t=e.formats,n=e.text;Object(f.get)(this.props,["onChangeEditableValue"],[]).forEach(function(e){e(t,n)})}},{key:"onChange",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).withoutHistory;this.applyRecord(e);var n=e.start,o=e.end,r=e.formatPlaceholder,i=e.selectedFormat;this.formatPlaceholder=r,this.onChangeEditableValue(e),this.savedContent=this.valueToFormat(e),this.props.onChange(this.savedContent),this.setState({start:n,end:o,selectedFormat:i}),t||this.onCreateUndoLevel()}},{key:"onCreateUndoLevel",value:function(){this.lastHistoryValue!==this.savedContent&&(this.props.onCreateUndoLevel(),this.lastHistoryValue=this.savedContent)}},{key:"onDeleteKeyDown",value:function(e){var t=this.props,n=t.onMerge,o=t.onRemove;if(n||o){var r=e.keyCode===Cn.BACKSPACE;if(Object(c.isCollapsed)(this.createRecord())){var i=this.isEmpty();(i||Object(Jn.isHorizontalEdge)(this.editableRef,r))&&(n&&n(!r),o&&i&&r&&o(!r),e.preventDefault())}}}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey,o=e.altKey,r=e.metaKey,l=e.ctrlKey;if(n||o||r||l||t!==Cn.LEFT&&t!==Cn.RIGHT||this.handleHorizontalNavigation(e),t===Cn.SPACE&&"li"===this.multilineTag){var a=this.createRecord();if(Object(c.isCollapsed)(a)){var u=a.text[a.start-1];u&&u!==c.LINE_SEPARATOR||(this.onChange(Object(c.indentListItems)(a,{type:this.props.tagName})),e.preventDefault())}}if(t===Cn.DELETE||t===Cn.BACKSPACE){var b=this.createRecord(),f=b.replacements,p=b.text,h=b.start,v=b.end;if(0===h&&0!==v&&v===b.text.length)return this.onChange(Object(c.remove)(b)),void e.preventDefault();if(this.multilineTag){var m;if(t===Cn.BACKSPACE){var g=h-1;if(p[g]===c.LINE_SEPARATOR){var O=Object(c.isCollapsed)(b);if(O&&f[g]&&f[g].length){var k=f.slice();k[g]=f[g].slice(0,-1),m=Object(s.a)({},b,{replacements:k})}else m=Object(c.remove)(b,O?h-1:h,v)}}else if(p[v]===c.LINE_SEPARATOR){var j=Object(c.isCollapsed)(b);if(j&&f[v]&&f[v].length){var y=f.slice();y[v]=f[v].slice(0,-1),m=Object(s.a)({},b,{replacements:y})}else m=Object(c.remove)(b,h,j?v+1:v)}m&&(this.onChange(m),e.preventDefault())}this.onDeleteKeyDown(e)}else if(t===Cn.ENTER){e.preventDefault();var _=this.createRecord();if(this.props.onReplace){var S=Object(c.getTextContent)(_),C=Object(i.findTransform)(this.enterPatterns,function(e){return e.regExp.test(S)});if(C)return void this.props.onReplace([C.transform({content:S})])}this.multilineTag?e.shiftKey?this.onChange(Object(c.insertLineBreak)(_)):this.onSplit&&Object(c.isEmptyLine)(_)?this.onSplit.apply(this,Object(d.a)(Object(c.split)(_).map(this.valueToFormat))):this.onChange(Object(c.insertLineSeparator)(_)):e.shiftKey||!this.onSplit?this.onChange(Object(c.insertLineBreak)(_)):this.splitContent()}}},{key:"handleHorizontalNavigation",value:function(e){var t=this.createRecord(),n=t.formats,o=t.text,r=t.start,i=t.end,l=this.state.selectedFormat,a=Object(c.isCollapsed)(t),u=e.keyCode===Cn.LEFT;if(delete this.formatPlaceholder,a&&0===l){if(0===r&&u)return;if(i===o.length&&!u)return}if(a){e.preventDefault(),this.ignoreSelectionChange=!0;var d=n[r-1]||[],b=n[r]||[],f=l;if(d.lengthd.length&&f--):d.length>b.length&&(!u&&l>b.length&&f--,u&&l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.onSplit){var n=this.createRecord(),o=Object(c.split)(n),r=Object(B.a)(o,2),i=r[0],l=r[1];Object(c.isEmpty)(l)?i=n:Object(c.isEmpty)(i)&&(l=n),t.paste&&(i=Object(c.isEmpty)(i)?null:i,l=Object(c.isEmpty)(l)?null:l),i&&(i=this.valueToFormat(i)),l&&(l=this.valueToFormat(l)),this.onSplit.apply(this,[i,l].concat(Object(d.a)(e)))}}},{key:"onPointerDown",value:function(e){var t=e.target;if(t!==this.editableRef&&!t.textContent){var n=t.parentNode,o=Array.from(n.childNodes).indexOf(t),r=t.ownerDocument.createRange(),i=oi();r.setStart(t.parentNode,o),r.setEnd(t.parentNode,o+1),i.removeAllRanges(),i.addRange(r)}}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.tagName,r=n.value,i=n.isSelected;if(o===e.tagName&&r!==e.value&&r!==this.savedContent){if(Array.isArray(r)&&Object(f.isEqual)(r,this.savedContent))return;var l=this.formatToValue(r);if(i){var a=this.formatToValue(e.value),s=Object(c.getTextContent)(a).length;l.start=s,l.end=s}this.applyRecord(l),this.savedContent=r}if(Object.keys(this.props).some(function(n){return 0===n.indexOf("format_")&&(Object(f.isPlainObject)(t.props[n])?Object.keys(t.props[n]).some(function(o){return t.props[n][o]!==e[n][o]}):t.props[n]!==e[n])})){var u=this.formatToValue(r);i&&(u.start=this.state.start,u.end=this.state.end),this.applyRecord(u)}}},{key:"getFormatProps",value:function(){return Object(f.pickBy)(this.props,function(e,t){return t.startsWith("format_")})}},{key:"formatToValue",value:function(e){return Array.isArray(e)?Object(c.create)({html:i.children.toHTML(e),multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):"string"===this.props.format?Object(c.create)({html:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):null===e?Object(c.create)():e}},{key:"valueToEditableHTML",value:function(e){return Object(c.unstableToDom)({value:e,multilineTag:this.multilineTag,prepareEditableTree:this.props.prepareEditableTree}).body.innerHTML}},{key:"removeEditorOnlyFormats",value:function(e){return this.props.formatTypes.forEach(function(t){t.__experimentalCreatePrepareEditableTree&&(e=Object(c.removeFormat)(e,t.name,0,e.text.length))}),e}},{key:"valueToFormat",value:function(e){return e=this.removeEditorOnlyFormats(e),this.usedDeprecatedChildrenSource?i.children.fromDOM(Object(c.unstableToDom)({value:e,multilineTag:this.multilineTag,isEditableTree:!1}).body.childNodes):"string"===this.props.format?Object(c.toHTMLString)({value:e,multilineTag:this.multilineTag}):e}},{key:"render",value:function(){var e=this,t=this.props,n=t.tagName,o=void 0===n?"div":n,r=t.style,i=t.wrapperClassName,c=t.className,l=t.inlineToolbar,a=void 0!==l&&l,s=t.formattingControls,u=t.placeholder,d=t.keepPlaceholderOnFocus,b=void 0!==d&&d,f=t.isSelected,p=t.autocompleters,h=t.onTagNameChange,v=o,m=this.multilineTag,g=Dr(this.props),O=u&&(!f||b)&&this.isEmpty(),k=zt()(i,"editor-rich-text block-editor-rich-text"),j=this.getRecord();return Object(Ut.createElement)("div",{className:k,onFocus:this.setFocusedElement},f&&"li"===this.multilineTag&&Object(Ut.createElement)(Xr,{onTagNameChange:h,tagName:o,value:j,onChange:this.onChange}),f&&!a&&Object(Ut.createElement)(Sn,null,Object(Ut.createElement)(Pr,{controls:s})),f&&a&&Object(Ut.createElement)(Zt.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar block-editor-rich-text__inline-toolbar"},Object(Ut.createElement)(Pr,{controls:s})),Object(Ut.createElement)(cn,{onReplace:this.props.onReplace,completers:p,record:j,onChange:this.onChange},function(t){var n=t.listBoxId,i=t.activeId;return Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(Vr,Object(Ht.a)({tagName:o,style:r,record:j,valueToEditableHTML:e.valueToEditableHTML,isPlaceholderVisible:O,"aria-label":u,"aria-autocomplete":"list","aria-owns":n,"aria-activedescendant":i},g,{className:c,key:v,onPaste:e.onPaste,onInput:e.onInput,onCompositionEnd:e.onCompositionEnd,onKeyDown:e.onKeyDown,onFocus:e.onFocus,onBlur:e.onBlur,onMouseDown:e.onPointerDown,onTouchStart:e.onPointerDown,setRef:e.setRef})),O&&Object(Ut.createElement)(o,{className:zt()("editor-rich-text__editable block-editor-rich-text__editable",c),style:r},m?Object(Ut.createElement)(m,null,u):u),f&&Object(Ut.createElement)(Ar,{value:j,onChange:e.onChange}))}),f&&Object(Ut.createElement)(Qr,null))}}]),t}(Ut.Component);ii.defaultProps={formattingControls:["bold","italic","link","strikethrough"],format:"string",value:""};var ci=Object(Kt.compose)([Kt.withInstanceId,nn(function(e,t){return!1===t.isSelected?{clientId:e.clientId}:!0===t.isSelected?{isSelected:e.isSelected,clientId:e.clientId}:{isSelected:e.isSelected&&e.focusedElement===t.instanceId,setFocusedElement:e.setFocusedElement,clientId:e.clientId}}),Object(a.withSelect)(function(e){var t=e("core/editor").canUserUseUnfilteredHTML,n=e("core/block-editor").isCaretWithinFormattedText,o=e("core/rich-text").getFormatTypes;return{canUserUseUnfilteredHTML:t(),isCaretWithinFormattedText:n(),formatTypes:o()}}),Object(a.withDispatch)(function(e){var t=e("core/block-editor");return{onCreateUndoLevel:t.__unstableMarkLastChangeAsPersistent,onEnterFormattedText:t.enterFormattedText,onExitFormattedText:t.exitFormattedText}}),Kt.withSafeTimeout,Object(Zt.withFilters)("experimentalRichText")])(ii);ci.Content=function(e){var t,n=e.value,o=e.tagName,r=e.multiline,c=Object(u.a)(e,["value","tagName","multiline"]),l=n;!0!==r&&"p"!==r&&"li"!==r||(t=!0===r?"p":r),Array.isArray(n)&&(l=i.children.toHTML(n)),!l&&t&&(l="<".concat(t,">"));var a=Object(Ut.createElement)(Ut.RawHTML,null,l);return o?Object(Ut.createElement)(o,Object(f.omit)(c,["format"]),a):a},ci.isEmpty=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Array.isArray(e)&&!e||0===e.length},ci.Content.defaultProps={format:"string",value:""};var li=ci,ai=Object(Zt.withFilters)("editor.MediaUpload")(function(){return null}),si=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(Jt.a)(Object(Jt.a)(e))),e.state={isSettingsExpanded:!1},e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.renderSettings,o=e.onClose,r=e.onClickOutside,i=e.position,c=void 0===i?"bottom center":i,l=e.focusOnMount,a=void 0===l?"firstElement":l,s=this.state.isSettingsExpanded,u=!!n&&s;return Object(Ut.createElement)(Zt.Popover,{className:"editor-url-popover block-editor-url-popover",focusOnMount:a,position:c,onClose:o,onClickOutside:r},Object(Ut.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},t,!!n&&Object(Ut.createElement)(Zt.IconButton,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(p.__)("Link Settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":s})),u&&Object(Ut.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},n()))}}]),t}(Ut.Component),ui=function(e){var t=e.src,n=e.onChange,o=e.onSubmit,r=e.onClose;return Object(Ut.createElement)(si,{onClose:r},Object(Ut.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:o},Object(Ut.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(p.__)("URL"),placeholder:Object(p.__)("Paste or type URL"),onChange:n,value:t}),Object(Ut.createElement)(Zt.IconButton,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(p.__)("Apply"),type:"submit"})))},di=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onSubmitSrc=e.onSubmitSrc.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onUpload=e.onUpload.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onFilesUpload=e.onFilesUpload.bind(Object(Jt.a)(Object(Jt.a)(e))),e.openURLInput=e.openURLInput.bind(Object(Jt.a)(Object(Jt.a)(e))),e.closeURLInput=e.closeURLInput.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(f.every)(e,function(e){return"image"===e||Object(f.startsWith)(e,"image/")})}},{key:"componentDidMount",value:function(){this.setState({src:Object(f.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(f.get)(e.value,["src"],"")!==Object(f.get)(this.props.value,["src"],"")&&this.setState({src:Object(f.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t=this.props,n=t.onSelect,o=t.multiple,r=t.onError,i=t.allowedTypes;(0,t.mediaUpload)({allowedTypes:i,filesList:e,onFileChange:o?n:function(e){var t=Object(B.a)(e,1)[0];return n(t)},onError:r})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"render",value:function(){var e=this.props,t=e.accept,n=e.icon,o=e.className,r=e.labels,i=void 0===r?{}:r,c=e.onSelect,l=e.value,a=void 0===l?{}:l,s=e.onSelectURL,u=e.onHTMLDrop,d=void 0===u?f.noop:u,b=e.multiple,h=void 0!==b&&b,v=e.notices,m=e.allowedTypes,g=void 0===m?[]:m,O=e.hasUploadPermissions,k=e.mediaUpload,j=this.state,y=j.isURLInputVisible,_=j.src,S=i.instructions||"",C=i.title||"";if(O||s||(S=Object(p.__)("To edit this block, you need permission to upload media.")),!S||!C){var E=1===g.length,w=E&&"audio"===g[0],I=E&&"image"===g[0],T=E&&"video"===g[0];S||(O?(S=Object(p.__)("Drag a media file, upload a new one or select a file from your library."),w?S=Object(p.__)("Drag an audio, upload a new one or select a file from your library."):I?S=Object(p.__)("Drag an image, upload a new one or select a file from your library."):T&&(S=Object(p.__)("Drag a video, upload a new one or select a file from your library."))):!O&&s&&(S=Object(p.__)("Given your current role, you can only link a media file, you cannot upload."),w?S=Object(p.__)("Given your current role, you can only link an audio, you cannot upload."):I?S=Object(p.__)("Given your current role, you can only link an image, you cannot upload."):T&&(S=Object(p.__)("Given your current role, you can only link a video, you cannot upload.")))),C||(C=Object(p.__)("Media"),w?C=Object(p.__)("Audio"):I?C=Object(p.__)("Image"):T&&(C=Object(p.__)("Video")))}return Object(Ut.createElement)(Zt.Placeholder,{icon:n,label:C,instructions:S,className:zt()("editor-media-placeholder block-editor-media-placeholder",o),notices:v},Object(Ut.createElement)(co,null,!!k&&Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(Zt.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:d}),Object(Ut.createElement)(Zt.FormFileUpload,{isLarge:!0,className:"editor-media-placeholder__button block-editor-media-placeholder__button",onChange:this.onUpload,accept:t,multiple:h},Object(p.__)("Upload"))),Object(Ut.createElement)(ai,{gallery:h&&this.onlyAllowsImages(),multiple:h,onSelect:c,allowedTypes:g,value:a.id,render:function(e){var t=e.open;return Object(Ut.createElement)(Zt.Button,{isLarge:!0,className:"editor-media-placeholder__button block-editor-media-placeholder__button",onClick:t},Object(p.__)("Media Library"))}})),s&&Object(Ut.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},Object(Ut.createElement)(Zt.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button",onClick:this.openURLInput,isToggled:y,isLarge:!0},Object(p.__)("Insert from URL")),y&&Object(Ut.createElement)(ui,{src:_,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput})))}}]),t}(Ut.Component),bi=Object(a.withSelect)(function(e){var t=e("core").canUser,n=e("core/block-editor").getSettings;return{hasUploadPermissions:Object(f.defaultTo)(t("create","media"),!0),mediaUpload:n().__experimentalMediaUpload}}),fi=Object(Kt.compose)(bi,Object(Zt.withFilters)("editor.MediaPlaceholder"))(di),pi=n(33),hi=n.n(pi),vi=function(e){return e.stopPropagation()},mi=function(e){function t(e){var n,o=e.autocompleteRef;return Object(Gt.a)(this,t),(n=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(Jt.a)(Object(Jt.a)(n))),n.onKeyDown=n.onKeyDown.bind(Object(Jt.a)(Object(Jt.a)(n))),n.autocompleteRef=o||Object(Ut.createRef)(),n.inputRef=Object(Ut.createRef)(),n.updateSuggestions=Object(f.throttle)(n.updateSuggestions.bind(Object(Jt.a)(Object(Jt.a)(n))),200),n.suggestionNodes=[],n.state={posts:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,o=t.selectedSuggestion;n&&null!==o&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Mo()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),setTimeout(function(){e.scrollingIntoView=!1},100))}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"updateSuggestions",value:function(e){var t=this;if(e.length<2||/^https?:/.test(e))this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});else{this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var n=hi()({path:Object(Ro.addQueryArgs)("/wp/v2/search",{search:e,per_page:20,type:"post"})});n.then(function(e){t.suggestionsRequest===n&&(t.setState({posts:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(p.sprintf)(Object(p._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),e.length),"assertive"):t.props.debouncedSpeak(Object(p.__)("No results."),"assertive"))}).catch(function(){t.suggestionsRequest===n&&t.setState({loading:!1})}),this.suggestionsRequest=n}}},{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,o=t.selectedSuggestion,r=t.posts,i=t.loading;if(n&&r.length&&!i){var c=this.state.posts[this.state.selectedSuggestion];switch(e.keyCode){case Cn.UP:e.stopPropagation(),e.preventDefault();var l=o?o-1:r.length-1;this.setState({selectedSuggestion:l});break;case Cn.DOWN:e.stopPropagation(),e.preventDefault();var a=null===o||o===r.length-1?0:o+1;this.setState({selectedSuggestion:a});break;case Cn.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(p.__)("Link selected.")));break;case Cn.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case Cn.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Cn.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,o=void 0===n?"":n,r=t.autoFocus,i=void 0===r||r,c=t.instanceId,l=t.className,a=this.state,s=a.showSuggestions,u=a.posts,d=a.selectedSuggestion,b=a.loading;return Object(Ut.createElement)("div",{className:zt()("editor-url-input block-editor-url-input",l)},Object(Ut.createElement)("input",{autoFocus:i,type:"text","aria-label":Object(p.__)("URL"),required:!0,value:o,onChange:this.onChange,onInput:vi,placeholder:Object(p.__)("Paste URL or type to search"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":s,"aria-autocomplete":"list","aria-owns":"block-editor-url-input-suggestions-".concat(c),"aria-activedescendant":null!==d?"block-editor-url-input-suggestion-".concat(c,"-").concat(d):void 0,ref:this.inputRef}),b&&Object(Ut.createElement)(Zt.Spinner,null),s&&!!u.length&&Object(Ut.createElement)(Zt.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(Ut.createElement)("div",{className:"editor-url-input__suggestions block-editor-url-input__suggestions",id:"editor-url-input-suggestions-".concat(c),ref:this.autocompleteRef,role:"listbox"},u.map(function(t,n){return Object(Ut.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"block-editor-url-input-suggestion-".concat(c,"-").concat(n),ref:e.bindSuggestionNode(n),className:zt()("editor-url-input__suggestion block-editor-url-input__suggestion",{"is-selected":n===d}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===d},Object(ar.decodeEntities)(t.title)||Object(p.__)("(no title)"))}))))}}]),t}(Ut.Component),gi=Object(Zt.withSpokenMessages)(Object(Kt.withInstanceId)(mi)),Oi=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(Jt.a)(Object(Jt.a)(e))),e.submitLink=e.submitLink.bind(Object(Jt.a)(Object(Jt.a)(e))),e.state={expanded:!1},e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,o=this.state.expanded,r=t?Object(p.__)("Edit Link"):Object(p.__)("Insert Link");return Object(Ut.createElement)("div",{className:"editor-url-input__button block-editor-url-input__button"},Object(Ut.createElement)(Zt.IconButton,{icon:"admin-links",label:r,onClick:this.toggle,className:zt()("components-toolbar__control",{"is-active":t})}),o&&Object(Ut.createElement)("form",{className:"editor-url-input__button-modal block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(Ut.createElement)("div",{className:"editor-url-input__button-modal-line block-editor-url-input__button-modal-line"},Object(Ut.createElement)(Zt.IconButton,{className:"editor-url-input__back block-editor-url-input__back",icon:"arrow-left-alt",label:Object(p.__)("Close"),onClick:this.toggle}),Object(Ut.createElement)(gi,{value:t||"",onChange:n}),Object(Ut.createElement)(Zt.IconButton,{icon:"editor-break",label:Object(p.__)("Submit"),type:"submit"}))))}}]),t}(Ut.Component);var ki=Object(Kt.compose)([Object(a.withSelect)(function(e,t){var n=e("core/block-editor"),o=n.getBlocksByClientId,r=n.getTemplateLock,c=n.getBlockRootClientId,l=o(t.clientIds),a=Object(f.every)(l,function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)}),s=c(t.clientIds[0]);return{isLocked:!!r(s),blocks:l,canDuplicate:a,rootClientId:s,extraProps:t}}),Object(a.withDispatch)(function(e,t,n){var o=n.select,r=t.clientIds,c=t.rootClientId,l=t.blocks,a=t.isLocked,s=t.canDuplicate,u=e("core/block-editor"),d=u.insertBlocks,b=u.multiSelect,p=u.removeBlocks,h=u.insertDefaultBlock;return{onDuplicate:function(){if(!a&&s){var e=(0,o("core/block-editor").getBlockIndex)(Object(f.last)(Object(f.castArray)(r)),c),t=l.map(function(e){return Object(i.cloneBlock)(e)});d(t,e+1,c),t.length>1&&b(Object(f.first)(t).clientId,Object(f.last)(t).clientId)}},onRemove:function(){a||p(r)},onInsertBefore:function(){if(!a){var e=(0,o("core/block-editor").getBlockIndex)(Object(f.first)(Object(f.castArray)(r)),c);h({},c,e)}},onInsertAfter:function(){if(!a){var e=(0,o("core/block-editor").getBlockIndex)(Object(f.last)(Object(f.castArray)(r)),c);h({},c,e+1)}}}})])(function(e){var t=e.onDuplicate,n=e.onRemove,o=e.onInsertBefore,r=e.onInsertAfter,i=e.isLocked,c=e.canDuplicate;return(0,e.children)({onDuplicate:t,onRemove:n,onInsertAfter:r,onInsertBefore:o,isLocked:i,canDuplicate:c})}),ji=function(e){return e.preventDefault(),e},yi={duplicate:{raw:Cn.rawShortcut.primaryShift("d"),display:Cn.displayShortcut.primaryShift("d")},removeBlock:{raw:Cn.rawShortcut.access("z"),display:Cn.displayShortcut.access("z")},insertBefore:{raw:Cn.rawShortcut.primaryAlt("t"),display:Cn.displayShortcut.primaryAlt("t")},insertAfter:{raw:Cn.rawShortcut.primaryAlt("y"),display:Cn.displayShortcut.primaryAlt("y")}},_i=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(Jt.a)(Object(Jt.a)(e))),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(Jt.a)(Object(Jt.a)(e))),e.clearMultiSelection=e.clearMultiSelection.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,o=t.onMultiSelect;e.preventDefault(),o(Object(f.first)(n),Object(f.last)(n))}},{key:"deleteSelectedBlocks",value:function(e){var t=this.props,n=t.selectedBlockClientIds,o=t.hasMultiSelection,r=t.onRemove,i=t.isLocked;o&&(e.preventDefault(),i||r(n))}},{key:"clearMultiSelection",value:function(){var e=this.props,t=e.hasMultiSelection,n=e.clearSelectedBlock;t&&(n(),window.getSelection().removeAllRanges())}},{key:"render",value:function(){var e,t=this.props.selectedBlockClientIds;return Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(Zt.KeyboardShortcuts,{shortcuts:(e={},Object(b.a)(e,Cn.rawShortcut.primary("a"),this.selectAll),Object(b.a)(e,"backspace",this.deleteSelectedBlocks),Object(b.a)(e,"del",this.deleteSelectedBlocks),Object(b.a)(e,"escape",this.clearMultiSelection),e)}),t.length>0&&Object(Ut.createElement)(ki,{clientIds:t},function(e){var t,n=e.onDuplicate,o=e.onRemove,r=e.onInsertAfter,i=e.onInsertBefore;return Object(Ut.createElement)(Zt.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(b.a)(t,yi.duplicate.raw,Object(f.flow)(ji,n)),Object(b.a)(t,yi.removeBlock.raw,Object(f.flow)(ji,o)),Object(b.a)(t,yi.insertBefore.raw,Object(f.flow)(ji,i)),Object(b.a)(t,yi.insertAfter.raw,Object(f.flow)(ji,r)),t)})}))}}]),t}(Ut.Component),Si=Object(Kt.compose)([Object(a.withSelect)(function(e){var t=e("core/block-editor"),n=t.getBlockOrder,o=t.getMultiSelectedBlockClientIds,r=t.hasMultiSelection,i=t.getBlockRootClientId,c=t.getTemplateLock,l=(0,t.getSelectedBlockClientId)(),a=l?[l]:o();return{rootBlocksClientIds:n(),hasMultiSelection:r(),isLocked:Object(f.some)(a,function(e){return!!c(i(e))}),selectedBlockClientIds:a}}),Object(a.withDispatch)(function(e){var t=e("core/block-editor");return{clearSelectedBlock:t.clearSelectedBlock,onMultiSelect:t.multiSelect,onRemove:t.removeBlocks}})])(_i),Ci=Object(a.withSelect)(function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}})(function(e){var t=e.selectedBlockClientId;return t&&Object(Ut.createElement)(Zt.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block block-editor-skip-to-selected-block",onClick:function(){or(t).closest(".block-editor-block-list__block").focus()}},Object(p.__)("Skip to the selected block"))}),Ei=n(135),wi=n.n(Ei);function Ii(e,t,n){var o=new wi.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}var Ti=Object(Kt.compose)([Object(a.withSelect)(function(e,t){var n=t.clientId,o=e("core/block-editor").getBlock,r=e("core/blocks").getBlockStyles,c=o(n),l=Object(i.getBlockType)(c.name);return{name:c.name,attributes:c.attributes,className:c.attributes.className||"",styles:r(c.name),type:l}}),Object(a.withDispatch)(function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/block-editor").updateBlockAttributes(n,{className:t})}}})])(function(e){var t=e.styles,n=e.className,o=e.onChangeClassName,r=e.name,i=e.attributes,c=e.type,l=e.onSwitch,a=void 0===l?f.noop:l,u=e.onHoverClassName,b=void 0===u?f.noop:u;if(!t||0===t.length)return null;c.styles||Object(f.find)(t,"isDefault")||(t=[{name:"default",label:Object(p._x)("Default","block style"),isDefault:!0}].concat(Object(d.a)(t)));var h=function(e,t){var n=!0,o=!1,r=void 0;try{for(var i,c=new wi.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var l=i.value;if(-1!==l.indexOf("is-style-")){var a=l.substring(9),s=Object(f.find)(e,{name:a});if(s)return s}}}catch(e){o=!0,r=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw r}}return Object(f.find)(e,"isDefault")}(t,n);function v(e){var t=Ii(n,h,e);o(t),b(null),a()}return Object(Ut.createElement)("div",{className:"editor-block-styles block-editor-block-styles"},t.map(function(e){var t=Ii(n,h,e);return Object(Ut.createElement)("div",{key:e.name,className:zt()("editor-block-styles__item block-editor-block-styles__item",{"is-active":h===e}),onClick:function(){return v(e)},onKeyDown:function(t){Cn.ENTER!==t.keyCode&&Cn.SPACE!==t.keyCode||(t.preventDefault(),v(e))},onMouseEnter:function(){return b(t)},onMouseLeave:function(){return b(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(Ut.createElement)("div",{className:"editor-block-styles__item-preview block-editor-block-styles__item-preview"},Object(Ut.createElement)(Ao,{name:r,attributes:Object(s.a)({},i,{className:t})})),Object(Ut.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},e.label||e.name))}))}),Bi=n(98);var xi=Object(a.withSelect)(function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}})(function(e){var t=e.blocks,n=Object(Bi.count)(Object(i.serialize)(t),"words");return Object(Ut.createElement)("div",{className:"editor-multi-selection-inspector__card block-editor-multi-selection-inspector__card"},Object(Ut.createElement)(En,{icon:Object(Ut.createElement)(Zt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ut.createElement)(Zt.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(Ut.createElement)("div",{className:"editor-multi-selection-inspector__card-content block-editor-multi-selection-inspector__card-content"},Object(Ut.createElement)("div",{className:"editor-multi-selection-inspector__card-title block-editor-multi-selection-inspector__card-title"},Object(p.sprintf)(Object(p._n)("%d block","%d blocks",t.length),t.length)),Object(Ut.createElement)("div",{className:"editor-multi-selection-inspector__card-description block-editor-multi-selection-inspector__card-description"},Object(p.sprintf)(Object(p._n)("%d word","%d words",n),n))))}),Li=Object(a.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,o=t.getSelectedBlockCount,r=t.getBlockName,c=e("core/blocks").getBlockStyles,l=n(),a=l&&r(l),s=l&&Object(i.getBlockType)(a),u=l&&c(a);return{count:o(),hasBlockStyles:u&&u.length>0,selectedBlockName:a,selectedBlockClientId:l,blockType:s}})(function(e){var t=e.selectedBlockClientId,n=e.selectedBlockName,o=e.blockType,r=e.count,c=e.hasBlockStyles;if(r>1)return Object(Ut.createElement)(xi,null);var l=n===Object(i.getUnregisteredTypeHandlerName)();return o&&t&&!l?Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)("div",{className:"editor-block-inspector__card block-editor-block-inspector__card"},Object(Ut.createElement)(En,{icon:o.icon,showColors:!0}),Object(Ut.createElement)("div",{className:"editor-block-inspector__card-content block-editor-block-inspector__card-content"},Object(Ut.createElement)("div",{className:"editor-block-inspector__card-title block-editor-block-inspector__card-title"},o.title),Object(Ut.createElement)("div",{className:"editor-block-inspector__card-description block-editor-block-inspector__card-description"},o.description))),c&&Object(Ut.createElement)("div",null,Object(Ut.createElement)(Zt.PanelBody,{title:Object(p.__)("Styles"),initialOpen:!1},Object(Ut.createElement)(Ti,{clientId:t}))),Object(Ut.createElement)("div",null,Object(Ut.createElement)(Sr.Slot,null)),Object(Ut.createElement)("div",null,Object(Ut.createElement)(Or.Slot,null,function(e){return!Object(f.isEmpty)(e)&&Object(Ut.createElement)(Zt.PanelBody,{className:"editor-block-inspector__advanced block-editor-block-inspector__advanced",title:Object(p.__)("Advanced"),initialOpen:!1},e)})),Object(Ut.createElement)(Ci,{key:"back"})):Object(Ut.createElement)("span",{className:"editor-block-inspector__no-blocks block-editor-block-inspector__no-blocks"},Object(p.__)("No block selected."))}),Ni=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(Jt.a)(Object(Jt.a)(e))),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,o=t.hasMultiSelection,r=t.clearSelectedBlock,i=n||o;e.target===this.container&&i&&r()}},{key:"render",value:function(){return Object(Ut.createElement)("div",Object(Ht.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(f.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(Ut.Component),Mi=Object(Kt.compose)([Object(a.withSelect)(function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,o=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:o()}}),Object(a.withDispatch)(function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}})])(Ni);var Ri=Object(Kt.compose)([Object(a.withSelect)(function(e,t){var n=t.clientId,o=e("core/block-editor"),r=o.getBlock,c=o.getBlockMode,l=r(n);return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null}}),Object(a.withDispatch)(function(e,t){var n=t.onToggle,o=void 0===n?f.noop:n,r=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(r),o()}}})])(function(e){var t=e.blockType,n=e.mode,o=e.onToggleMode,r=e.small,c=void 0!==r&&r;if(!Object(i.hasBlockSupport)(t,"html",!0))return null;var l="visual"===n?Object(p.__)("Edit as HTML"):Object(p.__)("Edit visually");return Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:o,icon:"html",label:c?l:void 0},!c&&l)});var Ai=Object(Kt.compose)([Object(a.withSelect)(function(e,t){var n=t.clientIds,o=e("core/block-editor"),r=o.getBlocksByClientId,c=o.canInsertBlockType,l=e("core/editor").__experimentalGetReusableBlock,a=e("core").canUser,s=r(n),u=1===s.length&&s[0]&&Object(i.isReusableBlock)(s[0])&&!!l(s[0].attributes.ref);return{isReusable:u,isVisible:u||c("core/block")&&Object(f.every)(s,function(e){return!!e&&e.isValid&&Object(i.hasBlockSupport)(e.name,"reusable",!0)})&&!!a("create","blocks")}}),Object(a.withDispatch)(function(e,t){var n=t.clientIds,o=t.onToggle,r=void 0===o?f.noop:o,i=e("core/editor"),c=i.__experimentalConvertBlockToReusable,l=i.__experimentalConvertBlockToStatic;return{onConvertToStatic:function(){1===n.length&&(l(n[0]),r())},onConvertToReusable:function(){c(n),r()}}})])(function(e){var t=e.isVisible,n=e.isReusable,o=e.onConvertToStatic,r=e.onConvertToReusable;return t?Object(Ut.createElement)(Ut.Fragment,null,!n&&Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(p.__)("Add to Reusable Blocks")),n&&Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(p.__)("Convert to Regular Block"))):null});var Pi=Object(Kt.compose)([Object(a.withSelect)(function(e,t){var n=t.clientId,o=e("core/block-editor").getBlock,r=e("core").canUser,c=e("core/editor").__experimentalGetReusableBlock,l=o(n),a=l&&Object(i.isReusableBlock)(l)?c(l.attributes.ref):null;return{isVisible:!!a&&!!r("delete","blocks",a.id),isDisabled:a&&a.isTemporary}}),Object(a.withDispatch)(function(e,t,n){var o=t.clientId,r=t.onToggle,i=void 0===r?f.noop:r,c=n.select,l=e("core/editor").__experimentalDeleteReusableBlock,a=c("core/block-editor").getBlock;return{onDelete:function(){if(window.confirm(Object(p.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))){var e=a(o);l(e.attributes.ref),i()}}}})])(function(e){var t=e.isVisible,n=e.isDisabled,o=e.onDelete;return t?Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"no",disabled:n,onClick:function(){return o()}},Object(p.__)("Remove from Reusable Blocks")):null});function Di(e){var t=e.shouldRender,n=e.onClick,o=e.small;if(!t)return null;var r=Object(p.__)("Convert to Blocks");return Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:n,icon:"screenoptions",label:o?r:void 0},!o&&r)}var Fi=Object(Kt.compose)(Object(a.withSelect)(function(e,t){var n=t.clientId,o=e("core/block-editor").getBlock(n);return{block:o,shouldRender:o&&"core/html"===o.name}}),Object(a.withDispatch)(function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}}))(Di),Hi=Object(Kt.compose)(Object(a.withSelect)(function(e,t){var n=t.clientId,o=e("core/block-editor").getBlock(n);return{block:o,shouldRender:o&&o.name===Object(i.getFreeformContentHandlerName)()}}),Object(a.withDispatch)(function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}}))(Di),Ui=Object(Zt.createSlotFill)("_BlockSettingsMenuFirstItem"),Vi=Ui.Fill,zi=Ui.Slot;Vi.Slot=zi;var Ki=Vi,Wi=Object(Zt.createSlotFill)("_BlockSettingsMenuPluginsExtension"),Gi=Wi.Fill,qi=Wi.Slot;Gi.Slot=qi;var Yi=Gi;var $i=Object(a.withDispatch)(function(e){var t=e("core/block-editor").selectBlock;return{onSelect:function(e){t(e)}}})(function(e){var t=e.clientIds,n=e.onSelect,o=Object(f.castArray)(t),r=o.length,i=o[0];return Object(Ut.createElement)(ki,{clientIds:t},function(e){var o=e.onDuplicate,c=e.onRemove,l=e.onInsertAfter,a=e.onInsertBefore,s=e.canDuplicate,u=e.isLocked;return Object(Ut.createElement)(Zt.Dropdown,{contentClassName:"editor-block-settings-menu__popover block-editor-block-settings-menu__popover",position:"bottom right",renderToggle:function(e){var t=e.onToggle,o=e.isOpen,c=zt()("editor-block-settings-menu__toggle block-editor-block-settings-menu__toggle",{"is-opened":o}),l=o?Object(p.__)("Hide options"):Object(p.__)("More options");return Object(Ut.createElement)(Zt.Toolbar,{controls:[{icon:"ellipsis",title:l,onClick:function(){1===r&&n(i),t()},className:c,extraProps:{"aria-expanded":o}}]})},renderContent:function(e){var n=e.onClose;return Object(Ut.createElement)(Zt.NavigableMenu,{className:"editor-block-settings-menu__content block-editor-block-settings-menu__content"},Object(Ut.createElement)(Ki.Slot,{fillProps:{onClose:n}}),1===r&&Object(Ut.createElement)(Hi,{clientId:i}),1===r&&Object(Ut.createElement)(Fi,{clientId:i}),!u&&s&&Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:o,icon:"admin-page",shortcut:yi.duplicate.display},Object(p.__)("Duplicate")),!u&&Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:a,icon:"insert-before",shortcut:yi.insertBefore.display},Object(p.__)("Insert Before")),Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:l,icon:"insert-after",shortcut:yi.insertAfter.display},Object(p.__)("Insert After"))),1===r&&Object(Ut.createElement)(Ri,{clientId:i,onToggle:n}),Object(Ut.createElement)(Ai,{clientIds:t,onToggle:n}),Object(Ut.createElement)(Yi.Slot,{fillProps:{clientIds:t,onClose:n}}),Object(Ut.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),1===r&&Object(Ut.createElement)(Pi,{clientId:i,onToggle:n}),!u&&Object(Ut.createElement)(Zt.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:c,icon:"trash",shortcut:yi.removeBlock.display},Object(p.__)("Remove Block")))}})})}),Xi=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(Jt.a)(Object(Jt.a)(e))),e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,o=t.onTransform,r=t.inserterItems,c=t.hasBlockStyles,l=this.state.hoveredClassName;if(!n||!n.length)return null;var a,u=Object(f.mapKeys)(r,function(e){return e.name}),d=Object(f.orderBy)(Object(f.filter)(Object(i.getPossibleBlockTransformations)(n),function(e){return e&&!!u[e.name]}),function(e){return u[e.name].frecency},"desc");if(1===Object(f.uniq)(Object(f.map)(n,"name")).length){var b=n[0].name,h=Object(i.getBlockType)(b);a=h.icon}else a="layout";return c||d.length?Object(Ut.createElement)(Zt.Dropdown,{position:"bottom right",className:"editor-block-switcher block-editor-block-switcher",contentClassName:"editor-block-switcher__popover block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,o=e.isOpen,r=1===n.length?Object(p.__)("Change block type or style"):Object(p.sprintf)(Object(p._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(Ut.createElement)(Zt.Toolbar,null,Object(Ut.createElement)(Zt.IconButton,{className:"editor-block-switcher__toggle block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":o,label:r,tooltip:r,onKeyDown:function(e){o||e.keyCode!==Cn.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(En,{icon:a,showColors:!0}),Object(Ut.createElement)(Zt.SVG,{className:"editor-block-switcher__transform block-editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ut.createElement)(Zt.Path,{d:"M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z"})))}))},renderContent:function(t){var r=t.onClose;return Object(Ut.createElement)(Ut.Fragment,null,c&&Object(Ut.createElement)(Zt.PanelBody,{title:Object(p.__)("Block Styles"),initialOpen:!0},Object(Ut.createElement)(Ti,{clientId:n[0].clientId,onSwitch:r,onHoverClassName:e.onHoverClassName})),0!==d.length&&Object(Ut.createElement)(Zt.PanelBody,{title:Object(p.__)("Transform To:"),initialOpen:!0},Object(Ut.createElement)(Fo,{items:d.map(function(e){return{id:e.name,icon:e.icon,title:e.title,hasChildBlocksWithInserterSupport:Object(i.hasChildBlocksWithInserterSupport)(e.name)}}),onSelect:function(e){o(n,e.id),r()}})),null!==l&&Object(Ut.createElement)(Po,{name:n[0].name,attributes:Object(s.a)({},n[0].attributes,{className:l})}))}}):Object(Ut.createElement)(Zt.Toolbar,null,Object(Ut.createElement)(Zt.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon",label:Object(p.__)("Block icon")},Object(Ut.createElement)(En,{icon:a,showColors:!0})))}}]),t}(Ut.Component),Ji=Object(Kt.compose)(Object(a.withSelect)(function(e,t){var n=t.clientIds,o=e("core/block-editor"),r=o.getBlocksByClientId,i=o.getBlockRootClientId,c=o.getInserterItems,l=e("core/blocks").getBlockStyles,a=i(Object(f.first)(Object(f.castArray)(n))),s=r(n),u=s&&1===s.length?s[0]:null,d=u&&l(u.name);return{blocks:s,inserterItems:c(a),hasBlockStyles:d&&d.length>0}}),Object(a.withDispatch)(function(e,t){return{onTransform:function(n,o){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,o))}}}))(Xi);var Zi=Object(a.withSelect)(function(e){var t=e("core/block-editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}})(function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(Ut.createElement)(Ji,{key:"switcher",clientIds:n}):null});var Qi=Object(a.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,o=t.getBlockMode,r=t.getMultiSelectedBlockClientIds,i=t.isBlockValid,c=n();return{blockClientIds:c?[c]:r(),isValid:c?i(c):null,mode:c?o(c):null}})(function(e){var t=e.blockClientIds,n=e.isValid,o=e.mode;return 0===t.length?null:t.length>1?Object(Ut.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},Object(Ut.createElement)(Zi,null),Object(Ut.createElement)($i,{clientIds:t})):Object(Ut.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},"visual"===o&&n&&Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(Ji,{clientIds:t}),Object(Ut.createElement)(mn.Slot,null),Object(Ut.createElement)(Sn.Slot,null)),Object(Ut.createElement)($i,{clientIds:t}))}),ec=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onCopy=function(t){return e.props.onCopy(t)},e.onCut=function(t){return e.props.onCut(t)},e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.onCopy),document.addEventListener("cut",this.onCut)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.onCopy),document.removeEventListener("cut",this.onCut)}},{key:"render",value:function(){return null}}]),t}(Ut.Component),tc=Object(Kt.compose)([Object(a.withDispatch)(function(e,t,n){var o=(0,n.select)("core/block-editor"),r=o.getBlocksByClientId,c=o.getMultiSelectedBlockClientIds,l=o.getSelectedBlockClientId,a=o.hasMultiSelection,s=e("core/block-editor").removeBlocks,u=function(e){var t=l()?[l()]:c();if(0!==t.length&&(a()||!Object(Jn.documentHasSelection)())){var n=Object(i.serialize)(r(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:u,onCut:function(e){if(u(e),a()){var t=l()?[l()]:c();s(t)}}}})])(ec),nc=function(e){function t(){return Object(Gt.a)(this,t),Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=or(e);if(t){var n=Object(Jn.getScrollContainer)(t);n&&Mo()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(Ut.Component),oc=Object(a.withSelect)(function(e){return{extentClientId:(0,e("core/block-editor").getLastMultiSelectedBlockClientId)()}})(nc),rc=[Cn.UP,Cn.RIGHT,Cn.DOWN,Cn.LEFT,Cn.ENTER,Cn.BACKSPACE];var ic=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(Jt.a)(Object(Jt.a)(e))),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(Jt.a)(Object(Jt.a)(e))),e.startTypingInTextField=e.startTypingInTextField.bind(Object(Jt.a)(Object(Jt.a)(e))),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(Jt.a)(Object(Jt.a)(e))),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(Jt.a)(Object(Jt.a)(e))),e.onKeyDown=Object(f.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidMount",value:function(){this.toggleEventBindings(this.props.isTyping)}},{key:"componentDidUpdate",value:function(e){this.props.isTyping!==e.isTyping&&this.toggleEventBindings(this.props.isTyping)}},{key:"componentWillUnmount",value:function(){this.toggleEventBindings(!1)}},{key:"toggleEventBindings",value:function(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",this.stopTypingOnSelectionUncollapse),document[t]("mousemove",this.stopTypingOnMouseMove)}},{key:"stopTypingOnMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.lastMouseMove){var o=this.lastMouseMove,r=o.clientX,i=o.clientY;r===t&&i===n||this.props.onStopTyping()}this.lastMouseMove={clientX:t,clientY:n}}},{key:"stopTypingOnSelectionUncollapse",value:function(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||this.props.onStopTyping()}},{key:"stopTypingOnEscapeKey",value:function(e){this.props.isTyping&&e.keyCode===Cn.ESCAPE&&this.props.onStopTyping()}},{key:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,o=t.onStartTyping,r=e.type,i=e.target;n||!Object(Jn.isTextField)(i)||i.closest(".block-editor-block-toolbar")||("keydown"!==r||function(e){var t=e.keyCode;return!e.shiftKey&&Object(f.includes)(rc,t)}(e))&&o()}},{key:"stopTypingOnNonTextField",value:function(e){var t=this;e.persist(),this.props.setTimeout(function(){var n=t.props,o=n.isTyping,r=n.onStopTyping,i=e.target;o&&!Object(Jn.isTextField)(i)&&r()})}},{key:"render",value:function(){var e=this.props.children;return Object(Ut.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(Ut.Component),cc=Object(Kt.compose)([Object(a.withSelect)(function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}}),Object(a.withDispatch)(function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}}),Kt.withSafeTimeout])(ic),lc=function(e){function t(){return Object(Gt.a)(this,t),Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"getSnapshotBeforeUpdate",value:function(e){var t=this.props,n=t.blockOrder,o=t.selectionStart;return n!==e.blockOrder&&o?this.getOffset(o):null}},{key:"componentDidUpdate",value:function(e,t,n){n&&this.restorePreviousOffset(n)}},{key:"getOffset",value:function(e){var t=or(e);return t?t.getBoundingClientRect().top:null}},{key:"restorePreviousOffset",value:function(e){var t=or(this.props.selectionStart);if(t){var n=Object(Jn.getScrollContainer)(t);n&&(n.scrollTop=n.scrollTop+t.getBoundingClientRect().top-e)}}},{key:"render",value:function(){return null}}]),t}(Ut.Component),ac=Object(a.withSelect)(function(e){return{blockOrder:e("core/block-editor").getBlockOrder(),selectionStart:e("core/block-editor").getBlockSelectionStart()}})(lc),sc=window.getSelection,uc=Object(f.overEvery)([Jn.isTextField,Jn.focus.tabbable.isTabbableIndex]);var dc=function(e){function t(){var e;return Object(Gt.a)(this,t),(e=Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))).onKeyDown=e.onKeyDown.bind(Object(Jt.a)(Object(Jt.a)(e))),e.bindContainer=e.bindContainer.bind(Object(Jt.a)(Object(Jt.a)(e))),e.clearVerticalRect=e.clearVerticalRect.bind(Object(Jt.a)(Object(Jt.a)(e))),e.focusLastTextField=e.focusLastTextField.bind(Object(Jt.a)(Object(Jt.a)(e))),e.verticalRect=null,e}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearVerticalRect",value:function(){this.verticalRect=null}},{key:"getClosestTabbable",value:function(e,t){var n=Jn.focus.focusable.find(this.container);return t&&(n=Object(f.reverse)(n)),n=n.slice(n.indexOf(e)+1),Object(f.find)(n,function t(n,o,r){if(!Jn.focus.tabbable.isTabbableIndex(n))return!1;if(Object(Jn.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=r[o+c])&&n.contains(i);c++)if(t(i,o+c,r))return!1;return!0})}},{key:"expandSelection",value:function(e){var t=this.props,n=t.selectedBlockClientId,o=t.selectionStartClientId,r=t.selectionBeforeEndClientId,i=t.selectionAfterEndClientId,c=e?r:i;c&&this.props.onMultiSelect(o||n,c)}},{key:"moveSelection",value:function(e){var t=this.props,n=t.selectedFirstClientId,o=t.selectedLastClientId,r=e?n:o;r&&this.props.onSelectBlock(r)}},{key:"isTabbableEdge",value:function(e,t){var n,o,r=this.getClosestTabbable(e,t);return!(r&&(n=e,o=r,n.closest("[data-block]")===o.closest("[data-block]")))}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.hasMultiSelection,o=t.onMultiSelect,r=t.blocks,i=t.selectionBeforeEndClientId,c=t.selectionAfterEndClientId,l=e.keyCode,a=e.target,s=l===Cn.UP,u=l===Cn.DOWN,d=l===Cn.LEFT,b=l===Cn.RIGHT,p=s||d,h=d||b,v=s||u,m=h||v,g=e.shiftKey,O=g||e.ctrlKey||e.altKey||e.metaKey,k=v?Jn.isVerticalEdge:Jn.isHorizontalEdge;if(!m)return Cn.isKeyboardEvent.primary(e)&&(this.isEntirelySelected=Object(Jn.isEntirelySelected)(a)),void(Cn.isKeyboardEvent.primary(e,"a")&&((a.isContentEditable?this.isEntirelySelected:Object(Jn.isEntirelySelected)(a))&&(o(Object(f.first)(r),Object(f.last)(r)),e.preventDefault()),this.isEntirelySelected=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===Cn.UP||t===Cn.DOWN)&&!n)return!0;var o=e.tagName;return"INPUT"!==o&&"TEXTAREA"!==o}(a,l,O))if(v?this.verticalRect||(this.verticalRect=Object(Jn.computeCaretRect)(a)):this.verticalRect=null,g)(p&&i||!p&&c)&&(n||this.isTabbableEdge(a,p)&&k(a,p))&&(this.expandSelection(p),e.preventDefault());else if(n)this.moveSelection(p),e.preventDefault();else if(v&&Object(Jn.isVerticalEdge)(a,p)){var j=this.getClosestTabbable(a,p);j&&(Object(Jn.placeCaretAtVerticalEdge)(j,p,this.verticalRect),e.preventDefault())}else if(h&&sc().isCollapsed&&Object(Jn.isHorizontalEdge)(a,p)){var y=this.getClosestTabbable(a,p);Object(Jn.placeCaretAtHorizontalEdge)(y,p),e.preventDefault()}}},{key:"focusLastTextField",value:function(){var e=Jn.focus.focusable.find(this.container),t=Object(f.findLast)(e,uc);t&&Object(Jn.placeCaretAtHorizontalEdge)(t,!0)}},{key:"render",value:function(){var e=this.props.children;return Object(Ut.createElement)("div",{className:"editor-writing-flow block-editor-writing-flow"},Object(Ut.createElement)("div",{ref:this.bindContainer,onKeyDown:this.onKeyDown,onMouseDown:this.clearVerticalRect},e),Object(Ut.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:this.focusLastTextField,className:"wp-block editor-writing-flow__click-redirect block-editor-writing-flow__click-redirect"}))}}]),t}(Ut.Component),bc=Object(Kt.compose)([Object(a.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,o=t.getMultiSelectedBlocksStartClientId,r=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,l=t.getFirstMultiSelectedBlockClientId,a=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=n(),b=o(),f=r();return{selectedBlockClientId:d,selectionStartClientId:b,selectionBeforeEndClientId:i(f||d),selectionAfterEndClientId:c(f||d),selectedFirstClientId:l(),selectedLastClientId:a(),hasMultiSelection:s(),blocks:u()}}),Object(a.withDispatch)(function(e){var t=e("core/block-editor");return{onMultiSelect:t.multiSelect,onSelectBlock:t.selectBlock}})])(dc),fc=function(e){function t(){return Object(Gt.a)(this,t),Object(Yt.a)(this,Object($t.a)(t).apply(this,arguments))}return Object(Xt.a)(t,e),Object(qt.a)(t,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.settings,o=t.updateSettings,r=t.value,i=t.resetBlocks,c=t.registry;n!==e.settings&&o(n),c!==e.registry&&this.attachChangeObserver(c),this.isSyncingOutcomingValue?this.isSyncingOutcomingValue=!1:r!==e.value&&(this.isSyncingIncomingValue=!0,i(r))}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"attachChangeObserver",value:function(e){var t=this;this.unsubscribe&&this.unsubscribe();var n=e.select("core/block-editor"),o=n.getBlocks,r=n.isLastBlockChangePersistent,i=o(),c=r();this.unsubscribe=e.subscribe(function(){var e=t.props,n=e.onChange,l=e.onInput,a=o(),s=r();if(a!==i&&t.isSyncingIncomingValue)return t.isSyncingIncomingValue=!1,i=a,void(c=s);(a!==i||s&&!c)&&(i=a,c=s,t.isSyncingOutcomingValue=!0,c?n(i):l(i))})}},{key:"render",value:function(){var e=this.props.children;return Object(Ut.createElement)(Zt.SlotFillProvider,null,Object(Ut.createElement)(Zt.DropZoneProvider,null,e))}}]),t}(Ut.Component),pc=Object(Kt.compose)([Object(a.withDispatch)(function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks}}),a.withRegistry])(fc),hc=["left","center","right","wide","full"],vc=["wide","full"];function mc(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?hc:[],!o||!0===e&&!n?f.without.apply(void 0,[t].concat(vc)):t}var gc=Object(Kt.createHigherOrderComponent)(function(e){return function(t){var n=t.name,o=mc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(Ut.createElement)(mn,{key:"align-controls"},Object(Ut.createElement)(bn,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(f.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(Ut.createElement)(e,Object(Ht.a)({key:"edit"},t))]}},"withToolbarControls"),Oc=Object(Kt.createHigherOrderComponent)(Object(Kt.compose)([Object(a.withSelect)(function(e){return{hasWideEnabled:!!(0,e("core/block-editor").getSettings)().alignWide}}),function(e){return function(t){var n=t.name,o=t.attributes,r=t.hasWideEnabled,c=o.align,l=mc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),r),a=t.wrapperProps;return Object(f.includes)(l,c)&&(a=Object(s.a)({},a,{"data-align":c})),Object(Ut.createElement)(e,Object(Ht.a)({},t,{wrapperProps:a}))}}]));Object(Wt.addFilter)("blocks.registerBlockType","core/align/addAttribute",function(e){return Object(f.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(f.assign)(e.attributes,{align:{type:"string"}})),e)}),Object(Wt.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Oc),Object(Wt.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",gc),Object(Wt.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",function(e,t,n){var o=n.align,r=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(f.includes)(mc(r,c),o)&&(e.className=zt()("align".concat(o),e.className)),e});var kc=/[\s#]/g;var jc=Object(Kt.createHigherOrderComponent)(function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(e,t),Object(Ut.createElement)(Or,null,Object(Ut.createElement)(Zt.TextControl,{label:Object(p.__)("HTML Anchor"),help:Object(p.__)("Anchors lets you link directly to a section on a page."),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(kc,"-"),t.setAttributes({anchor:e})}}))):Object(Ut.createElement)(e,t)}},"withInspectorControl");Object(Wt.addFilter)("blocks.registerBlockType","core/anchor/attribute",function(e){return Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(f.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e}),Object(Wt.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",jc),Object(Wt.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e});var yc=Object(Kt.createHigherOrderComponent)(function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(Ut.createElement)(Ut.Fragment,null,Object(Ut.createElement)(e,t),Object(Ut.createElement)(Or,null,Object(Ut.createElement)(Zt.TextControl,{label:Object(p.__)("Additional CSS Class"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})}}))):Object(Ut.createElement)(e,t)}},"withInspectorControl");function _c(e){e="
    ".concat(e,"
    ");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(Wt.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(f.assign)(e.attributes,{className:{type:"string"}})),e}),Object(Wt.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",yc),Object(Wt.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=zt()(e.className,n.className)),e}),Object(Wt.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var o=Object(f.omit)(e,["className"]),r=Object(i.getSaveContent)(t,o),c=_c(r),l=_c(n),a=Object(f.difference)(l,c);a.length?e.className=a.join(" "):r&&delete e.className}return e}),Object(Wt.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(f.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(d.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}),n.d(t,"Autocomplete",function(){return cn}),n.d(t,"AlignmentToolbar",function(){return an}),n.d(t,"BlockAlignmentToolbar",function(){return bn}),n.d(t,"BlockControls",function(){return mn}),n.d(t,"BlockEdit",function(){return On}),n.d(t,"BlockFormatControls",function(){return Sn}),n.d(t,"BlockNavigationDropdown",function(){return Bn}),n.d(t,"BlockIcon",function(){return En}),n.d(t,"ColorPalette",function(){return Ln}),n.d(t,"withColorContext",function(){return xn}),n.d(t,"ContrastChecker",function(){return Kn}),n.d(t,"InnerBlocks",function(){return pr}),n.d(t,"InspectorAdvancedControls",function(){return Or}),n.d(t,"InspectorControls",function(){return Sr}),n.d(t,"PanelColorSettings",function(){return Tr}),n.d(t,"PlainText",function(){return Br}),n.d(t,"RichText",function(){return li}),n.d(t,"RichTextShortcut",function(){return zr}),n.d(t,"RichTextToolbarButton",function(){return ei}),n.d(t,"UnstableRichTextInputEvent",function(){return ti}),n.d(t,"MediaPlaceholder",function(){return fi}),n.d(t,"MediaUpload",function(){return ai}),n.d(t,"MediaUploadCheck",function(){return co}),n.d(t,"URLInput",function(){return gi}),n.d(t,"URLInputButton",function(){return Oi}),n.d(t,"URLPopover",function(){return si}),n.d(t,"BlockEditorKeyboardShortcuts",function(){return Si}),n.d(t,"BlockInspector",function(){return Li}),n.d(t,"BlockList",function(){return br}),n.d(t,"BlockMover",function(){return io}),n.d(t,"BlockSelectionClearer",function(){return Mi}),n.d(t,"BlockSettingsMenu",function(){return $i}),n.d(t,"_BlockSettingsMenuFirstItem",function(){return Ki}),n.d(t,"_BlockSettingsMenuPluginsExtension",function(){return Yi}),n.d(t,"BlockTitle",function(){return So}),n.d(t,"BlockToolbar",function(){return Qi}),n.d(t,"CopyHandler",function(){return tc}),n.d(t,"DefaultBlockAppender",function(){return sr}),n.d(t,"Inserter",function(){return qo}),n.d(t,"MultiBlocksSwitcher",function(){return Zi}),n.d(t,"MultiSelectScrollIntoView",function(){return oc}),n.d(t,"NavigableToolbar",function(){return Bo}),n.d(t,"ObserveTyping",function(){return cc}),n.d(t,"PreserveScrollInReorder",function(){return ac}),n.d(t,"SkipToSelectedBlock",function(){return Ci}),n.d(t,"Warning",function(){return so}),n.d(t,"WritingFlow",function(){return bc}),n.d(t,"BlockEditorProvider",function(){return pc}),n.d(t,"getColorClassName",function(){return Pn}),n.d(t,"getColorObjectByAttributeValues",function(){return Rn}),n.d(t,"getColorObjectByColorValue",function(){return An}),n.d(t,"createCustomColorsHOC",function(){return Vn}),n.d(t,"withColors",function(){return zn}),n.d(t,"getFontSize",function(){return Wn}),n.d(t,"getFontSizeClass",function(){return Gn}),n.d(t,"FontSizePicker",function(){return qn}),n.d(t,"withFontSizes",function(){return Yn}),n.d(t,"SETTINGS_DEFAULTS",function(){return v})},37:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},38:function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return o})},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t){!function(){e.exports=this.wp.viewport}()},41:function(e,t,n){e.exports=function(e,t){var n,o,r,i=0;function c(){var t,c,l=o,a=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)o=r=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;o=c(a,l,e+1/3),r=c(a,l,e),i=c(a,l,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,o,a),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,h;return n=L(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=l++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var o,r,i=u(e,t,n),c=s(e,t,n),l=(i+c)/2;if(i==c)o=r=0;else{var a=i-c;switch(r=l>.5?a/(2-i-c):a/(i+c),i){case e:o=(t-n)/a+(t>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(b(o));return i}function T(e,t){t=t||6;for(var n=b(e).toHsv(),o=n.h,r=n.s,i=n.v,c=[],l=1/t;t--;)c.push(b({h:o,s:r,v:i})),i=(i+l)%1;return c}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=L(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var i=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16)),A(D(o))];if(r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*N(this._r,255))+"%",g:a(100*N(this._g,255))+"%",b:a(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*N(this._r,255))+"%, "+a(100*N(this._g,255))+"%, "+a(100*N(this._b,255))+"%)":"rgba("+a(100*N(this._r,255))+"%, "+a(100*N(this._g,255))+"%, "+a(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=b(e);n="#"+v(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:P(e[o]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var o=b(e).toRgb(),r=b(t).toRgb(),i=n/100;return b({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},b.readability=function(e,t){var n=b(e),o=b(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},b.isReadable=function(e,t,n){var o,r,i=b.readability(e,t);switch(r=!1,(o=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+o.size){case"AAsmall":case"AAAlarge":r=i>=4.5;break;case"AAlarge":r=i>=3;break;case"AAAsmall":r=i>=7}return r},b.mostReadable=function(e,t,n){var o,r,i,c,l=null,a=0;r=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var s=0;sa&&(a=o,l=b(t[s]));return b.isReadable(e,l,{level:i,size:c})||!r?l:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var B=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function L(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function D(e){return r.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var H,U,V,z=(U="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",V="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function K(e){return!!z.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(o=function(){return b}.call(t,n,t,e))||(e.exports=o)}(Math)},48:function(e,t){!function(){e.exports=this.wp.a11y}()},49:function(e,t){!function(){e.exports=this.wp.deprecated}()},5:function(e,t){!function(){e.exports=this.wp.data}()},54:function(e,t,n){var o=function(){return this||"object"==typeof self&&self}()||Function("return this")(),r=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,i=r&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=n(55),r)o.regeneratorRuntime=i;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},55:function(e,t){!function(t){"use strict";var n,o=Object.prototype,r=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",s="object"==typeof e,u=t.regeneratorRuntime;if(u)s&&(e.exports=u);else{(u=t.regeneratorRuntime=s?e.exports:{}).wrap=k;var d="suspendedStart",b="suspendedYield",f="executing",p="completed",h={},v={};v[c]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==o&&r.call(g,c)&&(v=g);var O=S.prototype=y.prototype=Object.create(v);_.prototype=O.constructor=S,S.constructor=_,S[a]=_.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(O),e},u.awrap=function(e){return{__await:e}},C(E.prototype),E.prototype[l]=function(){return this},u.AsyncIterator=E,u.async=function(e,t,n,o){var r=new E(k(e,t,n,o));return u.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},C(O),O[a]="Generator",O[c]=function(){return this},O.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},u.values=x,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,r){return l.type="throw",l.arg=e,t.next=o,r&&(t.method="next",t.arg=n),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],l=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var a=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(a&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:x(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=n),h}}}function k(e,t,n,o){var r=t&&t.prototype instanceof y?t:y,i=Object.create(r.prototype),c=new B(o||[]);return i._invoke=function(e,t,n){var o=d;return function(r,i){if(o===f)throw new Error("Generator is already running");if(o===p){if("throw"===r)throw i;return L()}for(n.method=r,n.arg=i;;){var c=n.delegate;if(c){var l=w(c,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var a=j(e,t,n);if("normal"===a.type){if(o=n.done?p:b,a.arg===h)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(o=p,n.method="throw",n.arg=a.arg)}}}(e,n,c),i}function j(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function y(){}function _(){}function S(){}function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function E(e){var t;this._invoke=function(n,o){function i(){return new Promise(function(t,i){!function t(n,o,i,c){var l=j(e[n],e,o);if("throw"!==l.type){var a=l.arg,s=a.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,c)},function(e){t("throw",e,i,c)}):Promise.resolve(s).then(function(e){a.value=e,i(a)},function(e){return t("throw",e,i,c)})}c(l.arg)}(n,o,t,i)})}return t=t?t.then(i,i):i()}}function w(e,t){var o=e.iterator[t.method];if(o===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,w(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=j(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' - }, - - /** Convenience shortcuts */ - baseMinusTMin = base - tMin, - floor = Math.floor, - stringFromCharCode = String.fromCharCode, - - /** Temporary variable */ - key; - - /*--------------------------------------------------------------------------*/ - - /** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ - function error(type) { - throw new RangeError(errors[type]); - } - - /** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ - function map(array, fn) { - var length = array.length; - var result = []; - while (length--) { - result[length] = fn(array[length]); - } - return result; - } - - /** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */ - function mapDomain(string, fn) { - var parts = string.split('@'); - var result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - string = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - var labels = string.split('.'); - var encoded = map(labels, fn).join('.'); - return result + encoded; - } - - /** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ - function ucs2decode(string) { - var output = [], - counter = 0, - length = string.length, - value, - extra; - while (counter < length) { - value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // high surrogate, and there is a next character - extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // low surrogate - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // unmatched surrogate; only append this code unit, in case the next - // code unit is the high surrogate of a surrogate pair - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; - } - - /** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ - function ucs2encode(array) { - return map(array, function(value) { - var output = ''; - if (value > 0xFFFF) { - value -= 0x10000; - output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); - value = 0xDC00 | value & 0x3FF; - } - output += stringFromCharCode(value); - return output; - }).join(''); - } - - /** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ - function basicToDigit(codePoint) { - if (codePoint - 48 < 10) { - return codePoint - 22; - } - if (codePoint - 65 < 26) { - return codePoint - 65; - } - if (codePoint - 97 < 26) { - return codePoint - 97; - } - return base; - } - - /** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ - function digitToBasic(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); - } - - /** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ - function adapt(delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); - } - - /** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ - function decode(input) { - // Don't use UCS-2 - var output = [], - inputLength = input.length, - out, - i = 0, - n = initialN, - bias = initialBias, - basic, - j, - index, - oldi, - w, - k, - digit, - t, - /** Cached calculation results */ - baseMinusT; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - for (oldi = i, w = 1, k = base; /* no condition */; k += base) { - - if (index >= inputLength) { - error('invalid-input'); - } - - digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base || digit > floor((maxInt - i) / w)) { - error('overflow'); - } - - i += digit * w; - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - - if (digit < t) { - break; - } - - baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - - w *= baseMinusT; - - } - - out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output - output.splice(i++, 0, n); - - } - - return ucs2encode(output); - } - - /** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ - function encode(input) { - var n, - delta, - handledCPCount, - basicLength, - bias, - j, - m, - q, - k, - t, - currentValue, - output = [], - /** `inputLength` will hold the number of code points in `input`. */ - inputLength, - /** Cached calculation results */ - handledCPCountPlusOne, - baseMinusT, - qMinusT; - - // Convert the input in UCS-2 to Unicode - input = ucs2decode(input); - - // Cache the length - inputLength = input.length; - - // Initialize the state - n = initialN; - delta = 0; - bias = initialBias; - - // Handle the basic code points - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - handledCPCount = basicLength = output.length; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string - if it is not empty - with a delimiter - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - for (m = maxInt, j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow - handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - - if (currentValue == n) { - // Represent delta as a generalized variable-length integer - for (q = delta, k = base; /* no condition */; k += base) { - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) { - break; - } - qMinusT = q - t; - baseMinusT = base - t; - output.push( - stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) - ); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - - } - return output.join(''); - } - - /** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ - function toUnicode(input) { - return mapDomain(input, function(string) { - return regexPunycode.test(string) - ? decode(string.slice(4).toLowerCase()) - : string; - }); - } - - /** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ - function toASCII(input) { - return mapDomain(input, function(string) { - return regexNonASCII.test(string) - ? 'xn--' + encode(string) - : string; - }); - } - - /*--------------------------------------------------------------------------*/ - - /** Define the public API */ - punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '1.4.1', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode - }; - - /** Expose `punycode` */ - // Some AMD build optimizers, like r.js, check for specific condition patterns - // like the following: - if ( - true - ) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { - return punycode; - }).call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} - -}(this)); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102)(module), __webpack_require__(51))) - -/***/ }), - -/***/ 102: -/***/ (function(module, exports) { - -module.exports = function(module) { - if (!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), - -/***/ 103: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = { - isString: function(arg) { - return typeof(arg) === 'string'; - }, - isObject: function(arg) { - return typeof(arg) === 'object' && arg !== null; - }, - isNull: function(arg) { - return arg === null; - }, - isNullOrUndefined: function(arg) { - return arg == null; - } -}; - - -/***/ }), - -/***/ 104: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.decode = exports.parse = __webpack_require__(105); -exports.encode = exports.stringify = __webpack_require__(106); - - -/***/ }), - -/***/ 105: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -// If obj.hasOwnProperty has been overridden, then calling -// obj.hasOwnProperty(prop) will break. -// See: https://github.com/joyent/node/issues/1707 -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - -module.exports = function(qs, sep, eq, options) { - sep = sep || '&'; - eq = eq || '='; - var obj = {}; - - if (typeof qs !== 'string' || qs.length === 0) { - return obj; - } - - var regexp = /\+/g; - qs = qs.split(sep); - - var maxKeys = 1000; - if (options && typeof options.maxKeys === 'number') { - maxKeys = options.maxKeys; - } - - var len = qs.length; - // maxKeys <= 0 means that we should not limit keys count - if (maxKeys > 0 && len > maxKeys) { - len = maxKeys; - } - - for (var i = 0; i < len; ++i) { - var x = qs[i].replace(regexp, '%20'), - idx = x.indexOf(eq), - kstr, vstr, k, v; - - if (idx >= 0) { - kstr = x.substr(0, idx); - vstr = x.substr(idx + 1); - } else { - kstr = x; - vstr = ''; - } - - k = decodeURIComponent(kstr); - v = decodeURIComponent(vstr); - - if (!hasOwnProperty(obj, k)) { - obj[k] = v; - } else if (isArray(obj[k])) { - obj[k].push(v); - } else { - obj[k] = [obj[k], v]; - } - } - - return obj; -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - - -/***/ }), - -/***/ 106: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -var stringifyPrimitive = function(v) { - switch (typeof v) { - case 'string': - return v; - - case 'boolean': - return v ? 'true' : 'false'; - - case 'number': - return isFinite(v) ? v : ''; - - default: - return ''; - } -}; - -module.exports = function(obj, sep, eq, name) { - sep = sep || '&'; - eq = eq || '='; - if (obj === null) { - obj = undefined; - } - - if (typeof obj === 'object') { - return map(objectKeys(obj), function(k) { - var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; - if (isArray(obj[k])) { - return map(obj[k], function(v) { - return ks + encodeURIComponent(stringifyPrimitive(v)); - }).join(sep); - } else { - return ks + encodeURIComponent(stringifyPrimitive(obj[k])); - } - }).join(sep); - - } - - if (!name) return ''; - return encodeURIComponent(stringifyPrimitive(name)) + eq + - encodeURIComponent(stringifyPrimitive(obj)); -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; - -function map (xs, f) { - if (xs.map) return xs.map(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - res.push(f(xs[i], i)); - } - return res; -} - -var objectKeys = Object.keys || function (obj) { - var res = []; - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); - } - return res; -}; - - -/***/ }), - -/***/ 11: +/* 11 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); @@ -909,8 +221,7 @@ function _possibleConstructorReturn(self, call) { } /***/ }), - -/***/ 12: +/* 12 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -923,8 +234,7 @@ function _getPrototypeOf(o) { } /***/ }), - -/***/ 13: +/* 13 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -957,15 +267,13 @@ function _inherits(subClass, superClass) { } /***/ }), - -/***/ 14: +/* 14 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blocks"]; }()); /***/ }), - -/***/ 15: +/* 15 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -986,8 +294,7 @@ function _defineProperty(obj, key, value) { } /***/ }), - -/***/ 16: +/* 16 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -1044,15 +351,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), - -/***/ 17: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keycodes"]; }()); - -/***/ }), - -/***/ 18: +/* 17 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1068,7 +367,7 @@ function _arrayWithoutHoles(arr) { } } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(33); +var iterableToArray = __webpack_require__(34); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -1084,8 +383,13 @@ function _toConsumableArray(arr) { } /***/ }), +/* 18 */ +/***/ (function(module, exports) { -/***/ 19: +(function() { module.exports = this["wp"]["keycodes"]; }()); + +/***/ }), +/* 19 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1109,22 +413,13 @@ function _extends() { } /***/ }), - -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 20: +/* 20 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["richText"]; }()); /***/ }), - -/***/ 21: +/* 21 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1167,21 +462,29 @@ function _objectWithoutProperties(source, excluded) { } /***/ }), +/* 22 */ +/***/ (function(module, exports) { -/***/ 22: +(function() { module.exports = this["wp"]["editor"]; }()); + +/***/ }), +/* 23 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["url"]; }()); /***/ }), - -/***/ 25: +/* 24 */, +/* 25 */, +/* 26 */, +/* 27 */, +/* 28 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(34); +var arrayWithHoles = __webpack_require__(37); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(arr, i) { @@ -1210,7 +513,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(35); +var nonIterableRest = __webpack_require__(38); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); @@ -1222,15 +525,15 @@ function _slicedToArray(arr, i) { } /***/ }), - -/***/ 27: +/* 29 */ /***/ (function(module, exports) { (function() { module.exports = this["moment"]; }()); /***/ }), - -/***/ 29: +/* 30 */, +/* 31 */, +/* 32 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1252,13560 +555,13 @@ function _typeof(obj) { } /***/ }), - -/***/ 3: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), - -/***/ 306: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var paragraph_namespaceObject = {}; -__webpack_require__.r(paragraph_namespaceObject); -__webpack_require__.d(paragraph_namespaceObject, "name", function() { return paragraph_name; }); -__webpack_require__.d(paragraph_namespaceObject, "settings", function() { return paragraph_settings; }); -var image_namespaceObject = {}; -__webpack_require__.r(image_namespaceObject); -__webpack_require__.d(image_namespaceObject, "name", function() { return image_name; }); -__webpack_require__.d(image_namespaceObject, "settings", function() { return image_settings; }); -var heading_namespaceObject = {}; -__webpack_require__.r(heading_namespaceObject); -__webpack_require__.d(heading_namespaceObject, "getLevelFromHeadingNodeName", function() { return getLevelFromHeadingNodeName; }); -__webpack_require__.d(heading_namespaceObject, "name", function() { return heading_name; }); -__webpack_require__.d(heading_namespaceObject, "settings", function() { return heading_settings; }); -var quote_namespaceObject = {}; -__webpack_require__.r(quote_namespaceObject); -__webpack_require__.d(quote_namespaceObject, "name", function() { return quote_name; }); -__webpack_require__.d(quote_namespaceObject, "settings", function() { return quote_settings; }); -var gallery_namespaceObject = {}; -__webpack_require__.r(gallery_namespaceObject); -__webpack_require__.d(gallery_namespaceObject, "name", function() { return gallery_name; }); -__webpack_require__.d(gallery_namespaceObject, "settings", function() { return gallery_settings; }); -var archives_namespaceObject = {}; -__webpack_require__.r(archives_namespaceObject); -__webpack_require__.d(archives_namespaceObject, "name", function() { return archives_name; }); -__webpack_require__.d(archives_namespaceObject, "settings", function() { return archives_settings; }); -var audio_namespaceObject = {}; -__webpack_require__.r(audio_namespaceObject); -__webpack_require__.d(audio_namespaceObject, "name", function() { return audio_name; }); -__webpack_require__.d(audio_namespaceObject, "settings", function() { return audio_settings; }); -var button_namespaceObject = {}; -__webpack_require__.r(button_namespaceObject); -__webpack_require__.d(button_namespaceObject, "name", function() { return button_name; }); -__webpack_require__.d(button_namespaceObject, "settings", function() { return button_settings; }); -var calendar_namespaceObject = {}; -__webpack_require__.r(calendar_namespaceObject); -__webpack_require__.d(calendar_namespaceObject, "name", function() { return calendar_name; }); -__webpack_require__.d(calendar_namespaceObject, "settings", function() { return calendar_settings; }); -var categories_namespaceObject = {}; -__webpack_require__.r(categories_namespaceObject); -__webpack_require__.d(categories_namespaceObject, "name", function() { return categories_name; }); -__webpack_require__.d(categories_namespaceObject, "settings", function() { return categories_settings; }); -var code_namespaceObject = {}; -__webpack_require__.r(code_namespaceObject); -__webpack_require__.d(code_namespaceObject, "name", function() { return code_name; }); -__webpack_require__.d(code_namespaceObject, "settings", function() { return code_settings; }); -var columns_namespaceObject = {}; -__webpack_require__.r(columns_namespaceObject); -__webpack_require__.d(columns_namespaceObject, "name", function() { return columns_name; }); -__webpack_require__.d(columns_namespaceObject, "settings", function() { return columns_settings; }); -var column_namespaceObject = {}; -__webpack_require__.r(column_namespaceObject); -__webpack_require__.d(column_namespaceObject, "name", function() { return column_name; }); -__webpack_require__.d(column_namespaceObject, "settings", function() { return column_settings; }); -var cover_namespaceObject = {}; -__webpack_require__.r(cover_namespaceObject); -__webpack_require__.d(cover_namespaceObject, "name", function() { return cover_name; }); -__webpack_require__.d(cover_namespaceObject, "settings", function() { return cover_settings; }); -var embed_namespaceObject = {}; -__webpack_require__.r(embed_namespaceObject); -__webpack_require__.d(embed_namespaceObject, "name", function() { return embed_name; }); -__webpack_require__.d(embed_namespaceObject, "settings", function() { return embed_settings; }); -__webpack_require__.d(embed_namespaceObject, "common", function() { return embed_common; }); -__webpack_require__.d(embed_namespaceObject, "others", function() { return embed_others; }); -var file_namespaceObject = {}; -__webpack_require__.r(file_namespaceObject); -__webpack_require__.d(file_namespaceObject, "name", function() { return file_name; }); -__webpack_require__.d(file_namespaceObject, "settings", function() { return file_settings; }); -var html_namespaceObject = {}; -__webpack_require__.r(html_namespaceObject); -__webpack_require__.d(html_namespaceObject, "name", function() { return html_name; }); -__webpack_require__.d(html_namespaceObject, "settings", function() { return html_settings; }); -var media_text_namespaceObject = {}; -__webpack_require__.r(media_text_namespaceObject); -__webpack_require__.d(media_text_namespaceObject, "name", function() { return media_text_name; }); -__webpack_require__.d(media_text_namespaceObject, "settings", function() { return media_text_settings; }); -var latest_comments_namespaceObject = {}; -__webpack_require__.r(latest_comments_namespaceObject); -__webpack_require__.d(latest_comments_namespaceObject, "name", function() { return latest_comments_name; }); -__webpack_require__.d(latest_comments_namespaceObject, "settings", function() { return latest_comments_settings; }); -var latest_posts_namespaceObject = {}; -__webpack_require__.r(latest_posts_namespaceObject); -__webpack_require__.d(latest_posts_namespaceObject, "name", function() { return latest_posts_name; }); -__webpack_require__.d(latest_posts_namespaceObject, "settings", function() { return latest_posts_settings; }); -var list_namespaceObject = {}; -__webpack_require__.r(list_namespaceObject); -__webpack_require__.d(list_namespaceObject, "name", function() { return list_name; }); -__webpack_require__.d(list_namespaceObject, "settings", function() { return list_settings; }); -var missing_namespaceObject = {}; -__webpack_require__.r(missing_namespaceObject); -__webpack_require__.d(missing_namespaceObject, "name", function() { return missing_name; }); -__webpack_require__.d(missing_namespaceObject, "settings", function() { return missing_settings; }); -var more_namespaceObject = {}; -__webpack_require__.r(more_namespaceObject); -__webpack_require__.d(more_namespaceObject, "name", function() { return more_name; }); -__webpack_require__.d(more_namespaceObject, "settings", function() { return more_settings; }); -var nextpage_namespaceObject = {}; -__webpack_require__.r(nextpage_namespaceObject); -__webpack_require__.d(nextpage_namespaceObject, "name", function() { return nextpage_name; }); -__webpack_require__.d(nextpage_namespaceObject, "settings", function() { return nextpage_settings; }); -var preformatted_namespaceObject = {}; -__webpack_require__.r(preformatted_namespaceObject); -__webpack_require__.d(preformatted_namespaceObject, "name", function() { return preformatted_name; }); -__webpack_require__.d(preformatted_namespaceObject, "settings", function() { return preformatted_settings; }); -var pullquote_namespaceObject = {}; -__webpack_require__.r(pullquote_namespaceObject); -__webpack_require__.d(pullquote_namespaceObject, "name", function() { return pullquote_name; }); -__webpack_require__.d(pullquote_namespaceObject, "settings", function() { return pullquote_settings; }); -var block_namespaceObject = {}; -__webpack_require__.r(block_namespaceObject); -__webpack_require__.d(block_namespaceObject, "name", function() { return block_name; }); -__webpack_require__.d(block_namespaceObject, "settings", function() { return block_settings; }); -var rss_namespaceObject = {}; -__webpack_require__.r(rss_namespaceObject); -__webpack_require__.d(rss_namespaceObject, "name", function() { return rss_name; }); -__webpack_require__.d(rss_namespaceObject, "settings", function() { return rss_settings; }); -var search_namespaceObject = {}; -__webpack_require__.r(search_namespaceObject); -__webpack_require__.d(search_namespaceObject, "name", function() { return search_name; }); -__webpack_require__.d(search_namespaceObject, "settings", function() { return search_settings; }); -var separator_namespaceObject = {}; -__webpack_require__.r(separator_namespaceObject); -__webpack_require__.d(separator_namespaceObject, "name", function() { return separator_name; }); -__webpack_require__.d(separator_namespaceObject, "settings", function() { return separator_settings; }); -var shortcode_namespaceObject = {}; -__webpack_require__.r(shortcode_namespaceObject); -__webpack_require__.d(shortcode_namespaceObject, "name", function() { return shortcode_name; }); -__webpack_require__.d(shortcode_namespaceObject, "settings", function() { return shortcode_settings; }); -var spacer_namespaceObject = {}; -__webpack_require__.r(spacer_namespaceObject); -__webpack_require__.d(spacer_namespaceObject, "name", function() { return spacer_name; }); -__webpack_require__.d(spacer_namespaceObject, "settings", function() { return spacer_settings; }); -var subhead_namespaceObject = {}; -__webpack_require__.r(subhead_namespaceObject); -__webpack_require__.d(subhead_namespaceObject, "name", function() { return subhead_name; }); -__webpack_require__.d(subhead_namespaceObject, "settings", function() { return subhead_settings; }); -var table_namespaceObject = {}; -__webpack_require__.r(table_namespaceObject); -__webpack_require__.d(table_namespaceObject, "name", function() { return table_name; }); -__webpack_require__.d(table_namespaceObject, "settings", function() { return table_settings; }); -var template_namespaceObject = {}; -__webpack_require__.r(template_namespaceObject); -__webpack_require__.d(template_namespaceObject, "name", function() { return template_name; }); -__webpack_require__.d(template_namespaceObject, "settings", function() { return template_settings; }); -var text_columns_namespaceObject = {}; -__webpack_require__.r(text_columns_namespaceObject); -__webpack_require__.d(text_columns_namespaceObject, "name", function() { return text_columns_name; }); -__webpack_require__.d(text_columns_namespaceObject, "settings", function() { return text_columns_settings; }); -var verse_namespaceObject = {}; -__webpack_require__.r(verse_namespaceObject); -__webpack_require__.d(verse_namespaceObject, "name", function() { return verse_name; }); -__webpack_require__.d(verse_namespaceObject, "settings", function() { return verse_settings; }); -var video_namespaceObject = {}; -__webpack_require__.r(video_namespaceObject); -__webpack_require__.d(video_namespaceObject, "name", function() { return video_name; }); -__webpack_require__.d(video_namespaceObject, "settings", function() { return video_settings; }); -var tag_cloud_namespaceObject = {}; -__webpack_require__.r(tag_cloud_namespaceObject); -__webpack_require__.d(tag_cloud_namespaceObject, "name", function() { return tag_cloud_name; }); -__webpack_require__.d(tag_cloud_namespaceObject, "settings", function() { return tag_cloud_settings; }); -var classic_namespaceObject = {}; -__webpack_require__.r(classic_namespaceObject); -__webpack_require__.d(classic_namespaceObject, "name", function() { return classic_name; }); -__webpack_require__.d(classic_namespaceObject, "settings", function() { return classic_settings; }); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); - -// EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(81); - -// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(58); - -// EXTERNAL MODULE: external {"this":["wp","editor"]} -var external_this_wp_editor_ = __webpack_require__(6); - -// EXTERNAL MODULE: external {"this":["wp","blocks"]} -var external_this_wp_blocks_ = __webpack_require__(14); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(15); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); - -// EXTERNAL MODULE: external {"this":["wp","element"]} -var external_this_wp_element_ = __webpack_require__(0); - -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - -// EXTERNAL MODULE: external {"this":["wp","i18n"]} -var external_this_wp_i18n_ = __webpack_require__(1); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(4); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(19); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(9); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","data"]} -var external_this_wp_data_ = __webpack_require__(5); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js - - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -var _window = window, - getComputedStyle = _window.getComputedStyle; -var edit_name = 'core/paragraph'; -var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { - var _ownProps$attributes = ownProps.attributes, - textColor = _ownProps$attributes.textColor, - backgroundColor = _ownProps$attributes.backgroundColor, - fontSize = _ownProps$attributes.fontSize, - customFontSize = _ownProps$attributes.customFontSize; - var editableNode = node.querySelector('[contenteditable="true"]'); //verify if editableNode is available, before using getComputedStyle. - - var computedStyles = editableNode ? getComputedStyle(editableNode) : null; - return { - fallbackBackgroundColor: backgroundColor || !computedStyles ? undefined : computedStyles.backgroundColor, - fallbackTextColor: textColor || !computedStyles ? undefined : computedStyles.color, - fallbackFontSize: fontSize || customFontSize || !computedStyles ? undefined : parseInt(computedStyles.fontSize) || undefined - }; -}); - -var edit_ParagraphBlock = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ParagraphBlock, _Component); - - function ParagraphBlock() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ParagraphBlock); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ParagraphBlock).apply(this, arguments)); - _this.onReplace = _this.onReplace.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.toggleDropCap = _this.toggleDropCap.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.splitBlock = _this.splitBlock.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(ParagraphBlock, [{ - key: "onReplace", - value: function onReplace(blocks) { - var _this$props = this.props, - attributes = _this$props.attributes, - onReplace = _this$props.onReplace; - onReplace(blocks.map(function (block, index) { - return index === 0 && block.name === edit_name ? Object(objectSpread["a" /* default */])({}, block, { - attributes: Object(objectSpread["a" /* default */])({}, attributes, block.attributes) - }) : block; - })); - } - }, { - key: "toggleDropCap", - value: function toggleDropCap() { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - setAttributes({ - dropCap: !attributes.dropCap - }); - } - }, { - key: "getDropCapHelp", - value: function getDropCapHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.'); - } - /** - * Split handler for RichText value, namely when content is pasted or the - * user presses the Enter key. - * - * @param {?Array} before Optional before value, to be used as content - * in place of what exists currently for the - * block. If undefined, the block is deleted. - * @param {?Array} after Optional after value, to be appended in a new - * paragraph block to the set of blocks passed - * as spread. - * @param {...WPBlock} blocks Optional blocks inserted between the before - * and after value blocks. - */ - - }, { - key: "splitBlock", - value: function splitBlock(before, after) { - var _this$props3 = this.props, - attributes = _this$props3.attributes, - insertBlocksAfter = _this$props3.insertBlocksAfter, - setAttributes = _this$props3.setAttributes, - onReplace = _this$props3.onReplace; - - for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } - - if (after !== null) { - // Append "After" content as a new paragraph block to the end of - // any other blocks being inserted after the current paragraph. - blocks.push(Object(external_this_wp_blocks_["createBlock"])(edit_name, { - content: after - })); - } - - if (blocks.length && insertBlocksAfter) { - insertBlocksAfter(blocks); - } - - var content = attributes.content; - - if (before === null) { - // If before content is omitted, treat as intent to delete block. - onReplace([]); - } else if (content !== before) { - // Only update content if it has in-fact changed. In case that user - // has created a new paragraph at end of an existing one, the value - // of before will be strictly equal to the current content. - setAttributes({ - content: before - }); - } - } - }, { - key: "render", - value: function render() { - var _classnames; - - var _this$props4 = this.props, - attributes = _this$props4.attributes, - setAttributes = _this$props4.setAttributes, - mergeBlocks = _this$props4.mergeBlocks, - onReplace = _this$props4.onReplace, - className = _this$props4.className, - backgroundColor = _this$props4.backgroundColor, - textColor = _this$props4.textColor, - setBackgroundColor = _this$props4.setBackgroundColor, - setTextColor = _this$props4.setTextColor, - fallbackBackgroundColor = _this$props4.fallbackBackgroundColor, - fallbackTextColor = _this$props4.fallbackTextColor, - fallbackFontSize = _this$props4.fallbackFontSize, - fontSize = _this$props4.fontSize, - setFontSize = _this$props4.setFontSize, - isRTL = _this$props4.isRTL; - var align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - placeholder = attributes.placeholder, - direction = attributes.direction; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - }), isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: [{ - icon: 'editor-ltr', - title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'), - isActive: direction === 'ltr', - onClick: function onClick() { - var nextDirection = direction === 'ltr' ? undefined : 'ltr'; - setAttributes({ - direction: nextDirection - }); - } - }] - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Text Settings'), - className: "blocks-font-size" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["FontSizePicker"], { - fallbackFontSize: fallbackFontSize, - value: fontSize.size, - onChange: setFontSize - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Drop Cap'), - checked: !!dropCap, - onChange: this.toggleDropCap, - help: this.getDropCapHelp - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - initialOpen: false, - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color') - }, { - value: textColor.color, - onChange: setTextColor, - label: Object(external_this_wp_i18n_["__"])('Text Color') - }] - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ - textColor: textColor.color, - backgroundColor: backgroundColor.color, - fallbackTextColor: fallbackTextColor, - fallbackBackgroundColor: fallbackBackgroundColor - }, { - fontSize: fontSize.size - })))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - identifier: "content", - tagName: "p", - className: classnames_default()('wp-block-paragraph', className, (_classnames = { - 'has-text-color': textColor.color, - 'has-background': backgroundColor.color, - 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, fontSize.class, fontSize.class), _classnames)), - style: { - backgroundColor: backgroundColor.color, - color: textColor.color, - fontSize: fontSize.size ? fontSize.size + 'px' : undefined, - textAlign: align, - direction: direction - }, - value: content, - onChange: function onChange(nextContent) { - setAttributes({ - content: nextContent - }); - }, - unstableOnSplit: this.splitBlock, - onMerge: mergeBlocks, - onReplace: this.onReplace, - onRemove: function onRemove() { - return onReplace([]); - }, - "aria-label": content ? Object(external_this_wp_i18n_["__"])('Paragraph block') : Object(external_this_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'), - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block') - })); - } - }]); - - return ParagraphBlock; -}(external_this_wp_element_["Component"]); - -var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_editor_["withColors"])('backgroundColor', { - textColor: 'color' -}), Object(external_this_wp_editor_["withFontSizes"])('fontSize'), applyFallbackStyles, Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - isRTL: getSettings().isRTL - }; -})])(edit_ParagraphBlock); -/* harmony default export */ var paragraph_edit = (ParagraphEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -var paragraph_supports = { - className: false -}; -var schema = { - content: { - type: 'string', - source: 'html', - selector: 'p', - default: '' - }, - align: { - type: 'string' - }, - dropCap: { - type: 'boolean', - default: false - }, - placeholder: { - type: 'string' - }, - textColor: { - type: 'string' - }, - customTextColor: { - type: 'string' - }, - backgroundColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - }, - fontSize: { - type: 'string' - }, - customFontSize: { - type: 'number' - }, - direction: { - type: 'string', - enum: ['ltr', 'rtl'] - } -}; -var paragraph_name = 'core/paragraph'; -var paragraph_settings = { - title: Object(external_this_wp_i18n_["__"])('Paragraph'), - description: Object(external_this_wp_i18n_["__"])('Start with the building block of all narrative.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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(external_this_wp_i18n_["__"])('text')], - supports: paragraph_supports, - attributes: schema, - transforms: { - from: [{ - type: 'raw', - // Paragraph is a fallback and should be matched last. - priority: 20, - selector: 'p', - schema: { - p: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - }] - }, - deprecated: [{ - supports: paragraph_supports, - attributes: Object(objectSpread["a" /* default */])({}, schema, { - width: { - type: 'string' - } - }), - save: function save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var width = attributes.width, - align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - fontSize = attributes.fontSize, - customFontSize = attributes.customFontSize; - var textClass = Object(external_this_wp_editor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', backgroundColor); - var fontSizeClass = fontSize && "is-".concat(fontSize, "-text"); - var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, - fontSize: fontSizeClass ? undefined : customFontSize, - textAlign: align - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "p", - style: styles, - className: className ? className : undefined, - value: content - }); - } - }, { - supports: paragraph_supports, - attributes: Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, schema, { - fontSize: { - type: 'number' - } - }), 'customFontSize', 'customTextColor', 'customBackgroundColor'), - save: function save(_ref2) { - var _classnames2; - - var attributes = _ref2.attributes; - var width = attributes.width, - align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - fontSize = attributes.fontSize; - var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames2, 'has-drop-cap', dropCap), _classnames2)); - var styles = { - backgroundColor: backgroundColor, - color: textColor, - fontSize: fontSize, - textAlign: align - }; - return Object(external_this_wp_element_["createElement"])("p", { - style: styles, - className: className ? className : undefined - }, content); - }, - migrate: function migrate(attributes) { - return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { - customFontSize: Object(external_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined, - customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, - customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined - }), ['fontSize', 'textColor', 'backgroundColor']); - } - }, { - supports: paragraph_supports, - attributes: Object(objectSpread["a" /* default */])({}, schema, { - content: { - type: 'string', - source: 'html', - default: '' - } - }), - save: function save(_ref3) { - var attributes = _ref3.attributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); - }, - migrate: function migrate(attributes) { - return attributes; - } - }], - merge: function merge(attributes, attributesToMerge) { - return { - content: attributes.content + attributesToMerge.content - }; - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var width = attributes.width; - - if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) { - return { - 'data-align': width - }; - } - }, - edit: paragraph_edit, - save: function save(_ref4) { - var _classnames3; - - var attributes = _ref4.attributes; - var align = attributes.align, - content = attributes.content, - dropCap = attributes.dropCap, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor, - fontSize = attributes.fontSize, - customFontSize = attributes.customFontSize, - direction = attributes.direction; - var textClass = Object(external_this_wp_editor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', backgroundColor); - var fontSizeClass = Object(external_this_wp_editor_["getFontSizeClass"])(fontSize); - var className = classnames_default()((_classnames3 = { - 'has-text-color': textColor || customTextColor, - 'has-background': backgroundColor || customBackgroundColor, - 'has-drop-cap': dropCap - }, Object(defineProperty["a" /* default */])(_classnames3, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, backgroundClass, backgroundClass), _classnames3)); - var styles = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor, - fontSize: fontSizeClass ? undefined : customFontSize, - textAlign: align - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "p", - style: styles, - className: className ? className : undefined, - value: content, - dir: direction - }); - } -}; - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(32); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(25); - -// EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(22); - -// EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(37); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js - - -/** - * WordPress dependencies - */ - -var embedContentIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z" -})); -var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z" -})); -var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17" -})); -var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z" -})); -var embedTwitterIcon = { - foreground: '#1da1f2', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z" - }))) -}; -var embedYouTubeIcon = { - foreground: '#ff0000', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z" - })) -}; -var embedFacebookIcon = { - foreground: '#3b5998', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z" - })) -}; -var embedInstagramIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z" -}))); -var embedWordPressIcon = { - foreground: '#0073AA', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z" - }))) -}; -var embedSpotifyIcon = { - foreground: '#1db954', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325" - })) -}; -var embedFlickrIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z" -})); -var embedVimeoIcon = { - foreground: '#1ab7ea', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z" - }))) -}; -var embedRedditIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z" -})); -var embedTumbrIcon = { - foreground: '#35465c', - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z" - })) -}; -var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z" -})); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js -/** - * Internal dependencies - */ - -/** - * WordPress dependencies - */ - - - -var common = [{ - name: 'core-embed/twitter', - settings: { - title: 'Twitter', - icon: embedTwitterIcon, - keywords: ['tweet'], - description: Object(external_this_wp_i18n_["__"])('Embed a tweet.') - }, - patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i] -}, { - name: 'core-embed/youtube', - settings: { - title: 'YouTube', - icon: embedYouTubeIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a YouTube video.') - }, - patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i] -}, { - name: 'core-embed/facebook', - settings: { - title: 'Facebook', - icon: embedFacebookIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.') - }, - patterns: [/^https?:\/\/www\.facebook.com\/.+/i] -}, { - name: 'core-embed/instagram', - settings: { - title: 'Instagram', - icon: embedInstagramIcon, - keywords: [Object(external_this_wp_i18n_["__"])('image')], - description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.') - }, - patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i] -}, { - name: 'core-embed/wordpress', - settings: { - title: 'WordPress', - icon: embedWordPressIcon, - keywords: [Object(external_this_wp_i18n_["__"])('post'), Object(external_this_wp_i18n_["__"])('blog')], - responsive: false, - description: Object(external_this_wp_i18n_["__"])('Embed a WordPress post.') - } -}, { - name: 'core-embed/soundcloud', - settings: { - title: 'SoundCloud', - icon: embedAudioIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], - description: Object(external_this_wp_i18n_["__"])('Embed SoundCloud content.') - }, - patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i] -}, { - name: 'core-embed/spotify', - settings: { - title: 'Spotify', - icon: embedSpotifyIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], - description: Object(external_this_wp_i18n_["__"])('Embed Spotify content.') - }, - patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i] -}, { - name: 'core-embed/flickr', - settings: { - title: 'Flickr', - icon: embedFlickrIcon, - keywords: [Object(external_this_wp_i18n_["__"])('image')], - description: Object(external_this_wp_i18n_["__"])('Embed Flickr content.') - }, - patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i] -}, { - name: 'core-embed/vimeo', - settings: { - title: 'Vimeo', - icon: embedVimeoIcon, - keywords: [Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a Vimeo video.') - }, - patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i] -}]; -var others = [{ - name: 'core-embed/animoto', - settings: { - title: 'Animoto', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.') - }, - patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i] -}, { - name: 'core-embed/cloudup', - settings: { - title: 'Cloudup', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Cloudup content.') - }, - patterns: [/^https?:\/\/cloudup\.com\/.+/i] -}, { - name: 'core-embed/collegehumor', - settings: { - title: 'CollegeHumor', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.') - }, - patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i] -}, { - name: 'core-embed/crowdsignal', - settings: { - title: 'Crowdsignal', - icon: embedContentIcon, - keywords: ['polldaddy'], - transform: [{ - type: 'block', - blocks: ['core-embed/polldaddy'], - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core-embed/crowdsignal', { - content: content - }); - } - }], - description: Object(external_this_wp_i18n_["__"])('Embed Crowdsignal (formerly Polldaddy) content.') - }, - patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i] -}, { - name: 'core-embed/dailymotion', - settings: { - title: 'Dailymotion', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.') - }, - patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i] -}, { - name: 'core-embed/hulu', - settings: { - title: 'Hulu', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Hulu content.') - }, - patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i] -}, { - name: 'core-embed/imgur', - settings: { - title: 'Imgur', - icon: embedPhotoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Imgur content.') - }, - patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i] -}, { - name: 'core-embed/issuu', - settings: { - title: 'Issuu', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Issuu content.') - }, - patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i] -}, { - name: 'core-embed/kickstarter', - settings: { - title: 'Kickstarter', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Kickstarter content.') - }, - patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i] -}, { - name: 'core-embed/meetup-com', - settings: { - title: 'Meetup.com', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Meetup.com content.') - }, - patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i] -}, { - name: 'core-embed/mixcloud', - settings: { - title: 'Mixcloud', - icon: embedAudioIcon, - keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')], - description: Object(external_this_wp_i18n_["__"])('Embed Mixcloud content.') - }, - patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i] -}, { - // Deprecated in favour of the core-embed/crowdsignal block - name: 'core-embed/polldaddy', - settings: { - title: 'Polldaddy', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Polldaddy content.'), - supports: { - inserter: false - } - }, - patterns: [] -}, { - name: 'core-embed/reddit', - settings: { - title: 'Reddit', - icon: embedRedditIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a Reddit thread.') - }, - patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i] -}, { - name: 'core-embed/reverbnation', - settings: { - title: 'ReverbNation', - icon: embedAudioIcon, - description: Object(external_this_wp_i18n_["__"])('Embed ReverbNation content.') - }, - patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i] -}, { - name: 'core-embed/screencast', - settings: { - title: 'Screencast', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Screencast content.') - }, - patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i] -}, { - name: 'core-embed/scribd', - settings: { - title: 'Scribd', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Scribd content.') - }, - patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i] -}, { - name: 'core-embed/slideshare', - settings: { - title: 'Slideshare', - icon: embedContentIcon, - description: Object(external_this_wp_i18n_["__"])('Embed Slideshare content.') - }, - patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i] -}, { - name: 'core-embed/smugmug', - settings: { - title: 'SmugMug', - icon: embedPhotoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.') - }, - patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i] -}, { - // Deprecated in favour of the core-embed/speaker-deck block. - name: 'core-embed/speaker', - settings: { - title: 'Speaker', - icon: embedAudioIcon, - supports: { - inserter: false - } - }, - patterns: [] -}, { - name: 'core-embed/speaker-deck', - settings: { - title: 'Speaker Deck', - icon: embedContentIcon, - transform: [{ - type: 'block', - blocks: ['core-embed/speaker'], - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core-embed/speaker-deck', { - content: content - }); - } - }], - description: Object(external_this_wp_i18n_["__"])('Embed Speaker Deck content.') - }, - patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i] -}, { - name: 'core-embed/ted', - settings: { - title: 'TED', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a TED video.') - }, - patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i] -}, { - name: 'core-embed/tumblr', - settings: { - title: 'Tumblr', - icon: embedTumbrIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.') - }, - patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i] -}, { - name: 'core-embed/videopress', - settings: { - title: 'VideoPress', - icon: embedVideoIcon, - keywords: [Object(external_this_wp_i18n_["__"])('video')], - description: Object(external_this_wp_i18n_["__"])('Embed a VideoPress video.') - }, - patterns: [/^https?:\/\/videopress\.com\/.+/i] -}, { - name: 'core-embed/wordpress-tv', - settings: { - title: 'WordPress.tv', - icon: embedVideoIcon, - description: Object(external_this_wp_i18n_["__"])('Embed a WordPress.tv video.') - }, - patterns: [/^https?:\/\/wordpress\.tv\/.+/i] -}, { - name: 'core-embed/amazon-kindle', - settings: { - title: 'Amazon Kindle', - icon: embedAmazonIcon, - keywords: [Object(external_this_wp_i18n_["__"])('ebook')], - responsive: false, - description: Object(external_this_wp_i18n_["__"])('Embed Amazon Kindle content.') - }, - patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i] -}]; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js -// These embeds do not work in sandboxes due to the iframe's security restrictions. -var HOSTS_NO_PREVIEWS = ['facebook.com', 'smugmug.com']; -var ASPECT_RATIOS = [// Common video resolutions. -{ - ratio: '2.33', - className: 'wp-embed-aspect-21-9' -}, { - ratio: '2.00', - className: 'wp-embed-aspect-18-9' -}, { - ratio: '1.78', - className: 'wp-embed-aspect-16-9' -}, { - ratio: '1.33', - className: 'wp-embed-aspect-4-3' -}, // Vertical video and instagram square video support. -{ - ratio: '1.00', - className: 'wp-embed-aspect-1-1' -}, { - ratio: '0.56', - className: 'wp-embed-aspect-9-16' -}, { - ratio: '0.50', - className: 'wp-embed-aspect-1-2' -}]; -var DEFAULT_EMBED_BLOCK = 'core/embed'; -var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress'; - -// EXTERNAL MODULE: ./node_modules/classnames/dedupe.js -var dedupe = __webpack_require__(62); -var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js - - - - - -/** - * Internal dependencies - */ - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - -/** - * Returns true if any of the regular expressions match the URL. - * - * @param {string} url The URL to test. - * @param {Array} patterns The list of regular expressions to test agains. - * @return {boolean} True if any of the regular expressions match the URL. - */ - -var matchesPatterns = function matchesPatterns(url) { - var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return patterns.some(function (pattern) { - return url.match(pattern); - }); -}; -/** - * Finds the block name that should be used for the URL, based on the - * structure of the URL. - * - * @param {string} url The URL to test. - * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter - */ - -var util_findBlock = function findBlock(url) { - var _arr = [].concat(Object(toConsumableArray["a" /* default */])(common), Object(toConsumableArray["a" /* default */])(others)); - - for (var _i = 0; _i < _arr.length; _i++) { - var block = _arr[_i]; - - if (matchesPatterns(url, block.patterns)) { - return block.name; - } - } - - return DEFAULT_EMBED_BLOCK; -}; -var util_isFromWordPress = function isFromWordPress(html) { - return Object(external_lodash_["includes"])(html, 'class="wp-embedded-content" data-secret'); -}; -var util_getPhotoHtml = function getPhotoHtml(photo) { - // 100% width for the preview so it fits nicely into the document, some "thumbnails" are - // actually the full size photo. If thumbnails not found, use full image. - var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url; - var photoPreview = Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_element_["createElement"])("img", { - src: imageUrl, - alt: photo.title, - width: "100%" - })); - return Object(external_this_wp_element_["renderToString"])(photoPreview); -}; -/*** - * Creates a more suitable embed block based on the passed in props - * and attributes generated from an embed block's preview. - * - * We require `attributesFromPreview` to be generated from the latest attributes - * and preview, and because of the way the react lifecycle operates, we can't - * guarantee that the attributes contained in the block's props are the latest - * versions, so we require that these are generated separately. - * See `getAttributesFromPreview` in the generated embed edit component. - * - * @param {Object} props The block's props. - * @param {Object} attributesFromPreview Attributes generated from the block's most up to date preview. - * @return {Object|undefined} A more suitable embed block if one exists. - */ - -var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) { - var preview = props.preview, - name = props.name; - var url = props.attributes.url; - - if (!url) { - return; - } - - var matchingBlock = util_findBlock(url); // WordPress blocks can work on multiple sites, and so don't have patterns, - // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL. - - if (WORDPRESS_EMBED_BLOCK !== name && DEFAULT_EMBED_BLOCK !== matchingBlock) { - // At this point, we have discovered a more suitable block for this url, so transform it. - if (name !== matchingBlock) { - return Object(external_this_wp_blocks_["createBlock"])(matchingBlock, { - url: url - }); - } - } - - if (preview) { - var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead. - - if (util_isFromWordPress(html)) { - // If this is not the WordPress embed block, transform it into one. - if (WORDPRESS_EMBED_BLOCK !== name) { - return Object(external_this_wp_blocks_["createBlock"])(WORDPRESS_EMBED_BLOCK, Object(objectSpread["a" /* default */])({ - url: url - }, attributesFromPreview)); - } - } - } -}; -/** - * Returns class names with any relevant responsive aspect ratio names. - * - * @param {string} html The preview HTML that possibly contains an iframe with width and height set. - * @param {string} existingClassNames Any existing class names. - * @param {boolean} allowResponsive If the responsive class names should be added, or removed. - * @return {string} Deduped class names. - */ - -function getClassNames(html) { - var existingClassNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - - if (!allowResponsive) { - // Remove all of the aspect ratio related class names. - var aspectRatioClassNames = { - 'wp-has-aspect-ratio': false - }; - - for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) { - var aspectRatioToRemove = ASPECT_RATIOS[ratioIndex]; - aspectRatioClassNames[aspectRatioToRemove.className] = false; - } - - return dedupe_default()(existingClassNames, aspectRatioClassNames); - } - - var previewDocument = document.implementation.createHTMLDocument(''); - previewDocument.body.innerHTML = html; - var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block. - - if (iframe && iframe.height && iframe.width) { - var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it. - - for (var _ratioIndex = 0; _ratioIndex < ASPECT_RATIOS.length; _ratioIndex++) { - var potentialRatio = ASPECT_RATIOS[_ratioIndex]; - - if (aspectRatio >= potentialRatio.ratio) { - var _classnames; - - return dedupe_default()(existingClassNames, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, potentialRatio.className, allowResponsive), Object(defineProperty["a" /* default */])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames)); - } - } - } - - return existingClassNames; -} -/** - * Fallback behaviour for unembeddable URLs. - * Creates a paragraph block containing a link to the URL, and calls `onReplace`. - * - * @param {string} url The URL that could not be embedded. - * @param {function} onReplace Function to call with the created fallback block. - */ - -function util_fallback(url, onReplace) { - var link = Object(external_this_wp_element_["createElement"])("a", { - href: url - }, url); - onReplace(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: Object(external_this_wp_element_["renderToString"])(link) - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var image_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/utils.js -function calculatePreferedImageSize(image, container) { - var maxWidth = container.clientWidth; - var exceedMaxWidth = image.width > maxWidth; - var ratio = image.height / image.width; - var width = exceedMaxWidth ? maxWidth : image.width; - var height = exceedMaxWidth ? maxWidth * ratio : image.height; - return { - width: width, - height: height - }; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-size.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var image_size_ImageSize = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ImageSize, _Component); - - function ImageSize() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ImageSize); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSize).apply(this, arguments)); - _this.state = { - width: undefined, - height: undefined - }; - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.calculateSize = _this.calculateSize.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(ImageSize, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.src !== prevProps.src) { - this.setState({ - width: undefined, - height: undefined - }); - this.fetchImageSize(); - } - - if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) { - this.calculateSize(); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this.fetchImageSize(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.image) { - this.image.onload = external_lodash_["noop"]; - } - } - }, { - key: "fetchImageSize", - value: function fetchImageSize() { - this.image = new window.Image(); - this.image.onload = this.calculateSize; - this.image.src = this.props.src; - } - }, { - key: "calculateSize", - value: function calculateSize() { - var _calculatePreferedIma = calculatePreferedImageSize(this.image, this.container), - width = _calculatePreferedIma.width, - height = _calculatePreferedIma.height; - - this.setState({ - width: width, - height: height - }); - } - }, { - key: "render", - value: function render() { - var sizes = { - imageWidth: this.image && this.image.width, - imageHeight: this.image && this.image.height, - containerWidth: this.container && this.container.clientWidth, - containerHeight: this.container && this.container.clientHeight, - imageWidthWithinContainer: this.state.width, - imageHeightWithinContainer: this.state.height - }; - return Object(external_this_wp_element_["createElement"])("div", { - ref: this.bindContainer - }, this.props.children(sizes)); - } - }]); - - return ImageSize; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var image_size = (Object(external_this_wp_compose_["withGlobalEvents"])({ - resize: 'calculateSize' -})(image_size_ImageSize)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - - - -/** - * Internal dependencies - */ - - - - -/** - * Module constants - */ - -var MIN_SIZE = 20; -var LINK_DESTINATION_NONE = 'none'; -var LINK_DESTINATION_MEDIA = 'media'; -var LINK_DESTINATION_ATTACHMENT = 'attachment'; -var LINK_DESTINATION_CUSTOM = 'custom'; -var NEW_TAB_REL = 'noreferrer noopener'; -var ALLOWED_MEDIA_TYPES = ['image']; -var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { - var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); - imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; - return imageProps; -}; -/** - * Is the URL a temporary blob URL? A blob URL is one that is used temporarily - * while the image is being uploaded and will not have an id yet allocated. - * - * @param {number=} id The id of the image. - * @param {string=} url The url of the image. - * - * @return {boolean} Is the URL a Blob URL - */ - -var edit_isTemporaryImage = function isTemporaryImage(id, url) { - return !id && Object(external_this_wp_blob_["isBlobURL"])(url); -}; -/** - * Is the url for the image hosted externally. An externally hosted image has no id - * and is not a blob url. - * - * @param {number=} id The id of the image. - * @param {string=} url The url of the image. - * - * @return {boolean} Is the url an externally hosted url? - */ - - -var edit_isExternalImage = function isExternalImage(id, url) { - return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url); -}; - -var edit_ImageEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ImageEdit, _Component); - - function ImageEdit(_ref) { - var _this; - - var attributes = _ref.attributes; - - Object(classCallCheck["a" /* default */])(this, ImageEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments)); - _this.updateAlt = _this.updateAlt.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.updateAlignment = _this.updateAlignment.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onFocusCaption = _this.onFocusCaption.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.updateImageURL = _this.updateImageURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.updateWidth = _this.updateWidth.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.updateHeight = _this.updateHeight.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.updateDimensions = _this.updateDimensions.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSetCustomHref = _this.onSetCustomHref.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSetLinkClass = _this.onSetLinkClass.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSetLinkDestination = _this.onSetLinkDestination.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSetNewTab = _this.onSetNewTab.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.getFilename = _this.getFilename.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.toggleIsEditing = _this.toggleIsEditing.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onImageError = _this.onImageError.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - captionFocused: false, - isEditing: !attributes.url - }; - return _this; - } - - Object(createClass["a" /* default */])(ImageEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes, - noticeOperations = _this$props.noticeOperations; - var id = attributes.id, - _attributes$url = attributes.url, - url = _attributes$url === void 0 ? '' : _attributes$url; - - if (edit_isTemporaryImage(id, url)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(url); - - if (file) { - Object(external_this_wp_editor_["mediaUpload"])({ - filesList: [file], - onFileChange: function onFileChange(_ref2) { - var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), - image = _ref3[0]; - - setAttributes(edit_pickRelevantMediaFiles(image)); - }, - allowedTypes: ALLOWED_MEDIA_TYPES, - onError: function onError(message) { - noticeOperations.createErrorNotice(message); - - _this2.setState({ - isEditing: true - }); - } - }); - } - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _prevProps$attributes = prevProps.attributes, - prevID = _prevProps$attributes.id, - _prevProps$attributes2 = _prevProps$attributes.url, - prevURL = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2; - var _this$props$attribute = this.props.attributes, - id = _this$props$attribute.id, - _this$props$attribute2 = _this$props$attribute.url, - url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2; - - if (edit_isTemporaryImage(prevID, prevURL) && !edit_isTemporaryImage(id, url)) { - Object(external_this_wp_blob_["revokeBlobURL"])(url); - } - - if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) { - this.setState({ - captionFocused: false - }); - } - } - }, { - key: "onUploadError", - value: function onUploadError(message) { - var noticeOperations = this.props.noticeOperations; - noticeOperations.createErrorNotice(message); - this.setState({ - isEditing: true - }); - } - }, { - key: "onSelectImage", - value: function onSelectImage(media) { - if (!media || !media.url) { - this.props.setAttributes({ - url: undefined, - alt: undefined, - id: undefined, - caption: undefined - }); - return; - } - - this.setState({ - isEditing: false - }); - this.props.setAttributes(Object(objectSpread["a" /* default */])({}, edit_pickRelevantMediaFiles(media), { - width: undefined, - height: undefined - })); - } - }, { - key: "onSetLinkDestination", - value: function onSetLinkDestination(value) { - var href; - - if (value === LINK_DESTINATION_NONE) { - href = undefined; - } else if (value === LINK_DESTINATION_MEDIA) { - href = this.props.image && this.props.image.source_url || this.props.attributes.url; - } else if (value === LINK_DESTINATION_ATTACHMENT) { - href = this.props.image && this.props.image.link; - } else { - href = this.props.attributes.href; - } - - this.props.setAttributes({ - linkDestination: value, - href: href - }); - } - }, { - key: "onSelectURL", - value: function onSelectURL(newURL) { - var url = this.props.attributes.url; - - if (newURL !== url) { - this.props.setAttributes({ - url: newURL, - id: undefined - }); - } - - this.setState({ - isEditing: false - }); - } - }, { - key: "onImageError", - value: function onImageError(url) { - // Check if there's an embed block that handles this URL. - var embedBlock = util_createUpgradedEmbedBlock({ - attributes: { - url: url - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - } - } - }, { - key: "onSetCustomHref", - value: function onSetCustomHref(value) { - this.props.setAttributes({ - href: value - }); - } - }, { - key: "onSetLinkClass", - value: function onSetLinkClass(value) { - this.props.setAttributes({ - linkClass: value - }); - } - }, { - key: "onSetLinkRel", - value: function onSetLinkRel(value) { - this.props.setAttributes({ - rel: value - }); - } - }, { - key: "onSetNewTab", - value: function onSetNewTab(value) { - var rel = this.props.attributes.rel; - var linkTarget = value ? '_blank' : undefined; - var updatedRel = rel; - - if (linkTarget && !rel) { - updatedRel = NEW_TAB_REL; - } else if (!linkTarget && rel === NEW_TAB_REL) { - updatedRel = undefined; - } - - this.props.setAttributes({ - linkTarget: linkTarget, - rel: updatedRel - }); - } - }, { - key: "onFocusCaption", - value: function onFocusCaption() { - if (!this.state.captionFocused) { - this.setState({ - captionFocused: true - }); - } - } - }, { - key: "onImageClick", - value: function onImageClick() { - if (this.state.captionFocused) { - this.setState({ - captionFocused: false - }); - } - } - }, { - key: "updateAlt", - value: function updateAlt(newAlt) { - this.props.setAttributes({ - alt: newAlt - }); - } - }, { - key: "updateAlignment", - value: function updateAlignment(nextAlign) { - var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? { - width: undefined, - height: undefined - } : {}; - this.props.setAttributes(Object(objectSpread["a" /* default */])({}, extraUpdatedAttributes, { - align: nextAlign - })); - } - }, { - key: "updateImageURL", - value: function updateImageURL(url) { - this.props.setAttributes({ - url: url, - width: undefined, - height: undefined - }); - } - }, { - key: "updateWidth", - value: function updateWidth(width) { - this.props.setAttributes({ - width: parseInt(width, 10) - }); - } - }, { - key: "updateHeight", - value: function updateHeight(height) { - this.props.setAttributes({ - height: parseInt(height, 10) - }); - } - }, { - key: "updateDimensions", - value: function updateDimensions() { - var _this3 = this; - - var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; - var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - return function () { - _this3.props.setAttributes({ - width: width, - height: height - }); - }; - } - }, { - key: "getFilename", - value: function getFilename(url) { - var path = Object(external_this_wp_url_["getPath"])(url); - - if (path) { - return Object(external_lodash_["last"])(path.split('/')); - } - } - }, { - key: "getLinkDestinationOptions", - value: function getLinkDestinationOptions() { - return [{ - value: LINK_DESTINATION_NONE, - label: Object(external_this_wp_i18n_["__"])('None') - }, { - value: LINK_DESTINATION_MEDIA, - label: Object(external_this_wp_i18n_["__"])('Media File') - }, { - value: LINK_DESTINATION_ATTACHMENT, - label: Object(external_this_wp_i18n_["__"])('Attachment Page') - }, { - value: LINK_DESTINATION_CUSTOM, - label: Object(external_this_wp_i18n_["__"])('Custom URL') - }]; - } - }, { - key: "toggleIsEditing", - value: function toggleIsEditing() { - this.setState({ - isEditing: !this.state.isEditing - }); - } - }, { - key: "getImageSizeOptions", - value: function getImageSizeOptions() { - var _this$props2 = this.props, - imageSizes = _this$props2.imageSizes, - image = _this$props2.image; - return Object(external_lodash_["compact"])(Object(external_lodash_["map"])(imageSizes, function (_ref4) { - var name = _ref4.name, - slug = _ref4.slug; - var sizeUrl = Object(external_lodash_["get"])(image, ['media_details', 'sizes', slug, 'source_url']); - - if (!sizeUrl) { - return null; - } - - return { - value: sizeUrl, - label: name - }; - })); - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var isEditing = this.state.isEditing; - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes, - isLargeViewport = _this$props3.isLargeViewport, - isSelected = _this$props3.isSelected, - className = _this$props3.className, - maxWidth = _this$props3.maxWidth, - noticeUI = _this$props3.noticeUI, - toggleSelection = _this$props3.toggleSelection, - isRTL = _this$props3.isRTL; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - id = attributes.id, - href = attributes.href, - rel = attributes.rel, - linkClass = attributes.linkClass, - linkDestination = attributes.linkDestination, - width = attributes.width, - height = attributes.height, - linkTarget = attributes.linkTarget; - var isExternal = edit_isExternalImage(id, url); - var toolbarEditButton; - - if (url) { - if (isExternal) { - toolbarEditButton = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-icon-button components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit image'), - onClick: this.toggleIsEditing, - icon: "edit" - })); - } else { - toolbarEditButton = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { - onSelect: this.onSelectImage, - allowedTypes: ALLOWED_MEDIA_TYPES, - value: id, - render: function render(_ref5) { - var open = _ref5.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit image'), - icon: "edit", - onClick: open - }); - } - }))); - } - } - - var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockAlignmentToolbar"], { - value: align, - onChange: this.updateAlignment - }), toolbarEditButton); - - if (isEditing || !url) { - var src = isExternal ? url : undefined; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: image_icon - }), - className: className, - onSelect: this.onSelectImage, - onSelectURL: this.onSelectURL, - notices: noticeUI, - onError: this.onUploadError, - accept: "image/*", - allowedTypes: ALLOWED_MEDIA_TYPES, - value: { - id: id, - src: src - } - })); - } - - var classes = classnames_default()(className, { - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url), - 'is-resized': !!width || !!height, - 'is-focused': isSelected - }); - var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport; - var isLinkURLInputReadOnly = linkDestination !== LINK_DESTINATION_CUSTOM; - var imageSizeOptions = this.getImageSizeOptions(); - - var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Image Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { - label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), - value: alt, - onChange: _this4.updateAlt, - help: Object(external_this_wp_i18n_["__"])('Alternative text describes your image to people who can’t see it. Add a short description with its key details.') - }), !Object(external_lodash_["isEmpty"])(imageSizeOptions) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Image Size'), - value: url, - options: imageSizeOptions, - onChange: _this4.updateImageURL - }), isResizable && Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-image__dimensions" - }, Object(external_this_wp_element_["createElement"])("p", { - className: "block-library-image__dimensions__row" - }, Object(external_this_wp_i18n_["__"])('Image Dimensions')), Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-image__dimensions__row" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - className: "block-library-image__dimensions__width", - label: Object(external_this_wp_i18n_["__"])('Width'), - value: width !== undefined ? width : imageWidth, - min: 1, - onChange: _this4.updateWidth - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - className: "block-library-image__dimensions__height", - label: Object(external_this_wp_i18n_["__"])('Height'), - value: height !== undefined ? height : imageHeight, - min: 1, - onChange: _this4.updateHeight - })), Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-image__dimensions__row" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { - "aria-label": Object(external_this_wp_i18n_["__"])('Image Size') - }, [25, 50, 75, 100].map(function (scale) { - var scaledWidth = Math.round(imageWidth * (scale / 100)); - var scaledHeight = Math.round(imageHeight * (scale / 100)); - var isCurrent = width === scaledWidth && height === scaledHeight; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: scale, - isSmall: true, - isPrimary: isCurrent, - "aria-pressed": isCurrent, - onClick: _this4.updateDimensions(scaledWidth, scaledHeight) - }, scale, "%"); - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isSmall: true, - onClick: _this4.updateDimensions() - }, Object(external_this_wp_i18n_["__"])('Reset'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Link Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Link To'), - value: linkDestination, - options: _this4.getLinkDestinationOptions(), - onChange: _this4.onSetLinkDestination - }), linkDestination !== LINK_DESTINATION_NONE && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link URL'), - value: href || '', - onChange: _this4.onSetCustomHref, - placeholder: !isLinkURLInputReadOnly ? 'https://' : undefined, - readOnly: isLinkURLInputReadOnly - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Open in New Tab'), - onChange: _this4.onSetNewTab, - checked: linkTarget === '_blank' - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link CSS Class'), - value: linkClass || '', - onChange: _this4.onSetLinkClass - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Link Rel'), - value: rel || '', - onChange: _this4.onSetLinkRel - })))); - }; // Disable reason: Each block can be selected by clicking on it - - /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, Object(external_this_wp_element_["createElement"])(image_size, { - src: url, - dirtynessTrigger: align - }, function (sizes) { - var imageWidthWithinContainer = sizes.imageWidthWithinContainer, - imageHeightWithinContainer = sizes.imageHeightWithinContainer, - imageWidth = sizes.imageWidth, - imageHeight = sizes.imageHeight; - - var filename = _this4.getFilename(url); - - var defaultedAlt; - - if (alt) { - defaultedAlt = alt; - } else if (filename) { - defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename); - } else { - defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute'); - } - - var img = // Disable reason: Image itself is not meant to be interactive, but - // should direct focus to block. - - /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ - Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: defaultedAlt, - onClick: _this4.onImageClick, - onError: function onError() { - return _this4.onImageError(url); - } - }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) - /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ - ; - - if (!isResizable || !imageWidthWithinContainer) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])("div", { - style: { - width: width, - height: height - } - }, img)); - } - - var currentWidth = width || imageWidthWithinContainer; - var currentHeight = height || imageHeightWithinContainer; - var ratio = imageWidth / imageHeight; - var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio; - var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an explicit pixel value for the max-width. - // In absence of being able to set the content-width, this max-width is currently dictated by the vanilla editor style. - // The following variable adds a buffer to this vanilla style, so 3rd party themes have some wiggleroom. - // This does, in most cases, allow you to scale the image beyond the width of the main column, though not infinitely. - // @todo It would be good to revisit this once a content-width variable becomes available. - - var maxWidthBuffer = maxWidth * 2.5; - var showRightHandle = false; - var showLeftHandle = false; - /* eslint-disable no-lonely-if */ - // See https://github.com/WordPress/gutenberg/issues/7584. - - if (align === 'center') { - // When the image is centered, show both handles. - showRightHandle = true; - showLeftHandle = true; - } else if (isRTL) { - // In RTL mode the image is on the right by default. - // Show the right handle and hide the left handle only when it is aligned left. - // Otherwise always show the left handle. - if (align === 'left') { - showRightHandle = true; - } else { - showLeftHandle = true; - } - } else { - // Show the left handle and hide the right handle only when the image is aligned right. - // Otherwise always show the right handle. - if (align === 'right') { - showLeftHandle = true; - } else { - showRightHandle = true; - } - } - /* eslint-enable no-lonely-if */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - size: width && height ? { - width: width, - height: height - } : undefined, - minWidth: minWidth, - maxWidth: maxWidthBuffer, - minHeight: minHeight, - maxHeight: maxWidthBuffer / ratio, - lockAspectRatio: true, - enable: { - top: false, - right: showRightHandle, - bottom: true, - left: showLeftHandle - }, - onResizeStart: function onResizeStart() { - toggleSelection(false); - }, - onResizeStop: function onResizeStop(event, direction, elt, delta) { - setAttributes({ - width: parseInt(currentWidth + delta.width, 10), - height: parseInt(currentHeight + delta.height, 10) - }); - toggleSelection(true); - } - }, img)); - }), (!external_this_wp_editor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - unstableOnFocus: this.onFocusCaption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - isSelected: this.state.captionFocused, - inlineToolbar: true - }))); - /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - } - }]); - - return ImageEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var image_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core'), - getMedia = _select.getMedia; - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - var id = props.attributes.id; - - var _getSettings = getSettings(), - maxWidth = _getSettings.maxWidth, - isRTL = _getSettings.isRTL, - imageSizes = _getSettings.imageSizes; - - return { - image: id ? getMedia(id) : null, - maxWidth: maxWidth, - isRTL: isRTL, - imageSizes: imageSizes - }; -}), Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), external_this_wp_components_["withNotices"]])(edit_ImageEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -var image_name = 'core/image'; -var image_blockAttributes = { - 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' - }, - align: { - type: 'string' - }, - width: { - type: 'number' - }, - height: { - type: 'number' - }, - linkDestination: { - type: 'string', - default: 'none' - }, - linkTarget: { - type: 'string', - source: 'attribute', - selector: 'figure > a', - attribute: 'target' - } -}; -var imageSchema = { - img: { - attributes: ['src', 'alt'], - classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/] - } -}; -var image_schema = { - figure: { - require: ['img'], - children: Object(objectSpread["a" /* default */])({}, imageSchema, { - a: { - attributes: ['href', 'rel', 'target'], - children: imageSchema - }, - figcaption: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - }) - } -}; - -function getFirstAnchorAttributeFormHTML(html, attributeName) { - var _document$implementat = document.implementation.createHTMLDocument(''), - body = _document$implementat.body; - - body.innerHTML = html; - var firstElementChild = body.firstElementChild; - - if (firstElementChild && firstElementChild.nodeName === 'A') { - return firstElementChild.getAttribute(attributeName) || undefined; - } -} - -var image_settings = { - title: Object(external_this_wp_i18n_["__"])('Image'), - description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'), - icon: image_icon, - category: 'common', - keywords: ['img', // "img" is not translated as it is intended to reflect the HTML tag. - Object(external_this_wp_i18n_["__"])('photo')], - attributes: image_blockAttributes, - transforms: { - from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'FIGURE' && !!node.querySelector('img'); - }, - schema: image_schema, - transform: function transform(node) { - // Search both figure and image classes. Alignment could be - // set on either. ID is set on the image. - var className = node.className + ' ' + node.querySelector('img').className; - var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className); - var align = alignMatches ? alignMatches[1] : undefined; - var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className); - var id = idMatches ? Number(idMatches[1]) : undefined; - var anchorElement = node.querySelector('a'); - var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined; - var href = anchorElement && anchorElement.href ? anchorElement.href : undefined; - var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined; - var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined; - var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, { - align: align, - id: id, - linkDestination: linkDestination, - href: href, - rel: rel, - linkClass: linkClass - }); - return Object(external_this_wp_blocks_["createBlock"])('core/image', attributes); - } - }, { - type: 'files', - isMatch: function isMatch(files) { - return files.length === 1 && files[0].type.indexOf('image/') === 0; - }, - transform: function transform(files) { - var file = files[0]; // We don't need to upload the media directly here - // It's already done as part of the `componentDidMount` - // int the image block - - var block = Object(external_this_wp_blocks_["createBlock"])('core/image', { - url: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - return block; - } - }, { - type: 'shortcode', - tag: 'caption', - attributes: { - url: { - type: 'string', - source: 'attribute', - attribute: 'src', - selector: 'img' - }, - alt: { - type: 'string', - source: 'attribute', - attribute: 'alt', - selector: 'img' - }, - caption: { - shortcode: function shortcode(attributes, _ref) { - var _shortcode = _ref.shortcode; - - var _document$implementat2 = document.implementation.createHTMLDocument(''), - body = _document$implementat2.body; - - body.innerHTML = _shortcode.content; - body.removeChild(body.firstElementChild); - return body.innerHTML.trim(); - } - }, - href: { - shortcode: function shortcode(attributes, _ref2) { - var _shortcode2 = _ref2.shortcode; - return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'href'); - } - }, - rel: { - shortcode: function shortcode(attributes, _ref3) { - var _shortcode3 = _ref3.shortcode; - return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'rel'); - } - }, - linkClass: { - shortcode: function shortcode(attributes, _ref4) { - var _shortcode4 = _ref4.shortcode; - return getFirstAnchorAttributeFormHTML(_shortcode4.content, 'class'); - } - }, - id: { - type: 'number', - shortcode: function shortcode(_ref5) { - var id = _ref5.named.id; - - if (!id) { - return; - } - - return parseInt(id.replace('attachment_', ''), 10); - } - }, - align: { - type: 'string', - shortcode: function shortcode(_ref6) { - var _ref6$named$align = _ref6.named.align, - align = _ref6$named$align === void 0 ? 'alignnone' : _ref6$named$align; - return align.replace('align', ''); - } - } - } - }] - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var align = attributes.align, - width = attributes.width; - - if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) { - return { - 'data-align': align, - 'data-resized': !!width - }; - } - }, - edit: image_edit, - save: function save(_ref7) { - var _classnames; - - var attributes = _ref7.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - rel = attributes.rel, - linkClass = attributes.linkClass, - width = attributes.width, - height = attributes.height, - id = attributes.id, - linkTarget = attributes.linkTarget; - var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames)); - var image = Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - className: id ? "wp-image-".concat(id) : null, - width: width, - height: height - }); - var figure = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, href ? Object(external_this_wp_element_["createElement"])("a", { - className: linkClass, - href: href, - target: linkTarget, - rel: rel - }, image) : image, !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - - if ('left' === align || 'right' === align || 'center' === align) { - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, figure)); - } - - return Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, figure); - }, - deprecated: [{ - attributes: image_blockAttributes, - save: function save(_ref8) { - var _classnames2; - - var attributes = _ref8.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - width = attributes.width, - height = attributes.height, - id = attributes.id; - var classes = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames2, 'is-resized', width || height), _classnames2)); - var image = Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - className: id ? "wp-image-".concat(id) : null, - width: width, - height: height - }); - return Object(external_this_wp_element_["createElement"])("figure", { - className: classes - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, image) : image, !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } - }, { - attributes: image_blockAttributes, - save: function save(_ref9) { - var attributes = _ref9.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - width = attributes.width, - height = attributes.height, - id = attributes.id; - var image = Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - className: id ? "wp-image-".concat(id) : null, - width: width, - height: height - }); - return Object(external_this_wp_element_["createElement"])("figure", { - className: align ? "align".concat(align) : null - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, image) : image, !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } - }, { - attributes: image_blockAttributes, - save: function save(_ref10) { - var attributes = _ref10.attributes; - var url = attributes.url, - alt = attributes.alt, - caption = attributes.caption, - align = attributes.align, - href = attributes.href, - width = attributes.width, - height = attributes.height; - var extraImageProps = width || height ? { - width: width, - height: height - } : {}; - var image = Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({ - src: url, - alt: alt - }, extraImageProps)); - var figureStyle = {}; - - if (width) { - figureStyle = { - width: width - }; - } else if (align === 'left' || align === 'right') { - figureStyle = { - maxWidth: '50%' - }; - } - - return Object(external_this_wp_element_["createElement"])("figure", { - className: align ? "align".concat(align) : null, - style: figureStyle - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, image) : image, !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } - }] -}; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules -var objectWithoutProperties = __webpack_require__(21); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -var heading_toolbar_HeadingToolbar = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(HeadingToolbar, _Component); - - function HeadingToolbar() { - Object(classCallCheck["a" /* default */])(this, HeadingToolbar); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HeadingToolbar).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(HeadingToolbar, [{ - key: "createLevelControl", - value: function createLevelControl(targetLevel, selectedLevel, onChange) { - return { - icon: 'heading', - // translators: %s: heading level e.g: "1", "2", "3" - title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel), - isActive: targetLevel === selectedLevel, - onClick: function onClick() { - return onChange(targetLevel); - }, - subscript: String(targetLevel) - }; - } - }, { - key: "render", - value: function render() { - var _this = this; - - var _this$props = this.props, - minLevel = _this$props.minLevel, - maxLevel = _this$props.maxLevel, - selectedLevel = _this$props.selectedLevel, - onChange = _this$props.onChange; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: Object(external_lodash_["range"])(minLevel, maxLevel).map(function (index) { - return _this.createLevelControl(index, selectedLevel, onChange); - }) - }); - } - }]); - - return HeadingToolbar; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var heading_toolbar = (heading_toolbar_HeadingToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js - - -/** - * Internal dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function HeadingEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - mergeBlocks = _ref.mergeBlocks, - insertBlocksAfter = _ref.insertBlocksAfter, - onReplace = _ref.onReplace, - className = _ref.className; - var align = attributes.align, - content = attributes.content, - level = attributes.level, - placeholder = attributes.placeholder; - var tagName = 'h' + level; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(heading_toolbar, { - minLevel: 2, - maxLevel: 5, - selectedLevel: level, - onChange: function onChange(newLevel) { - return setAttributes({ - level: newLevel - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Heading Settings') - }, Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Level')), Object(external_this_wp_element_["createElement"])(heading_toolbar, { - minLevel: 1, - maxLevel: 7, - selectedLevel: level, - onChange: function onChange(newLevel) { - return setAttributes({ - level: newLevel - }); - } - }), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Text Alignment')), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - identifier: "content", - wrapperClassName: "wp-block-heading", - tagName: tagName, - value: content, - onChange: function onChange(value) { - return setAttributes({ - content: value - }); - }, - onMerge: mergeBlocks, - unstableOnSplit: insertBlocksAfter ? function (before, after) { - setAttributes({ - content: before - }); - - for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } - - insertBlocksAfter([].concat(blocks, [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: after - })])); - } : undefined, - onRemove: function onRemove() { - return onReplace([]); - }, - style: { - textAlign: align - }, - className: className, - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…') - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -/** - * Given a node name string for a heading node, returns its numeric level. - * - * @param {string} nodeName Heading node name. - * - * @return {number} Heading level. - */ - -function getLevelFromHeadingNodeName(nodeName) { - return Number(nodeName.substr(1)); -} -var heading_supports = { - className: false, - anchor: true -}; -var heading_schema = { - content: { - type: 'string', - source: 'html', - selector: 'h1,h2,h3,h4,h5,h6', - default: '' - }, - level: { - type: 'number', - default: 2 - }, - align: { - type: 'string' - }, - placeholder: { - type: 'string' - } -}; -var heading_name = 'core/heading'; -var heading_settings = { - title: Object(external_this_wp_i18n_["__"])('Heading'), - description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 4v3h5.5v12h3V7H19V4z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - })), - category: 'common', - keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')], - supports: heading_supports, - attributes: heading_schema, - transforms: { - from: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref) { - var content = _ref.content; - return Object(external_this_wp_blocks_["createBlock"])('core/heading', { - content: content - }); - } - }, { - type: 'raw', - selector: 'h1,h2,h3,h4,h5,h6', - schema: { - h1: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h2: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h3: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h4: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h5: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - h6: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - }, - transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/heading', node.outerHTML), { - level: getLevelFromHeadingNodeName(node.nodeName) - })); - } - }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) { - return { - type: 'prefix', - prefix: Array(level + 1).join('#'), - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/heading', { - level: level, - content: content - }); - } - }; - }))), - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref2) { - var content = _ref2.content; - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: content - }); - } - }] - }, - deprecated: [{ - supports: heading_supports, - attributes: Object(objectSpread["a" /* default */])({}, Object(external_lodash_["omit"])(heading_schema, ['level']), { - nodeName: { - type: 'string', - source: 'property', - selector: 'h1,h2,h3,h4,h5,h6', - property: 'nodeName', - default: 'H2' - } - }), - migrate: function migrate(attributes) { - var nodeName = attributes.nodeName, - migratedAttributes = Object(objectWithoutProperties["a" /* default */])(attributes, ["nodeName"]); - - return Object(objectSpread["a" /* default */])({}, migratedAttributes, { - level: getLevelFromHeadingNodeName(nodeName) - }); - }, - save: function save(_ref3) { - var attributes = _ref3.attributes; - var align = attributes.align, - nodeName = attributes.nodeName, - content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: nodeName.toLowerCase(), - style: { - textAlign: align - }, - value: content - }); - } - }], - merge: function merge(attributes, attributesToMerge) { - return { - content: attributes.content + attributesToMerge.content - }; - }, - edit: HeadingEdit, - save: function save(_ref4) { - var attributes = _ref4.attributes; - var align = attributes.align, - level = attributes.level, - content = attributes.content; - var tagName = 'h' + level; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: tagName, - style: { - textAlign: align - }, - value: content - }); - } -}; - -// EXTERNAL MODULE: external {"this":["wp","richText"]} -var external_this_wp_richText_ = __webpack_require__(20); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/index.js - - - - - -var _blockAttributes; - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -var ATTRIBUTE_QUOTE = 'value'; -var ATTRIBUTE_CITATION = 'citation'; -var quote_blockAttributes = (_blockAttributes = {}, Object(defineProperty["a" /* default */])(_blockAttributes, ATTRIBUTE_QUOTE, { - type: 'string', - source: 'html', - selector: 'blockquote', - multiline: 'p', - default: '' -}), Object(defineProperty["a" /* default */])(_blockAttributes, ATTRIBUTE_CITATION, { - type: 'string', - source: 'html', - selector: 'cite', - default: '' -}), Object(defineProperty["a" /* default */])(_blockAttributes, "align", { - type: 'string' -}), _blockAttributes); -var quote_name = 'core/quote'; -var quote_settings = { - title: Object(external_this_wp_i18n_["__"])('Quote'), - description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z" - })), - category: 'common', - keywords: [Object(external_this_wp_i18n_["__"])('blockquote')], - attributes: quote_blockAttributes, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: 'large', - label: Object(external_this_wp_i18n_["_x"])('Large', 'block style') - }], - transforms: { - from: [{ - type: 'block', - isMultiBlock: true, - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["join"])(attributes.map(function (_ref) { - var content = _ref.content; - return Object(external_this_wp_richText_["create"])({ - html: content - }); - }), "\u2028"), - multilineTag: 'p' - }) - }); - } - }, { - type: 'block', - blocks: ['core/heading'], - transform: function transform(_ref2) { - var content = _ref2.content; - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: "

    ".concat(content, "

    ") - }); - } - }, { - type: 'block', - blocks: ['core/pullquote'], - transform: function transform(_ref3) { - var value = _ref3.value, - citation = _ref3.citation; - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: value, - citation: citation - }); - } - }, { - type: 'prefix', - prefix: '>', - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: "

    ".concat(content, "

    ") - }); - } - }, { - type: 'raw', - isMatch: function isMatch(node) { - var isParagraphOrSingleCite = function () { - var hasCitation = false; - return function (child) { - // Child is a paragraph. - if (child.nodeName === 'P') { - return true; - } // Child is a cite and no other cite child exists before it. - - - if (!hasCitation && child.nodeName === 'CITE') { - hasCitation = true; - return true; - } - }; - }(); - - return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph - // content with an optional cite child. - Array.from(node.childNodes).every(isParagraphOrSingleCite); - }, - schema: { - blockquote: { - children: { - p: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - cite: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - } - } - }], - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref4) { - var value = _ref4.value, - citation = _ref4.citation; - var paragraphs = []; - - if (value && value !== '

    ') { - paragraphs.push.apply(paragraphs, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ - html: value, - multilineTag: 'p' - }), "\u2028").map(function (piece) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: Object(external_this_wp_richText_["toHTMLString"])({ - value: piece - }) - }); - }))); - } - - if (citation && citation !== '

    ') { - paragraphs.push(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: citation - })); - } - - if (paragraphs.length === 0) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: '' - }); - } - - return paragraphs; - } - }, { - type: 'block', - blocks: ['core/heading'], - transform: function transform(_ref5) { - var value = _ref5.value, - citation = _ref5.citation, - attrs = Object(objectWithoutProperties["a" /* default */])(_ref5, ["value", "citation"]); - - // If there is no quote content, use the citation as the - // content of the resulting heading. A nonexistent citation - // will result in an empty heading. - if (value === '

    ') { - return Object(external_this_wp_blocks_["createBlock"])('core/heading', { - content: citation - }); - } - - var pieces = Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ - html: value, - multilineTag: 'p' - }), "\u2028"); - var quotePieces = pieces.slice(1); - return [Object(external_this_wp_blocks_["createBlock"])('core/heading', { - content: Object(external_this_wp_richText_["toHTMLString"])({ - value: pieces[0] - }) - }), Object(external_this_wp_blocks_["createBlock"])('core/quote', Object(objectSpread["a" /* default */])({}, attrs, { - citation: citation, - value: Object(external_this_wp_richText_["toHTMLString"])({ - value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(), - multilineTag: 'p' - }) - }))]; - } - }, { - type: 'block', - blocks: ['core/pullquote'], - transform: function transform(_ref6) { - var value = _ref6.value, - citation = _ref6.citation; - return Object(external_this_wp_blocks_["createBlock"])('core/pullquote', { - value: value, - citation: citation - }); - } - }] - }, - edit: function edit(_ref7) { - var attributes = _ref7.attributes, - setAttributes = _ref7.setAttributes, - isSelected = _ref7.isSelected, - mergeBlocks = _ref7.mergeBlocks, - onReplace = _ref7.onReplace, - className = _ref7.className; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - })), Object(external_this_wp_element_["createElement"])("blockquote", { - className: className, - style: { - textAlign: align - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - identifier: ATTRIBUTE_QUOTE, - multiline: true, - value: value, - onChange: function onChange(nextValue) { - return setAttributes({ - value: nextValue - }); - }, - onMerge: mergeBlocks, - onRemove: function onRemove(forward) { - var hasEmptyCitation = !citation || citation.length === 0; - - if (!forward && hasEmptyCitation) { - onReplace([]); - } - }, - placeholder: // translators: placeholder text used for the quote - Object(external_this_wp_i18n_["__"])('Write quote…') - }), (!external_this_wp_editor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - identifier: ATTRIBUTE_CITATION, - value: citation, - onChange: function onChange(nextCitation) { - return setAttributes({ - citation: nextCitation - }); - }, - placeholder: // translators: placeholder text used for the citation - Object(external_this_wp_i18n_["__"])('Write citation…'), - className: "wp-block-quote__citation" - }))); - }, - save: function save(_ref8) { - var attributes = _ref8.attributes; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation; - return Object(external_this_wp_element_["createElement"])("blockquote", { - style: { - textAlign: align ? align : null - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - multiline: true, - value: value - }), !external_this_wp_editor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "cite", - value: citation - })); - }, - merge: function merge(attributes, _ref9) { - var value = _ref9.value, - citation = _ref9.citation; - - if (!value || value === '

    ') { - return Object(objectSpread["a" /* default */])({}, attributes, { - citation: attributes.citation + citation - }); - } - - return Object(objectSpread["a" /* default */])({}, attributes, { - value: attributes.value + value, - citation: attributes.citation + citation - }); - }, - deprecated: [{ - attributes: Object(objectSpread["a" /* default */])({}, quote_blockAttributes, { - style: { - type: 'number', - default: 1 - } - }), - migrate: function migrate(attributes) { - if (attributes.style === 2) { - return Object(objectSpread["a" /* default */])({}, Object(external_lodash_["omit"])(attributes, ['style']), { - className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large' - }); - } - - return attributes; - }, - save: function save(_ref10) { - var attributes = _ref10.attributes; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation, - style = attributes.style; - return Object(external_this_wp_element_["createElement"])("blockquote", { - className: style === 2 ? 'is-large' : '', - style: { - textAlign: align ? align : null - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - multiline: true, - value: value - }), !external_this_wp_editor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "cite", - value: citation - })); - } - }, { - attributes: Object(objectSpread["a" /* default */])({}, quote_blockAttributes, { - citation: { - type: 'string', - source: 'html', - selector: 'footer', - default: '' - }, - style: { - type: 'number', - default: 1 - } - }), - save: function save(_ref11) { - var attributes = _ref11.attributes; - var align = attributes.align, - value = attributes.value, - citation = attributes.citation, - style = attributes.style; - return Object(external_this_wp_element_["createElement"])("blockquote", { - className: "blocks-quote-style-".concat(style), - style: { - textAlign: align ? align : null - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - multiline: true, - value: value - }), !external_this_wp_editor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "footer", - value: citation - })); - } - }] -}; - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(17); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - - -var gallery_image_GalleryImage = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(GalleryImage, _Component); - - function GalleryImage() { - var _this; - - Object(classCallCheck["a" /* default */])(this, GalleryImage); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments)); - _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - captionSelected: false - }; - return _this; - } - - Object(createClass["a" /* default */])(GalleryImage, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - }, { - key: "onSelectCaption", - value: function onSelectCaption() { - if (!this.state.captionSelected) { - this.setState({ - captionSelected: true - }); - } - - if (!this.props.isSelected) { - this.props.onSelect(); - } - } - }, { - key: "onImageClick", - value: function onImageClick() { - if (!this.props.isSelected) { - this.props.onSelect(); - } - - if (this.state.captionSelected) { - this.setState({ - captionSelected: false - }); - } - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) { - event.stopPropagation(); - event.preventDefault(); - this.props.onRemove(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - isSelected = _this$props.isSelected, - image = _this$props.image, - url = _this$props.url; - - if (image && !url) { - this.props.setAttributes({ - url: image.source_url, - alt: image.alt_text - }); - } // unselect the caption so when the user selects other image and comeback - // the caption is not immediately selected - - - if (this.state.captionSelected && !isSelected && prevProps.isSelected) { - this.setState({ - captionSelected: false - }); - } - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - url = _this$props2.url, - alt = _this$props2.alt, - id = _this$props2.id, - linkTo = _this$props2.linkTo, - link = _this$props2.link, - isSelected = _this$props2.isSelected, - caption = _this$props2.caption, - onRemove = _this$props2.onRemove, - setAttributes = _this$props2.setAttributes, - ariaLabel = _this$props2['aria-label']; - var href; - - switch (linkTo) { - case 'media': - href = url; - break; - - case 'attachment': - href = link; - break; - } - - var img = // Disable reason: Image itself is not meant to be interactive, but should - // direct image selection and unfocus caption fields. - - /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ - Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { - src: url, - alt: alt, - "data-id": id, - onClick: this.onImageClick, - tabIndex: "0", - onKeyDown: this.onImageClick, - "aria-label": ariaLabel - }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) - /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ - ; - var className = classnames_default()({ - 'is-selected': isSelected, - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url) - }); // Disable reason: Each block can be selected by clicking on it and we should keep the same saved markup - - /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - - return Object(external_this_wp_element_["createElement"])("figure", { - className: className, - tabIndex: "-1", - onKeyDown: this.onKeyDown, - ref: this.bindContainer - }, isSelected && Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-gallery-item__inline-menu" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "no-alt", - onClick: onRemove, - className: "blocks-gallery-item__remove", - label: Object(external_this_wp_i18n_["__"])('Remove Image') - })), href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, !external_this_wp_editor_["RichText"].isEmpty(caption) || isSelected ? Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - isSelected: this.state.captionSelected, - onChange: function onChange(newCaption) { - return setAttributes({ - caption: newCaption - }); - }, - unstableOnFocus: this.onSelectCaption, - inlineToolbar: true - }) : null); - /* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - } - }]); - - return GalleryImage; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var gallery_image = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core'), - getMedia = _select.getMedia; - - var id = ownProps.id; - return { - image: id ? getMedia(id) : null - }; -})(gallery_image_GalleryImage)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var gallery_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z" -})))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js - - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var MAX_COLUMNS = 8; -var linkOptions = [{ - value: 'attachment', - label: Object(external_this_wp_i18n_["__"])('Attachment Page') -}, { - value: 'media', - label: Object(external_this_wp_i18n_["__"])('Media File') -}, { - value: 'none', - label: Object(external_this_wp_i18n_["__"])('None') -}]; -var edit_ALLOWED_MEDIA_TYPES = ['image']; -function defaultColumnsNumber(attributes) { - return Math.min(3, attributes.images.length); -} -var gallery_edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { - var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); - imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; - return imageProps; -}; - -var edit_GalleryEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(GalleryEdit, _Component); - - function GalleryEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, GalleryEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryEdit).apply(this, arguments)); - _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setImageAttributes = _this.setImageAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.addFiles = _this.addFiles.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.uploadFromFiles = _this.uploadFromFiles.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - selectedImage: null - }; - return _this; - } - - Object(createClass["a" /* default */])(GalleryEdit, [{ - key: "setAttributes", - value: function setAttributes(attributes) { - if (attributes.ids) { - throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes'); - } - - if (attributes.images) { - attributes = Object(objectSpread["a" /* default */])({}, attributes, { - ids: Object(external_lodash_["map"])(attributes.images, 'id') - }); - } - - this.props.setAttributes(attributes); - } - }, { - key: "onSelectImage", - value: function onSelectImage(index) { - var _this2 = this; - - return function () { - if (_this2.state.selectedImage !== index) { - _this2.setState({ - selectedImage: index - }); - } - }; - } - }, { - key: "onRemoveImage", - value: function onRemoveImage(index) { - var _this3 = this; - - return function () { - var images = Object(external_lodash_["filter"])(_this3.props.attributes.images, function (img, i) { - return index !== i; - }); - var columns = _this3.props.attributes.columns; - - _this3.setState({ - selectedImage: null - }); - - _this3.setAttributes({ - images: images, - columns: columns ? Math.min(images.length, columns) : columns - }); - }; - } - }, { - key: "onSelectImages", - value: function onSelectImages(images) { - var columns = this.props.attributes.columns; - this.setAttributes({ - images: images.map(function (image) { - return gallery_edit_pickRelevantMediaFiles(image); - }), - columns: columns ? Math.min(images.length, columns) : columns - }); - } - }, { - key: "setLinkTo", - value: function setLinkTo(value) { - this.setAttributes({ - linkTo: value - }); - } - }, { - key: "setColumnsNumber", - value: function setColumnsNumber(value) { - this.setAttributes({ - columns: value - }); - } - }, { - key: "toggleImageCrop", - value: function toggleImageCrop() { - this.setAttributes({ - imageCrop: !this.props.attributes.imageCrop - }); - } - }, { - key: "getImageCropHelp", - value: function getImageCropHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.'); - } - }, { - key: "setImageAttributes", - value: function setImageAttributes(index, attributes) { - var images = this.props.attributes.images; - var setAttributes = this.setAttributes; - - if (!images[index]) { - return; - } - - setAttributes({ - images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [Object(objectSpread["a" /* default */])({}, images[index], attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) - }); - } - }, { - key: "uploadFromFiles", - value: function uploadFromFiles(event) { - this.addFiles(event.target.files); - } - }, { - key: "addFiles", - value: function addFiles(files) { - var currentImages = this.props.attributes.images || []; - var noticeOperations = this.props.noticeOperations; - var setAttributes = this.setAttributes; - Object(external_this_wp_editor_["mediaUpload"])({ - allowedTypes: edit_ALLOWED_MEDIA_TYPES, - filesList: files, - onFileChange: function onFileChange(images) { - var imagesNormalized = images.map(function (image) { - return gallery_edit_pickRelevantMediaFiles(image); - }); - setAttributes({ - images: currentImages.concat(imagesNormalized) - }); - }, - onError: noticeOperations.createErrorNotice - }); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Deselect images when deselecting the block - if (!this.props.isSelected && prevProps.isSelected) { - this.setState({ - selectedImage: null, - captionSelected: false - }); - } - } - }, { - key: "render", - value: function render() { - var _classnames, - _this4 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - isSelected = _this$props.isSelected, - className = _this$props.className, - noticeOperations = _this$props.noticeOperations, - noticeUI = _this$props.noticeUI; - var images = attributes.images, - _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, - align = attributes.align, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - var dropZone = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { - onFilesDrop: this.addFiles - }); - var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, !!images.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { - onSelect: this.onSelectImages, - allowedTypes: edit_ALLOWED_MEDIA_TYPES, - multiple: true, - gallery: true, - value: images.map(function (img) { - return img.id; - }), - render: function render(_ref) { - var open = _ref.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit gallery'), - icon: "edit", - onClick: open - }); - } - }))); - - if (images.length === 0) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: gallery_icon - }), - className: className, - labels: { - title: Object(external_this_wp_i18n_["__"])('Gallery'), - instructions: Object(external_this_wp_i18n_["__"])('Drag images, upload new ones or select files from your library.') - }, - onSelect: this.onSelectImages, - accept: "image/*", - allowedTypes: edit_ALLOWED_MEDIA_TYPES, - multiple: true, - notices: noticeUI, - onError: noticeOperations.createErrorNotice - })); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Gallery Settings') - }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: this.setColumnsNumber, - min: 1, - max: Math.min(MAX_COLUMNS, images.length) - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Crop Images'), - checked: !!imageCrop, - onChange: this.toggleImageCrop, - help: this.getImageCropHelp - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Link To'), - value: linkTo, - onChange: this.setLinkTo, - options: linkOptions - }))), noticeUI, Object(external_this_wp_element_["createElement"])("ul", { - className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "columns-".concat(columns), columns), Object(defineProperty["a" /* default */])(_classnames, 'is-cropped', imageCrop), _classnames)) - }, dropZone, images.map(function (img, index) { - /* translators: %1$d is the order number of the image, %2$d is the total number of images. */ - var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length); - return Object(external_this_wp_element_["createElement"])("li", { - className: "blocks-gallery-item", - key: img.id || img.url - }, Object(external_this_wp_element_["createElement"])(gallery_image, { - url: img.url, - alt: img.alt, - id: img.id, - isSelected: isSelected && _this4.state.selectedImage === index, - onRemove: _this4.onRemoveImage(index), - onSelect: _this4.onSelectImage(index), - setAttributes: function setAttributes(attrs) { - return _this4.setImageAttributes(index, attrs); - }, - caption: img.caption, - "aria-label": ariaLabel - })); - }), isSelected && Object(external_this_wp_element_["createElement"])("li", { - className: "blocks-gallery-item has-add-item-button" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { - multiple: true, - isLarge: true, - className: "block-library-gallery-add-item-button", - onChange: this.uploadFromFiles, - accept: "image/*", - icon: "insert" - }, Object(external_this_wp_i18n_["__"])('Upload an image'))))); - } - }]); - - return GalleryEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var gallery_edit = (Object(external_this_wp_components_["withNotices"])(edit_GalleryEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var gallery_blockAttributes = { - images: { - type: 'array', - default: [], - source: 'query', - selector: 'ul.wp-block-gallery .blocks-gallery-item', - query: { - url: { - source: 'attribute', - selector: 'img', - attribute: 'src' - }, - link: { - source: 'attribute', - selector: 'img', - attribute: 'data-link' - }, - alt: { - source: 'attribute', - selector: 'img', - attribute: 'alt', - default: '' - }, - id: { - source: 'attribute', - selector: 'img', - attribute: 'data-id' - }, - caption: { - type: 'string', - source: 'html', - selector: 'figcaption' - } - } - }, - ids: { - type: 'array', - default: [] - }, - columns: { - type: 'number' - }, - imageCrop: { - type: 'boolean', - default: true - }, - linkTo: { - type: 'string', - default: 'none' - } -}; -var gallery_name = 'core/gallery'; - -var parseShortcodeIds = function parseShortcodeIds(ids) { - if (!ids) { - return []; - } - - return ids.split(',').map(function (id) { - return parseInt(id, 10); - }); -}; - -var gallery_settings = { - title: Object(external_this_wp_i18n_["__"])('Gallery'), - description: Object(external_this_wp_i18n_["__"])('Display multiple images in a rich gallery.'), - icon: gallery_icon, - category: 'common', - keywords: [Object(external_this_wp_i18n_["__"])('images'), Object(external_this_wp_i18n_["__"])('photos')], - attributes: gallery_blockAttributes, - supports: { - align: true - }, - transforms: { - from: [{ - type: 'block', - isMultiBlock: true, - blocks: ['core/image'], - transform: function transform(attributes) { - // Init the align attribute from the first item which may be either the placeholder or an image. - var align = attributes[0].align; // Loop through all the images and check if they have the same align. - - align = Object(external_lodash_["every"])(attributes, ['align', align]) ? align : undefined; - var validImages = Object(external_lodash_["filter"])(attributes, function (_ref) { - var id = _ref.id, - url = _ref.url; - return id && url; - }); - return Object(external_this_wp_blocks_["createBlock"])('core/gallery', { - images: validImages.map(function (_ref2) { - var id = _ref2.id, - url = _ref2.url, - alt = _ref2.alt, - caption = _ref2.caption; - return { - id: id, - url: url, - alt: alt, - caption: caption - }; - }), - ids: validImages.map(function (_ref3) { - var id = _ref3.id; - return id; - }), - align: align - }); - } - }, { - type: 'shortcode', - tag: 'gallery', - attributes: { - images: { - type: 'array', - shortcode: function shortcode(_ref4) { - var ids = _ref4.named.ids; - return parseShortcodeIds(ids).map(function (id) { - return { - id: id - }; - }); - } - }, - ids: { - type: 'array', - shortcode: function shortcode(_ref5) { - var ids = _ref5.named.ids; - return parseShortcodeIds(ids); - } - }, - columns: { - type: 'number', - shortcode: function shortcode(_ref6) { - var _ref6$named$columns = _ref6.named.columns, - columns = _ref6$named$columns === void 0 ? '3' : _ref6$named$columns; - return parseInt(columns, 10); - } - }, - linkTo: { - type: 'string', - shortcode: function shortcode(_ref7) { - var _ref7$named$link = _ref7.named.link, - link = _ref7$named$link === void 0 ? 'attachment' : _ref7$named$link; - return link === 'file' ? 'media' : link; - } - } - } - }, { - // When created by drag and dropping multiple files on an insertion point - type: 'files', - isMatch: function isMatch(files) { - return files.length !== 1 && Object(external_lodash_["every"])(files, function (file) { - return file.type.indexOf('image/') === 0; - }); - }, - transform: function transform(files, onChange) { - var block = Object(external_this_wp_blocks_["createBlock"])('core/gallery', { - images: files.map(function (file) { - return gallery_edit_pickRelevantMediaFiles({ - url: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - }) - }); - Object(external_this_wp_editor_["mediaUpload"])({ - filesList: files, - onFileChange: function onFileChange(images) { - var imagesAttr = images.map(gallery_edit_pickRelevantMediaFiles); - onChange(block.clientId, { - ids: Object(external_lodash_["map"])(imagesAttr, 'id'), - images: imagesAttr - }); - }, - allowedTypes: ['image'] - }); - return block; - } - }], - to: [{ - type: 'block', - blocks: ['core/image'], - transform: function transform(_ref8) { - var images = _ref8.images, - align = _ref8.align; - - if (images.length > 0) { - return images.map(function (_ref9) { - var id = _ref9.id, - url = _ref9.url, - alt = _ref9.alt, - caption = _ref9.caption; - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - id: id, - url: url, - alt: alt, - caption: caption, - align: align - }); - }); - } - - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - align: align - }); - } - }] - }, - edit: gallery_edit, - save: function save(_ref10) { - var attributes = _ref10.attributes; - var images = attributes.images, - _attributes$columns = attributes.columns, - columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - return Object(external_this_wp_element_["createElement"])("ul", { - className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id, - "data-link": image.link, - className: image.id ? "wp-image-".concat(image.id) : null - }); - return Object(external_this_wp_element_["createElement"])("li", { - key: image.id || image.url, - className: "blocks-gallery-item" - }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: image.caption - }))); - })); - }, - deprecated: [{ - attributes: gallery_blockAttributes, - isEligible: function isEligible(_ref11) { - var images = _ref11.images, - ids = _ref11.ids; - return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_lodash_["some"])(images, function (id, index) { - if (!id && ids[index] !== null) { - return true; - } - - return parseInt(id, 10) !== ids[index]; - })); - }, - migrate: function migrate(attributes) { - return Object(objectSpread["a" /* default */])({}, attributes, { - ids: Object(external_lodash_["map"])(attributes.images, function (_ref12) { - var id = _ref12.id; - - if (!id) { - return null; - } - - return parseInt(id, 10); - }) - }); - }, - save: function save(_ref13) { - var attributes = _ref13.attributes; - var images = attributes.images, - _attributes$columns2 = attributes.columns, - columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - return Object(external_this_wp_element_["createElement"])("ul", { - className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id, - "data-link": image.link, - className: image.id ? "wp-image-".concat(image.id) : null - }); - return Object(external_this_wp_element_["createElement"])("li", { - key: image.id || image.url, - className: "blocks-gallery-item" - }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: image.caption - }))); - })); - } - }, { - attributes: gallery_blockAttributes, - save: function save(_ref14) { - var attributes = _ref14.attributes; - var images = attributes.images, - _attributes$columns3 = attributes.columns, - columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - return Object(external_this_wp_element_["createElement"])("ul", { - className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id, - "data-link": image.link - }); - return Object(external_this_wp_element_["createElement"])("li", { - key: image.id || image.url, - className: "blocks-gallery-item" - }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: image.caption - }))); - })); - } - }, { - attributes: Object(objectSpread["a" /* default */])({}, gallery_blockAttributes, { - images: Object(objectSpread["a" /* default */])({}, gallery_blockAttributes.images, { - selector: 'div.wp-block-gallery figure.blocks-gallery-image img' - }), - align: { - type: 'string', - default: 'none' - } - }), - save: function save(_ref15) { - var attributes = _ref15.attributes; - var images = attributes.images, - _attributes$columns4 = attributes.columns, - columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4, - align = attributes.align, - imageCrop = attributes.imageCrop, - linkTo = attributes.linkTo; - return Object(external_this_wp_element_["createElement"])("div", { - className: "align".concat(align, " columns-").concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') - }, images.map(function (image) { - var href; - - switch (linkTo) { - case 'media': - href = image.url; - break; - - case 'attachment': - href = image.link; - break; - } - - var img = Object(external_this_wp_element_["createElement"])("img", { - src: image.url, - alt: image.alt, - "data-id": image.id - }); - return Object(external_this_wp_element_["createElement"])("figure", { - key: image.id || image.url, - className: "blocks-gallery-image" - }, href ? Object(external_this_wp_element_["createElement"])("a", { - href: href - }, img) : img); - })); - } - }] -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -function ArchivesEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes; - var align = attributes.align, - showPostCounts = attributes.showPostCounts, - displayAsDropdown = attributes.displayAsDropdown; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Archives Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), - checked: displayAsDropdown, - onChange: function onChange() { - return setAttributes({ - displayAsDropdown: !displayAsDropdown - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), - checked: showPostCounts, - onChange: function onChange() { - return setAttributes({ - showPostCounts: !showPostCounts - }); - } - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockAlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - }, - controls: ['left', 'center', 'right'] - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ServerSideRender"], { - block: "core/archives", - attributes: attributes - }))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/index.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var archives_name = 'core/archives'; -var archives_settings = { - title: Object(external_this_wp_i18n_["__"])('Archives'), - description: Object(external_this_wp_i18n_["__"])('Display a monthly archive of your posts.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" - }))), - category: 'widgets', - supports: { - html: false - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var align = attributes.align; - - if (['left', 'center', 'right'].includes(align)) { - return { - 'data-align': align - }; - } - }, - edit: ArchivesEdit, - save: function save() { - // Handled by PHP. - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var audio_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js - - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -/** - * Internal dependencies - */ - - -var audio_edit_ALLOWED_MEDIA_TYPES = ['audio']; - -var edit_AudioEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(AudioEdit, _Component); - - function AudioEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, AudioEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(AudioEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited - // without setting the actual value outside of the edit UI - - _this.state = { - editing: !_this.props.attributes.src - }; - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(AudioEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var id = attributes.id, - _attributes$src = attributes.src, - src = _attributes$src === void 0 ? '' : _attributes$src; - - if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - - if (file) { - Object(external_this_wp_editor_["mediaUpload"])({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - _ref2$ = _ref2[0], - mediaId = _ref2$.id, - url = _ref2$.url; - - setAttributes({ - id: mediaId, - src: url - }); - }, - onError: function onError(e) { - setAttributes({ - src: undefined, - id: undefined - }); - - _this2.setState({ - editing: true - }); - - noticeOperations.createErrorNotice(e); - }, - allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES - }); - } - } - } - }, { - key: "toggleAttribute", - value: function toggleAttribute(attribute) { - var _this3 = this; - - return function (newValue) { - _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); - }; - } - }, { - key: "onSelectURL", - value: function onSelectURL(newSrc) { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var src = attributes.src; // Set the block's src from the edit component's state, and switch off - // the editing UI. - - if (newSrc !== src) { - // Check if there's an embed block that handles this URL. - var embedBlock = util_createUpgradedEmbedBlock({ - attributes: { - url: newSrc - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - return; - } - - setAttributes({ - src: newSrc, - id: undefined - }); - } - - this.setState({ - editing: false - }); - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props$attribute = this.props.attributes, - autoplay = _this$props$attribute.autoplay, - caption = _this$props$attribute.caption, - loop = _this$props$attribute.loop, - preload = _this$props$attribute.preload, - src = _this$props$attribute.src; - var _this$props3 = this.props, - setAttributes = _this$props3.setAttributes, - isSelected = _this$props3.isSelected, - className = _this$props3.className, - noticeOperations = _this$props3.noticeOperations, - noticeUI = _this$props3.noticeUI; - var editing = this.state.editing; - - var switchToEditing = function switchToEditing() { - _this4.setState({ - editing: true - }); - }; - - var onSelectAudio = function onSelectAudio(media) { - if (!media || !media.url) { - // in this case there was an error and we should continue in the editing state - // previous attributes should be removed because they may be temporary blob urls - setAttributes({ - src: undefined, - id: undefined - }); - switchToEditing(); - return; - } // sets the block's attribute and updates the edit component from the - // selected media, then switches off the editing UI - - - setAttributes({ - src: media.url, - id: media.id - }); - - _this4.setState({ - src: media.url, - editing: false - }); - }; - - if (editing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: audio_icon - }), - className: className, - onSelect: onSelectAudio, - onSelectURL: this.onSelectURL, - accept: "audio/*", - allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES, - value: this.props.attributes, - notices: noticeUI, - onError: noticeOperations.createErrorNotice - }); - } - /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-icon-button components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit audio'), - onClick: switchToEditing, - icon: "edit" - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Audio Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Autoplay'), - onChange: this.toggleAttribute('autoplay'), - checked: autoplay - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Loop'), - onChange: this.toggleAttribute('loop'), - checked: loop - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Preload'), - value: undefined !== preload ? preload : 'none' // `undefined` is required for the preload attribute to be unset. - , - onChange: function onChange(value) { - return setAttributes({ - preload: 'none' !== value ? value : undefined - }); - }, - options: [{ - value: 'auto', - label: Object(external_this_wp_i18n_["__"])('Auto') - }, { - value: 'metadata', - label: Object(external_this_wp_i18n_["__"])('Metadata') - }, { - value: 'none', - label: Object(external_this_wp_i18n_["__"])('None') - }] - }))), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { - controls: "controls", - src: src - })), (!external_this_wp_editor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - inlineToolbar: true - }))); - /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - } - }]); - - return AudioEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var audio_edit = (Object(external_this_wp_components_["withNotices"])(edit_AudioEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var audio_name = 'core/audio'; -var audio_settings = { - title: Object(external_this_wp_i18n_["__"])('Audio'), - description: Object(external_this_wp_i18n_["__"])('Embed a simple audio player.'), - icon: audio_icon, - category: 'common', - attributes: { - src: { - type: 'string', - source: 'attribute', - selector: 'audio', - attribute: 'src' - }, - caption: { - type: 'string', - source: 'html', - selector: 'figcaption' - }, - id: { - type: 'number' - }, - autoplay: { - type: 'boolean', - source: 'attribute', - selector: 'audio', - attribute: 'autoplay' - }, - loop: { - type: 'boolean', - source: 'attribute', - selector: 'audio', - attribute: 'loop' - }, - preload: { - type: 'string', - source: 'attribute', - selector: 'audio', - attribute: 'preload' - } - }, - transforms: { - from: [{ - type: 'files', - isMatch: function isMatch(files) { - return files.length === 1 && files[0].type.indexOf('audio/') === 0; - }, - transform: function transform(files) { - var file = files[0]; // We don't need to upload the media directly here - // It's already done as part of the `componentDidMount` - // in the audio block - - var block = Object(external_this_wp_blocks_["createBlock"])('core/audio', { - src: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - return block; - } - }] - }, - supports: { - align: true - }, - edit: audio_edit, - save: function save(_ref) { - var attributes = _ref.attributes; - var autoplay = attributes.autoplay, - caption = attributes.caption, - loop = attributes.loop, - preload = attributes.preload, - src = attributes.src; - return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("audio", { - controls: "controls", - src: src, - autoPlay: autoplay, - loop: loop, - preload: preload - }), !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -var edit_window = window, - edit_getComputedStyle = edit_window.getComputedStyle; -var edit_applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { - var textColor = ownProps.textColor, - backgroundColor = ownProps.backgroundColor; - var backgroundColorValue = backgroundColor && backgroundColor.color; - var textColorValue = textColor && textColor.color; //avoid the use of querySelector if textColor color is known and verify if node is available. - - var textNode = !textColorValue && node ? node.querySelector('[contenteditable="true"]') : null; - return { - fallbackBackgroundColor: backgroundColorValue || !node ? undefined : edit_getComputedStyle(node).backgroundColor, - fallbackTextColor: textColorValue || !textNode ? undefined : edit_getComputedStyle(textNode).color - }; -}); - -var edit_ButtonEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ButtonEdit, _Component); - - function ButtonEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ButtonEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ButtonEdit).apply(this, arguments)); - _this.nodeRef = null; - _this.bindRef = _this.bindRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(ButtonEdit, [{ - key: "bindRef", - value: function bindRef(node) { - if (!node) { - return; - } - - this.nodeRef = node; - } - }, { - key: "render", - value: function render() { - var _classnames; - - var _this$props = this.props, - attributes = _this$props.attributes, - backgroundColor = _this$props.backgroundColor, - textColor = _this$props.textColor, - setBackgroundColor = _this$props.setBackgroundColor, - setTextColor = _this$props.setTextColor, - fallbackBackgroundColor = _this$props.fallbackBackgroundColor, - fallbackTextColor = _this$props.fallbackTextColor, - setAttributes = _this$props.setAttributes, - isSelected = _this$props.isSelected, - className = _this$props.className; - var text = attributes.text, - url = attributes.url, - title = attributes.title; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { - className: className, - title: title, - ref: this.bindRef - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), - value: text, - onChange: function onChange(value) { - return setAttributes({ - text: value - }); - }, - formattingControls: ['bold', 'italic', 'strikethrough'], - className: classnames_default()('wp-block-button__link', (_classnames = { - 'has-background': backgroundColor.color - }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), _classnames)), - style: { - backgroundColor: backgroundColor.color, - color: textColor.color - }, - keepPlaceholderOnFocus: true - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color') - }, { - value: textColor.color, - onChange: setTextColor, - label: Object(external_this_wp_i18n_["__"])('Text Color') - }] - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ContrastChecker"], { - // Text is considered large if font size is greater or equal to 18pt or 24px, - // currently that's not the case for button. - isLargeText: false, - textColor: textColor.color, - backgroundColor: backgroundColor.color, - fallbackBackgroundColor: fallbackBackgroundColor, - fallbackTextColor: fallbackTextColor - })))), isSelected && Object(external_this_wp_element_["createElement"])("form", { - className: "block-library-button__inline-link", - onSubmit: function onSubmit(event) { - return event.preventDefault(); - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { - icon: "admin-links" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["URLInput"], { - value: url, - onChange: function onChange(value) { - return setAttributes({ - url: value - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "editor-break", - label: Object(external_this_wp_i18n_["__"])('Apply'), - type: "submit" - }))); - } - }]); - - return ButtonEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var button_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_editor_["withColors"])('backgroundColor', { - textColor: 'color' -}), edit_applyFallbackStyles])(edit_ButtonEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/index.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -var button_blockAttributes = { - url: { - type: 'string', - source: 'attribute', - selector: 'a', - attribute: 'href' - }, - title: { - type: 'string', - source: 'attribute', - selector: 'a', - attribute: 'title' - }, - text: { - type: 'string', - source: 'html', - selector: 'a' - }, - backgroundColor: { - type: 'string' - }, - textColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - }, - customTextColor: { - type: 'string' - } -}; -var button_name = 'core/button'; - -var button_colorsMigration = function colorsMigration(attributes) { - return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { - customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, - customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined - }), ['color', 'textColor']); -}; - -var button_settings = { - title: Object(external_this_wp_i18n_["__"])('Button'), - description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a button-style link.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z" - }))), - category: 'layout', - keywords: [Object(external_this_wp_i18n_["__"])('link')], - attributes: button_blockAttributes, - supports: { - align: true, - alignWide: false - }, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: 'outline', - label: Object(external_this_wp_i18n_["__"])('Outline') - }, { - name: 'squared', - label: Object(external_this_wp_i18n_["_x"])('Squared', 'block style') - }], - edit: button_edit, - save: function save(_ref) { - var _classnames; - - var attributes = _ref.attributes; - var url = attributes.url, - text = attributes.text, - title = attributes.title, - backgroundColor = attributes.backgroundColor, - textColor = attributes.textColor, - customBackgroundColor = attributes.customBackgroundColor, - customTextColor = attributes.customTextColor; - var textClass = Object(external_this_wp_editor_["getColorClassName"])('color', textColor); - var backgroundClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', backgroundColor); - var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { - 'has-text-color': textColor || customTextColor - }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); - var buttonStyle = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - color: textClass ? undefined : customTextColor - }; - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "a", - className: buttonClasses, - href: url, - title: title, - style: buttonStyle, - value: text - })); - }, - deprecated: [{ - attributes: Object(objectSpread["a" /* default */])({}, Object(external_lodash_["pick"])(button_blockAttributes, ['url', 'title', 'text']), { - color: { - type: 'string' - }, - textColor: { - type: 'string' - }, - align: { - type: 'string', - default: 'none' - } - }), - save: function save(_ref2) { - var attributes = _ref2.attributes; - var url = attributes.url, - text = attributes.text, - title = attributes.title, - align = attributes.align, - color = attributes.color, - textColor = attributes.textColor; - var buttonStyle = { - backgroundColor: color, - color: textColor - }; - var linkClass = 'wp-block-button__link'; - return Object(external_this_wp_element_["createElement"])("div", { - className: "align".concat(align) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "a", - className: linkClass, - href: url, - title: title, - style: buttonStyle, - value: text - })); - }, - migrate: button_colorsMigration - }, { - attributes: Object(objectSpread["a" /* default */])({}, Object(external_lodash_["pick"])(button_blockAttributes, ['url', 'title', 'text']), { - color: { - type: 'string' - }, - textColor: { - type: 'string' - }, - align: { - type: 'string', - default: 'none' - } - }), - save: function save(_ref3) { - var attributes = _ref3.attributes; - var url = attributes.url, - text = attributes.text, - title = attributes.title, - align = attributes.align, - color = attributes.color, - textColor = attributes.textColor; - return Object(external_this_wp_element_["createElement"])("div", { - className: "align".concat(align), - style: { - backgroundColor: color - } - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "a", - href: url, - title: title, - style: { - color: textColor - }, - value: text - })); - }, - migrate: button_colorsMigration - }] -}; - -// EXTERNAL MODULE: external "moment" -var external_moment_ = __webpack_require__(27); -var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_); - -// EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(38); -var memize_default = /*#__PURE__*/__webpack_require__.n(memize); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -var edit_CalendarEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(CalendarEdit, _Component); - - function CalendarEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CalendarEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CalendarEdit).apply(this, arguments)); - _this.getYearMonth = memize_default()(_this.getYearMonth.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), { - maxSize: 1 - }); - _this.getServerSideAttributes = memize_default()(_this.getServerSideAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), { - maxSize: 1 - }); - return _this; - } - - Object(createClass["a" /* default */])(CalendarEdit, [{ - key: "getYearMonth", - value: function getYearMonth(date) { - if (!date) { - return {}; - } - - var momentDate = external_moment_default()(date); - return { - year: momentDate.year(), - month: momentDate.month() + 1 - }; - } - }, { - key: "getServerSideAttributes", - value: function getServerSideAttributes(attributes, date) { - return Object(objectSpread["a" /* default */])({}, attributes, this.getYearMonth(date)); - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ServerSideRender"], { - block: "core/calendar", - attributes: this.getServerSideAttributes(this.props.attributes, this.props.date) - })); - } - }]); - - return CalendarEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var calendar_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - date: select('core/editor').getEditedPostAttribute('date') - }; -})(edit_CalendarEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var calendar_name = 'core/calendar'; -var calendar_settings = { - title: Object(external_this_wp_i18n_["__"])('Calendar'), - description: Object(external_this_wp_i18n_["__"])('A calendar of your site’s posts.'), - icon: 'calendar', - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('posts'), Object(external_this_wp_i18n_["__"])('archive')], - supports: { - align: true - }, - edit: calendar_edit, - save: function save() { - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/edit.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -var edit_CategoriesEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(CategoriesEdit, _Component); - - function CategoriesEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CategoriesEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CategoriesEdit).apply(this, arguments)); - _this.toggleDisplayAsDropdown = _this.toggleDisplayAsDropdown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.toggleShowPostCounts = _this.toggleShowPostCounts.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.toggleShowHierarchy = _this.toggleShowHierarchy.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(CategoriesEdit, [{ - key: "toggleDisplayAsDropdown", - value: function toggleDisplayAsDropdown() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var displayAsDropdown = attributes.displayAsDropdown; - setAttributes({ - displayAsDropdown: !displayAsDropdown - }); - } - }, { - key: "toggleShowPostCounts", - value: function toggleShowPostCounts() { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var showPostCounts = attributes.showPostCounts; - setAttributes({ - showPostCounts: !showPostCounts - }); - } - }, { - key: "toggleShowHierarchy", - value: function toggleShowHierarchy() { - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes; - var showHierarchy = attributes.showHierarchy; - setAttributes({ - showHierarchy: !showHierarchy - }); - } - }, { - key: "getCategories", - value: function getCategories() { - var parentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var categories = this.props.categories; - - if (!categories || !categories.length) { - return []; - } - - if (parentId === null) { - return categories; - } - - return categories.filter(function (category) { - return category.parent === parentId; - }); - } - }, { - key: "getCategoryListClassName", - value: function getCategoryListClassName(level) { - return "wp-block-categories__list wp-block-categories__list-level-".concat(level); - } - }, { - key: "renderCategoryName", - value: function renderCategoryName(category) { - if (!category.name) { - return Object(external_this_wp_i18n_["__"])('(Untitled)'); - } - - return Object(external_lodash_["unescape"])(category.name).trim(); - } - }, { - key: "renderCategoryList", - value: function renderCategoryList() { - var _this2 = this; - - var showHierarchy = this.props.attributes.showHierarchy; - var parentId = showHierarchy ? 0 : null; - var categories = this.getCategories(parentId); - return Object(external_this_wp_element_["createElement"])("ul", { - className: this.getCategoryListClassName(0) - }, categories.map(function (category) { - return _this2.renderCategoryListItem(category, 0); - })); - } - }, { - key: "renderCategoryListItem", - value: function renderCategoryListItem(category, level) { - var _this3 = this; - - var _this$props$attribute = this.props.attributes, - showHierarchy = _this$props$attribute.showHierarchy, - showPostCounts = _this$props$attribute.showPostCounts; - var childCategories = this.getCategories(category.id); - return Object(external_this_wp_element_["createElement"])("li", { - key: category.id - }, Object(external_this_wp_element_["createElement"])("a", { - href: category.link, - target: "_blank" - }, this.renderCategoryName(category)), showPostCounts && Object(external_this_wp_element_["createElement"])("span", { - className: "wp-block-categories__post-count" - }, ' ', "(", category.count, ")"), showHierarchy && !!childCategories.length && Object(external_this_wp_element_["createElement"])("ul", { - className: this.getCategoryListClassName(level + 1) - }, childCategories.map(function (childCategory) { - return _this3.renderCategoryListItem(childCategory, level + 1); - }))); - } - }, { - key: "renderCategoryDropdown", - value: function renderCategoryDropdown() { - var _this4 = this; - - var instanceId = this.props.instanceId; - var showHierarchy = this.props.attributes.showHierarchy; - var parentId = showHierarchy ? 0 : null; - var categories = this.getCategories(parentId); - var selectId = "blocks-category-select-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: selectId, - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('Categories')), Object(external_this_wp_element_["createElement"])("select", { - id: selectId, - className: "wp-block-categories__dropdown" - }, categories.map(function (category) { - return _this4.renderCategoryDropdownItem(category, 0); - }))); - } - }, { - key: "renderCategoryDropdownItem", - value: function renderCategoryDropdownItem(category, level) { - var _this5 = this; - - var _this$props$attribute2 = this.props.attributes, - showHierarchy = _this$props$attribute2.showHierarchy, - showPostCounts = _this$props$attribute2.showPostCounts; - var childCategories = this.getCategories(category.id); - return [Object(external_this_wp_element_["createElement"])("option", { - key: category.id - }, Object(external_lodash_["times"])(level * 3, function () { - return '\xa0'; - }), this.renderCategoryName(category), !!showPostCounts ? " (".concat(category.count, ")") : ''), showHierarchy && !!childCategories.length && childCategories.map(function (childCategory) { - return _this5.renderCategoryDropdownItem(childCategory, level + 1); - })]; - } - }, { - key: "render", - value: function render() { - var _this$props4 = this.props, - attributes = _this$props4.attributes, - isRequesting = _this$props4.isRequesting; - var displayAsDropdown = attributes.displayAsDropdown, - showHierarchy = attributes.showHierarchy, - showPostCounts = attributes.showPostCounts; - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Categories Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), - checked: displayAsDropdown, - onChange: this.toggleDisplayAsDropdown - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show Hierarchy'), - checked: showHierarchy, - onChange: this.toggleShowHierarchy - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), - checked: showPostCounts, - onChange: this.toggleShowPostCounts - }))); - - if (isRequesting) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "admin-post", - label: Object(external_this_wp_i18n_["__"])('Categories') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])("div", { - className: this.props.className - }, displayAsDropdown ? this.renderCategoryDropdown() : this.renderCategoryList())); - } - }]); - - return CategoriesEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var categories_edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core'), - getEntityRecords = _select.getEntityRecords; - - var _select2 = select('core/data'), - isResolving = _select2.isResolving; - - var query = { - per_page: -1, - hide_empty: true - }; - return { - categories: getEntityRecords('taxonomy', 'category', query), - isRequesting: isResolving('core', 'getEntityRecords', ['taxonomy', 'category', query]) - }; -}), external_this_wp_compose_["withInstanceId"])(edit_CategoriesEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var categories_name = 'core/categories'; -var categories_settings = { - title: Object(external_this_wp_i18n_["__"])('Categories'), - description: Object(external_this_wp_i18n_["__"])('Display a list of all categories.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z" - })), - category: 'widgets', - attributes: { - displayAsDropdown: { - type: 'boolean', - default: false - }, - showHierarchy: { - type: 'boolean', - default: false - }, - showPostCounts: { - type: 'boolean', - default: false - } - }, - supports: { - align: true, - alignWide: false, - html: false - }, - edit: categories_edit, - save: function save() { - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -function CodeEdit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PlainText"], { - value: attributes.content, - onChange: function onChange(content) { - return setAttributes({ - content: content - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write code…'), - "aria-label": Object(external_this_wp_i18n_["__"])('Code') - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/index.js - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -var code_name = 'core/code'; -var code_settings = { - title: Object(external_this_wp_i18n_["__"])('Code'), - description: Object(external_this_wp_i18n_["__"])('Display code snippets that respect your spacing and tabs.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z" - })), - category: 'formatting', - attributes: { - content: { - type: 'string', - source: 'text', - selector: 'code' - } - }, - supports: { - html: false - }, - transforms: { - from: [{ - type: 'enter', - regExp: /^```$/, - transform: function transform() { - return Object(external_this_wp_blocks_["createBlock"])('core/code'); - } - }, { - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'PRE' && node.children.length === 1 && node.firstChild.nodeName === 'CODE'; - }, - schema: { - pre: { - children: { - code: { - children: { - '#text': {} - } - } - } - } - } - }] - }, - edit: CodeEdit, - save: function save(_ref) { - var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])("pre", null, Object(external_this_wp_element_["createElement"])("code", null, attributes.content)); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/index.js - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Allowed blocks constant is passed to InnerBlocks precisely as specified here. - * The contents of the array should never change. - * The array should contain the name of each block that is allowed. - * In columns block, the only block we allow is 'core/column'. - * - * @constant - * @type {string[]} -*/ - -var ALLOWED_BLOCKS = ['core/column']; -/** - * Returns the layouts configuration for a given number of columns. - * - * @param {number} columns Number of columns. - * - * @return {Object[]} Columns layout configuration. - */ - -var getColumnsTemplate = memize_default()(function (columns) { - return Object(external_lodash_["times"])(columns, function () { - return ['core/column']; - }); -}); -/** - * Given an HTML string for a deprecated columns inner block, returns the - * column index to which the migrated inner block should be assigned. Returns - * undefined if the inner block was not assigned to a column. - * - * @param {string} originalContent Deprecated Columns inner block HTML. - * - * @return {?number} Column to which inner block is to be assigned. - */ - -function getDeprecatedLayoutColumn(originalContent) { - var doc = getDeprecatedLayoutColumn.doc; - - if (!doc) { - doc = document.implementation.createHTMLDocument(''); - getDeprecatedLayoutColumn.doc = doc; - } - - var columnMatch; - doc.body.innerHTML = originalContent; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = doc.body.firstChild.classList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var classListItem = _step.value; - - if (columnMatch = classListItem.match(/^layout-column-(\d+)$/)) { - return Number(columnMatch[1]) - 1; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } -} - -var columns_name = 'core/columns'; -var columns_settings = { - title: Object(external_this_wp_i18n_["__"])('Columns'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z" - }))), - category: 'layout', - attributes: { - columns: { - type: 'number', - default: 2 - } - }, - description: Object(external_this_wp_i18n_["__"])('Add a block that displays content in multiple columns, then add whatever content blocks you’d like.'), - supports: { - align: ['wide', 'full'], - html: false - }, - deprecated: [{ - attributes: { - columns: { - type: 'number', - default: 2 - } - }, - isEligible: function isEligible(attributes, innerBlocks) { - // Since isEligible is called on every valid instance of the - // Columns block and a deprecation is the unlikely case due to - // its subsequent migration, optimize for the `false` condition - // by performing a naive, inaccurate pass at inner blocks. - var isFastPassEligible = innerBlocks.some(function (innerBlock) { - return /layout-column-\d+/.test(innerBlock.originalContent); - }); - - if (!isFastPassEligible) { - return false; - } // Only if the fast pass is considered eligible is the more - // accurate, durable, slower condition performed. - - - return innerBlocks.some(function (innerBlock) { - return getDeprecatedLayoutColumn(innerBlock.originalContent) !== undefined; - }); - }, - migrate: function migrate(attributes, innerBlocks) { - var columns = innerBlocks.reduce(function (result, innerBlock) { - var originalContent = innerBlock.originalContent; - var columnIndex = getDeprecatedLayoutColumn(originalContent); - - if (columnIndex === undefined) { - columnIndex = 0; - } - - if (!result[columnIndex]) { - result[columnIndex] = []; - } - - result[columnIndex].push(innerBlock); - return result; - }, []); - var migratedInnerBlocks = columns.map(function (columnBlocks) { - return Object(external_this_wp_blocks_["createBlock"])('core/column', {}, columnBlocks); - }); - return [attributes, migratedInnerBlocks]; - }, - save: function save(_ref) { - var attributes = _ref.attributes; - var columns = attributes.columns; - return Object(external_this_wp_element_["createElement"])("div", { - className: "has-".concat(columns, "-columns") - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"].Content, null)); - } - }], - edit: function edit(_ref2) { - var attributes = _ref2.attributes, - setAttributes = _ref2.setAttributes, - className = _ref2.className; - var columns = attributes.columns; - var classes = classnames_default()(className, "has-".concat(columns, "-columns")); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(nextColumns) { - setAttributes({ - columns: nextColumns - }); - }, - min: 2, - max: 6 - }))), Object(external_this_wp_element_["createElement"])("div", { - className: classes - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"], { - template: getColumnsTemplate(columns), - templateLock: "all", - allowedBlocks: ALLOWED_BLOCKS - }))); - }, - save: function save(_ref3) { - var attributes = _ref3.attributes; - var columns = attributes.columns; - return Object(external_this_wp_element_["createElement"])("div", { - className: "has-".concat(columns, "-columns") - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"].Content, null)); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/column.js - - -/** - * WordPress dependencies - */ - - - -var column_name = 'core/column'; -var column_settings = { - title: Object(external_this_wp_i18n_["__"])('Column'), - parent: ['core/columns'], - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z" - })), - description: Object(external_this_wp_i18n_["__"])('A single column within a columns block.'), - category: 'common', - supports: { - inserter: false, - reusable: false, - html: false - }, - edit: function edit() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"], { - templateLock: false - }); - }, - save: function save() { - return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"].Content, null)); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var cover_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0 0h24v24H0z", - fill: "none" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/index.js - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - -var cover_blockAttributes = { - title: { - type: 'string', - source: 'html', - selector: 'p' - }, - url: { - type: 'string' - }, - contentAlign: { - type: 'string', - default: 'center' - }, - id: { - type: 'number' - }, - hasParallax: { - type: 'boolean', - default: false - }, - dimRatio: { - type: 'number', - default: 50 - }, - overlayColor: { - type: 'string' - }, - customOverlayColor: { - type: 'string' - }, - backgroundType: { - type: 'string', - default: 'image' - }, - focalPoint: { - type: 'object' - } -}; -var cover_name = 'core/cover'; -var cover_ALLOWED_MEDIA_TYPES = ['image', 'video']; -var IMAGE_BACKGROUND_TYPE = 'image'; -var VIDEO_BACKGROUND_TYPE = 'video'; -var cover_settings = { - title: Object(external_this_wp_i18n_["__"])('Cover'), - description: Object(external_this_wp_i18n_["__"])('Add an image or video with a text overlay — great for headers.'), - icon: cover_icon, - category: 'common', - attributes: cover_blockAttributes, - supports: { - align: true - }, - transforms: { - from: [{ - type: 'block', - blocks: ['core/heading'], - transform: function transform(_ref) { - var content = _ref.content; - return Object(external_this_wp_blocks_["createBlock"])('core/cover', { - title: content - }); - } - }, { - type: 'block', - blocks: ['core/image'], - transform: function transform(_ref2) { - var caption = _ref2.caption, - url = _ref2.url, - align = _ref2.align, - id = _ref2.id; - return Object(external_this_wp_blocks_["createBlock"])('core/cover', { - title: caption, - url: url, - align: align, - id: id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - transform: function transform(_ref3) { - var caption = _ref3.caption, - src = _ref3.src, - align = _ref3.align, - id = _ref3.id; - return Object(external_this_wp_blocks_["createBlock"])('core/cover', { - title: caption, - url: src, - align: align, - id: id, - backgroundType: VIDEO_BACKGROUND_TYPE - }); - } - }], - to: [{ - type: 'block', - blocks: ['core/heading'], - transform: function transform(_ref4) { - var title = _ref4.title; - return Object(external_this_wp_blocks_["createBlock"])('core/heading', { - content: title - }); - } - }, { - type: 'block', - blocks: ['core/image'], - isMatch: function isMatch(_ref5) { - var backgroundType = _ref5.backgroundType, - url = _ref5.url; - return !url || backgroundType === IMAGE_BACKGROUND_TYPE; - }, - transform: function transform(_ref6) { - var title = _ref6.title, - url = _ref6.url, - align = _ref6.align, - id = _ref6.id; - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - caption: title, - url: url, - align: align, - id: id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - isMatch: function isMatch(_ref7) { - var backgroundType = _ref7.backgroundType, - url = _ref7.url; - return !url || backgroundType === VIDEO_BACKGROUND_TYPE; - }, - transform: function transform(_ref8) { - var title = _ref8.title, - url = _ref8.url, - align = _ref8.align, - id = _ref8.id; - return Object(external_this_wp_blocks_["createBlock"])('core/video', { - caption: title, - src: url, - id: id, - align: align - }); - } - }] - }, - edit: Object(external_this_wp_compose_["compose"])([Object(external_this_wp_editor_["withColors"])({ - overlayColor: 'background-color' - }), external_this_wp_components_["withNotices"]])(function (_ref9) { - var attributes = _ref9.attributes, - setAttributes = _ref9.setAttributes, - isSelected = _ref9.isSelected, - className = _ref9.className, - noticeOperations = _ref9.noticeOperations, - noticeUI = _ref9.noticeUI, - overlayColor = _ref9.overlayColor, - setOverlayColor = _ref9.setOverlayColor; - var backgroundType = attributes.backgroundType, - contentAlign = attributes.contentAlign, - dimRatio = attributes.dimRatio, - focalPoint = attributes.focalPoint, - hasParallax = attributes.hasParallax, - id = attributes.id, - title = attributes.title, - url = attributes.url; - - var onSelectMedia = function onSelectMedia(media) { - if (!media || !media.url) { - setAttributes({ - url: undefined, - id: undefined - }); - return; - } - - var mediaType; // for media selections originated from a file upload. - - if (media.media_type) { - if (media.media_type === IMAGE_BACKGROUND_TYPE) { - mediaType = IMAGE_BACKGROUND_TYPE; - } else { - // only images and videos are accepted so if the media_type is not an image we can assume it is a video. - // Videos contain the media type of 'file' in the object returned from the rest api. - mediaType = VIDEO_BACKGROUND_TYPE; - } - } else { - // for media selections originated from existing files in the media library. - if (media.type !== IMAGE_BACKGROUND_TYPE && media.type !== VIDEO_BACKGROUND_TYPE) { - return; - } - - mediaType = media.type; - } - - setAttributes({ - url: media.url, - id: media.id, - backgroundType: mediaType - }); - }; - - var toggleParallax = function toggleParallax() { - return setAttributes({ - hasParallax: !hasParallax - }); - }; - - var setDimRatio = function setDimRatio(ratio) { - return setAttributes({ - dimRatio: ratio - }); - }; - - var setTitle = function setTitle(newTitle) { - return setAttributes({ - title: newTitle - }); - }; - - var style = Object(objectSpread["a" /* default */])({}, backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}, { - backgroundColor: overlayColor.color - }); - - if (focalPoint) { - style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); - } - - var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AlignmentToolbar"], { - value: contentAlign, - onChange: function onChange(nextAlign) { - setAttributes({ - contentAlign: nextAlign - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { - onSelect: onSelectMedia, - allowedTypes: cover_ALLOWED_MEDIA_TYPES, - value: id, - render: function render(_ref10) { - var open = _ref10.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit media'), - icon: "edit", - onClick: open - }); - } - }))))), !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Cover Settings') - }, IMAGE_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Fixed Background'), - checked: hasParallax, - onChange: toggleParallax - }), IMAGE_BACKGROUND_TYPE === backgroundType && !hasParallax && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { - label: Object(external_this_wp_i18n_["__"])('Focal Point Picker'), - url: url, - value: focalPoint, - onChange: function onChange(value) { - return setAttributes({ - focalPoint: value - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Overlay'), - initialOpen: true, - colorSettings: [{ - value: overlayColor.color, - onChange: setOverlayColor, - label: Object(external_this_wp_i18n_["__"])('Overlay Color') - }] - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Background Opacity'), - value: dimRatio, - onChange: setDimRatio, - min: 0, - max: 100, - step: 10 - }))))); - - if (!url) { - var hasTitle = !external_this_wp_editor_["RichText"].isEmpty(title); - var placeholderIcon = hasTitle ? undefined : Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: cover_icon - }); - var label = hasTitle ? Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "h2", - value: title, - onChange: setTitle, - inlineToolbar: true - }) : Object(external_this_wp_i18n_["__"])('Cover'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { - icon: placeholderIcon, - className: className, - labels: { - title: label, - instructions: Object(external_this_wp_i18n_["__"])('Drag an image or a video, upload a new one or select a file from your library.') - }, - onSelect: onSelectMedia, - accept: "image/*,video/*", - allowedTypes: cover_ALLOWED_MEDIA_TYPES, - notices: noticeUI, - onError: noticeOperations.createErrorNotice - })); - } - - var classes = classnames_default()(className, contentAlign !== 'center' && "has-".concat(contentAlign, "-content"), dimRatioToClass(dimRatio), { - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", { - "data-url": url, - style: style, - className: classes - }, VIDEO_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])("video", { - className: "wp-block-cover__video-background", - autoPlay: true, - muted: true, - loop: true, - src: url - }), (!external_this_wp_editor_["RichText"].isEmpty(title) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "p", - className: "wp-block-cover-text", - placeholder: Object(external_this_wp_i18n_["__"])('Write title…'), - value: title, - onChange: setTitle, - inlineToolbar: true - }))); - }), - save: function save(_ref11) { - var attributes = _ref11.attributes; - var backgroundType = attributes.backgroundType, - contentAlign = attributes.contentAlign, - customOverlayColor = attributes.customOverlayColor, - dimRatio = attributes.dimRatio, - focalPoint = attributes.focalPoint, - hasParallax = attributes.hasParallax, - overlayColor = attributes.overlayColor, - title = attributes.title, - url = attributes.url; - var overlayColorClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', overlayColor); - var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; - - if (!overlayColorClass) { - style.backgroundColor = customOverlayColor; - } - - if (focalPoint && !hasParallax) { - style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); - } - - var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center')); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes, - style: style - }, VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { - className: "wp-block-cover__video-background", - autoPlay: true, - muted: true, - loop: true, - src: url - }), !external_this_wp_editor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "p", - className: "wp-block-cover-text", - value: title - })); - }, - deprecated: [{ - attributes: Object(objectSpread["a" /* default */])({}, cover_blockAttributes, { - align: { - type: 'string' - } - }), - supports: { - className: false - }, - save: function save(_ref12) { - var attributes = _ref12.attributes; - var url = attributes.url, - title = attributes.title, - hasParallax = attributes.hasParallax, - dimRatio = attributes.dimRatio, - align = attributes.align, - contentAlign = attributes.contentAlign, - overlayColor = attributes.overlayColor, - customOverlayColor = attributes.customOverlayColor; - var overlayColorClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', overlayColor); - var style = backgroundImageStyles(url); - - if (!overlayColorClass) { - style.backgroundColor = customOverlayColor; - } - - var classes = classnames_default()('wp-block-cover-image', dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center'), align ? "align".concat(align) : null); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes, - style: style - }, !external_this_wp_editor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "p", - className: "wp-block-cover-image-text", - value: title - })); - } - }, { - attributes: Object(objectSpread["a" /* default */])({}, cover_blockAttributes, { - align: { - type: 'string' - }, - title: { - type: 'string', - source: 'html', - selector: 'h2' - } - }), - save: function save(_ref13) { - var attributes = _ref13.attributes; - var url = attributes.url, - title = attributes.title, - hasParallax = attributes.hasParallax, - dimRatio = attributes.dimRatio, - align = attributes.align; - var style = backgroundImageStyles(url); - var classes = classnames_default()(dimRatioToClass(dimRatio), { - 'has-background-dim': dimRatio !== 0, - 'has-parallax': hasParallax - }, align ? "align".concat(align) : null); - return Object(external_this_wp_element_["createElement"])("section", { - className: classes, - style: style - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "h2", - value: title - })); - } - }] -}; - -function dimRatioToClass(ratio) { - return ratio === 0 || ratio === 50 ? null : 'has-background-dim-' + 10 * Math.round(ratio / 10); -} - -function backgroundImageStyles(url) { - return url ? { - backgroundImage: "url(".concat(url, ")") - } : {}; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-controls.js - - -/** - * WordPress dependencies - */ - - - - - -var embed_controls_EmbedControls = function EmbedControls(props) { - var blockSupportsResponsive = props.blockSupportsResponsive, - showEditButton = props.showEditButton, - themeSupportsResponsive = props.themeSupportsResponsive, - allowResponsive = props.allowResponsive, - getResponsiveHelp = props.getResponsiveHelp, - toggleResponsive = props.toggleResponsive, - switchBackToURLInput = props.switchBackToURLInput; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, showEditButton && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit URL'), - icon: "edit", - onClick: switchBackToURLInput - }))), themeSupportsResponsive && blockSupportsResponsive && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Media Settings'), - className: "blocks-responsive" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Resize for smaller devices'), - checked: allowResponsive, - help: getResponsiveHelp, - onChange: toggleResponsive - })))); -}; - -/* harmony default export */ var embed_controls = (embed_controls_EmbedControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-loading.js - - -/** - * WordPress dependencies - */ - - - -var embed_loading_EmbedLoading = function EmbedLoading() { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-embed is-loading" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Embedding…'))); -}; - -/* harmony default export */ var embed_loading = (embed_loading_EmbedLoading); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-placeholder.js - - -/** - * WordPress dependencies - */ - - - - -var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { - var icon = props.icon, - label = props.label, - value = props.value, - onSubmit = props.onSubmit, - onChange = props.onChange, - cannotEmbed = props.cannotEmbed, - fallback = props.fallback, - tryAgain = props.tryAgain; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: icon, - showColors: true - }), - label: label, - className: "wp-block-embed" - }, Object(external_this_wp_element_["createElement"])("form", { - onSubmit: onSubmit - }, Object(external_this_wp_element_["createElement"])("input", { - type: "url", - value: value || '', - className: "components-placeholder__input", - "aria-label": label, - placeholder: Object(external_this_wp_i18n_["__"])('Enter URL to embed here…'), - onChange: onChange - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - type: "submit" - }, Object(external_this_wp_i18n_["_x"])('Embed', 'button label')), cannotEmbed && Object(external_this_wp_element_["createElement"])("p", { - className: "components-placeholder__error" - }, Object(external_this_wp_i18n_["__"])('Sorry, this content could not be embedded.'), Object(external_this_wp_element_["createElement"])("br", null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - onClick: tryAgain - }, Object(external_this_wp_i18n_["_x"])('Try again', 'button label')), " ", Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - onClick: fallback - }, Object(external_this_wp_i18n_["_x"])('Convert to link', 'button label'))))); -}; - -/* harmony default export */ var embed_placeholder = (embed_placeholder_EmbedPlaceholder); - -// EXTERNAL MODULE: ./node_modules/url/url.js -var url_url = __webpack_require__(77); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/wp-embed-preview.js - - - - - - - - -/** - * WordPress dependencies - */ - - -/** - * Browser dependencies - */ - -var wp_embed_preview_window = window, - FocusEvent = wp_embed_preview_window.FocusEvent; - -var wp_embed_preview_WpEmbedPreview = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(WpEmbedPreview, _Component); - - function WpEmbedPreview() { - var _this; - - Object(classCallCheck["a" /* default */])(this, WpEmbedPreview); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WpEmbedPreview).apply(this, arguments)); - _this.checkFocus = _this.checkFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.node = Object(external_this_wp_element_["createRef"])(); - return _this; - } - /** - * Checks whether the wp embed iframe is the activeElement, - * if it is dispatch a focus event. - */ - - - Object(createClass["a" /* default */])(WpEmbedPreview, [{ - key: "checkFocus", - value: function checkFocus() { - var _document = document, - activeElement = _document.activeElement; - - if (activeElement.tagName !== 'IFRAME' || activeElement.parentNode !== this.node.current) { - return; - } - - var focusEvent = new FocusEvent('focus', { - bubbles: true - }); - activeElement.dispatchEvent(focusEvent); - } - }, { - key: "render", - value: function render() { - var html = this.props.html; - return Object(external_this_wp_element_["createElement"])("div", { - ref: this.node, - className: "wp-block-embed__wrapper", - dangerouslySetInnerHTML: { - __html: html - } - }); - } - }]); - - return WpEmbedPreview; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var wp_embed_preview = (Object(external_this_wp_compose_["withGlobalEvents"])({ - blur: 'checkFocus' -})(wp_embed_preview_WpEmbedPreview)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-preview.js - - - - - - - - -/** - * Internal dependencies - */ - - -/** - * External dependencies - */ - - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var embed_preview_EmbedPreview = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(EmbedPreview, _Component); - - function EmbedPreview() { - var _this; - - Object(classCallCheck["a" /* default */])(this, EmbedPreview); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(EmbedPreview).apply(this, arguments)); - _this.hideOverlay = _this.hideOverlay.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - interactive: false - }; - return _this; - } - - Object(createClass["a" /* default */])(EmbedPreview, [{ - key: "hideOverlay", - value: function hideOverlay() { - // This is called onMouseUp on the overlay. We can't respond to the `isSelected` prop - // changing, because that happens on mouse down, and the overlay immediately disappears, - // and the mouse event can end up in the preview content. We can't use onClick on - // the overlay to hide it either, because then the editor misses the mouseup event, and - // thinks we're multi-selecting blocks. - this.setState({ - interactive: true - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - preview = _this$props.preview, - url = _this$props.url, - type = _this$props.type, - caption = _this$props.caption, - onCaptionChange = _this$props.onCaptionChange, - isSelected = _this$props.isSelected, - className = _this$props.className, - icon = _this$props.icon, - label = _this$props.label; - var scripts = preview.scripts; - var interactive = this.state.interactive; - var html = 'photo' === type ? util_getPhotoHtml(preview) : preview.html; - var parsedHost = Object(url_url["parse"])(url).host.split('.'); - var parsedHostBaseUrl = parsedHost.splice(parsedHost.length - 2, parsedHost.length - 1).join('.'); - var cannotPreview = Object(external_lodash_["includes"])(HOSTS_NO_PREVIEWS, parsedHostBaseUrl); // translators: %s: host providing embed content e.g: www.youtube.com - - var iframeTitle = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Embedded content from %s'), parsedHostBaseUrl); - var sandboxClassnames = dedupe_default()(type, className, 'wp-block-embed__wrapper'); // Disabled because the overlay div doesn't actually have a role or functionality - // as far as the user is concerned. We're just catching the first click so that - // the block can be selected without interacting with the embed preview that the overlay covers. - - /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - var embedWrapper = 'wp-embed' === type ? Object(external_this_wp_element_["createElement"])(wp_embed_preview, { - html: html - }) : Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-embed__wrapper" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { - html: html, - scripts: scripts, - title: iframeTitle, - type: sandboxClassnames, - onFocus: this.hideOverlay - }), !interactive && Object(external_this_wp_element_["createElement"])("div", { - className: "block-library-embed__interactive-overlay", - onMouseUp: this.hideOverlay - })); - /* eslint-enable jsx-a11y/no-static-element-interactions */ - - /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ - - return Object(external_this_wp_element_["createElement"])("figure", { - className: dedupe_default()(className, 'wp-block-embed', { - 'is-type-video': 'video' === type - }) - }, cannotPreview ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: icon, - showColors: true - }), - label: label - }, Object(external_this_wp_element_["createElement"])("p", { - className: "components-placeholder__error" - }, Object(external_this_wp_element_["createElement"])("a", { - href: url - }, url)), Object(external_this_wp_element_["createElement"])("p", { - className: "components-placeholder__error" - }, - /* translators: %s: host providing embed content e.g: www.youtube.com */ - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl))) : embedWrapper, (!external_this_wp_editor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: onCaptionChange, - inlineToolbar: true - })); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, state) { - if (!nextProps.isSelected && state.interactive) { - // We only want to change this when the block is not selected, because changing it when - // the block becomes selected makes the overlap disappear too early. Hiding the overlay - // happens on mouseup when the overlay is clicked. - return { - interactive: false - }; - } - - return null; - } - }]); - - return EmbedPreview; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var embed_preview = (embed_preview_EmbedPreview); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/edit.js - - - - - - - - -/** - * Internal dependencies - */ - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -function getEmbedEditComponent(title, icon) { - var responsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - function _class() { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments)); - _this.switchBackToURLInput = _this.switchBackToURLInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setUrl = _this.setUrl.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.getAttributesFromPreview = _this.getAttributesFromPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setAttributesFromPreview = _this.setAttributesFromPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.getResponsiveHelp = _this.getResponsiveHelp.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.toggleResponsive = _this.toggleResponsive.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.handleIncomingPreview = _this.handleIncomingPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - editingURL: false, - url: _this.props.attributes.url - }; - - if (_this.props.preview) { - _this.handleIncomingPreview(); - } - - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "handleIncomingPreview", - value: function handleIncomingPreview() { - var allowResponsive = this.props.attributes.allowResponsive; - this.setAttributesFromPreview(); - var upgradedBlock = util_createUpgradedEmbedBlock(this.props, this.getAttributesFromPreview(this.props.preview, allowResponsive)); - - if (upgradedBlock) { - this.props.onReplace(upgradedBlock); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var hasPreview = undefined !== this.props.preview; - var hadPreview = undefined !== prevProps.preview; - var previewChanged = prevProps.preview && this.props.preview && this.props.preview.html !== prevProps.preview.html; - var switchedPreview = previewChanged || hasPreview && !hadPreview; - var switchedURL = this.props.attributes.url !== prevProps.attributes.url; - - if (switchedPreview || switchedURL) { - if (this.props.cannotEmbed) { - // Can't embed this URL, and we've just received or switched the preview. - return; - } - - this.handleIncomingPreview(); - } - } - }, { - key: "setUrl", - value: function setUrl(event) { - if (event) { - event.preventDefault(); - } - - var url = this.state.url; - var setAttributes = this.props.setAttributes; - this.setState({ - editingURL: false - }); - setAttributes({ - url: url - }); - } - /*** - * Gets block attributes based on the preview and responsive state. - * - * @param {string} preview The preview data. - * @param {boolean} allowResponsive Apply responsive classes to fixed size content. - * @return {Object} Attributes and values. - */ - - }, { - key: "getAttributesFromPreview", - value: function getAttributesFromPreview(preview) { - var allowResponsive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'. - - var _preview$type = preview.type, - type = _preview$type === void 0 ? 'rich' : _preview$type; // If we got a provider name from the API, use it for the slug, otherwise we use the title, - // because not all embed code gives us a provider name. - - var html = preview.html, - providerName = preview.provider_name; - var providerNameSlug = Object(external_lodash_["kebabCase"])(Object(external_lodash_["toLower"])('' !== providerName ? providerName : title)); - - if (util_isFromWordPress(html)) { - type = 'wp-embed'; - } - - if (html || 'photo' === type) { - attributes.type = type; - attributes.providerNameSlug = providerNameSlug; - } - - attributes.className = getClassNames(html, this.props.attributes.className, responsive && allowResponsive); - return attributes; - } - /*** - * Sets block attributes based on the preview data. - */ - - }, { - key: "setAttributesFromPreview", - value: function setAttributesFromPreview() { - var _this$props = this.props, - setAttributes = _this$props.setAttributes, - preview = _this$props.preview; - var allowResponsive = this.props.attributes.allowResponsive; - setAttributes(this.getAttributesFromPreview(preview, allowResponsive)); - } - }, { - key: "switchBackToURLInput", - value: function switchBackToURLInput() { - this.setState({ - editingURL: true - }); - } - }, { - key: "getResponsiveHelp", - value: function getResponsiveHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); - } - }, { - key: "toggleResponsive", - value: function toggleResponsive() { - var _this$props$attribute = this.props.attributes, - allowResponsive = _this$props$attribute.allowResponsive, - className = _this$props$attribute.className; - var html = this.props.preview.html; - var newAllowResponsive = !allowResponsive; - this.props.setAttributes({ - allowResponsive: newAllowResponsive, - className: getClassNames(html, className, responsive && newAllowResponsive) - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$state = this.state, - url = _this$state.url, - editingURL = _this$state.editingURL; - var _this$props$attribute2 = this.props.attributes, - caption = _this$props$attribute2.caption, - type = _this$props$attribute2.type, - allowResponsive = _this$props$attribute2.allowResponsive; - var _this$props2 = this.props, - fetching = _this$props2.fetching, - setAttributes = _this$props2.setAttributes, - isSelected = _this$props2.isSelected, - className = _this$props2.className, - preview = _this$props2.preview, - cannotEmbed = _this$props2.cannotEmbed, - themeSupportsResponsive = _this$props2.themeSupportsResponsive, - tryAgain = _this$props2.tryAgain; - - if (fetching) { - return Object(external_this_wp_element_["createElement"])(embed_loading, null); - } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists - - - var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. - - if (!preview || cannotEmbed || editingURL) { - return Object(external_this_wp_element_["createElement"])(embed_placeholder, { - icon: icon, - label: label, - onSubmit: this.setUrl, - value: url, - cannotEmbed: cannotEmbed, - onChange: function onChange(event) { - return _this2.setState({ - url: event.target.value - }); - }, - fallback: function fallback() { - return util_fallback(url, _this2.props.onReplace); - }, - tryAgain: tryAgain - }); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { - showEditButton: preview && !cannotEmbed, - themeSupportsResponsive: themeSupportsResponsive, - blockSupportsResponsive: responsive, - allowResponsive: allowResponsive, - getResponsiveHelp: this.getResponsiveHelp, - toggleResponsive: this.toggleResponsive, - switchBackToURLInput: this.switchBackToURLInput - }), Object(external_this_wp_element_["createElement"])(embed_preview, { - preview: preview, - className: className, - url: url, - type: type, - caption: caption, - onCaptionChange: function onCaptionChange(value) { - return setAttributes({ - caption: value - }); - }, - isSelected: isSelected, - icon: icon, - label: label - })); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]) - ); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/settings.js - - - - -/** - * Internal dependencies - */ - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -var embedAttributes = { - url: { - type: 'string' - }, - caption: { - type: 'string', - source: 'html', - selector: 'figcaption' - }, - type: { - type: 'string' - }, - providerNameSlug: { - type: 'string' - }, - allowResponsive: { - type: 'boolean', - default: true - } -}; -function getEmbedBlockSettings(_ref) { - var title = _ref.title, - description = _ref.description, - icon = _ref.icon, - _ref$category = _ref.category, - category = _ref$category === void 0 ? 'embed' : _ref$category, - transforms = _ref.transforms, - _ref$keywords = _ref.keywords, - keywords = _ref$keywords === void 0 ? [] : _ref$keywords, - _ref$supports = _ref.supports, - supports = _ref$supports === void 0 ? {} : _ref$supports, - _ref$responsive = _ref.responsive, - responsive = _ref$responsive === void 0 ? true : _ref$responsive; - - var blockDescription = description || Object(external_this_wp_i18n_["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'); - - var edit = getEmbedEditComponent(title, icon, responsive); - return { - title: title, - description: blockDescription, - icon: icon, - category: category, - keywords: keywords, - attributes: embedAttributes, - supports: Object(objectSpread["a" /* default */])({ - align: true - }, supports), - transforms: transforms, - edit: Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var url = ownProps.attributes.url; - var core = select('core'); - var getEmbedPreview = core.getEmbedPreview, - isPreviewEmbedFallback = core.isPreviewEmbedFallback, - isRequestingEmbedPreview = core.isRequestingEmbedPreview, - getThemeSupports = core.getThemeSupports; - var preview = undefined !== url && getEmbedPreview(url); - var previewIsFallback = undefined !== url && isPreviewEmbedFallback(url); - var fetching = undefined !== url && isRequestingEmbedPreview(url); - var themeSupports = getThemeSupports(); // The external oEmbed provider does not exist. We got no type info and no html. - - var badEmbedProvider = !!preview && undefined === preview.type && false === preview.html; // Some WordPress URLs that can't be embedded will cause the API to return - // a valid JSON response with no HTML and `data.status` set to 404, rather - // than generating a fallback response as other embeds do. - - var wordpressCantEmbed = !!preview && preview.data && preview.data.status === 404; - var validPreview = !!preview && !badEmbedProvider && !wordpressCantEmbed; - var cannotEmbed = undefined !== url && (!validPreview || previewIsFallback); - return { - preview: validPreview ? preview : undefined, - fetching: fetching, - themeSupportsResponsive: themeSupports['responsive-embeds'], - cannotEmbed: cannotEmbed - }; - }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var url = ownProps.attributes.url; - var coreData = dispatch('core/data'); - - var tryAgain = function tryAgain() { - coreData.invalidateResolution('core', 'getEmbedPreview', [url]); - }; - - return { - tryAgain: tryAgain - }; - }))(edit), - save: function save(_ref2) { - var _classnames; - - var attributes = _ref2.attributes; - var url = attributes.url, - caption = attributes.caption, - type = attributes.type, - providerNameSlug = attributes.providerNameSlug; - - if (!url) { - return null; - } - - var embedClassName = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames)); - return Object(external_this_wp_element_["createElement"])("figure", { - className: embedClassName - }, Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-embed__wrapper" - }, "\n".concat(url, "\n") - /* URL needs to be on its own line. */ - ), !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - }, - deprecated: [{ - attributes: embedAttributes, - save: function save(_ref3) { - var _classnames2; - - var attributes = _ref3.attributes; - var url = attributes.url, - caption = attributes.caption, - type = attributes.type, - providerNameSlug = attributes.providerNameSlug; - - if (!url) { - return null; - } - - var embedClassName = dedupe_default()('wp-block-embed', (_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames2, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames2)); - return Object(external_this_wp_element_["createElement"])("figure", { - className: embedClassName - }, "\n".concat(url, "\n") - /* URL needs to be on its own line. */ - , !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } - }] - }; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/index.js - - -/** - * Internal dependencies - */ - - - -/** - * WordPress dependencies - */ - - - -var embed_name = 'core/embed'; -var embed_settings = getEmbedBlockSettings({ - title: Object(external_this_wp_i18n_["_x"])('Embed', 'block title'), - description: Object(external_this_wp_i18n_["__"])('Embed videos, images, tweets, audio, and other content from external sources.'), - icon: embedContentIcon, - // Unknown embeds should not be responsive by default. - responsive: false, - transforms: { - from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent); - }, - transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/embed', { - url: node.textContent.trim() - }); - } - }] - } -}); -var embed_common = common.map(function (embedDefinition) { - return Object(objectSpread["a" /* default */])({}, embedDefinition, { - settings: getEmbedBlockSettings(embedDefinition.settings) - }); -}); -var embed_others = others.map(function (embedDefinition) { - return Object(objectSpread["a" /* default */])({}, embedDefinition, { - settings: getEmbedBlockSettings(embedDefinition.settings) - }); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var file_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/inspector.js - - -/** - * WordPress dependencies - */ - - - - -function FileBlockInspector(_ref) { - var hrefs = _ref.hrefs, - openInNewWindow = _ref.openInNewWindow, - showDownloadButton = _ref.showDownloadButton, - changeLinkDestinationOption = _ref.changeLinkDestinationOption, - changeOpenInNewWindow = _ref.changeOpenInNewWindow, - changeShowDownloadButton = _ref.changeShowDownloadButton; - var href = hrefs.href, - textLinkHref = hrefs.textLinkHref, - attachmentPage = hrefs.attachmentPage; - var linkDestinationOptions = [{ - value: href, - label: Object(external_this_wp_i18n_["__"])('URL') - }]; - - if (attachmentPage) { - linkDestinationOptions = [{ - value: href, - label: Object(external_this_wp_i18n_["__"])('Media File') - }, { - value: attachmentPage, - label: Object(external_this_wp_i18n_["__"])('Attachment Page') - }]; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Text Link Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Link To'), - value: textLinkHref, - options: linkDestinationOptions, - onChange: changeLinkDestinationOption - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Open in New Tab'), - checked: openInNewWindow, - onChange: changeOpenInNewWindow - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Download Button Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show Download Button'), - checked: showDownloadButton, - onChange: changeShowDownloadButton - })))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/edit.js - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - -var edit_FileEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(FileEdit, _Component); - - function FileEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, FileEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FileEdit).apply(this, arguments)); - _this.onSelectFile = _this.onSelectFile.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.confirmCopyURL = _this.confirmCopyURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.resetCopyConfirmation = _this.resetCopyConfirmation.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.changeLinkDestinationOption = _this.changeLinkDestinationOption.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.changeOpenInNewWindow = _this.changeOpenInNewWindow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.changeShowDownloadButton = _this.changeShowDownloadButton.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - hasError: false, - showCopyConfirmation: false - }; - return _this; - } - - Object(createClass["a" /* default */])(FileEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - noticeOperations = _this$props.noticeOperations; - var href = attributes.href; // Upload a file drag-and-dropped into the editor - - if (Object(external_this_wp_blob_["isBlobURL"])(href)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(href); - Object(external_this_wp_editor_["mediaUpload"])({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - media = _ref2[0]; - - return _this2.onSelectFile(media); - }, - onError: function onError(message) { - _this2.setState({ - hasError: true - }); - - noticeOperations.createErrorNotice(message); - } - }); - Object(external_this_wp_blob_["revokeBlobURL"])(href); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Reset copy confirmation state when block is deselected - if (prevProps.isSelected && !this.props.isSelected) { - this.setState({ - showCopyConfirmation: false - }); - } - } - }, { - key: "onSelectFile", - value: function onSelectFile(media) { - if (media && media.url) { - this.setState({ - hasError: false - }); - this.props.setAttributes({ - href: media.url, - fileName: media.title, - textLinkHref: media.url, - id: media.id - }); - } - } - }, { - key: "confirmCopyURL", - value: function confirmCopyURL() { - this.setState({ - showCopyConfirmation: true - }); - } - }, { - key: "resetCopyConfirmation", - value: function resetCopyConfirmation() { - this.setState({ - showCopyConfirmation: false - }); - } - }, { - key: "changeLinkDestinationOption", - value: function changeLinkDestinationOption(newHref) { - // Choose Media File or Attachment Page (when file is in Media Library) - this.props.setAttributes({ - textLinkHref: newHref - }); - } - }, { - key: "changeOpenInNewWindow", - value: function changeOpenInNewWindow(newValue) { - this.props.setAttributes({ - textLinkTarget: newValue ? '_blank' : false - }); - } - }, { - key: "changeShowDownloadButton", - value: function changeShowDownloadButton(newValue) { - this.props.setAttributes({ - showDownloadButton: newValue - }); - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - className = _this$props2.className, - isSelected = _this$props2.isSelected, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes, - noticeUI = _this$props2.noticeUI, - noticeOperations = _this$props2.noticeOperations, - media = _this$props2.media; - var fileName = attributes.fileName, - href = attributes.href, - textLinkHref = attributes.textLinkHref, - textLinkTarget = attributes.textLinkTarget, - showDownloadButton = attributes.showDownloadButton, - downloadButtonText = attributes.downloadButtonText, - id = attributes.id; - var _this$state = this.state, - hasError = _this$state.hasError, - showCopyConfirmation = _this$state.showCopyConfirmation; - var attachmentPage = media && media.link; - - if (!href || hasError) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: file_icon - }), - labels: { - title: Object(external_this_wp_i18n_["__"])('File'), - instructions: Object(external_this_wp_i18n_["__"])('Drag a file, upload a new one or select a file from your library.') - }, - onSelect: this.onSelectFile, - notices: noticeUI, - onError: noticeOperations.createErrorNotice, - accept: "*" - }); - } - - var classes = classnames_default()(className, { - 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(href) - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(FileBlockInspector, Object(esm_extends["a" /* default */])({ - hrefs: { - href: href, - textLinkHref: textLinkHref, - attachmentPage: attachmentPage - } - }, { - openInNewWindow: !!textLinkTarget, - showDownloadButton: showDownloadButton, - changeLinkDestinationOption: this.changeLinkDestinationOption, - changeOpenInNewWindow: this.changeOpenInNewWindow, - changeShowDownloadButton: this.changeShowDownloadButton - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { - onSelect: this.onSelectFile, - value: id, - render: function render(_ref3) { - var open = _ref3.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit file'), - onClick: open, - icon: "edit" - }); - } - })))), Object(external_this_wp_element_["createElement"])("div", { - className: classes - }, Object(external_this_wp_element_["createElement"])("div", { - className: 'wp-block-file__content-wrapper' - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - wrapperClassName: 'wp-block-file__textlink', - tagName: "div" // must be block-level or else cursor disappears - , - value: fileName, - placeholder: Object(external_this_wp_i18n_["__"])('Write file name…'), - keepPlaceholderOnFocus: true, - formattingControls: [] // disable controls - , - onChange: function onChange(text) { - return setAttributes({ - fileName: text - }); - } - }), showDownloadButton && Object(external_this_wp_element_["createElement"])("div", { - className: 'wp-block-file__button-richtext-wrapper' - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "div" // must be block-level or else cursor disappears - , - className: 'wp-block-file__button', - value: downloadButtonText, - formattingControls: [] // disable controls - , - placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), - keepPlaceholderOnFocus: true, - onChange: function onChange(text) { - return setAttributes({ - downloadButtonText: text - }); - } - }))), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { - isDefault: true, - text: href, - className: 'wp-block-file__copy-url-button', - onCopy: this.confirmCopyURL, - onFinishCopy: this.resetCopyConfirmation, - disabled: Object(external_this_wp_blob_["isBlobURL"])(href) - }, showCopyConfirmation ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy URL')))); - } - }]); - - return FileEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var file_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core'), - getMedia = _select.getMedia; - - var id = props.attributes.id; - return { - media: id === undefined ? undefined : getMedia(id) - }; -}), external_this_wp_components_["withNotices"]])(edit_FileEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -var file_name = 'core/file'; -var file_settings = { - title: Object(external_this_wp_i18n_["__"])('File'), - description: Object(external_this_wp_i18n_["__"])('Add a link to a downloadable file.'), - icon: file_icon, - category: 'common', - keywords: [Object(external_this_wp_i18n_["__"])('document'), Object(external_this_wp_i18n_["__"])('pdf')], - attributes: { - id: { - type: 'number' - }, - href: { - type: 'string' - }, - fileName: { - type: 'string', - source: 'html', - selector: 'a:not([download])' - }, - // Differs to the href when the block is configured to link to the attachment page - textLinkHref: { - type: 'string', - source: 'attribute', - selector: 'a:not([download])', - attribute: 'href' - }, - // e.g. `_blank` when the block is configured to open in a new tab - textLinkTarget: { - type: 'string', - source: 'attribute', - selector: 'a:not([download])', - attribute: 'target' - }, - showDownloadButton: { - type: 'boolean', - default: true - }, - downloadButtonText: { - type: 'string', - source: 'html', - selector: 'a[download]', - default: Object(external_this_wp_i18n_["_x"])('Download', 'button label') - } - }, - supports: { - align: true - }, - transforms: { - from: [{ - type: 'files', - isMatch: function isMatch(files) { - return files.length > 0; - }, - // We define a lower priorty (higher number) than the default of 10. This - // ensures that the File block is only created as a fallback. - priority: 15, - transform: function transform(files) { - var blocks = []; - files.forEach(function (file) { - var blobURL = Object(external_this_wp_blob_["createBlobURL"])(file); // File will be uploaded in componentDidMount() - - blocks.push(Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: blobURL, - fileName: file.name, - textLinkHref: blobURL - })); - }); - return blocks; - } - }, { - type: 'block', - blocks: ['core/audio'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: attributes.src, - fileName: attributes.caption, - textLinkHref: attributes.src, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: attributes.src, - fileName: attributes.caption, - textLinkHref: attributes.src, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/image'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/file', { - href: attributes.url, - fileName: attributes.caption, - textLinkHref: attributes.url, - id: attributes.id - }); - } - }], - to: [{ - type: 'block', - blocks: ['core/audio'], - isMatch: function isMatch(_ref) { - var id = _ref.id; - - if (!id) { - return false; - } - - var _select = Object(external_this_wp_data_["select"])('core'), - getMedia = _select.getMedia; - - var media = getMedia(id); - return !!media && Object(external_lodash_["includes"])(media.mime_type, 'audio'); - }, - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/audio', { - src: attributes.href, - caption: attributes.fileName, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/video'], - isMatch: function isMatch(_ref2) { - var id = _ref2.id; - - if (!id) { - return false; - } - - var _select2 = Object(external_this_wp_data_["select"])('core'), - getMedia = _select2.getMedia; - - var media = getMedia(id); - return !!media && Object(external_lodash_["includes"])(media.mime_type, 'video'); - }, - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/video', { - src: attributes.href, - caption: attributes.fileName, - id: attributes.id - }); - } - }, { - type: 'block', - blocks: ['core/image'], - isMatch: function isMatch(_ref3) { - var id = _ref3.id; - - if (!id) { - return false; - } - - var _select3 = Object(external_this_wp_data_["select"])('core'), - getMedia = _select3.getMedia; - - var media = getMedia(id); - return !!media && Object(external_lodash_["includes"])(media.mime_type, 'image'); - }, - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - url: attributes.href, - caption: attributes.fileName, - id: attributes.id - }); - } - }] - }, - edit: file_edit, - save: function save(_ref4) { - var attributes = _ref4.attributes; - var href = attributes.href, - fileName = attributes.fileName, - textLinkHref = attributes.textLinkHref, - textLinkTarget = attributes.textLinkTarget, - showDownloadButton = attributes.showDownloadButton, - downloadButtonText = attributes.downloadButtonText; - return href && Object(external_this_wp_element_["createElement"])("div", null, !external_this_wp_editor_["RichText"].isEmpty(fileName) && Object(external_this_wp_element_["createElement"])("a", { - href: textLinkHref, - target: textLinkTarget, - rel: textLinkTarget ? 'noreferrer noopener' : false - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - value: fileName - })), showDownloadButton && Object(external_this_wp_element_["createElement"])("a", { - href: href, - className: "wp-block-file__button", - download: true - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - value: downloadButtonText - }))); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -var edit_HTMLEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(HTMLEdit, _Component); - - function HTMLEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, HTMLEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HTMLEdit).apply(this, arguments)); - _this.state = { - isPreview: false, - styles: [] - }; - _this.switchToHTML = _this.switchToHTML.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(HTMLEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var styles = this.props.styles; // Default styles used to unset some of the styles - // that might be inherited from the editor style. - - var defaultStyles = "\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"; - this.setState({ - styles: [defaultStyles].concat(Object(toConsumableArray["a" /* default */])(Object(external_this_wp_editor_["transformStyles"])(styles))) - }); - } - }, { - key: "switchToPreview", - value: function switchToPreview() { - this.setState({ - isPreview: true - }); - } - }, { - key: "switchToHTML", - value: function switchToHTML() { - this.setState({ - isPreview: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var _this$state = this.state, - isPreview = _this$state.isPreview, - styles = _this$state.styles; - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-html" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])("div", { - className: "components-toolbar" - }, Object(external_this_wp_element_["createElement"])("button", { - className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''), - onClick: this.switchToHTML - }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])("button", { - className: "components-tab-button ".concat(isPreview ? 'is-active' : ''), - onClick: this.switchToPreview - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"].Consumer, null, function (isDisabled) { - return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { - html: attributes.content, - styles: styles - }) : Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PlainText"], { - value: attributes.content, - onChange: function onChange(content) { - return setAttributes({ - content: content - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write HTML…'), - "aria-label": Object(external_this_wp_i18n_["__"])('HTML') - }); - })); - } - }]); - - return HTMLEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var html_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - styles: getSettings().styles - }; -})(edit_HTMLEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -var html_name = 'core/html'; -var html_settings = { - title: Object(external_this_wp_i18n_["__"])('Custom HTML'), - description: Object(external_this_wp_i18n_["__"])('Add custom HTML code and preview it as you edit.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z" - })), - category: 'formatting', - keywords: [Object(external_this_wp_i18n_["__"])('embed')], - supports: { - customClassName: false, - className: false, - html: false - }, - attributes: { - content: { - type: 'string', - source: 'html' - } - }, - transforms: { - from: [{ - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'FIGURE' && !!node.querySelector('iframe'); - }, - schema: { - figure: { - require: ['iframe'], - children: { - iframe: { - attributes: ['src', 'allowfullscreen', 'height', 'width'] - }, - figcaption: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - } - } - }] - }, - edit: html_edit, - save: function save(_ref) { - var attributes = _ref.attributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container-icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var media_container_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container.js - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Constants - */ - -var media_container_ALLOWED_MEDIA_TYPES = ['image', 'video']; - -var media_container_MediaContainer = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaContainer, _Component); - - function MediaContainer() { - Object(classCallCheck["a" /* default */])(this, MediaContainer); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaContainer).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(MediaContainer, [{ - key: "renderToolbarEditButton", - value: function renderToolbarEditButton() { - var _this$props = this.props, - mediaId = _this$props.mediaId, - onSelectMedia = _this$props.onSelectMedia; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { - onSelect: onSelectMedia, - allowedTypes: media_container_ALLOWED_MEDIA_TYPES, - value: mediaId, - render: function render(_ref) { - var open = _ref.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit media'), - icon: "edit", - onClick: open - }); - } - }))); - } - }, { - key: "renderImage", - value: function renderImage() { - var _this$props2 = this.props, - mediaAlt = _this$props2.mediaAlt, - mediaUrl = _this$props2.mediaUrl, - className = _this$props2.className; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])("img", { - src: mediaUrl, - alt: mediaAlt - }))); - } - }, { - key: "renderVideo", - value: function renderVideo() { - var _this$props3 = this.props, - mediaUrl = _this$props3.mediaUrl, - className = _this$props3.className; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])("video", { - controls: true, - src: mediaUrl - }))); - } - }, { - key: "renderPlaceholder", - value: function renderPlaceholder() { - var _this$props4 = this.props, - onSelectMedia = _this$props4.onSelectMedia, - className = _this$props4.className; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: media_container_icon - }), - labels: { - title: Object(external_this_wp_i18n_["__"])('Media area') - }, - className: className, - onSelect: onSelectMedia, - accept: "image/*,video/*", - allowedTypes: media_container_ALLOWED_MEDIA_TYPES - }); - } - }, { - key: "render", - value: function render() { - var _this$props5 = this.props, - mediaPosition = _this$props5.mediaPosition, - mediaUrl = _this$props5.mediaUrl, - mediaType = _this$props5.mediaType, - mediaWidth = _this$props5.mediaWidth, - commitWidthChange = _this$props5.commitWidthChange, - onWidthChange = _this$props5.onWidthChange; - - if (mediaType && mediaUrl) { - var onResize = function onResize(event, direction, elt) { - onWidthChange(parseInt(elt.style.width)); - }; - - var onResizeStop = function onResizeStop(event, direction, elt) { - commitWidthChange(parseInt(elt.style.width)); - }; - - var enablePositions = { - right: mediaPosition === 'left', - left: mediaPosition === 'right' - }; - var mediaElement = null; - - switch (mediaType) { - case 'image': - mediaElement = this.renderImage(); - break; - - case 'video': - mediaElement = this.renderVideo(); - break; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - className: "editor-media-container__resizer", - size: { - width: mediaWidth + '%' - }, - minWidth: "10%", - maxWidth: "100%", - enable: enablePositions, - onResize: onResize, - onResizeStop: onResizeStop, - axis: "x" - }, mediaElement); - } - - return this.renderPlaceholder(); - } - }]); - - return MediaContainer; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var media_container = (media_container_MediaContainer); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/edit.js - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -/** - * Constants - */ - -var edit_ALLOWED_BLOCKS = ['core/button', 'core/paragraph', 'core/heading', 'core/list']; -var TEMPLATE = [['core/paragraph', { - fontSize: 'large', - placeholder: Object(external_this_wp_i18n_["_x"])('Content…', 'content placeholder') -}]]; - -var edit_MediaTextEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaTextEdit, _Component); - - function MediaTextEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MediaTextEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaTextEdit).apply(this, arguments)); - _this.onSelectMedia = _this.onSelectMedia.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onWidthChange = _this.onWidthChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.commitWidthChange = _this.commitWidthChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - mediaWidth: null - }; - return _this; - } - - Object(createClass["a" /* default */])(MediaTextEdit, [{ - key: "onSelectMedia", - value: function onSelectMedia(media) { - var setAttributes = this.props.setAttributes; - var mediaType; - var src; // for media selections originated from a file upload. - - if (media.media_type) { - if (media.media_type === 'image') { - mediaType = 'image'; - } else { - // only images and videos are accepted so if the media_type is not an image we can assume it is a video. - // video contain the media type of 'file' in the object returned from the rest api. - mediaType = 'video'; - } - } else { - // for media selections originated from existing files in the media library. - mediaType = media.type; - } - - if (mediaType === 'image') { - // Try the "large" size URL, falling back to the "full" size URL below. - src = Object(external_lodash_["get"])(media, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(media, ['media_details', 'sizes', 'large', 'source_url']); - } - - setAttributes({ - mediaAlt: media.alt, - mediaId: media.id, - mediaType: mediaType, - mediaUrl: src || media.url - }); - } - }, { - key: "onWidthChange", - value: function onWidthChange(width) { - this.setState({ - mediaWidth: width - }); - } - }, { - key: "commitWidthChange", - value: function commitWidthChange(width) { - var setAttributes = this.props.setAttributes; - setAttributes({ - mediaWidth: width - }); - this.setState({ - mediaWidth: null - }); - } - }, { - key: "renderMediaArea", - value: function renderMediaArea() { - var attributes = this.props.attributes; - var mediaAlt = attributes.mediaAlt, - mediaId = attributes.mediaId, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaUrl = attributes.mediaUrl, - mediaWidth = attributes.mediaWidth; - return Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ - className: "block-library-media-text__media-container", - onSelectMedia: this.onSelectMedia, - onWidthChange: this.onWidthChange, - commitWidthChange: this.commitWidthChange - }, { - mediaAlt: mediaAlt, - mediaId: mediaId, - mediaType: mediaType, - mediaUrl: mediaUrl, - mediaPosition: mediaPosition, - mediaWidth: mediaWidth - })); - } - }, { - key: "render", - value: function render() { - var _classnames; - - var _this$props = this.props, - attributes = _this$props.attributes, - className = _this$props.className, - backgroundColor = _this$props.backgroundColor, - isSelected = _this$props.isSelected, - setAttributes = _this$props.setAttributes, - setBackgroundColor = _this$props.setBackgroundColor; - var isStackedOnMobile = attributes.isStackedOnMobile, - mediaAlt = attributes.mediaAlt, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaWidth = attributes.mediaWidth; - var temporaryMediaWidth = this.state.mediaWidth; - var classNames = classnames_default()(className, (_classnames = { - 'has-media-on-the-right': 'right' === mediaPosition, - 'is-selected': isSelected - }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), _classnames)); - var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%"); - var style = { - gridTemplateColumns: 'right' === mediaPosition ? "auto ".concat(widthString) : "".concat(widthString, " auto"), - backgroundColor: backgroundColor.color - }; - var colorSettings = [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color') - }]; - var toolbarControls = [{ - icon: 'align-pull-left', - title: Object(external_this_wp_i18n_["__"])('Show media on left'), - isActive: mediaPosition === 'left', - onClick: function onClick() { - return setAttributes({ - mediaPosition: 'left' - }); - } - }, { - icon: 'align-pull-right', - title: Object(external_this_wp_i18n_["__"])('Show media on right'), - isActive: mediaPosition === 'right', - onClick: function onClick() { - return setAttributes({ - mediaPosition: 'right' - }); - } - }]; - - var onMediaAltChange = function onMediaAltChange(newMediaAlt) { - setAttributes({ - mediaAlt: newMediaAlt - }); - }; - - var mediaTextGeneralSettings = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Media & Text Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Stack on mobile'), - checked: isStackedOnMobile, - onChange: function onChange() { - return setAttributes({ - isStackedOnMobile: !isStackedOnMobile - }); - } - }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { - label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), - value: mediaAlt, - onChange: onMediaAltChange, - help: Object(external_this_wp_i18n_["__"])('Alternative text describes your image to people who can’t see it. Add a short description with its key details.') - })); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, mediaTextGeneralSettings, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - initialOpen: false, - colorSettings: colorSettings - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: toolbarControls - })), Object(external_this_wp_element_["createElement"])("div", { - className: classNames, - style: style - }, this.renderMediaArea(), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"], { - allowedBlocks: edit_ALLOWED_BLOCKS, - template: TEMPLATE, - templateInsertUpdatesSelection: false - }))); - } - }]); - - return MediaTextEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var media_text_edit = (Object(external_this_wp_editor_["withColors"])('backgroundColor')(edit_MediaTextEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var media_text_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/index.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var DEFAULT_MEDIA_WIDTH = 50; -var media_text_name = 'core/media-text'; -var media_text_blockAttributes = { - align: { - type: 'string', - default: 'wide' - }, - backgroundColor: { - type: 'string' - }, - customBackgroundColor: { - type: 'string' - }, - mediaAlt: { - type: 'string', - source: 'attribute', - selector: 'figure img', - attribute: 'alt', - default: '' - }, - mediaPosition: { - type: 'string', - default: 'left' - }, - mediaId: { - type: 'number' - }, - mediaUrl: { - type: 'string', - source: 'attribute', - selector: 'figure video,figure img', - attribute: 'src' - }, - mediaType: { - type: 'string' - }, - mediaWidth: { - type: 'number', - default: 50 - }, - isStackedOnMobile: { - type: 'boolean', - default: false - } -}; -var media_text_settings = { - title: Object(external_this_wp_i18n_["__"])('Media & Text'), - description: Object(external_this_wp_i18n_["__"])('Set media and words side-by-side for a richer layout.'), - icon: media_text_icon, - category: 'layout', - keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('video')], - attributes: media_text_blockAttributes, - supports: { - align: ['wide', 'full'], - html: false - }, - transforms: { - from: [{ - type: 'block', - blocks: ['core/image'], - transform: function transform(_ref) { - var alt = _ref.alt, - url = _ref.url, - id = _ref.id; - return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { - mediaAlt: alt, - mediaId: id, - mediaUrl: url, - mediaType: 'image' - }); - } - }, { - type: 'block', - blocks: ['core/video'], - transform: function transform(_ref2) { - var src = _ref2.src, - id = _ref2.id; - return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { - mediaId: id, - mediaUrl: src, - mediaType: 'video' - }); - } - }], - to: [{ - type: 'block', - blocks: ['core/image'], - isMatch: function isMatch(_ref3) { - var mediaType = _ref3.mediaType, - mediaUrl = _ref3.mediaUrl; - return !mediaUrl || mediaType === 'image'; - }, - transform: function transform(_ref4) { - var mediaAlt = _ref4.mediaAlt, - mediaId = _ref4.mediaId, - mediaUrl = _ref4.mediaUrl; - return Object(external_this_wp_blocks_["createBlock"])('core/image', { - alt: mediaAlt, - id: mediaId, - url: mediaUrl - }); - } - }, { - type: 'block', - blocks: ['core/video'], - isMatch: function isMatch(_ref5) { - var mediaType = _ref5.mediaType, - mediaUrl = _ref5.mediaUrl; - return !mediaUrl || mediaType === 'video'; - }, - transform: function transform(_ref6) { - var mediaId = _ref6.mediaId, - mediaUrl = _ref6.mediaUrl; - return Object(external_this_wp_blocks_["createBlock"])('core/video', { - id: mediaId, - src: mediaUrl - }); - } - }] - }, - edit: media_text_edit, - save: function save(_ref7) { - var _classnames; - - var attributes = _ref7.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - isStackedOnMobile = attributes.isStackedOnMobile, - mediaAlt = attributes.mediaAlt, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaUrl = attributes.mediaUrl, - mediaWidth = attributes.mediaWidth, - mediaId = attributes.mediaId; - var mediaTypeRenders = { - image: function image() { - return Object(external_this_wp_element_["createElement"])("img", { - src: mediaUrl, - alt: mediaAlt, - className: mediaId && mediaType === 'image' ? "wp-image-".concat(mediaId) : null - }); - }, - video: function video() { - return Object(external_this_wp_element_["createElement"])("video", { - controls: true, - src: mediaUrl - }); - } - }; - var backgroundClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()((_classnames = { - 'has-media-on-the-right': 'right' === mediaPosition - }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), _classnames)); - var gridTemplateColumns; - - if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { - gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); - } - - var style = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - gridTemplateColumns: gridTemplateColumns - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - style: style - }, Object(external_this_wp_element_["createElement"])("figure", { - className: "wp-block-media-text__media" - }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-media-text__content" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"].Content, null))); - }, - deprecated: [{ - attributes: media_text_blockAttributes, - save: function save(_ref8) { - var _classnames2; - - var attributes = _ref8.attributes; - var backgroundColor = attributes.backgroundColor, - customBackgroundColor = attributes.customBackgroundColor, - isStackedOnMobile = attributes.isStackedOnMobile, - mediaAlt = attributes.mediaAlt, - mediaPosition = attributes.mediaPosition, - mediaType = attributes.mediaType, - mediaUrl = attributes.mediaUrl, - mediaWidth = attributes.mediaWidth; - var mediaTypeRenders = { - image: function image() { - return Object(external_this_wp_element_["createElement"])("img", { - src: mediaUrl, - alt: mediaAlt - }); - }, - video: function video() { - return Object(external_this_wp_element_["createElement"])("video", { - controls: true, - src: mediaUrl - }); - } - }; - var backgroundClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', backgroundColor); - var className = classnames_default()((_classnames2 = { - 'has-media-on-the-right': 'right' === mediaPosition - }, Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames2, 'is-stacked-on-mobile', isStackedOnMobile), _classnames2)); - var gridTemplateColumns; - - if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { - gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); - } - - var style = { - backgroundColor: backgroundClass ? undefined : customBackgroundColor, - gridTemplateColumns: gridTemplateColumns - }; - return Object(external_this_wp_element_["createElement"])("div", { - className: className, - style: style - }, Object(external_this_wp_element_["createElement"])("figure", { - className: "wp-block-media-text__media" - }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-media-text__content" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"].Content, null))); - } - }] -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** - * Minimum number of comments a user can show using this block. - * - * @type {number} - */ - -var MIN_COMMENTS = 1; -/** - * Maximum number of comments a user can show using this block. - * - * @type {number} - */ - -var MAX_COMMENTS = 100; - -var edit_LatestComments = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(LatestComments, _Component); - - function LatestComments() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LatestComments); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestComments).apply(this, arguments)); - _this.setAlignment = _this.setAlignment.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setCommentsToShow = _this.setCommentsToShow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); // Create toggles for each attribute; we create them here rather than - // passing `this.createToggleAttribute( 'displayAvatar' )` directly to - // `onChange` to avoid re-renders. - - _this.toggleDisplayAvatar = _this.createToggleAttribute('displayAvatar'); - _this.toggleDisplayDate = _this.createToggleAttribute('displayDate'); - _this.toggleDisplayExcerpt = _this.createToggleAttribute('displayExcerpt'); - return _this; - } - - Object(createClass["a" /* default */])(LatestComments, [{ - key: "createToggleAttribute", - value: function createToggleAttribute(propName) { - var _this2 = this; - - return function () { - var value = _this2.props.attributes[propName]; - var setAttributes = _this2.props.setAttributes; - setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); - }; - } - }, { - key: "setAlignment", - value: function setAlignment(align) { - this.props.setAttributes({ - align: align - }); - } - }, { - key: "setCommentsToShow", - value: function setCommentsToShow(commentsToShow) { - this.props.setAttributes({ - commentsToShow: commentsToShow - }); - } - }, { - key: "render", - value: function render() { - var _this$props$attribute = this.props.attributes, - align = _this$props$attribute.align, - commentsToShow = _this$props$attribute.commentsToShow, - displayAvatar = _this$props$attribute.displayAvatar, - displayDate = _this$props$attribute.displayDate, - displayExcerpt = _this$props$attribute.displayExcerpt; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockAlignmentToolbar"], { - value: align, - onChange: this.setAlignment - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Latest Comments Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display Avatar'), - checked: displayAvatar, - onChange: this.toggleDisplayAvatar - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display Date'), - checked: displayDate, - onChange: this.toggleDisplayDate - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display Excerpt'), - checked: displayExcerpt, - onChange: this.toggleDisplayExcerpt - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Number of Comments'), - value: commentsToShow, - onChange: this.setCommentsToShow, - min: MIN_COMMENTS, - max: MAX_COMMENTS - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ServerSideRender"], { - block: "core/latest-comments", - attributes: this.props.attributes - }))); - } - }]); - - return LatestComments; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var latest_comments_edit = (edit_LatestComments); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var latest_comments_name = 'core/latest-comments'; -var latest_comments_settings = { - title: Object(external_this_wp_i18n_["__"])('Latest Comments'), - description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent comments.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z" - }))), - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('recent comments')], - supports: { - html: false - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var align = attributes.align; // TODO: Use consistent values across the app; - // see: https://github.com/WordPress/gutenberg/issues/7908. - - if (['left', 'center', 'right', 'wide', 'full'].includes(align)) { - return { - 'data-align': align - }; - } - }, - edit: latest_comments_edit, - save: function save() { - return null; - } -}; - -// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(31); -var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); - -// EXTERNAL MODULE: external {"this":["wp","date"]} -var external_this_wp_date_ = __webpack_require__(46); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - - -/** - * Module Constants - */ - -var CATEGORIES_LIST_QUERY = { - per_page: -1 -}; -var MAX_POSTS_COLUMNS = 6; - -var edit_LatestPostsEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(LatestPostsEdit, _Component); - - function LatestPostsEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, LatestPostsEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestPostsEdit).apply(this, arguments)); - _this.state = { - categoriesList: [] - }; - _this.toggleDisplayPostDate = _this.toggleDisplayPostDate.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(LatestPostsEdit, [{ - key: "componentWillMount", - value: function componentWillMount() { - var _this2 = this; - - this.isStillMounted = true; - this.fetchRequest = external_this_wp_apiFetch_default()({ - path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/categories", CATEGORIES_LIST_QUERY) - }).then(function (categoriesList) { - if (_this2.isStillMounted) { - _this2.setState({ - categoriesList: categoriesList - }); - } - }).catch(function () { - if (_this2.isStillMounted) { - _this2.setState({ - categoriesList: [] - }); - } - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.isStillMounted = false; - } - }, { - key: "toggleDisplayPostDate", - value: function toggleDisplayPostDate() { - var displayPostDate = this.props.attributes.displayPostDate; - var setAttributes = this.props.setAttributes; - setAttributes({ - displayPostDate: !displayPostDate - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes, - latestPosts = _this$props.latestPosts; - var categoriesList = this.state.categoriesList; - var displayPostDate = attributes.displayPostDate, - align = attributes.align, - postLayout = attributes.postLayout, - columns = attributes.columns, - order = attributes.order, - orderBy = attributes.orderBy, - categories = attributes.categories, - postsToShow = attributes.postsToShow; - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Latest Posts Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["QueryControls"], Object(esm_extends["a" /* default */])({ - order: order, - orderBy: orderBy - }, { - numberOfItems: postsToShow, - categoriesList: categoriesList, - selectedCategoryId: categories, - onOrderChange: function onOrderChange(value) { - return setAttributes({ - order: value - }); - }, - onOrderByChange: function onOrderByChange(value) { - return setAttributes({ - orderBy: value - }); - }, - onCategoryChange: function onCategoryChange(value) { - return setAttributes({ - categories: '' !== value ? value : undefined - }); - }, - onNumberOfItemsChange: function onNumberOfItemsChange(value) { - return setAttributes({ - postsToShow: value - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display post date'), - checked: displayPostDate, - onChange: this.toggleDisplayPostDate - }), postLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length) - }))); - var hasPosts = Array.isArray(latestPosts) && latestPosts.length; - - if (!hasPosts) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "admin-post", - label: Object(external_this_wp_i18n_["__"])('Latest Posts') - }, !Array.isArray(latestPosts) ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null) : Object(external_this_wp_i18n_["__"])('No posts found.'))); - } // Removing posts from display should be instant. - - - var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts; - var layoutControls = [{ - icon: 'list-view', - title: Object(external_this_wp_i18n_["__"])('List View'), - onClick: function onClick() { - return setAttributes({ - postLayout: 'list' - }); - }, - isActive: postLayout === 'list' - }, { - icon: 'grid-view', - title: Object(external_this_wp_i18n_["__"])('Grid View'), - onClick: function onClick() { - return setAttributes({ - postLayout: 'grid' - }); - }, - isActive: postLayout === 'grid' - }]; - - var dateFormat = Object(external_this_wp_date_["__experimentalGetSettings"])().formats.date; - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockAlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: layoutControls - })), Object(external_this_wp_element_["createElement"])("ul", { - className: classnames_default()(this.props.className, Object(defineProperty["a" /* default */])({ - 'is-grid': postLayout === 'grid', - 'has-dates': displayPostDate - }, "columns-".concat(columns), postLayout === 'grid')) - }, displayPosts.map(function (post, i) { - var titleTrimmed = post.title.rendered.trim(); - return Object(external_this_wp_element_["createElement"])("li", { - key: i - }, Object(external_this_wp_element_["createElement"])("a", { - href: post.link, - target: "_blank" - }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(Untitled)')), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { - dateTime: Object(external_this_wp_date_["format"])('c', post.date_gmt), - className: "wp-block-latest-posts__post-date" - }, Object(external_this_wp_date_["dateI18n"])(dateFormat, post.date_gmt))); - }))); - } - }]); - - return LatestPostsEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var latest_posts_edit = (Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _props$attributes = props.attributes, - postsToShow = _props$attributes.postsToShow, - order = _props$attributes.order, - orderBy = _props$attributes.orderBy, - categories = _props$attributes.categories; - - var _select = select('core'), - getEntityRecords = _select.getEntityRecords; - - var latestPostsQuery = Object(external_lodash_["pickBy"])({ - categories: categories, - order: order, - orderby: orderBy, - per_page: postsToShow - }, function (value) { - return !Object(external_lodash_["isUndefined"])(value); - }); - return { - latestPosts: getEntityRecords('postType', 'post', latestPostsQuery) - }; -})(edit_LatestPostsEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - -var latest_posts_name = 'core/latest-posts'; -var latest_posts_settings = { - title: Object(external_this_wp_i18n_["__"])('Latest Posts'), - description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent posts.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "7", - width: "6", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "11", - width: "6", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "15", - width: "6", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "7", - y: "7", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "7", - y: "11", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "7", - y: "15", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z" - })), - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('recent posts')], - supports: { - html: false - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var align = attributes.align; - - if (['left', 'center', 'right', 'wide', 'full'].includes(align)) { - return { - 'data-align': align - }; - } - }, - edit: latest_posts_edit, - save: function save() { - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/index.js - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -var listContentSchema = Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getPhrasingContentSchema"])(), { - ul: {}, - ol: { - attributes: ['type'] - } -}); // Recursion is needed. -// Possible: ul > li > ul. -// Impossible: ul > ul. - - -['ul', 'ol'].forEach(function (tag) { - listContentSchema[tag].children = { - li: { - children: listContentSchema - } - }; -}); -var list_supports = { - className: false -}; -var list_schema = { - ordered: { - type: 'boolean', - default: false - }, - values: { - type: 'string', - source: 'html', - selector: 'ol,ul', - multiline: 'li', - default: '' - } -}; -var list_name = 'core/list'; -var list_settings = { - title: Object(external_this_wp_i18n_["__"])('List'), - description: Object(external_this_wp_i18n_["__"])('Create a bulleted or numbered list.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z" - }))), - category: 'common', - keywords: [Object(external_this_wp_i18n_["__"])('bullet list'), Object(external_this_wp_i18n_["__"])('ordered list'), Object(external_this_wp_i18n_["__"])('numbered list')], - attributes: list_schema, - supports: list_supports, - transforms: { - from: [{ - type: 'block', - isMultiBlock: true, - blocks: ['core/paragraph'], - transform: function transform(blockAttributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - values: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["join"])(blockAttributes.map(function (_ref) { - var content = _ref.content; - var value = Object(external_this_wp_richText_["create"])({ - html: content - }); - - if (blockAttributes.length > 1) { - return value; - } // When converting only one block, transform - // every line to a list item. - - - return Object(external_this_wp_richText_["replace"])(value, /\n/g, external_this_wp_richText_["LINE_SEPARATOR"]); - }), external_this_wp_richText_["LINE_SEPARATOR"]), - multilineTag: 'li' - }) - }); - } - }, { - type: 'block', - blocks: ['core/quote'], - transform: function transform(_ref2) { - var value = _ref2.value; - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - values: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["create"])({ - html: value, - multilineTag: 'p' - }), - multilineTag: 'li' - }) - }); - } - }, { - type: 'raw', - selector: 'ol,ul', - schema: { - ol: listContentSchema.ol, - ul: listContentSchema.ul - }, - transform: function transform(node) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/list', node.outerHTML), { - ordered: node.nodeName === 'OL' - })); - } - }].concat(Object(toConsumableArray["a" /* default */])(['*', '-'].map(function (prefix) { - return { - type: 'prefix', - prefix: prefix, - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - values: "
  • ".concat(content, "
  • ") - }); - } - }; - })), Object(toConsumableArray["a" /* default */])(['1.', '1)'].map(function (prefix) { - return { - type: 'prefix', - prefix: prefix, - transform: function transform(content) { - return Object(external_this_wp_blocks_["createBlock"])('core/list', { - ordered: true, - values: "
  • ".concat(content, "
  • ") - }); - } - }; - }))), - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(_ref3) { - var values = _ref3.values; - return Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({ - html: values, - multilineTag: 'li', - multilineWrapperTags: ['ul', 'ol'] - }), external_this_wp_richText_["LINE_SEPARATOR"]).map(function (piece) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: Object(external_this_wp_richText_["toHTMLString"])({ - value: piece - }) - }); - }); - } - }, { - type: 'block', - blocks: ['core/quote'], - transform: function transform(_ref4) { - var values = _ref4.values; - return Object(external_this_wp_blocks_["createBlock"])('core/quote', { - value: Object(external_this_wp_richText_["toHTMLString"])({ - value: Object(external_this_wp_richText_["create"])({ - html: values, - multilineTag: 'li', - multilineWrapperTags: ['ul', 'ol'] - }), - multilineTag: 'p' - }) - }); - } - }] - }, - deprecated: [{ - supports: list_supports, - attributes: Object(objectSpread["a" /* default */])({}, Object(external_lodash_["omit"])(list_schema, ['ordered']), { - nodeName: { - type: 'string', - source: 'property', - selector: 'ol,ul', - property: 'nodeName', - default: 'UL' - } - }), - migrate: function migrate(attributes) { - var nodeName = attributes.nodeName, - migratedAttributes = Object(objectWithoutProperties["a" /* default */])(attributes, ["nodeName"]); - - return Object(objectSpread["a" /* default */])({}, migratedAttributes, { - ordered: 'OL' === nodeName - }); - }, - save: function save(_ref5) { - var attributes = _ref5.attributes; - var nodeName = attributes.nodeName, - values = attributes.values; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: nodeName.toLowerCase(), - value: values - }); - } - }], - merge: function merge(attributes, attributesToMerge) { - var values = attributesToMerge.values; - - if (!values || values === '
  • ') { - return attributes; - } - - return Object(objectSpread["a" /* default */])({}, attributes, { - values: attributes.values + values - }); - }, - edit: function edit(_ref6) { - var attributes = _ref6.attributes, - insertBlocksAfter = _ref6.insertBlocksAfter, - setAttributes = _ref6.setAttributes, - mergeBlocks = _ref6.mergeBlocks, - onReplace = _ref6.onReplace, - className = _ref6.className; - var ordered = attributes.ordered, - values = attributes.values; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - identifier: "values", - multiline: "li", - tagName: ordered ? 'ol' : 'ul', - onChange: function onChange(nextValues) { - return setAttributes({ - values: nextValues - }); - }, - value: values, - wrapperClassName: "block-library-list", - className: className, - placeholder: Object(external_this_wp_i18n_["__"])('Write list…'), - onMerge: mergeBlocks, - unstableOnSplit: insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } - - if (!blocks.length) { - blocks.push(Object(external_this_wp_blocks_["createBlock"])('core/paragraph')); - } - - if (after !== '
  • ') { - blocks.push(Object(external_this_wp_blocks_["createBlock"])('core/list', { - ordered: ordered, - values: after - })); - } - - setAttributes({ - values: before - }); - insertBlocksAfter(blocks); - } : undefined, - onRemove: function onRemove() { - return onReplace([]); - }, - onTagNameChange: function onTagNameChange(tag) { - return setAttributes({ - ordered: tag === 'ol' - }); - } - }); - }, - save: function save(_ref7) { - var attributes = _ref7.attributes; - var ordered = attributes.ordered, - values = attributes.values; - var tagName = ordered ? 'ol' : 'ul'; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: tagName, - value: values, - multiline: "li" - }); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/missing/index.js - - -/** - * WordPress dependencies - */ - - - - - - - -function MissingBlockWarning(_ref) { - var attributes = _ref.attributes, - convertToHTML = _ref.convertToHTML; - var originalName = attributes.originalName, - originalUndelimitedContent = attributes.originalUndelimitedContent; - var hasContent = !!originalUndelimitedContent; - var hasHTMLBlock = Object(external_this_wp_blocks_["getBlockType"])('core/html'); - var actions = []; - var messageHTML; - - if (hasContent && hasHTMLBlock) { - messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName); - actions.push(Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "convert", - onClick: convertToHTML, - isLarge: true, - isPrimary: true - }, Object(external_this_wp_i18n_["__"])('Keep as HTML'))); - } else { - messageHTML = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["Warning"], { - actions: actions - }, messageHTML), Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, originalUndelimitedContent)); -} - -var missing_edit = Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var clientId = _ref2.clientId, - attributes = _ref2.attributes; - - var _dispatch = dispatch('core/block-editor'), - replaceBlock = _dispatch.replaceBlock; - - return { - convertToHTML: function convertToHTML() { - replaceBlock(clientId, Object(external_this_wp_blocks_["createBlock"])('core/html', { - content: attributes.originalUndelimitedContent - })); - } - }; -})(MissingBlockWarning); -var missing_name = 'core/missing'; -var missing_settings = { - name: missing_name, - category: 'common', - title: Object(external_this_wp_i18n_["__"])('Unrecognized Block'), - description: Object(external_this_wp_i18n_["__"])('Your site doesn’t include support for this block.'), - supports: { - className: false, - customClassName: false, - inserter: false, - html: false, - reusable: false - }, - attributes: { - originalName: { - type: 'string' - }, - originalUndelimitedContent: { - type: 'string' - }, - originalContent: { - type: 'string', - source: 'html' - } - }, - edit: missing_edit, - save: function save(_ref3) { - var attributes = _ref3.attributes; - // Preserve the missing block's content. - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.originalContent); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/edit.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - - -var edit_MoreEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MoreEdit, _Component); - - function MoreEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MoreEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MoreEdit).apply(this, arguments)); - _this.onChangeInput = _this.onChangeInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - defaultText: Object(external_this_wp_i18n_["__"])('Read more') - }; - return _this; - } - - Object(createClass["a" /* default */])(MoreEdit, [{ - key: "onChangeInput", - value: function onChangeInput(event) { - // Set defaultText to an empty string, allowing the user to clear/replace the input field's text - this.setState({ - defaultText: '' - }); - var value = event.target.value.length === 0 ? undefined : event.target.value; - this.props.setAttributes({ - customText: value - }); - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var keyCode = event.keyCode; - var insertBlocksAfter = this.props.insertBlocksAfter; - - if (keyCode === external_this_wp_keycodes_["ENTER"]) { - insertBlocksAfter([Object(external_this_wp_blocks_["createBlock"])(Object(external_this_wp_blocks_["getDefaultBlockName"])())]); - } - } - }, { - key: "getHideExcerptHelp", - value: function getHideExcerptHelp(checked) { - return checked ? Object(external_this_wp_i18n_["__"])('The excerpt is hidden.') : Object(external_this_wp_i18n_["__"])('The excerpt is visible.'); - } - }, { - key: "render", - value: function render() { - var _this$props$attribute = this.props.attributes, - customText = _this$props$attribute.customText, - noTeaser = _this$props$attribute.noTeaser; - var setAttributes = this.props.setAttributes; - - var toggleHideExcerpt = function toggleHideExcerpt() { - return setAttributes({ - noTeaser: !noTeaser - }); - }; - - var defaultText = this.state.defaultText; - var value = customText !== undefined ? customText : defaultText; - var inputLength = value.length + 1; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Hide the excerpt on the full content page'), - checked: !!noTeaser, - onChange: toggleHideExcerpt, - help: this.getHideExcerptHelp - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-more" - }, Object(external_this_wp_element_["createElement"])("input", { - type: "text", - value: value, - size: inputLength, - onChange: this.onChangeInput, - onKeyDown: this.onKeyDown - }))); - } - }]); - - return MoreEdit; -}(external_this_wp_element_["Component"]); - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var more_name = 'core/more'; -var more_settings = { - title: Object(external_this_wp_i18n_["_x"])('More', 'block name'), - description: Object(external_this_wp_i18n_["__"])('Content before this block will be shown in the excerpt on your archives page.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z" - }))), - category: 'layout', - supports: { - customClassName: false, - className: false, - html: false, - multiple: false - }, - attributes: { - customText: { - type: 'string' - }, - noTeaser: { - type: 'boolean', - default: false - } - }, - transforms: { - from: [{ - type: 'raw', - schema: { - 'wp-block': { - attributes: ['data-block'] - } - }, - isMatch: function isMatch(node) { - return node.dataset && node.dataset.block === 'core/more'; - }, - transform: function transform(node) { - var _node$dataset = node.dataset, - customText = _node$dataset.customText, - noTeaser = _node$dataset.noTeaser; - var attrs = {}; // Don't copy unless defined and not an empty string - - if (customText) { - attrs.customText = customText; - } // Special handling for boolean - - - if (noTeaser === '') { - attrs.noTeaser = true; - } - - return Object(external_this_wp_blocks_["createBlock"])('core/more', attrs); - } - }] - }, - edit: edit_MoreEdit, - save: function save(_ref) { - var attributes = _ref.attributes; - var customText = attributes.customText, - noTeaser = attributes.noTeaser; - var moreTag = customText ? "") : ''; - var noTeaserTag = noTeaser ? '' : ''; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, Object(external_lodash_["compact"])([moreTag, noTeaserTag]).join('\n')); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/edit.js - - -/** - * WordPress dependencies - */ - -function NextPageEdit() { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-nextpage" - }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Page break'))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -var nextpage_name = 'core/nextpage'; -var nextpage_settings = { - title: Object(external_this_wp_i18n_["__"])('Page Break'), - description: Object(external_this_wp_i18n_["__"])('Separate your content into a multi-page experience.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z" - }))), - category: 'layout', - keywords: [Object(external_this_wp_i18n_["__"])('next page'), Object(external_this_wp_i18n_["__"])('pagination')], - supports: { - customClassName: false, - className: false, - html: false - }, - attributes: {}, - transforms: { - from: [{ - type: 'raw', - schema: { - 'wp-block': { - attributes: ['data-block'] - } - }, - isMatch: function isMatch(node) { - return node.dataset && node.dataset.block === 'core/nextpage'; - }, - transform: function transform() { - return Object(external_this_wp_blocks_["createBlock"])('core/nextpage', {}); - } - }] - }, - edit: NextPageEdit, - save: function save() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, ''); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/preformatted/index.js - - -/** - * WordPress dependencies - */ - - - - -var preformatted_name = 'core/preformatted'; -var preformatted_settings = { - title: Object(external_this_wp_i18n_["__"])('Preformatted'), - description: Object(external_this_wp_i18n_["__"])('Add text that respects your spacing and tabs, and also allows styling.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "6", - y: "10", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "6", - y: "14", - width: "8", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "16", - y: "14", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "10", - y: "10", - width: "8", - height: "2" - })), - category: 'formatting', - attributes: { - content: { - type: 'string', - source: 'html', - selector: 'pre', - default: '' - } - }, - transforms: { - from: [{ - type: 'block', - blocks: ['core/code', 'core/paragraph'], - transform: function transform(_ref) { - var content = _ref.content; - return Object(external_this_wp_blocks_["createBlock"])('core/preformatted', { - content: content - }); - } - }, { - type: 'raw', - isMatch: function isMatch(node) { - return node.nodeName === 'PRE' && !(node.children.length === 1 && node.firstChild.nodeName === 'CODE'); - }, - schema: { - pre: { - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - }], - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); - } - }] - }, - edit: function edit(_ref2) { - var attributes = _ref2.attributes, - mergeBlocks = _ref2.mergeBlocks, - setAttributes = _ref2.setAttributes, - className = _ref2.className; - var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "pre", - value: content.replace(/\n/g, '
    '), - onChange: function onChange(nextContent) { - setAttributes({ - content: nextContent - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write preformatted text…'), - wrapperClassName: className, - onMerge: mergeBlocks - }); - }, - save: function save(_ref3) { - var attributes = _ref3.attributes; - var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "pre", - value: content - }); - }, - merge: function merge(attributes, attributesToMerge) { - return { - content: attributes.content + attributesToMerge.content - }; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - -var SOLID_COLOR_STYLE_NAME = 'solid-color'; -var SOLID_COLOR_CLASS = "is-style-".concat(SOLID_COLOR_STYLE_NAME); - -var edit_PullQuoteEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(PullQuoteEdit, _Component); - - function PullQuoteEdit(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, PullQuoteEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PullQuoteEdit).call(this, props)); - _this.wasTextColorAutomaticallyComputed = false; - _this.pullQuoteMainColorSetter = _this.pullQuoteMainColorSetter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.pullQuoteTextColorSetter = _this.pullQuoteTextColorSetter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(PullQuoteEdit, [{ - key: "pullQuoteMainColorSetter", - value: function pullQuoteMainColorSetter(colorValue) { - var _this$props = this.props, - colorUtils = _this$props.colorUtils, - textColor = _this$props.textColor, - setTextColor = _this$props.setTextColor, - setMainColor = _this$props.setMainColor, - className = _this$props.className; - var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var needTextColor = !textColor.color || this.wasTextColorAutomaticallyComputed; - var shouldSetTextColor = isSolidColorStyle && needTextColor && colorValue; - setMainColor(colorValue); - - if (shouldSetTextColor) { - this.wasTextColorAutomaticallyComputed = true; - setTextColor(colorUtils.getMostReadableColor(colorValue)); - } - } - }, { - key: "pullQuoteTextColorSetter", - value: function pullQuoteTextColorSetter(colorValue) { - var setTextColor = this.props.setTextColor; - setTextColor(colorValue); - this.wasTextColorAutomaticallyComputed = false; - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - mainColor = _this$props2.mainColor, - textColor = _this$props2.textColor, - setAttributes = _this$props2.setAttributes, - isSelected = _this$props2.isSelected, - className = _this$props2.className; - var value = attributes.value, - citation = attributes.citation; - var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var figureStyle = isSolidColorStyle ? { - backgroundColor: mainColor.color - } : { - borderColor: mainColor.color - }; - var blockquoteStyle = { - color: textColor.color - }; - var blockquoteClasses = textColor.color ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)) : undefined; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("figure", { - style: figureStyle, - className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, mainColor.class, isSolidColorStyle && mainColor.class)) - }, Object(external_this_wp_element_["createElement"])("blockquote", { - style: blockquoteStyle, - className: blockquoteClasses - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - multiline: true, - value: value, - onChange: function onChange(nextValue) { - return setAttributes({ - value: nextValue - }); - }, - placeholder: // translators: placeholder text used for the quote - Object(external_this_wp_i18n_["__"])('Write quote…'), - wrapperClassName: "block-library-pullquote__content" - }), (!external_this_wp_editor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - value: citation, - placeholder: // translators: placeholder text used for the citation - Object(external_this_wp_i18n_["__"])('Write citation…'), - onChange: function onChange(nextCitation) { - return setAttributes({ - citation: nextCitation - }); - }, - className: "wp-block-pullquote__citation" - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - colorSettings: [{ - value: mainColor.color, - onChange: this.pullQuoteMainColorSetter, - label: Object(external_this_wp_i18n_["__"])('Main Color') - }, { - value: textColor.color, - onChange: this.pullQuoteTextColorSetter, - label: Object(external_this_wp_i18n_["__"])('Text Color') - }] - }, isSolidColorStyle && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ - textColor: textColor.color, - backgroundColor: mainColor.color - }, { - isLargeText: false - }))))); - } - }]); - - return PullQuoteEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var pullquote_edit = (Object(external_this_wp_editor_["withColors"])({ - mainColor: 'background-color', - textColor: 'color' -})(edit_PullQuoteEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/index.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var pullquote_blockAttributes = { - 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' - } -}; -var pullquote_name = 'core/pullquote'; -var pullquote_settings = { - title: Object(external_this_wp_i18n_["__"])('Pullquote'), - description: Object(external_this_wp_i18n_["__"])('Give special visual emphasis to a quote from your text.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "21 18 2 18 2 20 21 20" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "21 4 2 4 2 6 21 6" - })), - category: 'formatting', - attributes: pullquote_blockAttributes, - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: SOLID_COLOR_STYLE_NAME, - label: Object(external_this_wp_i18n_["__"])('Solid Color') - }], - supports: { - align: ['left', 'right', 'wide', 'full'] - }, - edit: pullquote_edit, - save: function save(_ref) { - var attributes = _ref.attributes; - var mainColor = attributes.mainColor, - customMainColor = attributes.customMainColor, - textColor = attributes.textColor, - customTextColor = attributes.customTextColor, - value = attributes.value, - citation = attributes.citation, - className = attributes.className; - var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); - var figureClass, figureStyles; // Is solid color style - - if (isSolidColorStyle) { - figureClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', mainColor); - - if (!figureClass) { - figureStyles = { - backgroundColor: customMainColor - }; - } // Is normal style and a custom color is being used ( we can set a style directly with its value) - - } else if (customMainColor) { - figureStyles = { - borderColor: customMainColor - }; // Is normal style and a named color is being used, we need to retrieve the color value to set the style, - // as there is no expectation that themes create classes that set border colors. - } else if (mainColor) { - var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []); - var colorObject = Object(external_this_wp_editor_["getColorObjectByAttributeValues"])(colors, mainColor); - figureStyles = { - borderColor: colorObject.color - }; - } - - var blockquoteTextColorClass = Object(external_this_wp_editor_["getColorClassName"])('color', textColor); - var blockquoteClasses = textColor || customTextColor ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)) : undefined; - var blockquoteStyle = blockquoteTextColorClass ? undefined : { - color: customTextColor - }; - return Object(external_this_wp_element_["createElement"])("figure", { - className: figureClass, - style: figureStyles - }, Object(external_this_wp_element_["createElement"])("blockquote", { - className: blockquoteClasses, - style: blockquoteStyle - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - value: value, - multiline: true - }), !external_this_wp_editor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "cite", - value: citation - }))); - }, - deprecated: [{ - attributes: Object(objectSpread["a" /* default */])({}, pullquote_blockAttributes), - save: function save(_ref2) { - var attributes = _ref2.attributes; - var value = attributes.value, - citation = attributes.citation; - return Object(external_this_wp_element_["createElement"])("blockquote", null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - value: value, - multiline: true - }), !external_this_wp_editor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "cite", - value: citation - })); - } - }, { - attributes: Object(objectSpread["a" /* default */])({}, pullquote_blockAttributes, { - citation: { - type: 'string', - source: 'html', - selector: 'footer' - }, - align: { - type: 'string', - default: 'none' - } - }), - save: function save(_ref3) { - var attributes = _ref3.attributes; - var value = attributes.value, - citation = attributes.citation, - align = attributes.align; - return Object(external_this_wp_element_["createElement"])("blockquote", { - className: "align".concat(align) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - value: value, - multiline: true - }), !external_this_wp_editor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "footer", - value: citation - })); - } - }] -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -var edit_panel_ReusableBlockEditPanel = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ReusableBlockEditPanel, _Component); - - function ReusableBlockEditPanel() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ReusableBlockEditPanel); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEditPanel).apply(this, arguments)); - _this.titleField = Object(external_this_wp_element_["createRef"])(); - _this.editButton = Object(external_this_wp_element_["createRef"])(); - _this.handleFormSubmit = _this.handleFormSubmit.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.handleTitleChange = _this.handleTitleChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.handleTitleKeyDown = _this.handleTitleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(ReusableBlockEditPanel, [{ - key: "componentDidMount", - value: function componentDidMount() { - // Select the input text when the form opens. - if (this.props.isEditing && this.titleField.current) { - this.titleField.current.select(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - // Select the input text only once when the form opens. - if (!prevProps.isEditing && this.props.isEditing) { - this.titleField.current.select(); - } // Move focus back to the Edit button after pressing the Escape key or Save. - - - if ((prevProps.isEditing || prevProps.isSaving) && !this.props.isEditing && !this.props.isSaving) { - this.editButton.current.focus(); - } - } - }, { - key: "handleFormSubmit", - value: function handleFormSubmit(event) { - event.preventDefault(); - this.props.onSave(); - } - }, { - key: "handleTitleChange", - value: function handleTitleChange(event) { - this.props.onChangeTitle(event.target.value); - } - }, { - key: "handleTitleKeyDown", - value: function handleTitleKeyDown(event) { - if (event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { - event.stopPropagation(); - this.props.onCancel(); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - isEditing = _this$props.isEditing, - title = _this$props.title, - isSaving = _this$props.isSaving, - isEditDisabled = _this$props.isEditDisabled, - onEdit = _this$props.onEdit, - instanceId = _this$props.instanceId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isEditing && !isSaving && Object(external_this_wp_element_["createElement"])("div", { - className: "reusable-block-edit-panel" - }, Object(external_this_wp_element_["createElement"])("b", { - className: "reusable-block-edit-panel__info" - }, title), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - ref: this.editButton, - isLarge: true, - className: "reusable-block-edit-panel__button", - disabled: isEditDisabled, - onClick: onEdit - }, Object(external_this_wp_i18n_["__"])('Edit'))), (isEditing || isSaving) && Object(external_this_wp_element_["createElement"])("form", { - className: "reusable-block-edit-panel", - onSubmit: this.handleFormSubmit - }, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: "reusable-block-edit-panel__title-".concat(instanceId), - className: "reusable-block-edit-panel__label" - }, Object(external_this_wp_i18n_["__"])('Name:')), Object(external_this_wp_element_["createElement"])("input", { - ref: this.titleField, - type: "text", - disabled: isSaving, - className: "reusable-block-edit-panel__title", - value: title, - onChange: this.handleTitleChange, - onKeyDown: this.handleTitleKeyDown, - id: "reusable-block-edit-panel__title-".concat(instanceId) - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - type: "submit", - isLarge: true, - isBusy: isSaving, - disabled: !title || isSaving, - className: "reusable-block-edit-panel__button" - }, Object(external_this_wp_i18n_["__"])('Save')))); - } - }]); - - return ReusableBlockEditPanel; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var edit_panel = (Object(external_this_wp_compose_["withInstanceId"])(edit_panel_ReusableBlockEditPanel)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/indicator/index.js - - -/** - * WordPress dependencies - */ - - - -function ReusableBlockIndicator(_ref) { - var title = _ref.title; - // translators: %s: title/name of the reusable block - var tooltipText = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Reusable Block: %s'), title); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tooltip"], { - text: tooltipText - }, Object(external_this_wp_element_["createElement"])("span", { - className: "reusable-block-indicator" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { - icon: "controls-repeat" - }))); -} - -/* harmony default export */ var indicator = (ReusableBlockIndicator); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit.js - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - - -var edit_ReusableBlockEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ReusableBlockEdit, _Component); - - function ReusableBlockEdit(_ref) { - var _this; - - var reusableBlock = _ref.reusableBlock; - - Object(classCallCheck["a" /* default */])(this, ReusableBlockEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEdit).apply(this, arguments)); - _this.startEditing = _this.startEditing.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.stopEditing = _this.stopEditing.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setTitle = _this.setTitle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.save = _this.save.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - - if (reusableBlock && reusableBlock.isTemporary) { - // Start in edit mode when we're working with a newly created reusable block - _this.state = { - isEditing: true, - title: reusableBlock.title, - changedAttributes: {} - }; - } else { - // Start in preview mode when we're working with an existing reusable block - _this.state = { - isEditing: false, - title: null, - changedAttributes: null - }; - } - - return _this; - } - - Object(createClass["a" /* default */])(ReusableBlockEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (!this.props.reusableBlock) { - this.props.fetchReusableBlock(); - } - } - }, { - key: "startEditing", - value: function startEditing() { - var reusableBlock = this.props.reusableBlock; - this.setState({ - isEditing: true, - title: reusableBlock.title, - changedAttributes: {} - }); - } - }, { - key: "stopEditing", - value: function stopEditing() { - this.setState({ - isEditing: false, - title: null, - changedAttributes: null - }); - } - }, { - key: "setAttributes", - value: function setAttributes(attributes) { - this.setState(function (prevState) { - if (prevState.changedAttributes !== null) { - return { - changedAttributes: Object(objectSpread["a" /* default */])({}, prevState.changedAttributes, attributes) - }; - } - }); - } - }, { - key: "setTitle", - value: function setTitle(title) { - this.setState({ - title: title - }); - } - }, { - key: "save", - value: function save() { - var _this$props = this.props, - reusableBlock = _this$props.reusableBlock, - onUpdateTitle = _this$props.onUpdateTitle, - updateAttributes = _this$props.updateAttributes, - block = _this$props.block, - onSave = _this$props.onSave; - var _this$state = this.state, - title = _this$state.title, - changedAttributes = _this$state.changedAttributes; - - if (title !== reusableBlock.title) { - onUpdateTitle(title); - } - - updateAttributes(block.clientId, changedAttributes); - onSave(); - this.stopEditing(); - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - isSelected = _this$props2.isSelected, - reusableBlock = _this$props2.reusableBlock, - block = _this$props2.block, - isFetching = _this$props2.isFetching, - isSaving = _this$props2.isSaving, - canUpdateBlock = _this$props2.canUpdateBlock; - var _this$state2 = this.state, - isEditing = _this$state2.isEditing, - title = _this$state2.title, - changedAttributes = _this$state2.changedAttributes; - - if (!reusableBlock && isFetching) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)); - } - - if (!reusableBlock || !block) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_i18n_["__"])('Block has been deleted or is unavailable.')); - } - - var element = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockEdit"], Object(esm_extends["a" /* default */])({}, this.props, { - isSelected: isEditing && isSelected, - clientId: block.clientId, - name: block.name, - attributes: Object(objectSpread["a" /* default */])({}, block.attributes, changedAttributes), - setAttributes: isEditing ? this.setAttributes : external_lodash_["noop"] - })); - - if (!isEditing) { - element = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, element); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(edit_panel, { - isEditing: isEditing, - title: title !== null ? title : reusableBlock.title, - isSaving: isSaving && !reusableBlock.isTemporary, - isEditDisabled: !canUpdateBlock, - onEdit: this.startEditing, - onChangeTitle: this.setTitle, - onSave: this.save, - onCancel: this.stopEditing - }), !isSelected && !isEditing && Object(external_this_wp_element_["createElement"])(indicator, { - title: reusableBlock.title - }), element); - } - }]); - - return ReusableBlockEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/editor'), - getReusableBlock = _select.__experimentalGetReusableBlock, - isFetchingReusableBlock = _select.__experimentalIsFetchingReusableBlock, - isSavingReusableBlock = _select.__experimentalIsSavingReusableBlock; - - var _select2 = select('core'), - canUser = _select2.canUser; - - var _select3 = select('core/block-editor'), - getBlock = _select3.getBlock; - - var ref = ownProps.attributes.ref; - var reusableBlock = getReusableBlock(ref); - return { - reusableBlock: reusableBlock, - isFetching: isFetchingReusableBlock(ref), - isSaving: isSavingReusableBlock(ref), - block: reusableBlock ? getBlock(reusableBlock.clientId) : null, - canUpdateBlock: !!reusableBlock && !reusableBlock.isTemporary && !!canUser('update', 'blocks', ref) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/editor'), - fetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks, - updateReusableBlockTitle = _dispatch.__experimentalUpdateReusableBlockTitle, - saveReusableBlock = _dispatch.__experimentalSaveReusableBlock; - - var _dispatch2 = dispatch('core/block-editor'), - updateBlockAttributes = _dispatch2.updateBlockAttributes; - - var ref = ownProps.attributes.ref; - return { - fetchReusableBlock: Object(external_lodash_["partial"])(fetchReusableBlocks, ref), - updateAttributes: updateBlockAttributes, - onUpdateTitle: Object(external_lodash_["partial"])(updateReusableBlockTitle, ref), - onSave: Object(external_lodash_["partial"])(saveReusableBlock, ref) - }; -})])(edit_ReusableBlockEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var block_name = 'core/block'; -var block_settings = { - title: Object(external_this_wp_i18n_["__"])('Reusable Block'), - category: 'reusable', - description: Object(external_this_wp_i18n_["__"])('Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used.'), - attributes: { - ref: { - type: 'number' - } - }, - supports: { - customClassName: false, - html: false, - inserter: false - }, - edit: block_edit, - save: function save() { - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - - -var DEFAULT_MIN_ITEMS = 1; -var DEFAULT_MAX_ITEMS = 10; - -var edit_RSSEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(RSSEdit, _Component); - - function RSSEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, RSSEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RSSEdit).apply(this, arguments)); - _this.state = { - editing: !_this.props.attributes.feedURL - }; - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSubmitURL = _this.onSubmitURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(RSSEdit, [{ - key: "toggleAttribute", - value: function toggleAttribute(propName) { - var _this2 = this; - - return function () { - var value = _this2.props.attributes[propName]; - var setAttributes = _this2.props.setAttributes; - setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); - }; - } - }, { - key: "onSubmitURL", - value: function onSubmitURL(event) { - event.preventDefault(); - var feedURL = this.props.attributes.feedURL; - - if (feedURL) { - this.setState({ - editing: false - }); - } - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props$attribute = this.props.attributes, - blockLayout = _this$props$attribute.blockLayout, - columns = _this$props$attribute.columns, - displayAuthor = _this$props$attribute.displayAuthor, - displayExcerpt = _this$props$attribute.displayExcerpt, - displayDate = _this$props$attribute.displayDate, - excerptLength = _this$props$attribute.excerptLength, - feedURL = _this$props$attribute.feedURL, - itemsToShow = _this$props$attribute.itemsToShow; - var setAttributes = this.props.setAttributes; - - if (this.state.editing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: "rss", - label: "RSS" - }, Object(external_this_wp_element_["createElement"])("form", { - onSubmit: this.onSubmitURL - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - placeholder: Object(external_this_wp_i18n_["__"])('Enter URL here…'), - value: feedURL, - onChange: function onChange(value) { - return setAttributes({ - feedURL: value - }); - }, - className: 'components-placeholder__input' - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - type: "submit" - }, Object(external_this_wp_i18n_["__"])('Use URL')))); - } - - var toolbarControls = [{ - icon: 'edit', - title: Object(external_this_wp_i18n_["__"])('Edit RSS URL'), - onClick: function onClick() { - return _this3.setState({ - editing: true - }); - } - }, { - icon: 'list-view', - title: Object(external_this_wp_i18n_["__"])('List View'), - onClick: function onClick() { - return setAttributes({ - blockLayout: 'list' - }); - }, - isActive: blockLayout === 'list' - }, { - icon: 'grid-view', - title: Object(external_this_wp_i18n_["__"])('Grid View'), - onClick: function onClick() { - return setAttributes({ - blockLayout: 'grid' - }); - }, - isActive: blockLayout === 'grid' - }]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: toolbarControls - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('RSS Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Number of items'), - value: itemsToShow, - onChange: function onChange(value) { - return setAttributes({ - itemsToShow: value - }); - }, - min: DEFAULT_MIN_ITEMS, - max: DEFAULT_MAX_ITEMS - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display author'), - checked: displayAuthor, - onChange: this.toggleAttribute('displayAuthor') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display date'), - checked: displayDate, - onChange: this.toggleAttribute('displayDate') - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Display excerpt'), - checked: displayExcerpt, - onChange: this.toggleAttribute('displayExcerpt') - }), displayExcerpt && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), - value: excerptLength, - onChange: function onChange(value) { - return setAttributes({ - excerptLength: value - }); - }, - min: 10, - max: 100 - }), blockLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: 6 - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ServerSideRender"], { - block: "core/rss", - attributes: this.props.attributes - }))); - } - }]); - - return RSSEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var rss_edit = (edit_RSSEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var rss_name = 'core/rss'; -var rss_settings = { - title: Object(external_this_wp_i18n_["__"])('RSS'), - description: Object(external_this_wp_i18n_["__"])('Display entries from any RSS or Atom feed.'), - icon: 'rss', - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('atom'), Object(external_this_wp_i18n_["__"])('feed')], - supports: { - html: false - }, - edit: rss_edit, - save: function save() { - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js - - -/** - * WordPress dependencies - */ - - -function SearchEdit(_ref) { - var className = _ref.className, - attributes = _ref.attributes, - setAttributes = _ref.setAttributes; - var label = attributes.label, - placeholder = attributes.placeholder, - buttonText = attributes.buttonText; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - wrapperClassName: "wp-block-search__label", - "aria-label": Object(external_this_wp_i18n_["__"])('Label text'), - placeholder: Object(external_this_wp_i18n_["__"])('Add label…'), - keepPlaceholderOnFocus: true, - formattingControls: [], - value: label, - onChange: function onChange(html) { - return setAttributes({ - label: html - }); - } - }), Object(external_this_wp_element_["createElement"])("input", { - className: "wp-block-search__input", - "aria-label": Object(external_this_wp_i18n_["__"])('Optional placeholder text') // We hide the placeholder field's placeholder when there is a value. This - // stops screen readers from reading the placeholder field's placeholder - // which is confusing. - , - placeholder: placeholder ? undefined : Object(external_this_wp_i18n_["__"])('Optional placeholder…'), - value: placeholder, - onChange: function onChange(event) { - return setAttributes({ - placeholder: event.target.value - }); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - wrapperClassName: "wp-block-search__button", - className: "wp-block-search__button-rich-text", - "aria-label": Object(external_this_wp_i18n_["__"])('Button text'), - placeholder: Object(external_this_wp_i18n_["__"])('Add button text…'), - keepPlaceholderOnFocus: true, - formattingControls: [], - value: buttonText, - onChange: function onChange(html) { - return setAttributes({ - buttonText: html - }); - } - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var search_name = 'core/search'; -var search_settings = { - title: Object(external_this_wp_i18n_["__"])('Search'), - description: Object(external_this_wp_i18n_["__"])('Help visitors find your content.'), - icon: 'search', - category: 'widgets', - keywords: [Object(external_this_wp_i18n_["__"])('find')], - edit: SearchEdit, - save: function save() { - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/separator/index.js - - -/** - * WordPress dependencies - */ - - - -var separator_name = 'core/separator'; -var separator_settings = { - title: Object(external_this_wp_i18n_["__"])('Separator'), - description: Object(external_this_wp_i18n_["__"])('Create a break between ideas or sections with a horizontal separator.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 13H5v-2h14v2z" - })), - category: 'layout', - keywords: [Object(external_this_wp_i18n_["__"])('horizontal-line'), 'hr', Object(external_this_wp_i18n_["__"])('divider')], - styles: [{ - name: 'default', - label: Object(external_this_wp_i18n_["__"])('Default'), - isDefault: true - }, { - name: 'wide', - label: Object(external_this_wp_i18n_["__"])('Wide Line') - }, { - name: 'dots', - label: Object(external_this_wp_i18n_["__"])('Dots') - }], - transforms: { - from: [{ - type: 'enter', - regExp: /^-{3,}$/, - transform: function transform() { - return Object(external_this_wp_blocks_["createBlock"])('core/separator'); - } - }, { - type: 'raw', - selector: 'hr', - schema: { - hr: {} - } - }] - }, - edit: function edit(_ref) { - var className = _ref.className; - return Object(external_this_wp_element_["createElement"])("hr", { - className: className - }); - }, - save: function save() { - return Object(external_this_wp_element_["createElement"])("hr", null); - } -}; - -// EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(60); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/index.js - - -/** - * WordPress dependencies - */ - - - - - - -var shortcode_name = 'core/shortcode'; -var shortcode_settings = { - title: Object(external_this_wp_i18n_["__"])('Shortcode'), - description: Object(external_this_wp_i18n_["__"])('Insert additional custom elements with a WordPress shortcode.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z" - })), - category: 'widgets', - attributes: { - text: { - type: 'string', - source: 'html' - } - }, - transforms: { - from: [{ - type: 'shortcode', - // Per "Shortcode names should be all lowercase and use all - // letters, but numbers and underscores should work fine too. - // Be wary of using hyphens (dashes), you'll be better off not - // using them." in https://codex.wordpress.org/Shortcode_API - // Require that the first character be a letter. This notably - // prevents footnote markings ([1]) from being caught as - // shortcodes. - tag: '[a-z][a-z0-9_-]*', - attributes: { - text: { - type: 'string', - shortcode: function shortcode(attrs, _ref) { - var content = _ref.content; - return Object(external_this_wp_autop_["removep"])(Object(external_this_wp_autop_["autop"])(content)); - } - } - }, - priority: 20 - }] - }, - supports: { - customClassName: false, - className: false, - html: false - }, - edit: Object(external_this_wp_compose_["withInstanceId"])(function (_ref2) { - var attributes = _ref2.attributes, - setAttributes = _ref2.setAttributes, - instanceId = _ref2.instanceId; - var inputId = "blocks-shortcode-input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-shortcode" - }, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: inputId - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { - icon: "shortcode" - }), Object(external_this_wp_i18n_["__"])('Shortcode')), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PlainText"], { - className: "input-control", - id: inputId, - value: attributes.text, - placeholder: Object(external_this_wp_i18n_["__"])('Write shortcode here…'), - onChange: function onChange(text) { - return setAttributes({ - text: text - }); - } - })); - }), - save: function save(_ref3) { - var attributes = _ref3.attributes; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.text); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/spacer/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -var spacer_name = 'core/spacer'; -var spacer_settings = { - title: Object(external_this_wp_i18n_["__"])('Spacer'), - description: Object(external_this_wp_i18n_["__"])('Add white space between blocks and customize its height.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7" - }))), - category: 'layout', - attributes: { - height: { - type: 'number', - default: 100 - } - }, - edit: Object(external_this_wp_compose_["withInstanceId"])(function (_ref) { - var attributes = _ref.attributes, - isSelected = _ref.isSelected, - setAttributes = _ref.setAttributes, - toggleSelection = _ref.toggleSelection, - instanceId = _ref.instanceId; - var height = attributes.height; - var id = "block-spacer-height-input-".concat(instanceId); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { - className: classnames_default()('block-library-spacer__resize-container', { - 'is-selected': isSelected - }), - size: { - height: height - }, - minHeight: "20", - enable: { - top: false, - right: false, - bottom: true, - left: false, - topRight: false, - bottomRight: false, - bottomLeft: false, - topLeft: false - }, - onResizeStop: function onResizeStop(event, direction, elt, delta) { - setAttributes({ - height: parseInt(height + delta.height, 10) - }); - toggleSelection(true); - }, - onResizeStart: function onResizeStart() { - toggleSelection(false); - } - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Spacer Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - label: Object(external_this_wp_i18n_["__"])('Height in pixels'), - id: id - }, Object(external_this_wp_element_["createElement"])("input", { - type: "number", - id: id, - onChange: function onChange(event) { - setAttributes({ - height: parseInt(event.target.value, 10) - }); - }, - value: height, - min: "20", - step: "10" - }))))); - }), - save: function save(_ref2) { - var attributes = _ref2.attributes; - return Object(external_this_wp_element_["createElement"])("div", { - style: { - height: attributes.height - }, - "aria-hidden": true - }); - } -}; - -// EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(49); -var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/subhead/index.js - - -/** - * WordPress dependencies - */ - - - - - - -var subhead_name = 'core/subhead'; -var subhead_settings = { - title: Object(external_this_wp_i18n_["__"])('Subheading (deprecated)'), - description: Object(external_this_wp_i18n_["__"])('This block is deprecated. Please use the Paragraph block instead.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z" - })), - category: 'common', - supports: { - // Hide from inserter as this block is deprecated. - inserter: false, - multiple: false - }, - attributes: { - content: { - type: 'string', - source: 'html', - selector: 'p' - }, - align: { - type: 'string' - } - }, - transforms: { - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); - } - }] - }, - edit: function edit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className; - var align = attributes.align, - content = attributes.content, - placeholder = attributes.placeholder; - external_this_wp_deprecated_default()('The Subheading block', { - alternative: 'the Paragraph block', - plugin: 'Gutenberg' - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AlignmentToolbar"], { - value: align, - onChange: function onChange(nextAlign) { - setAttributes({ - align: nextAlign - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "p", - value: content, - onChange: function onChange(nextContent) { - setAttributes({ - content: nextContent - }); - }, - style: { - textAlign: align - }, - className: className, - placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write subheading…') - })); - }, - save: function save(_ref2) { - var attributes = _ref2.attributes; - var align = attributes.align, - content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "p", - style: { - textAlign: align - }, - value: content - }); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/state.js - - - - -/** - * External dependencies - */ - -/** - * Creates a table state. - * - * @param {number} options.rowCount Row count for the table to create. - * @param {number} options.columnCount Column count for the table to create. - * - * @return {Object} New table state. - */ - -function createTable(_ref) { - var rowCount = _ref.rowCount, - columnCount = _ref.columnCount; - return { - body: Object(external_lodash_["times"])(rowCount, function () { - return { - cells: Object(external_lodash_["times"])(columnCount, function () { - return { - content: '', - tag: 'td' - }; - }) - }; - }) - }; -} -/** - * Updates cell content in the table state. - * - * @param {Object} state Current table state. - * @param {string} options.section Section of the cell to update. - * @param {number} options.rowIndex Row index of the cell to update. - * @param {number} options.columnIndex Column index of the cell to update. - * @param {Array} options.content Content to set for the cell. - * - * @return {Object} New table state. - */ - -function updateCellContent(state, _ref2) { - var section = _ref2.section, - rowIndex = _ref2.rowIndex, - columnIndex = _ref2.columnIndex, - content = _ref2.content; - return Object(defineProperty["a" /* default */])({}, section, state[section].map(function (row, currentRowIndex) { - if (currentRowIndex !== rowIndex) { - return row; - } - - return { - cells: row.cells.map(function (cell, currentColumnIndex) { - if (currentColumnIndex !== columnIndex) { - return cell; - } - - return Object(objectSpread["a" /* default */])({}, cell, { - content: content - }); - }) - }; - })); -} -/** - * Inserts a row in the table state. - * - * @param {Object} state Current table state. - * @param {string} options.section Section in which to insert the row. - * @param {number} options.rowIndex Row index at which to insert the row. - * - * @return {Object} New table state. - */ - -function insertRow(state, _ref4) { - var section = _ref4.section, - rowIndex = _ref4.rowIndex; - var cellCount = state[section][0].cells.length; - return Object(defineProperty["a" /* default */])({}, section, [].concat(Object(toConsumableArray["a" /* default */])(state[section].slice(0, rowIndex)), [{ - cells: Object(external_lodash_["times"])(cellCount, function () { - return { - content: '', - tag: 'td' - }; - }) - }], Object(toConsumableArray["a" /* default */])(state[section].slice(rowIndex)))); -} -/** - * Deletes a row from the table state. - * - * @param {Object} state Current table state. - * @param {string} options.section Section in which to delete the row. - * @param {number} options.rowIndex Row index to delete. - * - * @return {Object} New table state. - */ - -function deleteRow(state, _ref6) { - var section = _ref6.section, - rowIndex = _ref6.rowIndex; - return Object(defineProperty["a" /* default */])({}, section, state[section].filter(function (row, index) { - return index !== rowIndex; - })); -} -/** - * Inserts a column in the table state. - * - * @param {Object} state Current table state. - * @param {string} options.section Section in which to insert the column. - * @param {number} options.columnIndex Column index at which to insert the column. - * - * @return {Object} New table state. - */ - -function insertColumn(state, _ref8) { - var section = _ref8.section, - columnIndex = _ref8.columnIndex; - return Object(defineProperty["a" /* default */])({}, section, state[section].map(function (row) { - return { - cells: [].concat(Object(toConsumableArray["a" /* default */])(row.cells.slice(0, columnIndex)), [{ - content: '', - tag: 'td' - }], Object(toConsumableArray["a" /* default */])(row.cells.slice(columnIndex))) - }; - })); -} -/** - * Deletes a column from the table state. - * - * @param {Object} state Current table state. - * @param {string} options.section Section in which to delete the column. - * @param {number} options.columnIndex Column index to delete. - * - * @return {Object} New table state. - */ - -function deleteColumn(state, _ref10) { - var section = _ref10.section, - columnIndex = _ref10.columnIndex; - return Object(defineProperty["a" /* default */])({}, section, state[section].map(function (row) { - return { - cells: row.cells.filter(function (cell, index) { - return index !== columnIndex; - }) - }; - }).filter(function (row) { - return row.cells.length; - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/edit.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var BACKGROUND_COLORS = [{ - color: '#f3f4f5', - name: 'Subtle light gray', - slug: 'subtle-light-gray' -}, { - color: '#e9fbe5', - name: 'Subtle pale green', - slug: 'subtle-pale-green' -}, { - color: '#e7f5fe', - name: 'Subtle pale blue', - slug: 'subtle-pale-blue' -}, { - color: '#fcf0ef', - name: 'Subtle pale pink', - slug: 'subtle-pale-pink' -}]; -var withCustomBackgroundColors = Object(external_this_wp_editor_["createCustomColorsHOC"])(BACKGROUND_COLORS); -var edit_TableEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(TableEdit, _Component); - - function TableEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, TableEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TableEdit).apply(this, arguments)); - _this.onCreateTable = _this.onCreateTable.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onChangeFixedLayout = _this.onChangeFixedLayout.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onChangeInitialColumnCount = _this.onChangeInitialColumnCount.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onChangeInitialRowCount = _this.onChangeInitialRowCount.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.renderSection = _this.renderSection.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.getTableControls = _this.getTableControls.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onInsertRow = _this.onInsertRow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onInsertRowBefore = _this.onInsertRowBefore.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onInsertRowAfter = _this.onInsertRowAfter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onDeleteRow = _this.onDeleteRow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onInsertColumn = _this.onInsertColumn.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onInsertColumnBefore = _this.onInsertColumnBefore.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onInsertColumnAfter = _this.onInsertColumnAfter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onDeleteColumn = _this.onDeleteColumn.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - initialRowCount: 2, - initialColumnCount: 2, - selectedCell: null - }; - return _this; - } - /** - * Updates the initial column count used for table creation. - * - * @param {number} initialColumnCount New initial column count. - */ - - - Object(createClass["a" /* default */])(TableEdit, [{ - key: "onChangeInitialColumnCount", - value: function onChangeInitialColumnCount(initialColumnCount) { - this.setState({ - initialColumnCount: initialColumnCount - }); - } - /** - * Updates the initial row count used for table creation. - * - * @param {number} initialRowCount New initial row count. - */ - - }, { - key: "onChangeInitialRowCount", - value: function onChangeInitialRowCount(initialRowCount) { - this.setState({ - initialRowCount: initialRowCount - }); - } - /** - * Creates a table based on dimensions in local state. - * - * @param {Object} event Form submit event. - */ - - }, { - key: "onCreateTable", - value: function onCreateTable(event) { - event.preventDefault(); - var setAttributes = this.props.setAttributes; - var _this$state = this.state, - initialRowCount = _this$state.initialRowCount, - initialColumnCount = _this$state.initialColumnCount; - initialRowCount = parseInt(initialRowCount, 10) || 2; - initialColumnCount = parseInt(initialColumnCount, 10) || 2; - setAttributes(createTable({ - rowCount: initialRowCount, - columnCount: initialColumnCount - })); - } - /** - * Toggles whether the table has a fixed layout or not. - */ - - }, { - key: "onChangeFixedLayout", - value: function onChangeFixedLayout() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var hasFixedLayout = attributes.hasFixedLayout; - setAttributes({ - hasFixedLayout: !hasFixedLayout - }); - } - /** - * Changes the content of the currently selected cell. - * - * @param {Array} content A RichText content value. - */ - - }, { - key: "onChange", - value: function onChange(content) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var section = selectedCell.section, - rowIndex = selectedCell.rowIndex, - columnIndex = selectedCell.columnIndex; - setAttributes(updateCellContent(attributes, { - section: section, - rowIndex: rowIndex, - columnIndex: columnIndex, - content: content - })); - } - /** - * Inserts a row at the currently selected row index, plus `delta`. - * - * @param {number} delta Offset for selected row index at which to insert. - */ - - }, { - key: "onInsertRow", - value: function onInsertRow(delta) { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props3 = this.props, - attributes = _this$props3.attributes, - setAttributes = _this$props3.setAttributes; - var section = selectedCell.section, - rowIndex = selectedCell.rowIndex; - this.setState({ - selectedCell: null - }); - setAttributes(insertRow(attributes, { - section: section, - rowIndex: rowIndex + delta - })); - } - /** - * Inserts a row before the currently selected row. - */ - - }, { - key: "onInsertRowBefore", - value: function onInsertRowBefore() { - this.onInsertRow(0); - } - /** - * Inserts a row after the currently selected row. - */ - - }, { - key: "onInsertRowAfter", - value: function onInsertRowAfter() { - this.onInsertRow(1); - } - /** - * Deletes the currently selected row. - */ - - }, { - key: "onDeleteRow", - value: function onDeleteRow() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props4 = this.props, - attributes = _this$props4.attributes, - setAttributes = _this$props4.setAttributes; - var section = selectedCell.section, - rowIndex = selectedCell.rowIndex; - this.setState({ - selectedCell: null - }); - setAttributes(deleteRow(attributes, { - section: section, - rowIndex: rowIndex - })); - } - /** - * Inserts a column at the currently selected column index, plus `delta`. - * - * @param {number} delta Offset for selected column index at which to insert. - */ - - }, { - key: "onInsertColumn", - value: function onInsertColumn() { - var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props5 = this.props, - attributes = _this$props5.attributes, - setAttributes = _this$props5.setAttributes; - var section = selectedCell.section, - columnIndex = selectedCell.columnIndex; - this.setState({ - selectedCell: null - }); - setAttributes(insertColumn(attributes, { - section: section, - columnIndex: columnIndex + delta - })); - } - /** - * Inserts a column before the currently selected column. - */ - - }, { - key: "onInsertColumnBefore", - value: function onInsertColumnBefore() { - this.onInsertColumn(0); - } - /** - * Inserts a column after the currently selected column. - */ - - }, { - key: "onInsertColumnAfter", - value: function onInsertColumnAfter() { - this.onInsertColumn(1); - } - /** - * Deletes the currently selected column. - */ - - }, { - key: "onDeleteColumn", - value: function onDeleteColumn() { - var selectedCell = this.state.selectedCell; - - if (!selectedCell) { - return; - } - - var _this$props6 = this.props, - attributes = _this$props6.attributes, - setAttributes = _this$props6.setAttributes; - var section = selectedCell.section, - columnIndex = selectedCell.columnIndex; - this.setState({ - selectedCell: null - }); - setAttributes(deleteColumn(attributes, { - section: section, - columnIndex: columnIndex - })); - } - /** - * Creates an onFocus handler for a specified cell. - * - * @param {Object} selectedCell Object with `section`, `rowIndex`, and - * `columnIndex` properties. - * - * @return {Function} Function to call on focus. - */ - - }, { - key: "createOnFocus", - value: function createOnFocus(selectedCell) { - var _this2 = this; - - return function () { - _this2.setState({ - selectedCell: selectedCell - }); - }; - } - /** - * Gets the table controls to display in the block toolbar. - * - * @return {Array} Table controls. - */ - - }, { - key: "getTableControls", - value: function getTableControls() { - var selectedCell = this.state.selectedCell; - return [{ - icon: 'table-row-before', - title: Object(external_this_wp_i18n_["__"])('Add Row Before'), - isDisabled: !selectedCell, - onClick: this.onInsertRowBefore - }, { - icon: 'table-row-after', - title: Object(external_this_wp_i18n_["__"])('Add Row After'), - isDisabled: !selectedCell, - onClick: this.onInsertRowAfter - }, { - icon: 'table-row-delete', - title: Object(external_this_wp_i18n_["__"])('Delete Row'), - isDisabled: !selectedCell, - onClick: this.onDeleteRow - }, { - icon: 'table-col-before', - title: Object(external_this_wp_i18n_["__"])('Add Column Before'), - isDisabled: !selectedCell, - onClick: this.onInsertColumnBefore - }, { - icon: 'table-col-after', - title: Object(external_this_wp_i18n_["__"])('Add Column After'), - isDisabled: !selectedCell, - onClick: this.onInsertColumnAfter - }, { - icon: 'table-col-delete', - title: Object(external_this_wp_i18n_["__"])('Delete Column'), - isDisabled: !selectedCell, - onClick: this.onDeleteColumn - }]; - } - /** - * Renders a table section. - * - * @param {string} options.type Section type: head, body, or foot. - * @param {Array} options.rows The rows to render. - * - * @return {Object} React element for the section. - */ - - }, { - key: "renderSection", - value: function renderSection(_ref) { - var _this3 = this; - - var type = _ref.type, - rows = _ref.rows; - - if (!rows.length) { - return null; - } - - var Tag = "t".concat(type); - var selectedCell = this.state.selectedCell; - return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref2, rowIndex) { - var cells = _ref2.cells; - return Object(external_this_wp_element_["createElement"])("tr", { - key: rowIndex - }, cells.map(function (_ref3, columnIndex) { - var content = _ref3.content, - CellTag = _ref3.tag; - var isSelected = selectedCell && type === selectedCell.section && rowIndex === selectedCell.rowIndex && columnIndex === selectedCell.columnIndex; - var cell = { - section: type, - rowIndex: rowIndex, - columnIndex: columnIndex - }; - var cellClasses = classnames_default()({ - 'is-selected': isSelected - }); - return Object(external_this_wp_element_["createElement"])(CellTag, { - key: columnIndex, - className: cellClasses - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - className: "wp-block-table__cell-content", - value: content, - onChange: _this3.onChange, - unstableOnFocus: _this3.createOnFocus(cell) - })); - })); - })); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - var isSelected = this.props.isSelected; - var selectedCell = this.state.selectedCell; - - if (!isSelected && selectedCell) { - this.setState({ - selectedCell: null - }); - } - } - }, { - key: "render", - value: function render() { - var _this$props7 = this.props, - attributes = _this$props7.attributes, - className = _this$props7.className, - backgroundColor = _this$props7.backgroundColor, - setBackgroundColor = _this$props7.setBackgroundColor; - var _this$state2 = this.state, - initialRowCount = _this$state2.initialRowCount, - initialColumnCount = _this$state2.initialColumnCount; - var hasFixedLayout = attributes.hasFixedLayout, - head = attributes.head, - body = attributes.body, - foot = attributes.foot; - var isEmpty = !head.length && !body.length && !foot.length; - var Section = this.renderSection; - - if (isEmpty) { - return Object(external_this_wp_element_["createElement"])("form", { - onSubmit: this.onCreateTable - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - label: Object(external_this_wp_i18n_["__"])('Column Count'), - value: initialColumnCount, - onChange: this.onChangeInitialColumnCount, - min: "1" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - type: "number", - label: Object(external_this_wp_i18n_["__"])('Row Count'), - value: initialRowCount, - onChange: this.onChangeInitialRowCount, - min: "1" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isPrimary: true, - type: "submit" - }, Object(external_this_wp_i18n_["__"])('Create'))); - } - - var classes = classnames_default()(className, backgroundColor.class, { - 'has-fixed-layout': hasFixedLayout, - 'has-background': !!backgroundColor.color - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { - icon: "editor-table", - label: Object(external_this_wp_i18n_["__"])('Edit table'), - controls: this.getTableControls() - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Table Settings'), - className: "blocks-table-settings" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Fixed width table cells'), - checked: !!hasFixedLayout, - onChange: this.onChangeFixedLayout - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PanelColorSettings"], { - title: Object(external_this_wp_i18n_["__"])('Color Settings'), - initialOpen: false, - colorSettings: [{ - value: backgroundColor.color, - onChange: setBackgroundColor, - label: Object(external_this_wp_i18n_["__"])('Background Color'), - disableCustomColors: true, - colors: BACKGROUND_COLORS - }] - })), Object(external_this_wp_element_["createElement"])("table", { - className: classes - }, Object(external_this_wp_element_["createElement"])(Section, { - type: "head", - rows: head - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "body", - rows: body - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "foot", - rows: foot - }))); - } - }]); - - return TableEdit; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var table_edit = (withCustomBackgroundColors('backgroundColor')(edit_TableEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var tableContentPasteSchema = { - tr: { - allowEmpty: true, - children: { - th: { - allowEmpty: true, - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - }, - td: { - allowEmpty: true, - children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() - } - } - } -}; -var tablePasteSchema = { - table: { - children: { - thead: { - allowEmpty: true, - children: tableContentPasteSchema - }, - tfoot: { - allowEmpty: true, - children: tableContentPasteSchema - }, - tbody: { - allowEmpty: true, - children: tableContentPasteSchema - } - } - } -}; - -function getTableSectionAttributeSchema(section) { - return { - type: 'array', - default: [], - source: 'query', - selector: "t".concat(section, " tr"), - query: { - cells: { - type: 'array', - default: [], - source: 'query', - selector: 'td,th', - query: { - content: { - type: 'string', - source: 'html' - }, - tag: { - type: 'string', - default: 'td', - source: 'tag' - } - } - } - } - }; -} - -var table_name = 'core/table'; -var table_settings = { - title: Object(external_this_wp_i18n_["__"])('Table'), - description: Object(external_this_wp_i18n_["__"])('Insert a table — perfect for sharing charts and data.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z" - }))), - category: 'formatting', - attributes: { - hasFixedLayout: { - type: 'boolean', - default: false - }, - backgroundColor: { - type: 'string' - }, - head: getTableSectionAttributeSchema('head'), - body: getTableSectionAttributeSchema('body'), - foot: getTableSectionAttributeSchema('foot') - }, - styles: [{ - name: 'regular', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }, { - name: 'stripes', - label: Object(external_this_wp_i18n_["__"])('Stripes') - }], - supports: { - align: true - }, - transforms: { - from: [{ - type: 'raw', - selector: 'table', - schema: tablePasteSchema - }] - }, - edit: table_edit, - save: function save(_ref) { - var attributes = _ref.attributes; - var hasFixedLayout = attributes.hasFixedLayout, - head = attributes.head, - body = attributes.body, - foot = attributes.foot, - backgroundColor = attributes.backgroundColor; - var isEmpty = !head.length && !body.length && !foot.length; - - if (isEmpty) { - return null; - } - - var backgroundClass = Object(external_this_wp_editor_["getColorClassName"])('background-color', backgroundColor); - var classes = classnames_default()(backgroundClass, { - 'has-fixed-layout': hasFixedLayout, - 'has-background': !!backgroundClass - }); - - var Section = function Section(_ref2) { - var type = _ref2.type, - rows = _ref2.rows; - - if (!rows.length) { - return null; - } - - var Tag = "t".concat(type); - return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref3, rowIndex) { - var cells = _ref3.cells; - return Object(external_this_wp_element_["createElement"])("tr", { - key: rowIndex - }, cells.map(function (_ref4, cellIndex) { - var content = _ref4.content, - tag = _ref4.tag; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: tag, - value: content, - key: cellIndex - }); - })); - })); - }; - - return Object(external_this_wp_element_["createElement"])("table", { - className: classes - }, Object(external_this_wp_element_["createElement"])(Section, { - type: "head", - rows: head - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "body", - rows: body - }), Object(external_this_wp_element_["createElement"])(Section, { - type: "foot", - rows: foot - })); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template/index.js - - -/** - * WordPress dependencies - */ - - - -var template_name = 'core/template'; -var template_settings = { - title: Object(external_this_wp_i18n_["__"])('Reusable Template'), - category: 'reusable', - description: Object(external_this_wp_i18n_["__"])('Template block used as a container.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "0", - fill: "none", - width: "24", - height: "24" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z" - }))), - supports: { - customClassName: false, - html: false, - inserter: false - }, - edit: function edit() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"], null); - }, - save: function save() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"].Content, null); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/text-columns/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -var text_columns_name = 'core/text-columns'; -var text_columns_settings = { - // Disable insertion as this block is deprecated and ultimately replaced by the Columns block. - supports: { - inserter: false - }, - title: Object(external_this_wp_i18n_["__"])('Text Columns (deprecated)'), - description: Object(external_this_wp_i18n_["__"])('This block is deprecated. Please use the Columns block instead.'), - icon: 'columns', - category: 'layout', - attributes: { - content: { - type: 'array', - source: 'query', - selector: 'p', - query: { - children: { - type: 'string', - source: 'html' - } - }, - default: [{}, {}] - }, - columns: { - type: 'number', - default: 2 - }, - width: { - type: 'string' - } - }, - transforms: { - to: [{ - type: 'block', - blocks: ['core/columns'], - transform: function transform(_ref) { - var className = _ref.className, - columns = _ref.columns, - content = _ref.content, - width = _ref.width; - return Object(external_this_wp_blocks_["createBlock"])('core/columns', { - align: 'wide' === width || 'full' === width ? width : undefined, - className: className, - columns: columns - }, content.map(function (_ref2) { - var children = _ref2.children; - return Object(external_this_wp_blocks_["createBlock"])('core/column', {}, [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { - content: children - })]); - })); - } - }] - }, - getEditWrapperProps: function getEditWrapperProps(attributes) { - var width = attributes.width; - - if ('wide' === width || 'full' === width) { - return { - 'data-align': width - }; - } - }, - edit: function edit(_ref3) { - var attributes = _ref3.attributes, - setAttributes = _ref3.setAttributes, - className = _ref3.className; - var width = attributes.width, - content = attributes.content, - columns = attributes.columns; - external_this_wp_deprecated_default()('The Text Columns block', { - alternative: 'the Columns block', - plugin: 'Gutenberg' - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockAlignmentToolbar"], { - value: width, - onChange: function onChange(nextWidth) { - return setAttributes({ - width: nextWidth - }); - }, - controls: ['center', 'wide', 'full'] - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { - label: Object(external_this_wp_i18n_["__"])('Columns'), - value: columns, - onChange: function onChange(value) { - return setAttributes({ - columns: value - }); - }, - min: 2, - max: 4 - }))), Object(external_this_wp_element_["createElement"])("div", { - className: "".concat(className, " align").concat(width, " columns-").concat(columns) - }, Object(external_lodash_["times"])(columns, function (index) { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-column", - key: "column-".concat(index) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "p", - value: Object(external_lodash_["get"])(content, [index, 'children']), - onChange: function onChange(nextContent) { - setAttributes({ - content: [].concat(Object(toConsumableArray["a" /* default */])(content.slice(0, index)), [{ - children: nextContent - }], Object(toConsumableArray["a" /* default */])(content.slice(index + 1))) - }); - }, - placeholder: Object(external_this_wp_i18n_["__"])('New Column') - })); - }))); - }, - save: function save(_ref4) { - var attributes = _ref4.attributes; - var width = attributes.width, - content = attributes.content, - columns = attributes.columns; - return Object(external_this_wp_element_["createElement"])("div", { - className: "align".concat(width, " columns-").concat(columns) - }, Object(external_lodash_["times"])(columns, function (index) { - return Object(external_this_wp_element_["createElement"])("div", { - className: "wp-block-column", - key: "column-".concat(index) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "p", - value: Object(external_lodash_["get"])(content, [index, 'children']) - })); - })); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/verse/index.js - - -/** - * WordPress dependencies - */ - - - - - -var verse_name = 'core/verse'; -var verse_settings = { - title: Object(external_this_wp_i18n_["__"])('Verse'), - description: Object(external_this_wp_i18n_["__"])('Insert poetry. Use special spacing formats. Or quote song lyrics.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z" - })), - category: 'formatting', - keywords: [Object(external_this_wp_i18n_["__"])('poetry')], - attributes: { - content: { - type: 'string', - source: 'html', - selector: 'pre', - default: '' - }, - textAlign: { - type: 'string' - } - }, - transforms: { - from: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/verse', attributes); - } - }], - to: [{ - type: 'block', - blocks: ['core/paragraph'], - transform: function transform(attributes) { - return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', attributes); - } - }] - }, - edit: function edit(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes, - className = _ref.className, - mergeBlocks = _ref.mergeBlocks; - var textAlign = attributes.textAlign, - content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AlignmentToolbar"], { - value: textAlign, - onChange: function onChange(nextAlign) { - setAttributes({ - textAlign: nextAlign - }); - } - })), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "pre", - value: content, - onChange: function onChange(nextContent) { - setAttributes({ - content: nextContent - }); - }, - style: { - textAlign: textAlign - }, - placeholder: Object(external_this_wp_i18n_["__"])('Write…'), - wrapperClassName: className, - onMerge: mergeBlocks - })); - }, - save: function save(_ref2) { - var attributes = _ref2.attributes; - var textAlign = attributes.textAlign, - content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "pre", - style: { - textAlign: textAlign - }, - value: content - }); - }, - merge: function merge(attributes, attributesToMerge) { - return { - content: attributes.content + attributesToMerge.content - }; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/icon.js - - -/** - * WordPress dependencies - */ - -/* harmony default export */ var video_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - fill: "none", - d: "M0 0h24v24H0V0z" -}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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" -}))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/edit.js - - - - - - - - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var video_edit_ALLOWED_MEDIA_TYPES = ['video']; -var VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image']; - -var edit_VideoEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(VideoEdit, _Component); - - function VideoEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, VideoEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(VideoEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited - // without setting the actual value outside of the edit UI - - _this.state = { - editing: !_this.props.attributes.src - }; - _this.videoPlayer = Object(external_this_wp_element_["createRef"])(); - _this.posterImageButton = Object(external_this_wp_element_["createRef"])(); - _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectPoster = _this.onSelectPoster.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onRemovePoster = _this.onRemovePoster.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(VideoEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - attributes = _this$props.attributes, - noticeOperations = _this$props.noticeOperations, - setAttributes = _this$props.setAttributes; - var id = attributes.id, - _attributes$src = attributes.src, - src = _attributes$src === void 0 ? '' : _attributes$src; - - if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { - var file = Object(external_this_wp_blob_["getBlobByURL"])(src); - - if (file) { - Object(external_this_wp_editor_["mediaUpload"])({ - filesList: [file], - onFileChange: function onFileChange(_ref) { - var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), - url = _ref2[0].url; - - setAttributes({ - src: url - }); - }, - onError: function onError(message) { - _this2.setState({ - editing: true - }); - - noticeOperations.createErrorNotice(message); - }, - allowedTypes: video_edit_ALLOWED_MEDIA_TYPES - }); - } - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.attributes.poster !== prevProps.attributes.poster) { - this.videoPlayer.current.load(); - } - } - }, { - key: "toggleAttribute", - value: function toggleAttribute(attribute) { - var _this3 = this; - - return function (newValue) { - _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); - }; - } - }, { - key: "onSelectURL", - value: function onSelectURL(newSrc) { - var _this$props2 = this.props, - attributes = _this$props2.attributes, - setAttributes = _this$props2.setAttributes; - var src = attributes.src; // Set the block's src from the edit component's state, and switch off - // the editing UI. - - if (newSrc !== src) { - // Check if there's an embed block that handles this URL. - var embedBlock = util_createUpgradedEmbedBlock({ - attributes: { - url: newSrc - } - }); - - if (undefined !== embedBlock) { - this.props.onReplace(embedBlock); - return; - } - - setAttributes({ - src: newSrc, - id: undefined - }); - } - - this.setState({ - editing: false - }); - } - }, { - key: "onSelectPoster", - value: function onSelectPoster(image) { - var setAttributes = this.props.setAttributes; - setAttributes({ - poster: image.url - }); - } - }, { - key: "onRemovePoster", - value: function onRemovePoster() { - var setAttributes = this.props.setAttributes; - setAttributes({ - poster: '' - }); // Move focus back to the Media Upload button. - - this.posterImageButton.current.focus(); - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props$attribute = this.props.attributes, - autoplay = _this$props$attribute.autoplay, - caption = _this$props$attribute.caption, - controls = _this$props$attribute.controls, - loop = _this$props$attribute.loop, - muted = _this$props$attribute.muted, - poster = _this$props$attribute.poster, - preload = _this$props$attribute.preload, - src = _this$props$attribute.src; - var _this$props3 = this.props, - setAttributes = _this$props3.setAttributes, - isSelected = _this$props3.isSelected, - className = _this$props3.className, - noticeOperations = _this$props3.noticeOperations, - noticeUI = _this$props3.noticeUI; - var editing = this.state.editing; - - var switchToEditing = function switchToEditing() { - _this4.setState({ - editing: true - }); - }; - - var onSelectVideo = function onSelectVideo(media) { - if (!media || !media.url) { - // in this case there was an error and we should continue in the editing state - // previous attributes should be removed because they may be temporary blob urls - setAttributes({ - src: undefined, - id: undefined - }); - switchToEditing(); - return; - } // sets the block's attribute and updates the edit component from the - // selected media, then switches off the editing UI - - - setAttributes({ - src: media.url, - id: media.id - }); - - _this4.setState({ - src: media.url, - editing: false - }); - }; - - if (editing) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { - icon: video_icon - }), - className: className, - onSelect: onSelectVideo, - onSelectURL: this.onSelectURL, - accept: "video/*", - allowedTypes: video_edit_ALLOWED_MEDIA_TYPES, - value: this.props.attributes, - notices: noticeUI, - onError: noticeOperations.createErrorNotice - }); - } - /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "components-icon-button components-toolbar__control", - label: Object(external_this_wp_i18n_["__"])('Edit video'), - onClick: switchToEditing, - icon: "edit" - }))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Video Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Autoplay'), - onChange: this.toggleAttribute('autoplay'), - checked: autoplay - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Loop'), - onChange: this.toggleAttribute('loop'), - checked: loop - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Muted'), - onChange: this.toggleAttribute('muted'), - checked: muted - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Playback Controls'), - onChange: this.toggleAttribute('controls'), - checked: controls - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Preload'), - value: preload, - onChange: function onChange(value) { - return setAttributes({ - preload: value - }); - }, - options: [{ - value: 'auto', - label: Object(external_this_wp_i18n_["__"])('Auto') - }, { - value: 'metadata', - label: Object(external_this_wp_i18n_["__"])('Metadata') - }, { - value: 'none', - label: Object(external_this_wp_i18n_["__"])('None') - }] - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - className: "editor-video-poster-control", - label: Object(external_this_wp_i18n_["__"])('Poster Image') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { - title: Object(external_this_wp_i18n_["__"])('Select Poster Image'), - onSelect: this.onSelectPoster, - allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES, - render: function render(_ref3) { - var open = _ref3.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isDefault: true, - onClick: open, - ref: _this4.posterImageButton - }, !_this4.props.attributes.poster ? Object(external_this_wp_i18n_["__"])('Select Poster Image') : Object(external_this_wp_i18n_["__"])('Replace image')); - } - }), !!this.props.attributes.poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - onClick: this.onRemovePoster, - isLink: true, - isDestructive: true - }, Object(external_this_wp_i18n_["__"])('Remove Poster Image')))))), Object(external_this_wp_element_["createElement"])("figure", { - className: className - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { - controls: controls, - poster: poster, - src: src, - ref: this.videoPlayer - })), (!external_this_wp_editor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"], { - tagName: "figcaption", - placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), - value: caption, - onChange: function onChange(value) { - return setAttributes({ - caption: value - }); - }, - inlineToolbar: true - }))); - /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - } - }]); - - return VideoEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var video_edit = (Object(external_this_wp_components_["withNotices"])(edit_VideoEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var video_name = 'core/video'; -var video_settings = { - title: Object(external_this_wp_i18n_["__"])('Video'), - description: Object(external_this_wp_i18n_["__"])('Embed a video from your media library or upload a new one.'), - icon: video_icon, - keywords: [Object(external_this_wp_i18n_["__"])('movie')], - category: 'common', - attributes: { - 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: true - }, - 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' - } - }, - transforms: { - from: [{ - type: 'files', - isMatch: function isMatch(files) { - return files.length === 1 && files[0].type.indexOf('video/') === 0; - }, - transform: function transform(files) { - var file = files[0]; // We don't need to upload the media directly here - // It's already done as part of the `componentDidMount` - // in the video block - - var block = Object(external_this_wp_blocks_["createBlock"])('core/video', { - src: Object(external_this_wp_blob_["createBlobURL"])(file) - }); - return block; - } - }] - }, - supports: { - align: true - }, - edit: video_edit, - save: function save(_ref) { - var attributes = _ref.attributes; - var autoplay = attributes.autoplay, - caption = attributes.caption, - controls = attributes.controls, - loop = attributes.loop, - muted = attributes.muted, - poster = attributes.poster, - preload = attributes.preload, - src = attributes.src; - return Object(external_this_wp_element_["createElement"])("figure", null, src && Object(external_this_wp_element_["createElement"])("video", { - autoPlay: autoplay, - controls: controls, - loop: loop, - muted: muted, - poster: poster, - preload: preload !== 'metadata' ? preload : undefined, - src: src - }), !external_this_wp_editor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichText"].Content, { - tagName: "figcaption", - value: caption - })); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/edit.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -var edit_TagCloudEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(TagCloudEdit, _Component); - - function TagCloudEdit() { - var _this; - - Object(classCallCheck["a" /* default */])(this, TagCloudEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TagCloudEdit).apply(this, arguments)); - _this.state = { - editing: !_this.props.attributes.taxonomy - }; - _this.setTaxonomy = _this.setTaxonomy.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.toggleShowTagCounts = _this.toggleShowTagCounts.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(TagCloudEdit, [{ - key: "getTaxonomyOptions", - value: function getTaxonomyOptions() { - var taxonomies = Object(external_lodash_["filter"])(this.props.taxonomies, 'show_cloud'); - var selectOption = { - label: Object(external_this_wp_i18n_["__"])('- Select -'), - value: '' - }; - var taxonomyOptions = Object(external_lodash_["map"])(taxonomies, function (taxonomy) { - return { - value: taxonomy.slug, - label: taxonomy.name - }; - }); - return [selectOption].concat(Object(toConsumableArray["a" /* default */])(taxonomyOptions)); - } - }, { - key: "setTaxonomy", - value: function setTaxonomy(taxonomy) { - var setAttributes = this.props.setAttributes; - setAttributes({ - taxonomy: taxonomy - }); - } - }, { - key: "toggleShowTagCounts", - value: function toggleShowTagCounts() { - var _this$props = this.props, - attributes = _this$props.attributes, - setAttributes = _this$props.setAttributes; - var showTagCounts = attributes.showTagCounts; - setAttributes({ - showTagCounts: !showTagCounts - }); - } - }, { - key: "render", - value: function render() { - var attributes = this.props.attributes; - var taxonomy = attributes.taxonomy, - showTagCounts = attributes.showTagCounts; - var taxonomyOptions = this.getTaxonomyOptions(); - var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Tag Cloud Settings') - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { - label: Object(external_this_wp_i18n_["__"])('Taxonomy'), - options: taxonomyOptions, - value: taxonomy, - onChange: this.setTaxonomy - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { - label: Object(external_this_wp_i18n_["__"])('Show post counts'), - checked: showTagCounts, - onChange: this.toggleShowTagCounts - }))); - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ServerSideRender"], { - key: "tag-cloud", - block: "core/tag-cloud", - attributes: attributes - })); - } - }]); - - return TagCloudEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var tag_cloud_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - taxonomies: select('core').getTaxonomies() - }; -})(edit_TagCloudEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var tag_cloud_name = 'core/tag-cloud'; -var tag_cloud_settings = { - title: Object(external_this_wp_i18n_["__"])('Tag Cloud'), - description: Object(external_this_wp_i18n_["__"])('A cloud of your most used tags.'), - icon: 'tag', - category: 'widgets', - supports: { - html: false, - align: true - }, - edit: tag_cloud_edit, - save: function save() { - return null; - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/edit.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - -var classic_edit_window = window, - wp = classic_edit_window.wp; - -function isTmceEmpty(editor) { - // When tinyMce is empty the content seems to be: - //


    - // avoid expensive checks for large documents - var body = editor.getBody(); - - if (body.childNodes.length > 1) { - return false; - } else if (body.childNodes.length === 0) { - return true; - } - - if (body.childNodes[0].childNodes.length > 1) { - return false; - } - - return /^\n?$/.test(body.innerText || body.textContent); -} - -var edit_ClassicEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ClassicEdit, _Component); - - function ClassicEdit(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, ClassicEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ClassicEdit).call(this, props)); - _this.initialize = _this.initialize.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSetup = _this.onSetup.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.focus = _this.focus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(ClassicEdit, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce, - baseURL = _window$wpEditorL10n$.baseURL, - suffix = _window$wpEditorL10n$.suffix; - window.tinymce.EditorManager.overrideDefaults({ - base_url: baseURL, - suffix: suffix - }); - - if (document.readyState === 'complete') { - this.initialize(); - } else { - window.addEventListener('DOMContentLoaded', this.initialize); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.addEventListener('DOMContentLoaded', this.initialize); - wp.oldEditor.remove("editor-".concat(this.props.clientId)); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - clientId = _this$props.clientId, - content = _this$props.attributes.content; - var editor = window.tinymce.get("editor-".concat(clientId)); - - if (prevProps.attributes.content !== content) { - editor.setContent(content || ''); - } - } - }, { - key: "initialize", - value: function initialize() { - var clientId = this.props.clientId; - var settings = window.wpEditorL10n.tinymce.settings; - wp.oldEditor.initialize("editor-".concat(clientId), { - tinymce: Object(objectSpread["a" /* default */])({}, settings, { - inline: true, - content_css: false, - fixed_toolbar_container: "#toolbar-".concat(clientId), - setup: this.onSetup - }) - }); - } - }, { - key: "onSetup", - value: function onSetup(editor) { - var _this2 = this; - - var _this$props2 = this.props, - content = _this$props2.attributes.content, - setAttributes = _this$props2.setAttributes; - var ref = this.ref; - var bookmark; - this.editor = editor; - - if (content) { - editor.on('loadContent', function () { - return editor.setContent(content); - }); - } - - editor.on('blur', function () { - bookmark = editor.selection.getBookmark(2, true); - setAttributes({ - content: editor.getContent() - }); - editor.once('focus', function () { - if (bookmark) { - editor.selection.moveToBookmark(bookmark); - } - }); - return false; - }); - editor.on('mousedown touchstart', function () { - bookmark = null; - }); - editor.on('keydown', function (event) { - if ((event.keyCode === external_this_wp_keycodes_["BACKSPACE"] || event.keyCode === external_this_wp_keycodes_["DELETE"]) && isTmceEmpty(editor)) { - // delete the block - _this2.props.onReplace([]); - - event.preventDefault(); - event.stopImmediatePropagation(); - } - - var altKey = event.altKey; - /* - * Prevent Mousetrap from kicking in: TinyMCE already uses its own - * `alt+f10` shortcut to focus its toolbar. - */ - - if (altKey && event.keyCode === external_this_wp_keycodes_["F10"]) { - event.stopPropagation(); - } - }); // TODO: the following is for back-compat with WP 4.9, not needed in WP 5.0. Remove it after the release. - - editor.addButton('kitchensink', { - tooltip: Object(external_this_wp_i18n_["_x"])('More', 'button to expand options'), - icon: 'dashicon dashicons-editor-kitchensink', - onClick: function onClick() { - var button = this; - var active = !button.active(); - button.active(active); - editor.dom.toggleClass(ref, 'has-advanced-toolbar', active); - } - }); // Show the second, third, etc. toolbars when the `kitchensink` button is removed by a plugin. - - editor.on('init', function () { - if (editor.settings.toolbar1 && editor.settings.toolbar1.indexOf('kitchensink') === -1) { - editor.dom.addClass(ref, 'has-advanced-toolbar'); - } - }); - editor.addButton('wp_add_media', { - tooltip: Object(external_this_wp_i18n_["__"])('Insert Media'), - icon: 'dashicon dashicons-admin-media', - cmd: 'WP_Medialib' - }); // End TODO. - - editor.on('init', function () { - var rootNode = _this2.editor.getBody(); // Create the toolbar by refocussing the editor. - - - if (document.activeElement === rootNode) { - rootNode.blur(); - - _this2.editor.focus(); - } - }); - } - }, { - key: "focus", - value: function focus() { - if (this.editor) { - this.editor.focus(); - } - } - }, { - key: "onToolbarKeyDown", - value: function onToolbarKeyDown(event) { - // Prevent WritingFlow from kicking in and allow arrows navigation on the toolbar. - event.stopPropagation(); // Prevent Mousetrap from moving focus to the top toolbar when pressing `alt+f10` on this block toolbar. - - event.nativeEvent.stopImmediatePropagation(); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var clientId = this.props.clientId; // Disable reason: the toolbar itself is non-interactive, but must capture - // events from the KeyboardShortcuts component to stop their propagation. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - return [// Disable reason: Clicking on this visual placeholder should create - // the toolbar, it can also be created by focussing the field below. - - /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */ - Object(external_this_wp_element_["createElement"])("div", { - key: "toolbar", - id: "toolbar-".concat(clientId), - ref: function ref(_ref) { - return _this3.ref = _ref; - }, - className: "block-library-classic__toolbar", - onClick: this.focus, - "data-placeholder": Object(external_this_wp_i18n_["__"])('Classic'), - onKeyDown: this.onToolbarKeyDown - }), Object(external_this_wp_element_["createElement"])("div", { - key: "editor", - id: "editor-".concat(clientId), - className: "wp-block-freeform block-library-rich-text__tinymce" - })]; - /* eslint-enable jsx-a11y/no-static-element-interactions */ - } - }]); - - return ClassicEdit; -}(external_this_wp_element_["Component"]); - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/index.js - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -var classic_name = 'core/freeform'; -var classic_settings = { - title: Object(external_this_wp_i18n_["_x"])('Classic', 'block title'), - description: Object(external_this_wp_i18n_["__"])('Use the classic WordPress editor.'), - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M0,0h24v24H0V0z M0,0h24v24H0V0z", - fill: "none" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "8", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "11", - y: "11", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "8", - y: "8", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "8", - y: "11", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "5", - y: "11", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "5", - y: "8", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "8", - y: "14", - width: "8", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "14", - y: "11", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "14", - y: "8", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "17", - y: "11", - width: "2", - height: "2" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { - x: "17", - y: "8", - width: "2", - height: "2" - })), - category: 'formatting', - attributes: { - content: { - type: 'string', - source: 'html' - } - }, - supports: { - className: false, - customClassName: false, - // Hide 'Add to Reusable Blocks' on Classic blocks. Showing it causes a - // confusing UX, because of its similarity to the 'Convert to Blocks' button. - reusable: false - }, - edit: edit_ClassicEdit, - save: function save(_ref) { - var attributes = _ref.attributes; - var content = attributes.content; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, content); - } -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/index.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return build_module_registerCoreBlocks; }); - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -var build_module_registerCoreBlocks = function registerCoreBlocks() { - [// Common blocks are grouped at the top to prioritize their display - // in various contexts — like the inserter and auto-complete components. - paragraph_namespaceObject, image_namespaceObject, heading_namespaceObject, gallery_namespaceObject, list_namespaceObject, quote_namespaceObject, // Register all remaining core blocks. - shortcode_namespaceObject, archives_namespaceObject, audio_namespaceObject, button_namespaceObject, calendar_namespaceObject, categories_namespaceObject, code_namespaceObject, columns_namespaceObject, column_namespaceObject, cover_namespaceObject, embed_namespaceObject].concat(Object(toConsumableArray["a" /* default */])(embed_common), Object(toConsumableArray["a" /* default */])(embed_others), [file_namespaceObject, window.wp && window.wp.oldEditor ? classic_namespaceObject : null, // Only add the classic block in WP Context - html_namespaceObject, media_text_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, missing_namespaceObject, more_namespaceObject, nextpage_namespaceObject, preformatted_namespaceObject, pullquote_namespaceObject, rss_namespaceObject, search_namespaceObject, separator_namespaceObject, block_namespaceObject, spacer_namespaceObject, subhead_namespaceObject, table_namespaceObject, tag_cloud_namespaceObject, template_namespaceObject, text_columns_namespaceObject, verse_namespaceObject, video_namespaceObject]).forEach(function (block) { - if (!block) { - return; - } - - var name = block.name, - settings = block.settings; - Object(external_this_wp_blocks_["registerBlockType"])(name, settings); - }); - Object(external_this_wp_blocks_["setDefaultBlockName"])(paragraph_name); - - if (window.wp && window.wp.oldEditor) { - Object(external_this_wp_blocks_["setFreeformContentHandlerName"])(classic_name); - } - - Object(external_this_wp_blocks_["setUnregisteredTypeHandlerName"])(missing_name); -}; - - -/***/ }), - -/***/ 31: +/* 33 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["apiFetch"]; }()); /***/ }), - -/***/ 32: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), - -/***/ 33: +/* 34 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14815,8 +571,165 @@ function _iterableToArray(iter) { } /***/ }), +/* 35 */ +/***/ (function(module, exports) { -/***/ 34: +(function() { module.exports = this["wp"]["blob"]; }()); + +/***/ }), +/* 36 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return embedContentIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return embedAudioIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return embedPhotoIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return embedVideoIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return embedTwitterIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return embedYouTubeIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return embedFacebookIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return embedInstagramIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return embedWordPressIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return embedSpotifyIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return embedFlickrIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return embedVimeoIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return embedRedditIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return embedTumbrIcon; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return embedAmazonIcon; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +var embedContentIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z" +})); +var embedAudioIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z" +})); +var embedPhotoIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z" +}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Polygon"], { + points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17" +})); +var embedVideoIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z" +})); +var embedTwitterIcon = { + foreground: '#1da1f2', + src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z" + }))) +}; +var embedYouTubeIcon = { + foreground: '#ff0000', + src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z" + })) +}; +var embedFacebookIcon = { + foreground: '#3b5998', + src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z" + })) +}; +var embedInstagramIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z" +}))); +var embedWordPressIcon = { + foreground: '#0073AA', + src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z" + }))) +}; +var embedSpotifyIcon = { + foreground: '#1db954', + src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325" + })) +}; +var embedFlickrIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z" +})); +var embedVimeoIcon = { + foreground: '#1ab7ea', + src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z" + }))) +}; +var embedRedditIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z" +})); +var embedTumbrIcon = { + foreground: '#35465c', + src: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z" + })) +}; +var embedAmazonIcon = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z" +}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z" +}), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z" +})); + + +/***/ }), +/* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14826,8 +739,7 @@ function _arrayWithHoles(arr) { } /***/ }), - -/***/ 35: +/* 38 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14837,15 +749,14 @@ function _nonIterableRest() { } /***/ }), - -/***/ 37: +/* 39 */, +/* 40 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), - -/***/ 38: +/* 41 */ /***/ (function(module, exports, __webpack_require__) { module.exports = function memize( fn, options ) { @@ -14962,36 +873,1485 @@ module.exports = function memize( fn, options ) { /***/ }), - -/***/ 4: +/* 42 */ /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["components"]; }()); +(function() { module.exports = this["wp"]["isShallowEqual"]; }()); /***/ }), +/* 43 */, +/* 44 */, +/* 45 */ +/***/ (function(module, exports, __webpack_require__) { -/***/ 46: -/***/ (function(module, exports) { +var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 +// https://github.com/bgrins/TinyColor +// Brian Grinstead, MIT License + +(function(Math) { + +var trimLeft = /^\s+/, + trimRight = /\s+$/, + tinyCounter = 0, + mathRound = Math.round, + mathMin = Math.min, + mathMax = Math.max, + mathRandom = Math.random; + +function tinycolor (color, opts) { + + color = (color) ? color : ''; + opts = opts || { }; + + // If input is already a tinycolor, return itself + if (color instanceof tinycolor) { + return color; + } + // If we are called as a function, call using new instead + if (!(this instanceof tinycolor)) { + return new tinycolor(color, opts); + } + + var rgb = inputToRGB(color); + this._originalInput = color, + this._r = rgb.r, + this._g = rgb.g, + this._b = rgb.b, + this._a = rgb.a, + this._roundA = mathRound(100*this._a) / 100, + this._format = opts.format || rgb.format; + this._gradientType = opts.gradientType; + + // Don't let the range of [0,255] come back in [0,1]. + // Potentially lose a little bit of precision here, but will fix issues where + // .5 gets interpreted as half of the total, instead of half of 1 + // If it was supposed to be 128, this was already taken care of by `inputToRgb` + if (this._r < 1) { this._r = mathRound(this._r); } + if (this._g < 1) { this._g = mathRound(this._g); } + if (this._b < 1) { this._b = mathRound(this._b); } + + this._ok = rgb.ok; + this._tc_id = tinyCounter++; +} + +tinycolor.prototype = { + isDark: function() { + return this.getBrightness() < 128; + }, + isLight: function() { + return !this.isDark(); + }, + isValid: function() { + return this._ok; + }, + getOriginalInput: function() { + return this._originalInput; + }, + getFormat: function() { + return this._format; + }, + getAlpha: function() { + return this._a; + }, + getBrightness: function() { + //http://www.w3.org/TR/AERT#color-contrast + var rgb = this.toRgb(); + return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000; + }, + getLuminance: function() { + //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef + var rgb = this.toRgb(); + var RsRGB, GsRGB, BsRGB, R, G, B; + RsRGB = rgb.r/255; + GsRGB = rgb.g/255; + BsRGB = rgb.b/255; + + if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);} + if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);} + if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);} + return (0.2126 * R) + (0.7152 * G) + (0.0722 * B); + }, + setAlpha: function(value) { + this._a = boundAlpha(value); + this._roundA = mathRound(100*this._a) / 100; + return this; + }, + toHsv: function() { + var hsv = rgbToHsv(this._r, this._g, this._b); + return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a }; + }, + toHsvString: function() { + var hsv = rgbToHsv(this._r, this._g, this._b); + var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100); + return (this._a == 1) ? + "hsv(" + h + ", " + s + "%, " + v + "%)" : + "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")"; + }, + toHsl: function() { + var hsl = rgbToHsl(this._r, this._g, this._b); + return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a }; + }, + toHslString: function() { + var hsl = rgbToHsl(this._r, this._g, this._b); + var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100); + return (this._a == 1) ? + "hsl(" + h + ", " + s + "%, " + l + "%)" : + "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")"; + }, + toHex: function(allow3Char) { + return rgbToHex(this._r, this._g, this._b, allow3Char); + }, + toHexString: function(allow3Char) { + return '#' + this.toHex(allow3Char); + }, + toHex8: function(allow4Char) { + return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char); + }, + toHex8String: function(allow4Char) { + return '#' + this.toHex8(allow4Char); + }, + toRgb: function() { + return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a }; + }, + toRgbString: function() { + return (this._a == 1) ? + "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : + "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")"; + }, + toPercentageRgb: function() { + return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a }; + }, + toPercentageRgbString: function() { + return (this._a == 1) ? + "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" : + "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")"; + }, + toName: function() { + if (this._a === 0) { + return "transparent"; + } + + if (this._a < 1) { + return false; + } + + return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false; + }, + toFilter: function(secondColor) { + var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a); + var secondHex8String = hex8String; + var gradientType = this._gradientType ? "GradientType = 1, " : ""; + + if (secondColor) { + var s = tinycolor(secondColor); + secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a); + } + + return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"; + }, + toString: function(format) { + var formatSet = !!format; + format = format || this._format; + + var formattedString = false; + var hasAlpha = this._a < 1 && this._a >= 0; + var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name"); + + if (needsAlphaFormat) { + // Special case for "transparent", all other non-alpha formats + // will return rgba when there is transparency. + if (format === "name" && this._a === 0) { + return this.toName(); + } + return this.toRgbString(); + } + if (format === "rgb") { + formattedString = this.toRgbString(); + } + if (format === "prgb") { + formattedString = this.toPercentageRgbString(); + } + if (format === "hex" || format === "hex6") { + formattedString = this.toHexString(); + } + if (format === "hex3") { + formattedString = this.toHexString(true); + } + if (format === "hex4") { + formattedString = this.toHex8String(true); + } + if (format === "hex8") { + formattedString = this.toHex8String(); + } + if (format === "name") { + formattedString = this.toName(); + } + if (format === "hsl") { + formattedString = this.toHslString(); + } + if (format === "hsv") { + formattedString = this.toHsvString(); + } + + return formattedString || this.toHexString(); + }, + clone: function() { + return tinycolor(this.toString()); + }, + + _applyModification: function(fn, args) { + var color = fn.apply(null, [this].concat([].slice.call(args))); + this._r = color._r; + this._g = color._g; + this._b = color._b; + this.setAlpha(color._a); + return this; + }, + lighten: function() { + return this._applyModification(lighten, arguments); + }, + brighten: function() { + return this._applyModification(brighten, arguments); + }, + darken: function() { + return this._applyModification(darken, arguments); + }, + desaturate: function() { + return this._applyModification(desaturate, arguments); + }, + saturate: function() { + return this._applyModification(saturate, arguments); + }, + greyscale: function() { + return this._applyModification(greyscale, arguments); + }, + spin: function() { + return this._applyModification(spin, arguments); + }, + + _applyCombination: function(fn, args) { + return fn.apply(null, [this].concat([].slice.call(args))); + }, + analogous: function() { + return this._applyCombination(analogous, arguments); + }, + complement: function() { + return this._applyCombination(complement, arguments); + }, + monochromatic: function() { + return this._applyCombination(monochromatic, arguments); + }, + splitcomplement: function() { + return this._applyCombination(splitcomplement, arguments); + }, + triad: function() { + return this._applyCombination(triad, arguments); + }, + tetrad: function() { + return this._applyCombination(tetrad, arguments); + } +}; + +// If input is an object, force 1 into "1.0" to handle ratios properly +// String input requires "1.0" as input, so 1 will be treated as 1 +tinycolor.fromRatio = function(color, opts) { + if (typeof color == "object") { + var newColor = {}; + for (var i in color) { + if (color.hasOwnProperty(i)) { + if (i === "a") { + newColor[i] = color[i]; + } + else { + newColor[i] = convertToPercentage(color[i]); + } + } + } + color = newColor; + } + + return tinycolor(color, opts); +}; + +// Given a string or object, convert that input to RGB +// Possible string inputs: +// +// "red" +// "#f00" or "f00" +// "#ff0000" or "ff0000" +// "#ff000000" or "ff000000" +// "rgb 255 0 0" or "rgb (255, 0, 0)" +// "rgb 1.0 0 0" or "rgb (1, 0, 0)" +// "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1" +// "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1" +// "hsl(0, 100%, 50%)" or "hsl 0 100% 50%" +// "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1" +// "hsv(0, 100%, 100%)" or "hsv 0 100% 100%" +// +function inputToRGB(color) { + + var rgb = { r: 0, g: 0, b: 0 }; + var a = 1; + var s = null; + var v = null; + var l = null; + var ok = false; + var format = false; + + if (typeof color == "string") { + color = stringInputToObject(color); + } + + if (typeof color == "object") { + if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) { + rgb = rgbToRgb(color.r, color.g, color.b); + ok = true; + format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; + } + else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) { + s = convertToPercentage(color.s); + v = convertToPercentage(color.v); + rgb = hsvToRgb(color.h, s, v); + ok = true; + format = "hsv"; + } + else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) { + s = convertToPercentage(color.s); + l = convertToPercentage(color.l); + rgb = hslToRgb(color.h, s, l); + ok = true; + format = "hsl"; + } + + if (color.hasOwnProperty("a")) { + a = color.a; + } + } + + a = boundAlpha(a); + + return { + ok: ok, + format: color.format || format, + r: mathMin(255, mathMax(rgb.r, 0)), + g: mathMin(255, mathMax(rgb.g, 0)), + b: mathMin(255, mathMax(rgb.b, 0)), + a: a + }; +} + + +// Conversion Functions +// -------------------- + +// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from: +// + +// `rgbToRgb` +// Handle bounds / percentage checking to conform to CSS color spec +// +// *Assumes:* r, g, b in [0, 255] or [0, 1] +// *Returns:* { r, g, b } in [0, 255] +function rgbToRgb(r, g, b){ + return { + r: bound01(r, 255) * 255, + g: bound01(g, 255) * 255, + b: bound01(b, 255) * 255 + }; +} + +// `rgbToHsl` +// Converts an RGB color value to HSL. +// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1] +// *Returns:* { h, s, l } in [0,1] +function rgbToHsl(r, g, b) { + + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + + var max = mathMax(r, g, b), min = mathMin(r, g, b); + var h, s, l = (max + min) / 2; + + if(max == min) { + h = s = 0; // achromatic + } + else { + var d = max - min; + s = l > 0.5 ? d / (2 - max - min) : d / (max + min); + switch(max) { + case r: h = (g - b) / d + (g < b ? 6 : 0); break; + case g: h = (b - r) / d + 2; break; + case b: h = (r - g) / d + 4; break; + } + + h /= 6; + } + + return { h: h, s: s, l: l }; +} + +// `hslToRgb` +// Converts an HSL color value to RGB. +// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] +// *Returns:* { r, g, b } in the set [0, 255] +function hslToRgb(h, s, l) { + var r, g, b; + + h = bound01(h, 360); + s = bound01(s, 100); + l = bound01(l, 100); + + function hue2rgb(p, q, t) { + if(t < 0) t += 1; + if(t > 1) t -= 1; + if(t < 1/6) return p + (q - p) * 6 * t; + if(t < 1/2) return q; + if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; + return p; + } + + if(s === 0) { + r = g = b = l; // achromatic + } + else { + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + r = hue2rgb(p, q, h + 1/3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1/3); + } + + return { r: r * 255, g: g * 255, b: b * 255 }; +} + +// `rgbToHsv` +// Converts an RGB color value to HSV +// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] +// *Returns:* { h, s, v } in [0,1] +function rgbToHsv(r, g, b) { + + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + + var max = mathMax(r, g, b), min = mathMin(r, g, b); + var h, s, v = max; + + var d = max - min; + s = max === 0 ? 0 : d / max; + + if(max == min) { + h = 0; // achromatic + } + else { + switch(max) { + case r: h = (g - b) / d + (g < b ? 6 : 0); break; + case g: h = (b - r) / d + 2; break; + case b: h = (r - g) / d + 4; break; + } + h /= 6; + } + return { h: h, s: s, v: v }; +} + +// `hsvToRgb` +// Converts an HSV color value to RGB. +// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] +// *Returns:* { r, g, b } in the set [0, 255] + function hsvToRgb(h, s, v) { + + h = bound01(h, 360) * 6; + s = bound01(s, 100); + v = bound01(v, 100); + + var i = Math.floor(h), + f = h - i, + p = v * (1 - s), + q = v * (1 - f * s), + t = v * (1 - (1 - f) * s), + mod = i % 6, + r = [v, q, p, p, t, v][mod], + g = [t, v, v, q, p, p][mod], + b = [p, p, t, v, v, q][mod]; + + return { r: r * 255, g: g * 255, b: b * 255 }; +} + +// `rgbToHex` +// Converts an RGB color to hex +// Assumes r, g, and b are contained in the set [0, 255] +// Returns a 3 or 6 character hex +function rgbToHex(r, g, b, allow3Char) { + + var hex = [ + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)) + ]; + + // Return a 3 character hex if possible + if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) { + return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0); + } + + return hex.join(""); +} + +// `rgbaToHex` +// Converts an RGBA color plus alpha transparency to hex +// Assumes r, g, b are contained in the set [0, 255] and +// a in [0, 1]. Returns a 4 or 8 character rgba hex +function rgbaToHex(r, g, b, a, allow4Char) { + + var hex = [ + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)), + pad2(convertDecimalToHex(a)) + ]; + + // Return a 4 character hex if possible + if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) { + return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); + } + + return hex.join(""); +} + +// `rgbaToArgbHex` +// Converts an RGBA color to an ARGB Hex8 string +// Rarely used, but required for "toFilter()" +function rgbaToArgbHex(r, g, b, a) { + + var hex = [ + pad2(convertDecimalToHex(a)), + pad2(mathRound(r).toString(16)), + pad2(mathRound(g).toString(16)), + pad2(mathRound(b).toString(16)) + ]; + + return hex.join(""); +} + +// `equals` +// Can be called with any tinycolor input +tinycolor.equals = function (color1, color2) { + if (!color1 || !color2) { return false; } + return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString(); +}; + +tinycolor.random = function() { + return tinycolor.fromRatio({ + r: mathRandom(), + g: mathRandom(), + b: mathRandom() + }); +}; + + +// Modification Functions +// ---------------------- +// Thanks to less.js for some of the basics here +// + +function desaturate(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.s -= amount / 100; + hsl.s = clamp01(hsl.s); + return tinycolor(hsl); +} + +function saturate(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.s += amount / 100; + hsl.s = clamp01(hsl.s); + return tinycolor(hsl); +} + +function greyscale(color) { + return tinycolor(color).desaturate(100); +} + +function lighten (color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.l += amount / 100; + hsl.l = clamp01(hsl.l); + return tinycolor(hsl); +} + +function brighten(color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var rgb = tinycolor(color).toRgb(); + rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100)))); + rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100)))); + rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100)))); + return tinycolor(rgb); +} + +function darken (color, amount) { + amount = (amount === 0) ? 0 : (amount || 10); + var hsl = tinycolor(color).toHsl(); + hsl.l -= amount / 100; + hsl.l = clamp01(hsl.l); + return tinycolor(hsl); +} + +// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue. +// Values outside of this range will be wrapped into this range. +function spin(color, amount) { + var hsl = tinycolor(color).toHsl(); + var hue = (hsl.h + amount) % 360; + hsl.h = hue < 0 ? 360 + hue : hue; + return tinycolor(hsl); +} + +// Combination Functions +// --------------------- +// Thanks to jQuery xColor for some of the ideas behind these +// + +function complement(color) { + var hsl = tinycolor(color).toHsl(); + hsl.h = (hsl.h + 180) % 360; + return tinycolor(hsl); +} + +function triad(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) + ]; +} + +function tetrad(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), + tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) + ]; +} + +function splitcomplement(color) { + var hsl = tinycolor(color).toHsl(); + var h = hsl.h; + return [ + tinycolor(color), + tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}), + tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l}) + ]; +} + +function analogous(color, results, slices) { + results = results || 6; + slices = slices || 30; + + var hsl = tinycolor(color).toHsl(); + var part = 360 / slices; + var ret = [tinycolor(color)]; + + for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) { + hsl.h = (hsl.h + part) % 360; + ret.push(tinycolor(hsl)); + } + return ret; +} + +function monochromatic(color, results) { + results = results || 6; + var hsv = tinycolor(color).toHsv(); + var h = hsv.h, s = hsv.s, v = hsv.v; + var ret = []; + var modification = 1 / results; + + while (results--) { + ret.push(tinycolor({ h: h, s: s, v: v})); + v = (v + modification) % 1; + } + + return ret; +} + +// Utility Functions +// --------------------- + +tinycolor.mix = function(color1, color2, amount) { + amount = (amount === 0) ? 0 : (amount || 50); + + var rgb1 = tinycolor(color1).toRgb(); + var rgb2 = tinycolor(color2).toRgb(); + + var p = amount / 100; + + var rgba = { + r: ((rgb2.r - rgb1.r) * p) + rgb1.r, + g: ((rgb2.g - rgb1.g) * p) + rgb1.g, + b: ((rgb2.b - rgb1.b) * p) + rgb1.b, + a: ((rgb2.a - rgb1.a) * p) + rgb1.a + }; + + return tinycolor(rgba); +}; + + +// Readability Functions +// --------------------- +// false +// tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false +tinycolor.isReadable = function(color1, color2, wcag2) { + var readability = tinycolor.readability(color1, color2); + var wcag2Parms, out; + + out = false; + + wcag2Parms = validateWCAG2Parms(wcag2); + switch (wcag2Parms.level + wcag2Parms.size) { + case "AAsmall": + case "AAAlarge": + out = readability >= 4.5; + break; + case "AAlarge": + out = readability >= 3; + break; + case "AAAsmall": + out = readability >= 7; + break; + } + return out; + +}; + +// `mostReadable` +// Given a base color and a list of possible foreground or background +// colors for that base, returns the most readable color. +// Optionally returns Black or White if the most readable color is unreadable. +// *Example* +// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255" +// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff" +// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3" +// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff" +tinycolor.mostReadable = function(baseColor, colorList, args) { + var bestColor = null; + var bestScore = 0; + var readability; + var includeFallbackColors, level, size ; + args = args || {}; + includeFallbackColors = args.includeFallbackColors ; + level = args.level; + size = args.size; + + for (var i= 0; i < colorList.length ; i++) { + readability = tinycolor.readability(baseColor, colorList[i]); + if (readability > bestScore) { + bestScore = readability; + bestColor = tinycolor(colorList[i]); + } + } + + if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) { + return bestColor; + } + else { + args.includeFallbackColors=false; + return tinycolor.mostReadable(baseColor,["#fff", "#000"],args); + } +}; + + +// Big List of Colors +// ------------------ +// +var names = tinycolor.names = { + aliceblue: "f0f8ff", + antiquewhite: "faebd7", + aqua: "0ff", + aquamarine: "7fffd4", + azure: "f0ffff", + beige: "f5f5dc", + bisque: "ffe4c4", + black: "000", + blanchedalmond: "ffebcd", + blue: "00f", + blueviolet: "8a2be2", + brown: "a52a2a", + burlywood: "deb887", + burntsienna: "ea7e5d", + cadetblue: "5f9ea0", + chartreuse: "7fff00", + chocolate: "d2691e", + coral: "ff7f50", + cornflowerblue: "6495ed", + cornsilk: "fff8dc", + crimson: "dc143c", + cyan: "0ff", + darkblue: "00008b", + darkcyan: "008b8b", + darkgoldenrod: "b8860b", + darkgray: "a9a9a9", + darkgreen: "006400", + darkgrey: "a9a9a9", + darkkhaki: "bdb76b", + darkmagenta: "8b008b", + darkolivegreen: "556b2f", + darkorange: "ff8c00", + darkorchid: "9932cc", + darkred: "8b0000", + darksalmon: "e9967a", + darkseagreen: "8fbc8f", + darkslateblue: "483d8b", + darkslategray: "2f4f4f", + darkslategrey: "2f4f4f", + darkturquoise: "00ced1", + darkviolet: "9400d3", + deeppink: "ff1493", + deepskyblue: "00bfff", + dimgray: "696969", + dimgrey: "696969", + dodgerblue: "1e90ff", + firebrick: "b22222", + floralwhite: "fffaf0", + forestgreen: "228b22", + fuchsia: "f0f", + gainsboro: "dcdcdc", + ghostwhite: "f8f8ff", + gold: "ffd700", + goldenrod: "daa520", + gray: "808080", + green: "008000", + greenyellow: "adff2f", + grey: "808080", + honeydew: "f0fff0", + hotpink: "ff69b4", + indianred: "cd5c5c", + indigo: "4b0082", + ivory: "fffff0", + khaki: "f0e68c", + lavender: "e6e6fa", + lavenderblush: "fff0f5", + lawngreen: "7cfc00", + lemonchiffon: "fffacd", + lightblue: "add8e6", + lightcoral: "f08080", + lightcyan: "e0ffff", + lightgoldenrodyellow: "fafad2", + lightgray: "d3d3d3", + lightgreen: "90ee90", + lightgrey: "d3d3d3", + lightpink: "ffb6c1", + lightsalmon: "ffa07a", + lightseagreen: "20b2aa", + lightskyblue: "87cefa", + lightslategray: "789", + lightslategrey: "789", + lightsteelblue: "b0c4de", + lightyellow: "ffffe0", + lime: "0f0", + limegreen: "32cd32", + linen: "faf0e6", + magenta: "f0f", + maroon: "800000", + mediumaquamarine: "66cdaa", + mediumblue: "0000cd", + mediumorchid: "ba55d3", + mediumpurple: "9370db", + mediumseagreen: "3cb371", + mediumslateblue: "7b68ee", + mediumspringgreen: "00fa9a", + mediumturquoise: "48d1cc", + mediumvioletred: "c71585", + midnightblue: "191970", + mintcream: "f5fffa", + mistyrose: "ffe4e1", + moccasin: "ffe4b5", + navajowhite: "ffdead", + navy: "000080", + oldlace: "fdf5e6", + olive: "808000", + olivedrab: "6b8e23", + orange: "ffa500", + orangered: "ff4500", + orchid: "da70d6", + palegoldenrod: "eee8aa", + palegreen: "98fb98", + paleturquoise: "afeeee", + palevioletred: "db7093", + papayawhip: "ffefd5", + peachpuff: "ffdab9", + peru: "cd853f", + pink: "ffc0cb", + plum: "dda0dd", + powderblue: "b0e0e6", + purple: "800080", + rebeccapurple: "663399", + red: "f00", + rosybrown: "bc8f8f", + royalblue: "4169e1", + saddlebrown: "8b4513", + salmon: "fa8072", + sandybrown: "f4a460", + seagreen: "2e8b57", + seashell: "fff5ee", + sienna: "a0522d", + silver: "c0c0c0", + skyblue: "87ceeb", + slateblue: "6a5acd", + slategray: "708090", + slategrey: "708090", + snow: "fffafa", + springgreen: "00ff7f", + steelblue: "4682b4", + tan: "d2b48c", + teal: "008080", + thistle: "d8bfd8", + tomato: "ff6347", + turquoise: "40e0d0", + violet: "ee82ee", + wheat: "f5deb3", + white: "fff", + whitesmoke: "f5f5f5", + yellow: "ff0", + yellowgreen: "9acd32" +}; + +// Make it easy to access colors via `hexNames[hex]` +var hexNames = tinycolor.hexNames = flip(names); + + +// Utilities +// --------- + +// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }` +function flip(o) { + var flipped = { }; + for (var i in o) { + if (o.hasOwnProperty(i)) { + flipped[o[i]] = i; + } + } + return flipped; +} + +// Return a valid alpha value [0,1] with all invalid values being set to 1 +function boundAlpha(a) { + a = parseFloat(a); + + if (isNaN(a) || a < 0 || a > 1) { + a = 1; + } + + return a; +} + +// Take input from [0, n] and return it as [0, 1] +function bound01(n, max) { + if (isOnePointZero(n)) { n = "100%"; } + + var processPercent = isPercentage(n); + n = mathMin(max, mathMax(0, parseFloat(n))); + + // Automatically convert percentage into number + if (processPercent) { + n = parseInt(n * max, 10) / 100; + } + + // Handle floating point rounding errors + if ((Math.abs(n - max) < 0.000001)) { + return 1; + } + + // Convert into [0, 1] range if it isn't already + return (n % max) / parseFloat(max); +} + +// Force a number between 0 and 1 +function clamp01(val) { + return mathMin(1, mathMax(0, val)); +} + +// Parse a base-16 hex value into a base-10 integer +function parseIntFromHex(val) { + return parseInt(val, 16); +} + +// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1 +// +function isOnePointZero(n) { + return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1; +} + +// Check to see if string passed in is a percentage +function isPercentage(n) { + return typeof n === "string" && n.indexOf('%') != -1; +} + +// Force a hex value to have 2 characters +function pad2(c) { + return c.length == 1 ? '0' + c : '' + c; +} + +// Replace a decimal with it's percentage value +function convertToPercentage(n) { + if (n <= 1) { + n = (n * 100) + "%"; + } + + return n; +} + +// Converts a decimal to a hex value +function convertDecimalToHex(d) { + return Math.round(parseFloat(d) * 255).toString(16); +} +// Converts a hex value to a decimal +function convertHexToDecimal(h) { + return (parseIntFromHex(h) / 255); +} + +var matchers = (function() { + + // + var CSS_INTEGER = "[-\\+]?\\d+%?"; + + // + var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; + + // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome. + var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; + + // Actual matching. + // Parentheses and commas are optional, but not required. + // Whitespace can take the place of commas or opening paren + var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; + var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; + + return { + CSS_UNIT: new RegExp(CSS_UNIT), + rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), + rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), + hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), + hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), + hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), + hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }; +})(); + +// `isValidCSSUnit` +// Take in a single string / number and check to see if it looks like a CSS unit +// (see `matchers` above for definition). +function isValidCSSUnit(color) { + return !!matchers.CSS_UNIT.exec(color); +} + +// `stringInputToObject` +// Permissive string parsing. Take in a number of formats, and output an object +// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` +function stringInputToObject(color) { + + color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase(); + var named = false; + if (names[color]) { + color = names[color]; + named = true; + } + else if (color == 'transparent') { + return { r: 0, g: 0, b: 0, a: 0, format: "name" }; + } + + // Try to match string input using regular expressions. + // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360] + // Just return an object and let the conversion functions handle that. + // This way the result will be the same whether the tinycolor is initialized with string or object. + var match; + if ((match = matchers.rgb.exec(color))) { + return { r: match[1], g: match[2], b: match[3] }; + } + if ((match = matchers.rgba.exec(color))) { + return { r: match[1], g: match[2], b: match[3], a: match[4] }; + } + if ((match = matchers.hsl.exec(color))) { + return { h: match[1], s: match[2], l: match[3] }; + } + if ((match = matchers.hsla.exec(color))) { + return { h: match[1], s: match[2], l: match[3], a: match[4] }; + } + if ((match = matchers.hsv.exec(color))) { + return { h: match[1], s: match[2], v: match[3] }; + } + if ((match = matchers.hsva.exec(color))) { + return { h: match[1], s: match[2], v: match[3], a: match[4] }; + } + if ((match = matchers.hex8.exec(color))) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + a: convertHexToDecimal(match[4]), + format: named ? "name" : "hex8" + }; + } + if ((match = matchers.hex6.exec(color))) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + format: named ? "name" : "hex" + }; + } + if ((match = matchers.hex4.exec(color))) { + return { + r: parseIntFromHex(match[1] + '' + match[1]), + g: parseIntFromHex(match[2] + '' + match[2]), + b: parseIntFromHex(match[3] + '' + match[3]), + a: convertHexToDecimal(match[4] + '' + match[4]), + format: named ? "name" : "hex8" + }; + } + if ((match = matchers.hex3.exec(color))) { + return { + r: parseIntFromHex(match[1] + '' + match[1]), + g: parseIntFromHex(match[2] + '' + match[2]), + b: parseIntFromHex(match[3] + '' + match[3]), + format: named ? "name" : "hex" + }; + } + + return false; +} + +function validateWCAG2Parms(parms) { + // return valid WCAG2 parms for isReadable. + // If input parms are invalid, return {"level":"AA", "size":"small"} + var level, size; + parms = parms || {"level":"AA", "size":"small"}; + level = (parms.level || "AA").toUpperCase(); + size = (parms.size || "small").toLowerCase(); + if (level !== "AA" && level !== "AAA") { + level = "AA"; + } + if (size !== "small" && size !== "large") { + size = "small"; + } + return {"level":level, "size":size}; +} + +// Node: Export function +if ( true && module.exports) { + module.exports = tinycolor; +} +// AMD/requirejs: Define the module +else if (true) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); +} +// Browser: Expose to window +else {} + +})(Math); -(function() { module.exports = this["wp"]["date"]; }()); /***/ }), - -/***/ 49: +/* 46 */, +/* 47 */, +/* 48 */, +/* 49 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["deprecated"]; }()); /***/ }), - -/***/ 5: +/* 50 */ /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["data"]; }()); +(function() { module.exports = this["wp"]["date"]; }()); /***/ }), +/* 51 */, +/* 52 */, +/* 53 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/***/ 51: +"use strict"; +/* unused harmony export matchesPatterns */ +/* unused harmony export findBlock */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isFromWordPress; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getPhotoHtml; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createUpgradedEmbedBlock; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getClassNames; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return fallback; }); +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _core_embeds__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85); +/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var classnames_dedupe__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68); +/* harmony import */ var classnames_dedupe__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames_dedupe__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_8__); + + + + + +/** + * Internal dependencies + */ + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + +/** + * Returns true if any of the regular expressions match the URL. + * + * @param {string} url The URL to test. + * @param {Array} patterns The list of regular expressions to test agains. + * @return {boolean} True if any of the regular expressions match the URL. + */ + +var matchesPatterns = function matchesPatterns(url) { + var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + return patterns.some(function (pattern) { + return url.match(pattern); + }); +}; +/** + * Finds the block name that should be used for the URL, based on the + * structure of the URL. + * + * @param {string} url The URL to test. + * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter + */ + +var findBlock = function findBlock(url) { + var _arr = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_core_embeds__WEBPACK_IMPORTED_MODULE_4__[/* common */ "a"]), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_core_embeds__WEBPACK_IMPORTED_MODULE_4__[/* others */ "b"])); + + for (var _i = 0; _i < _arr.length; _i++) { + var block = _arr[_i]; + + if (matchesPatterns(url, block.patterns)) { + return block.name; + } + } + + return _constants__WEBPACK_IMPORTED_MODULE_5__[/* DEFAULT_EMBED_BLOCK */ "b"]; +}; +var isFromWordPress = function isFromWordPress(html) { + return Object(lodash__WEBPACK_IMPORTED_MODULE_6__["includes"])(html, 'class="wp-embedded-content" data-secret'); +}; +var getPhotoHtml = function getPhotoHtml(photo) { + // 100% width for the preview so it fits nicely into the document, some "thumbnails" are + // actually the full size photo. If thumbnails not found, use full image. + var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url; + var photoPreview = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("p", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("img", { + src: imageUrl, + alt: photo.title, + width: "100%" + })); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["renderToString"])(photoPreview); +}; +/*** + * Creates a more suitable embed block based on the passed in props + * and attributes generated from an embed block's preview. + * + * We require `attributesFromPreview` to be generated from the latest attributes + * and preview, and because of the way the react lifecycle operates, we can't + * guarantee that the attributes contained in the block's props are the latest + * versions, so we require that these are generated separately. + * See `getAttributesFromPreview` in the generated embed edit component. + * + * @param {Object} props The block's props. + * @param {Object} attributesFromPreview Attributes generated from the block's most up to date preview. + * @return {Object|undefined} A more suitable embed block if one exists. + */ + +var createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) { + var preview = props.preview, + name = props.name; + var url = props.attributes.url; + + if (!url) { + return; + } + + var matchingBlock = findBlock(url); // WordPress blocks can work on multiple sites, and so don't have patterns, + // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL. + + if (_constants__WEBPACK_IMPORTED_MODULE_5__[/* WORDPRESS_EMBED_BLOCK */ "d"] !== name && _constants__WEBPACK_IMPORTED_MODULE_5__[/* DEFAULT_EMBED_BLOCK */ "b"] !== matchingBlock) { + // At this point, we have discovered a more suitable block for this url, so transform it. + if (name !== matchingBlock) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_8__["createBlock"])(matchingBlock, { + url: url + }); + } + } + + if (preview) { + var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead. + + if (isFromWordPress(html)) { + // If this is not the WordPress embed block, transform it into one. + if (_constants__WEBPACK_IMPORTED_MODULE_5__[/* WORDPRESS_EMBED_BLOCK */ "d"] !== name) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_8__["createBlock"])(_constants__WEBPACK_IMPORTED_MODULE_5__[/* WORDPRESS_EMBED_BLOCK */ "d"], Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({ + url: url + }, attributesFromPreview)); + } + } + } +}; +/** + * Returns class names with any relevant responsive aspect ratio names. + * + * @param {string} html The preview HTML that possibly contains an iframe with width and height set. + * @param {string} existingClassNames Any existing class names. + * @param {boolean} allowResponsive If the responsive class names should be added, or removed. + * @return {string} Deduped class names. + */ + +function getClassNames(html) { + var existingClassNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + + if (!allowResponsive) { + // Remove all of the aspect ratio related class names. + var aspectRatioClassNames = { + 'wp-has-aspect-ratio': false + }; + + for (var ratioIndex = 0; ratioIndex < _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"].length; ratioIndex++) { + var aspectRatioToRemove = _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"][ratioIndex]; + aspectRatioClassNames[aspectRatioToRemove.className] = false; + } + + return classnames_dedupe__WEBPACK_IMPORTED_MODULE_7___default()(existingClassNames, aspectRatioClassNames); + } + + var previewDocument = document.implementation.createHTMLDocument(''); + previewDocument.body.innerHTML = html; + var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block. + + if (iframe && iframe.height && iframe.width) { + var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it. + + for (var _ratioIndex = 0; _ratioIndex < _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"].length; _ratioIndex++) { + var potentialRatio = _constants__WEBPACK_IMPORTED_MODULE_5__[/* ASPECT_RATIOS */ "a"][_ratioIndex]; + + if (aspectRatio >= potentialRatio.ratio) { + var _classnames; + + return classnames_dedupe__WEBPACK_IMPORTED_MODULE_7___default()(existingClassNames, (_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, potentialRatio.className, allowResponsive), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames)); + } + } + } + + return existingClassNames; +} +/** + * Fallback behaviour for unembeddable URLs. + * Creates a paragraph block containing a link to the URL, and calls `onReplace`. + * + * @param {string} url The URL that could not be embedded. + * @param {function} onReplace Function to call with the created fallback block. + */ + +function fallback(url, onReplace) { + var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("a", { + href: url + }, url); + onReplace(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_8__["createBlock"])('core/paragraph', { + content: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["renderToString"])(link) + })); +} + + +/***/ }), +/* 54 */, +/* 55 */, +/* 56 */, +/* 57 */, +/* 58 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return HOSTS_NO_PREVIEWS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ASPECT_RATIOS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return DEFAULT_EMBED_BLOCK; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return WORDPRESS_EMBED_BLOCK; }); +// These embeds do not work in sandboxes due to the iframe's security restrictions. +var HOSTS_NO_PREVIEWS = ['facebook.com', 'smugmug.com']; +var ASPECT_RATIOS = [// Common video resolutions. +{ + ratio: '2.33', + className: 'wp-embed-aspect-21-9' +}, { + ratio: '2.00', + className: 'wp-embed-aspect-18-9' +}, { + ratio: '1.78', + className: 'wp-embed-aspect-16-9' +}, { + ratio: '1.33', + className: 'wp-embed-aspect-4-3' +}, // Vertical video and instagram square video support. +{ + ratio: '1.00', + className: 'wp-embed-aspect-1-1' +}, { + ratio: '0.56', + className: 'wp-embed-aspect-9-16' +}, { + ratio: '0.50', + className: 'wp-embed-aspect-1-2' +}]; +var DEFAULT_EMBED_BLOCK = 'core/embed'; +var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress'; + + +/***/ }), +/* 59 */ /***/ (function(module, exports) { var g; @@ -15017,29 +2377,20 @@ module.exports = g; /***/ }), - -/***/ 58: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blockEditor"]; }()); - -/***/ }), - -/***/ 6: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["editor"]; }()); - -/***/ }), - -/***/ 60: +/* 60 */, +/* 61 */, +/* 62 */, +/* 63 */, +/* 64 */, +/* 65 */, +/* 66 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["autop"]; }()); /***/ }), - -/***/ 62: +/* 67 */, +/* 68 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -15154,15 +2505,27 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), - -/***/ 7: +/* 69 */, +/* 70 */, +/* 71 */, +/* 72 */ /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["compose"]; }()); +(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), - -/***/ 77: +/* 73 */, +/* 74 */, +/* 75 */, +/* 76 */, +/* 77 */, +/* 78 */, +/* 79 */, +/* 80 */, +/* 81 */, +/* 82 */, +/* 83 */, +/* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15189,8 +2552,8 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! -var punycode = __webpack_require__(101); -var util = __webpack_require__(103); +var punycode = __webpack_require__(117); +var util = __webpack_require__(119); exports.parse = urlParse; exports.resolve = urlResolve; @@ -15265,7 +2628,7 @@ var protocolPattern = /^([a-z0-9.+-]+:)/i, 'gopher:': true, 'file:': true }, - querystring = __webpack_require__(104); + querystring = __webpack_require__(120); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && util.isObject(url) && url instanceof Url) return url; @@ -15901,47 +3264,3893 @@ Url.prototype.parseHost = function() { /***/ }), - -/***/ 8: +/* 85 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return common; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return others; }); +/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); +/** + * Internal dependencies + */ -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); +/** + * WordPress dependencies + */ - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); + + +var common = [{ + name: 'core-embed/twitter', + settings: { + title: 'Twitter', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedTwitterIcon */ "k"], + keywords: ['tweet'], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a tweet.') + }, + patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i] +}, { + name: 'core-embed/youtube', + settings: { + title: 'YouTube', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedYouTubeIcon */ "o"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a YouTube video.') + }, + patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i] +}, { + name: 'core-embed/facebook', + settings: { + title: 'Facebook', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedFacebookIcon */ "d"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Facebook post.') + }, + patterns: [/^https?:\/\/www\.facebook.com\/.+/i] +}, { + name: 'core-embed/instagram', + settings: { + title: 'Instagram', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedInstagramIcon */ "f"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an Instagram post.') + }, + patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i] +}, { + name: 'core-embed/wordpress', + settings: { + title: 'WordPress', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedWordPressIcon */ "n"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('post'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('blog')], + responsive: false, + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a WordPress post.') + } +}, { + name: 'core-embed/soundcloud', + settings: { + title: 'SoundCloud', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed SoundCloud content.') + }, + patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i] +}, { + name: 'core-embed/spotify', + settings: { + title: 'Spotify', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedSpotifyIcon */ "i"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Spotify content.') + }, + patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i] +}, { + name: 'core-embed/flickr', + settings: { + title: 'Flickr', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedFlickrIcon */ "e"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Flickr content.') + }, + patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i] +}, { + name: 'core-embed/vimeo', + settings: { + title: 'Vimeo', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVimeoIcon */ "m"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Vimeo video.') + }, + patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i] +}]; +var others = [{ + name: 'core-embed/animoto', + settings: { + title: 'Animoto', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an Animoto video.') + }, + patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i] +}, { + name: 'core-embed/cloudup', + settings: { + title: 'Cloudup', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Cloudup content.') + }, + patterns: [/^https?:\/\/cloudup\.com\/.+/i] +}, { + name: 'core-embed/collegehumor', + settings: { + title: 'CollegeHumor', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed CollegeHumor content.') + }, + patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i] +}, { + name: 'core-embed/crowdsignal', + settings: { + title: 'Crowdsignal', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + keywords: ['polldaddy'], + transform: [{ + type: 'block', + blocks: ['core-embed/polldaddy'], + transform: function transform(content) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core-embed/crowdsignal', { + content: content + }); + } + }], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Crowdsignal (formerly Polldaddy) content.') + }, + patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i] +}, { + name: 'core-embed/dailymotion', + settings: { + title: 'Dailymotion', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Dailymotion video.') + }, + patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i] +}, { + name: 'core-embed/hulu', + settings: { + title: 'Hulu', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Hulu content.') + }, + patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i] +}, { + name: 'core-embed/imgur', + settings: { + title: 'Imgur', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedPhotoIcon */ "g"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Imgur content.') + }, + patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i] +}, { + name: 'core-embed/issuu', + settings: { + title: 'Issuu', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Issuu content.') + }, + patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i] +}, { + name: 'core-embed/kickstarter', + settings: { + title: 'Kickstarter', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Kickstarter content.') + }, + patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i] +}, { + name: 'core-embed/meetup-com', + settings: { + title: 'Meetup.com', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Meetup.com content.') + }, + patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i] +}, { + name: 'core-embed/mixcloud', + settings: { + title: 'Mixcloud', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Mixcloud content.') + }, + patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i] +}, { + // Deprecated in favour of the core-embed/crowdsignal block + name: 'core-embed/polldaddy', + settings: { + title: 'Polldaddy', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Polldaddy content.'), + supports: { + inserter: false } + }, + patterns: [] +}, { + name: 'core-embed/reddit', + settings: { + title: 'Reddit', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedRedditIcon */ "h"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Reddit thread.') + }, + patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i] +}, { + name: 'core-embed/reverbnation', + settings: { + title: 'ReverbNation', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed ReverbNation content.') + }, + patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i] +}, { + name: 'core-embed/screencast', + settings: { + title: 'Screencast', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Screencast content.') + }, + patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i] +}, { + name: 'core-embed/scribd', + settings: { + title: 'Scribd', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Scribd content.') + }, + patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i] +}, { + name: 'core-embed/slideshare', + settings: { + title: 'Slideshare', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Slideshare content.') + }, + patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i] +}, { + name: 'core-embed/smugmug', + settings: { + title: 'SmugMug', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedPhotoIcon */ "g"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed SmugMug content.') + }, + patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i] +}, { + // Deprecated in favour of the core-embed/speaker-deck block. + name: 'core-embed/speaker', + settings: { + title: 'Speaker', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAudioIcon */ "b"], + supports: { + inserter: false + } + }, + patterns: [] +}, { + name: 'core-embed/speaker-deck', + settings: { + title: 'Speaker Deck', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedContentIcon */ "c"], + transform: [{ + type: 'block', + blocks: ['core-embed/speaker'], + transform: function transform(content) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core-embed/speaker-deck', { + content: content + }); + } + }], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Speaker Deck content.') + }, + patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i] +}, { + name: 'core-embed/ted', + settings: { + title: 'TED', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a TED video.') + }, + patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i] +}, { + name: 'core-embed/tumblr', + settings: { + title: 'Tumblr', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedTumbrIcon */ "j"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Tumblr post.') + }, + patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i] +}, { + name: 'core-embed/videopress', + settings: { + title: 'VideoPress', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a VideoPress video.') + }, + patterns: [/^https?:\/\/videopress\.com\/.+/i] +}, { + name: 'core-embed/wordpress-tv', + settings: { + title: 'WordPress.tv', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedVideoIcon */ "l"], + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a WordPress.tv video.') + }, + patterns: [/^https?:\/\/wordpress\.tv\/.+/i] +}, { + name: 'core-embed/amazon-kindle', + settings: { + title: 'Amazon Kindle', + icon: _icons__WEBPACK_IMPORTED_MODULE_0__[/* embedAmazonIcon */ "a"], + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('ebook')], + responsive: false, + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Amazon Kindle content.') + }, + patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i] +}]; - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); + +/***/ }), +/* 86 */, +/* 87 */, +/* 88 */, +/* 89 */, +/* 90 */, +/* 91 */, +/* 92 */, +/* 93 */, +/* 94 */, +/* 95 */, +/* 96 */, +/* 97 */, +/* 98 */, +/* 99 */, +/* 100 */, +/* 101 */, +/* 102 */, +/* 103 */, +/* 104 */, +/* 105 */, +/* 106 */, +/* 107 */, +/* 108 */, +/* 109 */, +/* 110 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js +var core_embeds = __webpack_require__(85); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js +var icons = __webpack_require__(36); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js +var util = __webpack_require__(53); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-controls.js + + +/** + * WordPress dependencies + */ + + + + + +var embed_controls_EmbedControls = function EmbedControls(props) { + var blockSupportsResponsive = props.blockSupportsResponsive, + showEditButton = props.showEditButton, + themeSupportsResponsive = props.themeSupportsResponsive, + allowResponsive = props.allowResponsive, + getResponsiveHelp = props.getResponsiveHelp, + toggleResponsive = props.toggleResponsive, + switchBackToURLInput = props.switchBackToURLInput; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, showEditButton && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit URL'), + icon: "edit", + onClick: switchBackToURLInput + }))), themeSupportsResponsive && blockSupportsResponsive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Media Settings'), + className: "blocks-responsive" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Resize for smaller devices'), + checked: allowResponsive, + help: getResponsiveHelp, + onChange: toggleResponsive + })))); +}; + +/* harmony default export */ var embed_controls = (embed_controls_EmbedControls); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-loading.js + + +/** + * WordPress dependencies + */ + + + +var embed_loading_EmbedLoading = function EmbedLoading() { + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-embed is-loading" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Embedding…'))); +}; + +/* harmony default export */ var embed_loading = (embed_loading_EmbedLoading); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-placeholder.js + + +/** + * WordPress dependencies + */ + + + + +var embed_placeholder_EmbedPlaceholder = function EmbedPlaceholder(props) { + var icon = props.icon, + label = props.label, + value = props.value, + onSubmit = props.onSubmit, + onChange = props.onChange, + cannotEmbed = props.cannotEmbed, + fallback = props.fallback, + tryAgain = props.tryAgain; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon, + showColors: true + }), + label: label, + className: "wp-block-embed" + }, Object(external_this_wp_element_["createElement"])("form", { + onSubmit: onSubmit + }, Object(external_this_wp_element_["createElement"])("input", { + type: "url", + value: value || '', + className: "components-placeholder__input", + "aria-label": label, + placeholder: Object(external_this_wp_i18n_["__"])('Enter URL to embed here…'), + onChange: onChange + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + type: "submit" + }, Object(external_this_wp_i18n_["_x"])('Embed', 'button label')), cannotEmbed && Object(external_this_wp_element_["createElement"])("p", { + className: "components-placeholder__error" + }, Object(external_this_wp_i18n_["__"])('Sorry, this content could not be embedded.'), Object(external_this_wp_element_["createElement"])("br", null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + onClick: tryAgain + }, Object(external_this_wp_i18n_["_x"])('Try again', 'button label')), " ", Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + onClick: fallback + }, Object(external_this_wp_i18n_["_x"])('Convert to link', 'button label'))))); +}; + +/* harmony default export */ var embed_placeholder = (embed_placeholder_EmbedPlaceholder); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js +var constants = __webpack_require__(58); + +// EXTERNAL MODULE: ./node_modules/url/url.js +var url_url = __webpack_require__(84); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: ./node_modules/classnames/dedupe.js +var dedupe = __webpack_require__(68); +var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/wp-embed-preview.js + + + + + + + + +/** + * WordPress dependencies + */ + + +/** + * Browser dependencies + */ + +var _window = window, + FocusEvent = _window.FocusEvent; + +var wp_embed_preview_WpEmbedPreview = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(WpEmbedPreview, _Component); + + function WpEmbedPreview() { + var _this; + + Object(classCallCheck["a" /* default */])(this, WpEmbedPreview); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WpEmbedPreview).apply(this, arguments)); + _this.checkFocus = _this.checkFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.node = Object(external_this_wp_element_["createRef"])(); + return _this; + } + /** + * Checks whether the wp embed iframe is the activeElement, + * if it is dispatch a focus event. + */ + + + Object(createClass["a" /* default */])(WpEmbedPreview, [{ + key: "checkFocus", + value: function checkFocus() { + var _document = document, + activeElement = _document.activeElement; + + if (activeElement.tagName !== 'IFRAME' || activeElement.parentNode !== this.node.current) { + return; + } + + var focusEvent = new FocusEvent('focus', { + bubbles: true + }); + activeElement.dispatchEvent(focusEvent); + } + }, { + key: "render", + value: function render() { + var html = this.props.html; + return Object(external_this_wp_element_["createElement"])("div", { + ref: this.node, + className: "wp-block-embed__wrapper", + dangerouslySetInnerHTML: { + __html: html + } + }); + } + }]); + + return WpEmbedPreview; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var wp_embed_preview = (Object(external_this_wp_compose_["withGlobalEvents"])({ + blur: 'checkFocus' +})(wp_embed_preview_WpEmbedPreview)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/embed-preview.js + + + + + + + + +/** + * Internal dependencies + */ + + +/** + * External dependencies + */ + + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +var embed_preview_EmbedPreview = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(EmbedPreview, _Component); + + function EmbedPreview() { + var _this; + + Object(classCallCheck["a" /* default */])(this, EmbedPreview); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(EmbedPreview).apply(this, arguments)); + _this.hideOverlay = _this.hideOverlay.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + interactive: false + }; + return _this; } - return target; + Object(createClass["a" /* default */])(EmbedPreview, [{ + key: "hideOverlay", + value: function hideOverlay() { + // This is called onMouseUp on the overlay. We can't respond to the `isSelected` prop + // changing, because that happens on mouse down, and the overlay immediately disappears, + // and the mouse event can end up in the preview content. We can't use onClick on + // the overlay to hide it either, because then the editor misses the mouseup event, and + // thinks we're multi-selecting blocks. + this.setState({ + interactive: true + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + preview = _this$props.preview, + url = _this$props.url, + type = _this$props.type, + caption = _this$props.caption, + onCaptionChange = _this$props.onCaptionChange, + isSelected = _this$props.isSelected, + className = _this$props.className, + icon = _this$props.icon, + label = _this$props.label; + var scripts = preview.scripts; + var interactive = this.state.interactive; + var html = 'photo' === type ? Object(util["d" /* getPhotoHtml */])(preview) : preview.html; + var parsedHost = Object(url_url["parse"])(url).host.split('.'); + var parsedHostBaseUrl = parsedHost.splice(parsedHost.length - 2, parsedHost.length - 1).join('.'); + var cannotPreview = Object(external_lodash_["includes"])(constants["c" /* HOSTS_NO_PREVIEWS */], parsedHostBaseUrl); // translators: %s: host providing embed content e.g: www.youtube.com + + var iframeTitle = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Embedded content from %s'), parsedHostBaseUrl); + var sandboxClassnames = dedupe_default()(type, className, 'wp-block-embed__wrapper'); // Disabled because the overlay div doesn't actually have a role or functionality + // as far as the user is concerned. We're just catching the first click so that + // the block can be selected without interacting with the embed preview that the overlay covers. + + /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + var embedWrapper = 'wp-embed' === type ? Object(external_this_wp_element_["createElement"])(wp_embed_preview, { + html: html + }) : Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-embed__wrapper" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { + html: html, + scripts: scripts, + title: iframeTitle, + type: sandboxClassnames, + onFocus: this.hideOverlay + }), !interactive && Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-embed__interactive-overlay", + onMouseUp: this.hideOverlay + })); + /* eslint-enable jsx-a11y/no-static-element-interactions */ + + /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ + + return Object(external_this_wp_element_["createElement"])("figure", { + className: dedupe_default()(className, 'wp-block-embed', { + 'is-type-video': 'video' === type + }) + }, cannotPreview ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon, + showColors: true + }), + label: label + }, Object(external_this_wp_element_["createElement"])("p", { + className: "components-placeholder__error" + }, Object(external_this_wp_element_["createElement"])("a", { + href: url + }, url)), Object(external_this_wp_element_["createElement"])("p", { + className: "components-placeholder__error" + }, + /* translators: %s: host providing embed content e.g: www.youtube.com */ + Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])("Embedded content from %s can't be previewed in the editor."), parsedHostBaseUrl))) : embedWrapper, (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: onCaptionChange, + inlineToolbar: true + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps, state) { + if (!nextProps.isSelected && state.interactive) { + // We only want to change this when the block is not selected, because changing it when + // the block becomes selected makes the overlap disappear too early. Hiding the overlay + // happens on mouseup when the overlay is clicked. + return { + interactive: false + }; + } + + return null; + } + }]); + + return EmbedPreview; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var embed_preview = (embed_preview_EmbedPreview); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/edit.js + + + + + + + + +/** + * Internal dependencies + */ + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + +function getEmbedEditComponent(title, icon) { + var responsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + return ( + /*#__PURE__*/ + function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + function _class() { + var _this; + + Object(classCallCheck["a" /* default */])(this, _class); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments)); + _this.switchBackToURLInput = _this.switchBackToURLInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setUrl = _this.setUrl.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.getAttributesFromPreview = _this.getAttributesFromPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setAttributesFromPreview = _this.setAttributesFromPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.getResponsiveHelp = _this.getResponsiveHelp.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.toggleResponsive = _this.toggleResponsive.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.handleIncomingPreview = _this.handleIncomingPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + editingURL: false, + url: _this.props.attributes.url + }; + + if (_this.props.preview) { + _this.handleIncomingPreview(); + } + + return _this; + } + + Object(createClass["a" /* default */])(_class, [{ + key: "handleIncomingPreview", + value: function handleIncomingPreview() { + var allowResponsive = this.props.attributes.allowResponsive; + this.setAttributesFromPreview(); + var upgradedBlock = Object(util["a" /* createUpgradedEmbedBlock */])(this.props, this.getAttributesFromPreview(this.props.preview, allowResponsive)); + + if (upgradedBlock) { + this.props.onReplace(upgradedBlock); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var hasPreview = undefined !== this.props.preview; + var hadPreview = undefined !== prevProps.preview; + var previewChanged = prevProps.preview && this.props.preview && this.props.preview.html !== prevProps.preview.html; + var switchedPreview = previewChanged || hasPreview && !hadPreview; + var switchedURL = this.props.attributes.url !== prevProps.attributes.url; + + if (switchedPreview || switchedURL) { + if (this.props.cannotEmbed) { + // Can't embed this URL, and we've just received or switched the preview. + return; + } + + this.handleIncomingPreview(); + } + } + }, { + key: "setUrl", + value: function setUrl(event) { + if (event) { + event.preventDefault(); + } + + var url = this.state.url; + var setAttributes = this.props.setAttributes; + this.setState({ + editingURL: false + }); + setAttributes({ + url: url + }); + } + /*** + * Gets block attributes based on the preview and responsive state. + * + * @param {string} preview The preview data. + * @param {boolean} allowResponsive Apply responsive classes to fixed size content. + * @return {Object} Attributes and values. + */ + + }, { + key: "getAttributesFromPreview", + value: function getAttributesFromPreview(preview) { + var allowResponsive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'. + + var _preview$type = preview.type, + type = _preview$type === void 0 ? 'rich' : _preview$type; // If we got a provider name from the API, use it for the slug, otherwise we use the title, + // because not all embed code gives us a provider name. + + var html = preview.html, + providerName = preview.provider_name; + var providerNameSlug = Object(external_lodash_["kebabCase"])(Object(external_lodash_["toLower"])('' !== providerName ? providerName : title)); + + if (Object(util["e" /* isFromWordPress */])(html)) { + type = 'wp-embed'; + } + + if (html || 'photo' === type) { + attributes.type = type; + attributes.providerNameSlug = providerNameSlug; + } + + attributes.className = Object(util["c" /* getClassNames */])(html, this.props.attributes.className, responsive && allowResponsive); + return attributes; + } + /*** + * Sets block attributes based on the preview data. + */ + + }, { + key: "setAttributesFromPreview", + value: function setAttributesFromPreview() { + var _this$props = this.props, + setAttributes = _this$props.setAttributes, + preview = _this$props.preview; + var allowResponsive = this.props.attributes.allowResponsive; + setAttributes(this.getAttributesFromPreview(preview, allowResponsive)); + } + }, { + key: "switchBackToURLInput", + value: function switchBackToURLInput() { + this.setState({ + editingURL: true + }); + } + }, { + key: "getResponsiveHelp", + value: function getResponsiveHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('This embed will preserve its aspect ratio when the browser is resized.') : Object(external_this_wp_i18n_["__"])('This embed may not preserve its aspect ratio when the browser is resized.'); + } + }, { + key: "toggleResponsive", + value: function toggleResponsive() { + var _this$props$attribute = this.props.attributes, + allowResponsive = _this$props$attribute.allowResponsive, + className = _this$props$attribute.className; + var html = this.props.preview.html; + var newAllowResponsive = !allowResponsive; + this.props.setAttributes({ + allowResponsive: newAllowResponsive, + className: Object(util["c" /* getClassNames */])(html, className, responsive && newAllowResponsive) + }); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$state = this.state, + url = _this$state.url, + editingURL = _this$state.editingURL; + var _this$props$attribute2 = this.props.attributes, + caption = _this$props$attribute2.caption, + type = _this$props$attribute2.type, + allowResponsive = _this$props$attribute2.allowResponsive; + var _this$props2 = this.props, + fetching = _this$props2.fetching, + setAttributes = _this$props2.setAttributes, + isSelected = _this$props2.isSelected, + className = _this$props2.className, + preview = _this$props2.preview, + cannotEmbed = _this$props2.cannotEmbed, + themeSupportsResponsive = _this$props2.themeSupportsResponsive, + tryAgain = _this$props2.tryAgain; + + if (fetching) { + return Object(external_this_wp_element_["createElement"])(embed_loading, null); + } // translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists + + + var label = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('%s URL'), title); // No preview, or we can't embed the current URL, or we've clicked the edit button. + + if (!preview || cannotEmbed || editingURL) { + return Object(external_this_wp_element_["createElement"])(embed_placeholder, { + icon: icon, + label: label, + onSubmit: this.setUrl, + value: url, + cannotEmbed: cannotEmbed, + onChange: function onChange(event) { + return _this2.setState({ + url: event.target.value + }); + }, + fallback: function fallback() { + return Object(util["b" /* fallback */])(url, _this2.props.onReplace); + }, + tryAgain: tryAgain + }); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(embed_controls, { + showEditButton: preview && !cannotEmbed, + themeSupportsResponsive: themeSupportsResponsive, + blockSupportsResponsive: responsive, + allowResponsive: allowResponsive, + getResponsiveHelp: this.getResponsiveHelp, + toggleResponsive: this.toggleResponsive, + switchBackToURLInput: this.switchBackToURLInput + }), Object(external_this_wp_element_["createElement"])(embed_preview, { + preview: preview, + className: className, + url: url, + type: type, + caption: caption, + onCaptionChange: function onCaptionChange(value) { + return setAttributes({ + caption: value + }); + }, + isSelected: isSelected, + icon: icon, + label: label + })); + } + }]); + + return _class; + }(external_this_wp_element_["Component"]) + ); } -/***/ }), +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); -/***/ 81: +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/settings.js + + + + +/** + * Internal dependencies + */ + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +var embedAttributes = { + url: { + type: 'string' + }, + caption: { + type: 'string', + source: 'html', + selector: 'figcaption' + }, + type: { + type: 'string' + }, + providerNameSlug: { + type: 'string' + }, + allowResponsive: { + type: 'boolean', + default: true + } +}; +function getEmbedBlockSettings(_ref) { + var title = _ref.title, + description = _ref.description, + icon = _ref.icon, + _ref$category = _ref.category, + category = _ref$category === void 0 ? 'embed' : _ref$category, + transforms = _ref.transforms, + _ref$keywords = _ref.keywords, + keywords = _ref$keywords === void 0 ? [] : _ref$keywords, + _ref$supports = _ref.supports, + supports = _ref$supports === void 0 ? {} : _ref$supports, + _ref$responsive = _ref.responsive, + responsive = _ref$responsive === void 0 ? true : _ref$responsive; + + var blockDescription = description || Object(external_this_wp_i18n_["__"])('Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.'); + + var edit = getEmbedEditComponent(title, icon, responsive); + return { + title: title, + description: blockDescription, + icon: icon, + category: category, + keywords: keywords, + attributes: embedAttributes, + supports: Object(objectSpread["a" /* default */])({ + align: true + }, supports), + transforms: transforms, + edit: Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var url = ownProps.attributes.url; + var core = select('core'); + var getEmbedPreview = core.getEmbedPreview, + isPreviewEmbedFallback = core.isPreviewEmbedFallback, + isRequestingEmbedPreview = core.isRequestingEmbedPreview, + getThemeSupports = core.getThemeSupports; + var preview = undefined !== url && getEmbedPreview(url); + var previewIsFallback = undefined !== url && isPreviewEmbedFallback(url); + var fetching = undefined !== url && isRequestingEmbedPreview(url); + var themeSupports = getThemeSupports(); // The external oEmbed provider does not exist. We got no type info and no html. + + var badEmbedProvider = !!preview && undefined === preview.type && false === preview.html; // Some WordPress URLs that can't be embedded will cause the API to return + // a valid JSON response with no HTML and `data.status` set to 404, rather + // than generating a fallback response as other embeds do. + + var wordpressCantEmbed = !!preview && preview.data && preview.data.status === 404; + var validPreview = !!preview && !badEmbedProvider && !wordpressCantEmbed; + var cannotEmbed = undefined !== url && (!validPreview || previewIsFallback); + return { + preview: validPreview ? preview : undefined, + fetching: fetching, + themeSupportsResponsive: themeSupports['responsive-embeds'], + cannotEmbed: cannotEmbed + }; + }), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var url = ownProps.attributes.url; + var coreData = dispatch('core/data'); + + var tryAgain = function tryAgain() { + coreData.invalidateResolution('core', 'getEmbedPreview', [url]); + }; + + return { + tryAgain: tryAgain + }; + }))(edit), + save: function save(_ref2) { + var _classnames; + + var attributes = _ref2.attributes; + var url = attributes.url, + caption = attributes.caption, + type = attributes.type, + providerNameSlug = attributes.providerNameSlug; + + if (!url) { + return null; + } + + var embedClassName = dedupe_default()('wp-block-embed', (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames)); + return Object(external_this_wp_element_["createElement"])("figure", { + className: embedClassName + }, Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-embed__wrapper" + }, "\n".concat(url, "\n") + /* URL needs to be on its own line. */ + ), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + }, + deprecated: [{ + attributes: embedAttributes, + save: function save(_ref3) { + var _classnames2; + + var attributes = _ref3.attributes; + var url = attributes.url, + caption = attributes.caption, + type = attributes.type, + providerNameSlug = attributes.providerNameSlug; + + if (!url) { + return null; + } + + var embedClassName = dedupe_default()('wp-block-embed', (_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "is-type-".concat(type), type), Object(defineProperty["a" /* default */])(_classnames2, "is-provider-".concat(providerNameSlug), providerNameSlug), _classnames2)); + return Object(external_this_wp_element_["createElement"])("figure", { + className: embedClassName + }, "\n".concat(url, "\n") + /* URL needs to be on its own line. */ + , !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } + }] + }; +} + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return embed_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "common", function() { return common; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "others", function() { return others; }); + + +/** + * Internal dependencies + */ + + + +/** + * WordPress dependencies + */ + + + +var embed_name = 'core/embed'; +var settings = getEmbedBlockSettings({ + title: Object(external_this_wp_i18n_["_x"])('Embed', 'block title'), + description: Object(external_this_wp_i18n_["__"])('Embed videos, images, tweets, audio, and other content from external sources.'), + icon: icons["c" /* embedContentIcon */], + // Unknown embeds should not be responsive by default. + responsive: false, + transforms: { + from: [{ + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'P' && /^\s*(https?:\/\/\S+)\s*$/i.test(node.textContent); + }, + transform: function transform(node) { + return Object(external_this_wp_blocks_["createBlock"])('core/embed', { + url: node.textContent.trim() + }); + } + }] + } +}); +var common = core_embeds["a" /* common */].map(function (embedDefinition) { + return Object(objectSpread["a" /* default */])({}, embedDefinition, { + settings: getEmbedBlockSettings(embedDefinition.settings) + }); +}); +var others = core_embeds["b" /* others */].map(function (embedDefinition) { + return Object(objectSpread["a" /* default */])({}, embedDefinition, { + settings: getEmbedBlockSettings(embedDefinition.settings) + }); +}); + + +/***/ }), +/* 111 */, +/* 112 */, +/* 113 */, +/* 114 */, +/* 115 */, +/* 116 */, +/* 117 */ +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */ +;(function(root) { + + /** Detect free variables */ + var freeExports = true && exports && + !exports.nodeType && exports; + var freeModule = true && module && + !module.nodeType && module; + var freeGlobal = typeof global == 'object' && global; + if ( + freeGlobal.global === freeGlobal || + freeGlobal.window === freeGlobal || + freeGlobal.self === freeGlobal + ) { + root = freeGlobal; + } + + /** + * The `punycode` object. + * @name punycode + * @type Object + */ + var punycode, + + /** Highest positive signed 32-bit float value */ + maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 + + /** Bootstring parameters */ + base = 36, + tMin = 1, + tMax = 26, + skew = 38, + damp = 700, + initialBias = 72, + initialN = 128, // 0x80 + delimiter = '-', // '\x2D' + + /** Regular expressions */ + regexPunycode = /^xn--/, + regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars + regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators + + /** Error messages */ + errors = { + 'overflow': 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input' + }, + + /** Convenience shortcuts */ + baseMinusTMin = base - tMin, + floor = Math.floor, + stringFromCharCode = String.fromCharCode, + + /** Temporary variable */ + key; + + /*--------------------------------------------------------------------------*/ + + /** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */ + function error(type) { + throw new RangeError(errors[type]); + } + + /** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */ + function map(array, fn) { + var length = array.length; + var result = []; + while (length--) { + result[length] = fn(array[length]); + } + return result; + } + + /** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {Array} A new string of characters returned by the callback + * function. + */ + function mapDomain(string, fn) { + var parts = string.split('@'); + var result = ''; + if (parts.length > 1) { + // In email addresses, only the domain name should be punycoded. Leave + // the local part (i.e. everything up to `@`) intact. + result = parts[0] + '@'; + string = parts[1]; + } + // Avoid `split(regex)` for IE8 compatibility. See #17. + string = string.replace(regexSeparators, '\x2E'); + var labels = string.split('.'); + var encoded = map(labels, fn).join('.'); + return result + encoded; + } + + /** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */ + function ucs2decode(string) { + var output = [], + counter = 0, + length = string.length, + value, + extra; + while (counter < length) { + value = string.charCodeAt(counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // high surrogate, and there is a next character + extra = string.charCodeAt(counter++); + if ((extra & 0xFC00) == 0xDC00) { // low surrogate + output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // unmatched surrogate; only append this code unit, in case the next + // code unit is the high surrogate of a surrogate pair + output.push(value); + counter--; + } + } else { + output.push(value); + } + } + return output; + } + + /** + * Creates a string based on an array of numeric code points. + * @see `punycode.ucs2.decode` + * @memberOf punycode.ucs2 + * @name encode + * @param {Array} codePoints The array of numeric code points. + * @returns {String} The new Unicode string (UCS-2). + */ + function ucs2encode(array) { + return map(array, function(value) { + var output = ''; + if (value > 0xFFFF) { + value -= 0x10000; + output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); + value = 0xDC00 | value & 0x3FF; + } + output += stringFromCharCode(value); + return output; + }).join(''); + } + + /** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */ + function basicToDigit(codePoint) { + if (codePoint - 48 < 10) { + return codePoint - 22; + } + if (codePoint - 65 < 26) { + return codePoint - 65; + } + if (codePoint - 97 < 26) { + return codePoint - 97; + } + return base; + } + + /** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */ + function digitToBasic(digit, flag) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); + } + + /** + * Bias adaptation function as per section 3.4 of RFC 3492. + * https://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */ + function adapt(delta, numPoints, firstTime) { + var k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { + delta = floor(delta / baseMinusTMin); + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); + } + + /** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */ + function decode(input) { + // Don't use UCS-2 + var output = [], + inputLength = input.length, + out, + i = 0, + n = initialN, + bias = initialBias, + basic, + j, + index, + oldi, + w, + k, + digit, + t, + /** Cached calculation results */ + baseMinusT; + + // Handle the basic code points: let `basic` be the number of input code + // points before the last delimiter, or `0` if there is none, then copy + // the first basic code points to the output. + + basic = input.lastIndexOf(delimiter); + if (basic < 0) { + basic = 0; + } + + for (j = 0; j < basic; ++j) { + // if it's not a basic code point + if (input.charCodeAt(j) >= 0x80) { + error('not-basic'); + } + output.push(input.charCodeAt(j)); + } + + // Main decoding loop: start just after the last delimiter if any basic code + // points were copied; start at the beginning otherwise. + + for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { + + // `index` is the index of the next character to be consumed. + // Decode a generalized variable-length integer into `delta`, + // which gets added to `i`. The overflow checking is easier + // if we increase `i` as we go, then subtract off its starting + // value at the end to obtain `delta`. + for (oldi = i, w = 1, k = base; /* no condition */; k += base) { + + if (index >= inputLength) { + error('invalid-input'); + } + + digit = basicToDigit(input.charCodeAt(index++)); + + if (digit >= base || digit > floor((maxInt - i) / w)) { + error('overflow'); + } + + i += digit * w; + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + + if (digit < t) { + break; + } + + baseMinusT = base - t; + if (w > floor(maxInt / baseMinusT)) { + error('overflow'); + } + + w *= baseMinusT; + + } + + out = output.length + 1; + bias = adapt(i - oldi, out, oldi == 0); + + // `i` was supposed to wrap around from `out` to `0`, + // incrementing `n` each time, so we'll fix that now: + if (floor(i / out) > maxInt - n) { + error('overflow'); + } + + n += floor(i / out); + i %= out; + + // Insert `n` at position `i` of the output + output.splice(i++, 0, n); + + } + + return ucs2encode(output); + } + + /** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */ + function encode(input) { + var n, + delta, + handledCPCount, + basicLength, + bias, + j, + m, + q, + k, + t, + currentValue, + output = [], + /** `inputLength` will hold the number of code points in `input`. */ + inputLength, + /** Cached calculation results */ + handledCPCountPlusOne, + baseMinusT, + qMinusT; + + // Convert the input in UCS-2 to Unicode + input = ucs2decode(input); + + // Cache the length + inputLength = input.length; + + // Initialize the state + n = initialN; + delta = 0; + bias = initialBias; + + // Handle the basic code points + for (j = 0; j < inputLength; ++j) { + currentValue = input[j]; + if (currentValue < 0x80) { + output.push(stringFromCharCode(currentValue)); + } + } + + handledCPCount = basicLength = output.length; + + // `handledCPCount` is the number of code points that have been handled; + // `basicLength` is the number of basic code points. + + // Finish the basic string - if it is not empty - with a delimiter + if (basicLength) { + output.push(delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + + // All non-basic code points < n have been handled already. Find the next + // larger one: + for (m = maxInt, j = 0; j < inputLength; ++j) { + currentValue = input[j]; + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's state to , + // but guard against overflow + handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + error('overflow'); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + for (j = 0; j < inputLength; ++j) { + currentValue = input[j]; + + if (currentValue < n && ++delta > maxInt) { + error('overflow'); + } + + if (currentValue == n) { + // Represent delta as a generalized variable-length integer + for (q = delta, k = base; /* no condition */; k += base) { + t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + if (q < t) { + break; + } + qMinusT = q - t; + baseMinusT = base - t; + output.push( + stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) + ); + q = floor(qMinusT / baseMinusT); + } + + output.push(stringFromCharCode(digitToBasic(q, 0))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); + delta = 0; + ++handledCPCount; + } + } + + ++delta; + ++n; + + } + return output.join(''); + } + + /** + * Converts a Punycode string representing a domain name or an email address + * to Unicode. Only the Punycoded parts of the input will be converted, i.e. + * it doesn't matter if you call it on a string that has already been + * converted to Unicode. + * @memberOf punycode + * @param {String} input The Punycoded domain name or email address to + * convert to Unicode. + * @returns {String} The Unicode representation of the given Punycode + * string. + */ + function toUnicode(input) { + return mapDomain(input, function(string) { + return regexPunycode.test(string) + ? decode(string.slice(4).toLowerCase()) + : string; + }); + } + + /** + * Converts a Unicode string representing a domain name or an email address to + * Punycode. Only the non-ASCII parts of the domain name will be converted, + * i.e. it doesn't matter if you call it with a domain that's already in + * ASCII. + * @memberOf punycode + * @param {String} input The domain name or email address to convert, as a + * Unicode string. + * @returns {String} The Punycode representation of the given domain name or + * email address. + */ + function toASCII(input) { + return mapDomain(input, function(string) { + return regexNonASCII.test(string) + ? 'xn--' + encode(string) + : string; + }); + } + + /*--------------------------------------------------------------------------*/ + + /** Define the public API */ + punycode = { + /** + * A string representing the current Punycode.js version number. + * @memberOf punycode + * @type String + */ + 'version': '1.4.1', + /** + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ + 'ucs2': { + 'decode': ucs2decode, + 'encode': ucs2encode + }, + 'decode': decode, + 'encode': encode, + 'toASCII': toASCII, + 'toUnicode': toUnicode + }; + + /** Expose `punycode` */ + // Some AMD build optimizers, like r.js, check for specific condition patterns + // like the following: + if ( + true + ) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { + return punycode; + }).call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} + +}(this)); + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(118)(module), __webpack_require__(59))) + +/***/ }), +/* 118 */ /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["coreData"]; }()); +module.exports = function(module) { + if (!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if (!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; +}; + /***/ }), +/* 119 */ +/***/ (function(module, exports, __webpack_require__) { -/***/ 9: +"use strict"; + + +module.exports = { + isString: function(arg) { + return typeof(arg) === 'string'; + }, + isObject: function(arg) { + return typeof(arg) === 'object' && arg !== null; + }, + isNull: function(arg) { + return arg === null; + }, + isNullOrUndefined: function(arg) { + return arg == null; + } +}; + + +/***/ }), +/* 120 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.decode = exports.parse = __webpack_require__(121); +exports.encode = exports.stringify = __webpack_require__(122); + + +/***/ }), +/* 121 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +// If obj.hasOwnProperty has been overridden, then calling +// obj.hasOwnProperty(prop) will break. +// See: https://github.com/joyent/node/issues/1707 +function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); +} + +module.exports = function(qs, sep, eq, options) { + sep = sep || '&'; + eq = eq || '='; + var obj = {}; + + if (typeof qs !== 'string' || qs.length === 0) { + return obj; + } + + var regexp = /\+/g; + qs = qs.split(sep); + + var maxKeys = 1000; + if (options && typeof options.maxKeys === 'number') { + maxKeys = options.maxKeys; + } + + var len = qs.length; + // maxKeys <= 0 means that we should not limit keys count + if (maxKeys > 0 && len > maxKeys) { + len = maxKeys; + } + + for (var i = 0; i < len; ++i) { + var x = qs[i].replace(regexp, '%20'), + idx = x.indexOf(eq), + kstr, vstr, k, v; + + if (idx >= 0) { + kstr = x.substr(0, idx); + vstr = x.substr(idx + 1); + } else { + kstr = x; + vstr = ''; + } + + k = decodeURIComponent(kstr); + v = decodeURIComponent(vstr); + + if (!hasOwnProperty(obj, k)) { + obj[k] = v; + } else if (isArray(obj[k])) { + obj[k].push(v); + } else { + obj[k] = [obj[k], v]; + } + } + + return obj; +}; + +var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; +}; + + +/***/ }), +/* 122 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +var stringifyPrimitive = function(v) { + switch (typeof v) { + case 'string': + return v; + + case 'boolean': + return v ? 'true' : 'false'; + + case 'number': + return isFinite(v) ? v : ''; + + default: + return ''; + } +}; + +module.exports = function(obj, sep, eq, name) { + sep = sep || '&'; + eq = eq || '='; + if (obj === null) { + obj = undefined; + } + + if (typeof obj === 'object') { + return map(objectKeys(obj), function(k) { + var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; + if (isArray(obj[k])) { + return map(obj[k], function(v) { + return ks + encodeURIComponent(stringifyPrimitive(v)); + }).join(sep); + } else { + return ks + encodeURIComponent(stringifyPrimitive(obj[k])); + } + }).join(sep); + + } + + if (!name) return ''; + return encodeURIComponent(stringifyPrimitive(name)) + eq + + encodeURIComponent(stringifyPrimitive(obj)); +}; + +var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; +}; + +function map (xs, f) { + if (xs.map) return xs.map(f); + var res = []; + for (var i = 0; i < xs.length; i++) { + res.push(f(xs[i], i)); + } + return res; +} + +var objectKeys = Object.keys || function (obj) { + var res = []; + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); + } + return res; +}; + + +/***/ }), +/* 123 */, +/* 124 */, +/* 125 */, +/* 126 */, +/* 127 */, +/* 128 */, +/* 129 */, +/* 130 */, +/* 131 */, +/* 132 */, +/* 133 */, +/* 134 */, +/* 135 */, +/* 136 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__); + + +/** + * WordPress dependencies + */ + + + + + + + +function MissingBlockWarning(_ref) { + var attributes = _ref.attributes, + convertToHTML = _ref.convertToHTML; + var originalName = attributes.originalName, + originalUndelimitedContent = attributes.originalUndelimitedContent; + var hasContent = !!originalUndelimitedContent; + var hasHTMLBlock = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["getBlockType"])('core/html'); + var actions = []; + var messageHTML; + + if (hasContent && hasHTMLBlock) { + messageHTML = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'), originalName); + actions.push(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["Button"], { + key: "convert", + onClick: convertToHTML, + isLarge: true, + isPrimary: true + }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Keep as HTML'))); + } else { + messageHTML = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'), originalName); + } + + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__["Warning"], { + actions: actions + }, messageHTML), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, originalUndelimitedContent)); +} + +var edit = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__["withDispatch"])(function (dispatch, _ref2) { + var clientId = _ref2.clientId, + attributes = _ref2.attributes; + + var _dispatch = dispatch('core/block-editor'), + replaceBlock = _dispatch.replaceBlock; + + return { + convertToHTML: function convertToHTML() { + replaceBlock(clientId, Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/html', { + content: attributes.originalUndelimitedContent + })); + } + }; +})(MissingBlockWarning); +var name = 'core/missing'; +var settings = { + name: name, + category: 'common', + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Unrecognized Block'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Your site doesn’t include support for this block.'), + supports: { + className: false, + customClassName: false, + inserter: false, + html: false, + reusable: false + }, + attributes: { + originalName: { + type: 'string' + }, + originalUndelimitedContent: { + type: 'string' + }, + originalContent: { + type: 'string', + source: 'html' + } + }, + edit: edit, + save: function save(_ref3) { + var attributes = _ref3.attributes; + // Preserve the missing block's content. + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, attributes.originalContent); + } +}; + + +/***/ }), +/* 137 */, +/* 138 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js + + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +var _window = window, + getComputedStyle = _window.getComputedStyle; +var edit_name = 'core/paragraph'; +var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { + var _ownProps$attributes = ownProps.attributes, + textColor = _ownProps$attributes.textColor, + backgroundColor = _ownProps$attributes.backgroundColor, + fontSize = _ownProps$attributes.fontSize, + customFontSize = _ownProps$attributes.customFontSize; + var editableNode = node.querySelector('[contenteditable="true"]'); //verify if editableNode is available, before using getComputedStyle. + + var computedStyles = editableNode ? getComputedStyle(editableNode) : null; + return { + fallbackBackgroundColor: backgroundColor || !computedStyles ? undefined : computedStyles.backgroundColor, + fallbackTextColor: textColor || !computedStyles ? undefined : computedStyles.color, + fallbackFontSize: fontSize || customFontSize || !computedStyles ? undefined : parseInt(computedStyles.fontSize) || undefined + }; +}); + +var edit_ParagraphBlock = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ParagraphBlock, _Component); + + function ParagraphBlock() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ParagraphBlock); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ParagraphBlock).apply(this, arguments)); + _this.onReplace = _this.onReplace.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.toggleDropCap = _this.toggleDropCap.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.splitBlock = _this.splitBlock.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(ParagraphBlock, [{ + key: "onReplace", + value: function onReplace(blocks) { + var _this$props = this.props, + attributes = _this$props.attributes, + onReplace = _this$props.onReplace; + onReplace(blocks.map(function (block, index) { + return index === 0 && block.name === edit_name ? Object(objectSpread["a" /* default */])({}, block, { + attributes: Object(objectSpread["a" /* default */])({}, attributes, block.attributes) + }) : block; + })); + } + }, { + key: "toggleDropCap", + value: function toggleDropCap() { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + setAttributes({ + dropCap: !attributes.dropCap + }); + } + }, { + key: "getDropCapHelp", + value: function getDropCapHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.'); + } + /** + * Split handler for RichText value, namely when content is pasted or the + * user presses the Enter key. + * + * @param {?Array} before Optional before value, to be used as content + * in place of what exists currently for the + * block. If undefined, the block is deleted. + * @param {?Array} after Optional after value, to be appended in a new + * paragraph block to the set of blocks passed + * as spread. + * @param {...WPBlock} blocks Optional blocks inserted between the before + * and after value blocks. + */ + + }, { + key: "splitBlock", + value: function splitBlock(before, after) { + var _this$props3 = this.props, + attributes = _this$props3.attributes, + insertBlocksAfter = _this$props3.insertBlocksAfter, + setAttributes = _this$props3.setAttributes, + onReplace = _this$props3.onReplace; + + for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + + if (after !== null) { + // Append "After" content as a new paragraph block to the end of + // any other blocks being inserted after the current paragraph. + blocks.push(Object(external_this_wp_blocks_["createBlock"])(edit_name, { + content: after + })); + } + + if (blocks.length && insertBlocksAfter) { + insertBlocksAfter(blocks); + } + + var content = attributes.content; + + if (before === null) { + // If before content is omitted, treat as intent to delete block. + onReplace([]); + } else if (content !== before) { + // Only update content if it has in-fact changed. In case that user + // has created a new paragraph at end of an existing one, the value + // of before will be strictly equal to the current content. + setAttributes({ + content: before + }); + } + } + }, { + key: "render", + value: function render() { + var _classnames; + + var _this$props4 = this.props, + attributes = _this$props4.attributes, + setAttributes = _this$props4.setAttributes, + mergeBlocks = _this$props4.mergeBlocks, + onReplace = _this$props4.onReplace, + className = _this$props4.className, + backgroundColor = _this$props4.backgroundColor, + textColor = _this$props4.textColor, + setBackgroundColor = _this$props4.setBackgroundColor, + setTextColor = _this$props4.setTextColor, + fallbackBackgroundColor = _this$props4.fallbackBackgroundColor, + fallbackTextColor = _this$props4.fallbackTextColor, + fallbackFontSize = _this$props4.fallbackFontSize, + fontSize = _this$props4.fontSize, + setFontSize = _this$props4.setFontSize, + isRTL = _this$props4.isRTL; + var align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + placeholder = attributes.placeholder, + direction = attributes.direction; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + }), isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: [{ + icon: 'editor-ltr', + title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'), + isActive: direction === 'ltr', + onClick: function onClick() { + var nextDirection = direction === 'ltr' ? undefined : 'ltr'; + setAttributes({ + direction: nextDirection + }); + } + }] + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Text Settings'), + className: "blocks-font-size" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["FontSizePicker"], { + fallbackFontSize: fallbackFontSize, + value: fontSize.size, + onChange: setFontSize + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Drop Cap'), + checked: !!dropCap, + onChange: this.toggleDropCap, + help: this.getDropCapHelp + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + initialOpen: false, + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color') + }, { + value: textColor.color, + onChange: setTextColor, + label: Object(external_this_wp_i18n_["__"])('Text Color') + }] + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ + textColor: textColor.color, + backgroundColor: backgroundColor.color, + fallbackTextColor: fallbackTextColor, + fallbackBackgroundColor: fallbackBackgroundColor + }, { + fontSize: fontSize.size + })))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "content", + tagName: "p", + className: classnames_default()('wp-block-paragraph', className, (_classnames = { + 'has-text-color': textColor.color, + 'has-background': backgroundColor.color, + 'has-drop-cap': dropCap + }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, fontSize.class, fontSize.class), _classnames)), + style: { + backgroundColor: backgroundColor.color, + color: textColor.color, + fontSize: fontSize.size ? fontSize.size + 'px' : undefined, + textAlign: align, + direction: direction + }, + value: content, + onChange: function onChange(nextContent) { + setAttributes({ + content: nextContent + }); + }, + unstableOnSplit: this.splitBlock, + onMerge: mergeBlocks, + onReplace: this.onReplace, + onRemove: function onRemove() { + return onReplace([]); + }, + "aria-label": content ? Object(external_this_wp_i18n_["__"])('Paragraph block') : Object(external_this_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'), + placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block') + })); + } + }]); + + return ParagraphBlock; +}(external_this_wp_element_["Component"]); + +var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { + textColor: 'color' +}), Object(external_this_wp_blockEditor_["withFontSizes"])('fontSize'), applyFallbackStyles, Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + isRTL: getSettings().isRTL + }; +})])(edit_ParagraphBlock); +/* harmony default export */ var edit = (ParagraphEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return paragraph_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +var supports = { + className: false +}; +var schema = { + content: { + type: 'string', + source: 'html', + selector: 'p', + default: '' + }, + align: { + type: 'string' + }, + dropCap: { + type: 'boolean', + default: false + }, + placeholder: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + }, + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + fontSize: { + type: 'string' + }, + customFontSize: { + type: 'number' + }, + direction: { + type: 'string', + enum: ['ltr', 'rtl'] + } +}; +var paragraph_name = 'core/paragraph'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Paragraph'), + description: Object(external_this_wp_i18n_["__"])('Start with the building block of all narrative.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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(external_this_wp_i18n_["__"])('text')], + supports: supports, + attributes: schema, + transforms: { + from: [{ + type: 'raw', + // Paragraph is a fallback and should be matched last. + priority: 20, + selector: 'p', + schema: { + p: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + }] + }, + deprecated: [{ + supports: supports, + attributes: Object(objectSpread["a" /* default */])({}, schema, { + width: { + type: 'string' + } + }), + save: function save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var width = attributes.width, + align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + fontSize = attributes.fontSize, + customFontSize = attributes.customFontSize; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var fontSizeClass = fontSize && "is-".concat(fontSize, "-text"); + var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + fontSize: fontSizeClass ? undefined : customFontSize, + textAlign: align + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + style: styles, + className: className ? className : undefined, + value: content + }); + } + }, { + supports: supports, + attributes: Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, schema, { + fontSize: { + type: 'number' + } + }), 'customFontSize', 'customTextColor', 'customBackgroundColor'), + save: function save(_ref2) { + var _classnames2; + + var attributes = _ref2.attributes; + var width = attributes.width, + align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + fontSize = attributes.fontSize; + var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames2, 'has-drop-cap', dropCap), _classnames2)); + var styles = { + backgroundColor: backgroundColor, + color: textColor, + fontSize: fontSize, + textAlign: align + }; + return Object(external_this_wp_element_["createElement"])("p", { + style: styles, + className: className ? className : undefined + }, content); + }, + migrate: function migrate(attributes) { + return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { + customFontSize: Object(external_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined, + customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, + customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined + }), ['fontSize', 'textColor', 'backgroundColor']); + } + }, { + supports: supports, + attributes: Object(objectSpread["a" /* default */])({}, schema, { + content: { + type: 'string', + source: 'html', + default: '' + } + }), + save: function save(_ref3) { + var attributes = _ref3.attributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); + }, + migrate: function migrate(attributes) { + return attributes; + } + }], + merge: function merge(attributes, attributesToMerge) { + return { + content: (attributes.content || '') + (attributesToMerge.content || '') + }; + }, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var width = attributes.width; + + if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) { + return { + 'data-align': width + }; + } + }, + edit: edit, + save: function save(_ref4) { + var _classnames3; + + var attributes = _ref4.attributes; + var align = attributes.align, + content = attributes.content, + dropCap = attributes.dropCap, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor, + fontSize = attributes.fontSize, + customFontSize = attributes.customFontSize, + direction = attributes.direction; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize); + var className = classnames_default()((_classnames3 = { + 'has-text-color': textColor || customTextColor, + 'has-background': backgroundColor || customBackgroundColor, + 'has-drop-cap': dropCap + }, Object(defineProperty["a" /* default */])(_classnames3, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, backgroundClass, backgroundClass), _classnames3)); + var styles = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor, + fontSize: fontSizeClass ? undefined : customFontSize, + textAlign: align + }; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + style: styles, + className: className ? className : undefined, + value: content, + dir: direction + }); + } +}; + + +/***/ }), +/* 139 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(18); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + +var _window = window, + wp = _window.wp; + +function isTmceEmpty(editor) { + // When tinyMce is empty the content seems to be: + //


    + // avoid expensive checks for large documents + var body = editor.getBody(); + + if (body.childNodes.length > 1) { + return false; + } else if (body.childNodes.length === 0) { + return true; + } + + if (body.childNodes[0].childNodes.length > 1) { + return false; + } + + return /^\n?$/.test(body.innerText || body.textContent); +} + +var edit_ClassicEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ClassicEdit, _Component); + + function ClassicEdit(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, ClassicEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ClassicEdit).call(this, props)); + _this.initialize = _this.initialize.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSetup = _this.onSetup.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.focus = _this.focus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(ClassicEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _window$wpEditorL10n$ = window.wpEditorL10n.tinymce, + baseURL = _window$wpEditorL10n$.baseURL, + suffix = _window$wpEditorL10n$.suffix; + window.tinymce.EditorManager.overrideDefaults({ + base_url: baseURL, + suffix: suffix + }); + + if (document.readyState === 'complete') { + this.initialize(); + } else { + window.addEventListener('DOMContentLoaded', this.initialize); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + window.addEventListener('DOMContentLoaded', this.initialize); + wp.oldEditor.remove("editor-".concat(this.props.clientId)); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props = this.props, + clientId = _this$props.clientId, + content = _this$props.attributes.content; + var editor = window.tinymce.get("editor-".concat(clientId)); + + if (prevProps.attributes.content !== content) { + editor.setContent(content || ''); + } + } + }, { + key: "initialize", + value: function initialize() { + var clientId = this.props.clientId; + var settings = window.wpEditorL10n.tinymce.settings; + wp.oldEditor.initialize("editor-".concat(clientId), { + tinymce: Object(objectSpread["a" /* default */])({}, settings, { + inline: true, + content_css: false, + fixed_toolbar_container: "#toolbar-".concat(clientId), + setup: this.onSetup + }) + }); + } + }, { + key: "onSetup", + value: function onSetup(editor) { + var _this2 = this; + + var _this$props2 = this.props, + content = _this$props2.attributes.content, + setAttributes = _this$props2.setAttributes; + var ref = this.ref; + var bookmark; + this.editor = editor; + + if (content) { + editor.on('loadContent', function () { + return editor.setContent(content); + }); + } + + editor.on('blur', function () { + bookmark = editor.selection.getBookmark(2, true); + setAttributes({ + content: editor.getContent() + }); + editor.once('focus', function () { + if (bookmark) { + editor.selection.moveToBookmark(bookmark); + } + }); + return false; + }); + editor.on('mousedown touchstart', function () { + bookmark = null; + }); + editor.on('keydown', function (event) { + if ((event.keyCode === external_this_wp_keycodes_["BACKSPACE"] || event.keyCode === external_this_wp_keycodes_["DELETE"]) && isTmceEmpty(editor)) { + // delete the block + _this2.props.onReplace([]); + + event.preventDefault(); + event.stopImmediatePropagation(); + } + + var altKey = event.altKey; + /* + * Prevent Mousetrap from kicking in: TinyMCE already uses its own + * `alt+f10` shortcut to focus its toolbar. + */ + + if (altKey && event.keyCode === external_this_wp_keycodes_["F10"]) { + event.stopPropagation(); + } + }); // TODO: the following is for back-compat with WP 4.9, not needed in WP 5.0. Remove it after the release. + + editor.addButton('kitchensink', { + tooltip: Object(external_this_wp_i18n_["_x"])('More', 'button to expand options'), + icon: 'dashicon dashicons-editor-kitchensink', + onClick: function onClick() { + var button = this; + var active = !button.active(); + button.active(active); + editor.dom.toggleClass(ref, 'has-advanced-toolbar', active); + } + }); // Show the second, third, etc. toolbars when the `kitchensink` button is removed by a plugin. + + editor.on('init', function () { + if (editor.settings.toolbar1 && editor.settings.toolbar1.indexOf('kitchensink') === -1) { + editor.dom.addClass(ref, 'has-advanced-toolbar'); + } + }); + editor.addButton('wp_add_media', { + tooltip: Object(external_this_wp_i18n_["__"])('Insert Media'), + icon: 'dashicon dashicons-admin-media', + cmd: 'WP_Medialib' + }); // End TODO. + + editor.on('init', function () { + var rootNode = _this2.editor.getBody(); // Create the toolbar by refocussing the editor. + + + if (document.activeElement === rootNode) { + rootNode.blur(); + + _this2.editor.focus(); + } + }); + } + }, { + key: "focus", + value: function focus() { + if (this.editor) { + this.editor.focus(); + } + } + }, { + key: "onToolbarKeyDown", + value: function onToolbarKeyDown(event) { + // Prevent WritingFlow from kicking in and allow arrows navigation on the toolbar. + event.stopPropagation(); // Prevent Mousetrap from moving focus to the top toolbar when pressing `alt+f10` on this block toolbar. + + event.nativeEvent.stopImmediatePropagation(); + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var clientId = this.props.clientId; // Disable reason: the toolbar itself is non-interactive, but must capture + // events from the KeyboardShortcuts component to stop their propagation. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + + return [// Disable reason: Clicking on this visual placeholder should create + // the toolbar, it can also be created by focussing the field below. + + /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */ + Object(external_this_wp_element_["createElement"])("div", { + key: "toolbar", + id: "toolbar-".concat(clientId), + ref: function ref(_ref) { + return _this3.ref = _ref; + }, + className: "block-library-classic__toolbar", + onClick: this.focus, + "data-placeholder": Object(external_this_wp_i18n_["__"])('Classic'), + onKeyDown: this.onToolbarKeyDown + }), Object(external_this_wp_element_["createElement"])("div", { + key: "editor", + id: "editor-".concat(clientId), + className: "wp-block-freeform block-library-rich-text__tinymce" + })]; + /* eslint-enable jsx-a11y/no-static-element-interactions */ + } + }]); + + return ClassicEdit; +}(external_this_wp_element_["Component"]); + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/classic/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return classic_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return classic_settings; }); + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +var classic_name = 'core/freeform'; +var classic_settings = { + title: Object(external_this_wp_i18n_["_x"])('Classic', 'block title'), + description: Object(external_this_wp_i18n_["__"])('Use the classic WordPress editor.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z M0,0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "8", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "11", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "8", + y: "8", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "8", + y: "11", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "5", + y: "11", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "5", + y: "8", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "8", + y: "14", + width: "8", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "14", + y: "11", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "14", + y: "8", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "17", + y: "11", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "17", + y: "8", + width: "2", + height: "2" + })), + category: 'formatting', + attributes: { + content: { + type: 'string', + source: 'html' + } + }, + supports: { + className: false, + customClassName: false, + // Hide 'Add to Reusable Blocks' on Classic blocks. Showing it causes a + // confusing UX, because of its similarity to the 'Convert to Blocks' button. + reusable: false + }, + edit: edit_ClassicEdit, + save: function save(_ref) { + var attributes = _ref.attributes; + var content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, content); + } +}; + + +/***/ }), +/* 140 */, +/* 141 */, +/* 142 */, +/* 143 */, +/* 144 */, +/* 145 */, +/* 146 */, +/* 147 */, +/* 148 */, +/* 149 */, +/* 150 */, +/* 151 */, +/* 152 */, +/* 153 */, +/* 154 */, +/* 155 */, +/* 156 */, +/* 157 */, +/* 158 */, +/* 159 */, +/* 160 */, +/* 161 */, +/* 162 */, +/* 163 */, +/* 164 */, +/* 165 */, +/* 166 */, +/* 167 */, +/* 168 */, +/* 169 */, +/* 170 */, +/* 171 */, +/* 172 */, +/* 173 */, +/* 174 */, +/* 175 */, +/* 176 */, +/* 177 */, +/* 178 */, +/* 179 */, +/* 180 */, +/* 181 */, +/* 182 */, +/* 183 */, +/* 184 */, +/* 185 */, +/* 186 */, +/* 187 */, +/* 188 */, +/* 189 */, +/* 190 */, +/* 191 */, +/* 192 */, +/* 193 */, +/* 194 */, +/* 195 */, +/* 196 */, +/* 197 */, +/* 198 */, +/* 199 */, +/* 200 */, +/* 201 */, +/* 202 */, +/* 203 */, +/* 204 */, +/* 205 */, +/* 206 */, +/* 207 */, +/* 208 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17); +/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20); +/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__); + + + + + +var _blockAttributes; + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +var ATTRIBUTE_QUOTE = 'value'; +var ATTRIBUTE_CITATION = 'citation'; +var blockAttributes = (_blockAttributes = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_blockAttributes, ATTRIBUTE_QUOTE, { + type: 'string', + source: 'html', + selector: 'blockquote', + multiline: 'p', + default: '' +}), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_blockAttributes, ATTRIBUTE_CITATION, { + type: 'string', + source: 'html', + selector: 'cite', + default: '' +}), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_blockAttributes, "align", { + type: 'string' +}), _blockAttributes); +var name = 'core/quote'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Quote'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_10__["Path"], { + d: "M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z" + })), + category: 'common', + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('blockquote')], + attributes: blockAttributes, + styles: [{ + name: 'default', + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["_x"])('Default', 'block style'), + isDefault: true + }, { + name: 'large', + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["_x"])('Large', 'block style') + }], + transforms: { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/quote', { + value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["toHTMLString"])({ + value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["join"])(attributes.map(function (_ref) { + var content = _ref.content; + return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["create"])({ + html: content + }); + }), "\u2028"), + multilineTag: 'p' + }) + }); + } + }, { + type: 'block', + blocks: ['core/heading'], + transform: function transform(_ref2) { + var content = _ref2.content; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/quote', { + value: "

    ".concat(content, "

    ") + }); + } + }, { + type: 'block', + blocks: ['core/pullquote'], + transform: function transform(_ref3) { + var value = _ref3.value, + citation = _ref3.citation; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/quote', { + value: value, + citation: citation + }); + } + }, { + type: 'prefix', + prefix: '>', + transform: function transform(content) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/quote', { + value: "

    ".concat(content, "

    ") + }); + } + }, { + type: 'raw', + isMatch: function isMatch(node) { + var isParagraphOrSingleCite = function () { + var hasCitation = false; + return function (child) { + // Child is a paragraph. + if (child.nodeName === 'P') { + return true; + } // Child is a cite and no other cite child exists before it. + + + if (!hasCitation && child.nodeName === 'CITE') { + hasCitation = true; + return true; + } + }; + }(); + + return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph + // content with an optional cite child. + Array.from(node.childNodes).every(isParagraphOrSingleCite); + }, + schema: { + blockquote: { + children: { + p: { + children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["getPhrasingContentSchema"])() + }, + cite: { + children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["getPhrasingContentSchema"])() + } + } + } + } + }], + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref4) { + var value = _ref4.value, + citation = _ref4.citation; + var paragraphs = []; + + if (value && value !== '

    ') { + paragraphs.push.apply(paragraphs, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["create"])({ + html: value, + multilineTag: 'p' + }), "\u2028").map(function (piece) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/paragraph', { + content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["toHTMLString"])({ + value: piece + }) + }); + }))); + } + + if (citation && citation !== '

    ') { + paragraphs.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/paragraph', { + content: citation + })); + } + + if (paragraphs.length === 0) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/paragraph', { + content: '' + }); + } + + return paragraphs; + } + }, { + type: 'block', + blocks: ['core/heading'], + transform: function transform(_ref5) { + var value = _ref5.value, + citation = _ref5.citation, + attrs = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref5, ["value", "citation"]); + + // If there is no quote content, use the citation as the + // content of the resulting heading. A nonexistent citation + // will result in an empty heading. + if (value === '

    ') { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/heading', { + content: citation + }); + } + + var pieces = Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["create"])({ + html: value, + multilineTag: 'p' + }), "\u2028"); + var headingBlock = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/heading', { + content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["toHTMLString"])({ + value: pieces[0] + }) + }); + + if (!citation && pieces.length === 1) { + return headingBlock; + } + + var quotePieces = pieces.slice(1); + var quoteBlock = Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/quote', Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, attrs, { + citation: citation, + value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["toHTMLString"])({ + value: quotePieces.length ? Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["join"])(pieces.slice(1), "\u2028") : Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_9__["create"])(), + multilineTag: 'p' + }) + })); + return [headingBlock, quoteBlock]; + } + }, { + type: 'block', + blocks: ['core/pullquote'], + transform: function transform(_ref6) { + var value = _ref6.value, + citation = _ref6.citation; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_7__["createBlock"])('core/pullquote', { + value: value, + citation: citation + }); + } + }] + }, + edit: function edit(_ref7) { + var attributes = _ref7.attributes, + setAttributes = _ref7.setAttributes, + isSelected = _ref7.isSelected, + mergeBlocks = _ref7.mergeBlocks, + onReplace = _ref7.onReplace, + className = _ref7.className; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])("blockquote", { + className: className, + style: { + textAlign: align + } + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"], { + identifier: ATTRIBUTE_QUOTE, + multiline: true, + value: value, + onChange: function onChange(nextValue) { + return setAttributes({ + value: nextValue + }); + }, + onMerge: mergeBlocks, + onRemove: function onRemove(forward) { + var hasEmptyCitation = !citation || citation.length === 0; + + if (!forward && hasEmptyCitation) { + onReplace([]); + } + }, + placeholder: // translators: placeholder text used for the quote + Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Write quote…') + }), (!_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].isEmpty(citation) || isSelected) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"], { + identifier: ATTRIBUTE_CITATION, + value: citation, + onChange: function onChange(nextCitation) { + return setAttributes({ + citation: nextCitation + }); + }, + placeholder: // translators: placeholder text used for the citation + Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Write citation…'), + className: "wp-block-quote__citation" + }))); + }, + save: function save(_ref8) { + var attributes = _ref8.attributes; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])("blockquote", { + style: { + textAlign: align ? align : null + } + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, { + multiline: true, + value: value + }), !_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, { + tagName: "cite", + value: citation + })); + }, + merge: function merge(attributes, _ref9) { + var value = _ref9.value, + citation = _ref9.citation; + + if (!value || value === '

    ') { + return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, attributes, { + citation: attributes.citation + citation + }); + } + + return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, attributes, { + value: attributes.value + value, + citation: attributes.citation + citation + }); + }, + deprecated: [{ + attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, blockAttributes, { + style: { + type: 'number', + default: 1 + } + }), + migrate: function migrate(attributes) { + if (attributes.style === 2) { + return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_5__["omit"])(attributes, ['style']), { + className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large' + }); + } + + return attributes; + }, + save: function save(_ref10) { + var attributes = _ref10.attributes; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation, + style = attributes.style; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])("blockquote", { + className: style === 2 ? 'is-large' : '', + style: { + textAlign: align ? align : null + } + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, { + multiline: true, + value: value + }), !_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, { + tagName: "cite", + value: citation + })); + } + }, { + attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, blockAttributes, { + citation: { + type: 'string', + source: 'html', + selector: 'footer', + default: '' + }, + style: { + type: 'number', + default: 1 + } + }), + save: function save(_ref11) { + var attributes = _ref11.attributes; + var align = attributes.align, + value = attributes.value, + citation = attributes.citation, + style = attributes.style; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])("blockquote", { + className: "blocks-quote-style-".concat(style), + style: { + textAlign: align ? align : null + } + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, { + multiline: true, + value: value + }), !_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].isEmpty(citation) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_8__["RichText"].Content, { + tagName: "footer", + value: citation + })); + } + }] +}; + + +/***/ }), +/* 209 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41); +/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__); + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Allowed blocks constant is passed to InnerBlocks precisely as specified here. + * The contents of the array should never change. + * The array should contain the name of each block that is allowed. + * In columns block, the only block we allow is 'core/column'. + * + * @constant + * @type {string[]} +*/ + +var ALLOWED_BLOCKS = ['core/column']; +/** + * Returns the layouts configuration for a given number of columns. + * + * @param {number} columns Number of columns. + * + * @return {Object[]} Columns layout configuration. + */ + +var getColumnsTemplate = memize__WEBPACK_IMPORTED_MODULE_3___default()(function (columns) { + return Object(lodash__WEBPACK_IMPORTED_MODULE_1__["times"])(columns, function () { + return ['core/column']; + }); +}); +/** + * Given an HTML string for a deprecated columns inner block, returns the + * column index to which the migrated inner block should be assigned. Returns + * undefined if the inner block was not assigned to a column. + * + * @param {string} originalContent Deprecated Columns inner block HTML. + * + * @return {?number} Column to which inner block is to be assigned. + */ + +function getDeprecatedLayoutColumn(originalContent) { + var doc = getDeprecatedLayoutColumn.doc; + + if (!doc) { + doc = document.implementation.createHTMLDocument(''); + getDeprecatedLayoutColumn.doc = doc; + } + + var columnMatch; + doc.body.innerHTML = originalContent; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = doc.body.firstChild.classList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var classListItem = _step.value; + + if (columnMatch = classListItem.match(/^layout-column-(\d+)$/)) { + return Number(columnMatch[1]) - 1; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } +} + +var name = 'core/columns'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Columns'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["Path"], { + d: "M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z" + }))), + category: 'layout', + attributes: { + columns: { + type: 'number', + default: 2 + } + }, + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Add a block that displays content in multiple columns, then add whatever content blocks you’d like.'), + supports: { + align: ['wide', 'full'], + html: false + }, + deprecated: [{ + attributes: { + columns: { + type: 'number', + default: 2 + } + }, + isEligible: function isEligible(attributes, innerBlocks) { + // Since isEligible is called on every valid instance of the + // Columns block and a deprecation is the unlikely case due to + // its subsequent migration, optimize for the `false` condition + // by performing a naive, inaccurate pass at inner blocks. + var isFastPassEligible = innerBlocks.some(function (innerBlock) { + return /layout-column-\d+/.test(innerBlock.originalContent); + }); + + if (!isFastPassEligible) { + return false; + } // Only if the fast pass is considered eligible is the more + // accurate, durable, slower condition performed. + + + return innerBlocks.some(function (innerBlock) { + return getDeprecatedLayoutColumn(innerBlock.originalContent) !== undefined; + }); + }, + migrate: function migrate(attributes, innerBlocks) { + var columns = innerBlocks.reduce(function (result, innerBlock) { + var originalContent = innerBlock.originalContent; + var columnIndex = getDeprecatedLayoutColumn(originalContent); + + if (columnIndex === undefined) { + columnIndex = 0; + } + + if (!result[columnIndex]) { + result[columnIndex] = []; + } + + result[columnIndex].push(innerBlock); + return result; + }, []); + var migratedInnerBlocks = columns.map(function (columnBlocks) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/column', {}, columnBlocks); + }); + return [attributes, migratedInnerBlocks]; + }, + save: function save(_ref) { + var attributes = _ref.attributes; + var columns = attributes.columns; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { + className: "has-".concat(columns, "-columns") + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__["InnerBlocks"].Content, null)); + } + }], + edit: function edit(_ref2) { + var attributes = _ref2.attributes, + setAttributes = _ref2.setAttributes, + className = _ref2.className; + var columns = attributes.columns; + var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, "has-".concat(columns, "-columns")); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["PanelBody"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["RangeControl"], { + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Columns'), + value: columns, + onChange: function onChange(nextColumns) { + setAttributes({ + columns: nextColumns + }); + }, + min: 2, + max: 6, + required: true + }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { + className: classes + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__["InnerBlocks"], { + template: getColumnsTemplate(columns), + templateLock: "all", + allowedBlocks: ALLOWED_BLOCKS + }))); + }, + save: function save(_ref3) { + var attributes = _ref3.attributes; + var columns = attributes.columns; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { + className: "has-".concat(columns, "-columns") + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__["InnerBlocks"].Content, null)); + } +}; + + +/***/ }), +/* 210 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); + + +/** + * WordPress dependencies + */ + + + +var name = 'core/column'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Column'), + parent: ['core/columns'], + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z" + })), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('A single column within a columns block.'), + category: 'common', + supports: { + inserter: false, + reusable: false, + html: false + }, + edit: function edit() { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InnerBlocks"], { + templateLock: false + }); + }, + save: function save() { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InnerBlocks"].Content, null)); + } +}; + + +/***/ }), +/* 211 */ +/***/ (function(module, exports, __webpack_require__) { + +/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ +(function (global, factory) { + true ? module.exports = factory() : + undefined; +}(this, (function () { 'use strict'; + +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; @@ -15958,6 +7167,13231 @@ function _createClass(Constructor, protoProps, staticProps) { return Constructor; } -/***/ }) +function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); +} -/******/ }); \ No newline at end of file +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} + +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} + +var FastAverageColor = +/*#__PURE__*/ +function () { + function FastAverageColor() { + _classCallCheck(this, FastAverageColor); + } + + _createClass(FastAverageColor, [{ + key: "getColorAsync", + + /** + * Get asynchronously the average color from not loaded image. + * + * @param {HTMLImageElement} resource + * @param {Function} callback + * @param {Object|null} [options] + * @param {Array} [options.defaultColor=[255, 255, 255, 255]] + * @param {*} [options.data] + * @param {string} [options.mode="speed"] "precision" or "speed" + * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" + * @param {number} [options.step=1] + * @param {number} [options.left=0] + * @param {number} [options.top=0] + * @param {number} [options.width=width of resource] + * @param {number} [options.height=height of resource] + */ + value: function getColorAsync(resource, callback, options) { + if (resource.complete) { + callback.call(resource, this.getColor(resource, options), options && options.data); + } else { + this._bindImageEvents(resource, callback, options); + } + } + /** + * Get the average color from images, videos and canvas. + * + * @param {HTMLImageElement|HTMLVideoElement|HTMLCanvasElement} resource + * @param {Object|null} [options] + * @param {Array} [options.defaultColor=[255, 255, 255, 255]] + * @param {*} [options.data] + * @param {string} [options.mode="speed"] "precision" or "speed" + * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" + * @param {number} [options.step=1] + * @param {number} [options.left=0] + * @param {number} [options.top=0] + * @param {number} [options.width=width of resource] + * @param {number} [options.height=height of resource] + * + * @returns {Object} + */ + + }, { + key: "getColor", + value: function getColor(resource, options) { + options = options || {}; + + var defaultColor = this._getDefaultColor(options), + originalSize = this._getOriginalSize(resource), + size = this._prepareSizeAndPosition(originalSize, options); + + var error = null, + value = defaultColor; + + if (!size.srcWidth || !size.srcHeight || !size.destWidth || !size.destHeight) { + return this._prepareResult(defaultColor, new Error('FastAverageColor: Incorrect sizes.')); + } + + if (!this._ctx) { + this._canvas = this._makeCanvas(); + this._ctx = this._canvas.getContext && this._canvas.getContext('2d'); + + if (!this._ctx) { + return this._prepareResult(defaultColor, new Error('FastAverageColor: Canvas Context 2D is not supported in this browser.')); + } + } + + this._canvas.width = size.destWidth; + this._canvas.height = size.destHeight; + + try { + this._ctx.clearRect(0, 0, size.destWidth, size.destHeight); + + this._ctx.drawImage(resource, size.srcLeft, size.srcTop, size.srcWidth, size.srcHeight, 0, 0, size.destWidth, size.destHeight); + + var bitmapData = this._ctx.getImageData(0, 0, size.destWidth, size.destHeight).data; + + value = this.getColorFromArray4(bitmapData, options); + } catch (e) { + // Security error, CORS + // https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image + error = e; + } + + return this._prepareResult(value, error); + } + /** + * Get the average color from a array when 1 pixel is 4 bytes. + * + * @param {Array|Uint8Array} arr + * @param {Object} [options] + * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant" + * @param {Array} [options.defaultColor=[255, 255, 255, 255]] + * @param {number} [options.step=1] + * + * @returns {Array} [red (0-255), green (0-255), blue (0-255), alpha (0-255)] + */ + + }, { + key: "getColorFromArray4", + value: function getColorFromArray4(arr, options) { + options = options || {}; + var bytesPerPixel = 4, + arrLength = arr.length; + + if (arrLength < bytesPerPixel) { + return this._getDefaultColor(options); + } + + var len = arrLength - arrLength % bytesPerPixel, + preparedStep = (options.step || 1) * bytesPerPixel, + algorithm = '_' + (options.algorithm || 'sqrt') + 'Algorithm'; + + if (typeof this[algorithm] !== 'function') { + throw new Error("FastAverageColor: ".concat(options.algorithm, " is unknown algorithm.")); + } + + return this[algorithm](arr, len, preparedStep); + } + /** + * Destroy the instance. + */ + + }, { + key: "destroy", + value: function destroy() { + delete this._canvas; + delete this._ctx; + } + }, { + key: "_getDefaultColor", + value: function _getDefaultColor(options) { + return this._getOption(options, 'defaultColor', [255, 255, 255, 255]); + } + }, { + key: "_getOption", + value: function _getOption(options, name, defaultValue) { + return typeof options[name] === 'undefined' ? defaultValue : options[name]; + } + }, { + key: "_prepareSizeAndPosition", + value: function _prepareSizeAndPosition(originalSize, options) { + var srcLeft = this._getOption(options, 'left', 0), + srcTop = this._getOption(options, 'top', 0), + srcWidth = this._getOption(options, 'width', originalSize.width), + srcHeight = this._getOption(options, 'height', originalSize.height), + destWidth = srcWidth, + destHeight = srcHeight; + + if (options.mode === 'precision') { + return { + srcLeft: srcLeft, + srcTop: srcTop, + srcWidth: srcWidth, + srcHeight: srcHeight, + destWidth: destWidth, + destHeight: destHeight + }; + } + + var maxSize = 100, + minSize = 10; + var factor; + + if (srcWidth > srcHeight) { + factor = srcWidth / srcHeight; + destWidth = maxSize; + destHeight = Math.round(destWidth / factor); + } else { + factor = srcHeight / srcWidth; + destHeight = maxSize; + destWidth = Math.round(destHeight / factor); + } + + if (destWidth > srcWidth || destHeight > srcHeight || destWidth < minSize || destHeight < minSize) { + destWidth = srcWidth; + destHeight = srcHeight; + } + + return { + srcLeft: srcLeft, + srcTop: srcTop, + srcWidth: srcWidth, + srcHeight: srcHeight, + destWidth: destWidth, + destHeight: destHeight + }; + } + }, { + key: "_simpleAlgorithm", + value: function _simpleAlgorithm(arr, len, preparedStep) { + var redTotal = 0, + greenTotal = 0, + blueTotal = 0, + alphaTotal = 0, + count = 0; + + for (var i = 0; i < len; i += preparedStep) { + var alpha = arr[i + 3], + red = arr[i] * alpha, + green = arr[i + 1] * alpha, + blue = arr[i + 2] * alpha; + redTotal += red; + greenTotal += green; + blueTotal += blue; + alphaTotal += alpha; + count++; + } + + return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; + } + }, { + key: "_sqrtAlgorithm", + value: function _sqrtAlgorithm(arr, len, preparedStep) { + var redTotal = 0, + greenTotal = 0, + blueTotal = 0, + alphaTotal = 0, + count = 0; + + for (var i = 0; i < len; i += preparedStep) { + var red = arr[i], + green = arr[i + 1], + blue = arr[i + 2], + alpha = arr[i + 3]; + redTotal += red * red * alpha; + greenTotal += green * green * alpha; + blueTotal += blue * blue * alpha; + alphaTotal += alpha; + count++; + } + + return alphaTotal ? [Math.round(Math.sqrt(redTotal / alphaTotal)), Math.round(Math.sqrt(greenTotal / alphaTotal)), Math.round(Math.sqrt(blueTotal / alphaTotal)), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; + } + }, { + key: "_dominantAlgorithm", + value: function _dominantAlgorithm(arr, len, preparedStep) { + var colorHash = {}, + divider = 24; + + for (var i = 0; i < len; i += preparedStep) { + var red = arr[i], + green = arr[i + 1], + blue = arr[i + 2], + alpha = arr[i + 3], + key = Math.round(red / divider) + ',' + Math.round(green / divider) + ',' + Math.round(blue / divider); + + if (colorHash[key]) { + colorHash[key] = [colorHash[key][0] + red * alpha, colorHash[key][1] + green * alpha, colorHash[key][2] + blue * alpha, colorHash[key][3] + alpha, colorHash[key][4] + 1]; + } else { + colorHash[key] = [red * alpha, green * alpha, blue * alpha, alpha, 1]; + } + } + + var buffer = Object.keys(colorHash).map(function (key) { + return colorHash[key]; + }).sort(function (a, b) { + var countA = a[4], + countB = b[4]; + return countA > countB ? -1 : countA === countB ? 0 : 1; + }); + + var _buffer$ = _slicedToArray(buffer[0], 5), + redTotal = _buffer$[0], + greenTotal = _buffer$[1], + blueTotal = _buffer$[2], + alphaTotal = _buffer$[3], + count = _buffer$[4]; + + return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0]; + } + }, { + key: "_bindImageEvents", + value: function _bindImageEvents(resource, callback, options) { + var _this = this; + + options = options || {}; + + var data = options && options.data, + defaultColor = this._getDefaultColor(options), + onload = function onload() { + unbindEvents(); + callback.call(resource, _this.getColor(resource, options), data); + }, + onerror = function onerror() { + unbindEvents(); + callback.call(resource, _this._prepareResult(defaultColor, new Error('Image error')), data); + }, + onabort = function onabort() { + unbindEvents(); + callback.call(resource, _this._prepareResult(defaultColor, new Error('Image abort')), data); + }, + unbindEvents = function unbindEvents() { + resource.removeEventListener('load', onload); + resource.removeEventListener('error', onerror); + resource.removeEventListener('abort', onabort); + }; + + resource.addEventListener('load', onload); + resource.addEventListener('error', onerror); + resource.addEventListener('abort', onabort); + } + }, { + key: "_prepareResult", + value: function _prepareResult(value, error) { + var rgb = value.slice(0, 3), + rgba = [].concat(rgb, value[3] / 255), + isDark = this._isDark(value); + + return { + error: error, + value: value, + rgb: 'rgb(' + rgb.join(',') + ')', + rgba: 'rgba(' + rgba.join(',') + ')', + hex: this._arrayToHex(rgb), + hexa: this._arrayToHex(value), + isDark: isDark, + isLight: !isDark + }; + } + }, { + key: "_getOriginalSize", + value: function _getOriginalSize(resource) { + if (resource instanceof HTMLImageElement) { + return { + width: resource.naturalWidth, + height: resource.naturalHeight + }; + } + + if (resource instanceof HTMLVideoElement) { + return { + width: resource.videoWidth, + height: resource.videoHeight + }; + } + + return { + width: resource.width, + height: resource.height + }; + } + }, { + key: "_toHex", + value: function _toHex(num) { + var str = num.toString(16); + return str.length === 1 ? '0' + str : str; + } + }, { + key: "_arrayToHex", + value: function _arrayToHex(arr) { + return '#' + arr.map(this._toHex).join(''); + } + }, { + key: "_isDark", + value: function _isDark(color) { + // http://www.w3.org/TR/AERT#color-contrast + var result = (color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000; + return result < 128; + } + }, { + key: "_makeCanvas", + value: function _makeCanvas() { + return typeof window === 'undefined' ? new OffscreenCanvas(1, 1) : document.createElement('canvas'); + } + }]); + + return FastAverageColor; +}(); + +return FastAverageColor; + +}))); + + +/***/ }), +/* 212 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17); +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20); +/* harmony import */ var _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__); + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +var listContentSchema = Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["getPhrasingContentSchema"])(), { + ul: {}, + ol: { + attributes: ['type'] + } +}); // Recursion is needed. +// Possible: ul > li > ul. +// Impossible: ul > ul. + + +['ul', 'ol'].forEach(function (tag) { + listContentSchema[tag].children = { + li: { + children: listContentSchema + } + }; +}); +var supports = { + className: false +}; +var schema = { + ordered: { + type: 'boolean', + default: false + }, + values: { + type: 'string', + source: 'html', + selector: 'ol,ul', + multiline: 'li', + default: '' + } +}; +var name = 'core/list'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('List'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Create a bulleted or numbered list.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["Path"], { + d: "M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z" + }))), + category: 'common', + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('bullet list'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('ordered list'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('numbered list')], + attributes: schema, + supports: supports, + transforms: { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['core/paragraph'], + transform: function transform(blockAttributes) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/list', { + values: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({ + value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["join"])(blockAttributes.map(function (_ref) { + var content = _ref.content; + var value = Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({ + html: content + }); + + if (blockAttributes.length > 1) { + return value; + } // When converting only one block, transform + // every line to a list item. + + + return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["replace"])(value, /\n/g, _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["LINE_SEPARATOR"]); + }), _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["LINE_SEPARATOR"]), + multilineTag: 'li' + }) + }); + } + }, { + type: 'block', + blocks: ['core/quote'], + transform: function transform(_ref2) { + var value = _ref2.value; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/list', { + values: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({ + value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({ + html: value, + multilineTag: 'p' + }), + multilineTag: 'li' + }) + }); + } + }, { + type: 'raw', + selector: 'ol,ul', + schema: { + ol: listContentSchema.ol, + ul: listContentSchema.ul + }, + transform: function transform(node) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/list', Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["getBlockAttributes"])('core/list', node.outerHTML), { + ordered: node.nodeName === 'OL' + })); + } + }].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(['*', '-'].map(function (prefix) { + return { + type: 'prefix', + prefix: prefix, + transform: function transform(content) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/list', { + values: "
  • ".concat(content, "
  • ") + }); + } + }; + })), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(['1.', '1)'].map(function (prefix) { + return { + type: 'prefix', + prefix: prefix, + transform: function transform(content) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/list', { + ordered: true, + values: "
  • ".concat(content, "
  • ") + }); + } + }; + }))), + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref3) { + var values = _ref3.values; + return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({ + html: values, + multilineTag: 'li', + multilineWrapperTags: ['ul', 'ol'] + }), _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["LINE_SEPARATOR"]).map(function (piece) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/paragraph', { + content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({ + value: piece + }) + }); + }); + } + }, { + type: 'block', + blocks: ['core/quote'], + transform: function transform(_ref4) { + var values = _ref4.values; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/quote', { + value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({ + value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({ + html: values, + multilineTag: 'li', + multilineWrapperTags: ['ul', 'ol'] + }), + multilineTag: 'p' + }) + }); + } + }] + }, + deprecated: [{ + supports: supports, + attributes: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, Object(lodash__WEBPACK_IMPORTED_MODULE_4__["omit"])(schema, ['ordered']), { + nodeName: { + type: 'string', + source: 'property', + selector: 'ol,ul', + property: 'nodeName', + default: 'UL' + } + }), + migrate: function migrate(attributes) { + var nodeName = attributes.nodeName, + migratedAttributes = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(attributes, ["nodeName"]); + + return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, migratedAttributes, { + ordered: 'OL' === nodeName + }); + }, + save: function save(_ref5) { + var attributes = _ref5.attributes; + var nodeName = attributes.nodeName, + values = attributes.values; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].Content, { + tagName: nodeName.toLowerCase(), + value: values + }); + } + }], + merge: function merge(attributes, attributesToMerge) { + var values = attributesToMerge.values; + + if (!values || values === '
  • ') { + return attributes; + } + + return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, attributes, { + values: attributes.values + values + }); + }, + edit: function edit(_ref6) { + var attributes = _ref6.attributes, + insertBlocksAfter = _ref6.insertBlocksAfter, + setAttributes = _ref6.setAttributes, + mergeBlocks = _ref6.mergeBlocks, + onReplace = _ref6.onReplace, + className = _ref6.className; + var ordered = attributes.ordered, + values = attributes.values; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"], { + identifier: "values", + multiline: "li", + tagName: ordered ? 'ol' : 'ul', + onChange: function onChange(nextValues) { + return setAttributes({ + values: nextValues + }); + }, + value: values, + wrapperClassName: "block-library-list", + className: className, + placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Write list…'), + onMerge: mergeBlocks, + unstableOnSplit: insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + + if (!blocks.length) { + blocks.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/paragraph')); + } + + if (after !== '
  • ') { + blocks.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/list', { + ordered: ordered, + values: after + })); + } + + setAttributes({ + values: before + }); + insertBlocksAfter(blocks); + } : undefined, + onRemove: function onRemove() { + return onReplace([]); + }, + onTagNameChange: function onTagNameChange(tag) { + return setAttributes({ + ordered: tag === 'ol' + }); + } + }); + }, + save: function save(_ref7) { + var attributes = _ref7.attributes; + var ordered = attributes.ordered, + values = attributes.values; + var tagName = ordered ? 'ol' : 'ul'; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__["RichText"].Content, { + tagName: tagName, + value: values, + multiline: "li" + }); + } +}; + + +/***/ }), +/* 213 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); + + +/** + * WordPress dependencies + */ + + + + +var name = 'core/preformatted'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Preformatted'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add text that respects your spacing and tabs, and also allows styling.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Path"], { + d: "M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Rect"], { + x: "6", + y: "10", + width: "2", + height: "2" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Rect"], { + x: "6", + y: "14", + width: "8", + height: "2" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Rect"], { + x: "16", + y: "14", + width: "2", + height: "2" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Rect"], { + x: "10", + y: "10", + width: "8", + height: "2" + })), + category: 'formatting', + attributes: { + content: { + type: 'string', + source: 'html', + selector: 'pre', + default: '' + } + }, + transforms: { + from: [{ + type: 'block', + blocks: ['core/code', 'core/paragraph'], + transform: function transform(_ref) { + var content = _ref.content; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/preformatted', { + content: content + }); + } + }, { + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'PRE' && !(node.children.length === 1 && node.firstChild.nodeName === 'CODE'); + }, + schema: { + pre: { + children: Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["getPhrasingContentSchema"])() + } + } + }], + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/paragraph', attributes); + } + }] + }, + edit: function edit(_ref2) { + var attributes = _ref2.attributes, + mergeBlocks = _ref2.mergeBlocks, + setAttributes = _ref2.setAttributes, + className = _ref2.className; + var content = attributes.content; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"], { + tagName: "pre", + value: content.replace(/\n/g, '
    '), + onChange: function onChange(nextContent) { + setAttributes({ + content: nextContent + }); + }, + placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Write preformatted text…'), + wrapperClassName: className, + onMerge: mergeBlocks + }); + }, + save: function save(_ref3) { + var attributes = _ref3.attributes; + var content = attributes.content; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"].Content, { + tagName: "pre", + value: content + }); + }, + merge: function merge(attributes, attributesToMerge) { + return { + content: attributes.content + attributesToMerge.content + }; + } +}; + + +/***/ }), +/* 214 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); + + +/** + * WordPress dependencies + */ + + + +var name = 'core/separator'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Separator'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Create a break between ideas or sections with a horizontal separator.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["Path"], { + d: "M19 13H5v-2h14v2z" + })), + category: 'layout', + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('horizontal-line'), 'hr', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('divider')], + styles: [{ + name: 'default', + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Default'), + isDefault: true + }, { + name: 'wide', + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Wide Line') + }, { + name: 'dots', + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Dots') + }], + transforms: { + from: [{ + type: 'enter', + regExp: /^-{3,}$/, + transform: function transform() { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/separator'); + } + }, { + type: 'raw', + selector: 'hr', + schema: { + hr: {} + } + }] + }, + edit: function edit(_ref) { + var className = _ref.className; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("hr", { + className: className + }); + }, + save: function save() { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("hr", null); + } +}; + + +/***/ }), +/* 215 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_autop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66); +/* harmony import */ var _wordpress_autop__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_autop__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__); + + +/** + * WordPress dependencies + */ + + + + + + +var name = 'core/shortcode'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Shortcode'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Insert additional custom elements with a WordPress shortcode.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["Path"], { + d: "M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z" + })), + category: 'widgets', + attributes: { + text: { + type: 'string', + source: 'html' + } + }, + transforms: { + from: [{ + type: 'shortcode', + // Per "Shortcode names should be all lowercase and use all + // letters, but numbers and underscores should work fine too. + // Be wary of using hyphens (dashes), you'll be better off not + // using them." in https://codex.wordpress.org/Shortcode_API + // Require that the first character be a letter. This notably + // prevents footnote markings ([1]) from being caught as + // shortcodes. + tag: '[a-z][a-z0-9_-]*', + attributes: { + text: { + type: 'string', + shortcode: function shortcode(attrs, _ref) { + var content = _ref.content; + return Object(_wordpress_autop__WEBPACK_IMPORTED_MODULE_1__["removep"])(Object(_wordpress_autop__WEBPACK_IMPORTED_MODULE_1__["autop"])(content)); + } + } + }, + priority: 20 + }] + }, + supports: { + customClassName: false, + className: false, + html: false + }, + edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["withInstanceId"])(function (_ref2) { + var attributes = _ref2.attributes, + setAttributes = _ref2.setAttributes, + instanceId = _ref2.instanceId; + var inputId = "blocks-shortcode-input-".concat(instanceId); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { + className: "wp-block-shortcode" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("label", { + htmlFor: inputId + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["Dashicon"], { + icon: "shortcode" + }), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Shortcode')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__["PlainText"], { + className: "input-control", + id: inputId, + value: attributes.text, + placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Write shortcode here…'), + onChange: function onChange(text) { + return setAttributes({ + text: text + }); + } + })); + }), + save: function save(_ref3) { + var attributes = _ref3.attributes; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, attributes.text); + } +}; + + +/***/ }), +/* 216 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16); +/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__); + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +var name = 'core/spacer'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add white space between blocks and customize its height.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Path"], { + d: "M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7" + }))), + category: 'layout', + attributes: { + height: { + type: 'number', + default: 100 + } + }, + edit: Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_5__["withInstanceId"])(function (_ref) { + var attributes = _ref.attributes, + isSelected = _ref.isSelected, + setAttributes = _ref.setAttributes, + toggleSelection = _ref.toggleSelection, + instanceId = _ref.instanceId; + var height = attributes.height; + var id = "block-spacer-height-input-".concat(instanceId); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["ResizableBox"], { + className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('block-library-spacer__resize-container', { + 'is-selected': isSelected + }), + size: { + height: height + }, + minHeight: "20", + enable: { + top: false, + right: false, + bottom: true, + left: false, + topRight: false, + bottomRight: false, + bottomLeft: false, + topLeft: false + }, + onResizeStop: function onResizeStop(event, direction, elt, delta) { + setAttributes({ + height: parseInt(height + delta.height, 10) + }); + toggleSelection(true); + }, + onResizeStart: function onResizeStart() { + toggleSelection(false); + } + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["PanelBody"], { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer Settings') + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["BaseControl"], { + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Height in pixels'), + id: id + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("input", { + type: "number", + id: id, + onChange: function onChange(event) { + setAttributes({ + height: parseInt(event.target.value, 10) + }); + }, + value: height, + min: "20", + step: "10" + }))))); + }), + save: function save(_ref2) { + var attributes = _ref2.attributes; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", { + style: { + height: attributes.height + }, + "aria-hidden": true + }); + } +}; + + +/***/ }), +/* 217 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49); +/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__); + + +/** + * WordPress dependencies + */ + + + + + + +var name = 'core/subhead'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Subheading (deprecated)'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('This block is deprecated. Please use the Paragraph block instead.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["Path"], { + d: "M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z" + })), + category: 'common', + supports: { + // Hide from inserter as this block is deprecated. + inserter: false, + multiple: false + }, + attributes: { + content: { + type: 'string', + source: 'html', + selector: 'p' + }, + align: { + type: 'string' + } + }, + transforms: { + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/paragraph', attributes); + } + }] + }, + edit: function edit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + className = _ref.className; + var align = attributes.align, + content = attributes.content, + placeholder = attributes.placeholder; + _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_1___default()('The Subheading block', { + alternative: 'the Paragraph block', + plugin: 'Gutenberg' + }); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__["RichText"], { + tagName: "p", + value: content, + onChange: function onChange(nextContent) { + setAttributes({ + content: nextContent + }); + }, + style: { + textAlign: align + }, + className: className, + placeholder: placeholder || Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Write subheading…') + })); + }, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var align = attributes.align, + content = attributes.content; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__["RichText"].Content, { + tagName: "p", + style: { + textAlign: align + }, + value: content + }); + } +}; + + +/***/ }), +/* 218 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); + + +/** + * WordPress dependencies + */ + + + +var name = 'core/template'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Reusable Template'), + category: 'reusable', + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Template block used as a container.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["Rect"], { + x: "0", + fill: "none", + width: "24", + height: "24" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["G"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["Path"], { + d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z" + }))), + supports: { + customClassName: false, + html: false, + inserter: false + }, + edit: function edit() { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__["InnerBlocks"], null); + }, + save: function save() { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__["InnerBlocks"].Content, null); + } +}; + + +/***/ }), +/* 219 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49); +/* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7__); + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +var name = 'core/text-columns'; +var settings = { + // Disable insertion as this block is deprecated and ultimately replaced by the Columns block. + supports: { + inserter: false + }, + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Text Columns (deprecated)'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('This block is deprecated. Please use the Columns block instead.'), + icon: 'columns', + category: 'layout', + attributes: { + content: { + type: 'array', + source: 'query', + selector: 'p', + query: { + children: { + type: 'string', + source: 'html' + } + }, + default: [{}, {}] + }, + columns: { + type: 'number', + default: 2 + }, + width: { + type: 'string' + } + }, + transforms: { + to: [{ + type: 'block', + blocks: ['core/columns'], + transform: function transform(_ref) { + var className = _ref.className, + columns = _ref.columns, + content = _ref.content, + width = _ref.width; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/columns', { + align: 'wide' === width || 'full' === width ? width : undefined, + className: className, + columns: columns + }, content.map(function (_ref2) { + var children = _ref2.children; + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/column', {}, [Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__["createBlock"])('core/paragraph', { + content: children + })]); + })); + } + }] + }, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var width = attributes.width; + + if ('wide' === width || 'full' === width) { + return { + 'data-align': width + }; + } + }, + edit: function edit(_ref3) { + var attributes = _ref3.attributes, + setAttributes = _ref3.setAttributes, + className = _ref3.className; + var width = attributes.width, + content = attributes.content, + columns = attributes.columns; + _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_7___default()('The Text Columns block', { + alternative: 'the Columns block', + plugin: 'Gutenberg' + }); + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__["BlockAlignmentToolbar"], { + value: width, + onChange: function onChange(nextWidth) { + return setAttributes({ + width: nextWidth + }); + }, + controls: ['center', 'wide', 'full'] + })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__["InspectorControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["PanelBody"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["RangeControl"], { + label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: 4, + required: true + }))), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { + className: "".concat(className, " align").concat(width, " columns-").concat(columns) + }, Object(lodash__WEBPACK_IMPORTED_MODULE_2__["times"])(columns, function (index) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { + className: "wp-block-column", + key: "column-".concat(index) + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"], { + tagName: "p", + value: Object(lodash__WEBPACK_IMPORTED_MODULE_2__["get"])(content, [index, 'children']), + onChange: function onChange(nextContent) { + setAttributes({ + content: [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(content.slice(0, index)), [{ + children: nextContent + }], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(content.slice(index + 1))) + }); + }, + placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('New Column') + })); + }))); + }, + save: function save(_ref4) { + var attributes = _ref4.attributes; + var width = attributes.width, + content = attributes.content, + columns = attributes.columns; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { + className: "align".concat(width, " columns-").concat(columns) + }, Object(lodash__WEBPACK_IMPORTED_MODULE_2__["times"])(columns, function (index) { + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])("div", { + className: "wp-block-column", + key: "column-".concat(index) + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__["RichText"].Content, { + tagName: "p", + value: Object(lodash__WEBPACK_IMPORTED_MODULE_2__["get"])(content, [index, 'children']) + })); + })); + } +}; + + +/***/ }), +/* 220 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); + + +/** + * WordPress dependencies + */ + + + + + +var name = 'core/verse'; +var settings = { + title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Verse'), + description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Insert poetry. Use special spacing formats. Or quote song lyrics.'), + icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["Path"], { + d: "M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z" + })), + category: 'formatting', + keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('poetry')], + attributes: { + content: { + type: 'string', + source: 'html', + selector: 'pre', + default: '' + }, + textAlign: { + type: 'string' + } + }, + transforms: { + from: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/verse', attributes); + } + }], + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(attributes) { + return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["createBlock"])('core/paragraph', attributes); + } + }] + }, + edit: function edit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + className = _ref.className, + mergeBlocks = _ref.mergeBlocks; + var textAlign = attributes.textAlign, + content = attributes.content; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["BlockControls"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["AlignmentToolbar"], { + value: textAlign, + onChange: function onChange(nextAlign) { + setAttributes({ + textAlign: nextAlign + }); + } + })), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"], { + tagName: "pre", + value: content, + onChange: function onChange(nextContent) { + setAttributes({ + content: nextContent + }); + }, + style: { + textAlign: textAlign + }, + placeholder: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Write…'), + wrapperClassName: className, + onMerge: mergeBlocks + })); + }, + save: function save(_ref2) { + var attributes = _ref2.attributes; + var textAlign = attributes.textAlign, + content = attributes.content; + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__["RichText"].Content, { + tagName: "pre", + style: { + textAlign: textAlign + }, + value: content + }); + }, + merge: function merge(attributes, attributesToMerge) { + return { + content: attributes.content + attributesToMerge.content + }; + } +}; + + +/***/ }), +/* 221 */, +/* 222 */, +/* 223 */, +/* 224 */, +/* 225 */, +/* 226 */, +/* 227 */, +/* 228 */, +/* 229 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container-icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var media_container_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/media-container.js + + + + + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Constants + */ + +var ALLOWED_MEDIA_TYPES = ['image', 'video']; + +var media_container_MediaContainer = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MediaContainer, _Component); + + function MediaContainer() { + Object(classCallCheck["a" /* default */])(this, MediaContainer); + + return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaContainer).apply(this, arguments)); + } + + Object(createClass["a" /* default */])(MediaContainer, [{ + key: "renderToolbarEditButton", + value: function renderToolbarEditButton() { + var _this$props = this.props, + mediaId = _this$props.mediaId, + onSelectMedia = _this$props.onSelectMedia; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: onSelectMedia, + allowedTypes: ALLOWED_MEDIA_TYPES, + value: mediaId, + render: function render(_ref) { + var open = _ref.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit media'), + icon: "edit", + onClick: open + }); + } + }))); + } + }, { + key: "renderImage", + value: function renderImage() { + var _this$props2 = this.props, + mediaAlt = _this$props2.mediaAlt, + mediaUrl = _this$props2.mediaUrl, + className = _this$props2.className; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt + }))); + } + }, { + key: "renderVideo", + value: function renderVideo() { + var _this$props3 = this.props, + mediaUrl = _this$props3.mediaUrl, + className = _this$props3.className; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, this.renderToolbarEditButton(), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }))); + } + }, { + key: "renderPlaceholder", + value: function renderPlaceholder() { + var _this$props4 = this.props, + onSelectMedia = _this$props4.onSelectMedia, + className = _this$props4.className; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: media_container_icon + }), + labels: { + title: Object(external_this_wp_i18n_["__"])('Media area') + }, + className: className, + onSelect: onSelectMedia, + accept: "image/*,video/*", + allowedTypes: ALLOWED_MEDIA_TYPES + }); + } + }, { + key: "render", + value: function render() { + var _this$props5 = this.props, + mediaPosition = _this$props5.mediaPosition, + mediaUrl = _this$props5.mediaUrl, + mediaType = _this$props5.mediaType, + mediaWidth = _this$props5.mediaWidth, + commitWidthChange = _this$props5.commitWidthChange, + onWidthChange = _this$props5.onWidthChange; + + if (mediaType && mediaUrl) { + var onResize = function onResize(event, direction, elt) { + onWidthChange(parseInt(elt.style.width)); + }; + + var onResizeStop = function onResizeStop(event, direction, elt) { + commitWidthChange(parseInt(elt.style.width)); + }; + + var enablePositions = { + right: mediaPosition === 'left', + left: mediaPosition === 'right' + }; + var mediaElement = null; + + switch (mediaType) { + case 'image': + mediaElement = this.renderImage(); + break; + + case 'video': + mediaElement = this.renderVideo(); + break; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + className: "editor-media-container__resizer", + size: { + width: mediaWidth + '%' + }, + minWidth: "10%", + maxWidth: "100%", + enable: enablePositions, + onResize: onResize, + onResizeStop: onResizeStop, + axis: "x" + }, mediaElement); + } + + return this.renderPlaceholder(); + } + }]); + + return MediaContainer; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var media_container = (media_container_MediaContainer); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/edit.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +/** + * Constants + */ + +var ALLOWED_BLOCKS = ['core/button', 'core/paragraph', 'core/heading', 'core/list']; +var TEMPLATE = [['core/paragraph', { + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["_x"])('Content…', 'content placeholder') +}]]; + +var edit_MediaTextEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MediaTextEdit, _Component); + + function MediaTextEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, MediaTextEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaTextEdit).apply(this, arguments)); + _this.onSelectMedia = _this.onSelectMedia.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onWidthChange = _this.onWidthChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.commitWidthChange = _this.commitWidthChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + mediaWidth: null + }; + return _this; + } + + Object(createClass["a" /* default */])(MediaTextEdit, [{ + key: "onSelectMedia", + value: function onSelectMedia(media) { + var setAttributes = this.props.setAttributes; + var mediaType; + var src; // for media selections originated from a file upload. + + if (media.media_type) { + if (media.media_type === 'image') { + mediaType = 'image'; + } else { + // only images and videos are accepted so if the media_type is not an image we can assume it is a video. + // video contain the media type of 'file' in the object returned from the rest api. + mediaType = 'video'; + } + } else { + // for media selections originated from existing files in the media library. + mediaType = media.type; + } + + if (mediaType === 'image') { + // Try the "large" size URL, falling back to the "full" size URL below. + src = Object(external_lodash_["get"])(media, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(media, ['media_details', 'sizes', 'large', 'source_url']); + } + + setAttributes({ + mediaAlt: media.alt, + mediaId: media.id, + mediaType: mediaType, + mediaUrl: src || media.url + }); + } + }, { + key: "onWidthChange", + value: function onWidthChange(width) { + this.setState({ + mediaWidth: width + }); + } + }, { + key: "commitWidthChange", + value: function commitWidthChange(width) { + var setAttributes = this.props.setAttributes; + setAttributes({ + mediaWidth: width + }); + this.setState({ + mediaWidth: null + }); + } + }, { + key: "renderMediaArea", + value: function renderMediaArea() { + var attributes = this.props.attributes; + var mediaAlt = attributes.mediaAlt, + mediaId = attributes.mediaId, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth; + return Object(external_this_wp_element_["createElement"])(media_container, Object(esm_extends["a" /* default */])({ + className: "block-library-media-text__media-container", + onSelectMedia: this.onSelectMedia, + onWidthChange: this.onWidthChange, + commitWidthChange: this.commitWidthChange + }, { + mediaAlt: mediaAlt, + mediaId: mediaId, + mediaType: mediaType, + mediaUrl: mediaUrl, + mediaPosition: mediaPosition, + mediaWidth: mediaWidth + })); + } + }, { + key: "render", + value: function render() { + var _classnames; + + var _this$props = this.props, + attributes = _this$props.attributes, + className = _this$props.className, + backgroundColor = _this$props.backgroundColor, + isSelected = _this$props.isSelected, + setAttributes = _this$props.setAttributes, + setBackgroundColor = _this$props.setBackgroundColor; + var isStackedOnMobile = attributes.isStackedOnMobile, + mediaAlt = attributes.mediaAlt, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaWidth = attributes.mediaWidth; + var temporaryMediaWidth = this.state.mediaWidth; + var classNames = classnames_default()(className, (_classnames = { + 'has-media-on-the-right': 'right' === mediaPosition, + 'is-selected': isSelected + }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), _classnames)); + var widthString = "".concat(temporaryMediaWidth || mediaWidth, "%"); + var style = { + gridTemplateColumns: 'right' === mediaPosition ? "auto ".concat(widthString) : "".concat(widthString, " auto"), + backgroundColor: backgroundColor.color + }; + var colorSettings = [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color') + }]; + var toolbarControls = [{ + icon: 'align-pull-left', + title: Object(external_this_wp_i18n_["__"])('Show media on left'), + isActive: mediaPosition === 'left', + onClick: function onClick() { + return setAttributes({ + mediaPosition: 'left' + }); + } + }, { + icon: 'align-pull-right', + title: Object(external_this_wp_i18n_["__"])('Show media on right'), + isActive: mediaPosition === 'right', + onClick: function onClick() { + return setAttributes({ + mediaPosition: 'right' + }); + } + }]; + + var onMediaAltChange = function onMediaAltChange(newMediaAlt) { + setAttributes({ + mediaAlt: newMediaAlt + }); + }; + + var mediaTextGeneralSettings = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Media & Text Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Stack on mobile'), + checked: isStackedOnMobile, + onChange: function onChange() { + return setAttributes({ + isStackedOnMobile: !isStackedOnMobile + }); + } + }), mediaType === 'image' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { + label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), + value: mediaAlt, + onChange: onMediaAltChange, + help: Object(external_this_wp_i18n_["__"])('Alternative text describes your image to people who can’t see it. Add a short description with its key details.') + })); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, mediaTextGeneralSettings, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + initialOpen: false, + colorSettings: colorSettings + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: toolbarControls + })), Object(external_this_wp_element_["createElement"])("div", { + className: classNames, + style: style + }, this.renderMediaArea(), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"], { + allowedBlocks: ALLOWED_BLOCKS, + template: TEMPLATE, + templateInsertUpdatesSelection: false + }))); + } + }]); + + return MediaTextEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_blockEditor_["withColors"])('backgroundColor')(edit_MediaTextEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/media-text/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return media_text_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var DEFAULT_MEDIA_WIDTH = 50; +var media_text_name = 'core/media-text'; +var blockAttributes = { + align: { + type: 'string', + default: 'wide' + }, + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + mediaAlt: { + type: 'string', + source: 'attribute', + selector: 'figure img', + attribute: 'alt', + default: '' + }, + mediaPosition: { + type: 'string', + default: 'left' + }, + mediaId: { + type: 'number' + }, + mediaUrl: { + type: 'string', + source: 'attribute', + selector: 'figure video,figure img', + attribute: 'src' + }, + mediaType: { + type: 'string' + }, + mediaWidth: { + type: 'number', + default: 50 + }, + isStackedOnMobile: { + type: 'boolean', + default: false + } +}; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Media & Text'), + description: Object(external_this_wp_i18n_["__"])('Set media and words side-by-side for a richer layout.'), + icon: icon, + category: 'layout', + keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('video')], + attributes: blockAttributes, + supports: { + align: ['wide', 'full'], + html: false + }, + transforms: { + from: [{ + type: 'block', + blocks: ['core/image'], + transform: function transform(_ref) { + var alt = _ref.alt, + url = _ref.url, + id = _ref.id; + return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { + mediaAlt: alt, + mediaId: id, + mediaUrl: url, + mediaType: 'image' + }); + } + }, { + type: 'block', + blocks: ['core/video'], + transform: function transform(_ref2) { + var src = _ref2.src, + id = _ref2.id; + return Object(external_this_wp_blocks_["createBlock"])('core/media-text', { + mediaId: id, + mediaUrl: src, + mediaType: 'video' + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/image'], + isMatch: function isMatch(_ref3) { + var mediaType = _ref3.mediaType, + mediaUrl = _ref3.mediaUrl; + return !mediaUrl || mediaType === 'image'; + }, + transform: function transform(_ref4) { + var mediaAlt = _ref4.mediaAlt, + mediaId = _ref4.mediaId, + mediaUrl = _ref4.mediaUrl; + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + alt: mediaAlt, + id: mediaId, + url: mediaUrl + }); + } + }, { + type: 'block', + blocks: ['core/video'], + isMatch: function isMatch(_ref5) { + var mediaType = _ref5.mediaType, + mediaUrl = _ref5.mediaUrl; + return !mediaUrl || mediaType === 'video'; + }, + transform: function transform(_ref6) { + var mediaId = _ref6.mediaId, + mediaUrl = _ref6.mediaUrl; + return Object(external_this_wp_blocks_["createBlock"])('core/video', { + id: mediaId, + src: mediaUrl + }); + } + }] + }, + edit: edit, + save: function save(_ref7) { + var _classnames; + + var attributes = _ref7.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + isStackedOnMobile = attributes.isStackedOnMobile, + mediaAlt = attributes.mediaAlt, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth, + mediaId = attributes.mediaId; + var mediaTypeRenders = { + image: function image() { + return Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt, + className: mediaId && mediaType === 'image' ? "wp-image-".concat(mediaId) : null + }); + }, + video: function video() { + return Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }); + } + }; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var className = classnames_default()((_classnames = { + 'has-media-on-the-right': 'right' === mediaPosition + }, Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames, 'is-stacked-on-mobile', isStackedOnMobile), _classnames)); + var gridTemplateColumns; + + if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { + gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); + } + + var style = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + gridTemplateColumns: gridTemplateColumns + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: style + }, Object(external_this_wp_element_["createElement"])("figure", { + className: "wp-block-media-text__media" + }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-media-text__content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); + }, + deprecated: [{ + attributes: blockAttributes, + save: function save(_ref8) { + var _classnames2; + + var attributes = _ref8.attributes; + var backgroundColor = attributes.backgroundColor, + customBackgroundColor = attributes.customBackgroundColor, + isStackedOnMobile = attributes.isStackedOnMobile, + mediaAlt = attributes.mediaAlt, + mediaPosition = attributes.mediaPosition, + mediaType = attributes.mediaType, + mediaUrl = attributes.mediaUrl, + mediaWidth = attributes.mediaWidth; + var mediaTypeRenders = { + image: function image() { + return Object(external_this_wp_element_["createElement"])("img", { + src: mediaUrl, + alt: mediaAlt + }); + }, + video: function video() { + return Object(external_this_wp_element_["createElement"])("video", { + controls: true, + src: mediaUrl + }); + } + }; + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var className = classnames_default()((_classnames2 = { + 'has-media-on-the-right': 'right' === mediaPosition + }, Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), Object(defineProperty["a" /* default */])(_classnames2, 'is-stacked-on-mobile', isStackedOnMobile), _classnames2)); + var gridTemplateColumns; + + if (mediaWidth !== DEFAULT_MEDIA_WIDTH) { + gridTemplateColumns = 'right' === mediaPosition ? "auto ".concat(mediaWidth, "%") : "".concat(mediaWidth, "% auto"); + } + + var style = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + gridTemplateColumns: gridTemplateColumns + }; + return Object(external_this_wp_element_["createElement"])("div", { + className: className, + style: style + }, Object(external_this_wp_element_["createElement"])("figure", { + className: "wp-block-media-text__media" + }, (mediaTypeRenders[mediaType] || external_lodash_["noop"])()), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-media-text__content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); + } + }] +}; + + +/***/ }), +/* 230 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(28); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// EXTERNAL MODULE: external {"this":["wp","url"]} +var external_this_wp_url_ = __webpack_require__(23); + +// EXTERNAL MODULE: external {"this":["wp","viewport"]} +var external_this_wp_viewport_ = __webpack_require__(40); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js +var util = __webpack_require__(53); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/utils.js +function calculatePreferedImageSize(image, container) { + var maxWidth = container.clientWidth; + var exceedMaxWidth = image.width > maxWidth; + var ratio = image.height / image.width; + var width = exceedMaxWidth ? maxWidth : image.width; + var height = exceedMaxWidth ? maxWidth * ratio : image.height; + return { + width: width, + height: height + }; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-size.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + +var image_size_ImageSize = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ImageSize, _Component); + + function ImageSize() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ImageSize); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSize).apply(this, arguments)); + _this.state = { + width: undefined, + height: undefined + }; + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.calculateSize = _this.calculateSize.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(ImageSize, [{ + key: "bindContainer", + value: function bindContainer(ref) { + this.container = ref; + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.src !== prevProps.src) { + this.setState({ + width: undefined, + height: undefined + }); + this.fetchImageSize(); + } + + if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) { + this.calculateSize(); + } + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this.fetchImageSize(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + if (this.image) { + this.image.onload = external_lodash_["noop"]; + } + } + }, { + key: "fetchImageSize", + value: function fetchImageSize() { + this.image = new window.Image(); + this.image.onload = this.calculateSize; + this.image.src = this.props.src; + } + }, { + key: "calculateSize", + value: function calculateSize() { + var _calculatePreferedIma = calculatePreferedImageSize(this.image, this.container), + width = _calculatePreferedIma.width, + height = _calculatePreferedIma.height; + + this.setState({ + width: width, + height: height + }); + } + }, { + key: "render", + value: function render() { + var sizes = { + imageWidth: this.image && this.image.width, + imageHeight: this.image && this.image.height, + containerWidth: this.container && this.container.clientWidth, + containerHeight: this.container && this.container.clientHeight, + imageWidthWithinContainer: this.state.width, + imageHeightWithinContainer: this.state.height + }; + return Object(external_this_wp_element_["createElement"])("div", { + ref: this.bindContainer + }, this.props.children(sizes)); + } + }]); + + return ImageSize; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var image_size = (Object(external_this_wp_compose_["withGlobalEvents"])({ + resize: 'calculateSize' +})(image_size_ImageSize)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + + + + +/** + * Internal dependencies + */ + + + + +/** + * Module constants + */ + +var MIN_SIZE = 20; +var LINK_DESTINATION_NONE = 'none'; +var LINK_DESTINATION_MEDIA = 'media'; +var LINK_DESTINATION_ATTACHMENT = 'attachment'; +var LINK_DESTINATION_CUSTOM = 'custom'; +var NEW_TAB_REL = 'noreferrer noopener'; +var ALLOWED_MEDIA_TYPES = ['image']; +var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { + var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); + imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; + return imageProps; +}; +/** + * Is the URL a temporary blob URL? A blob URL is one that is used temporarily + * while the image is being uploaded and will not have an id yet allocated. + * + * @param {number=} id The id of the image. + * @param {string=} url The url of the image. + * + * @return {boolean} Is the URL a Blob URL + */ + +var edit_isTemporaryImage = function isTemporaryImage(id, url) { + return !id && Object(external_this_wp_blob_["isBlobURL"])(url); +}; +/** + * Is the url for the image hosted externally. An externally hosted image has no id + * and is not a blob url. + * + * @param {number=} id The id of the image. + * @param {string=} url The url of the image. + * + * @return {boolean} Is the url an externally hosted url? + */ + + +var edit_isExternalImage = function isExternalImage(id, url) { + return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url); +}; + +var edit_ImageEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ImageEdit, _Component); + + function ImageEdit(_ref) { + var _this; + + var attributes = _ref.attributes; + + Object(classCallCheck["a" /* default */])(this, ImageEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments)); + _this.updateAlt = _this.updateAlt.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.updateAlignment = _this.updateAlignment.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onFocusCaption = _this.onFocusCaption.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.updateImageURL = _this.updateImageURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.updateWidth = _this.updateWidth.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.updateHeight = _this.updateHeight.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.updateDimensions = _this.updateDimensions.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSetCustomHref = _this.onSetCustomHref.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSetLinkClass = _this.onSetLinkClass.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSetLinkDestination = _this.onSetLinkDestination.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSetNewTab = _this.onSetNewTab.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.getFilename = _this.getFilename.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.toggleIsEditing = _this.toggleIsEditing.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onImageError = _this.onImageError.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + captionFocused: false, + isEditing: !attributes.url + }; + return _this; + } + + Object(createClass["a" /* default */])(ImageEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes, + noticeOperations = _this$props.noticeOperations; + var id = attributes.id, + _attributes$url = attributes.url, + url = _attributes$url === void 0 ? '' : _attributes$url; + + if (edit_isTemporaryImage(id, url)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(url); + + if (file) { + Object(external_this_wp_editor_["mediaUpload"])({ + filesList: [file], + onFileChange: function onFileChange(_ref2) { + var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), + image = _ref3[0]; + + setAttributes(edit_pickRelevantMediaFiles(image)); + }, + allowedTypes: ALLOWED_MEDIA_TYPES, + onError: function onError(message) { + noticeOperations.createErrorNotice(message); + + _this2.setState({ + isEditing: true + }); + } + }); + } + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _prevProps$attributes = prevProps.attributes, + prevID = _prevProps$attributes.id, + _prevProps$attributes2 = _prevProps$attributes.url, + prevURL = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2; + var _this$props$attribute = this.props.attributes, + id = _this$props$attribute.id, + _this$props$attribute2 = _this$props$attribute.url, + url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2; + + if (edit_isTemporaryImage(prevID, prevURL) && !edit_isTemporaryImage(id, url)) { + Object(external_this_wp_blob_["revokeBlobURL"])(url); + } + + if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) { + this.setState({ + captionFocused: false + }); + } + } + }, { + key: "onUploadError", + value: function onUploadError(message) { + var noticeOperations = this.props.noticeOperations; + noticeOperations.createErrorNotice(message); + this.setState({ + isEditing: true + }); + } + }, { + key: "onSelectImage", + value: function onSelectImage(media) { + if (!media || !media.url) { + this.props.setAttributes({ + url: undefined, + alt: undefined, + id: undefined, + caption: undefined + }); + return; + } + + this.setState({ + isEditing: false + }); + this.props.setAttributes(Object(objectSpread["a" /* default */])({}, edit_pickRelevantMediaFiles(media), { + width: undefined, + height: undefined + })); + } + }, { + key: "onSetLinkDestination", + value: function onSetLinkDestination(value) { + var href; + + if (value === LINK_DESTINATION_NONE) { + href = undefined; + } else if (value === LINK_DESTINATION_MEDIA) { + href = this.props.image && this.props.image.source_url || this.props.attributes.url; + } else if (value === LINK_DESTINATION_ATTACHMENT) { + href = this.props.image && this.props.image.link; + } else { + href = this.props.attributes.href; + } + + this.props.setAttributes({ + linkDestination: value, + href: href + }); + } + }, { + key: "onSelectURL", + value: function onSelectURL(newURL) { + var url = this.props.attributes.url; + + if (newURL !== url) { + this.props.setAttributes({ + url: newURL, + id: undefined + }); + } + + this.setState({ + isEditing: false + }); + } + }, { + key: "onImageError", + value: function onImageError(url) { + // Check if there's an embed block that handles this URL. + var embedBlock = Object(util["a" /* createUpgradedEmbedBlock */])({ + attributes: { + url: url + } + }); + + if (undefined !== embedBlock) { + this.props.onReplace(embedBlock); + } + } + }, { + key: "onSetCustomHref", + value: function onSetCustomHref(value) { + this.props.setAttributes({ + href: value + }); + } + }, { + key: "onSetLinkClass", + value: function onSetLinkClass(value) { + this.props.setAttributes({ + linkClass: value + }); + } + }, { + key: "onSetLinkRel", + value: function onSetLinkRel(value) { + this.props.setAttributes({ + rel: value + }); + } + }, { + key: "onSetNewTab", + value: function onSetNewTab(value) { + var rel = this.props.attributes.rel; + var linkTarget = value ? '_blank' : undefined; + var updatedRel = rel; + + if (linkTarget && !rel) { + updatedRel = NEW_TAB_REL; + } else if (!linkTarget && rel === NEW_TAB_REL) { + updatedRel = undefined; + } + + this.props.setAttributes({ + linkTarget: linkTarget, + rel: updatedRel + }); + } + }, { + key: "onFocusCaption", + value: function onFocusCaption() { + if (!this.state.captionFocused) { + this.setState({ + captionFocused: true + }); + } + } + }, { + key: "onImageClick", + value: function onImageClick() { + if (this.state.captionFocused) { + this.setState({ + captionFocused: false + }); + } + } + }, { + key: "updateAlt", + value: function updateAlt(newAlt) { + this.props.setAttributes({ + alt: newAlt + }); + } + }, { + key: "updateAlignment", + value: function updateAlignment(nextAlign) { + var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? { + width: undefined, + height: undefined + } : {}; + this.props.setAttributes(Object(objectSpread["a" /* default */])({}, extraUpdatedAttributes, { + align: nextAlign + })); + } + }, { + key: "updateImageURL", + value: function updateImageURL(url) { + this.props.setAttributes({ + url: url, + width: undefined, + height: undefined + }); + } + }, { + key: "updateWidth", + value: function updateWidth(width) { + this.props.setAttributes({ + width: parseInt(width, 10) + }); + } + }, { + key: "updateHeight", + value: function updateHeight(height) { + this.props.setAttributes({ + height: parseInt(height, 10) + }); + } + }, { + key: "updateDimensions", + value: function updateDimensions() { + var _this3 = this; + + var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; + var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + return function () { + _this3.props.setAttributes({ + width: width, + height: height + }); + }; + } + }, { + key: "getFilename", + value: function getFilename(url) { + var path = Object(external_this_wp_url_["getPath"])(url); + + if (path) { + return Object(external_lodash_["last"])(path.split('/')); + } + } + }, { + key: "getLinkDestinationOptions", + value: function getLinkDestinationOptions() { + return [{ + value: LINK_DESTINATION_NONE, + label: Object(external_this_wp_i18n_["__"])('None') + }, { + value: LINK_DESTINATION_MEDIA, + label: Object(external_this_wp_i18n_["__"])('Media File') + }, { + value: LINK_DESTINATION_ATTACHMENT, + label: Object(external_this_wp_i18n_["__"])('Attachment Page') + }, { + value: LINK_DESTINATION_CUSTOM, + label: Object(external_this_wp_i18n_["__"])('Custom URL') + }]; + } + }, { + key: "toggleIsEditing", + value: function toggleIsEditing() { + this.setState({ + isEditing: !this.state.isEditing + }); + } + }, { + key: "getImageSizeOptions", + value: function getImageSizeOptions() { + var _this$props2 = this.props, + imageSizes = _this$props2.imageSizes, + image = _this$props2.image; + return Object(external_lodash_["compact"])(Object(external_lodash_["map"])(imageSizes, function (_ref4) { + var name = _ref4.name, + slug = _ref4.slug; + var sizeUrl = Object(external_lodash_["get"])(image, ['media_details', 'sizes', slug, 'source_url']); + + if (!sizeUrl) { + return null; + } + + return { + value: sizeUrl, + label: name + }; + })); + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var isEditing = this.state.isEditing; + var _this$props3 = this.props, + attributes = _this$props3.attributes, + setAttributes = _this$props3.setAttributes, + isLargeViewport = _this$props3.isLargeViewport, + isSelected = _this$props3.isSelected, + className = _this$props3.className, + maxWidth = _this$props3.maxWidth, + noticeUI = _this$props3.noticeUI, + toggleSelection = _this$props3.toggleSelection, + isRTL = _this$props3.isRTL; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + id = attributes.id, + href = attributes.href, + rel = attributes.rel, + linkClass = attributes.linkClass, + linkDestination = attributes.linkDestination, + width = attributes.width, + height = attributes.height, + linkTarget = attributes.linkTarget; + var isExternal = edit_isExternalImage(id, url); + var toolbarEditButton; + + if (url) { + if (isExternal) { + toolbarEditButton = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-icon-button components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit image'), + onClick: this.toggleIsEditing, + icon: "edit" + })); + } else { + toolbarEditButton = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: this.onSelectImage, + allowedTypes: ALLOWED_MEDIA_TYPES, + value: id, + render: function render(_ref5) { + var open = _ref5.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit image'), + icon: "edit", + onClick: open + }); + } + }))); + } + } + + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + value: align, + onChange: this.updateAlignment + }), toolbarEditButton); + + if (isEditing || !url) { + var src = isExternal ? url : undefined; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon + }), + className: className, + onSelect: this.onSelectImage, + onSelectURL: this.onSelectURL, + notices: noticeUI, + onError: this.onUploadError, + accept: "image/*", + allowedTypes: ALLOWED_MEDIA_TYPES, + value: { + id: id, + src: src + } + })); + } + + var classes = classnames_default()(className, { + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url), + 'is-resized': !!width || !!height, + 'is-focused': isSelected + }); + var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport; + var isLinkURLInputReadOnly = linkDestination !== LINK_DESTINATION_CUSTOM; + var imageSizeOptions = this.getImageSizeOptions(); + + var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Image Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], { + label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'), + value: alt, + onChange: _this4.updateAlt, + help: Object(external_this_wp_i18n_["__"])('Alternative text describes your image to people who can’t see it. Add a short description with its key details.') + }), !Object(external_lodash_["isEmpty"])(imageSizeOptions) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Image Size'), + value: url, + options: imageSizeOptions, + onChange: _this4.updateImageURL + }), isResizable && Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-image__dimensions" + }, Object(external_this_wp_element_["createElement"])("p", { + className: "block-library-image__dimensions__row" + }, Object(external_this_wp_i18n_["__"])('Image Dimensions')), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-image__dimensions__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + className: "block-library-image__dimensions__width", + label: Object(external_this_wp_i18n_["__"])('Width'), + value: width !== undefined ? width : imageWidth, + min: 1, + onChange: _this4.updateWidth + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + className: "block-library-image__dimensions__height", + label: Object(external_this_wp_i18n_["__"])('Height'), + value: height !== undefined ? height : imageHeight, + min: 1, + onChange: _this4.updateHeight + })), Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-image__dimensions__row" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], { + "aria-label": Object(external_this_wp_i18n_["__"])('Image Size') + }, [25, 50, 75, 100].map(function (scale) { + var scaledWidth = Math.round(imageWidth * (scale / 100)); + var scaledHeight = Math.round(imageHeight * (scale / 100)); + var isCurrent = width === scaledWidth && height === scaledHeight; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: scale, + isSmall: true, + isPrimary: isCurrent, + "aria-pressed": isCurrent, + onClick: _this4.updateDimensions(scaledWidth, scaledHeight) + }, scale, "%"); + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isSmall: true, + onClick: _this4.updateDimensions() + }, Object(external_this_wp_i18n_["__"])('Reset'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Link Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Link To'), + value: linkDestination, + options: _this4.getLinkDestinationOptions(), + onChange: _this4.onSetLinkDestination + }), linkDestination !== LINK_DESTINATION_NONE && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link URL'), + value: href || '', + onChange: _this4.onSetCustomHref, + placeholder: !isLinkURLInputReadOnly ? 'https://' : undefined, + readOnly: isLinkURLInputReadOnly + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Open in New Tab'), + onChange: _this4.onSetNewTab, + checked: linkTarget === '_blank' + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link CSS Class'), + value: linkClass || '', + onChange: _this4.onSetLinkClass + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + label: Object(external_this_wp_i18n_["__"])('Link Rel'), + value: rel || '', + onChange: _this4.onSetLinkRel + })))); + }; // Disable reason: Each block can be selected by clicking on it + + /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, Object(external_this_wp_element_["createElement"])(image_size, { + src: url, + dirtynessTrigger: align + }, function (sizes) { + var imageWidthWithinContainer = sizes.imageWidthWithinContainer, + imageHeightWithinContainer = sizes.imageHeightWithinContainer, + imageWidth = sizes.imageWidth, + imageHeight = sizes.imageHeight; + + var filename = _this4.getFilename(url); + + var defaultedAlt; + + if (alt) { + defaultedAlt = alt; + } else if (filename) { + defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename); + } else { + defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute'); + } + + var img = // Disable reason: Image itself is not meant to be interactive, but + // should direct focus to block. + + /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: defaultedAlt, + onClick: _this4.onImageClick, + onError: function onError() { + return _this4.onImageError(url); + } + }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) + /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ + ; + + if (!isResizable || !imageWidthWithinContainer) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])("div", { + style: { + width: width, + height: height + } + }, img)); + } + + var currentWidth = width || imageWidthWithinContainer; + var currentHeight = height || imageHeightWithinContainer; + var ratio = imageWidth / imageHeight; + var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio; + var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an explicit pixel value for the max-width. + // In absence of being able to set the content-width, this max-width is currently dictated by the vanilla editor style. + // The following variable adds a buffer to this vanilla style, so 3rd party themes have some wiggleroom. + // This does, in most cases, allow you to scale the image beyond the width of the main column, though not infinitely. + // @todo It would be good to revisit this once a content-width variable becomes available. + + var maxWidthBuffer = maxWidth * 2.5; + var showRightHandle = false; + var showLeftHandle = false; + /* eslint-disable no-lonely-if */ + // See https://github.com/WordPress/gutenberg/issues/7584. + + if (align === 'center') { + // When the image is centered, show both handles. + showRightHandle = true; + showLeftHandle = true; + } else if (isRTL) { + // In RTL mode the image is on the right by default. + // Show the right handle and hide the left handle only when it is aligned left. + // Otherwise always show the left handle. + if (align === 'left') { + showRightHandle = true; + } else { + showLeftHandle = true; + } + } else { + // Show the left handle and hide the right handle only when the image is aligned right. + // Otherwise always show the right handle. + if (align === 'right') { + showLeftHandle = true; + } else { + showRightHandle = true; + } + } + /* eslint-enable no-lonely-if */ + + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], { + size: width && height ? { + width: width, + height: height + } : undefined, + minWidth: minWidth, + maxWidth: maxWidthBuffer, + minHeight: minHeight, + maxHeight: maxWidthBuffer / ratio, + lockAspectRatio: true, + enable: { + top: false, + right: showRightHandle, + bottom: true, + left: showLeftHandle + }, + onResizeStart: function onResizeStart() { + toggleSelection(false); + }, + onResizeStop: function onResizeStop(event, direction, elt, delta) { + setAttributes({ + width: parseInt(currentWidth + delta.width, 10), + height: parseInt(currentHeight + delta.height, 10) + }); + toggleSelection(true); + } + }, img)); + }), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + unstableOnFocus: this.onFocusCaption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + isSelected: this.state.captionFocused, + inlineToolbar: true + }))); + /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + } + }]); + + return ImageEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { + var _select = select('core'), + getMedia = _select.getMedia; + + var _select2 = select('core/block-editor'), + getSettings = _select2.getSettings; + + var id = props.attributes.id; + + var _getSettings = getSettings(), + maxWidth = _getSettings.maxWidth, + isRTL = _getSettings.isRTL, + imageSizes = _getSettings.imageSizes; + + return { + image: id ? getMedia(id) : null, + maxWidth: maxWidth, + isRTL: isRTL, + imageSizes: imageSizes + }; +}), Object(external_this_wp_viewport_["withViewportMatch"])({ + isLargeViewport: 'medium' +}), external_this_wp_components_["withNotices"]])(edit_ImageEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return image_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stripFirstImage", function() { return stripFirstImage; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var image_name = 'core/image'; +var blockAttributes = { + 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' + }, + align: { + type: 'string' + }, + width: { + type: 'number' + }, + height: { + type: 'number' + }, + linkDestination: { + type: 'string', + default: 'none' + }, + linkTarget: { + type: 'string', + source: 'attribute', + selector: 'figure > a', + attribute: 'target' + } +}; +var imageSchema = { + img: { + attributes: ['src', 'alt'], + classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/] + } +}; +var schema = { + figure: { + require: ['img'], + children: Object(objectSpread["a" /* default */])({}, imageSchema, { + a: { + attributes: ['href', 'rel', 'target'], + children: imageSchema + }, + figcaption: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + }) + } +}; + +function getFirstAnchorAttributeFormHTML(html, attributeName) { + var _document$implementat = document.implementation.createHTMLDocument(''), + body = _document$implementat.body; + + body.innerHTML = html; + var firstElementChild = body.firstElementChild; + + if (firstElementChild && firstElementChild.nodeName === 'A') { + return firstElementChild.getAttribute(attributeName) || undefined; + } +} + +function stripFirstImage(attributes, _ref) { + var shortcode = _ref.shortcode; + + var _document$implementat2 = document.implementation.createHTMLDocument(''), + body = _document$implementat2.body; + + body.innerHTML = shortcode.content; + var nodeToRemove = body.querySelector('img'); // if an image has parents, find the topmost node to remove + + while (nodeToRemove && nodeToRemove.parentNode && nodeToRemove.parentNode !== body) { + nodeToRemove = nodeToRemove.parentNode; + } + + if (nodeToRemove) { + nodeToRemove.parentNode.removeChild(nodeToRemove); + } + + return body.innerHTML.trim(); +} +var settings = { + title: Object(external_this_wp_i18n_["__"])('Image'), + description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'), + icon: icon, + category: 'common', + keywords: ['img', // "img" is not translated as it is intended to reflect the HTML tag. + Object(external_this_wp_i18n_["__"])('photo')], + attributes: blockAttributes, + transforms: { + from: [{ + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'FIGURE' && !!node.querySelector('img'); + }, + schema: schema, + transform: function transform(node) { + // Search both figure and image classes. Alignment could be + // set on either. ID is set on the image. + var className = node.className + ' ' + node.querySelector('img').className; + var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className); + var align = alignMatches ? alignMatches[1] : undefined; + var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className); + var id = idMatches ? Number(idMatches[1]) : undefined; + var anchorElement = node.querySelector('a'); + var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined; + var href = anchorElement && anchorElement.href ? anchorElement.href : undefined; + var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined; + var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined; + var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, { + align: align, + id: id, + linkDestination: linkDestination, + href: href, + rel: rel, + linkClass: linkClass + }); + return Object(external_this_wp_blocks_["createBlock"])('core/image', attributes); + } + }, { + type: 'files', + isMatch: function isMatch(files) { + return files.length === 1 && files[0].type.indexOf('image/') === 0; + }, + transform: function transform(files) { + var file = files[0]; // We don't need to upload the media directly here + // It's already done as part of the `componentDidMount` + // int the image block + + var block = Object(external_this_wp_blocks_["createBlock"])('core/image', { + url: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + return block; + } + }, { + type: 'shortcode', + tag: 'caption', + attributes: { + url: { + type: 'string', + source: 'attribute', + attribute: 'src', + selector: 'img' + }, + alt: { + type: 'string', + source: 'attribute', + attribute: 'alt', + selector: 'img' + }, + caption: { + shortcode: stripFirstImage + }, + href: { + shortcode: function shortcode(attributes, _ref2) { + var _shortcode = _ref2.shortcode; + return getFirstAnchorAttributeFormHTML(_shortcode.content, 'href'); + } + }, + rel: { + shortcode: function shortcode(attributes, _ref3) { + var _shortcode2 = _ref3.shortcode; + return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'rel'); + } + }, + linkClass: { + shortcode: function shortcode(attributes, _ref4) { + var _shortcode3 = _ref4.shortcode; + return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'class'); + } + }, + id: { + type: 'number', + shortcode: function shortcode(_ref5) { + var id = _ref5.named.id; + + if (!id) { + return; + } + + return parseInt(id.replace('attachment_', ''), 10); + } + }, + align: { + type: 'string', + shortcode: function shortcode(_ref6) { + var _ref6$named$align = _ref6.named.align, + align = _ref6$named$align === void 0 ? 'alignnone' : _ref6$named$align; + return align.replace('align', ''); + } + } + } + }] + }, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var align = attributes.align, + width = attributes.width; + + if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) { + return { + 'data-align': align, + 'data-resized': !!width + }; + } + }, + edit: edit, + save: function save(_ref7) { + var _classnames; + + var attributes = _ref7.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + rel = attributes.rel, + linkClass = attributes.linkClass, + width = attributes.width, + height = attributes.height, + id = attributes.id, + linkTarget = attributes.linkTarget; + var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames)); + var image = Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + className: id ? "wp-image-".concat(id) : null, + width: width, + height: height + }); + var figure = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, href ? Object(external_this_wp_element_["createElement"])("a", { + className: linkClass, + href: href, + target: linkTarget, + rel: rel + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + + if ('left' === align || 'right' === align || 'center' === align) { + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, figure)); + } + + return Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, figure); + }, + deprecated: [{ + attributes: blockAttributes, + save: function save(_ref8) { + var _classnames2; + + var attributes = _ref8.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + width = attributes.width, + height = attributes.height, + id = attributes.id; + var classes = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames2, 'is-resized', width || height), _classnames2)); + var image = Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + className: id ? "wp-image-".concat(id) : null, + width: width, + height: height + }); + return Object(external_this_wp_element_["createElement"])("figure", { + className: classes + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } + }, { + attributes: blockAttributes, + save: function save(_ref9) { + var attributes = _ref9.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + width = attributes.width, + height = attributes.height, + id = attributes.id; + var image = Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + className: id ? "wp-image-".concat(id) : null, + width: width, + height: height + }); + return Object(external_this_wp_element_["createElement"])("figure", { + className: align ? "align".concat(align) : null + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } + }, { + attributes: blockAttributes, + save: function save(_ref10) { + var attributes = _ref10.attributes; + var url = attributes.url, + alt = attributes.alt, + caption = attributes.caption, + align = attributes.align, + href = attributes.href, + width = attributes.width, + height = attributes.height; + var extraImageProps = width || height ? { + width: width, + height: height + } : {}; + var image = Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({ + src: url, + alt: alt + }, extraImageProps)); + var figureStyle = {}; + + if (width) { + figureStyle = { + width: width + }; + } else if (align === 'left' || align === 'right') { + figureStyle = { + maxWidth: '50%' + }; + } + + return Object(external_this_wp_element_["createElement"])("figure", { + className: align ? "align".concat(align) : null, + style: figureStyle + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } + }] +}; + + +/***/ }), +/* 231 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} +var external_this_wp_apiFetch_ = __webpack_require__(33); +var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} +var external_this_wp_isShallowEqual_ = __webpack_require__(42); +var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/WidgetEditDomManager.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +var WidgetEditDomManager_WidgetEditDomManager = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(WidgetEditDomManager, _Component); + + function WidgetEditDomManager() { + var _this; + + Object(classCallCheck["a" /* default */])(this, WidgetEditDomManager); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WidgetEditDomManager).apply(this, arguments)); + _this.containerRef = Object(external_this_wp_element_["createRef"])(); + _this.formRef = Object(external_this_wp_element_["createRef"])(); + _this.widgetContentRef = Object(external_this_wp_element_["createRef"])(); + _this.triggerWidgetEvent = _this.triggerWidgetEvent.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(WidgetEditDomManager, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.triggerWidgetEvent('widget-added'); + this.previousFormData = new window.FormData(this.formRef.current); + } + }, { + key: "shouldComponentUpdate", + value: function shouldComponentUpdate(nextProps) { + // We can not leverage react render otherwise we would destroy dom changes applied by the plugins. + // We manually update the required dom node replicating what the widget screen and the customizer do. + if (nextProps.form !== this.props.form && this.widgetContentRef.current) { + var widgetContent = this.widgetContentRef.current; + widgetContent.innerHTML = nextProps.form; + this.triggerWidgetEvent('widget-updated'); + this.previousFormData = new window.FormData(this.formRef.current); + } + + return false; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + id = _this$props.id, + idBase = _this$props.idBase, + widgetNumber = _this$props.widgetNumber, + form = _this$props.form; + return Object(external_this_wp_element_["createElement"])("div", { + className: "widget open", + ref: this.containerRef + }, Object(external_this_wp_element_["createElement"])("div", { + className: "widget-inside" + }, Object(external_this_wp_element_["createElement"])("form", { + ref: this.formRef, + method: "post", + onBlur: function onBlur() { + if (_this2.shouldTriggerInstanceUpdate()) { + _this2.props.onInstanceChange(_this2.retrieveUpdatedInstance()); + } + } + }, Object(external_this_wp_element_["createElement"])("div", { + ref: this.widgetContentRef, + className: "widget-content", + dangerouslySetInnerHTML: { + __html: form + } + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "widget-id", + className: "widget-id", + value: id + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "id_base", + className: "id_base", + value: idBase + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "widget_number", + className: "widget_number", + value: widgetNumber + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "multi_number", + className: "multi_number", + value: "" + }), Object(external_this_wp_element_["createElement"])("input", { + type: "hidden", + name: "add_new", + className: "add_new", + value: "" + })))); + } + }, { + key: "shouldTriggerInstanceUpdate", + value: function shouldTriggerInstanceUpdate() { + if (!this.formRef.current) { + return false; + } + + if (!this.previousFormData) { + return true; + } + + var currentFormData = new window.FormData(this.formRef.current); + var currentFormDataKeys = Array.from(currentFormData.keys()); + var previousFormDataKeys = Array.from(this.previousFormData.keys()); + + if (currentFormDataKeys.length !== previousFormDataKeys.length) { + return true; + } + + for (var _i = 0; _i < currentFormDataKeys.length; _i++) { + var rawKey = currentFormDataKeys[_i]; + + if (!external_this_wp_isShallowEqual_default()(currentFormData.getAll(rawKey), this.previousFormData.getAll(rawKey))) { + this.previousFormData = currentFormData; + return true; + } + } + + return false; + } + }, { + key: "triggerWidgetEvent", + value: function triggerWidgetEvent(event) { + window.$(window.document).trigger(event, [window.$(this.containerRef.current)]); + } + }, { + key: "retrieveUpdatedInstance", + value: function retrieveUpdatedInstance() { + if (this.formRef.current) { + var _this$props2 = this.props, + idBase = _this$props2.idBase, + widgetNumber = _this$props2.widgetNumber; + var form = this.formRef.current; + var formData = new window.FormData(form); + var updatedInstance = {}; + var keyPrefixLength = "widget-".concat(idBase, "[").concat(widgetNumber, "][").length; + var keySuffixLength = "]".length; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = formData.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var rawKey = _step.value; + + // This fields are added to the form because the widget JavaScript code may use this values. + // They are not relevant for the update mechanism. + if (Object(external_lodash_["includes"])(['widget-id', 'id_base', 'widget_number', 'multi_number', 'add_new'], rawKey)) { + continue; + } + + var keyParsed = rawKey.substring(keyPrefixLength, rawKey.length - keySuffixLength); + var value = formData.getAll(rawKey); + + if (value.length > 1) { + updatedInstance[keyParsed] = value; + } else { + updatedInstance[keyParsed] = value[0]; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + return updatedInstance; + } + } + }]); + + return WidgetEditDomManager; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var legacy_widget_WidgetEditDomManager = (WidgetEditDomManager_WidgetEditDomManager); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/WidgetEditHandler.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var WidgetEditHandler_WidgetEditHandler = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(WidgetEditHandler, _Component); + + function WidgetEditHandler() { + var _this; + + Object(classCallCheck["a" /* default */])(this, WidgetEditHandler); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WidgetEditHandler).apply(this, arguments)); + _this.state = { + form: null, + idBase: null + }; + _this.instanceUpdating = null; + _this.onInstanceChange = _this.onInstanceChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.requestWidgetUpdater = _this.requestWidgetUpdater.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(WidgetEditHandler, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.isStillMounted = true; + this.requestWidgetUpdater(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (prevProps.instance !== this.props.instance && this.instanceUpdating !== this.props.instance) { + this.requestWidgetUpdater(); + } + + if (this.instanceUpdating === this.props.instance) { + this.instanceUpdating = null; + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.isStillMounted = false; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + instanceId = _this$props.instanceId, + identifier = _this$props.identifier; + var _this$state = this.state, + id = _this$state.id, + idBase = _this$state.idBase, + form = _this$state.form; + + if (!identifier) { + return Object(external_this_wp_i18n_["__"])('Not a valid widget.'); + } + + if (!form) { + return null; + } + + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-legacy-widget__edit-container" // Display none is used because when we switch from edit to preview, + // we don't want to unmount the component. + // Otherwise when we went back to edit we wound need to trigger + // all widgets events again and some scripts may not deal well with this. + , + style: { + display: this.props.isVisible ? 'block' : 'none' + } + }, Object(external_this_wp_element_["createElement"])(legacy_widget_WidgetEditDomManager, { + ref: function ref(_ref) { + _this2.widgetEditDomManagerRef = _ref; + }, + onInstanceChange: this.onInstanceChange, + widgetNumber: instanceId * -1, + id: id, + idBase: idBase, + form: form + })); + } + }, { + key: "onInstanceChange", + value: function onInstanceChange(instanceChanges) { + var _this3 = this; + + this.requestWidgetUpdater(instanceChanges, function (response) { + _this3.instanceUpdating = response.instance; + + _this3.props.onInstanceChange(response.instance); + }); + } + }, { + key: "requestWidgetUpdater", + value: function requestWidgetUpdater(instanceChanges, callback) { + var _this4 = this; + + var _this$props2 = this.props, + identifier = _this$props2.identifier, + instanceId = _this$props2.instanceId, + instance = _this$props2.instance; + + if (!identifier) { + return; + } + + external_this_wp_apiFetch_default()({ + path: "/wp/v2/widgets/".concat(identifier, "/"), + data: { + identifier: identifier, + instance: instance, + // use negative ids to make sure the id does not exist on the database. + id_to_use: instanceId * -1, + instance_changes: instanceChanges + }, + method: 'POST' + }).then(function (response) { + if (_this4.isStillMounted) { + _this4.setState({ + form: response.form, + idBase: response.id_base, + id: response.id + }); + + if (callback) { + callback(response); + } + } + }); + } + }]); + + return WidgetEditHandler; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var legacy_widget_WidgetEditHandler = (Object(external_this_wp_compose_["withInstanceId"])(WidgetEditHandler_WidgetEditHandler)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/edit.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + + +var edit_LegacyWidgetEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LegacyWidgetEdit, _Component); + + function LegacyWidgetEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LegacyWidgetEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LegacyWidgetEdit).apply(this, arguments)); + _this.state = { + isPreview: false + }; + _this.switchToEdit = _this.switchToEdit.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.changeWidget = _this.changeWidget.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(LegacyWidgetEdit, [{ + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + availableLegacyWidgets = _this$props.availableLegacyWidgets, + hasPermissionsToManageWidgets = _this$props.hasPermissionsToManageWidgets, + setAttributes = _this$props.setAttributes; + var isPreview = this.state.isPreview; + var identifier = attributes.identifier, + isCallbackWidget = attributes.isCallbackWidget; + var widgetObject = identifier && availableLegacyWidgets[identifier]; + + if (!widgetObject) { + var placeholderContent; + + if (!hasPermissionsToManageWidgets) { + placeholderContent = Object(external_this_wp_i18n_["__"])('You don\'t have permissions to use widgets on this site.'); + } else if (availableLegacyWidgets.length === 0) { + placeholderContent = Object(external_this_wp_i18n_["__"])('There are no widgets available.'); + } else { + placeholderContent = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Select a legacy widget to display:'), + value: identifier || 'none', + onChange: function onChange(value) { + return setAttributes({ + instance: {}, + identifier: value, + isCallbackWidget: availableLegacyWidgets[value].isCallbackWidget + }); + }, + options: [{ + value: 'none', + label: 'Select widget' + }].concat(Object(external_lodash_["map"])(availableLegacyWidgets, function (widget, key) { + return { + value: key, + label: widget.name + }; + })) + }); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { + icon: "admin-customizer" + }), + label: Object(external_this_wp_i18n_["__"])('Legacy Widget') + }, placeholderContent); + } + + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: widgetObject.name + }, widgetObject.description)); + + if (!hasPermissionsToManageWidgets) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, this.renderWidgetPreview()); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + onClick: this.changeWidget, + label: Object(external_this_wp_i18n_["__"])('Change widget'), + icon: "update" + }), !isCallbackWidget && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''), + onClick: this.switchToEdit + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Edit'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + className: "components-tab-button ".concat(isPreview ? 'is-active' : ''), + onClick: this.switchToPreview + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview')))))), inspectorControls, !isCallbackWidget && Object(external_this_wp_element_["createElement"])(legacy_widget_WidgetEditHandler, { + isVisible: !isPreview, + identifier: attributes.identifier, + instance: attributes.instance, + onInstanceChange: function onInstanceChange(newInstance) { + _this2.props.setAttributes({ + instance: newInstance + }); + } + }), (isPreview || isCallbackWidget) && this.renderWidgetPreview()); + } + }, { + key: "changeWidget", + value: function changeWidget() { + this.switchToEdit(); + this.props.setAttributes({ + instance: {}, + identifier: undefined + }); + } + }, { + key: "switchToEdit", + value: function switchToEdit() { + this.setState({ + isPreview: false + }); + } + }, { + key: "switchToPreview", + value: function switchToPreview() { + this.setState({ + isPreview: true + }); + } + }, { + key: "renderWidgetPreview", + value: function renderWidgetPreview() { + var attributes = this.props.attributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ServerSideRender"], { + className: "wp-block-legacy-widget__preview", + block: "core/legacy-widget", + attributes: attributes + }); + } + }]); + + return LegacyWidgetEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + var editorSettings = select('core/block-editor').getSettings(); + var availableLegacyWidgets = editorSettings.availableLegacyWidgets, + hasPermissionsToManageWidgets = editorSettings.hasPermissionsToManageWidgets; + return { + hasPermissionsToManageWidgets: hasPermissionsToManageWidgets, + availableLegacyWidgets: availableLegacyWidgets + }; +})(edit_LegacyWidgetEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/legacy-widget/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return legacy_widget_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var legacy_widget_name = 'core/legacy-widget'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Legacy Widget (Experimental)'), + description: Object(external_this_wp_i18n_["__"])('Display a legacy widget.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" + }))), + category: 'widgets', + supports: { + html: false + }, + edit: edit, + save: function save() { + // Handled by PHP. + return null; + } +}; + + +/***/ }), +/* 232 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(28); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/inspector.js + + +/** + * WordPress dependencies + */ + + + + +function FileBlockInspector(_ref) { + var hrefs = _ref.hrefs, + openInNewWindow = _ref.openInNewWindow, + showDownloadButton = _ref.showDownloadButton, + changeLinkDestinationOption = _ref.changeLinkDestinationOption, + changeOpenInNewWindow = _ref.changeOpenInNewWindow, + changeShowDownloadButton = _ref.changeShowDownloadButton; + var href = hrefs.href, + textLinkHref = hrefs.textLinkHref, + attachmentPage = hrefs.attachmentPage; + var linkDestinationOptions = [{ + value: href, + label: Object(external_this_wp_i18n_["__"])('URL') + }]; + + if (attachmentPage) { + linkDestinationOptions = [{ + value: href, + label: Object(external_this_wp_i18n_["__"])('Media File') + }, { + value: attachmentPage, + label: Object(external_this_wp_i18n_["__"])('Attachment Page') + }]; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Text Link Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Link To'), + value: textLinkHref, + options: linkDestinationOptions, + onChange: changeLinkDestinationOption + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Open in New Tab'), + checked: openInNewWindow, + onChange: changeOpenInNewWindow + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Download Button Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show Download Button'), + checked: showDownloadButton, + onChange: changeShowDownloadButton + })))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/edit.js + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Internal dependencies + */ + + + + +var edit_FileEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(FileEdit, _Component); + + function FileEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, FileEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FileEdit).apply(this, arguments)); + _this.onSelectFile = _this.onSelectFile.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.confirmCopyURL = _this.confirmCopyURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.resetCopyConfirmation = _this.resetCopyConfirmation.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.changeLinkDestinationOption = _this.changeLinkDestinationOption.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.changeOpenInNewWindow = _this.changeOpenInNewWindow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.changeShowDownloadButton = _this.changeShowDownloadButton.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + hasError: false, + showCopyConfirmation: false + }; + return _this; + } + + Object(createClass["a" /* default */])(FileEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + noticeOperations = _this$props.noticeOperations; + var href = attributes.href; // Upload a file drag-and-dropped into the editor + + if (Object(external_this_wp_blob_["isBlobURL"])(href)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(href); + Object(external_this_wp_editor_["mediaUpload"])({ + filesList: [file], + onFileChange: function onFileChange(_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), + media = _ref2[0]; + + return _this2.onSelectFile(media); + }, + onError: function onError(message) { + _this2.setState({ + hasError: true + }); + + noticeOperations.createErrorNotice(message); + } + }); + Object(external_this_wp_blob_["revokeBlobURL"])(href); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // Reset copy confirmation state when block is deselected + if (prevProps.isSelected && !this.props.isSelected) { + this.setState({ + showCopyConfirmation: false + }); + } + } + }, { + key: "onSelectFile", + value: function onSelectFile(media) { + if (media && media.url) { + this.setState({ + hasError: false + }); + this.props.setAttributes({ + href: media.url, + fileName: media.title, + textLinkHref: media.url, + id: media.id + }); + } + } + }, { + key: "confirmCopyURL", + value: function confirmCopyURL() { + this.setState({ + showCopyConfirmation: true + }); + } + }, { + key: "resetCopyConfirmation", + value: function resetCopyConfirmation() { + this.setState({ + showCopyConfirmation: false + }); + } + }, { + key: "changeLinkDestinationOption", + value: function changeLinkDestinationOption(newHref) { + // Choose Media File or Attachment Page (when file is in Media Library) + this.props.setAttributes({ + textLinkHref: newHref + }); + } + }, { + key: "changeOpenInNewWindow", + value: function changeOpenInNewWindow(newValue) { + this.props.setAttributes({ + textLinkTarget: newValue ? '_blank' : false + }); + } + }, { + key: "changeShowDownloadButton", + value: function changeShowDownloadButton(newValue) { + this.props.setAttributes({ + showDownloadButton: newValue + }); + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + className = _this$props2.className, + isSelected = _this$props2.isSelected, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes, + noticeUI = _this$props2.noticeUI, + noticeOperations = _this$props2.noticeOperations, + media = _this$props2.media; + var fileName = attributes.fileName, + href = attributes.href, + textLinkHref = attributes.textLinkHref, + textLinkTarget = attributes.textLinkTarget, + showDownloadButton = attributes.showDownloadButton, + downloadButtonText = attributes.downloadButtonText, + id = attributes.id; + var _this$state = this.state, + hasError = _this$state.hasError, + showCopyConfirmation = _this$state.showCopyConfirmation; + var attachmentPage = media && media.link; + + if (!href || hasError) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon + }), + labels: { + title: Object(external_this_wp_i18n_["__"])('File'), + instructions: Object(external_this_wp_i18n_["__"])('Drag a file, upload a new one or select a file from your library.') + }, + onSelect: this.onSelectFile, + notices: noticeUI, + onError: noticeOperations.createErrorNotice, + accept: "*" + }); + } + + var classes = classnames_default()(className, { + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(href) + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(FileBlockInspector, Object(esm_extends["a" /* default */])({ + hrefs: { + href: href, + textLinkHref: textLinkHref, + attachmentPage: attachmentPage + } + }, { + openInNewWindow: !!textLinkTarget, + showDownloadButton: showDownloadButton, + changeLinkDestinationOption: this.changeLinkDestinationOption, + changeOpenInNewWindow: this.changeOpenInNewWindow, + changeShowDownloadButton: this.changeShowDownloadButton + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: this.onSelectFile, + value: id, + render: function render(_ref3) { + var open = _ref3.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit file'), + onClick: open, + icon: "edit" + }); + } + })))), Object(external_this_wp_element_["createElement"])("div", { + className: classes + }, Object(external_this_wp_element_["createElement"])("div", { + className: 'wp-block-file__content-wrapper' + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + wrapperClassName: 'wp-block-file__textlink', + tagName: "div" // must be block-level or else cursor disappears + , + value: fileName, + placeholder: Object(external_this_wp_i18n_["__"])('Write file name…'), + keepPlaceholderOnFocus: true, + formattingControls: [] // disable controls + , + onChange: function onChange(text) { + return setAttributes({ + fileName: text + }); + } + }), showDownloadButton && Object(external_this_wp_element_["createElement"])("div", { + className: 'wp-block-file__button-richtext-wrapper' + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "div" // must be block-level or else cursor disappears + , + className: 'wp-block-file__button', + value: downloadButtonText, + formattingControls: [] // disable controls + , + placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), + keepPlaceholderOnFocus: true, + onChange: function onChange(text) { + return setAttributes({ + downloadButtonText: text + }); + } + }))), isSelected && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { + isDefault: true, + text: href, + className: 'wp-block-file__copy-url-button', + onCopy: this.confirmCopyURL, + onFinishCopy: this.resetCopyConfirmation, + disabled: Object(external_this_wp_blob_["isBlobURL"])(href) + }, showCopyConfirmation ? Object(external_this_wp_i18n_["__"])('Copied!') : Object(external_this_wp_i18n_["__"])('Copy URL')))); + } + }]); + + return FileEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { + var _select = select('core'), + getMedia = _select.getMedia; + + var id = props.attributes.id; + return { + media: id === undefined ? undefined : getMedia(id) + }; +}), external_this_wp_components_["withNotices"]])(edit_FileEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return file_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var file_name = 'core/file'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('File'), + description: Object(external_this_wp_i18n_["__"])('Add a link to a downloadable file.'), + icon: icon, + category: 'common', + keywords: [Object(external_this_wp_i18n_["__"])('document'), Object(external_this_wp_i18n_["__"])('pdf')], + attributes: { + id: { + type: 'number' + }, + href: { + type: 'string' + }, + fileName: { + type: 'string', + source: 'html', + selector: 'a:not([download])' + }, + // Differs to the href when the block is configured to link to the attachment page + textLinkHref: { + type: 'string', + source: 'attribute', + selector: 'a:not([download])', + attribute: 'href' + }, + // e.g. `_blank` when the block is configured to open in a new tab + textLinkTarget: { + type: 'string', + source: 'attribute', + selector: 'a:not([download])', + attribute: 'target' + }, + showDownloadButton: { + type: 'boolean', + default: true + }, + downloadButtonText: { + type: 'string', + source: 'html', + selector: 'a[download]', + default: Object(external_this_wp_i18n_["_x"])('Download', 'button label') + } + }, + supports: { + align: true + }, + transforms: { + from: [{ + type: 'files', + isMatch: function isMatch(files) { + return files.length > 0; + }, + // We define a lower priorty (higher number) than the default of 10. This + // ensures that the File block is only created as a fallback. + priority: 15, + transform: function transform(files) { + var blocks = []; + files.forEach(function (file) { + var blobURL = Object(external_this_wp_blob_["createBlobURL"])(file); // File will be uploaded in componentDidMount() + + blocks.push(Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: blobURL, + fileName: file.name, + textLinkHref: blobURL + })); + }); + return blocks; + } + }, { + type: 'block', + blocks: ['core/audio'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: attributes.src, + fileName: attributes.caption, + textLinkHref: attributes.src, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: attributes.src, + fileName: attributes.caption, + textLinkHref: attributes.src, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/image'], + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/file', { + href: attributes.url, + fileName: attributes.caption, + textLinkHref: attributes.url, + id: attributes.id + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/audio'], + isMatch: function isMatch(_ref) { + var id = _ref.id; + + if (!id) { + return false; + } + + var _select = Object(external_this_wp_data_["select"])('core'), + getMedia = _select.getMedia; + + var media = getMedia(id); + return !!media && Object(external_lodash_["includes"])(media.mime_type, 'audio'); + }, + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/audio', { + src: attributes.href, + caption: attributes.fileName, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + isMatch: function isMatch(_ref2) { + var id = _ref2.id; + + if (!id) { + return false; + } + + var _select2 = Object(external_this_wp_data_["select"])('core'), + getMedia = _select2.getMedia; + + var media = getMedia(id); + return !!media && Object(external_lodash_["includes"])(media.mime_type, 'video'); + }, + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/video', { + src: attributes.href, + caption: attributes.fileName, + id: attributes.id + }); + } + }, { + type: 'block', + blocks: ['core/image'], + isMatch: function isMatch(_ref3) { + var id = _ref3.id; + + if (!id) { + return false; + } + + var _select3 = Object(external_this_wp_data_["select"])('core'), + getMedia = _select3.getMedia; + + var media = getMedia(id); + return !!media && Object(external_lodash_["includes"])(media.mime_type, 'image'); + }, + transform: function transform(attributes) { + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + url: attributes.href, + caption: attributes.fileName, + id: attributes.id + }); + } + }] + }, + edit: edit, + save: function save(_ref4) { + var attributes = _ref4.attributes; + var href = attributes.href, + fileName = attributes.fileName, + textLinkHref = attributes.textLinkHref, + textLinkTarget = attributes.textLinkTarget, + showDownloadButton = attributes.showDownloadButton, + downloadButtonText = attributes.downloadButtonText; + return href && Object(external_this_wp_element_["createElement"])("div", null, !external_this_wp_blockEditor_["RichText"].isEmpty(fileName) && Object(external_this_wp_element_["createElement"])("a", { + href: textLinkHref, + target: textLinkTarget, + rel: textLinkTarget ? 'noreferrer noopener' : false + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: fileName + })), showDownloadButton && Object(external_this_wp_element_["createElement"])("a", { + href: href, + className: "wp-block-file__button", + download: true + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: downloadButtonText + }))); + } +}; + + +/***/ }), +/* 233 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(18); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit-panel/index.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +var edit_panel_ReusableBlockEditPanel = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ReusableBlockEditPanel, _Component); + + function ReusableBlockEditPanel() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ReusableBlockEditPanel); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEditPanel).apply(this, arguments)); + _this.titleField = Object(external_this_wp_element_["createRef"])(); + _this.editButton = Object(external_this_wp_element_["createRef"])(); + _this.handleFormSubmit = _this.handleFormSubmit.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.handleTitleChange = _this.handleTitleChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.handleTitleKeyDown = _this.handleTitleKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(ReusableBlockEditPanel, [{ + key: "componentDidMount", + value: function componentDidMount() { + // Select the input text when the form opens. + if (this.props.isEditing && this.titleField.current) { + this.titleField.current.select(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // Select the input text only once when the form opens. + if (!prevProps.isEditing && this.props.isEditing) { + this.titleField.current.select(); + } // Move focus back to the Edit button after pressing the Escape key or Save. + + + if ((prevProps.isEditing || prevProps.isSaving) && !this.props.isEditing && !this.props.isSaving) { + this.editButton.current.focus(); + } + } + }, { + key: "handleFormSubmit", + value: function handleFormSubmit(event) { + event.preventDefault(); + this.props.onSave(); + } + }, { + key: "handleTitleChange", + value: function handleTitleChange(event) { + this.props.onChangeTitle(event.target.value); + } + }, { + key: "handleTitleKeyDown", + value: function handleTitleKeyDown(event) { + if (event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { + event.stopPropagation(); + this.props.onCancel(); + } + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + isEditing = _this$props.isEditing, + title = _this$props.title, + isSaving = _this$props.isSaving, + isEditDisabled = _this$props.isEditDisabled, + onEdit = _this$props.onEdit, + instanceId = _this$props.instanceId; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isEditing && !isSaving && Object(external_this_wp_element_["createElement"])("div", { + className: "reusable-block-edit-panel" + }, Object(external_this_wp_element_["createElement"])("b", { + className: "reusable-block-edit-panel__info" + }, title), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + ref: this.editButton, + isLarge: true, + className: "reusable-block-edit-panel__button", + disabled: isEditDisabled, + onClick: onEdit + }, Object(external_this_wp_i18n_["__"])('Edit'))), (isEditing || isSaving) && Object(external_this_wp_element_["createElement"])("form", { + className: "reusable-block-edit-panel", + onSubmit: this.handleFormSubmit + }, Object(external_this_wp_element_["createElement"])("label", { + htmlFor: "reusable-block-edit-panel__title-".concat(instanceId), + className: "reusable-block-edit-panel__label" + }, Object(external_this_wp_i18n_["__"])('Name:')), Object(external_this_wp_element_["createElement"])("input", { + ref: this.titleField, + type: "text", + disabled: isSaving, + className: "reusable-block-edit-panel__title", + value: title, + onChange: this.handleTitleChange, + onKeyDown: this.handleTitleKeyDown, + id: "reusable-block-edit-panel__title-".concat(instanceId) + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + type: "submit", + isLarge: true, + isBusy: isSaving, + disabled: !title || isSaving, + className: "reusable-block-edit-panel__button" + }, Object(external_this_wp_i18n_["__"])('Save')))); + } + }]); + + return ReusableBlockEditPanel; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit_panel = (Object(external_this_wp_compose_["withInstanceId"])(edit_panel_ReusableBlockEditPanel)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/indicator/index.js + + +/** + * WordPress dependencies + */ + + + +function ReusableBlockIndicator(_ref) { + var title = _ref.title; + // translators: %s: title/name of the reusable block + var tooltipText = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Reusable Block: %s'), title); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Tooltip"], { + text: tooltipText + }, Object(external_this_wp_element_["createElement"])("span", { + className: "reusable-block-indicator" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { + icon: "controls-repeat" + }))); +} + +/* harmony default export */ var indicator = (ReusableBlockIndicator); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/edit.js + + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + +var edit_ReusableBlockEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ReusableBlockEdit, _Component); + + function ReusableBlockEdit(_ref) { + var _this; + + var reusableBlock = _ref.reusableBlock; + + Object(classCallCheck["a" /* default */])(this, ReusableBlockEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ReusableBlockEdit).apply(this, arguments)); + _this.startEditing = _this.startEditing.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.stopEditing = _this.stopEditing.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setTitle = _this.setTitle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.save = _this.save.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + + if (reusableBlock && reusableBlock.isTemporary) { + // Start in edit mode when we're working with a newly created reusable block + _this.state = { + isEditing: true, + title: reusableBlock.title, + changedAttributes: {} + }; + } else { + // Start in preview mode when we're working with an existing reusable block + _this.state = { + isEditing: false, + title: null, + changedAttributes: null + }; + } + + return _this; + } + + Object(createClass["a" /* default */])(ReusableBlockEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + if (!this.props.reusableBlock) { + this.props.fetchReusableBlock(); + } + } + }, { + key: "startEditing", + value: function startEditing() { + var reusableBlock = this.props.reusableBlock; + this.setState({ + isEditing: true, + title: reusableBlock.title, + changedAttributes: {} + }); + } + }, { + key: "stopEditing", + value: function stopEditing() { + this.setState({ + isEditing: false, + title: null, + changedAttributes: null + }); + } + }, { + key: "setAttributes", + value: function setAttributes(attributes) { + this.setState(function (prevState) { + if (prevState.changedAttributes !== null) { + return { + changedAttributes: Object(objectSpread["a" /* default */])({}, prevState.changedAttributes, attributes) + }; + } + }); + } + }, { + key: "setTitle", + value: function setTitle(title) { + this.setState({ + title: title + }); + } + }, { + key: "save", + value: function save() { + var _this$props = this.props, + reusableBlock = _this$props.reusableBlock, + onUpdateTitle = _this$props.onUpdateTitle, + updateAttributes = _this$props.updateAttributes, + block = _this$props.block, + onSave = _this$props.onSave; + var _this$state = this.state, + title = _this$state.title, + changedAttributes = _this$state.changedAttributes; + + if (title !== reusableBlock.title) { + onUpdateTitle(title); + } + + updateAttributes(block.clientId, changedAttributes); + onSave(); + this.stopEditing(); + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + isSelected = _this$props2.isSelected, + reusableBlock = _this$props2.reusableBlock, + block = _this$props2.block, + isFetching = _this$props2.isFetching, + isSaving = _this$props2.isSaving, + canUpdateBlock = _this$props2.canUpdateBlock; + var _this$state2 = this.state, + isEditing = _this$state2.isEditing, + title = _this$state2.title, + changedAttributes = _this$state2.changedAttributes; + + if (!reusableBlock && isFetching) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)); + } + + if (!reusableBlock || !block) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], null, Object(external_this_wp_i18n_["__"])('Block has been deleted or is unavailable.')); + } + + var element = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockEdit"], Object(esm_extends["a" /* default */])({}, this.props, { + isSelected: isEditing && isSelected, + clientId: block.clientId, + name: block.name, + attributes: Object(objectSpread["a" /* default */])({}, block.attributes, changedAttributes), + setAttributes: isEditing ? this.setAttributes : external_lodash_["noop"] + })); + + if (!isEditing) { + element = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, element); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, (isSelected || isEditing) && Object(external_this_wp_element_["createElement"])(edit_panel, { + isEditing: isEditing, + title: title !== null ? title : reusableBlock.title, + isSaving: isSaving && !reusableBlock.isTemporary, + isEditDisabled: !canUpdateBlock, + onEdit: this.startEditing, + onChangeTitle: this.setTitle, + onSave: this.save, + onCancel: this.stopEditing + }), !isSelected && !isEditing && Object(external_this_wp_element_["createElement"])(indicator, { + title: reusableBlock.title + }), element); + } + }]); + + return ReusableBlockEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core/editor'), + getReusableBlock = _select.__experimentalGetReusableBlock, + isFetchingReusableBlock = _select.__experimentalIsFetchingReusableBlock, + isSavingReusableBlock = _select.__experimentalIsSavingReusableBlock; + + var _select2 = select('core'), + canUser = _select2.canUser; + + var _select3 = select('core/block-editor'), + getBlock = _select3.getBlock; + + var ref = ownProps.attributes.ref; + var reusableBlock = getReusableBlock(ref); + return { + reusableBlock: reusableBlock, + isFetching: isFetchingReusableBlock(ref), + isSaving: isSavingReusableBlock(ref), + block: reusableBlock ? getBlock(reusableBlock.clientId) : null, + canUpdateBlock: !!reusableBlock && !reusableBlock.isTemporary && !!canUser('update', 'blocks', ref) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var _dispatch = dispatch('core/editor'), + fetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks, + updateReusableBlockTitle = _dispatch.__experimentalUpdateReusableBlockTitle, + saveReusableBlock = _dispatch.__experimentalSaveReusableBlock; + + var _dispatch2 = dispatch('core/block-editor'), + updateBlockAttributes = _dispatch2.updateBlockAttributes; + + var ref = ownProps.attributes.ref; + return { + fetchReusableBlock: Object(external_lodash_["partial"])(fetchReusableBlocks, ref), + updateAttributes: updateBlockAttributes, + onUpdateTitle: Object(external_lodash_["partial"])(updateReusableBlockTitle, ref), + onSave: Object(external_lodash_["partial"])(saveReusableBlock, ref) + }; +})])(edit_ReusableBlockEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/block/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return block_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var block_name = 'core/block'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Reusable Block'), + category: 'reusable', + description: Object(external_this_wp_i18n_["__"])('Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used.'), + attributes: { + ref: { + type: 'number' + } + }, + supports: { + customClassName: false, + html: false, + inserter: false + }, + edit: edit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 234 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(18); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + + +var gallery_image_GalleryImage = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(GalleryImage, _Component); + + function GalleryImage() { + var _this; + + Object(classCallCheck["a" /* default */])(this, GalleryImage); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments)); + _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + captionSelected: false + }; + return _this; + } + + Object(createClass["a" /* default */])(GalleryImage, [{ + key: "bindContainer", + value: function bindContainer(ref) { + this.container = ref; + } + }, { + key: "onSelectCaption", + value: function onSelectCaption() { + if (!this.state.captionSelected) { + this.setState({ + captionSelected: true + }); + } + + if (!this.props.isSelected) { + this.props.onSelect(); + } + } + }, { + key: "onImageClick", + value: function onImageClick() { + if (!this.props.isSelected) { + this.props.onSelect(); + } + + if (this.state.captionSelected) { + this.setState({ + captionSelected: false + }); + } + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) { + event.stopPropagation(); + event.preventDefault(); + this.props.onRemove(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props = this.props, + isSelected = _this$props.isSelected, + image = _this$props.image, + url = _this$props.url; + + if (image && !url) { + this.props.setAttributes({ + url: image.source_url, + alt: image.alt_text + }); + } // unselect the caption so when the user selects other image and comeback + // the caption is not immediately selected + + + if (this.state.captionSelected && !isSelected && prevProps.isSelected) { + this.setState({ + captionSelected: false + }); + } + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + url = _this$props2.url, + alt = _this$props2.alt, + id = _this$props2.id, + linkTo = _this$props2.linkTo, + link = _this$props2.link, + isSelected = _this$props2.isSelected, + caption = _this$props2.caption, + onRemove = _this$props2.onRemove, + setAttributes = _this$props2.setAttributes, + ariaLabel = _this$props2['aria-label']; + var href; + + switch (linkTo) { + case 'media': + href = url; + break; + + case 'attachment': + href = link; + break; + } + + var img = // Disable reason: Image itself is not meant to be interactive, but should + // direct image selection and unfocus caption fields. + + /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", { + src: url, + alt: alt, + "data-id": id, + onClick: this.onImageClick, + tabIndex: "0", + onKeyDown: this.onImageClick, + "aria-label": ariaLabel + }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)) + /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */ + ; + var className = classnames_default()({ + 'is-selected': isSelected, + 'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url) + }); // Disable reason: Each block can be selected by clicking on it and we should keep the same saved markup + + /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + + return Object(external_this_wp_element_["createElement"])("figure", { + className: className, + tabIndex: "-1", + onKeyDown: this.onKeyDown, + ref: this.bindContainer + }, isSelected && Object(external_this_wp_element_["createElement"])("div", { + className: "block-library-gallery-item__inline-menu" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "no-alt", + onClick: onRemove, + className: "blocks-gallery-item__remove", + label: Object(external_this_wp_i18n_["__"])('Remove Image') + })), href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected ? Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + isSelected: this.state.captionSelected, + onChange: function onChange(newCaption) { + return setAttributes({ + caption: newCaption + }); + }, + unstableOnFocus: this.onSelectCaption, + inlineToolbar: true + }) : null); + /* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + } + }]); + + return GalleryImage; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var gallery_image = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { + var _select = select('core'), + getMedia = _select.getMedia; + + var id = ownProps.id; + return { + image: id ? getMedia(id) : null + }; +})(gallery_image_GalleryImage)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z" +})))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js + + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var MAX_COLUMNS = 8; +var linkOptions = [{ + value: 'attachment', + label: Object(external_this_wp_i18n_["__"])('Attachment Page') +}, { + value: 'media', + label: Object(external_this_wp_i18n_["__"])('Media File') +}, { + value: 'none', + label: Object(external_this_wp_i18n_["__"])('None') +}]; +var ALLOWED_MEDIA_TYPES = ['image']; +function defaultColumnsNumber(attributes) { + return Math.min(3, attributes.images.length); +} +var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) { + var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']); + imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url; + return imageProps; +}; + +var edit_GalleryEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(GalleryEdit, _Component); + + function GalleryEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, GalleryEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryEdit).apply(this, arguments)); + _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setImageAttributes = _this.setImageAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.addFiles = _this.addFiles.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.uploadFromFiles = _this.uploadFromFiles.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + selectedImage: null + }; + return _this; + } + + Object(createClass["a" /* default */])(GalleryEdit, [{ + key: "setAttributes", + value: function setAttributes(attributes) { + if (attributes.ids) { + throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes'); + } + + if (attributes.images) { + attributes = Object(objectSpread["a" /* default */])({}, attributes, { + ids: Object(external_lodash_["map"])(attributes.images, 'id') + }); + } + + this.props.setAttributes(attributes); + } + }, { + key: "onSelectImage", + value: function onSelectImage(index) { + var _this2 = this; + + return function () { + if (_this2.state.selectedImage !== index) { + _this2.setState({ + selectedImage: index + }); + } + }; + } + }, { + key: "onRemoveImage", + value: function onRemoveImage(index) { + var _this3 = this; + + return function () { + var images = Object(external_lodash_["filter"])(_this3.props.attributes.images, function (img, i) { + return index !== i; + }); + var columns = _this3.props.attributes.columns; + + _this3.setState({ + selectedImage: null + }); + + _this3.setAttributes({ + images: images, + columns: columns ? Math.min(images.length, columns) : columns + }); + }; + } + }, { + key: "onSelectImages", + value: function onSelectImages(images) { + var columns = this.props.attributes.columns; + this.setAttributes({ + images: images.map(function (image) { + return edit_pickRelevantMediaFiles(image); + }), + columns: columns ? Math.min(images.length, columns) : columns + }); + } + }, { + key: "setLinkTo", + value: function setLinkTo(value) { + this.setAttributes({ + linkTo: value + }); + } + }, { + key: "setColumnsNumber", + value: function setColumnsNumber(value) { + this.setAttributes({ + columns: value + }); + } + }, { + key: "toggleImageCrop", + value: function toggleImageCrop() { + this.setAttributes({ + imageCrop: !this.props.attributes.imageCrop + }); + } + }, { + key: "getImageCropHelp", + value: function getImageCropHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.'); + } + }, { + key: "setImageAttributes", + value: function setImageAttributes(index, attributes) { + var images = this.props.attributes.images; + var setAttributes = this.setAttributes; + + if (!images[index]) { + return; + } + + setAttributes({ + images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [Object(objectSpread["a" /* default */])({}, images[index], attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1))) + }); + } + }, { + key: "uploadFromFiles", + value: function uploadFromFiles(event) { + this.addFiles(event.target.files); + } + }, { + key: "addFiles", + value: function addFiles(files) { + var currentImages = this.props.attributes.images || []; + var noticeOperations = this.props.noticeOperations; + var setAttributes = this.setAttributes; + Object(external_this_wp_editor_["mediaUpload"])({ + allowedTypes: ALLOWED_MEDIA_TYPES, + filesList: files, + onFileChange: function onFileChange(images) { + var imagesNormalized = images.map(function (image) { + return edit_pickRelevantMediaFiles(image); + }); + setAttributes({ + images: currentImages.concat(imagesNormalized) + }); + }, + onError: noticeOperations.createErrorNotice + }); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + // Deselect images when deselecting the block + if (!this.props.isSelected && prevProps.isSelected) { + this.setState({ + selectedImage: null, + captionSelected: false + }); + } + } + }, { + key: "render", + value: function render() { + var _classnames, + _this4 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + isSelected = _this$props.isSelected, + className = _this$props.className, + noticeOperations = _this$props.noticeOperations, + noticeUI = _this$props.noticeUI; + var images = attributes.images, + _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + align = attributes.align, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + var dropZone = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { + onFilesDrop: this.addFiles + }); + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, !!images.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + onSelect: this.onSelectImages, + allowedTypes: ALLOWED_MEDIA_TYPES, + multiple: true, + gallery: true, + value: images.map(function (img) { + return img.id; + }), + render: function render(_ref) { + var open = _ref.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit gallery'), + icon: "edit", + onClick: open + }); + } + }))); + + if (images.length === 0) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon + }), + className: className, + labels: { + title: Object(external_this_wp_i18n_["__"])('Gallery'), + instructions: Object(external_this_wp_i18n_["__"])('Drag images, upload new ones or select files from your library.') + }, + onSelect: this.onSelectImages, + accept: "image/*", + allowedTypes: ALLOWED_MEDIA_TYPES, + multiple: true, + notices: noticeUI, + onError: noticeOperations.createErrorNotice + })); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Gallery Settings') + }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: this.setColumnsNumber, + min: 1, + max: Math.min(MAX_COLUMNS, images.length), + required: true + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Crop Images'), + checked: !!imageCrop, + onChange: this.toggleImageCrop, + help: this.getImageCropHelp + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Link To'), + value: linkTo, + onChange: this.setLinkTo, + options: linkOptions + }))), noticeUI, Object(external_this_wp_element_["createElement"])("ul", { + className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "columns-".concat(columns), columns), Object(defineProperty["a" /* default */])(_classnames, 'is-cropped', imageCrop), _classnames)) + }, dropZone, images.map(function (img, index) { + /* translators: %1$d is the order number of the image, %2$d is the total number of images. */ + var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length); + return Object(external_this_wp_element_["createElement"])("li", { + className: "blocks-gallery-item", + key: img.id || img.url + }, Object(external_this_wp_element_["createElement"])(gallery_image, { + url: img.url, + alt: img.alt, + id: img.id, + isSelected: isSelected && _this4.state.selectedImage === index, + onRemove: _this4.onRemoveImage(index), + onSelect: _this4.onSelectImage(index), + setAttributes: function setAttributes(attrs) { + return _this4.setImageAttributes(index, attrs); + }, + caption: img.caption, + "aria-label": ariaLabel + })); + }), isSelected && Object(external_this_wp_element_["createElement"])("li", { + className: "blocks-gallery-item has-add-item-button" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { + multiple: true, + isLarge: true, + className: "block-library-gallery-add-item-button", + onChange: this.uploadFromFiles, + accept: "image/*", + icon: "insert" + }, Object(external_this_wp_i18n_["__"])('Upload an image'))))); + } + }]); + + return GalleryEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_components_["withNotices"])(edit_GalleryEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return gallery_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var blockAttributes = { + images: { + type: 'array', + default: [], + source: 'query', + selector: 'ul.wp-block-gallery .blocks-gallery-item', + query: { + url: { + source: 'attribute', + selector: 'img', + attribute: 'src' + }, + link: { + source: 'attribute', + selector: 'img', + attribute: 'data-link' + }, + alt: { + source: 'attribute', + selector: 'img', + attribute: 'alt', + default: '' + }, + id: { + source: 'attribute', + selector: 'img', + attribute: 'data-id' + }, + caption: { + type: 'string', + source: 'html', + selector: 'figcaption' + } + } + }, + ids: { + type: 'array', + default: [] + }, + columns: { + type: 'number' + }, + imageCrop: { + type: 'boolean', + default: true + }, + linkTo: { + type: 'string', + default: 'none' + } +}; +var gallery_name = 'core/gallery'; + +var parseShortcodeIds = function parseShortcodeIds(ids) { + if (!ids) { + return []; + } + + return ids.split(',').map(function (id) { + return parseInt(id, 10); + }); +}; + +var settings = { + title: Object(external_this_wp_i18n_["__"])('Gallery'), + description: Object(external_this_wp_i18n_["__"])('Display multiple images in a rich gallery.'), + icon: icon, + category: 'common', + keywords: [Object(external_this_wp_i18n_["__"])('images'), Object(external_this_wp_i18n_["__"])('photos')], + attributes: blockAttributes, + supports: { + align: true + }, + transforms: { + from: [{ + type: 'block', + isMultiBlock: true, + blocks: ['core/image'], + transform: function transform(attributes) { + // Init the align attribute from the first item which may be either the placeholder or an image. + var align = attributes[0].align; // Loop through all the images and check if they have the same align. + + align = Object(external_lodash_["every"])(attributes, ['align', align]) ? align : undefined; + var validImages = Object(external_lodash_["filter"])(attributes, function (_ref) { + var id = _ref.id, + url = _ref.url; + return id && url; + }); + return Object(external_this_wp_blocks_["createBlock"])('core/gallery', { + images: validImages.map(function (_ref2) { + var id = _ref2.id, + url = _ref2.url, + alt = _ref2.alt, + caption = _ref2.caption; + return { + id: id, + url: url, + alt: alt, + caption: caption + }; + }), + ids: validImages.map(function (_ref3) { + var id = _ref3.id; + return id; + }), + align: align + }); + } + }, { + type: 'shortcode', + tag: 'gallery', + attributes: { + images: { + type: 'array', + shortcode: function shortcode(_ref4) { + var ids = _ref4.named.ids; + return parseShortcodeIds(ids).map(function (id) { + return { + id: id + }; + }); + } + }, + ids: { + type: 'array', + shortcode: function shortcode(_ref5) { + var ids = _ref5.named.ids; + return parseShortcodeIds(ids); + } + }, + columns: { + type: 'number', + shortcode: function shortcode(_ref6) { + var _ref6$named$columns = _ref6.named.columns, + columns = _ref6$named$columns === void 0 ? '3' : _ref6$named$columns; + return parseInt(columns, 10); + } + }, + linkTo: { + type: 'string', + shortcode: function shortcode(_ref7) { + var _ref7$named$link = _ref7.named.link, + link = _ref7$named$link === void 0 ? 'attachment' : _ref7$named$link; + return link === 'file' ? 'media' : link; + } + } + } + }, { + // When created by drag and dropping multiple files on an insertion point + type: 'files', + isMatch: function isMatch(files) { + return files.length !== 1 && Object(external_lodash_["every"])(files, function (file) { + return file.type.indexOf('image/') === 0; + }); + }, + transform: function transform(files, onChange) { + var block = Object(external_this_wp_blocks_["createBlock"])('core/gallery', { + images: files.map(function (file) { + return edit_pickRelevantMediaFiles({ + url: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + }) + }); + Object(external_this_wp_editor_["mediaUpload"])({ + filesList: files, + onFileChange: function onFileChange(images) { + var imagesAttr = images.map(edit_pickRelevantMediaFiles); + onChange(block.clientId, { + ids: Object(external_lodash_["map"])(imagesAttr, 'id'), + images: imagesAttr + }); + }, + allowedTypes: ['image'] + }); + return block; + } + }], + to: [{ + type: 'block', + blocks: ['core/image'], + transform: function transform(_ref8) { + var images = _ref8.images, + align = _ref8.align; + + if (images.length > 0) { + return images.map(function (_ref9) { + var id = _ref9.id, + url = _ref9.url, + alt = _ref9.alt, + caption = _ref9.caption; + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + id: id, + url: url, + alt: alt, + caption: caption, + align: align + }); + }); + } + + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + align: align + }); + } + }] + }, + edit: edit, + save: function save(_ref10) { + var attributes = _ref10.attributes; + var images = attributes.images, + _attributes$columns = attributes.columns, + columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("ul", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-link": image.link, + className: image.id ? "wp-image-".concat(image.id) : null + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: image.caption + }))); + })); + }, + deprecated: [{ + attributes: blockAttributes, + isEligible: function isEligible(_ref11) { + var images = _ref11.images, + ids = _ref11.ids; + return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_lodash_["some"])(images, function (id, index) { + if (!id && ids[index] !== null) { + return true; + } + + return parseInt(id, 10) !== ids[index]; + })); + }, + migrate: function migrate(attributes) { + return Object(objectSpread["a" /* default */])({}, attributes, { + ids: Object(external_lodash_["map"])(attributes.images, function (_ref12) { + var id = _ref12.id; + + if (!id) { + return null; + } + + return parseInt(id, 10); + }) + }); + }, + save: function save(_ref13) { + var attributes = _ref13.attributes; + var images = attributes.images, + _attributes$columns2 = attributes.columns, + columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("ul", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-link": image.link, + className: image.id ? "wp-image-".concat(image.id) : null + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: image.caption + }))); + })); + } + }, { + attributes: blockAttributes, + save: function save(_ref14) { + var attributes = _ref14.attributes; + var images = attributes.images, + _attributes$columns3 = attributes.columns, + columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("ul", { + className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id, + "data-link": image.link + }); + return Object(external_this_wp_element_["createElement"])("li", { + key: image.id || image.url, + className: "blocks-gallery-item" + }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: image.caption + }))); + })); + } + }, { + attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { + images: Object(objectSpread["a" /* default */])({}, blockAttributes.images, { + selector: 'div.wp-block-gallery figure.blocks-gallery-image img' + }), + align: { + type: 'string', + default: 'none' + } + }), + save: function save(_ref15) { + var attributes = _ref15.attributes; + var images = attributes.images, + _attributes$columns4 = attributes.columns, + columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4, + align = attributes.align, + imageCrop = attributes.imageCrop, + linkTo = attributes.linkTo; + return Object(external_this_wp_element_["createElement"])("div", { + className: "align".concat(align, " columns-").concat(columns, " ").concat(imageCrop ? 'is-cropped' : '') + }, images.map(function (image) { + var href; + + switch (linkTo) { + case 'media': + href = image.url; + break; + + case 'attachment': + href = image.link; + break; + } + + var img = Object(external_this_wp_element_["createElement"])("img", { + src: image.url, + alt: image.alt, + "data-id": image.id + }); + return Object(external_this_wp_element_["createElement"])("figure", { + key: image.id || image.url, + className: "blocks-gallery-image" + }, href ? Object(external_this_wp_element_["createElement"])("a", { + href: href + }, img) : img); + })); + } + }] +}; + + +/***/ }), +/* 235 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules +var objectWithoutProperties = __webpack_require__(21); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +var heading_toolbar_HeadingToolbar = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(HeadingToolbar, _Component); + + function HeadingToolbar() { + Object(classCallCheck["a" /* default */])(this, HeadingToolbar); + + return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HeadingToolbar).apply(this, arguments)); + } + + Object(createClass["a" /* default */])(HeadingToolbar, [{ + key: "createLevelControl", + value: function createLevelControl(targetLevel, selectedLevel, onChange) { + return { + icon: 'heading', + // translators: %s: heading level e.g: "1", "2", "3" + title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel), + isActive: targetLevel === selectedLevel, + onClick: function onClick() { + return onChange(targetLevel); + }, + subscript: String(targetLevel) + }; + } + }, { + key: "render", + value: function render() { + var _this = this; + + var _this$props = this.props, + minLevel = _this$props.minLevel, + maxLevel = _this$props.maxLevel, + selectedLevel = _this$props.selectedLevel, + onChange = _this$props.onChange; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: Object(external_lodash_["range"])(minLevel, maxLevel).map(function (index) { + return _this.createLevelControl(index, selectedLevel, onChange); + }) + }); + } + }]); + + return HeadingToolbar; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var heading_toolbar = (heading_toolbar_HeadingToolbar); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js + + +/** + * Internal dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +function HeadingEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + mergeBlocks = _ref.mergeBlocks, + insertBlocksAfter = _ref.insertBlocksAfter, + onReplace = _ref.onReplace, + className = _ref.className; + var align = attributes.align, + content = attributes.content, + level = attributes.level, + placeholder = attributes.placeholder; + var tagName = 'h' + level; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(heading_toolbar, { + minLevel: 2, + maxLevel: 5, + selectedLevel: level, + onChange: function onChange(newLevel) { + return setAttributes({ + level: newLevel + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Heading Settings') + }, Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Level')), Object(external_this_wp_element_["createElement"])(heading_toolbar, { + minLevel: 1, + maxLevel: 7, + selectedLevel: level, + onChange: function onChange(newLevel) { + return setAttributes({ + level: newLevel + }); + } + }), Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Text Alignment')), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + identifier: "content", + wrapperClassName: "wp-block-heading", + tagName: tagName, + value: content, + onChange: function onChange(value) { + return setAttributes({ + content: value + }); + }, + onMerge: mergeBlocks, + unstableOnSplit: insertBlocksAfter ? function (before, after) { + setAttributes({ + content: before + }); + + for (var _len = arguments.length, blocks = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + + insertBlocksAfter([].concat(blocks, [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: after + })])); + } : undefined, + onRemove: function onRemove() { + return onReplace([]); + }, + style: { + textAlign: align + }, + className: className, + placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…') + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLevelFromHeadingNodeName", function() { return getLevelFromHeadingNodeName; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return heading_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +/** + * Given a node name string for a heading node, returns its numeric level. + * + * @param {string} nodeName Heading node name. + * + * @return {number} Heading level. + */ + +function getLevelFromHeadingNodeName(nodeName) { + return Number(nodeName.substr(1)); +} +var supports = { + className: false, + anchor: true +}; +var schema = { + content: { + type: 'string', + source: 'html', + selector: 'h1,h2,h3,h4,h5,h6', + default: '' + }, + level: { + type: 'number', + default: 2 + }, + align: { + type: 'string' + }, + placeholder: { + type: 'string' + } +}; +var heading_name = 'core/heading'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Heading'), + description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M5 4v3h5.5v12h3V7H19V4z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + })), + category: 'common', + keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')], + supports: supports, + attributes: schema, + transforms: { + from: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref) { + var content = _ref.content; + return Object(external_this_wp_blocks_["createBlock"])('core/heading', { + content: content + }); + } + }, { + type: 'raw', + selector: 'h1,h2,h3,h4,h5,h6', + schema: { + h1: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h2: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h3: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h4: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h5: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + h6: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + }, + transform: function transform(node) { + return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/heading', node.outerHTML), { + level: getLevelFromHeadingNodeName(node.nodeName) + })); + } + }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) { + return { + type: 'prefix', + prefix: Array(level + 1).join('#'), + transform: function transform(content) { + return Object(external_this_wp_blocks_["createBlock"])('core/heading', { + level: level, + content: content + }); + } + }; + }))), + to: [{ + type: 'block', + blocks: ['core/paragraph'], + transform: function transform(_ref2) { + var content = _ref2.content; + return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: content + }); + } + }] + }, + deprecated: [{ + supports: supports, + attributes: Object(objectSpread["a" /* default */])({}, Object(external_lodash_["omit"])(schema, ['level']), { + nodeName: { + type: 'string', + source: 'property', + selector: 'h1,h2,h3,h4,h5,h6', + property: 'nodeName', + default: 'H2' + } + }), + migrate: function migrate(attributes) { + var nodeName = attributes.nodeName, + migratedAttributes = Object(objectWithoutProperties["a" /* default */])(attributes, ["nodeName"]); + + return Object(objectSpread["a" /* default */])({}, migratedAttributes, { + level: getLevelFromHeadingNodeName(nodeName) + }); + }, + save: function save(_ref3) { + var attributes = _ref3.attributes; + var align = attributes.align, + nodeName = attributes.nodeName, + content = attributes.content; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: nodeName.toLowerCase(), + style: { + textAlign: align + }, + value: content + }); + } + }], + merge: function merge(attributes, attributesToMerge) { + return { + content: (attributes.content || '') + (attributesToMerge.content || '') + }; + }, + edit: HeadingEdit, + save: function save(_ref4) { + var attributes = _ref4.attributes; + var align = attributes.align, + level = attributes.level, + content = attributes.content; + var tagName = 'h' + level; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: tagName, + style: { + textAlign: align + }, + value: content + }); + } +}; + + +/***/ }), +/* 236 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(28); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z" +}))); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js +var util = __webpack_require__(53); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js + + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * Internal dependencies + */ + + +var ALLOWED_MEDIA_TYPES = ['audio']; + +var edit_AudioEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(AudioEdit, _Component); + + function AudioEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, AudioEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(AudioEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited + // without setting the actual value outside of the edit UI + + _this.state = { + editing: !_this.props.attributes.src + }; + _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(AudioEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + noticeOperations = _this$props.noticeOperations, + setAttributes = _this$props.setAttributes; + var id = attributes.id, + _attributes$src = attributes.src, + src = _attributes$src === void 0 ? '' : _attributes$src; + + if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(src); + + if (file) { + Object(external_this_wp_editor_["mediaUpload"])({ + filesList: [file], + onFileChange: function onFileChange(_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), + _ref2$ = _ref2[0], + mediaId = _ref2$.id, + url = _ref2$.url; + + setAttributes({ + id: mediaId, + src: url + }); + }, + onError: function onError(e) { + setAttributes({ + src: undefined, + id: undefined + }); + + _this2.setState({ + editing: true + }); + + noticeOperations.createErrorNotice(e); + }, + allowedTypes: ALLOWED_MEDIA_TYPES + }); + } + } + } + }, { + key: "toggleAttribute", + value: function toggleAttribute(attribute) { + var _this3 = this; + + return function (newValue) { + _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); + }; + } + }, { + key: "onSelectURL", + value: function onSelectURL(newSrc) { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + var src = attributes.src; // Set the block's src from the edit component's state, and switch off + // the editing UI. + + if (newSrc !== src) { + // Check if there's an embed block that handles this URL. + var embedBlock = Object(util["a" /* createUpgradedEmbedBlock */])({ + attributes: { + url: newSrc + } + }); + + if (undefined !== embedBlock) { + this.props.onReplace(embedBlock); + return; + } + + setAttributes({ + src: newSrc, + id: undefined + }); + } + + this.setState({ + editing: false + }); + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props$attribute = this.props.attributes, + autoplay = _this$props$attribute.autoplay, + caption = _this$props$attribute.caption, + loop = _this$props$attribute.loop, + preload = _this$props$attribute.preload, + src = _this$props$attribute.src; + var _this$props3 = this.props, + setAttributes = _this$props3.setAttributes, + isSelected = _this$props3.isSelected, + className = _this$props3.className, + noticeOperations = _this$props3.noticeOperations, + noticeUI = _this$props3.noticeUI; + var editing = this.state.editing; + + var switchToEditing = function switchToEditing() { + _this4.setState({ + editing: true + }); + }; + + var onSelectAudio = function onSelectAudio(media) { + if (!media || !media.url) { + // in this case there was an error and we should continue in the editing state + // previous attributes should be removed because they may be temporary blob urls + setAttributes({ + src: undefined, + id: undefined + }); + switchToEditing(); + return; + } // sets the block's attribute and updates the edit component from the + // selected media, then switches off the editing UI + + + setAttributes({ + src: media.url, + id: media.id + }); + + _this4.setState({ + src: media.url, + editing: false + }); + }; + + if (editing) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon + }), + className: className, + onSelect: onSelectAudio, + onSelectURL: this.onSelectURL, + accept: "audio/*", + allowedTypes: ALLOWED_MEDIA_TYPES, + value: this.props.attributes, + notices: noticeUI, + onError: noticeOperations.createErrorNotice + }); + } + /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-icon-button components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit audio'), + onClick: switchToEditing, + icon: "edit" + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Audio Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Autoplay'), + onChange: this.toggleAttribute('autoplay'), + checked: autoplay + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Loop'), + onChange: this.toggleAttribute('loop'), + checked: loop + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Preload'), + value: undefined !== preload ? preload : 'none' // `undefined` is required for the preload attribute to be unset. + , + onChange: function onChange(value) { + return setAttributes({ + preload: 'none' !== value ? value : undefined + }); + }, + options: [{ + value: 'auto', + label: Object(external_this_wp_i18n_["__"])('Auto') + }, { + value: 'metadata', + label: Object(external_this_wp_i18n_["__"])('Metadata') + }, { + value: 'none', + label: Object(external_this_wp_i18n_["__"])('None') + }] + }))), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", { + controls: "controls", + src: src + })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + inlineToolbar: true + }))); + /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + } + }]); + + return AudioEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_components_["withNotices"])(edit_AudioEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return audio_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var audio_name = 'core/audio'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Audio'), + description: Object(external_this_wp_i18n_["__"])('Embed a simple audio player.'), + icon: icon, + category: 'common', + attributes: { + src: { + type: 'string', + source: 'attribute', + selector: 'audio', + attribute: 'src' + }, + caption: { + type: 'string', + source: 'html', + selector: 'figcaption' + }, + id: { + type: 'number' + }, + autoplay: { + type: 'boolean', + source: 'attribute', + selector: 'audio', + attribute: 'autoplay' + }, + loop: { + type: 'boolean', + source: 'attribute', + selector: 'audio', + attribute: 'loop' + }, + preload: { + type: 'string', + source: 'attribute', + selector: 'audio', + attribute: 'preload' + } + }, + transforms: { + from: [{ + type: 'files', + isMatch: function isMatch(files) { + return files.length === 1 && files[0].type.indexOf('audio/') === 0; + }, + transform: function transform(files) { + var file = files[0]; // We don't need to upload the media directly here + // It's already done as part of the `componentDidMount` + // in the audio block + + var block = Object(external_this_wp_blocks_["createBlock"])('core/audio', { + src: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + return block; + } + }, { + type: 'shortcode', + tag: 'audio', + attributes: { + src: { + type: 'string', + shortcode: function shortcode(_ref) { + var src = _ref.named.src; + return src; + } + }, + loop: { + type: 'string', + shortcode: function shortcode(_ref2) { + var loop = _ref2.named.loop; + return loop; + } + }, + autoplay: { + type: 'srting', + shortcode: function shortcode(_ref3) { + var autoplay = _ref3.named.autoplay; + return autoplay; + } + }, + preload: { + type: 'string', + shortcode: function shortcode(_ref4) { + var preload = _ref4.named.preload; + return preload; + } + } + } + }] + }, + supports: { + align: true + }, + edit: edit, + save: function save(_ref5) { + var attributes = _ref5.attributes; + var autoplay = attributes.autoplay, + caption = attributes.caption, + loop = attributes.loop, + preload = attributes.preload, + src = attributes.src; + return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("audio", { + controls: "controls", + src: src, + autoPlay: autoplay, + loop: loop, + preload: preload + }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } +}; + + +/***/ }), +/* 237 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0 0h24v24H0z", + fill: "none" +}))); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: ./node_modules/fast-average-color/dist/index.js +var dist = __webpack_require__(211); +var dist_default = /*#__PURE__*/__webpack_require__.n(dist); + +// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js +var tinycolor = __webpack_require__(45); +var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/edit.js + + + + + + + + + +/** + * External dependencies + */ + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + +/** + * Module Constants + */ + +var IMAGE_BACKGROUND_TYPE = 'image'; +var VIDEO_BACKGROUND_TYPE = 'video'; +var ALLOWED_MEDIA_TYPES = ['image', 'video']; +var INNER_BLOCKS_TEMPLATE = [['core/paragraph', { + align: 'center', + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["__"])('Write title…') +}]]; +var INNER_BLOCKS_ALLOWED_BLOCKS = ['core/button', 'core/heading', 'core/paragraph']; + +function retrieveFastAverageColor() { + if (!retrieveFastAverageColor.fastAverageColor) { + retrieveFastAverageColor.fastAverageColor = new dist_default.a(); + } + + return retrieveFastAverageColor.fastAverageColor; +} + +function backgroundImageStyles(url) { + return url ? { + backgroundImage: "url(".concat(url, ")") + } : {}; +} +function dimRatioToClass(ratio) { + return ratio === 0 || ratio === 50 ? null : 'has-background-dim-' + 10 * Math.round(ratio / 10); +} + +var edit_CoverEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(CoverEdit, _Component); + + function CoverEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, CoverEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CoverEdit).apply(this, arguments)); + _this.state = { + isDark: false + }; + _this.imageRef = Object(external_this_wp_element_["createRef"])(); + _this.videoRef = Object(external_this_wp_element_["createRef"])(); + _this.changeIsDarkIfRequired = _this.changeIsDarkIfRequired.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(CoverEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.handleBackgroundMode(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + this.handleBackgroundMode(prevProps); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes, + className = _this$props.className, + noticeOperations = _this$props.noticeOperations, + noticeUI = _this$props.noticeUI, + overlayColor = _this$props.overlayColor, + setOverlayColor = _this$props.setOverlayColor; + var backgroundType = attributes.backgroundType, + dimRatio = attributes.dimRatio, + focalPoint = attributes.focalPoint, + hasParallax = attributes.hasParallax, + id = attributes.id, + url = attributes.url; + + var onSelectMedia = function onSelectMedia(media) { + if (!media || !media.url) { + setAttributes({ + url: undefined, + id: undefined + }); + return; + } + + var mediaType; // for media selections originated from a file upload. + + if (media.media_type) { + if (media.media_type === IMAGE_BACKGROUND_TYPE) { + mediaType = IMAGE_BACKGROUND_TYPE; + } else { + // only images and videos are accepted so if the media_type is not an image we can assume it is a video. + // Videos contain the media type of 'file' in the object returned from the rest api. + mediaType = VIDEO_BACKGROUND_TYPE; + } + } else { + // for media selections originated from existing files in the media library. + if (media.type !== IMAGE_BACKGROUND_TYPE && media.type !== VIDEO_BACKGROUND_TYPE) { + return; + } + + mediaType = media.type; + } + + setAttributes({ + url: media.url, + id: media.id, + backgroundType: mediaType + }); + }; + + var toggleParallax = function toggleParallax() { + return setAttributes({ + hasParallax: !hasParallax + }); + }; + + var setDimRatio = function setDimRatio(ratio) { + return setAttributes({ + dimRatio: ratio + }); + }; + + var style = Object(objectSpread["a" /* default */])({}, backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}, { + backgroundColor: overlayColor.color + }); + + if (focalPoint) { + style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + } + + var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockControls"], null, !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { + onSelect: onSelectMedia, + allowedTypes: ALLOWED_MEDIA_TYPES, + value: id, + render: function render(_ref) { + var open = _ref.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit media'), + icon: "edit", + onClick: open + }); + } + }))))), !!url && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Cover Settings') + }, IMAGE_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Fixed Background'), + checked: hasParallax, + onChange: toggleParallax + }), IMAGE_BACKGROUND_TYPE === backgroundType && !hasParallax && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocalPointPicker"], { + label: Object(external_this_wp_i18n_["__"])('Focal Point Picker'), + url: url, + value: focalPoint, + onChange: function onChange(value) { + return setAttributes({ + focalPoint: value + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Overlay'), + initialOpen: true, + colorSettings: [{ + value: overlayColor.color, + onChange: setOverlayColor, + label: Object(external_this_wp_i18n_["__"])('Overlay Color') + }] + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Background Opacity'), + value: dimRatio, + onChange: setDimRatio, + min: 0, + max: 100, + step: 10, + required: true + }))))); + + if (!url) { + var placeholderIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockIcon"], { + icon: icon + }); + + var label = Object(external_this_wp_i18n_["__"])('Cover'); + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaPlaceholder"], { + icon: placeholderIcon, + className: className, + labels: { + title: label, + instructions: Object(external_this_wp_i18n_["__"])('Drag an image or a video, upload a new one or select a file from your library.') + }, + onSelect: onSelectMedia, + accept: "image/*,video/*", + allowedTypes: ALLOWED_MEDIA_TYPES, + notices: noticeUI, + onError: noticeOperations.createErrorNotice + })); + } + + var classes = classnames_default()(className, dimRatioToClass(dimRatio), { + 'is-dark-theme': this.state.isDark, + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("div", { + "data-url": url, + style: style, + className: classes + }, IMAGE_BACKGROUND_TYPE === backgroundType && // Used only to programmatically check if the image is dark or not + Object(external_this_wp_element_["createElement"])("img", { + ref: this.imageRef, + "aria-hidden": true, + alt: "", + style: { + display: 'none' + }, + src: url + }), VIDEO_BACKGROUND_TYPE === backgroundType && Object(external_this_wp_element_["createElement"])("video", { + ref: this.videoRef, + className: "wp-block-cover__video-background", + autoPlay: true, + muted: true, + loop: true, + src: url + }), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-cover__inner-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["InnerBlocks"], { + template: INNER_BLOCKS_TEMPLATE, + allowedBlocks: INNER_BLOCKS_ALLOWED_BLOCKS + })))); + } + }, { + key: "handleBackgroundMode", + value: function handleBackgroundMode(prevProps) { + var _this2 = this; + + var _this$props2 = this.props, + attributes = _this$props2.attributes, + overlayColor = _this$props2.overlayColor; + var dimRatio = attributes.dimRatio, + url = attributes.url; // If opacity is greater than 50 the dominant color is the overlay color, + // so use that color for the dark mode computation. + + if (dimRatio > 50) { + if (prevProps && prevProps.attributes.dimRatio > 50 && prevProps.overlayColor.color === overlayColor.color) { + // No relevant prop changes happened there is no need to apply any change. + return; + } + + if (!overlayColor.color) { + // If no overlay color exists the overlay color is black (isDark ) + this.changeIsDarkIfRequired(true); + return; + } + + this.changeIsDarkIfRequired(tinycolor_default()(overlayColor.color).isDark()); + return; + } // If opacity is lower than 50 the dominant color is the image or video color, + // so use that color for the dark mode computation. + + + if (prevProps && prevProps.attributes.dimRatio <= 50 && prevProps.attributes.url === url) { + // No relevant prop changes happened there is no need to apply any change. + return; + } + + var backgroundType = attributes.backgroundType; + var element; + + switch (backgroundType) { + case IMAGE_BACKGROUND_TYPE: + element = this.imageRef.current; + break; + + case VIDEO_BACKGROUND_TYPE: + element = this.videoRef.current; + break; + } + + if (!element) { + return; + } + + retrieveFastAverageColor().getColorAsync(element, function (color) { + _this2.changeIsDarkIfRequired(color.isDark); + }); + } + }, { + key: "changeIsDarkIfRequired", + value: function changeIsDarkIfRequired(newIsDark) { + if (this.state.isDark !== newIsDark) { + this.setState({ + isDark: newIsDark + }); + } + } + }]); + + return CoverEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_editor_["withColors"])({ + overlayColor: 'background-color' +}), external_this_wp_components_["withNotices"]])(edit_CoverEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/cover/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return cover_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var blockAttributes = { + url: { + type: 'string' + }, + id: { + type: 'number' + }, + hasParallax: { + type: 'boolean', + default: false + }, + dimRatio: { + type: 'number', + default: 50 + }, + overlayColor: { + type: 'string' + }, + customOverlayColor: { + type: 'string' + }, + backgroundType: { + type: 'string', + default: 'image' + }, + focalPoint: { + type: 'object' + } +}; +var cover_name = 'core/cover'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Cover'), + description: Object(external_this_wp_i18n_["__"])('Add an image or video with a text overlay — great for headers.'), + icon: icon, + category: 'common', + attributes: blockAttributes, + supports: { + align: true + }, + transforms: { + from: [{ + type: 'block', + blocks: ['core/image'], + transform: function transform(_ref) { + var caption = _ref.caption, + url = _ref.url, + align = _ref.align, + id = _ref.id; + return Object(external_this_wp_blocks_["createBlock"])('core/cover', { + title: caption, + url: url, + align: align, + id: id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + transform: function transform(_ref2) { + var caption = _ref2.caption, + src = _ref2.src, + align = _ref2.align, + id = _ref2.id; + return Object(external_this_wp_blocks_["createBlock"])('core/cover', { + title: caption, + url: src, + align: align, + id: id, + backgroundType: VIDEO_BACKGROUND_TYPE + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/image'], + isMatch: function isMatch(_ref3) { + var backgroundType = _ref3.backgroundType, + url = _ref3.url; + return !url || backgroundType === IMAGE_BACKGROUND_TYPE; + }, + transform: function transform(_ref4) { + var title = _ref4.title, + url = _ref4.url, + align = _ref4.align, + id = _ref4.id; + return Object(external_this_wp_blocks_["createBlock"])('core/image', { + caption: title, + url: url, + align: align, + id: id + }); + } + }, { + type: 'block', + blocks: ['core/video'], + isMatch: function isMatch(_ref5) { + var backgroundType = _ref5.backgroundType, + url = _ref5.url; + return !url || backgroundType === VIDEO_BACKGROUND_TYPE; + }, + transform: function transform(_ref6) { + var title = _ref6.title, + url = _ref6.url, + align = _ref6.align, + id = _ref6.id; + return Object(external_this_wp_blocks_["createBlock"])('core/video', { + caption: title, + src: url, + id: id, + align: align + }); + } + }] + }, + save: function save(_ref7) { + var attributes = _ref7.attributes; + var backgroundType = attributes.backgroundType, + customOverlayColor = attributes.customOverlayColor, + dimRatio = attributes.dimRatio, + focalPoint = attributes.focalPoint, + hasParallax = attributes.hasParallax, + overlayColor = attributes.overlayColor, + url = attributes.url; + var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); + var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; + + if (!overlayColorClass) { + style.backgroundColor = customOverlayColor; + } + + if (focalPoint && !hasParallax) { + style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + } + + var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, { + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + style: style + }, VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { + className: "wp-block-cover__video-background", + autoPlay: true, + muted: true, + loop: true, + src: url + }), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-cover__inner-container" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InnerBlocks"].Content, null))); + }, + edit: edit, + deprecated: [{ + attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { + title: { + type: 'string', + source: 'html', + selector: 'p' + }, + contentAlign: { + type: 'string', + default: 'center' + } + }), + supports: { + align: true + }, + save: function save(_ref8) { + var attributes = _ref8.attributes; + var backgroundType = attributes.backgroundType, + contentAlign = attributes.contentAlign, + customOverlayColor = attributes.customOverlayColor, + dimRatio = attributes.dimRatio, + focalPoint = attributes.focalPoint, + hasParallax = attributes.hasParallax, + overlayColor = attributes.overlayColor, + title = attributes.title, + url = attributes.url; + var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); + var style = backgroundType === IMAGE_BACKGROUND_TYPE ? backgroundImageStyles(url) : {}; + + if (!overlayColorClass) { + style.backgroundColor = customOverlayColor; + } + + if (focalPoint && !hasParallax) { + style.backgroundPosition = "".concat(focalPoint.x * 100, "% ").concat(focalPoint.y * 100, "%"); + } + + var classes = classnames_default()(dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center')); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + style: style + }, VIDEO_BACKGROUND_TYPE === backgroundType && url && Object(external_this_wp_element_["createElement"])("video", { + className: "wp-block-cover__video-background", + autoPlay: true, + muted: true, + loop: true, + src: url + }), !external_this_wp_blockEditor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + className: "wp-block-cover-text", + value: title + })); + }, + migrate: function migrate(attributes) { + return [Object(external_lodash_["omit"])(attributes, ['title', 'contentAlign']), [Object(external_this_wp_blocks_["createBlock"])('core/paragraph', { + content: attributes.title, + align: attributes.contentAlign, + fontSize: 'large', + placeholder: Object(external_this_wp_i18n_["__"])('Write title…') + })]]; + } + }, { + attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { + title: { + type: 'string', + source: 'html', + selector: 'p' + }, + contentAlign: { + type: 'string', + default: 'center' + }, + align: { + type: 'string' + } + }), + supports: { + className: false + }, + save: function save(_ref9) { + var attributes = _ref9.attributes; + var url = attributes.url, + title = attributes.title, + hasParallax = attributes.hasParallax, + dimRatio = attributes.dimRatio, + align = attributes.align, + contentAlign = attributes.contentAlign, + overlayColor = attributes.overlayColor, + customOverlayColor = attributes.customOverlayColor; + var overlayColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', overlayColor); + var style = backgroundImageStyles(url); + + if (!overlayColorClass) { + style.backgroundColor = customOverlayColor; + } + + var classes = classnames_default()('wp-block-cover-image', dimRatioToClass(dimRatio), overlayColorClass, Object(defineProperty["a" /* default */])({ + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }, "has-".concat(contentAlign, "-content"), contentAlign !== 'center'), align ? "align".concat(align) : null); + return Object(external_this_wp_element_["createElement"])("div", { + className: classes, + style: style + }, !external_this_wp_blockEditor_["RichText"].isEmpty(title) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "p", + className: "wp-block-cover-image-text", + value: title + })); + } + }, { + attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { + align: { + type: 'string' + }, + title: { + type: 'string', + source: 'html', + selector: 'h2' + }, + contentAlign: { + type: 'string', + default: 'center' + } + }), + save: function save(_ref10) { + var attributes = _ref10.attributes; + var url = attributes.url, + title = attributes.title, + hasParallax = attributes.hasParallax, + dimRatio = attributes.dimRatio, + align = attributes.align; + var style = backgroundImageStyles(url); + var classes = classnames_default()(dimRatioToClass(dimRatio), { + 'has-background-dim': dimRatio !== 0, + 'has-parallax': hasParallax + }, align ? "align".concat(align) : null); + return Object(external_this_wp_element_["createElement"])("section", { + className: classes, + style: style + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "h2", + value: title + })); + } + }] +}; + + +/***/ }), +/* 238 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(28); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// EXTERNAL MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js +var util = __webpack_require__(53); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/icon.js + + +/** + * WordPress dependencies + */ + +/* harmony default export */ var icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" +}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["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" +}))); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/edit.js + + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + +var ALLOWED_MEDIA_TYPES = ['video']; +var VIDEO_POSTER_ALLOWED_MEDIA_TYPES = ['image']; + +var edit_VideoEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(VideoEdit, _Component); + + function VideoEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, VideoEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(VideoEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited + // without setting the actual value outside of the edit UI + + _this.state = { + editing: !_this.props.attributes.src + }; + _this.videoPlayer = Object(external_this_wp_element_["createRef"])(); + _this.posterImageButton = Object(external_this_wp_element_["createRef"])(); + _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSelectPoster = _this.onSelectPoster.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onRemovePoster = _this.onRemovePoster.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(VideoEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var _this$props = this.props, + attributes = _this$props.attributes, + noticeOperations = _this$props.noticeOperations, + setAttributes = _this$props.setAttributes; + var id = attributes.id, + _attributes$src = attributes.src, + src = _attributes$src === void 0 ? '' : _attributes$src; + + if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) { + var file = Object(external_this_wp_blob_["getBlobByURL"])(src); + + if (file) { + Object(external_this_wp_editor_["mediaUpload"])({ + filesList: [file], + onFileChange: function onFileChange(_ref) { + var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1), + url = _ref2[0].url; + + setAttributes({ + src: url + }); + }, + onError: function onError(message) { + _this2.setState({ + editing: true + }); + + noticeOperations.createErrorNotice(message); + }, + allowedTypes: ALLOWED_MEDIA_TYPES + }); + } + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (this.props.attributes.poster !== prevProps.attributes.poster) { + this.videoPlayer.current.load(); + } + } + }, { + key: "toggleAttribute", + value: function toggleAttribute(attribute) { + var _this3 = this; + + return function (newValue) { + _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue)); + }; + } + }, { + key: "onSelectURL", + value: function onSelectURL(newSrc) { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + var src = attributes.src; // Set the block's src from the edit component's state, and switch off + // the editing UI. + + if (newSrc !== src) { + // Check if there's an embed block that handles this URL. + var embedBlock = Object(util["a" /* createUpgradedEmbedBlock */])({ + attributes: { + url: newSrc + } + }); + + if (undefined !== embedBlock) { + this.props.onReplace(embedBlock); + return; + } + + setAttributes({ + src: newSrc, + id: undefined + }); + } + + this.setState({ + editing: false + }); + } + }, { + key: "onSelectPoster", + value: function onSelectPoster(image) { + var setAttributes = this.props.setAttributes; + setAttributes({ + poster: image.url + }); + } + }, { + key: "onRemovePoster", + value: function onRemovePoster() { + var setAttributes = this.props.setAttributes; + setAttributes({ + poster: '' + }); // Move focus back to the Media Upload button. + + this.posterImageButton.current.focus(); + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props$attribute = this.props.attributes, + autoplay = _this$props$attribute.autoplay, + caption = _this$props$attribute.caption, + controls = _this$props$attribute.controls, + loop = _this$props$attribute.loop, + muted = _this$props$attribute.muted, + poster = _this$props$attribute.poster, + preload = _this$props$attribute.preload, + src = _this$props$attribute.src; + var _this$props3 = this.props, + setAttributes = _this$props3.setAttributes, + isSelected = _this$props3.isSelected, + className = _this$props3.className, + noticeOperations = _this$props3.noticeOperations, + noticeUI = _this$props3.noticeUI; + var editing = this.state.editing; + + var switchToEditing = function switchToEditing() { + _this4.setState({ + editing: true + }); + }; + + var onSelectVideo = function onSelectVideo(media) { + if (!media || !media.url) { + // in this case there was an error and we should continue in the editing state + // previous attributes should be removed because they may be temporary blob urls + setAttributes({ + src: undefined, + id: undefined + }); + switchToEditing(); + return; + } // sets the block's attribute and updates the edit component from the + // selected media, then switches off the editing UI + + + setAttributes({ + src: media.url, + id: media.id + }); + + _this4.setState({ + src: media.url, + editing: false + }); + }; + + if (editing) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], { + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: icon + }), + className: className, + onSelect: onSelectVideo, + onSelectURL: this.onSelectURL, + accept: "video/*", + allowedTypes: ALLOWED_MEDIA_TYPES, + value: this.props.attributes, + notices: noticeUI, + onError: noticeOperations.createErrorNotice + }); + } + /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + className: "components-icon-button components-toolbar__control", + label: Object(external_this_wp_i18n_["__"])('Edit video'), + onClick: switchToEditing, + icon: "edit" + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Video Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Autoplay'), + onChange: this.toggleAttribute('autoplay'), + checked: autoplay + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Loop'), + onChange: this.toggleAttribute('loop'), + checked: loop + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Muted'), + onChange: this.toggleAttribute('muted'), + checked: muted + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Playback Controls'), + onChange: this.toggleAttribute('controls'), + checked: controls + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Preload'), + value: preload, + onChange: function onChange(value) { + return setAttributes({ + preload: value + }); + }, + options: [{ + value: 'auto', + label: Object(external_this_wp_i18n_["__"])('Auto') + }, { + value: 'metadata', + label: Object(external_this_wp_i18n_["__"])('Metadata') + }, { + value: 'none', + label: Object(external_this_wp_i18n_["__"])('None') + }] + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { + className: "editor-video-poster-control", + label: Object(external_this_wp_i18n_["__"])('Poster Image') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { + title: Object(external_this_wp_i18n_["__"])('Select Poster Image'), + onSelect: this.onSelectPoster, + allowedTypes: VIDEO_POSTER_ALLOWED_MEDIA_TYPES, + render: function render(_ref3) { + var open = _ref3.open; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isDefault: true, + onClick: open, + ref: _this4.posterImageButton + }, !_this4.props.attributes.poster ? Object(external_this_wp_i18n_["__"])('Select Poster Image') : Object(external_this_wp_i18n_["__"])('Replace image')); + } + }), !!this.props.attributes.poster && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + onClick: this.onRemovePoster, + isLink: true, + isDestructive: true + }, Object(external_this_wp_i18n_["__"])('Remove Poster Image')))))), Object(external_this_wp_element_["createElement"])("figure", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("video", { + controls: controls, + poster: poster, + src: src, + ref: this.videoPlayer + })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + tagName: "figcaption", + placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'), + value: caption, + onChange: function onChange(value) { + return setAttributes({ + caption: value + }); + }, + inlineToolbar: true + }))); + /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ + } + }]); + + return VideoEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_components_["withNotices"])(edit_VideoEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return video_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +var video_name = 'core/video'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Video'), + description: Object(external_this_wp_i18n_["__"])('Embed a video from your media library or upload a new one.'), + icon: icon, + keywords: [Object(external_this_wp_i18n_["__"])('movie')], + category: 'common', + attributes: { + 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: true + }, + 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' + } + }, + transforms: { + from: [{ + type: 'files', + isMatch: function isMatch(files) { + return files.length === 1 && files[0].type.indexOf('video/') === 0; + }, + transform: function transform(files) { + var file = files[0]; // We don't need to upload the media directly here + // It's already done as part of the `componentDidMount` + // in the video block + + var block = Object(external_this_wp_blocks_["createBlock"])('core/video', { + src: Object(external_this_wp_blob_["createBlobURL"])(file) + }); + return block; + } + }, { + type: 'shortcode', + tag: 'video', + attributes: { + src: { + type: 'string', + shortcode: function shortcode(_ref) { + var src = _ref.named.src; + return src; + } + }, + poster: { + type: 'string', + shortcode: function shortcode(_ref2) { + var poster = _ref2.named.poster; + return poster; + } + }, + loop: { + type: 'string', + shortcode: function shortcode(_ref3) { + var loop = _ref3.named.loop; + return loop; + } + }, + autoplay: { + type: 'string', + shortcode: function shortcode(_ref4) { + var autoplay = _ref4.named.autoplay; + return autoplay; + } + }, + preload: { + type: 'string', + shortcode: function shortcode(_ref5) { + var preload = _ref5.named.preload; + return preload; + } + } + } + }] + }, + supports: { + align: true + }, + edit: edit, + save: function save(_ref6) { + var attributes = _ref6.attributes; + var autoplay = attributes.autoplay, + caption = attributes.caption, + controls = attributes.controls, + loop = attributes.loop, + muted = attributes.muted, + poster = attributes.poster, + preload = attributes.preload, + src = attributes.src; + return Object(external_this_wp_element_["createElement"])("figure", null, src && Object(external_this_wp_element_["createElement"])("video", { + autoPlay: autoplay, + controls: controls, + loop: loop, + muted: muted, + poster: poster, + preload: preload !== 'metadata' ? preload : undefined, + src: src + }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "figcaption", + value: caption + })); + } +}; + + +/***/ }), +/* 239 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/state.js + + + + +/** + * External dependencies + */ + +/** + * Creates a table state. + * + * @param {number} options.rowCount Row count for the table to create. + * @param {number} options.columnCount Column count for the table to create. + * + * @return {Object} New table state. + */ + +function createTable(_ref) { + var rowCount = _ref.rowCount, + columnCount = _ref.columnCount; + return { + body: Object(external_lodash_["times"])(rowCount, function () { + return { + cells: Object(external_lodash_["times"])(columnCount, function () { + return { + content: '', + tag: 'td' + }; + }) + }; + }) + }; +} +/** + * Updates cell content in the table state. + * + * @param {Object} state Current table state. + * @param {string} options.section Section of the cell to update. + * @param {number} options.rowIndex Row index of the cell to update. + * @param {number} options.columnIndex Column index of the cell to update. + * @param {Array} options.content Content to set for the cell. + * + * @return {Object} New table state. + */ + +function updateCellContent(state, _ref2) { + var section = _ref2.section, + rowIndex = _ref2.rowIndex, + columnIndex = _ref2.columnIndex, + content = _ref2.content; + return Object(defineProperty["a" /* default */])({}, section, state[section].map(function (row, currentRowIndex) { + if (currentRowIndex !== rowIndex) { + return row; + } + + return { + cells: row.cells.map(function (cell, currentColumnIndex) { + if (currentColumnIndex !== columnIndex) { + return cell; + } + + return Object(objectSpread["a" /* default */])({}, cell, { + content: content + }); + }) + }; + })); +} +/** + * Inserts a row in the table state. + * + * @param {Object} state Current table state. + * @param {string} options.section Section in which to insert the row. + * @param {number} options.rowIndex Row index at which to insert the row. + * + * @return {Object} New table state. + */ + +function insertRow(state, _ref4) { + var section = _ref4.section, + rowIndex = _ref4.rowIndex; + var cellCount = state[section][0].cells.length; + return Object(defineProperty["a" /* default */])({}, section, [].concat(Object(toConsumableArray["a" /* default */])(state[section].slice(0, rowIndex)), [{ + cells: Object(external_lodash_["times"])(cellCount, function () { + return { + content: '', + tag: 'td' + }; + }) + }], Object(toConsumableArray["a" /* default */])(state[section].slice(rowIndex)))); +} +/** + * Deletes a row from the table state. + * + * @param {Object} state Current table state. + * @param {string} options.section Section in which to delete the row. + * @param {number} options.rowIndex Row index to delete. + * + * @return {Object} New table state. + */ + +function deleteRow(state, _ref6) { + var section = _ref6.section, + rowIndex = _ref6.rowIndex; + return Object(defineProperty["a" /* default */])({}, section, state[section].filter(function (row, index) { + return index !== rowIndex; + })); +} +/** + * Inserts a column in the table state. + * + * @param {Object} state Current table state. + * @param {string} options.section Section in which to insert the column. + * @param {number} options.columnIndex Column index at which to insert the column. + * + * @return {Object} New table state. + */ + +function insertColumn(state, _ref8) { + var section = _ref8.section, + columnIndex = _ref8.columnIndex; + return Object(defineProperty["a" /* default */])({}, section, state[section].map(function (row) { + return { + cells: [].concat(Object(toConsumableArray["a" /* default */])(row.cells.slice(0, columnIndex)), [{ + content: '', + tag: 'td' + }], Object(toConsumableArray["a" /* default */])(row.cells.slice(columnIndex))) + }; + })); +} +/** + * Deletes a column from the table state. + * + * @param {Object} state Current table state. + * @param {string} options.section Section in which to delete the column. + * @param {number} options.columnIndex Column index to delete. + * + * @return {Object} New table state. + */ + +function deleteColumn(state, _ref10) { + var section = _ref10.section, + columnIndex = _ref10.columnIndex; + return Object(defineProperty["a" /* default */])({}, section, state[section].map(function (row) { + return { + cells: row.cells.filter(function (cell, index) { + return index !== columnIndex; + }) + }; + }).filter(function (row) { + return row.cells.length; + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/edit.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var BACKGROUND_COLORS = [{ + color: '#f3f4f5', + name: 'Subtle light gray', + slug: 'subtle-light-gray' +}, { + color: '#e9fbe5', + name: 'Subtle pale green', + slug: 'subtle-pale-green' +}, { + color: '#e7f5fe', + name: 'Subtle pale blue', + slug: 'subtle-pale-blue' +}, { + color: '#fcf0ef', + name: 'Subtle pale pink', + slug: 'subtle-pale-pink' +}]; +var withCustomBackgroundColors = Object(external_this_wp_blockEditor_["createCustomColorsHOC"])(BACKGROUND_COLORS); +var edit_TableEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(TableEdit, _Component); + + function TableEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, TableEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TableEdit).apply(this, arguments)); + _this.onCreateTable = _this.onCreateTable.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onChangeFixedLayout = _this.onChangeFixedLayout.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onChangeInitialColumnCount = _this.onChangeInitialColumnCount.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onChangeInitialRowCount = _this.onChangeInitialRowCount.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.renderSection = _this.renderSection.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.getTableControls = _this.getTableControls.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onInsertRow = _this.onInsertRow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onInsertRowBefore = _this.onInsertRowBefore.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onInsertRowAfter = _this.onInsertRowAfter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onDeleteRow = _this.onDeleteRow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onInsertColumn = _this.onInsertColumn.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onInsertColumnBefore = _this.onInsertColumnBefore.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onInsertColumnAfter = _this.onInsertColumnAfter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onDeleteColumn = _this.onDeleteColumn.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + initialRowCount: 2, + initialColumnCount: 2, + selectedCell: null + }; + return _this; + } + /** + * Updates the initial column count used for table creation. + * + * @param {number} initialColumnCount New initial column count. + */ + + + Object(createClass["a" /* default */])(TableEdit, [{ + key: "onChangeInitialColumnCount", + value: function onChangeInitialColumnCount(initialColumnCount) { + this.setState({ + initialColumnCount: initialColumnCount + }); + } + /** + * Updates the initial row count used for table creation. + * + * @param {number} initialRowCount New initial row count. + */ + + }, { + key: "onChangeInitialRowCount", + value: function onChangeInitialRowCount(initialRowCount) { + this.setState({ + initialRowCount: initialRowCount + }); + } + /** + * Creates a table based on dimensions in local state. + * + * @param {Object} event Form submit event. + */ + + }, { + key: "onCreateTable", + value: function onCreateTable(event) { + event.preventDefault(); + var setAttributes = this.props.setAttributes; + var _this$state = this.state, + initialRowCount = _this$state.initialRowCount, + initialColumnCount = _this$state.initialColumnCount; + initialRowCount = parseInt(initialRowCount, 10) || 2; + initialColumnCount = parseInt(initialColumnCount, 10) || 2; + setAttributes(createTable({ + rowCount: initialRowCount, + columnCount: initialColumnCount + })); + } + /** + * Toggles whether the table has a fixed layout or not. + */ + + }, { + key: "onChangeFixedLayout", + value: function onChangeFixedLayout() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var hasFixedLayout = attributes.hasFixedLayout; + setAttributes({ + hasFixedLayout: !hasFixedLayout + }); + } + /** + * Changes the content of the currently selected cell. + * + * @param {Array} content A RichText content value. + */ + + }, { + key: "onChange", + value: function onChange(content) { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + var section = selectedCell.section, + rowIndex = selectedCell.rowIndex, + columnIndex = selectedCell.columnIndex; + setAttributes(updateCellContent(attributes, { + section: section, + rowIndex: rowIndex, + columnIndex: columnIndex, + content: content + })); + } + /** + * Inserts a row at the currently selected row index, plus `delta`. + * + * @param {number} delta Offset for selected row index at which to insert. + */ + + }, { + key: "onInsertRow", + value: function onInsertRow(delta) { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props3 = this.props, + attributes = _this$props3.attributes, + setAttributes = _this$props3.setAttributes; + var section = selectedCell.section, + rowIndex = selectedCell.rowIndex; + this.setState({ + selectedCell: null + }); + setAttributes(insertRow(attributes, { + section: section, + rowIndex: rowIndex + delta + })); + } + /** + * Inserts a row before the currently selected row. + */ + + }, { + key: "onInsertRowBefore", + value: function onInsertRowBefore() { + this.onInsertRow(0); + } + /** + * Inserts a row after the currently selected row. + */ + + }, { + key: "onInsertRowAfter", + value: function onInsertRowAfter() { + this.onInsertRow(1); + } + /** + * Deletes the currently selected row. + */ + + }, { + key: "onDeleteRow", + value: function onDeleteRow() { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props4 = this.props, + attributes = _this$props4.attributes, + setAttributes = _this$props4.setAttributes; + var section = selectedCell.section, + rowIndex = selectedCell.rowIndex; + this.setState({ + selectedCell: null + }); + setAttributes(deleteRow(attributes, { + section: section, + rowIndex: rowIndex + })); + } + /** + * Inserts a column at the currently selected column index, plus `delta`. + * + * @param {number} delta Offset for selected column index at which to insert. + */ + + }, { + key: "onInsertColumn", + value: function onInsertColumn() { + var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props5 = this.props, + attributes = _this$props5.attributes, + setAttributes = _this$props5.setAttributes; + var section = selectedCell.section, + columnIndex = selectedCell.columnIndex; + this.setState({ + selectedCell: null + }); + setAttributes(insertColumn(attributes, { + section: section, + columnIndex: columnIndex + delta + })); + } + /** + * Inserts a column before the currently selected column. + */ + + }, { + key: "onInsertColumnBefore", + value: function onInsertColumnBefore() { + this.onInsertColumn(0); + } + /** + * Inserts a column after the currently selected column. + */ + + }, { + key: "onInsertColumnAfter", + value: function onInsertColumnAfter() { + this.onInsertColumn(1); + } + /** + * Deletes the currently selected column. + */ + + }, { + key: "onDeleteColumn", + value: function onDeleteColumn() { + var selectedCell = this.state.selectedCell; + + if (!selectedCell) { + return; + } + + var _this$props6 = this.props, + attributes = _this$props6.attributes, + setAttributes = _this$props6.setAttributes; + var section = selectedCell.section, + columnIndex = selectedCell.columnIndex; + this.setState({ + selectedCell: null + }); + setAttributes(deleteColumn(attributes, { + section: section, + columnIndex: columnIndex + })); + } + /** + * Creates an onFocus handler for a specified cell. + * + * @param {Object} selectedCell Object with `section`, `rowIndex`, and + * `columnIndex` properties. + * + * @return {Function} Function to call on focus. + */ + + }, { + key: "createOnFocus", + value: function createOnFocus(selectedCell) { + var _this2 = this; + + return function () { + _this2.setState({ + selectedCell: selectedCell + }); + }; + } + /** + * Gets the table controls to display in the block toolbar. + * + * @return {Array} Table controls. + */ + + }, { + key: "getTableControls", + value: function getTableControls() { + var selectedCell = this.state.selectedCell; + return [{ + icon: 'table-row-before', + title: Object(external_this_wp_i18n_["__"])('Add Row Before'), + isDisabled: !selectedCell, + onClick: this.onInsertRowBefore + }, { + icon: 'table-row-after', + title: Object(external_this_wp_i18n_["__"])('Add Row After'), + isDisabled: !selectedCell, + onClick: this.onInsertRowAfter + }, { + icon: 'table-row-delete', + title: Object(external_this_wp_i18n_["__"])('Delete Row'), + isDisabled: !selectedCell, + onClick: this.onDeleteRow + }, { + icon: 'table-col-before', + title: Object(external_this_wp_i18n_["__"])('Add Column Before'), + isDisabled: !selectedCell, + onClick: this.onInsertColumnBefore + }, { + icon: 'table-col-after', + title: Object(external_this_wp_i18n_["__"])('Add Column After'), + isDisabled: !selectedCell, + onClick: this.onInsertColumnAfter + }, { + icon: 'table-col-delete', + title: Object(external_this_wp_i18n_["__"])('Delete Column'), + isDisabled: !selectedCell, + onClick: this.onDeleteColumn + }]; + } + /** + * Renders a table section. + * + * @param {string} options.type Section type: head, body, or foot. + * @param {Array} options.rows The rows to render. + * + * @return {Object} React element for the section. + */ + + }, { + key: "renderSection", + value: function renderSection(_ref) { + var _this3 = this; + + var type = _ref.type, + rows = _ref.rows; + + if (!rows.length) { + return null; + } + + var Tag = "t".concat(type); + var selectedCell = this.state.selectedCell; + return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref2, rowIndex) { + var cells = _ref2.cells; + return Object(external_this_wp_element_["createElement"])("tr", { + key: rowIndex + }, cells.map(function (_ref3, columnIndex) { + var content = _ref3.content, + CellTag = _ref3.tag; + var isSelected = selectedCell && type === selectedCell.section && rowIndex === selectedCell.rowIndex && columnIndex === selectedCell.columnIndex; + var cell = { + section: type, + rowIndex: rowIndex, + columnIndex: columnIndex + }; + var cellClasses = classnames_default()({ + 'is-selected': isSelected + }); + return Object(external_this_wp_element_["createElement"])(CellTag, { + key: columnIndex, + className: cellClasses + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + className: "wp-block-table__cell-content", + value: content, + onChange: _this3.onChange, + unstableOnFocus: _this3.createOnFocus(cell) + })); + })); + })); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate() { + var isSelected = this.props.isSelected; + var selectedCell = this.state.selectedCell; + + if (!isSelected && selectedCell) { + this.setState({ + selectedCell: null + }); + } + } + }, { + key: "render", + value: function render() { + var _this$props7 = this.props, + attributes = _this$props7.attributes, + className = _this$props7.className, + backgroundColor = _this$props7.backgroundColor, + setBackgroundColor = _this$props7.setBackgroundColor; + var _this$state2 = this.state, + initialRowCount = _this$state2.initialRowCount, + initialColumnCount = _this$state2.initialColumnCount; + var hasFixedLayout = attributes.hasFixedLayout, + head = attributes.head, + body = attributes.body, + foot = attributes.foot; + var isEmpty = !head.length && !body.length && !foot.length; + var Section = this.renderSection; + + if (isEmpty) { + return Object(external_this_wp_element_["createElement"])("form", { + onSubmit: this.onCreateTable + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + label: Object(external_this_wp_i18n_["__"])('Column Count'), + value: initialColumnCount, + onChange: this.onChangeInitialColumnCount, + min: "1" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "number", + label: Object(external_this_wp_i18n_["__"])('Row Count'), + value: initialRowCount, + onChange: this.onChangeInitialRowCount, + min: "1" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isPrimary: true, + type: "submit" + }, Object(external_this_wp_i18n_["__"])('Create'))); + } + + var classes = classnames_default()(className, backgroundColor.class, { + 'has-fixed-layout': hasFixedLayout, + 'has-background': !!backgroundColor.color + }); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], { + icon: "editor-table", + label: Object(external_this_wp_i18n_["__"])('Edit table'), + controls: this.getTableControls() + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Table Settings'), + className: "blocks-table-settings" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Fixed width table cells'), + checked: !!hasFixedLayout, + onChange: this.onChangeFixedLayout + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + initialOpen: false, + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color'), + disableCustomColors: true, + colors: BACKGROUND_COLORS + }] + })), Object(external_this_wp_element_["createElement"])("table", { + className: classes + }, Object(external_this_wp_element_["createElement"])(Section, { + type: "head", + rows: head + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "body", + rows: body + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "foot", + rows: foot + }))); + } + }]); + + return TableEdit; +}(external_this_wp_element_["Component"]); +/* harmony default export */ var edit = (withCustomBackgroundColors('backgroundColor')(edit_TableEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/table/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return table_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var tableContentPasteSchema = { + tr: { + allowEmpty: true, + children: { + th: { + allowEmpty: true, + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + }, + td: { + allowEmpty: true, + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + } +}; +var tablePasteSchema = { + table: { + children: { + thead: { + allowEmpty: true, + children: tableContentPasteSchema + }, + tfoot: { + allowEmpty: true, + children: tableContentPasteSchema + }, + tbody: { + allowEmpty: true, + children: tableContentPasteSchema + } + } + } +}; + +function getTableSectionAttributeSchema(section) { + return { + type: 'array', + default: [], + source: 'query', + selector: "t".concat(section, " tr"), + query: { + cells: { + type: 'array', + default: [], + source: 'query', + selector: 'td,th', + query: { + content: { + type: 'string', + source: 'html' + }, + tag: { + type: 'string', + default: 'td', + source: 'tag' + } + } + } + } + }; +} + +var table_name = 'core/table'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Table'), + description: Object(external_this_wp_i18n_["__"])('Insert a table — perfect for sharing charts and data.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z" + }))), + category: 'formatting', + attributes: { + hasFixedLayout: { + type: 'boolean', + default: false + }, + backgroundColor: { + type: 'string' + }, + head: getTableSectionAttributeSchema('head'), + body: getTableSectionAttributeSchema('body'), + foot: getTableSectionAttributeSchema('foot') + }, + styles: [{ + name: 'regular', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }, { + name: 'stripes', + label: Object(external_this_wp_i18n_["__"])('Stripes') + }], + supports: { + align: true + }, + transforms: { + from: [{ + type: 'raw', + selector: 'table', + schema: tablePasteSchema + }] + }, + edit: edit, + save: function save(_ref) { + var attributes = _ref.attributes; + var hasFixedLayout = attributes.hasFixedLayout, + head = attributes.head, + body = attributes.body, + foot = attributes.foot, + backgroundColor = attributes.backgroundColor; + var isEmpty = !head.length && !body.length && !foot.length; + + if (isEmpty) { + return null; + } + + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var classes = classnames_default()(backgroundClass, { + 'has-fixed-layout': hasFixedLayout, + 'has-background': !!backgroundClass + }); + + var Section = function Section(_ref2) { + var type = _ref2.type, + rows = _ref2.rows; + + if (!rows.length) { + return null; + } + + var Tag = "t".concat(type); + return Object(external_this_wp_element_["createElement"])(Tag, null, rows.map(function (_ref3, rowIndex) { + var cells = _ref3.cells; + return Object(external_this_wp_element_["createElement"])("tr", { + key: rowIndex + }, cells.map(function (_ref4, cellIndex) { + var content = _ref4.content, + tag = _ref4.tag; + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: tag, + value: content, + key: cellIndex + }); + })); + })); + }; + + return Object(external_this_wp_element_["createElement"])("table", { + className: classes + }, Object(external_this_wp_element_["createElement"])(Section, { + type: "head", + rows: head + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "body", + rows: body + }), Object(external_this_wp_element_["createElement"])(Section, { + type: "foot", + rows: foot + })); + } +}; + + +/***/ }), +/* 240 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +function CodeEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + value: attributes.content, + onChange: function onChange(content) { + return setAttributes({ + content: content + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Write code…'), + "aria-label": Object(external_this_wp_i18n_["__"])('Code') + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return code_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + +var code_name = 'core/code'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Code'), + description: Object(external_this_wp_i18n_["__"])('Display code snippets that respect your spacing and tabs.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z" + })), + category: 'formatting', + attributes: { + content: { + type: 'string', + source: 'text', + selector: 'code' + } + }, + supports: { + html: false + }, + transforms: { + from: [{ + type: 'enter', + regExp: /^```$/, + transform: function transform() { + return Object(external_this_wp_blocks_["createBlock"])('core/code'); + } + }, { + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'PRE' && node.children.length === 1 && node.firstChild.nodeName === 'CODE'; + }, + schema: { + pre: { + children: { + code: { + children: { + '#text': {} + } + } + } + } + } + }] + }, + edit: CodeEdit, + save: function save(_ref) { + var attributes = _ref.attributes; + return Object(external_this_wp_element_["createElement"])("pre", null, Object(external_this_wp_element_["createElement"])("code", null, attributes.content)); + } +}; + + +/***/ }), +/* 241 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + + +var edit_HTMLEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(HTMLEdit, _Component); + + function HTMLEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, HTMLEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HTMLEdit).apply(this, arguments)); + _this.state = { + isPreview: false, + styles: [] + }; + _this.switchToHTML = _this.switchToHTML.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.switchToPreview = _this.switchToPreview.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(HTMLEdit, [{ + key: "componentDidMount", + value: function componentDidMount() { + var styles = this.props.styles; // Default styles used to unset some of the styles + // that might be inherited from the editor style. + + var defaultStyles = "\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"; + this.setState({ + styles: [defaultStyles].concat(Object(toConsumableArray["a" /* default */])(Object(external_this_wp_editor_["transformStyles"])(styles))) + }); + } + }, { + key: "switchToPreview", + value: function switchToPreview() { + this.setState({ + isPreview: true + }); + } + }, { + key: "switchToHTML", + value: function switchToHTML() { + this.setState({ + isPreview: false + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var _this$state = this.state, + isPreview = _this$state.isPreview, + styles = _this$state.styles; + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-html" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])("div", { + className: "components-toolbar" + }, Object(external_this_wp_element_["createElement"])("button", { + className: "components-tab-button ".concat(!isPreview ? 'is-active' : ''), + onClick: this.switchToHTML + }, Object(external_this_wp_element_["createElement"])("span", null, "HTML")), Object(external_this_wp_element_["createElement"])("button", { + className: "components-tab-button ".concat(isPreview ? 'is-active' : ''), + onClick: this.switchToPreview + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Preview'))))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"].Consumer, null, function (isDisabled) { + return isPreview || isDisabled ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SandBox"], { + html: attributes.content, + styles: styles + }) : Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PlainText"], { + value: attributes.content, + onChange: function onChange(content) { + return setAttributes({ + content: content + }); + }, + placeholder: Object(external_this_wp_i18n_["__"])('Write HTML…'), + "aria-label": Object(external_this_wp_i18n_["__"])('HTML') + }); + })); + } + }]); + + return HTMLEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/block-editor'), + getSettings = _select.getSettings; + + return { + styles: getSettings().styles + }; +})(edit_HTMLEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/html/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return html_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +var html_name = 'core/html'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Custom HTML'), + description: Object(external_this_wp_i18n_["__"])('Add custom HTML code and preview it as you edit.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z" + })), + category: 'formatting', + keywords: [Object(external_this_wp_i18n_["__"])('embed')], + supports: { + customClassName: false, + className: false, + html: false + }, + attributes: { + content: { + type: 'string', + source: 'html' + } + }, + transforms: { + from: [{ + type: 'raw', + isMatch: function isMatch(node) { + return node.nodeName === 'FIGURE' && !!node.querySelector('iframe'); + }, + schema: { + figure: { + require: ['iframe'], + children: { + iframe: { + attributes: ['src', 'allowfullscreen', 'height', 'width'] + }, + figcaption: { + children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])() + } + } + } + } + }] + }, + edit: edit, + save: function save(_ref) { + var attributes = _ref.attributes; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content); + } +}; + + +/***/ }), +/* 242 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js + + +/** + * WordPress dependencies + */ + + + + + +function ArchivesEdit(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes; + var align = attributes.align, + showPostCounts = attributes.showPostCounts, + displayAsDropdown = attributes.displayAsDropdown; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Archives Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), + checked: displayAsDropdown, + onChange: function onChange() { + return setAttributes({ + displayAsDropdown: !displayAsDropdown + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), + checked: showPostCounts, + onChange: function onChange() { + return setAttributes({ + showPostCounts: !showPostCounts + }); + } + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + }, + controls: ['left', 'center', 'right'] + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ServerSideRender"], { + block: "core/archives", + attributes: attributes + }))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return archives_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var archives_name = 'core/archives'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Archives'), + description: Object(external_this_wp_i18n_["__"])('Display a monthly archive of your posts.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" + }))), + category: 'widgets', + supports: { + html: false + }, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var align = attributes.align; + + if (['left', 'center', 'right'].includes(align)) { + return { + 'data-align': align + }; + } + }, + edit: ArchivesEdit, + save: function save() { + // Handled by PHP. + return null; + } +}; + + +/***/ }), +/* 243 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + +var _window = window, + getComputedStyle = _window.getComputedStyle; +var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) { + var textColor = ownProps.textColor, + backgroundColor = ownProps.backgroundColor; + var backgroundColorValue = backgroundColor && backgroundColor.color; + var textColorValue = textColor && textColor.color; //avoid the use of querySelector if textColor color is known and verify if node is available. + + var textNode = !textColorValue && node ? node.querySelector('[contenteditable="true"]') : null; + return { + fallbackBackgroundColor: backgroundColorValue || !node ? undefined : getComputedStyle(node).backgroundColor, + fallbackTextColor: textColorValue || !textNode ? undefined : getComputedStyle(textNode).color + }; +}); + +var edit_ButtonEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ButtonEdit, _Component); + + function ButtonEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ButtonEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ButtonEdit).apply(this, arguments)); + _this.nodeRef = null; + _this.bindRef = _this.bindRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(ButtonEdit, [{ + key: "bindRef", + value: function bindRef(node) { + if (!node) { + return; + } + + this.nodeRef = node; + } + }, { + key: "render", + value: function render() { + var _classnames; + + var _this$props = this.props, + attributes = _this$props.attributes, + backgroundColor = _this$props.backgroundColor, + textColor = _this$props.textColor, + setBackgroundColor = _this$props.setBackgroundColor, + setTextColor = _this$props.setTextColor, + fallbackBackgroundColor = _this$props.fallbackBackgroundColor, + fallbackTextColor = _this$props.fallbackTextColor, + setAttributes = _this$props.setAttributes, + isSelected = _this$props.isSelected, + className = _this$props.className; + var text = attributes.text, + url = attributes.url, + title = attributes.title; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { + className: className, + title: title, + ref: this.bindRef + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + placeholder: Object(external_this_wp_i18n_["__"])('Add text…'), + value: text, + onChange: function onChange(value) { + return setAttributes({ + text: value + }); + }, + formattingControls: ['bold', 'italic', 'strikethrough'], + className: classnames_default()('wp-block-button__link', (_classnames = { + 'has-background': backgroundColor.color + }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), _classnames)), + style: { + backgroundColor: backgroundColor.color, + color: textColor.color + }, + keepPlaceholderOnFocus: true + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + colorSettings: [{ + value: backgroundColor.color, + onChange: setBackgroundColor, + label: Object(external_this_wp_i18n_["__"])('Background Color') + }, { + value: textColor.color, + onChange: setTextColor, + label: Object(external_this_wp_i18n_["__"])('Text Color') + }] + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], { + // Text is considered large if font size is greater or equal to 18pt or 24px, + // currently that's not the case for button. + isLargeText: false, + textColor: textColor.color, + backgroundColor: backgroundColor.color, + fallbackBackgroundColor: fallbackBackgroundColor, + fallbackTextColor: fallbackTextColor + })))), isSelected && Object(external_this_wp_element_["createElement"])("form", { + className: "block-library-button__inline-link", + onSubmit: function onSubmit(event) { + return event.preventDefault(); + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dashicon"], { + icon: "admin-links" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLInput"], { + value: url, + onChange: function onChange(value) { + return setAttributes({ + url: value + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { + icon: "editor-break", + label: Object(external_this_wp_i18n_["__"])('Apply'), + type: "submit" + }))); + } + }]); + + return ButtonEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', { + textColor: 'color' +}), applyFallbackStyles])(edit_ButtonEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return button_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +var blockAttributes = { + url: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'href' + }, + title: { + type: 'string', + source: 'attribute', + selector: 'a', + attribute: 'title' + }, + text: { + type: 'string', + source: 'html', + selector: 'a' + }, + backgroundColor: { + type: 'string' + }, + textColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + } +}; +var button_name = 'core/button'; + +var button_colorsMigration = function colorsMigration(attributes) { + return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, { + customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined, + customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined + }), ['color', 'textColor']); +}; + +var settings = { + title: Object(external_this_wp_i18n_["__"])('Button'), + description: Object(external_this_wp_i18n_["__"])('Prompt visitors to take action with a button-style link.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z" + }))), + category: 'layout', + keywords: [Object(external_this_wp_i18n_["__"])('link')], + attributes: blockAttributes, + supports: { + align: true, + alignWide: false + }, + styles: [{ + name: 'default', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }, { + name: 'outline', + label: Object(external_this_wp_i18n_["__"])('Outline') + }, { + name: 'squared', + label: Object(external_this_wp_i18n_["_x"])('Squared', 'block style') + }], + edit: edit, + save: function save(_ref) { + var _classnames; + + var attributes = _ref.attributes; + var url = attributes.url, + text = attributes.text, + title = attributes.title, + backgroundColor = attributes.backgroundColor, + textColor = attributes.textColor, + customBackgroundColor = attributes.customBackgroundColor, + customTextColor = attributes.customTextColor; + var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor); + var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = { + 'has-text-color': textColor || customTextColor + }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames)); + var buttonStyle = { + backgroundColor: backgroundClass ? undefined : customBackgroundColor, + color: textClass ? undefined : customTextColor + }; + return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: buttonClasses, + href: url, + title: title, + style: buttonStyle, + value: text + })); + }, + deprecated: [{ + attributes: Object(objectSpread["a" /* default */])({}, Object(external_lodash_["pick"])(blockAttributes, ['url', 'title', 'text']), { + color: { + type: 'string' + }, + textColor: { + type: 'string' + }, + align: { + type: 'string', + default: 'none' + } + }), + save: function save(_ref2) { + var attributes = _ref2.attributes; + var url = attributes.url, + text = attributes.text, + title = attributes.title, + align = attributes.align, + color = attributes.color, + textColor = attributes.textColor; + var buttonStyle = { + backgroundColor: color, + color: textColor + }; + var linkClass = 'wp-block-button__link'; + return Object(external_this_wp_element_["createElement"])("div", { + className: "align".concat(align) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + className: linkClass, + href: url, + title: title, + style: buttonStyle, + value: text + })); + }, + migrate: button_colorsMigration + }, { + attributes: Object(objectSpread["a" /* default */])({}, Object(external_lodash_["pick"])(blockAttributes, ['url', 'title', 'text']), { + color: { + type: 'string' + }, + textColor: { + type: 'string' + }, + align: { + type: 'string', + default: 'none' + } + }), + save: function save(_ref3) { + var attributes = _ref3.attributes; + var url = attributes.url, + text = attributes.text, + title = attributes.title, + align = attributes.align, + color = attributes.color, + textColor = attributes.textColor; + return Object(external_this_wp_element_["createElement"])("div", { + className: "align".concat(align), + style: { + backgroundColor: color + } + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "a", + href: url, + title: title, + style: { + color: textColor + }, + value: text + })); + }, + migrate: button_colorsMigration + }] +}; + + +/***/ }), +/* 244 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","editor"]} +var external_this_wp_editor_ = __webpack_require__(22); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + + + +/** + * Minimum number of comments a user can show using this block. + * + * @type {number} + */ + +var MIN_COMMENTS = 1; +/** + * Maximum number of comments a user can show using this block. + * + * @type {number} + */ + +var MAX_COMMENTS = 100; + +var edit_LatestComments = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LatestComments, _Component); + + function LatestComments() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LatestComments); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestComments).apply(this, arguments)); + _this.setCommentsToShow = _this.setCommentsToShow.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); // Create toggles for each attribute; we create them here rather than + // passing `this.createToggleAttribute( 'displayAvatar' )` directly to + // `onChange` to avoid re-renders. + + _this.toggleDisplayAvatar = _this.createToggleAttribute('displayAvatar'); + _this.toggleDisplayDate = _this.createToggleAttribute('displayDate'); + _this.toggleDisplayExcerpt = _this.createToggleAttribute('displayExcerpt'); + return _this; + } + + Object(createClass["a" /* default */])(LatestComments, [{ + key: "createToggleAttribute", + value: function createToggleAttribute(propName) { + var _this2 = this; + + return function () { + var value = _this2.props.attributes[propName]; + var setAttributes = _this2.props.setAttributes; + setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); + }; + } + }, { + key: "setCommentsToShow", + value: function setCommentsToShow(commentsToShow) { + this.props.setAttributes({ + commentsToShow: commentsToShow + }); + } + }, { + key: "render", + value: function render() { + var _this$props$attribute = this.props.attributes, + commentsToShow = _this$props$attribute.commentsToShow, + displayAvatar = _this$props$attribute.displayAvatar, + displayDate = _this$props$attribute.displayDate, + displayExcerpt = _this$props$attribute.displayExcerpt; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Latest Comments Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display Avatar'), + checked: displayAvatar, + onChange: this.toggleDisplayAvatar + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display Date'), + checked: displayDate, + onChange: this.toggleDisplayDate + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display Excerpt'), + checked: displayExcerpt, + onChange: this.toggleDisplayExcerpt + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Number of Comments'), + value: commentsToShow, + onChange: this.setCommentsToShow, + min: MIN_COMMENTS, + max: MAX_COMMENTS, + required: true + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ServerSideRender"], { + block: "core/latest-comments", + attributes: this.props.attributes + }))); + } + }]); + + return LatestComments; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (edit_LatestComments); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return latest_comments_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var latest_comments_name = 'core/latest-comments'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Latest Comments'), + description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent comments.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z" + }))), + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('recent comments')], + supports: { + align: true, + html: false + }, + edit: edit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 245 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external {"this":["wp","apiFetch"]} +var external_this_wp_apiFetch_ = __webpack_require__(33); +var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); + +// EXTERNAL MODULE: external {"this":["wp","url"]} +var external_this_wp_url_ = __webpack_require__(23); + +// EXTERNAL MODULE: external {"this":["wp","date"]} +var external_this_wp_date_ = __webpack_require__(50); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/edit.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + + + + +/** + * Module Constants + */ + +var CATEGORIES_LIST_QUERY = { + per_page: -1 +}; +var MAX_POSTS_COLUMNS = 6; + +var edit_LatestPostsEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(LatestPostsEdit, _Component); + + function LatestPostsEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, LatestPostsEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(LatestPostsEdit).apply(this, arguments)); + _this.state = { + categoriesList: [] + }; + _this.toggleDisplayPostDate = _this.toggleDisplayPostDate.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(LatestPostsEdit, [{ + key: "componentWillMount", + value: function componentWillMount() { + var _this2 = this; + + this.isStillMounted = true; + this.fetchRequest = external_this_wp_apiFetch_default()({ + path: Object(external_this_wp_url_["addQueryArgs"])("/wp/v2/categories", CATEGORIES_LIST_QUERY) + }).then(function (categoriesList) { + if (_this2.isStillMounted) { + _this2.setState({ + categoriesList: categoriesList + }); + } + }).catch(function () { + if (_this2.isStillMounted) { + _this2.setState({ + categoriesList: [] + }); + } + }); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.isStillMounted = false; + } + }, { + key: "toggleDisplayPostDate", + value: function toggleDisplayPostDate() { + var displayPostDate = this.props.attributes.displayPostDate; + var setAttributes = this.props.setAttributes; + setAttributes({ + displayPostDate: !displayPostDate + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes, + latestPosts = _this$props.latestPosts; + var categoriesList = this.state.categoriesList; + var displayPostDate = attributes.displayPostDate, + align = attributes.align, + postLayout = attributes.postLayout, + columns = attributes.columns, + order = attributes.order, + orderBy = attributes.orderBy, + categories = attributes.categories, + postsToShow = attributes.postsToShow; + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Latest Posts Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["QueryControls"], Object(esm_extends["a" /* default */])({ + order: order, + orderBy: orderBy + }, { + numberOfItems: postsToShow, + categoriesList: categoriesList, + selectedCategoryId: categories, + onOrderChange: function onOrderChange(value) { + return setAttributes({ + order: value + }); + }, + onOrderByChange: function onOrderByChange(value) { + return setAttributes({ + orderBy: value + }); + }, + onCategoryChange: function onCategoryChange(value) { + return setAttributes({ + categories: '' !== value ? value : undefined + }); + }, + onNumberOfItemsChange: function onNumberOfItemsChange(value) { + return setAttributes({ + postsToShow: value + }); + } + })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display post date'), + checked: displayPostDate, + onChange: this.toggleDisplayPostDate + }), postLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: !hasPosts ? MAX_POSTS_COLUMNS : Math.min(MAX_POSTS_COLUMNS, latestPosts.length), + required: true + }))); + var hasPosts = Array.isArray(latestPosts) && latestPosts.length; + + if (!hasPosts) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: "admin-post", + label: Object(external_this_wp_i18n_["__"])('Latest Posts') + }, !Array.isArray(latestPosts) ? Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null) : Object(external_this_wp_i18n_["__"])('No posts found.'))); + } // Removing posts from display should be instant. + + + var displayPosts = latestPosts.length > postsToShow ? latestPosts.slice(0, postsToShow) : latestPosts; + var layoutControls = [{ + icon: 'list-view', + title: Object(external_this_wp_i18n_["__"])('List View'), + onClick: function onClick() { + return setAttributes({ + postLayout: 'list' + }); + }, + isActive: postLayout === 'list' + }, { + icon: 'grid-view', + title: Object(external_this_wp_i18n_["__"])('Grid View'), + onClick: function onClick() { + return setAttributes({ + postLayout: 'grid' + }); + }, + isActive: postLayout === 'grid' + }]; + + var dateFormat = Object(external_this_wp_date_["__experimentalGetSettings"])().formats.date; + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], { + value: align, + onChange: function onChange(nextAlign) { + setAttributes({ + align: nextAlign + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: layoutControls + })), Object(external_this_wp_element_["createElement"])("ul", { + className: classnames_default()(this.props.className, Object(defineProperty["a" /* default */])({ + 'is-grid': postLayout === 'grid', + 'has-dates': displayPostDate + }, "columns-".concat(columns), postLayout === 'grid')) + }, displayPosts.map(function (post, i) { + var titleTrimmed = post.title.rendered.trim(); + return Object(external_this_wp_element_["createElement"])("li", { + key: i + }, Object(external_this_wp_element_["createElement"])("a", { + href: post.link, + target: "_blank", + rel: "noreferrer noopener" + }, titleTrimmed ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, titleTrimmed) : Object(external_this_wp_i18n_["__"])('(Untitled)')), displayPostDate && post.date_gmt && Object(external_this_wp_element_["createElement"])("time", { + dateTime: Object(external_this_wp_date_["format"])('c', post.date_gmt), + className: "wp-block-latest-posts__post-date" + }, Object(external_this_wp_date_["dateI18n"])(dateFormat, post.date_gmt))); + }))); + } + }]); + + return LatestPostsEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select, props) { + var _props$attributes = props.attributes, + postsToShow = _props$attributes.postsToShow, + order = _props$attributes.order, + orderBy = _props$attributes.orderBy, + categories = _props$attributes.categories; + + var _select = select('core'), + getEntityRecords = _select.getEntityRecords; + + var latestPostsQuery = Object(external_lodash_["pickBy"])({ + categories: categories, + order: order, + orderby: orderBy, + per_page: postsToShow + }, function (value) { + return !Object(external_lodash_["isUndefined"])(value); + }); + return { + latestPosts: getEntityRecords('postType', 'post', latestPostsQuery) + }; +})(edit_LatestPostsEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return latest_posts_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var latest_posts_name = 'core/latest-posts'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Latest Posts'), + description: Object(external_this_wp_i18n_["__"])('Display a list of your most recent posts.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "7", + width: "6", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "11", + width: "6", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "11", + y: "15", + width: "6", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "7", + y: "7", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "7", + y: "11", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], { + x: "7", + y: "15", + width: "2", + height: "2" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z" + })), + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('recent posts')], + supports: { + html: false + }, + getEditWrapperProps: function getEditWrapperProps(attributes) { + var align = attributes.align; + + if (['left', 'center', 'right', 'wide', 'full'].includes(align)) { + return { + 'data-align': align + }; + } + }, + edit: edit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 246 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "moment" +var external_moment_ = __webpack_require__(29); +var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_); + +// EXTERNAL MODULE: ./node_modules/memize/index.js +var memize = __webpack_require__(41); +var memize_default = /*#__PURE__*/__webpack_require__.n(memize); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +var edit_CalendarEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(CalendarEdit, _Component); + + function CalendarEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, CalendarEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CalendarEdit).apply(this, arguments)); + _this.getYearMonth = memize_default()(_this.getYearMonth.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), { + maxSize: 1 + }); + _this.getServerSideAttributes = memize_default()(_this.getServerSideAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), { + maxSize: 1 + }); + return _this; + } + + Object(createClass["a" /* default */])(CalendarEdit, [{ + key: "getYearMonth", + value: function getYearMonth(date) { + if (!date) { + return {}; + } + + var momentDate = external_moment_default()(date); + return { + year: momentDate.year(), + month: momentDate.month() + 1 + }; + } + }, { + key: "getServerSideAttributes", + value: function getServerSideAttributes(attributes, date) { + return Object(objectSpread["a" /* default */])({}, attributes, this.getYearMonth(date)); + } + }, { + key: "render", + value: function render() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ServerSideRender"], { + block: "core/calendar", + attributes: this.getServerSideAttributes(this.props.attributes, this.props.date) + })); + } + }]); + + return CalendarEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/editor'), + getEditedPostAttribute = _select.getEditedPostAttribute; + + var postType = getEditedPostAttribute('type'); // Dates are used to overwrite year and month used on the calendar. + // This overwrite should only happen for 'post' post types. + // For other post types the calendar always displays the current month. + + return { + date: postType === 'post' ? getEditedPostAttribute('date') : undefined + }; +})(edit_CalendarEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return calendar_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var calendar_name = 'core/calendar'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Calendar'), + description: Object(external_this_wp_i18n_["__"])('A calendar of your site’s posts.'), + icon: 'calendar', + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('posts'), Object(external_this_wp_i18n_["__"])('archive')], + supports: { + align: true + }, + edit: edit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 247 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/edit.js + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + + +var edit_CategoriesEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(CategoriesEdit, _Component); + + function CategoriesEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, CategoriesEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CategoriesEdit).apply(this, arguments)); + _this.toggleDisplayAsDropdown = _this.toggleDisplayAsDropdown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.toggleShowPostCounts = _this.toggleShowPostCounts.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.toggleShowHierarchy = _this.toggleShowHierarchy.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(CategoriesEdit, [{ + key: "toggleDisplayAsDropdown", + value: function toggleDisplayAsDropdown() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var displayAsDropdown = attributes.displayAsDropdown; + setAttributes({ + displayAsDropdown: !displayAsDropdown + }); + } + }, { + key: "toggleShowPostCounts", + value: function toggleShowPostCounts() { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + setAttributes = _this$props2.setAttributes; + var showPostCounts = attributes.showPostCounts; + setAttributes({ + showPostCounts: !showPostCounts + }); + } + }, { + key: "toggleShowHierarchy", + value: function toggleShowHierarchy() { + var _this$props3 = this.props, + attributes = _this$props3.attributes, + setAttributes = _this$props3.setAttributes; + var showHierarchy = attributes.showHierarchy; + setAttributes({ + showHierarchy: !showHierarchy + }); + } + }, { + key: "getCategories", + value: function getCategories() { + var parentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var categories = this.props.categories; + + if (!categories || !categories.length) { + return []; + } + + if (parentId === null) { + return categories; + } + + return categories.filter(function (category) { + return category.parent === parentId; + }); + } + }, { + key: "getCategoryListClassName", + value: function getCategoryListClassName(level) { + return "wp-block-categories__list wp-block-categories__list-level-".concat(level); + } + }, { + key: "renderCategoryName", + value: function renderCategoryName(category) { + if (!category.name) { + return Object(external_this_wp_i18n_["__"])('(Untitled)'); + } + + return Object(external_lodash_["unescape"])(category.name).trim(); + } + }, { + key: "renderCategoryList", + value: function renderCategoryList() { + var _this2 = this; + + var showHierarchy = this.props.attributes.showHierarchy; + var parentId = showHierarchy ? 0 : null; + var categories = this.getCategories(parentId); + return Object(external_this_wp_element_["createElement"])("ul", { + className: this.getCategoryListClassName(0) + }, categories.map(function (category) { + return _this2.renderCategoryListItem(category, 0); + })); + } + }, { + key: "renderCategoryListItem", + value: function renderCategoryListItem(category, level) { + var _this3 = this; + + var _this$props$attribute = this.props.attributes, + showHierarchy = _this$props$attribute.showHierarchy, + showPostCounts = _this$props$attribute.showPostCounts; + var childCategories = this.getCategories(category.id); + return Object(external_this_wp_element_["createElement"])("li", { + key: category.id + }, Object(external_this_wp_element_["createElement"])("a", { + href: category.link, + target: "_blank", + rel: "noreferrer noopener" + }, this.renderCategoryName(category)), showPostCounts && Object(external_this_wp_element_["createElement"])("span", { + className: "wp-block-categories__post-count" + }, ' ', "(", category.count, ")"), showHierarchy && !!childCategories.length && Object(external_this_wp_element_["createElement"])("ul", { + className: this.getCategoryListClassName(level + 1) + }, childCategories.map(function (childCategory) { + return _this3.renderCategoryListItem(childCategory, level + 1); + }))); + } + }, { + key: "renderCategoryDropdown", + value: function renderCategoryDropdown() { + var _this4 = this; + + var instanceId = this.props.instanceId; + var showHierarchy = this.props.attributes.showHierarchy; + var parentId = showHierarchy ? 0 : null; + var categories = this.getCategories(parentId); + var selectId = "blocks-category-select-".concat(instanceId); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("label", { + htmlFor: selectId, + className: "screen-reader-text" + }, Object(external_this_wp_i18n_["__"])('Categories')), Object(external_this_wp_element_["createElement"])("select", { + id: selectId, + className: "wp-block-categories__dropdown" + }, categories.map(function (category) { + return _this4.renderCategoryDropdownItem(category, 0); + }))); + } + }, { + key: "renderCategoryDropdownItem", + value: function renderCategoryDropdownItem(category, level) { + var _this5 = this; + + var _this$props$attribute2 = this.props.attributes, + showHierarchy = _this$props$attribute2.showHierarchy, + showPostCounts = _this$props$attribute2.showPostCounts; + var childCategories = this.getCategories(category.id); + return [Object(external_this_wp_element_["createElement"])("option", { + key: category.id + }, Object(external_lodash_["times"])(level * 3, function () { + return '\xa0'; + }), this.renderCategoryName(category), !!showPostCounts ? " (".concat(category.count, ")") : ''), showHierarchy && !!childCategories.length && childCategories.map(function (childCategory) { + return _this5.renderCategoryDropdownItem(childCategory, level + 1); + })]; + } + }, { + key: "render", + value: function render() { + var _this$props4 = this.props, + attributes = _this$props4.attributes, + isRequesting = _this$props4.isRequesting; + var displayAsDropdown = attributes.displayAsDropdown, + showHierarchy = attributes.showHierarchy, + showPostCounts = attributes.showPostCounts; + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Categories Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'), + checked: displayAsDropdown, + onChange: this.toggleDisplayAsDropdown + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show Hierarchy'), + checked: showHierarchy, + onChange: this.toggleShowHierarchy + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show Post Counts'), + checked: showPostCounts, + onChange: this.toggleShowPostCounts + }))); + + if (isRequesting) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: "admin-post", + label: Object(external_this_wp_i18n_["__"])('Categories') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))); + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])("div", { + className: this.props.className + }, displayAsDropdown ? this.renderCategoryDropdown() : this.renderCategoryList())); + } + }]); + + return CategoriesEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core'), + getEntityRecords = _select.getEntityRecords; + + var _select2 = select('core/data'), + isResolving = _select2.isResolving; + + var query = { + per_page: -1, + hide_empty: true + }; + return { + categories: getEntityRecords('taxonomy', 'category', query), + isRequesting: isResolving('core', 'getEntityRecords', ['taxonomy', 'category', query]) + }; +}), external_this_wp_compose_["withInstanceId"])(edit_CategoriesEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return categories_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +var categories_name = 'core/categories'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Categories'), + description: Object(external_this_wp_i18n_["__"])('Display a list of all categories.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z" + })), + category: 'widgets', + attributes: { + displayAsDropdown: { + type: 'boolean', + default: false + }, + showHierarchy: { + type: 'boolean', + default: false + }, + showPostCounts: { + type: 'boolean', + default: false + } + }, + supports: { + align: true, + alignWide: false, + html: false + }, + edit: edit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 248 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(18); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/edit.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + + +var edit_MoreEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(MoreEdit, _Component); + + function MoreEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, MoreEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MoreEdit).apply(this, arguments)); + _this.onChangeInput = _this.onChangeInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + defaultText: Object(external_this_wp_i18n_["__"])('Read more') + }; + return _this; + } + + Object(createClass["a" /* default */])(MoreEdit, [{ + key: "onChangeInput", + value: function onChangeInput(event) { + // Set defaultText to an empty string, allowing the user to clear/replace the input field's text + this.setState({ + defaultText: '' + }); + var value = event.target.value.length === 0 ? undefined : event.target.value; + this.props.setAttributes({ + customText: value + }); + } + }, { + key: "onKeyDown", + value: function onKeyDown(event) { + var keyCode = event.keyCode; + var insertBlocksAfter = this.props.insertBlocksAfter; + + if (keyCode === external_this_wp_keycodes_["ENTER"]) { + insertBlocksAfter([Object(external_this_wp_blocks_["createBlock"])(Object(external_this_wp_blocks_["getDefaultBlockName"])())]); + } + } + }, { + key: "getHideExcerptHelp", + value: function getHideExcerptHelp(checked) { + return checked ? Object(external_this_wp_i18n_["__"])('The excerpt is hidden.') : Object(external_this_wp_i18n_["__"])('The excerpt is visible.'); + } + }, { + key: "render", + value: function render() { + var _this$props$attribute = this.props.attributes, + customText = _this$props$attribute.customText, + noTeaser = _this$props$attribute.noTeaser; + var setAttributes = this.props.setAttributes; + + var toggleHideExcerpt = function toggleHideExcerpt() { + return setAttributes({ + noTeaser: !noTeaser + }); + }; + + var defaultText = this.state.defaultText; + var value = customText !== undefined ? customText : defaultText; + var inputLength = value.length + 1; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Hide the excerpt on the full content page'), + checked: !!noTeaser, + onChange: toggleHideExcerpt, + help: this.getHideExcerptHelp + }))), Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-more" + }, Object(external_this_wp_element_["createElement"])("input", { + type: "text", + value: value, + size: inputLength, + onChange: this.onChangeInput, + onKeyDown: this.onKeyDown + }))); + } + }]); + + return MoreEdit; +}(external_this_wp_element_["Component"]); + + + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/more/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return more_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var more_name = 'core/more'; +var settings = { + title: Object(external_this_wp_i18n_["_x"])('More', 'block name'), + description: Object(external_this_wp_i18n_["__"])('Content before this block will be shown in the excerpt on your archives page.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + fill: "none", + d: "M0 0h24v24H0V0z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z" + }))), + category: 'layout', + supports: { + customClassName: false, + className: false, + html: false, + multiple: false + }, + attributes: { + customText: { + type: 'string' + }, + noTeaser: { + type: 'boolean', + default: false + } + }, + transforms: { + from: [{ + type: 'raw', + schema: { + 'wp-block': { + attributes: ['data-block'] + } + }, + isMatch: function isMatch(node) { + return node.dataset && node.dataset.block === 'core/more'; + }, + transform: function transform(node) { + var _node$dataset = node.dataset, + customText = _node$dataset.customText, + noTeaser = _node$dataset.noTeaser; + var attrs = {}; // Don't copy unless defined and not an empty string + + if (customText) { + attrs.customText = customText; + } // Special handling for boolean + + + if (noTeaser === '') { + attrs.noTeaser = true; + } + + return Object(external_this_wp_blocks_["createBlock"])('core/more', attrs); + } + }] + }, + edit: edit_MoreEdit, + save: function save(_ref) { + var attributes = _ref.attributes; + var customText = attributes.customText, + noTeaser = attributes.noTeaser; + var moreTag = customText ? "") : ''; + var noTeaserTag = noTeaser ? '' : ''; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, Object(external_lodash_["compact"])([moreTag, noTeaserTag]).join('\n')); + } +}; + + +/***/ }), +/* 249 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blocks"]} +var external_this_wp_blocks_ = __webpack_require__(14); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/edit.js + + +/** + * WordPress dependencies + */ + +function NextPageEdit() { + return Object(external_this_wp_element_["createElement"])("div", { + className: "wp-block-nextpage" + }, Object(external_this_wp_element_["createElement"])("span", null, Object(external_this_wp_i18n_["__"])('Page break'))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/nextpage/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return nextpage_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +var nextpage_name = 'core/nextpage'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Page Break'), + description: Object(external_this_wp_i18n_["__"])('Separate your content into a multi-page experience.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z" + }))), + category: 'layout', + keywords: [Object(external_this_wp_i18n_["__"])('next page'), Object(external_this_wp_i18n_["__"])('pagination')], + supports: { + customClassName: false, + className: false, + html: false + }, + attributes: {}, + transforms: { + from: [{ + type: 'raw', + schema: { + 'wp-block': { + attributes: ['data-block'] + } + }, + isMatch: function isMatch(node) { + return node.dataset && node.dataset.block === 'core/nextpage'; + }, + transform: function transform() { + return Object(external_this_wp_blocks_["createBlock"])('core/nextpage', {}); + } + }] + }, + edit: NextPageEdit, + save: function save() { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, ''); + } +}; + + +/***/ }), +/* 250 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/edit.js + + +/** + * WordPress dependencies + */ + + +function SearchEdit(_ref) { + var className = _ref.className, + attributes = _ref.attributes, + setAttributes = _ref.setAttributes; + var label = attributes.label, + placeholder = attributes.placeholder, + buttonText = attributes.buttonText; + return Object(external_this_wp_element_["createElement"])("div", { + className: className + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + wrapperClassName: "wp-block-search__label", + "aria-label": Object(external_this_wp_i18n_["__"])('Label text'), + placeholder: Object(external_this_wp_i18n_["__"])('Add label…'), + keepPlaceholderOnFocus: true, + formattingControls: [], + value: label, + onChange: function onChange(html) { + return setAttributes({ + label: html + }); + } + }), Object(external_this_wp_element_["createElement"])("input", { + className: "wp-block-search__input", + "aria-label": Object(external_this_wp_i18n_["__"])('Optional placeholder text') // We hide the placeholder field's placeholder when there is a value. This + // stops screen readers from reading the placeholder field's placeholder + // which is confusing. + , + placeholder: placeholder ? undefined : Object(external_this_wp_i18n_["__"])('Optional placeholder…'), + value: placeholder, + onChange: function onChange(event) { + return setAttributes({ + placeholder: event.target.value + }); + } + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + wrapperClassName: "wp-block-search__button", + className: "wp-block-search__button-rich-text", + "aria-label": Object(external_this_wp_i18n_["__"])('Button text'), + placeholder: Object(external_this_wp_i18n_["__"])('Add button text…'), + keepPlaceholderOnFocus: true, + formattingControls: [], + value: buttonText, + onChange: function onChange(html) { + return setAttributes({ + buttonText: html + }); + } + })); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/search/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return search_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var search_name = 'core/search'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Search'), + description: Object(external_this_wp_i18n_["__"])('Help visitors find your content.'), + icon: 'search', + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('find')], + edit: SearchEdit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 251 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/edit.js + + + + + + + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + +var SOLID_COLOR_STYLE_NAME = 'solid-color'; +var SOLID_COLOR_CLASS = "is-style-".concat(SOLID_COLOR_STYLE_NAME); + +var edit_PullQuoteEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(PullQuoteEdit, _Component); + + function PullQuoteEdit(props) { + var _this; + + Object(classCallCheck["a" /* default */])(this, PullQuoteEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PullQuoteEdit).call(this, props)); + _this.wasTextColorAutomaticallyComputed = false; + _this.pullQuoteMainColorSetter = _this.pullQuoteMainColorSetter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.pullQuoteTextColorSetter = _this.pullQuoteTextColorSetter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(PullQuoteEdit, [{ + key: "pullQuoteMainColorSetter", + value: function pullQuoteMainColorSetter(colorValue) { + var _this$props = this.props, + colorUtils = _this$props.colorUtils, + textColor = _this$props.textColor, + setTextColor = _this$props.setTextColor, + setMainColor = _this$props.setMainColor, + className = _this$props.className; + var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); + var needTextColor = !textColor.color || this.wasTextColorAutomaticallyComputed; + var shouldSetTextColor = isSolidColorStyle && needTextColor && colorValue; + setMainColor(colorValue); + + if (shouldSetTextColor) { + this.wasTextColorAutomaticallyComputed = true; + setTextColor(colorUtils.getMostReadableColor(colorValue)); + } + } + }, { + key: "pullQuoteTextColorSetter", + value: function pullQuoteTextColorSetter(colorValue) { + var setTextColor = this.props.setTextColor; + setTextColor(colorValue); + this.wasTextColorAutomaticallyComputed = false; + } + }, { + key: "render", + value: function render() { + var _this$props2 = this.props, + attributes = _this$props2.attributes, + mainColor = _this$props2.mainColor, + textColor = _this$props2.textColor, + setAttributes = _this$props2.setAttributes, + isSelected = _this$props2.isSelected, + className = _this$props2.className; + var value = attributes.value, + citation = attributes.citation; + var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); + var figureStyle = isSolidColorStyle ? { + backgroundColor: mainColor.color + } : { + borderColor: mainColor.color + }; + var blockquoteStyle = { + color: textColor.color + }; + var blockquoteClasses = textColor.color ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, textColor.class, textColor.class)) : undefined; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("figure", { + style: figureStyle, + className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, mainColor.class, isSolidColorStyle && mainColor.class)) + }, Object(external_this_wp_element_["createElement"])("blockquote", { + style: blockquoteStyle, + className: blockquoteClasses + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + multiline: true, + value: value, + onChange: function onChange(nextValue) { + return setAttributes({ + value: nextValue + }); + }, + placeholder: // translators: placeholder text used for the quote + Object(external_this_wp_i18n_["__"])('Write quote…'), + wrapperClassName: "block-library-pullquote__content" + }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], { + value: citation, + placeholder: // translators: placeholder text used for the citation + Object(external_this_wp_i18n_["__"])('Write citation…'), + onChange: function onChange(nextCitation) { + return setAttributes({ + citation: nextCitation + }); + }, + className: "wp-block-pullquote__citation" + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], { + title: Object(external_this_wp_i18n_["__"])('Color Settings'), + colorSettings: [{ + value: mainColor.color, + onChange: this.pullQuoteMainColorSetter, + label: Object(external_this_wp_i18n_["__"])('Main Color') + }, { + value: textColor.color, + onChange: this.pullQuoteTextColorSetter, + label: Object(external_this_wp_i18n_["__"])('Text Color') + }] + }, isSolidColorStyle && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({ + textColor: textColor.color, + backgroundColor: mainColor.color + }, { + isLargeText: false + }))))); + } + }]); + + return PullQuoteEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_blockEditor_["withColors"])({ + mainColor: 'background-color', + textColor: 'color' +})(edit_PullQuoteEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/pullquote/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return pullquote_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); + + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +var blockAttributes = { + 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' + } +}; +var pullquote_name = 'core/pullquote'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Pullquote'), + description: Object(external_this_wp_i18n_["__"])('Give special visual emphasis to a quote from your text.'), + icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "M0,0h24v24H0V0z", + fill: "none" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { + points: "21 18 2 18 2 20 21 20" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { + d: "m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z" + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { + points: "21 4 2 4 2 6 21 6" + })), + category: 'formatting', + attributes: blockAttributes, + styles: [{ + name: 'default', + label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), + isDefault: true + }, { + name: SOLID_COLOR_STYLE_NAME, + label: Object(external_this_wp_i18n_["__"])('Solid Color') + }], + supports: { + align: ['left', 'right', 'wide', 'full'] + }, + edit: edit, + save: function save(_ref) { + var attributes = _ref.attributes; + var mainColor = attributes.mainColor, + customMainColor = attributes.customMainColor, + textColor = attributes.textColor, + customTextColor = attributes.customTextColor, + value = attributes.value, + citation = attributes.citation, + className = attributes.className; + var isSolidColorStyle = Object(external_lodash_["includes"])(className, SOLID_COLOR_CLASS); + var figureClass, figureStyles; // Is solid color style + + if (isSolidColorStyle) { + figureClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', mainColor); + + if (!figureClass) { + figureStyles = { + backgroundColor: customMainColor + }; + } // Is normal style and a custom color is being used ( we can set a style directly with its value) + + } else if (customMainColor) { + figureStyles = { + borderColor: customMainColor + }; // Is normal style and a named color is being used, we need to retrieve the color value to set the style, + // as there is no expectation that themes create classes that set border colors. + } else if (mainColor) { + var colors = Object(external_lodash_["get"])(Object(external_this_wp_data_["select"])('core/block-editor').getSettings(), ['colors'], []); + var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, mainColor); + figureStyles = { + borderColor: colorObject.color + }; + } + + var blockquoteTextColorClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor); + var blockquoteClasses = textColor || customTextColor ? classnames_default()('has-text-color', Object(defineProperty["a" /* default */])({}, blockquoteTextColorClass, blockquoteTextColorClass)) : undefined; + var blockquoteStyle = blockquoteTextColorClass ? undefined : { + color: customTextColor + }; + return Object(external_this_wp_element_["createElement"])("figure", { + className: figureClass, + style: figureStyles + }, Object(external_this_wp_element_["createElement"])("blockquote", { + className: blockquoteClasses, + style: blockquoteStyle + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: value, + multiline: true + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + }))); + }, + deprecated: [{ + attributes: Object(objectSpread["a" /* default */])({}, blockAttributes), + save: function save(_ref2) { + var attributes = _ref2.attributes; + var value = attributes.value, + citation = attributes.citation; + return Object(external_this_wp_element_["createElement"])("blockquote", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: value, + multiline: true + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "cite", + value: citation + })); + } + }, { + attributes: Object(objectSpread["a" /* default */])({}, blockAttributes, { + citation: { + type: 'string', + source: 'html', + selector: 'footer' + }, + align: { + type: 'string', + default: 'none' + } + }), + save: function save(_ref3) { + var attributes = _ref3.attributes; + var value = attributes.value, + citation = attributes.citation, + align = attributes.align; + return Object(external_this_wp_element_["createElement"])("blockquote", { + className: "align".concat(align) + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + value: value, + multiline: true + }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, { + tagName: "footer", + value: citation + })); + } + }] +}; + + +/***/ }), +/* 252 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/edit.js + + + + + + + + + +/** + * WordPress dependencies + */ + + + + +var DEFAULT_MIN_ITEMS = 1; +var DEFAULT_MAX_ITEMS = 10; + +var edit_RSSEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(RSSEdit, _Component); + + function RSSEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, RSSEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RSSEdit).apply(this, arguments)); + _this.state = { + editing: !_this.props.attributes.feedURL + }; + _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.onSubmitURL = _this.onSubmitURL.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(RSSEdit, [{ + key: "toggleAttribute", + value: function toggleAttribute(propName) { + var _this2 = this; + + return function () { + var value = _this2.props.attributes[propName]; + var setAttributes = _this2.props.setAttributes; + setAttributes(Object(defineProperty["a" /* default */])({}, propName, !value)); + }; + } + }, { + key: "onSubmitURL", + value: function onSubmitURL(event) { + event.preventDefault(); + var feedURL = this.props.attributes.feedURL; + + if (feedURL) { + this.setState({ + editing: false + }); + } + } + }, { + key: "render", + value: function render() { + var _this3 = this; + + var _this$props$attribute = this.props.attributes, + blockLayout = _this$props$attribute.blockLayout, + columns = _this$props$attribute.columns, + displayAuthor = _this$props$attribute.displayAuthor, + displayExcerpt = _this$props$attribute.displayExcerpt, + displayDate = _this$props$attribute.displayDate, + excerptLength = _this$props$attribute.excerptLength, + feedURL = _this$props$attribute.feedURL, + itemsToShow = _this$props$attribute.itemsToShow; + var setAttributes = this.props.setAttributes; + + if (this.state.editing) { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { + icon: "rss", + label: "RSS" + }, Object(external_this_wp_element_["createElement"])("form", { + onSubmit: this.onSubmitURL + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + placeholder: Object(external_this_wp_i18n_["__"])('Enter URL here…'), + value: feedURL, + onChange: function onChange(value) { + return setAttributes({ + feedURL: value + }); + }, + className: 'components-placeholder__input' + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + isLarge: true, + type: "submit" + }, Object(external_this_wp_i18n_["__"])('Use URL')))); + } + + var toolbarControls = [{ + icon: 'edit', + title: Object(external_this_wp_i18n_["__"])('Edit RSS URL'), + onClick: function onClick() { + return _this3.setState({ + editing: true + }); + } + }, { + icon: 'list-view', + title: Object(external_this_wp_i18n_["__"])('List View'), + onClick: function onClick() { + return setAttributes({ + blockLayout: 'list' + }); + }, + isActive: blockLayout === 'list' + }, { + icon: 'grid-view', + title: Object(external_this_wp_i18n_["__"])('Grid View'), + onClick: function onClick() { + return setAttributes({ + blockLayout: 'grid' + }); + }, + isActive: blockLayout === 'grid' + }]; + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { + controls: toolbarControls + })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('RSS Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Number of items'), + value: itemsToShow, + onChange: function onChange(value) { + return setAttributes({ + itemsToShow: value + }); + }, + min: DEFAULT_MIN_ITEMS, + max: DEFAULT_MAX_ITEMS, + required: true + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display author'), + checked: displayAuthor, + onChange: this.toggleAttribute('displayAuthor') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display date'), + checked: displayDate, + onChange: this.toggleAttribute('displayDate') + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Display excerpt'), + checked: displayExcerpt, + onChange: this.toggleAttribute('displayExcerpt') + }), displayExcerpt && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Max number of words in excerpt'), + value: excerptLength, + onChange: function onChange(value) { + return setAttributes({ + excerptLength: value + }); + }, + min: 10, + max: 100, + required: true + }), blockLayout === 'grid' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], { + label: Object(external_this_wp_i18n_["__"])('Columns'), + value: columns, + onChange: function onChange(value) { + return setAttributes({ + columns: value + }); + }, + min: 2, + max: 6, + required: true + }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ServerSideRender"], { + block: "core/rss", + attributes: this.props.attributes + }))); + } + }]); + + return RSSEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (edit_RSSEdit); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/rss/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return rss_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var rss_name = 'core/rss'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('RSS'), + description: Object(external_this_wp_i18n_["__"])('Display entries from any RSS or Atom feed.'), + icon: 'rss', + category: 'widgets', + keywords: [Object(external_this_wp_i18n_["__"])('atom'), Object(external_this_wp_i18n_["__"])('feed')], + supports: { + html: false + }, + edit: edit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 253 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: external {"this":["wp","i18n"]} +var external_this_wp_i18n_ = __webpack_require__(1); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","element"]} +var external_this_wp_element_ = __webpack_require__(0); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/edit.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +var edit_TagCloudEdit = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(TagCloudEdit, _Component); + + function TagCloudEdit() { + var _this; + + Object(classCallCheck["a" /* default */])(this, TagCloudEdit); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(TagCloudEdit).apply(this, arguments)); + _this.state = { + editing: !_this.props.attributes.taxonomy + }; + _this.setTaxonomy = _this.setTaxonomy.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.toggleShowTagCounts = _this.toggleShowTagCounts.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + return _this; + } + + Object(createClass["a" /* default */])(TagCloudEdit, [{ + key: "getTaxonomyOptions", + value: function getTaxonomyOptions() { + var taxonomies = Object(external_lodash_["filter"])(this.props.taxonomies, 'show_cloud'); + var selectOption = { + label: Object(external_this_wp_i18n_["__"])('- Select -'), + value: '' + }; + var taxonomyOptions = Object(external_lodash_["map"])(taxonomies, function (taxonomy) { + return { + value: taxonomy.slug, + label: taxonomy.name + }; + }); + return [selectOption].concat(Object(toConsumableArray["a" /* default */])(taxonomyOptions)); + } + }, { + key: "setTaxonomy", + value: function setTaxonomy(taxonomy) { + var setAttributes = this.props.setAttributes; + setAttributes({ + taxonomy: taxonomy + }); + } + }, { + key: "toggleShowTagCounts", + value: function toggleShowTagCounts() { + var _this$props = this.props, + attributes = _this$props.attributes, + setAttributes = _this$props.setAttributes; + var showTagCounts = attributes.showTagCounts; + setAttributes({ + showTagCounts: !showTagCounts + }); + } + }, { + key: "render", + value: function render() { + var attributes = this.props.attributes; + var taxonomy = attributes.taxonomy, + showTagCounts = attributes.showTagCounts; + var taxonomyOptions = this.getTaxonomyOptions(); + var inspectorControls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { + title: Object(external_this_wp_i18n_["__"])('Tag Cloud Settings') + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], { + label: Object(external_this_wp_i18n_["__"])('Taxonomy'), + options: taxonomyOptions, + value: taxonomy, + onChange: this.setTaxonomy + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], { + label: Object(external_this_wp_i18n_["__"])('Show post counts'), + checked: showTagCounts, + onChange: this.toggleShowTagCounts + }))); + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, inspectorControls, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ServerSideRender"], { + key: "tag-cloud", + block: "core/tag-cloud", + attributes: attributes + })); + } + }]); + + return TagCloudEdit; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var edit = (Object(external_this_wp_data_["withSelect"])(function (select) { + return { + taxonomies: select('core').getTaxonomies() + }; +})(edit_TagCloudEdit)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return tag_cloud_name; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; }); +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +var tag_cloud_name = 'core/tag-cloud'; +var settings = { + title: Object(external_this_wp_i18n_["__"])('Tag Cloud'), + description: Object(external_this_wp_i18n_["__"])('A cloud of your most used tags.'), + icon: 'tag', + category: 'widgets', + supports: { + html: false, + align: true + }, + edit: edit, + save: function save() { + return null; + } +}; + + +/***/ }), +/* 254 */, +/* 255 */, +/* 256 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return registerCoreBlocks; }); +/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17); +/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72); +/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_core_data__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22); +/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _paragraph__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(138); +/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(230); +/* harmony import */ var _heading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(235); +/* harmony import */ var _quote__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(208); +/* harmony import */ var _gallery__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(234); +/* harmony import */ var _archives__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(242); +/* harmony import */ var _audio__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(236); +/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(243); +/* harmony import */ var _calendar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(246); +/* harmony import */ var _categories__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(247); +/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(240); +/* harmony import */ var _columns__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(209); +/* harmony import */ var _columns_column__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(210); +/* harmony import */ var _cover__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(237); +/* harmony import */ var _embed__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(110); +/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(232); +/* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(241); +/* harmony import */ var _media_text__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(229); +/* harmony import */ var _latest_comments__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(244); +/* harmony import */ var _latest_posts__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(245); +/* harmony import */ var _legacy_widget__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(231); +/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(212); +/* harmony import */ var _missing__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(136); +/* harmony import */ var _more__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(248); +/* harmony import */ var _nextpage__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(249); +/* harmony import */ var _preformatted__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(213); +/* harmony import */ var _pullquote__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(251); +/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(233); +/* harmony import */ var _rss__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(252); +/* harmony import */ var _search__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(250); +/* harmony import */ var _separator__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(214); +/* harmony import */ var _shortcode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(215); +/* harmony import */ var _spacer__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(216); +/* harmony import */ var _subhead__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(217); +/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(239); +/* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(218); +/* harmony import */ var _text_columns__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(219); +/* harmony import */ var _verse__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(220); +/* harmony import */ var _video__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(238); +/* harmony import */ var _tag_cloud__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(253); +/* harmony import */ var _classic__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(139); + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/** + * Function to register core blocks provided by the block editor. + * + * @example + * ```js + * import { registerCoreBlocks } from '@wordpress/block-library'; + * + * registerCoreBlocks(); + * ``` + */ + +var registerCoreBlocks = function registerCoreBlocks() { + [// Common blocks are grouped at the top to prioritize their display + // in various contexts — like the inserter and auto-complete components. + _paragraph__WEBPACK_IMPORTED_MODULE_5__, _image__WEBPACK_IMPORTED_MODULE_6__, _heading__WEBPACK_IMPORTED_MODULE_7__, _gallery__WEBPACK_IMPORTED_MODULE_9__, _list__WEBPACK_IMPORTED_MODULE_26__, _quote__WEBPACK_IMPORTED_MODULE_8__, // Register all remaining core blocks. + _shortcode__WEBPACK_IMPORTED_MODULE_36__, _archives__WEBPACK_IMPORTED_MODULE_10__, _audio__WEBPACK_IMPORTED_MODULE_11__, _button__WEBPACK_IMPORTED_MODULE_12__, _calendar__WEBPACK_IMPORTED_MODULE_13__, _categories__WEBPACK_IMPORTED_MODULE_14__, _code__WEBPACK_IMPORTED_MODULE_15__, _columns__WEBPACK_IMPORTED_MODULE_16__, _columns_column__WEBPACK_IMPORTED_MODULE_17__, _cover__WEBPACK_IMPORTED_MODULE_18__, _embed__WEBPACK_IMPORTED_MODULE_19__].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_19__["common"]), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_embed__WEBPACK_IMPORTED_MODULE_19__["others"]), [_file__WEBPACK_IMPORTED_MODULE_20__, window.wp && window.wp.oldEditor ? _classic__WEBPACK_IMPORTED_MODULE_45__ : null, // Only add the classic block in WP Context + _html__WEBPACK_IMPORTED_MODULE_21__, _media_text__WEBPACK_IMPORTED_MODULE_22__, _latest_comments__WEBPACK_IMPORTED_MODULE_23__, _latest_posts__WEBPACK_IMPORTED_MODULE_24__, process.env.GUTENBERG_PHASE === 2 ? _legacy_widget__WEBPACK_IMPORTED_MODULE_25__ : null, _missing__WEBPACK_IMPORTED_MODULE_27__, _more__WEBPACK_IMPORTED_MODULE_28__, _nextpage__WEBPACK_IMPORTED_MODULE_29__, _preformatted__WEBPACK_IMPORTED_MODULE_30__, _pullquote__WEBPACK_IMPORTED_MODULE_31__, _rss__WEBPACK_IMPORTED_MODULE_33__, _search__WEBPACK_IMPORTED_MODULE_34__, _separator__WEBPACK_IMPORTED_MODULE_35__, _block__WEBPACK_IMPORTED_MODULE_32__, _spacer__WEBPACK_IMPORTED_MODULE_37__, _subhead__WEBPACK_IMPORTED_MODULE_38__, _table__WEBPACK_IMPORTED_MODULE_39__, _tag_cloud__WEBPACK_IMPORTED_MODULE_44__, _template__WEBPACK_IMPORTED_MODULE_40__, _text_columns__WEBPACK_IMPORTED_MODULE_41__, _verse__WEBPACK_IMPORTED_MODULE_42__, _video__WEBPACK_IMPORTED_MODULE_43__]).forEach(function (block) { + if (!block) { + return; + } + + var name = block.name, + settings = block.settings; + Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["registerBlockType"])(name, settings); + }); + Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["setDefaultBlockName"])(_paragraph__WEBPACK_IMPORTED_MODULE_5__["name"]); + + if (window.wp && window.wp.oldEditor) { + Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["setFreeformContentHandlerName"])(_classic__WEBPACK_IMPORTED_MODULE_45__["name"]); + } + + Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__["setUnregisteredTypeHandlerName"])(_missing__WEBPACK_IMPORTED_MODULE_27__["name"]); +}; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(257))) + +/***/ }), +/* 257 */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }) +/******/ ]); \ No newline at end of file diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 38dca8c545..c143e8850c 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -1,4 +1,4 @@ -this.wp=this.wp||{},this.wp.blockLibrary=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=306)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},101:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=36,u=1,b=26,m=38,d=700,h=72,p=128,g="-",O=/^xn--/,j=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,k=Math.floor,w=String.fromCharCode;function C(e){throw new RangeError(v[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function _(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(f,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,n){var r=0;for(e=n?k(e/d):e>>1,e+=k(e/t);e>y*b>>1;r+=s)e=k(e/y);return k(r+(y+1)*e/(e+m))}function R(e){var t,n,r,o,a,c,i,m,d,O,j,f=[],v=e.length,y=0,w=p,E=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&C("not-basic"),f.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=v&&C("invalid-input"),((m=(j=e.charCodeAt(o++))-48<10?j-22:j-65<26?j-65:j-97<26?j-97:s)>=s||m>k((l-y)/c))&&C("overflow"),y+=m*c,!(m<(d=i<=E?u:i>=E+b?b:i-E));i+=s)c>k(l/(O=s-d))&&C("overflow"),c*=O;E=N(y-a,t=f.length+1,0==a),k(y/t)>l-w&&C("overflow"),w+=k(y/t),y%=t,f.splice(y++,0,w)}return S(f)}function B(e){var t,n,r,o,a,c,i,m,d,O,j,f,v,y,E,_=[];for(f=(e=x(e)).length,t=p,n=0,a=h,c=0;c=t&&jk((l-n)/(v=r+1))&&C("overflow"),n+=(i-t)*v,t=i,c=0;cl&&C("overflow"),j==t){for(m=n,d=s;!(m<(O=d<=a?u:d>=a+b?b:d-a));d+=s)E=m-O,y=s-O,_.push(w(T(O+E%y,0))),m=k(E/y);_.push(w(T(m,0))),a=N(n,v,r==o),n=0,++r}++n,++t}return _.join("")}i={version:"1.4.1",ucs2:{decode:x,encode:S},decode:R,encode:B,toASCII:function(e){return _(e,function(e){return j.test(e)?"xn--"+B(e):e})},toUnicode:function(e){return _(e,function(e){return O.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(102)(e),n(51))},102:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},103:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},104:function(e,t,n){"use strict";t.decode=t.parse=n(105),t.encode=t.stringify=n(106)},105:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=p.substr(0,g),m=p.substr(g+1)):(b=p,m=""),d=decodeURIComponent(b),h=decodeURIComponent(m),r(c,d)?o(c[d])?c[d].push(h):c[d]=[c[d],h]:c[d]=h}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},106:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[c]))}).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},22:function(e,t){!function(){e.exports=this.wp.url}()},25:function(e,t,n){"use strict";var r=n(34);var o=n(35);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",function(){return a})},27:function(e,t){!function(){e.exports=this.moment}()},29:function(e,t,n){"use strict";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 o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},3:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},306:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"name",function(){return pe}),n.d(r,"settings",function(){return ge});var o={};n.r(o),n.d(o,"name",function(){return et}),n.d(o,"settings",function(){return at});var a={};n.r(a),n.d(a,"getLevelFromHeadingNodeName",function(){return lt}),n.d(a,"name",function(){return mt}),n.d(a,"settings",function(){return dt});var c={};n.r(c),n.d(c,"name",function(){return gt}),n.d(c,"settings",function(){return Ot});var i={};n.r(i),n.d(i,"name",function(){return Tt}),n.d(i,"settings",function(){return Rt});var l={};n.r(l),n.d(l,"name",function(){return Bt}),n.d(l,"settings",function(){return At});var s={};n.r(s),n.d(s,"name",function(){return zt}),n.d(s,"settings",function(){return Ht});var u={};n.r(u),n.d(u,"name",function(){return Gt}),n.d(u,"settings",function(){return Kt});var b={};n.r(b),n.d(b,"name",function(){return en}),n.d(b,"settings",function(){return tn});var m={};n.r(m),n.d(m,"name",function(){return on}),n.d(m,"settings",function(){return an});var d={};n.r(d),n.d(d,"name",function(){return cn}),n.d(d,"settings",function(){return ln});var h={};n.r(h),n.d(h,"name",function(){return mn}),n.d(h,"settings",function(){return dn});var p={};n.r(p),n.d(p,"name",function(){return hn}),n.d(p,"settings",function(){return pn});var g={};n.r(g),n.d(g,"name",function(){return jn}),n.d(g,"settings",function(){return vn});var O={};n.r(O),n.d(O,"name",function(){return Pn}),n.d(O,"settings",function(){return In}),n.d(O,"common",function(){return Ln}),n.d(O,"others",function(){return Mn});var j={};n.r(j),n.d(j,"name",function(){return Vn}),n.d(j,"settings",function(){return Un});var f={};n.r(f),n.d(f,"name",function(){return qn}),n.d(f,"settings",function(){return Kn});var v={};n.r(v),n.d(v,"name",function(){return nr}),n.d(v,"settings",function(){return or});var y={};n.r(y),n.d(y,"name",function(){return cr}),n.d(y,"settings",function(){return ir});var k={};n.r(k),n.d(k,"name",function(){return hr}),n.d(k,"settings",function(){return pr});var w={};n.r(w),n.d(w,"name",function(){return fr}),n.d(w,"settings",function(){return vr});var C={};n.r(C),n.d(C,"name",function(){return kr}),n.d(C,"settings",function(){return wr});var E={};n.r(E),n.d(E,"name",function(){return Er}),n.d(E,"settings",function(){return _r});var _={};n.r(_),n.d(_,"name",function(){return xr}),n.d(_,"settings",function(){return Sr});var x={};n.r(x),n.d(x,"name",function(){return Tr}),n.d(x,"settings",function(){return Nr});var S={};n.r(S),n.d(S,"name",function(){return Ir}),n.d(S,"settings",function(){return Lr});var T={};n.r(T),n.d(T,"name",function(){return Vr}),n.d(T,"settings",function(){return Ur});var N={};n.r(N),n.d(N,"name",function(){return Gr}),n.d(N,"settings",function(){return qr});var R={};n.r(R),n.d(R,"name",function(){return Kr}),n.d(R,"settings",function(){return $r});var B={};n.r(B),n.d(B,"name",function(){return Qr}),n.d(B,"settings",function(){return Yr});var A={};n.r(A),n.d(A,"name",function(){return Jr}),n.d(A,"settings",function(){return Xr});var P={};n.r(P),n.d(P,"name",function(){return eo}),n.d(P,"settings",function(){return to});var I={};n.r(I),n.d(I,"name",function(){return oo}),n.d(I,"settings",function(){return ao});var L={};n.r(L),n.d(L,"name",function(){return ho}),n.d(L,"settings",function(){return po});var M={};n.r(M),n.d(M,"name",function(){return go}),n.d(M,"settings",function(){return Oo});var z={};n.r(z),n.d(z,"name",function(){return jo}),n.d(z,"settings",function(){return fo});var H={};n.r(H),n.d(H,"name",function(){return vo}),n.d(H,"settings",function(){return yo});var D={};n.r(D),n.d(D,"name",function(){return xo}),n.d(D,"settings",function(){return So});var F={};n.r(F),n.d(F,"name",function(){return Ro}),n.d(F,"settings",function(){return Bo});var V={};n.r(V),n.d(V,"name",function(){return Io}),n.d(V,"settings",function(){return Lo});var U=n(18),W=(n(81),n(58),n(6)),G=n(14),q=n(15),K=n(8),$=n(0),Q=n(16),Y=n.n(Q),Z=n(2),J=n(1),X=n(4),ee=n(19),te=n(10),ne=n(9),re=n(11),oe=n(12),ae=n(13),ce=n(3),ie=n(7),le=n(5),se=window.getComputedStyle,ue=Object(X.withFallbackStyles)(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,a=n.fontSize,c=n.customFontSize,i=e.querySelector('[contenteditable="true"]'),l=i?se(i):null;return{fallbackBackgroundColor:o||!l?void 0:l.backgroundColor,fallbackTextColor:r||!l?void 0:l.color,fallbackFontSize:a||c||!l?void 0:parseInt(l.fontSize)||void 0}}),be=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).onReplace=e.onReplace.bind(Object(ce.a)(Object(ce.a)(e))),e.toggleDropCap=e.toggleDropCap.bind(Object(ce.a)(Object(ce.a)(e))),e.splitBlock=e.splitBlock.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"onReplace",value:function(e){var t=this.props,n=t.attributes,r=t.onReplace;r(e.map(function(e,t){return 0===t&&"core/paragraph"===e.name?Object(K.a)({},e,{attributes:Object(K.a)({},n,e.attributes)}):e}))}},{key:"toggleDropCap",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({dropCap:!t.dropCap})}},{key:"getDropCapHelp",value:function(e){return e?Object(J.__)("Showing large initial letter."):Object(J.__)("Toggle to show a large initial letter.")}},{key:"splitBlock",value:function(e,t){for(var n=this.props,r=n.attributes,o=n.insertBlocksAfter,a=n.setAttributes,c=n.onReplace,i=arguments.length,l=new Array(i>2?i-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:[]).some(function(t){return e.match(t)})},Ue=function(e){return Object(Z.includes)(e,'class="wp-embedded-content" data-secret')},We=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var a=function(e){for(var t=[].concat(Object(U.a)(Le),Object(U.a)(Me)),n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var r={"wp-has-aspect-ratio":!1},o=0;o=u.ratio)return Fe()(t,(s={},Object(q.a)(s,u.className,n),Object(q.a)(s,"wp-has-aspect-ratio",n),s))}return t}var qe=Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object($.createElement)(X.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var Ke=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(ce.a)(Object(ce.a)(e))),e.calculateSize=e.calculateSize.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=Z.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,a=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),c=a.width,i=a.height;this.setState({width:c,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object($.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}($.Component),$e=Object(ie.withGlobalEvents)({resize:"calculateSize"})(Ke),Qe=["image"],Ye=function(e){var t=Object(Z.pick)(e,["alt","id","link","caption"]);return t.url=Object(Z.get)(e,["sizes","large","url"])||Object(Z.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Ze=function(e,t){return!e&&Object(Oe.isBlobURL)(t)},Je=function(e){function t(e){var n,r=e.attributes;return Object(te.a)(this,t),(n=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(ce.a)(Object(ce.a)(n))),n.updateAlignment=n.updateAlignment.bind(Object(ce.a)(Object(ce.a)(n))),n.onFocusCaption=n.onFocusCaption.bind(Object(ce.a)(Object(ce.a)(n))),n.onImageClick=n.onImageClick.bind(Object(ce.a)(Object(ce.a)(n))),n.onSelectImage=n.onSelectImage.bind(Object(ce.a)(Object(ce.a)(n))),n.onSelectURL=n.onSelectURL.bind(Object(ce.a)(Object(ce.a)(n))),n.updateImageURL=n.updateImageURL.bind(Object(ce.a)(Object(ce.a)(n))),n.updateWidth=n.updateWidth.bind(Object(ce.a)(Object(ce.a)(n))),n.updateHeight=n.updateHeight.bind(Object(ce.a)(Object(ce.a)(n))),n.updateDimensions=n.updateDimensions.bind(Object(ce.a)(Object(ce.a)(n))),n.onSetCustomHref=n.onSetCustomHref.bind(Object(ce.a)(Object(ce.a)(n))),n.onSetLinkClass=n.onSetLinkClass.bind(Object(ce.a)(Object(ce.a)(n))),n.onSetLinkRel=n.onSetLinkRel.bind(Object(ce.a)(Object(ce.a)(n))),n.onSetLinkDestination=n.onSetLinkDestination.bind(Object(ce.a)(Object(ce.a)(n))),n.onSetNewTab=n.onSetNewTab.bind(Object(ce.a)(Object(ce.a)(n))),n.getFilename=n.getFilename.bind(Object(ce.a)(Object(ce.a)(n))),n.toggleIsEditing=n.toggleIsEditing.bind(Object(ce.a)(Object(ce.a)(n))),n.onUploadError=n.onUploadError.bind(Object(ce.a)(Object(ce.a)(n))),n.onImageError=n.onImageError.bind(Object(ce.a)(Object(ce.a)(n))),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(Ze(a,i)){var l=Object(Oe.getBlobByURL)(i);l&&Object(W.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(je.a)(e,1)[0];r(Ye(t))},allowedTypes:Qe,onError:function(t){o.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;Ze(n,o)&&!Ze(c,l)&&Object(Oe.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){this.props.noticeOperations.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){e&&e.url?(this.setState({isEditing:!1}),this.props.setAttributes(Object(K.a)({},Ye(e),{width:void 0,height:void 0}))):this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSetLinkDestination",value:function(e){var t;t="none"===e?void 0:"media"===e?this.props.image&&this.props.image.source_url||this.props.attributes.url:"attachment"===e?this.props.image&&this.props.image.link:this.props.attributes.href,this.props.setAttributes({linkDestination:e,href:t})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=We({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetCustomHref",value:function(e){this.props.setAttributes({href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(K.a)({},t,{align:e}))}},{key:"updateImageURL",value:function(e){this.props.setAttributes({url:e,width:void 0,height:void 0})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(fe.getPath)(e);if(t)return Object(Z.last)(t.split("/"))}},{key:"getLinkDestinationOptions",value:function(){return[{value:"none",label:Object(J.__)("None")},{value:"media",label:Object(J.__)("Media File")},{value:"attachment",label:Object(J.__)("Attachment Page")},{value:"custom",label:Object(J.__)("Custom URL")}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing})}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(Z.compact)(Object(Z.map)(t,function(e){var t=e.name,r=e.slug,o=Object(Z.get)(n,["media_details","sizes",r,"source_url"]);return o?{value:o,label:t}:null}))}},{key:"render",value:function(){var e,t=this,n=this.state.isEditing,r=this.props,o=r.attributes,a=r.setAttributes,c=r.isLargeViewport,i=r.isSelected,l=r.className,s=r.maxWidth,u=r.noticeUI,b=r.toggleSelection,m=r.isRTL,d=o.url,h=o.alt,p=o.caption,g=o.align,O=o.id,j=o.href,f=o.rel,v=o.linkClass,y=o.linkDestination,k=o.width,w=o.height,C=o.linkTarget,E=function(e,t){return t&&!e&&!Object(Oe.isBlobURL)(t)}(O,d);d&&(e=E?Object($.createElement)(X.Toolbar,null,Object($.createElement)(X.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(J.__)("Edit image"),onClick:this.toggleIsEditing,icon:"edit"})):Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(X.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:this.onSelectImage,allowedTypes:Qe,value:O,render:function(e){var t=e.open;return Object($.createElement)(X.IconButton,{className:"components-toolbar__control",label:Object(J.__)("Edit image"),icon:"edit",onClick:t})}}))));var _=Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),e);if(n||!d){var x=E?d:void 0;return Object($.createElement)($.Fragment,null,_,Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:qe}),className:l,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:u,onError:this.onUploadError,accept:"image/*",allowedTypes:Qe,value:{id:O,src:x}}))}var S=Y()(l,{"is-transient":Object(Oe.isBlobURL)(d),"is-resized":!!k||!!w,"is-focused":i}),T=-1===["wide","full"].indexOf(g)&&c,N="custom"!==y,R=this.getImageSizeOptions(),B=function(e,n){return Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Image Settings")},Object($.createElement)(X.TextareaControl,{label:Object(J.__)("Alt Text (Alternative Text)"),value:h,onChange:t.updateAlt,help:Object(J.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}),!Object(Z.isEmpty)(R)&&Object($.createElement)(X.SelectControl,{label:Object(J.__)("Image Size"),value:d,options:R,onChange:t.updateImageURL}),T&&Object($.createElement)("div",{className:"block-library-image__dimensions"},Object($.createElement)("p",{className:"block-library-image__dimensions__row"},Object(J.__)("Image Dimensions")),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(X.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(J.__)("Width"),value:void 0!==k?k:e,min:1,onChange:t.updateWidth}),Object($.createElement)(X.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(J.__)("Height"),value:void 0!==w?w:n,min:1,onChange:t.updateHeight})),Object($.createElement)("div",{className:"block-library-image__dimensions__row"},Object($.createElement)(X.ButtonGroup,{"aria-label":Object(J.__)("Image Size")},[25,50,75,100].map(function(r){var o=Math.round(e*(r/100)),a=Math.round(n*(r/100)),c=k===o&&w===a;return Object($.createElement)(X.Button,{key:r,isSmall:!0,isPrimary:c,"aria-pressed":c,onClick:t.updateDimensions(o,a)},r,"%")})),Object($.createElement)(X.Button,{isSmall:!0,onClick:t.updateDimensions()},Object(J.__)("Reset"))))),Object($.createElement)(X.PanelBody,{title:Object(J.__)("Link Settings")},Object($.createElement)(X.SelectControl,{label:Object(J.__)("Link To"),value:y,options:t.getLinkDestinationOptions(),onChange:t.onSetLinkDestination}),"none"!==y&&Object($.createElement)($.Fragment,null,Object($.createElement)(X.TextControl,{label:Object(J.__)("Link URL"),value:j||"",onChange:t.onSetCustomHref,placeholder:N?void 0:"https://",readOnly:N}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Open in New Tab"),onChange:t.onSetNewTab,checked:"_blank"===C}),Object($.createElement)(X.TextControl,{label:Object(J.__)("Link CSS Class"),value:v||"",onChange:t.onSetLinkClass}),Object($.createElement)(X.TextControl,{label:Object(J.__)("Link Rel"),value:f||"",onChange:t.onSetLinkRel}))))};return Object($.createElement)($.Fragment,null,_,Object($.createElement)("figure",{className:S},Object($.createElement)($e,{src:d,dirtynessTrigger:g},function(e){var n,r=e.imageWidthWithinContainer,o=e.imageHeightWithinContainer,c=e.imageWidth,i=e.imageHeight,l=t.getFilename(d);n=h||(l?Object(J.sprintf)(Object(J.__)("This image has an empty alt attribute; its file name is %s"),l):Object(J.__)("This image has an empty alt attribute"));var u=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:d,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(d)}}),Object(Oe.isBlobURL)(d)&&Object($.createElement)(X.Spinner,null));if(!T||!r)return Object($.createElement)($.Fragment,null,B(c,i),Object($.createElement)("div",{style:{width:k,height:w}},u));var p=k||r,O=w||o,j=c/i,f=c 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"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},nt={img:{attributes:["src","alt"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},rt={figure:{require:["img"],children:Object(K.a)({},nt,{a:{attributes:["href","rel","target"],children:nt},figcaption:{children:Object(G.getPhrasingContentSchema)()}})}};function ot(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}var at={title:Object(J.__)("Image"),description:Object(J.__)("Insert an image to make a visual statement."),icon:qe,category:"common",keywords:["img",Object(J.__)("photo")],attributes:tt,transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:rt,transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,l=c&&c.href?c.href:void 0,s=c&&c.rel?c.rel:void 0,u=c&&c.className?c.className:void 0,b=Object(G.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:a,linkDestination:i,href:l,rel:s,linkClass:u});return Object(G.createBlock)("core/image",b)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(G.createBlock)("core/image",{url:Object(Oe.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;return r.innerHTML=n.content,r.removeChild(r.firstElementChild),r.innerHTML.trim()}},href:{shortcode:function(e,t){return ot(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return ot(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return ot(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:Xe,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,h=Y()((t={},Object(q.a)(t,"align".concat(c),c),Object(q.a)(t,"is-resized",u||b),t)),p=Object($.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b}),g=Object($.createElement)($.Fragment,null,i?Object($.createElement)("a",{className:s,href:i,target:d,rel:l},p):p,!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:a}));return"left"===c||"right"===c||"center"===c?Object($.createElement)("div",null,Object($.createElement)("figure",{className:h},g)):Object($.createElement)("figure",{className:h},g)},deprecated:[{attributes:tt,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=Y()((t={},Object(q.a)(t,"align".concat(c),c),Object(q.a)(t,"is-resized",l||s),t)),m=Object($.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object($.createElement)("figure",{className:b},i?Object($.createElement)("a",{href:i},m):m,!W.RichText.isEmpty(a)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:a}))}},{attributes:tt,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=t.id,u=Object($.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object($.createElement)("figure",{className:a?"align".concat(a):null},c?Object($.createElement)("a",{href:c},u):u,!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:tt,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object($.createElement)("img",Object(ee.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==a&&"right"!==a||(b={maxWidth:"50%"}),Object($.createElement)("figure",{className:a?"align".concat(a):null,style:b},c?Object($.createElement)("a",{href:c},u):u,!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:o}))}}]},ct=n(21),it=function(e){function t(){return Object(te.a)(this,t),Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:Object(J.sprintf)(Object(J.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,r=t.maxLevel,o=t.selectedLevel,a=t.onChange;return Object($.createElement)(X.Toolbar,{controls:Object(Z.range)(n,r).map(function(t){return e.createLevelControl(t,o,a)})})}}]),t}($.Component);function lt(e){return Number(e.substr(1))}var st,ut={className:!1,anchor:!0},bt={content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},align:{type:"string"},placeholder:{type:"string"}},mt="core/heading",dt={title:Object(J.__)("Heading"),description:Object(J.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:"common",keywords:[Object(J.__)("title"),Object(J.__)("subtitle")],supports:ut,attributes:bt,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(G.getPhrasingContentSchema)()},h2:{children:Object(G.getPhrasingContentSchema)()},h3:{children:Object(G.getPhrasingContentSchema)()},h4:{children:Object(G.getPhrasingContentSchema)()},h5:{children:Object(G.getPhrasingContentSchema)()},h6:{children:Object(G.getPhrasingContentSchema)()}},transform:function(e){return Object(G.createBlock)("core/heading",Object(K.a)({},Object(G.getBlockAttributes)("core/heading",e.outerHTML),{level:lt(e.nodeName)}))}}].concat(Object(U.a)([2,3,4,5,6].map(function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(G.createBlock)("core/heading",{level:e,content:t})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/paragraph",{content:t})}}]},deprecated:[{supports:ut,attributes:Object(K.a)({},Object(Z.omit)(bt,["level"]),{nodeName:{type:"string",source:"property",selector:"h1,h2,h3,h4,h5,h6",property:"nodeName",default:"H2"}}),migrate:function(e){var t=e.nodeName,n=Object(ct.a)(e,["nodeName"]);return Object(K.a)({},n,{level:lt(t)})},save:function(e){var t=e.attributes,n=t.align,r=t.nodeName,o=t.content;return Object($.createElement)(W.RichText.Content,{tagName:r.toLowerCase(),style:{textAlign:n},value:o})}}],merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.insertBlocksAfter,a=e.onReplace,c=e.className,i=t.align,l=t.content,s=t.level,u=t.placeholder,b="h"+s;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(it,{minLevel:2,maxLevel:5,selectedLevel:s,onChange:function(e){return n({level:e})}})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Heading Settings")},Object($.createElement)("p",null,Object(J.__)("Level")),Object($.createElement)(it,{minLevel:1,maxLevel:7,selectedLevel:s,onChange:function(e){return n({level:e})}}),Object($.createElement)("p",null,Object(J.__)("Text Alignment")),Object($.createElement)(W.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}}))),Object($.createElement)(W.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:b,value:l,onChange:function(e){return n({content:e})},onMerge:r,unstableOnSplit:o?function(e,t){n({content:e});for(var r=arguments.length,a=new Array(r>2?r-2:0),c=2;c".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(G.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(G.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:{blockquote:{children:{p:{children:Object(G.getPhrasingContentSchema)()},cite:{children:Object(G.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

    "!==t&&r.push.apply(r,Object(U.a)(Object(ht.split)(Object(ht.create)({html:t,multilineTag:"p"}),"\u2028").map(function(e){return Object(G.createBlock)("core/paragraph",{content:Object(ht.toHTMLString)({value:e})})}))),n&&"

    "!==n&&r.push(Object(G.createBlock)("core/paragraph",{content:n})),0===r.length?Object(G.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(ct.a)(e,["value","citation"]);if("

    "===t)return Object(G.createBlock)("core/heading",{content:n});var o=Object(ht.split)(Object(ht.create)({html:t,multilineTag:"p"}),"\u2028"),a=o.slice(1);return[Object(G.createBlock)("core/heading",{content:Object(ht.toHTMLString)({value:o[0]})}),Object(G.createBlock)("core/quote",Object(K.a)({},r,{citation:n,value:Object(ht.toHTMLString)({value:a.length?Object(ht.join)(o.slice(1),"\u2028"):Object(ht.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(G.createBlock)("core/pullquote",{value:t,citation:n})}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.align,l=t.value,s=t.citation;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object($.createElement)("blockquote",{className:c,style:{textAlign:i}},Object($.createElement)(W.RichText,{identifier:"value",multiline:!0,value:l,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!s||0===s.length;!e&&t&&a([])},placeholder:Object(J.__)("Write quote…")}),(!W.RichText.isEmpty(s)||r)&&Object($.createElement)(W.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},placeholder:Object(J.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object($.createElement)("blockquote",{style:{textAlign:n||null}},Object($.createElement)(W.RichText.Content,{multiline:!0,value:r}),!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return n&&"

    "!==n?Object(K.a)({},e,{value:e.value+n,citation:e.citation+r}):Object(K.a)({},e,{citation:e.citation+r})},deprecated:[{attributes:Object(K.a)({},pt,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(K.a)({},Object(Z.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object($.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object($.createElement)(W.RichText.Content,{multiline:!0,value:r}),!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(K.a)({},pt,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object($.createElement)("blockquote",{className:"blocks-quote-style-".concat(a),style:{textAlign:n||null}},Object($.createElement)(W.RichText.Content,{multiline:!0,value:r}),!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"footer",value:o}))}}]},jt=n(17),ft=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).onImageClick=e.onImageClick.bind(Object(ce.a)(Object(ce.a)(e))),e.onSelectCaption=e.onSelectCaption.bind(Object(ce.a)(Object(ce.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(ce.a)(Object(ce.a)(e))),e.bindContainer=e.bindContainer.bind(Object(ce.a)(Object(ce.a)(e))),e.state={captionSelected:!1},e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onImageClick",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onKeyDown",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[jt.BACKSPACE,jt.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,a=t.linkTo,c=t.link,i=t.isSelected,l=t.caption,s=t.onRemove,u=t.setAttributes,b=t["aria-label"];switch(a){case"media":e=n;break;case"attachment":e=c}var m=Object($.createElement)($.Fragment,null,Object($.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onImageClick,tabIndex:"0",onKeyDown:this.onImageClick,"aria-label":b}),Object(Oe.isBlobURL)(n)&&Object($.createElement)(X.Spinner,null)),d=Y()({"is-selected":i,"is-transient":Object(Oe.isBlobURL)(n)});return Object($.createElement)("figure",{className:d,tabIndex:"-1",onKeyDown:this.onKeyDown,ref:this.bindContainer},i&&Object($.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object($.createElement)(X.IconButton,{icon:"no-alt",onClick:s,className:"blocks-gallery-item__remove",label:Object(J.__)("Remove Image")})),e?Object($.createElement)("a",{href:e},m):m,!W.RichText.isEmpty(l)||i?Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(J.__)("Write caption…"),value:l,isSelected:this.state.captionSelected,onChange:function(e){return u({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}):null)}}]),t}($.Component),vt=Object(le.withSelect)(function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})(ft),yt=Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),kt=[{value:"attachment",label:Object(J.__)("Attachment Page")},{value:"media",label:Object(J.__)("Media File")},{value:"none",label:Object(J.__)("None")}],wt=["image"];function Ct(e){return Math.min(3,e.images.length)}var Et=function(e){var t=Object(Z.pick)(e,["alt","id","link","caption"]);return t.url=Object(Z.get)(e,["sizes","large","url"])||Object(Z.get)(e,["media_details","sizes","large","source_url"])||e.url,t},_t=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(ce.a)(Object(ce.a)(e))),e.onSelectImages=e.onSelectImages.bind(Object(ce.a)(Object(ce.a)(e))),e.setLinkTo=e.setLinkTo.bind(Object(ce.a)(Object(ce.a)(e))),e.setColumnsNumber=e.setColumnsNumber.bind(Object(ce.a)(Object(ce.a)(e))),e.toggleImageCrop=e.toggleImageCrop.bind(Object(ce.a)(Object(ce.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(ce.a)(Object(ce.a)(e))),e.setImageAttributes=e.setImageAttributes.bind(Object(ce.a)(Object(ce.a)(e))),e.addFiles=e.addFiles.bind(Object(ce.a)(Object(ce.a)(e))),e.uploadFromFiles=e.uploadFromFiles.bind(Object(ce.a)(Object(ce.a)(e))),e.setAttributes=e.setAttributes.bind(Object(ce.a)(Object(ce.a)(e))),e.state={selectedImage:null},e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(K.a)({},e,{ids:Object(Z.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(Z.filter)(t.props.attributes.images,function(t,n){return e!==n}),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"onSelectImages",value:function(e){var t=this.props.attributes.columns;this.setAttributes({images:e.map(function(e){return Et(e)}),columns:t?Math.min(e.length,t):t})}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(J.__)("Thumbnails are cropped to align."):Object(J.__)("Thumbnails are not cropped.")}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:[].concat(Object(U.a)(n.slice(0,e)),[Object(K.a)({},n[e],t)],Object(U.a)(n.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.props.noticeOperations,r=this.setAttributes;Object(W.mediaUpload)({allowedTypes:wt,filesList:e,onFileChange:function(e){var n=e.map(function(e){return Et(e)});r({images:t.concat(n)})},onError:n.createErrorNotice})}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.isSelected,a=n.className,c=n.noticeOperations,i=n.noticeUI,l=r.images,s=r.columns,u=void 0===s?Ct(r):s,b=r.align,m=r.imageCrop,d=r.linkTo,h=Object($.createElement)(X.DropZone,{onFilesDrop:this.addFiles}),p=Object($.createElement)(W.BlockControls,null,!!l.length&&Object($.createElement)(X.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:wt,multiple:!0,gallery:!0,value:l.map(function(e){return e.id}),render:function(e){var t=e.open;return Object($.createElement)(X.IconButton,{className:"components-toolbar__control",label:Object(J.__)("Edit gallery"),icon:"edit",onClick:t})}})));return 0===l.length?Object($.createElement)($.Fragment,null,p,Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:yt}),className:a,labels:{title:Object(J.__)("Gallery"),instructions:Object(J.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:wt,multiple:!0,notices:i,onError:c.createErrorNotice})):Object($.createElement)($.Fragment,null,p,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Gallery Settings")},l.length>1&&Object($.createElement)(X.RangeControl,{label:Object(J.__)("Columns"),value:u,onChange:this.setColumnsNumber,min:1,max:Math.min(8,l.length)}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Crop Images"),checked:!!m,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object($.createElement)(X.SelectControl,{label:Object(J.__)("Link To"),value:d,onChange:this.setLinkTo,options:kt}))),i,Object($.createElement)("ul",{className:Y()(a,(e={},Object(q.a)(e,"align".concat(b),b),Object(q.a)(e,"columns-".concat(u),u),Object(q.a)(e,"is-cropped",m),e))},h,l.map(function(e,n){var r=Object(J.sprintf)(Object(J.__)("image %1$d of %2$d in gallery"),n+1,l.length);return Object($.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object($.createElement)(vt,{url:e.url,alt:e.alt,id:e.id,isSelected:o&&t.state.selectedImage===n,onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":r}))}),o&&Object($.createElement)("li",{className:"blocks-gallery-item has-add-item-button"},Object($.createElement)(X.FormFileUpload,{multiple:!0,isLarge:!0,className:"block-library-gallery-add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(J.__)("Upload an image")))))}}]),t}($.Component),xt=Object(X.withNotices)(_t),St={images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},Tt="core/gallery",Nt=function(e){return e?e.split(",").map(function(e){return parseInt(e,10)}):[]},Rt={title:Object(J.__)("Gallery"),description:Object(J.__)("Display multiple images in a rich gallery."),icon:yt,category:"common",keywords:[Object(J.__)("images"),Object(J.__)("photos")],attributes:St,supports:{align:!0},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(Z.every)(e,["align",t])?t:void 0;var n=Object(Z.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return Object(G.createBlock)("core/gallery",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Nt(t).map(function(e){return{id:e}})}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Nt(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(Z.every)(e,function(e){return 0===e.type.indexOf("image/")})},transform:function(e,t){var n=Object(G.createBlock)("core/gallery",{images:e.map(function(e){return Et({url:Object(Oe.createBlobURL)(e)})})});return Object(W.mediaUpload)({filesList:e,onFileChange:function(e){var r=e.map(Et);t(n.clientId,{ids:Object(Z.map)(r,"id"),images:r})},allowedTypes:["image"]}),n}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(G.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})}):Object(G.createBlock)("core/image",{align:n})}}]},edit:xt,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Ct(t):r,a=t.imageCrop,c=t.linkTo;return Object($.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map(function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object($.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object($.createElement)("figure",null,t?Object($.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:e.caption})))}))},deprecated:[{attributes:St,isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(Z.some)(t,function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]}))},migrate:function(e){return Object(K.a)({},e,{ids:Object(Z.map)(e.images,function(e){var t=e.id;return t?parseInt(t,10):null})})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Ct(t):r,a=t.imageCrop,c=t.linkTo;return Object($.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map(function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object($.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object($.createElement)("figure",null,t?Object($.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:St,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Ct(t):r,a=t.imageCrop,c=t.linkTo;return Object($.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map(function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return Object($.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object($.createElement)("figure",null,t?Object($.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:Object(K.a)({},St,{images:Object(K.a)({},St.images,{selector:"div.wp-block-gallery figure.blocks-gallery-image img"}),align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Ct(t):r,a=t.align,c=t.imageCrop,i=t.linkTo;return Object($.createElement)("div",{className:"align".concat(a," columns-").concat(o," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object($.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object($.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object($.createElement)("a",{href:t},n):n)}))}}]};var Bt="core/archives",At={title:Object(J.__)("Archives"),description:Object(J.__)("Display a monthly archive of your posts."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.align,o=t.showPostCounts,a=t.displayAsDropdown;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Archives Settings")},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display as Dropdown"),checked:a,onChange:function(){return n({displayAsDropdown:!a})}}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Show Post Counts"),checked:o,onChange:function(){return n({showPostCounts:!o})}}))),Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:r,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object($.createElement)(X.Disabled,null,Object($.createElement)(W.ServerSideRender,{block:"core/archives",attributes:t})))},save:function(){return null}},Pt=Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),It=["audio"],Lt=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(ce.a)(Object(ce.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=t.setAttributes,a=n.id,c=n.src,i=void 0===c?"":c;if(!a&&Object(Oe.isBlobURL)(i)){var l=Object(Oe.getBlobByURL)(i);l&&Object(W.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(je.a)(e,1)[0],n=t.id,r=t.url;o({id:n,src:r})},onError:function(t){o({src:void 0,id:void 0}),e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:It})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(q.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=We({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src,i=this.props,l=i.setAttributes,s=i.isSelected,u=i.className,b=i.noticeOperations,m=i.noticeUI,d=this.state.editing,h=function(){e.setState({editing:!0})};return d?Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:Pt}),className:u,onSelect:function(t){if(!t||!t.url)return l({src:void 0,id:void 0}),void h();l({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:It,value:this.props.attributes,notices:m,onError:b.createErrorNotice}):Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(X.Toolbar,null,Object($.createElement)(X.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(J.__)("Edit audio"),onClick:h,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Audio Settings")},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object($.createElement)(X.SelectControl,{label:Object(J.__)("Preload"),value:void 0!==a?a:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(J.__)("Auto")},{value:"metadata",label:Object(J.__)("Metadata")},{value:"none",label:Object(J.__)("None")}]}))),Object($.createElement)("figure",{className:u},Object($.createElement)(X.Disabled,null,Object($.createElement)("audio",{controls:"controls",src:c})),(!W.RichText.isEmpty(r)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(J.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),Mt=Object(X.withNotices)(Lt),zt="core/audio",Ht={title:Object(J.__)("Audio"),description:Object(J.__)("Embed a simple audio player."),icon:Pt,category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(G.createBlock)("core/audio",{src:Object(Oe.createBlobURL)(t)})}}]},supports:{align:!0},edit:Mt,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return Object($.createElement)("figure",null,Object($.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:r}))}},Dt=window.getComputedStyle,Ft=Object(X.withFallbackStyles)(function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:Dt(e).backgroundColor,fallbackTextColor:a||!c?void 0:Dt(c).color}}),Vt=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.backgroundColor,o=t.textColor,a=t.setBackgroundColor,c=t.setTextColor,i=t.fallbackBackgroundColor,l=t.fallbackTextColor,s=t.setAttributes,u=t.isSelected,b=t.className,m=n.text,d=n.url,h=n.title;return Object($.createElement)($.Fragment,null,Object($.createElement)("div",{className:b,title:h,ref:this.bindRef},Object($.createElement)(W.RichText,{placeholder:Object(J.__)("Add text…"),value:m,onChange:function(e){return s({text:e})},formattingControls:["bold","italic","strikethrough"],className:Y()("wp-block-button__link",(e={"has-background":r.color},Object(q.a)(e,r.class,r.class),Object(q.a)(e,"has-text-color",o.color),Object(q.a)(e,o.class,o.class),e)),style:{backgroundColor:r.color,color:o.color},keepPlaceholderOnFocus:!0}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(J.__)("Color Settings"),colorSettings:[{value:r.color,onChange:a,label:Object(J.__)("Background Color")},{value:o.color,onChange:c,label:Object(J.__)("Text Color")}]},Object($.createElement)(W.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})))),u&&Object($.createElement)("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},Object($.createElement)(X.Dashicon,{icon:"admin-links"}),Object($.createElement)(W.URLInput,{value:d,onChange:function(e){return s({url:e})}}),Object($.createElement)(X.IconButton,{icon:"editor-break",label:Object(J.__)("Apply"),type:"submit"})))}}]),t}($.Component),Ut=Object(ie.compose)([Object(W.withColors)("backgroundColor",{textColor:"color"}),Ft])(Vt),Wt={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},Gt="core/button",qt=function(e){return Object(Z.omit)(Object(K.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},Kt={title:Object(J.__)("Button"),description:Object(J.__)("Prompt visitors to take action with a button-style link."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"}))),category:"layout",keywords:[Object(J.__)("link")],attributes:Wt,supports:{align:!0,alignWide:!1},styles:[{name:"default",label:Object(J._x)("Default","block style"),isDefault:!0},{name:"outline",label:Object(J.__)("Outline")},{name:"squared",label:Object(J._x)("Squared","block style")}],edit:Ut,save:function(e){var t,n=e.attributes,r=n.url,o=n.text,a=n.title,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(W.getColorClassName)("color",i),b=Object(W.getColorClassName)("background-color",c),m=Y()("wp-block-button__link",(t={"has-text-color":i||s},Object(q.a)(t,u,u),Object(q.a)(t,"has-background",c||l),Object(q.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object($.createElement)("div",null,Object($.createElement)(W.RichText.Content,{tagName:"a",className:m,href:r,title:a,style:d,value:o}))},deprecated:[{attributes:Object(K.a)({},Object(Z.pick)(Wt,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,c={backgroundColor:t.color,color:t.textColor};return Object($.createElement)("div",{className:"align".concat(a)},Object($.createElement)(W.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:c,value:r}))},migrate:qt},{attributes:Object(K.a)({},Object(Z.pick)(Wt,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,a=t.align,c=t.color,i=t.textColor;return Object($.createElement)("div",{className:"align".concat(a),style:{backgroundColor:c}},Object($.createElement)(W.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:qt}]},$t=n(27),Qt=n.n($t),Yt=n(38),Zt=n.n(Yt),Jt=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).getYearMonth=Zt()(e.getYearMonth.bind(Object(ce.a)(Object(ce.a)(e))),{maxSize:1}),e.getServerSideAttributes=Zt()(e.getServerSideAttributes.bind(Object(ce.a)(Object(ce.a)(e))),{maxSize:1}),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=Qt()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(K.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object($.createElement)(X.Disabled,null,Object($.createElement)(X.ServerSideRender,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}($.Component),Xt=Object(le.withSelect)(function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})(Jt),en="core/calendar",tn={title:Object(J.__)("Calendar"),description:Object(J.__)("A calendar of your site’s posts."),icon:"calendar",category:"widgets",keywords:[Object(J.__)("posts"),Object(J.__)("archive")],supports:{align:!0},edit:Xt,save:function(){return null}},nn=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(ce.a)(Object(ce.a)(e))),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(ce.a)(Object(ce.a)(e))),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter(function(t){return t.parent===e}):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(Z.unescape)(e.name).trim():Object(J.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object($.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map(function(t){return e.renderCategoryListItem(t,0)}))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return Object($.createElement)("li",{key:e.id},Object($.createElement)("a",{href:e.link,target:"_blank"},this.renderCategoryName(e)),a&&Object($.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!c.length&&Object($.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.map(function(e){return n.renderCategoryListItem(e,t+1)})))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,r=this.getCategories(n),o="blocks-category-select-".concat(t);return Object($.createElement)($.Fragment,null,Object($.createElement)("label",{htmlFor:o,className:"screen-reader-text"},Object(J.__)("Categories")),Object($.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},r.map(function(t){return e.renderCategoryDropdownItem(t,0)})))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,a=r.showPostCounts,c=this.getCategories(e.id);return[Object($.createElement)("option",{key:e.id},Object(Z.times)(3*t,function(){return" "}),this.renderCategoryName(e),a?" (".concat(e.count,")"):""),o&&!!c.length&&c.map(function(e){return n.renderCategoryDropdownItem(e,t+1)})]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,r=t.displayAsDropdown,o=t.showHierarchy,a=t.showPostCounts,c=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Categories Settings")},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display as Dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Show Hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Show Post Counts"),checked:a,onChange:this.toggleShowPostCounts})));return n?Object($.createElement)($.Fragment,null,c,Object($.createElement)(X.Placeholder,{icon:"admin-post",label:Object(J.__)("Categories")},Object($.createElement)(X.Spinner,null))):Object($.createElement)($.Fragment,null,c,Object($.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}($.Component),rn=Object(ie.compose)(Object(le.withSelect)(function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}}),ie.withInstanceId)(nn),on="core/categories",an={title:Object(J.__)("Categories"),description:Object(J.__)("Display a list of all categories."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object($.createElement)(X.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object($.createElement)(X.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,alignWide:!1,html:!1},edit:rn,save:function(){return null}};var cn="core/code",ln={title:Object(J.__)("Code"),description:Object(J.__)("Display code snippets that respect your spacing and tabs."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"})),category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{html:!1},transforms:{from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(G.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className;return Object($.createElement)("div",{className:r},Object($.createElement)(W.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(J.__)("Write code…"),"aria-label":Object(J.__)("Code")}))},save:function(e){var t=e.attributes;return Object($.createElement)("pre",null,Object($.createElement)("code",null,t.content))}},sn=["core/column"],un=Zt()(function(e){return Object(Z.times)(e,function(){return["core/column"]})});function bn(e){var t,n=bn.doc;n||(n=document.implementation.createHTMLDocument(""),bn.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var mn="core/columns",dn={title:Object(J.__)("Columns"),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"}))),category:"layout",attributes:{columns:{type:"number",default:2}},description:Object(J.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},deprecated:[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some(function(e){return/layout-column-\d+/.test(e.originalContent)})&&t.some(function(e){return void 0!==bn(e.originalContent)})},migrate:function(e,t){return[e,t.reduce(function(e,t){var n=bn(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e},[]).map(function(e){return Object(G.createBlock)("core/column",{},e)})]},save:function(e){var t=e.attributes.columns;return Object($.createElement)("div",{className:"has-".concat(t,"-columns")},Object($.createElement)(W.InnerBlocks.Content,null))}}],edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.columns,a=Y()(r,"has-".concat(o,"-columns"));return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,null,Object($.createElement)(X.RangeControl,{label:Object(J.__)("Columns"),value:o,onChange:function(e){n({columns:e})},min:2,max:6}))),Object($.createElement)("div",{className:a},Object($.createElement)(W.InnerBlocks,{template:un(o),templateLock:"all",allowedBlocks:sn})))},save:function(e){var t=e.attributes.columns;return Object($.createElement)("div",{className:"has-".concat(t,"-columns")},Object($.createElement)(W.InnerBlocks.Content,null))}},hn="core/column",pn={title:Object(J.__)("Column"),parent:["core/columns"],icon:Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"})),description:Object(J.__)("A single column within a columns block."),category:"common",supports:{inserter:!1,reusable:!1,html:!1},edit:function(){return Object($.createElement)(W.InnerBlocks,{templateLock:!1})},save:function(){return Object($.createElement)("div",null,Object($.createElement)(W.InnerBlocks.Content,null))}},gn=Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}),Object($.createElement)(X.Path,{d:"M0 0h24v24H0z",fill:"none"})),On={title:{type:"string",source:"html",selector:"p"},url:{type:"string"},contentAlign:{type:"string",default:"center"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},jn="core/cover",fn=["image","video"],vn={title:Object(J.__)("Cover"),description:Object(J.__)("Add an image or video with a text overlay — great for headers."),icon:gn,category:"common",attributes:On,supports:{align:!0},transforms:{from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/cover",{title:t})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(G.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(G.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.title;return Object(G.createBlock)("core/heading",{content:t})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||"image"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(G.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||"video"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(G.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},edit:Object(ie.compose)([Object(W.withColors)({overlayColor:"background-color"}),X.withNotices])(function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.className,a=e.noticeOperations,c=e.noticeUI,i=e.overlayColor,l=e.setOverlayColor,s=t.backgroundType,u=t.contentAlign,b=t.dimRatio,m=t.focalPoint,d=t.hasParallax,h=t.id,p=t.title,g=t.url,O=function(e){if(e&&e.url){var t;if(e.media_type)t="image"===e.media_type?"image":"video";else{if("image"!==e.type&&"video"!==e.type)return;t=e.type}n({url:e.url,id:e.id,backgroundType:t})}else n({url:void 0,id:void 0})},j=function(e){return n({title:e})},f=Object(K.a)({},"image"===s?kn(g):{},{backgroundColor:i.color});m&&(f.backgroundPosition="".concat(100*m.x,"% ").concat(100*m.y,"%"));var v=Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,!!g&&Object($.createElement)($.Fragment,null,Object($.createElement)(W.AlignmentToolbar,{value:u,onChange:function(e){n({contentAlign:e})}}),Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(X.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:O,allowedTypes:fn,value:h,render:function(e){var t=e.open;return Object($.createElement)(X.IconButton,{className:"components-toolbar__control",label:Object(J.__)("Edit media"),icon:"edit",onClick:t})}}))))),!!g&&Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Cover Settings")},"image"===s&&Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Fixed Background"),checked:d,onChange:function(){return n({hasParallax:!d})}}),"image"===s&&!d&&Object($.createElement)(X.FocalPointPicker,{label:Object(J.__)("Focal Point Picker"),url:g,value:m,onChange:function(e){return n({focalPoint:e})}}),Object($.createElement)(W.PanelColorSettings,{title:Object(J.__)("Overlay"),initialOpen:!0,colorSettings:[{value:i.color,onChange:l,label:Object(J.__)("Overlay Color")}]},Object($.createElement)(X.RangeControl,{label:Object(J.__)("Background Opacity"),value:b,onChange:function(e){return n({dimRatio:e})},min:0,max:100,step:10})))));if(!g){var y=!W.RichText.isEmpty(p),k=y?void 0:Object($.createElement)(W.BlockIcon,{icon:gn}),w=y?Object($.createElement)(W.RichText,{tagName:"h2",value:p,onChange:j,inlineToolbar:!0}):Object(J.__)("Cover");return Object($.createElement)($.Fragment,null,v,Object($.createElement)(W.MediaPlaceholder,{icon:k,className:o,labels:{title:w,instructions:Object(J.__)("Drag an image or a video, upload a new one or select a file from your library.")},onSelect:O,accept:"image/*,video/*",allowedTypes:fn,notices:c,onError:a.createErrorNotice}))}var C=Y()(o,"center"!==u&&"has-".concat(u,"-content"),yn(b),{"has-background-dim":0!==b,"has-parallax":d});return Object($.createElement)($.Fragment,null,v,Object($.createElement)("div",{"data-url":g,style:f,className:C},"video"===s&&Object($.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:g}),(!W.RichText.isEmpty(p)||r)&&Object($.createElement)(W.RichText,{tagName:"p",className:"wp-block-cover-text",placeholder:Object(J.__)("Write title…"),value:p,onChange:j,inlineToolbar:!0})))}),save:function(e){var t=e.attributes,n=t.backgroundType,r=t.contentAlign,o=t.customOverlayColor,a=t.dimRatio,c=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(W.getColorClassName)("background-color",l),m="image"===n?kn(u):{};b||(m.backgroundColor=o),c&&!i&&(m.backgroundPosition="".concat(100*c.x,"% ").concat(100*c.y,"%"));var d=Y()(yn(a),b,Object(q.a)({"has-background-dim":0!==a,"has-parallax":i},"has-".concat(r,"-content"),"center"!==r));return Object($.createElement)("div",{className:d,style:m},"video"===n&&u&&Object($.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!W.RichText.isEmpty(s)&&Object($.createElement)(W.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},deprecated:[{attributes:Object(K.a)({},On,{align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,c=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(W.getColorClassName)("background-color",l),b=kn(n);u||(b.backgroundColor=s);var m=Y()("wp-block-cover-image",yn(a),u,Object(q.a)({"has-background-dim":0!==a,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),c?"align".concat(c):null);return Object($.createElement)("div",{className:m,style:b},!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))}},{attributes:Object(K.a)({},On,{align:{type:"string"},title:{type:"string",source:"html",selector:"h2"}}),save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,a=t.dimRatio,c=t.align,i=kn(n),l=Y()(yn(a),{"has-background-dim":0!==a,"has-parallax":o},c?"align".concat(c):null);return Object($.createElement)("section",{className:l,style:i},Object($.createElement)(W.RichText.Content,{tagName:"h2",value:r}))}}]};function yn(e){return 0===e||50===e?null:"has-background-dim-"+10*Math.round(e/10)}function kn(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var wn=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,c=e.toggleResponsive,i=e.switchBackToURLInput;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(X.Toolbar,null,n&&Object($.createElement)(X.IconButton,{className:"components-toolbar__control",label:Object(J.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Media Settings"),className:"blocks-responsive"},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},Cn=function(){return Object($.createElement)("div",{className:"wp-block-embed is-loading"},Object($.createElement)(X.Spinner,null),Object($.createElement)("p",null,Object(J.__)("Embedding…")))},En=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,c=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object($.createElement)(X.Placeholder,{icon:Object($.createElement)(W.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed"},Object($.createElement)("form",{onSubmit:o},Object($.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(J.__)("Enter URL to embed here…"),onChange:a}),Object($.createElement)(X.Button,{isLarge:!0,type:"submit"},Object(J._x)("Embed","button label")),c&&Object($.createElement)("p",{className:"components-placeholder__error"},Object(J.__)("Sorry, this content could not be embedded."),Object($.createElement)("br",null),Object($.createElement)(X.Button,{isLarge:!0,onClick:l},Object(J._x)("Try again","button label"))," ",Object($.createElement)(X.Button,{isLarge:!0,onClick:i},Object(J._x)("Convert to link","button label")))))},_n=n(77),xn=window.FocusEvent,Sn=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(ce.a)(Object(ce.a)(e))),e.node=Object($.createRef)(),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new xn("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object($.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}($.Component),Tn=Object(ie.withGlobalEvents)({blur:"checkFocus"})(Sn),Nn=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(ce.a)(Object(ce.a)(e))),e.state={interactive:!1},e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.preview,a=r.url,c=r.type,i=r.caption,l=r.onCaptionChange,s=r.isSelected,u=r.className,b=r.icon,m=r.label,d=o.scripts,h=this.state.interactive,p="photo"===c?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,n=Object($.createElement)("p",null,Object($.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object($.renderToString)(n)):o.html,g=Object(_n.parse)(a).host.split("."),O=g.splice(g.length-2,g.length-1).join("."),j=Object(Z.includes)(ze,O),f=Object(J.sprintf)(Object(J.__)("Embedded content from %s"),O),v=Fe()(c,u,"wp-block-embed__wrapper"),y="wp-embed"===c?Object($.createElement)(Tn,{html:p}):Object($.createElement)("div",{className:"wp-block-embed__wrapper"},Object($.createElement)(X.SandBox,{html:p,scripts:d,title:f,type:v,onFocus:this.hideOverlay}),!h&&Object($.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object($.createElement)("figure",{className:Fe()(u,"wp-block-embed",{"is-type-video":"video"===c})},j?Object($.createElement)(X.Placeholder,{icon:Object($.createElement)(W.BlockIcon,{icon:b,showColors:!0}),label:m},Object($.createElement)("p",{className:"components-placeholder__error"},Object($.createElement)("a",{href:a},a)),Object($.createElement)("p",{className:"components-placeholder__error"},Object(J.sprintf)(Object(J.__)("Embedded content from %s can't be previewed in the editor."),O))):y,(!W.RichText.isEmpty(i)||s)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(J.__)("Write caption…"),value:i,onChange:l,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}($.Component);function Rn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){function o(){var e;return Object(te.a)(this,o),(e=Object(re.a)(this,Object(oe.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(ce.a)(Object(ce.a)(e))),e.setUrl=e.setUrl.bind(Object(ce.a)(Object(ce.a)(e))),e.getAttributesFromPreview=e.getAttributesFromPreview.bind(Object(ce.a)(Object(ce.a)(e))),e.setAttributesFromPreview=e.setAttributesFromPreview.bind(Object(ce.a)(Object(ce.a)(e))),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(ce.a)(Object(ce.a)(e))),e.toggleResponsive=e.toggleResponsive.bind(Object(ce.a)(Object(ce.a)(e))),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(ce.a)(Object(ce.a)(e))),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(ae.a)(o,r),Object(ne.a)(o,[{key:"handleIncomingPreview",value:function(){var e=this.props.attributes.allowResponsive;this.setAttributesFromPreview();var t=We(this.props,this.getAttributesFromPreview(this.props.preview,e));t&&this.props.onReplace(t)}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return;this.handleIncomingPreview()}}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getAttributesFromPreview",value:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={},a=t.type,c=void 0===a?"rich":a,i=t.html,l=t.provider_name,s=Object(Z.kebabCase)(Object(Z.toLower)(""!==l?l:e));return Ue(i)&&(c="wp-embed"),(i||"photo"===c)&&(o.type=c,o.providerNameSlug=s),o.className=Ge(i,this.props.attributes.className,n&&r),o}},{key:"setAttributesFromPreview",value:function(){var e=this.props,t=e.setAttributes,n=e.preview,r=this.props.attributes.allowResponsive;t(this.getAttributesFromPreview(n,r))}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(J.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(J.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:Ge(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,i=this.props.attributes,l=i.caption,s=i.type,u=i.allowResponsive,b=this.props,m=b.fetching,d=b.setAttributes,h=b.isSelected,p=b.className,g=b.preview,O=b.cannotEmbed,j=b.themeSupportsResponsive,f=b.tryAgain;if(m)return Object($.createElement)(Cn,null);var v=Object(J.sprintf)(Object(J.__)("%s URL"),e);return!g||O||c?Object($.createElement)(En,{icon:t,label:v,onSubmit:this.setUrl,value:a,cannotEmbed:O,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return function(e,t){var n=Object($.createElement)("a",{href:e},e);t(Object(G.createBlock)("core/paragraph",{content:Object($.renderToString)(n)}))}(a,r.props.onReplace)},tryAgain:f}):Object($.createElement)($.Fragment,null,Object($.createElement)(wn,{showEditButton:g&&!O,themeSupportsResponsive:j,blockSupportsResponsive:n,allowResponsive:u,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object($.createElement)(Nn,{preview:g,className:p,url:a,type:s,caption:l,onCaptionChange:function(e){return d({caption:e})},isSelected:h,icon:t,label:v}))}}]),o}($.Component)}var Bn={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function An(e){var t=e.title,n=e.description,r=e.icon,o=e.category,a=void 0===o?"embed":o,c=e.transforms,i=e.keywords,l=void 0===i?[]:i,s=e.supports,u=void 0===s?{}:s,b=e.responsive,m=void 0===b||b,d=n||Object(J.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),h=Rn(t,r,m);return{title:t,description:d,icon:r,category:a,keywords:l,attributes:Bn,supports:Object(K.a)({align:!0},u),transforms:c,edit:Object(ie.compose)(Object(le.withSelect)(function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,h=!!l&&!m&&!d,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}}),Object(le.withDispatch)(function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}}))(h),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Fe()("wp-block-embed",(t={},Object(q.a)(t,"is-type-".concat(a),a),Object(q.a)(t,"is-provider-".concat(c),c),t));return Object($.createElement)("figure",{className:i},Object($.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:Bn,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Fe()("wp-block-embed",(t={},Object(q.a)(t,"is-type-".concat(a),a),Object(q.a)(t,"is-provider-".concat(c),c),t));return Object($.createElement)("figure",{className:i},"\n".concat(r,"\n"),!W.RichText.isEmpty(o)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var Pn="core/embed",In=An({title:Object(J._x)("Embed","block title"),description:Object(J.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:ye,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(G.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),Ln=Le.map(function(e){return Object(K.a)({},e,{settings:An(e.settings)})}),Mn=Me.map(function(e){return Object(K.a)({},e,{settings:An(e.settings)})}),zn=Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function Hn(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,o=e.changeLinkDestinationOption,a=e.changeOpenInNewWindow,c=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(J.__)("URL")}];return s&&(u=[{value:i,label:Object(J.__)("Media File")},{value:s,label:Object(J.__)("Attachment Page")}]),Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Text Link Settings")},Object($.createElement)(X.SelectControl,{label:Object(J.__)("Link To"),value:l,options:u,onChange:o}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Open in New Tab"),checked:n,onChange:a})),Object($.createElement)(X.PanelBody,{title:Object(J.__)("Download Button Settings")},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Show Download Button"),checked:r,onChange:c}))))}var Dn=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(ce.a)(Object(ce.a)(e))),e.confirmCopyURL=e.confirmCopyURL.bind(Object(ce.a)(Object(ce.a)(e))),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(ce.a)(Object(ce.a)(e))),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(ce.a)(Object(ce.a)(e))),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(ce.a)(Object(ce.a)(e))),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(ce.a)(Object(ce.a)(e))),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=n.href;if(Object(Oe.isBlobURL)(o)){var a=Object(Oe.getBlobByURL)(o);Object(W.mediaUpload)({filesList:[a],onFileChange:function(t){var n=Object(je.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),r.createErrorNotice(t)}}),Object(Oe.revokeBlobURL)(o)}}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,r=e.attributes,o=e.setAttributes,a=e.noticeUI,c=e.noticeOperations,i=e.media,l=r.fileName,s=r.href,u=r.textLinkHref,b=r.textLinkTarget,m=r.showDownloadButton,d=r.downloadButtonText,h=r.id,p=this.state,g=p.hasError,O=p.showCopyConfirmation,j=i&&i.link;if(!s||g)return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:zn}),labels:{title:Object(J.__)("File"),instructions:Object(J.__)("Drag a file, upload a new one or select a file from your library.")},onSelect:this.onSelectFile,notices:a,onError:c.createErrorNotice,accept:"*"});var f=Y()(t,{"is-transient":Object(Oe.isBlobURL)(s)});return Object($.createElement)($.Fragment,null,Object($.createElement)(Hn,Object(ee.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:j}},{openInNewWindow:!!b,showDownloadButton:m,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(X.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:this.onSelectFile,value:h,render:function(e){var t=e.open;return Object($.createElement)(X.IconButton,{className:"components-toolbar__control",label:Object(J.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object($.createElement)("div",{className:f},Object($.createElement)("div",{className:"wp-block-file__content-wrapper"},Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:l,placeholder:Object(J.__)("Write file name…"),keepPlaceholderOnFocus:!0,formattingControls:[],onChange:function(e){return o({fileName:e})}}),m&&Object($.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object($.createElement)(W.RichText,{tagName:"div",className:"wp-block-file__button",value:d,formattingControls:[],placeholder:Object(J.__)("Add text…"),keepPlaceholderOnFocus:!0,onChange:function(e){return o({downloadButtonText:e})}}))),n&&Object($.createElement)(X.ClipboardButton,{isDefault:!0,text:s,className:"wp-block-file__copy-url-button",onCopy:this.confirmCopyURL,onFinishCopy:this.resetCopyConfirmation,disabled:Object(Oe.isBlobURL)(s)},O?Object(J.__)("Copied!"):Object(J.__)("Copy URL"))))}}]),t}($.Component),Fn=Object(ie.compose)([Object(le.withSelect)(function(e,t){var n=e("core").getMedia,r=t.attributes.id;return{media:void 0===r?void 0:n(r)}}),X.withNotices])(Dn),Vn="core/file",Un={title:Object(J.__)("File"),description:Object(J.__)("Add a link to a downloadable file."),icon:zn,category:"common",keywords:[Object(J.__)("document"),Object(J.__)("pdf")],attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]",default:Object(J._x)("Download","button label")}},supports:{align:!0},transforms:{from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach(function(e){var n=Object(Oe.createBlobURL)(e);t.push(Object(G.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(G.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(G.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(G.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(le.select)("core").getMedia)(t);return!!n&&Object(Z.includes)(n.mime_type,"audio")},transform:function(e){return Object(G.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(le.select)("core").getMedia)(t);return!!n&&Object(Z.includes)(n.mime_type,"video")},transform:function(e){return Object(G.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(le.select)("core").getMedia)(t);return!!n&&Object(Z.includes)(n.mime_type,"image")},transform:function(e){return Object(G.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},edit:Fn,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,a=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object($.createElement)("div",null,!W.RichText.isEmpty(r)&&Object($.createElement)("a",{href:o,target:a,rel:!!a&&"noreferrer noopener"},Object($.createElement)(W.RichText.Content,{value:r})),c&&Object($.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object($.createElement)(W.RichText.Content,{value:i})))}},Wn=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(ce.a)(Object(ce.a)(e))),e.switchToPreview=e.switchToPreview.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(U.a)(Object(W.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=this.state,o=r.isPreview,a=r.styles;return Object($.createElement)("div",{className:"wp-block-html"},Object($.createElement)(W.BlockControls,null,Object($.createElement)("div",{className:"components-toolbar"},Object($.createElement)("button",{className:"components-tab-button ".concat(o?"":"is-active"),onClick:this.switchToHTML},Object($.createElement)("span",null,"HTML")),Object($.createElement)("button",{className:"components-tab-button ".concat(o?"is-active":""),onClick:this.switchToPreview},Object($.createElement)("span",null,Object(J.__)("Preview"))))),Object($.createElement)(X.Disabled.Consumer,null,function(e){return o||e?Object($.createElement)(X.SandBox,{html:t.content,styles:a}):Object($.createElement)(W.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(J.__)("Write HTML…"),"aria-label":Object(J.__)("HTML")})}))}}]),t}($.Component),Gn=Object(le.withSelect)(function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}})(Wn),qn="core/html",Kn={title:Object(J.__)("Custom HTML"),description:Object(J.__)("Add custom HTML code and preview it as you edit."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),category:"formatting",keywords:[Object(J.__)("embed")],supports:{customClassName:!1,className:!1,html:!1},attributes:{content:{type:"string",source:"html"}},transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(G.getPhrasingContentSchema)()}}}}}]},edit:Gn,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.content)}},$n=Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object($.createElement)(X.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object($.createElement)(X.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Qn=["image","video"],Yn=function(e){function t(){return Object(te.a)(this,t),Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object($.createElement)(W.BlockControls,null,Object($.createElement)(X.Toolbar,null,Object($.createElement)(W.MediaUpload,{onSelect:n,allowedTypes:Qn,value:t,render:function(e){var t=e.open;return Object($.createElement)(X.IconButton,{className:"components-toolbar__control",label:Object(J.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className;return Object($.createElement)($.Fragment,null,this.renderToolbarEditButton(),Object($.createElement)("figure",{className:r},Object($.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object($.createElement)($.Fragment,null,this.renderToolbarEditButton(),Object($.createElement)("figure",{className:n},Object($.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:$n}),labels:{title:Object(J.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:Qn})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,o=e.mediaWidth,a=e.commitWidthChange,c=e.onWidthChange;if(r&&n){var i={right:"left"===t,left:"right"===t},l=null;switch(r){case"image":l=this.renderImage();break;case"video":l=this.renderVideo()}return Object($.createElement)(X.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:i,onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){a(parseInt(n.style.width))},axis:"x"},l)}return this.renderPlaceholder()}}]),t}($.Component),Zn=["core/button","core/paragraph","core/heading","core/list"],Jn=[["core/paragraph",{fontSize:"large",placeholder:Object(J._x)("Content…","content placeholder")}]],Xn=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(ce.a)(Object(ce.a)(e))),e.onWidthChange=e.onWidthChange.bind(Object(ce.a)(Object(ce.a)(e))),e.commitWidthChange=e.commitWidthChange.bind(Object(ce.a)(Object(ce.a)(e))),e.state={mediaWidth:null},e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(Z.get)(e,["sizes","large","url"])||Object(Z.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:e})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:e}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,o=e.mediaType,a=e.mediaUrl,c=e.mediaWidth;return Object($.createElement)(Yn,Object(ee.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:a,mediaPosition:r,mediaWidth:c}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,a=t.isSelected,c=t.setAttributes,i=t.setBackgroundColor,l=n.isStackedOnMobile,s=n.mediaAlt,u=n.mediaPosition,b=n.mediaType,m=n.mediaWidth,d=this.state.mediaWidth,h=Y()(r,(e={"has-media-on-the-right":"right"===u,"is-selected":a},Object(q.a)(e,o.class,o.class),Object(q.a)(e,"is-stacked-on-mobile",l),e)),p="".concat(d||m,"%"),g={gridTemplateColumns:"right"===u?"auto ".concat(p):"".concat(p," auto"),backgroundColor:o.color},O=[{value:o.color,onChange:i,label:Object(J.__)("Background Color")}],j=[{icon:"align-pull-left",title:Object(J.__)("Show media on left"),isActive:"left"===u,onClick:function(){return c({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(J.__)("Show media on right"),isActive:"right"===u,onClick:function(){return c({mediaPosition:"right"})}}],f=Object($.createElement)(X.PanelBody,{title:Object(J.__)("Media & Text Settings")},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Stack on mobile"),checked:l,onChange:function(){return c({isStackedOnMobile:!l})}}),"image"===b&&Object($.createElement)(X.TextareaControl,{label:Object(J.__)("Alt Text (Alternative Text)"),value:s,onChange:function(e){c({mediaAlt:e})},help:Object(J.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}));return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,f,Object($.createElement)(W.PanelColorSettings,{title:Object(J.__)("Color Settings"),initialOpen:!1,colorSettings:O})),Object($.createElement)(W.BlockControls,null,Object($.createElement)(X.Toolbar,{controls:j})),Object($.createElement)("div",{className:h,style:g},this.renderMediaArea(),Object($.createElement)(W.InnerBlocks,{allowedBlocks:Zn,template:Jn,templateInsertUpdatesSelection:!1})))}}]),t}($.Component),er=Object(W.withColors)("backgroundColor")(Xn),tr=Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),nr="core/media-text",rr={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},or={title:Object(J.__)("Media & Text"),description:Object(J.__)("Set media and words side-by-side for a richer layout."),icon:tr,category:"layout",keywords:[Object(J.__)("image"),Object(J.__)("video")],attributes:rr,supports:{align:["wide","full"],html:!1},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(G.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(G.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(G.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(G.createBlock)("core/video",{id:t,src:n})}}]},edit:er,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d={image:function(){return Object($.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object($.createElement)("video",{controls:!0,src:u})}},h=Object(W.getColorClassName)("background-color",o),p=Y()((t={"has-media-on-the-right":"right"===l},Object(q.a)(t,h,h),Object(q.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var g={backgroundColor:h?void 0:a,gridTemplateColumns:n};return Object($.createElement)("div",{className:p,style:g},Object($.createElement)("figure",{className:"wp-block-media-text__media"},(d[s]||Z.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))},deprecated:[{attributes:rr,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object($.createElement)("img",{src:u,alt:i})},video:function(){return Object($.createElement)("video",{controls:!0,src:u})}},d=Object(W.getColorClassName)("background-color",o),h=Y()((t={"has-media-on-the-right":"right"===l},Object(q.a)(t,d,d),Object(q.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var p={backgroundColor:d?void 0:a,gridTemplateColumns:n};return Object($.createElement)("div",{className:h,style:p},Object($.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||Z.noop)()),Object($.createElement)("div",{className:"wp-block-media-text__content"},Object($.createElement)(W.InnerBlocks.Content,null)))}}]},ar=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).setAlignment=e.setAlignment.bind(Object(ce.a)(Object(ce.a)(e))),e.setCommentsToShow=e.setCommentsToShow.bind(Object(ce.a)(Object(ce.a)(e))),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(q.a)({},e,!n))}}},{key:"setAlignment",value:function(e){this.props.setAttributes({align:e})}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.commentsToShow,r=e.displayAvatar,o=e.displayDate,a=e.displayExcerpt;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:t,onChange:this.setAlignment})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Latest Comments Settings")},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display Avatar"),checked:r,onChange:this.toggleDisplayAvatar}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display Date"),checked:o,onChange:this.toggleDisplayDate}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display Excerpt"),checked:a,onChange:this.toggleDisplayExcerpt}),Object($.createElement)(X.RangeControl,{label:Object(J.__)("Number of Comments"),value:n,onChange:this.setCommentsToShow,min:1,max:100}))),Object($.createElement)(X.Disabled,null,Object($.createElement)(W.ServerSideRender,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}($.Component),cr="core/latest-comments",ir={title:Object(J.__)("Latest Comments"),description:Object(J.__)("Display a list of your most recent comments."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}))),category:"widgets",keywords:[Object(J.__)("recent comments")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:ar,save:function(){return null}},lr=n(31),sr=n.n(lr),ur=n(46),br={per_page:-1},mr=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).state={categoriesList:[]},e.toggleDisplayPostDate=e.toggleDisplayPostDate.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=sr()({path:Object(fe.addQueryArgs)("/wp/v2/categories",br)}).then(function(t){e.isStillMounted&&e.setState({categoriesList:t})}).catch(function(){e.isStillMounted&&e.setState({categoriesList:[]})})}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"toggleDisplayPostDate",value:function(){var e=this.props.attributes.displayPostDate;(0,this.props.setAttributes)({displayPostDate:!e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.latestPosts,o=this.state.categoriesList,a=t.displayPostDate,c=t.align,i=t.postLayout,l=t.columns,s=t.order,u=t.orderBy,b=t.categories,m=t.postsToShow,d=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Latest Posts Settings")},Object($.createElement)(X.QueryControls,Object(ee.a)({order:s,orderBy:u},{numberOfItems:m,categoriesList:o,selectedCategoryId:b,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display post date"),checked:a,onChange:this.toggleDisplayPostDate}),"grid"===i&&Object($.createElement)(X.RangeControl,{label:Object(J.__)("Columns"),value:l,onChange:function(e){return n({columns:e})},min:2,max:h?Math.min(6,r.length):6}))),h=Array.isArray(r)&&r.length;if(!h)return Object($.createElement)($.Fragment,null,d,Object($.createElement)(X.Placeholder,{icon:"admin-post",label:Object(J.__)("Latest Posts")},Array.isArray(r)?Object(J.__)("No posts found."):Object($.createElement)(X.Spinner,null)));var p=r.length>m?r.slice(0,m):r,g=[{icon:"list-view",title:Object(J.__)("List View"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===i},{icon:"grid-view",title:Object(J.__)("Grid View"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===i}],O=Object(ur.__experimentalGetSettings)().formats.date;return Object($.createElement)($.Fragment,null,d,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:c,onChange:function(e){n({align:e})}}),Object($.createElement)(X.Toolbar,{controls:g})),Object($.createElement)("ul",{className:Y()(this.props.className,Object(q.a)({"is-grid":"grid"===i,"has-dates":a},"columns-".concat(l),"grid"===i))},p.map(function(e,t){var n=e.title.rendered.trim();return Object($.createElement)("li",{key:t},Object($.createElement)("a",{href:e.link,target:"_blank"},n?Object($.createElement)($.RawHTML,null,n):Object(J.__)("(Untitled)")),a&&e.date_gmt&&Object($.createElement)("time",{dateTime:Object(ur.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(ur.dateI18n)(O,e.date_gmt)))})))}}]),t}($.Component),dr=Object(le.withSelect)(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(Z.pickBy)({categories:c,order:o,orderby:a,per_page:r},function(e){return!Object(Z.isUndefined)(e)}))}})(mr),hr="core/latest-posts",pr={title:Object(J.__)("Latest Posts"),description:Object(J.__)("Display a list of your most recent posts."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object($.createElement)(X.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object($.createElement)(X.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object($.createElement)(X.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object($.createElement)(X.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),category:"widgets",keywords:[Object(J.__)("recent posts")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:dr,save:function(){return null}},gr=Object(K.a)({},Object(G.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach(function(e){gr[e].children={li:{children:gr}}});var Or={className:!1},jr={ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},fr="core/list",vr={title:Object(J.__)("List"),description:Object(J.__)("Create a bulleted or numbered list."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"}))),category:"common",keywords:[Object(J.__)("bullet list"),Object(J.__)("ordered list"),Object(J.__)("numbered list")],attributes:jr,supports:Or,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/list",{values:Object(ht.toHTMLString)({value:Object(ht.join)(e.map(function(t){var n=t.content,r=Object(ht.create)({html:n});return e.length>1?r:Object(ht.replace)(r,/\n/g,ht.LINE_SEPARATOR)}),ht.LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(G.createBlock)("core/list",{values:Object(ht.toHTMLString)({value:Object(ht.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:gr.ol,ul:gr.ul},transform:function(e){return Object(G.createBlock)("core/list",Object(K.a)({},Object(G.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(U.a)(["*","-"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(G.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}})),Object(U.a)(["1.","1)"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(G.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(ht.split)(Object(ht.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ht.LINE_SEPARATOR).map(function(e){return Object(G.createBlock)("core/paragraph",{content:Object(ht.toHTMLString)({value:e})})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(G.createBlock)("core/quote",{value:Object(ht.toHTMLString)({value:Object(ht.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},deprecated:[{supports:Or,attributes:Object(K.a)({},Object(Z.omit)(jr,["ordered"]),{nodeName:{type:"string",source:"property",selector:"ol,ul",property:"nodeName",default:"UL"}}),migrate:function(e){var t=e.nodeName,n=Object(ct.a)(e,["nodeName"]);return Object(K.a)({},n,{ordered:"OL"===t})},save:function(e){var t=e.attributes,n=t.nodeName,r=t.values;return Object($.createElement)(W.RichText.Content,{tagName:n.toLowerCase(),value:r})}}],merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(K.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.insertBlocksAfter,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.ordered,l=t.values;return Object($.createElement)(W.RichText,{identifier:"values",multiline:"li",tagName:i?"ol":"ul",onChange:function(e){return r({values:e})},value:l,wrapperClassName:"block-library-list",className:c,placeholder:Object(J.__)("Write list…"),onMerge:o,unstableOnSplit:n?function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c
  • "!==t&&a.push(Object(G.createBlock)("core/list",{ordered:i,values:t})),r({values:e}),n(a)}:void 0,onRemove:function(){return a([])},onTagNameChange:function(e){return r({ordered:"ol"===e})}})},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=n?"ol":"ul";return Object($.createElement)(W.RichText.Content,{tagName:o,value:r,multiline:"li"})}};var yr=Object(le.withDispatch)(function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(G.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}})(function(e){var t,n=e.attributes,r=e.convertToHTML,o=n.originalName,a=n.originalUndelimitedContent,c=!!a,i=Object(G.getBlockType)("core/html"),l=[];return c&&i?(t=Object(J.sprintf)(Object(J.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),l.push(Object($.createElement)(X.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(J.__)("Keep as HTML")))):t=Object(J.sprintf)(Object(J.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object($.createElement)($.Fragment,null,Object($.createElement)(W.Warning,{actions:l},t),Object($.createElement)($.RawHTML,null,a))}),kr="core/missing",wr={name:kr,category:"common",title:Object(J.__)("Unrecognized Block"),description:Object(J.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},edit:yr,save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.originalContent)}},Cr=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(ce.a)(Object(ce.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(ce.a)(Object(ce.a)(e))),e.state={defaultText:Object(J.__)("Read more")},e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===jt.ENTER&&n([Object(G.createBlock)(Object(G.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(J.__)("The excerpt is hidden."):Object(J.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,r=this.props.setAttributes,o=this.state.defaultText,a=void 0!==t?t:o,c=a.length+1;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,null,Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return r({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object($.createElement)("div",{className:"wp-block-more"},Object($.createElement)("input",{type:"text",value:a,size:c,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}($.Component),Er="core/more",_r={title:Object(J._x)("More","block name"),description:Object(J.__)("Content before this block will be shown in the excerpt on your archives page."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(G.createBlock)("core/more",o)}}]},edit:Cr,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",a=r?"\x3c!--noteaser--\x3e":"";return Object($.createElement)($.RawHTML,null,Object(Z.compact)([o,a]).join("\n"))}};var xr="core/nextpage",Sr={title:Object(J.__)("Page Break"),description:Object(J.__)("Separate your content into a multi-page experience."),icon:Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:"layout",keywords:[Object(J.__)("next page"),Object(J.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(G.createBlock)("core/nextpage",{})}}]},edit:function(){return Object($.createElement)("div",{className:"wp-block-nextpage"},Object($.createElement)("span",null,Object(J.__)("Page break")))},save:function(){return Object($.createElement)($.RawHTML,null,"\x3c!--nextpage--\x3e")}},Tr="core/preformatted",Nr={title:Object(J.__)("Preformatted"),description:Object(J.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object($.createElement)(X.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object($.createElement)(X.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"10",y:"10",width:"8",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}},transforms:{from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(G.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(G.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.className,a=t.content;return Object($.createElement)(W.RichText,{tagName:"pre",value:a.replace(/\n/g,"
    "),onChange:function(e){r({content:e})},placeholder:Object(J.__)("Write preformatted text…"),wrapperClassName:o,onMerge:n})},save:function(e){var t=e.attributes.content;return Object($.createElement)(W.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},Rr="is-style-".concat("solid-color"),Br=function(e){function t(e){var n;return Object(te.a)(this,t),(n=Object(re.a)(this,Object(oe.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(ce.a)(Object(ce.a)(n))),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(ce.a)(Object(ce.a)(n))),n}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setTextColor,a=t.setMainColor,c=t.className,i=Object(Z.includes)(c,Rr),l=!r.color||this.wasTextColorAutomaticallyComputed,s=i&&l&&e;a(e),s&&(this.wasTextColorAutomaticallyComputed=!0,o(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,o=e.setAttributes,a=e.isSelected,c=e.className,i=t.value,l=t.citation,s=Object(Z.includes)(c,Rr),u=s?{backgroundColor:n.color}:{borderColor:n.color},b={color:r.color},m=r.color?Y()("has-text-color",Object(q.a)({},r.class,r.class)):void 0;return Object($.createElement)($.Fragment,null,Object($.createElement)("figure",{style:u,className:Y()(c,Object(q.a)({},n.class,s&&n.class))},Object($.createElement)("blockquote",{style:b,className:m},Object($.createElement)(W.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(J.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!W.RichText.isEmpty(l)||a)&&Object($.createElement)(W.RichText,{value:l,placeholder:Object(J.__)("Write citation…"),onChange:function(e){return o({citation:e})},className:"wp-block-pullquote__citation"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(W.PanelColorSettings,{title:Object(J.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(J.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(J.__)("Text Color")}]},s&&Object($.createElement)(W.ContrastChecker,Object(ee.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}($.Component),Ar=Object(W.withColors)({mainColor:"background-color",textColor:"color"})(Br),Pr={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"}},Ir="core/pullquote",Lr={title:Object(J.__)("Pullquote"),description:Object(J.__)("Give special visual emphasis to a quote from your text."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object($.createElement)(X.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object($.createElement)(X.Polygon,{points:"21 4 2 4 2 6 21 6"})),category:"formatting",attributes:Pr,styles:[{name:"default",label:Object(J._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(J.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:Ar,save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(Z.includes)(u,Rr))(t=Object(W.getColorClassName)("background-color",o))||(n={backgroundColor:a});else if(a)n={borderColor:a};else if(o){var b=Object(Z.get)(Object(le.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(W.getColorObjectByAttributeValues)(b,o).color}}var m=Object(W.getColorClassName)("color",c),d=c||i?Y()("has-text-color",Object(q.a)({},m,m)):void 0,h=m?void 0:{color:i};return Object($.createElement)("figure",{className:t,style:n},Object($.createElement)("blockquote",{className:d,style:h},Object($.createElement)(W.RichText.Content,{value:l,multiline:!0}),!W.RichText.isEmpty(s)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:s})))},deprecated:[{attributes:Object(K.a)({},Pr),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object($.createElement)("blockquote",null,Object($.createElement)(W.RichText.Content,{value:n,multiline:!0}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(K.a)({},Pr,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object($.createElement)("blockquote",{className:"align".concat(o)},Object($.createElement)(W.RichText.Content,{value:n,multiline:!0}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"footer",value:r}))}}]},Mr=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).titleField=Object($.createRef)(),e.editButton=Object($.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(ce.a)(Object(ce.a)(e))),e.handleTitleChange=e.handleTitleChange.bind(Object(ce.a)(Object(ce.a)(e))),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===jt.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,r=e.isSaving,o=e.isEditDisabled,a=e.onEdit,c=e.instanceId;return Object($.createElement)($.Fragment,null,!t&&!r&&Object($.createElement)("div",{className:"reusable-block-edit-panel"},Object($.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object($.createElement)(X.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:a},Object(J.__)("Edit"))),(t||r)&&Object($.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object($.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(c),className:"reusable-block-edit-panel__label"},Object(J.__)("Name:")),Object($.createElement)("input",{ref:this.titleField,type:"text",disabled:r,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(c)}),Object($.createElement)(X.Button,{type:"submit",isLarge:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(J.__)("Save"))))}}]),t}($.Component),zr=Object(ie.withInstanceId)(Mr);var Hr=function(e){var t=e.title,n=Object(J.sprintf)(Object(J.__)("Reusable Block: %s"),t);return Object($.createElement)(X.Tooltip,{text:n},Object($.createElement)("span",{className:"reusable-block-indicator"},Object($.createElement)(X.Dashicon,{icon:"controls-repeat"})))},Dr=function(e){function t(e){var n,r=e.reusableBlock;return Object(te.a)(this,t),(n=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(ce.a)(Object(ce.a)(n))),n.stopEditing=n.stopEditing.bind(Object(ce.a)(Object(ce.a)(n))),n.setAttributes=n.setAttributes.bind(Object(ce.a)(Object(ce.a)(n))),n.setTitle=n.setTitle.bind(Object(ce.a)(Object(ce.a)(n))),n.save=n.save.bind(Object(ce.a)(Object(ce.a)(n))),r&&r.isTemporary?n.state={isEditing:!0,title:r.title,changedAttributes:{}}:n.state={isEditing:!1,title:null,changedAttributes:null},n}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,changedAttributes:{}})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,changedAttributes:null})}},{key:"setAttributes",value:function(e){this.setState(function(t){if(null!==t.changedAttributes)return{changedAttributes:Object(K.a)({},t.changedAttributes,e)}})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.reusableBlock,n=e.onUpdateTitle,r=e.updateAttributes,o=e.block,a=e.onSave,c=this.state,i=c.title,l=c.changedAttributes;i!==t.title&&n(i),r(o.clientId,l),a(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.block,o=e.isFetching,a=e.isSaving,c=e.canUpdateBlock,i=this.state,l=i.isEditing,s=i.title,u=i.changedAttributes;if(!n&&o)return Object($.createElement)(X.Placeholder,null,Object($.createElement)(X.Spinner,null));if(!n||!r)return Object($.createElement)(X.Placeholder,null,Object(J.__)("Block has been deleted or is unavailable."));var b=Object($.createElement)(W.BlockEdit,Object(ee.a)({},this.props,{isSelected:l&&t,clientId:r.clientId,name:r.name,attributes:Object(K.a)({},r.attributes,u),setAttributes:l?this.setAttributes:Z.noop}));return l||(b=Object($.createElement)(X.Disabled,null,b)),Object($.createElement)($.Fragment,null,(t||l)&&Object($.createElement)(zr,{isEditing:l,title:null!==s?s:n.title,isSaving:a&&!n.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!l&&Object($.createElement)(Hr,{title:n.title}),b)}}]),t}($.Component),Fr=Object(ie.compose)([Object(le.withSelect)(function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=e("core").canUser,i=e("core/block-editor").getBlock,l=t.attributes.ref,s=r(l);return{reusableBlock:s,isFetching:o(l),isSaving:a(l),block:s?i(s.clientId):null,canUpdateBlock:!!s&&!s.isTemporary&&!!c("update","blocks",l)}}),Object(le.withDispatch)(function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlockTitle,a=n.__experimentalSaveReusableBlock,c=e("core/block-editor").updateBlockAttributes,i=t.attributes.ref;return{fetchReusableBlock:Object(Z.partial)(r,i),updateAttributes:c,onUpdateTitle:Object(Z.partial)(o,i),onSave:Object(Z.partial)(a,i)}})])(Dr),Vr="core/block",Ur={title:Object(J.__)("Reusable Block"),category:"reusable",description:Object(J.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},edit:Fr,save:function(){return null}},Wr=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(ce.a)(Object(ce.a)(e))),e.onSubmitURL=e.onSubmitURL.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(q.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,r=t.columns,o=t.displayAuthor,a=t.displayExcerpt,c=t.displayDate,i=t.excerptLength,l=t.feedURL,s=t.itemsToShow,u=this.props.setAttributes;if(this.state.editing)return Object($.createElement)(X.Placeholder,{icon:"rss",label:"RSS"},Object($.createElement)("form",{onSubmit:this.onSubmitURL},Object($.createElement)(X.TextControl,{placeholder:Object(J.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object($.createElement)(X.Button,{isLarge:!0,type:"submit"},Object(J.__)("Use URL"))));var b=[{icon:"edit",title:Object(J.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(J.__)("List View"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(J.__)("Grid View"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(X.Toolbar,{controls:b})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("RSS Settings")},Object($.createElement)(X.RangeControl,{label:Object(J.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display date"),checked:c,onChange:this.toggleAttribute("displayDate")}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Display excerpt"),checked:a,onChange:this.toggleAttribute("displayExcerpt")}),a&&Object($.createElement)(X.RangeControl,{label:Object(J.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100}),"grid"===n&&Object($.createElement)(X.RangeControl,{label:Object(J.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6}))),Object($.createElement)(X.Disabled,null,Object($.createElement)(X.ServerSideRender,{block:"core/rss",attributes:this.props.attributes})))}}]),t}($.Component),Gr="core/rss",qr={title:Object(J.__)("RSS"),description:Object(J.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(J.__)("atom"),Object(J.__)("feed")],supports:{html:!1},edit:Wr,save:function(){return null}};var Kr="core/search",$r={title:Object(J.__)("Search"),description:Object(J.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(J.__)("find")],edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=n.label,a=n.placeholder,c=n.buttonText;return Object($.createElement)("div",{className:t},Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-search__label","aria-label":Object(J.__)("Label text"),placeholder:Object(J.__)("Add label…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:o,onChange:function(e){return r({label:e})}}),Object($.createElement)("input",{className:"wp-block-search__input","aria-label":Object(J.__)("Optional placeholder text"),placeholder:a?void 0:Object(J.__)("Optional placeholder…"),value:a,onChange:function(e){return r({placeholder:e.target.value})}}),Object($.createElement)(W.RichText,{wrapperClassName:"wp-block-search__button",className:"wp-block-search__button-rich-text","aria-label":Object(J.__)("Button text"),placeholder:Object(J.__)("Add button text…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:c,onChange:function(e){return r({buttonText:e})}}))},save:function(){return null}},Qr="core/separator",Yr={title:Object(J.__)("Separator"),description:Object(J.__)("Create a break between ideas or sections with a horizontal separator."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.Path,{d:"M19 13H5v-2h14v2z"})),category:"layout",keywords:[Object(J.__)("horizontal-line"),"hr",Object(J.__)("divider")],styles:[{name:"default",label:Object(J.__)("Default"),isDefault:!0},{name:"wide",label:Object(J.__)("Wide Line")},{name:"dots",label:Object(J.__)("Dots")}],transforms:{from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(G.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},edit:function(e){var t=e.className;return Object($.createElement)("hr",{className:t})},save:function(){return Object($.createElement)("hr",null)}},Zr=n(60),Jr="core/shortcode",Xr={title:Object(J.__)("Shortcode"),description:Object(J.__)("Insert additional custom elements with a WordPress shortcode."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"})),category:"widgets",attributes:{text:{type:"string",source:"html"}},transforms:{from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Zr.removep)(Object(Zr.autop)(n))}}},priority:20}]},supports:{customClassName:!1,className:!1,html:!1},edit:Object(ie.withInstanceId)(function(e){var t=e.attributes,n=e.setAttributes,r=e.instanceId,o="blocks-shortcode-input-".concat(r);return Object($.createElement)("div",{className:"wp-block-shortcode"},Object($.createElement)("label",{htmlFor:o},Object($.createElement)(X.Dashicon,{icon:"shortcode"}),Object(J.__)("Shortcode")),Object($.createElement)(W.PlainText,{className:"input-control",id:o,value:t.text,placeholder:Object(J.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))}),save:function(e){var t=e.attributes;return Object($.createElement)($.RawHTML,null,t.text)}},eo="core/spacer",to={title:Object(J.__)("Spacer"),description:Object(J.__)("Add white space between blocks and customize its height."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),category:"layout",attributes:{height:{type:"number",default:100}},edit:Object(ie.withInstanceId)(function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.toggleSelection,a=e.instanceId,c=t.height,i="block-spacer-height-input-".concat(a);return Object($.createElement)($.Fragment,null,Object($.createElement)(X.ResizableBox,{className:Y()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:c},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,n,a){r({height:parseInt(c+a.height,10)}),o(!0)},onResizeStart:function(){o(!1)}}),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Spacer Settings")},Object($.createElement)(X.BaseControl,{label:Object(J.__)("Height in pixels"),id:i},Object($.createElement)("input",{type:"number",id:i,onChange:function(e){r({height:parseInt(e.target.value,10)})},value:c,min:"20",step:"10"})))))}),save:function(e){var t=e.attributes;return Object($.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},no=n(49),ro=n.n(no),oo="core/subhead",ao={title:Object(J.__)("Subheading (deprecated)"),description:Object(J.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),category:"common",supports:{inserter:!1,multiple:!1},attributes:{content:{type:"string",source:"html",selector:"p"},align:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,a=t.content,c=t.placeholder;return ro()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object($.createElement)(W.RichText,{tagName:"p",value:a,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:c||Object(J.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object($.createElement)(W.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}};var co=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],io=Object(W.createCustomColorsHOC)(co),lo=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(ce.a)(Object(ce.a)(e))),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(ce.a)(Object(ce.a)(e))),e.onChange=e.onChange.bind(Object(ce.a)(Object(ce.a)(e))),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(ce.a)(Object(ce.a)(e))),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(ce.a)(Object(ce.a)(e))),e.renderSection=e.renderSection.bind(Object(ce.a)(Object(ce.a)(e))),e.getTableControls=e.getTableControls.bind(Object(ce.a)(Object(ce.a)(e))),e.onInsertRow=e.onInsertRow.bind(Object(ce.a)(Object(ce.a)(e))),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(ce.a)(Object(ce.a)(e))),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(ce.a)(Object(ce.a)(e))),e.onDeleteRow=e.onDeleteRow.bind(Object(ce.a)(Object(ce.a)(e))),e.onInsertColumn=e.onInsertColumn.bind(Object(ce.a)(Object(ce.a)(e))),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(ce.a)(Object(ce.a)(e))),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(ce.a)(Object(ce.a)(e))),e.onDeleteColumn=e.onDeleteColumn.bind(Object(ce.a)(Object(ce.a)(e))),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,a=this.state,c=a.initialRowCount,i=a.initialColumnCount;c=parseInt(c,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:c,columnCount:i}).rowCount,r=t.columnCount,{body:Object(Z.times)(n,function(){return{cells:Object(Z.times)(r,function(){return{content:"",tag:"td"}})}})}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(function(e,t){var n=t.section,r=t.rowIndex,o=t.columnIndex,a=t.content;return Object(q.a)({},n,e[n].map(function(e,t){return t!==r?e:{cells:e.cells.map(function(e,t){return t!==o?e:Object(K.a)({},e,{content:a})})}}))}(r,{section:t.section,rowIndex:t.rowIndex,columnIndex:t.columnIndex,content:e}))}}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.rowIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.rowIndex,o=e[n][0].cells.length;return Object(q.a)({},n,[].concat(Object(U.a)(e[n].slice(0,r)),[{cells:Object(Z.times)(o,function(){return{content:"",tag:"td"}})}],Object(U.a)(e[n].slice(r))))}(r,{section:a,rowIndex:c+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.rowIndex;return Object(q.a)({},n,e[n].filter(function(e,t){return t!==r}))}(n,{section:o,rowIndex:a}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.columnIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.columnIndex;return Object(q.a)({},n,e[n].map(function(e){return{cells:[].concat(Object(U.a)(e.cells.slice(0,r)),[{content:"",tag:"td"}],Object(U.a)(e.cells.slice(r)))}}))}(r,{section:a,columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.columnIndex;return Object(q.a)({},n,e[n].map(function(e){return{cells:e.cells.filter(function(e,t){return t!==r})}}).filter(function(e){return e.cells.length}))}(n,{section:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:e})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(J.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(J.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(J.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(J.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(J.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(J.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.type,r=e.rows;if(!r.length)return null;var o="t".concat(n),a=this.state.selectedCell;return Object($.createElement)(o,null,r.map(function(e,r){var o=e.cells;return Object($.createElement)("tr",{key:r},o.map(function(e,o){var c=e.content,i=e.tag,l=a&&n===a.section&&r===a.rowIndex&&o===a.columnIndex,s={section:n,rowIndex:r,columnIndex:o},u=Y()({"is-selected":l});return Object($.createElement)(i,{key:o,className:u},Object($.createElement)(W.RichText,{className:"wp-block-table__cell-content",value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s)}))}))}))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.backgroundColor,o=e.setBackgroundColor,a=this.state,c=a.initialRowCount,i=a.initialColumnCount,l=t.hasFixedLayout,s=t.head,u=t.body,b=t.foot,m=!s.length&&!u.length&&!b.length,d=this.renderSection;if(m)return Object($.createElement)("form",{onSubmit:this.onCreateTable},Object($.createElement)(X.TextControl,{type:"number",label:Object(J.__)("Column Count"),value:i,onChange:this.onChangeInitialColumnCount,min:"1"}),Object($.createElement)(X.TextControl,{type:"number",label:Object(J.__)("Row Count"),value:c,onChange:this.onChangeInitialRowCount,min:"1"}),Object($.createElement)(X.Button,{isPrimary:!0,type:"submit"},Object(J.__)("Create")));var h=Y()(n,r.class,{"has-fixed-layout":l,"has-background":!!r.color});return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(X.Toolbar,null,Object($.createElement)(X.DropdownMenu,{icon:"editor-table",label:Object(J.__)("Edit table"),controls:this.getTableControls()}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Table Settings"),className:"blocks-table-settings"},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Fixed width table cells"),checked:!!l,onChange:this.onChangeFixedLayout})),Object($.createElement)(W.PanelColorSettings,{title:Object(J.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:r.color,onChange:o,label:Object(J.__)("Background Color"),disableCustomColors:!0,colors:co}]})),Object($.createElement)("table",{className:h},Object($.createElement)(d,{type:"head",rows:s}),Object($.createElement)(d,{type:"body",rows:u}),Object($.createElement)(d,{type:"foot",rows:b})))}}]),t}($.Component),so=io("backgroundColor")(lo),uo={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)()},td:{allowEmpty:!0,children:Object(G.getPhrasingContentSchema)()}}}},bo={table:{children:{thead:{allowEmpty:!0,children:uo},tfoot:{allowEmpty:!0,children:uo},tbody:{allowEmpty:!0,children:uo}}}};function mo(e){return{type:"array",default:[],source:"query",selector:"t".concat(e," tr"),query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"}}}}}}var ho="core/table",po={title:Object(J.__)("Table"),description:Object(J.__)("Insert a table — perfect for sharing charts and data."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:mo("head"),body:mo("body"),foot:mo("foot")},styles:[{name:"regular",label:Object(J._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(J.__)("Stripes")}],supports:{align:!0},transforms:{from:[{type:"raw",selector:"table",schema:bo}]},edit:so,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,a=t.foot,c=t.backgroundColor;if(!r.length&&!o.length&&!a.length)return null;var i=Object(W.getColorClassName)("background-color",c),l=Y()(i,{"has-fixed-layout":n,"has-background":!!i}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object($.createElement)(r,null,n.map(function(e,t){var n=e.cells;return Object($.createElement)("tr",{key:t},n.map(function(e,t){var n=e.content,r=e.tag;return Object($.createElement)(W.RichText.Content,{tagName:r,value:n,key:t})}))}))};return Object($.createElement)("table",{className:l},Object($.createElement)(s,{type:"head",rows:r}),Object($.createElement)(s,{type:"body",rows:o}),Object($.createElement)(s,{type:"foot",rows:a}))}},go="core/template",Oo={title:Object(J.__)("Reusable Template"),category:"reusable",description:Object(J.__)("Template block used as a container."),icon:Object($.createElement)(X.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object($.createElement)(X.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object($.createElement)(X.G,null,Object($.createElement)(X.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),supports:{customClassName:!1,html:!1,inserter:!1},edit:function(){return Object($.createElement)(W.InnerBlocks,null)},save:function(){return Object($.createElement)(W.InnerBlocks.Content,null)}},jo="core/text-columns",fo={supports:{inserter:!1},title:Object(J.__)("Text Columns (deprecated)"),description:Object(J.__)("This block is deprecated. Please use the Columns block instead."),icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(G.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map(function(e){var t=e.children;return Object(G.createBlock)("core/column",{},[Object(G.createBlock)("core/paragraph",{content:t})])}))}}]},getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.width,a=t.content,c=t.columns;return ro()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.BlockAlignmentToolbar,{value:o,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,null,Object($.createElement)(X.RangeControl,{label:Object(J.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4}))),Object($.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(c)},Object(Z.times)(c,function(e){return Object($.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object($.createElement)(W.RichText,{tagName:"p",value:Object(Z.get)(a,[e,"children"]),onChange:function(t){n({content:[].concat(Object(U.a)(a.slice(0,e)),[{children:t}],Object(U.a)(a.slice(e+1)))})},placeholder:Object(J.__)("New Column")}))})))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object($.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(Z.times)(o,function(e){return Object($.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object($.createElement)(W.RichText.Content,{tagName:"p",value:Object(Z.get)(r,[e,"children"])}))}))}},vo="core/verse",yo={title:Object(J.__)("Verse"),description:Object(J.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.Path,{d:"M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z"})),category:"formatting",keywords:[Object(J.__)("poetry")],attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(G.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.mergeBlocks,a=t.textAlign,c=t.content;return Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(W.AlignmentToolbar,{value:a,onChange:function(e){n({textAlign:e})}})),Object($.createElement)(W.RichText,{tagName:"pre",value:c,onChange:function(e){n({content:e})},style:{textAlign:a},placeholder:Object(J.__)("Write…"),wrapperClassName:r,onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object($.createElement)(W.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})},merge:function(e,t){return{content:e.content+t.content}}},ko=Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object($.createElement)(X.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"})),wo=["video"],Co=["image"],Eo=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object($.createRef)(),e.posterImageButton=Object($.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(ce.a)(Object(ce.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(ce.a)(Object(ce.a)(e))),e.onSelectPoster=e.onSelectPoster.bind(Object(ce.a)(Object(ce.a)(e))),e.onRemovePoster=e.onRemovePoster.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=t.setAttributes,a=n.id,c=n.src,i=void 0===c?"":c;if(!a&&Object(Oe.isBlobURL)(i)){var l=Object(Oe.getBlobByURL)(i);l&&Object(W.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(je.a)(e,1)[0].url;o({src:t})},onError:function(t){e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:wo})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(q.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=We({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=this.props,b=u.setAttributes,m=u.isSelected,d=u.className,h=u.noticeOperations,p=u.noticeUI,g=this.state.editing,O=function(){e.setState({editing:!0})};return g?Object($.createElement)(W.MediaPlaceholder,{icon:Object($.createElement)(W.BlockIcon,{icon:ko}),className:d,onSelect:function(t){if(!t||!t.url)return b({src:void 0,id:void 0}),void O();b({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:wo,value:this.props.attributes,notices:p,onError:h.createErrorNotice}):Object($.createElement)($.Fragment,null,Object($.createElement)(W.BlockControls,null,Object($.createElement)(X.Toolbar,null,Object($.createElement)(X.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(J.__)("Edit video"),onClick:O,icon:"edit"}))),Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Video Settings")},Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:a}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:c}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:o}),Object($.createElement)(X.SelectControl,{label:Object(J.__)("Preload"),value:l,onChange:function(e){return b({preload:e})},options:[{value:"auto",label:Object(J.__)("Auto")},{value:"metadata",label:Object(J.__)("Metadata")},{value:"none",label:Object(J.__)("None")}]}),Object($.createElement)(W.MediaUploadCheck,null,Object($.createElement)(X.BaseControl,{className:"editor-video-poster-control",label:Object(J.__)("Poster Image")},Object($.createElement)(W.MediaUpload,{title:Object(J.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:Co,render:function(t){var n=t.open;return Object($.createElement)(X.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton},e.props.attributes.poster?Object(J.__)("Replace image"):Object(J.__)("Select Poster Image"))}}),!!this.props.attributes.poster&&Object($.createElement)(X.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(J.__)("Remove Poster Image")))))),Object($.createElement)("figure",{className:d},Object($.createElement)(X.Disabled,null,Object($.createElement)("video",{controls:o,poster:i,src:s,ref:this.videoPlayer})),(!W.RichText.isEmpty(r)||m)&&Object($.createElement)(W.RichText,{tagName:"figcaption",placeholder:Object(J.__)("Write caption…"),value:r,onChange:function(e){return b({caption:e})},inlineToolbar:!0})))}}]),t}($.Component),_o=Object(X.withNotices)(Eo),xo="core/video",So={title:Object(J.__)("Video"),description:Object(J.__)("Embed a video from your media library or upload a new one."),icon:ko,keywords:[Object(J.__)("movie")],category:"common",attributes:{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"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(G.createBlock)("core/video",{src:Object(Oe.createBlobURL)(t)})}}]},supports:{align:!0},edit:_o,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src;return Object($.createElement)("figure",null,s&&Object($.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s}),!W.RichText.isEmpty(r)&&Object($.createElement)(W.RichText.Content,{tagName:"figcaption",value:r}))}},To=function(e){function t(){var e;return Object(te.a)(this,t),(e=Object(re.a)(this,Object(oe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(ce.a)(Object(ce.a)(e))),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(ce.a)(Object(ce.a)(e))),e}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(Z.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(J.__)("- Select -"),value:""},n=Object(Z.map)(e,function(e){return{value:e.slug,label:e.name}});return[t].concat(Object(U.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,r=this.getTaxonomyOptions(),o=Object($.createElement)(W.InspectorControls,null,Object($.createElement)(X.PanelBody,{title:Object(J.__)("Tag Cloud Settings")},Object($.createElement)(X.SelectControl,{label:Object(J.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object($.createElement)(X.ToggleControl,{label:Object(J.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object($.createElement)($.Fragment,null,o,Object($.createElement)(X.ServerSideRender,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}($.Component),No=Object(le.withSelect)(function(e){return{taxonomies:e("core").getTaxonomies()}})(To),Ro="core/tag-cloud",Bo={title:Object(J.__)("Tag Cloud"),description:Object(J.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:No,save:function(){return null}},Ao=window.wp;var Po=function(e){function t(e){var n;return Object(te.a)(this,t),(n=Object(re.a)(this,Object(oe.a)(t).call(this,e))).initialize=n.initialize.bind(Object(ce.a)(Object(ce.a)(n))),n.onSetup=n.onSetup.bind(Object(ce.a)(Object(ce.a)(n))),n.focus=n.focus.bind(Object(ce.a)(Object(ce.a)(n))),n}return Object(ae.a)(t,e),Object(ne.a)(t,[{key:"componentDidMount",value:function(){var e=window.wpEditorL10n.tinymce,t=e.baseURL,n=e.suffix;window.tinymce.EditorManager.overrideDefaults({base_url:t,suffix:n}),"complete"===document.readyState?this.initialize():window.addEventListener("DOMContentLoaded",this.initialize)}},{key:"componentWillUnmount",value:function(){window.addEventListener("DOMContentLoaded",this.initialize),Ao.oldEditor.remove("editor-".concat(this.props.clientId))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.clientId,r=t.attributes.content,o=window.tinymce.get("editor-".concat(n));e.attributes.content!==r&&o.setContent(r||"")}},{key:"initialize",value:function(){var e=this.props.clientId,t=window.wpEditorL10n.tinymce.settings;Ao.oldEditor.initialize("editor-".concat(e),{tinymce:Object(K.a)({},t,{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(e),setup:this.onSetup})})}},{key:"onSetup",value:function(e){var t,n=this,r=this.props,o=r.attributes.content,a=r.setAttributes,c=this.ref;this.editor=e,o&&e.on("loadContent",function(){return e.setContent(o)}),e.on("blur",function(){return t=e.selection.getBookmark(2,!0),a({content:e.getContent()}),e.once("focus",function(){t&&e.selection.moveToBookmark(t)}),!1}),e.on("mousedown touchstart",function(){t=null}),e.on("keydown",function(t){t.keyCode!==jt.BACKSPACE&&t.keyCode!==jt.DELETE||!function(e){var t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===jt.F10&&t.stopPropagation()}),e.addButton("kitchensink",{tooltip:Object(J._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(c,"has-advanced-toolbar",t)}}),e.on("init",function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(c,"has-advanced-toolbar")}),e.addButton("wp_add_media",{tooltip:Object(J.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())})}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object($.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(J.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object($.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}($.Component),Io="core/freeform",Lo={title:Object(J._x)("Classic","block title"),description:Object(J.__)("Use the classic WordPress editor."),icon:Object($.createElement)(X.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object($.createElement)(X.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object($.createElement)(X.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object($.createElement)(X.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object($.createElement)(X.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object($.createElement)(X.Rect,{x:"17",y:"8",width:"2",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},edit:Po,save:function(e){var t=e.attributes.content;return Object($.createElement)($.RawHTML,null,t)}};n.d(t,"registerCoreBlocks",function(){return Mo});var Mo=function(){[r,o,a,i,w,c,A,l,s,u,b,m,d,h,p,g,O].concat(Object(U.a)(Ln),Object(U.a)(Mn),[j,window.wp&&window.wp.oldEditor?V:null,f,v,y,k,C,E,_,x,S,N,R,B,T,P,I,L,F,M,z,H,D]).forEach(function(e){if(e){var t=e.name,n=e.settings;Object(G.registerBlockType)(t,n)}}),Object(G.setDefaultBlockName)(pe),window.wp&&window.wp.oldEditor&&Object(G.setFreeformContentHandlerName)(Io),Object(G.setUnregisteredTypeHandlerName)(kr)}},31:function(e,t){!function(){e.exports=this.wp.apiFetch}()},32:function(e,t){!function(){e.exports=this.wp.blob}()},33:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},34:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},35:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},37:function(e,t){!function(){e.exports=this.wp.viewport}()},38:function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t){!function(){e.exports=this.wp.url}()},,,,,function(e,t,n){"use strict";var r=n(37);var o=n(38);function a(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}(e,t)||Object(o.a)()}n.d(t,"a",function(){return a})},function(e,t){!function(){e.exports=this.moment}()},,,function(e,t,n){"use strict";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 o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"g",function(){return i}),n.d(t,"l",function(){return l}),n.d(t,"k",function(){return s}),n.d(t,"o",function(){return u}),n.d(t,"d",function(){return b}),n.d(t,"f",function(){return d}),n.d(t,"n",function(){return m}),n.d(t,"i",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"m",function(){return g}),n.d(t,"h",function(){return f}),n.d(t,"j",function(){return O}),n.d(t,"a",function(){return v});var r=n(0),o=n(4),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),c=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:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(r.createElement)(o.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),l=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(o.Path,{d:"m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"})),s={foreground:"#1da1f2",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},u={foreground:"#ff0000",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},b={foreground:"#3b5998",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},d=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),m={foreground:"#0073AA",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},h={foreground:"#1db954",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},p=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),g={foreground:"#1ab7ea",src:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.G,null,Object(r.createElement)(o.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},f=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),O={foreground:"#35465c",src:Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},v=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(r.createElement)(o.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(r.createElement)(o.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},,function(e,t){!function(){e.exports=this.wp.viewport}()},function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=B(e,360),t=B(t,100),n=B(n,100),0===t)r=o=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=c(l,i,e+1/3),o=c(l,i,e),a=c(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,l),b=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var m,h,p;return n=N(n),{ok:b,format:e.format||d,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=i++}function m(e,t,n){e=B(e,255),t=B(t,255),n=B(n,255);var r,o,a=u(e,t,n),c=s(e,t,n),i=(a+c)/2;if(a==c)r=o=0;else{var l=a-c;switch(o=i>.5?l/(2-a-c):l/(a+c),a){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(d(r));return a}function T(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(d({h:r,s:o,v:a})),a=(a+i)%1;return c}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(z(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*B(this._r,255))+"%",g:l(100*B(this._g,255))+"%",b:l(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*B(this._r,255))+"%, "+l(100*B(this._g,255))+"%, "+l(100*B(this._b,255))+"%)":"rgba("+l(100*B(this._r,255))+"%, "+l(100*B(this._g,255))+"%, "+l(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:b(),g:b(),b:b()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),a=n/100;return d({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,a=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},d.mostReadable=function(e,t,n){var r,o,a,c,i=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,c=n.size;for(var s=0;sl&&(l=r,i=d(t[s]));return d.isReadable(e,i,{level:a,size:c})||!o?i:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var R=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(R);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return s(1,u(0,e))}function P(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function z(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return P(e)/255}var D,F,U,V=(F="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",U="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},,,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t){!function(){e.exports=this.wp.date}()},,,function(e,t,n){"use strict";n.d(t,"e",function(){return h}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return O});var r=n(15),o=n(7),a=n(17),c=n(0),i=n(85),l=n(58),s=n(2),u=n(68),b=n.n(u),d=n(14),m=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some(function(t){return e.match(t)})},h=function(e){return Object(s.includes)(e,'class="wp-embedded-content" data-secret')},p=function(e){var t=e.thumbnail_url?e.thumbnail_url:e.url,n=Object(c.createElement)("p",null,Object(c.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(c.renderToString)(n)},g=function(e,t){var n=e.preview,r=e.name,c=e.attributes.url;if(c){var s=function(e){for(var t=[].concat(Object(a.a)(i.a),Object(a.a)(i.b)),n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var o={"wp-has-aspect-ratio":!1},a=0;a=m.ratio)return b()(t,(d={},Object(r.a)(d,m.className,n),Object(r.a)(d,"wp-has-aspect-ratio",n),d))}return t}function O(e,t){var n=Object(c.createElement)("a",{href:e},e);t(Object(d.createBlock)("core/paragraph",{content:Object(c.renderToString)(n)}))}},,,,,function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return c});var r=["facebook.com","smugmug.com"],o=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a="core/embed",c="core-embed/wordpress"},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,function(e,t){!function(){e.exports=this.wp.autop}()},,function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -20,4 +20,6 @@ this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},j=n(104);function f(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?A+="x":A+=B[P];if(!A.match(d)){var L=N.slice(0,x),M=N.slice(x+1),z=B.match(h);z&&(L.push(z[1]),M.unshift(z[2])),M.length&&(f="/"+M.join(".")+f),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==f[0]&&(f="/"+f))}if(!p[k])for(x=0,R=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=w.slice(-1)[0],_=(n.host||e.host||w.length>1)&&("."===E||".."===E)||""===E,x=0,S=w.length;S>=0;S--)"."===(E=w[S])?w.splice(S,1):".."===E?(w.splice(S,1),x++):x&&(w.splice(S,1),x--);if(!y&&!k)for(;x--;x)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var T,N=""===w[0]||w[0]&&"/"===w[0].charAt(0);C&&(n.hostname=n.host=N?"":w.length?w.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&w.length)&&!N&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},8:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(15);function o(e){for(var t=1;t",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),d=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(120);function v(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a127?B+="x":B+=N[I];if(!B.match(m)){var L=R.slice(0,x),M=R.slice(x+1),z=N.match(h);z&&(L.push(z[1]),M.unshift(z[2])),M.length&&(v="/"+M.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var H=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+H,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!p[_])for(x=0,A=u.length;x0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=w.slice(-1)[0],E=(n.host||e.host||w.length>1)&&("."===C||".."===C)||""===C,x=0,S=w.length;S>=0;S--)"."===(C=w[S])?w.splice(S,1):".."===C?(w.splice(S,1),x++):x&&(w.splice(S,1),x--);if(!y&&!_)for(;x--;x)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),E&&"/"!==w.join("/").substr(-1)&&w.push("");var T,R=""===w[0]||w[0]&&"/"===w[0].charAt(0);k&&(n.hostname=n.host=R?"":w.length?w.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&w.length)&&!R&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return i});var r=n(36),o=n(1),a=n(14),c=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:r.k,keywords:["tweet"],description:Object(o.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:r.o,keywords:[Object(o.__)("music"),Object(o.__)("video")],description:Object(o.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:r.d,description:Object(o.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:r.f,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:r.n,keywords:[Object(o.__)("post"),Object(o.__)("blog")],responsive:!1,description:Object(o.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:r.i,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:r.e,keywords:[Object(o.__)("image")],description:Object(o.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:r.m,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],i=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:r.l,description:Object(o.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:r.c,description:Object(o.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:r.l,description:Object(o.__)("Embed CollegeHumor content.")},patterns:[/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:r.c,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(a.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(o.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:r.l,description:Object(o.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:r.l,description:Object(o.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:r.g,description:Object(o.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:r.c,description:Object(o.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:r.c,description:Object(o.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:r.c,description:Object(o.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:r.b,keywords:[Object(o.__)("music"),Object(o.__)("audio")],description:Object(o.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:r.c,description:Object(o.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:r.h,description:Object(o.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:r.b,description:Object(o.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:r.l,description:Object(o.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:r.c,description:Object(o.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:r.c,description:Object(o.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:r.g,description:Object(o.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:r.b,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:r.c,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(a.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(o.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:r.l,description:Object(o.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:r.j,description:Object(o.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:r.l,keywords:[Object(o.__)("video")],description:Object(o.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:r.l,description:Object(o.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:r.a,keywords:[Object(o.__)("ebook")],responsive:!1,description:Object(o.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}]},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(85),a=n(36),c=n(15),i=n(0),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(53),p=n(1),g=n(4),f=n(8),O=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,c=e.toggleResponsive,l=e.switchBackToURLInput;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(f.BlockControls,null,Object(i.createElement)(g.Toolbar,null,n&&Object(i.createElement)(g.IconButton,{className:"components-toolbar__control",label:Object(p.__)("Edit URL"),icon:"edit",onClick:l}))),r&&t&&Object(i.createElement)(f.InspectorControls,null,Object(i.createElement)(g.PanelBody,{title:Object(p.__)("Media Settings"),className:"blocks-responsive"},Object(i.createElement)(g.ToggleControl,{label:Object(p.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},v=function(){return Object(i.createElement)("div",{className:"wp-block-embed is-loading"},Object(i.createElement)(g.Spinner,null),Object(i.createElement)("p",null,Object(p.__)("Embedding…")))},j=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,c=e.cannotEmbed,l=e.fallback,s=e.tryAgain;return Object(i.createElement)(g.Placeholder,{icon:Object(i.createElement)(f.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed"},Object(i.createElement)("form",{onSubmit:o},Object(i.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(p.__)("Enter URL to embed here…"),onChange:a}),Object(i.createElement)(g.Button,{isLarge:!0,type:"submit"},Object(p._x)("Embed","button label")),c&&Object(i.createElement)("p",{className:"components-placeholder__error"},Object(p.__)("Sorry, this content could not be embedded."),Object(i.createElement)("br",null),Object(i.createElement)(g.Button,{isLarge:!0,onClick:s},Object(p._x)("Try again","button label"))," ",Object(i.createElement)(g.Button,{isLarge:!0,onClick:l},Object(p._x)("Convert to link","button label")))))},y=n(58),_=n(84),w=n(2),k=n(68),C=n.n(k),E=n(6),x=window.FocusEvent,S=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(m.a)(Object(m.a)(e))),e.node=Object(i.createRef)(),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new x("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(i.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(i.Component),T=Object(E.withGlobalEvents)({blur:"checkFocus"})(S),R=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(m.a)(Object(m.a)(e))),e.state={interactive:!1},e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e=this.props,t=e.preview,n=e.url,r=e.type,o=e.caption,a=e.onCaptionChange,c=e.isSelected,l=e.className,s=e.icon,u=e.label,b=t.scripts,d=this.state.interactive,m="photo"===r?Object(h.d)(t):t.html,O=Object(_.parse)(n).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(w.includes)(y.c,v),k=Object(p.sprintf)(Object(p.__)("Embedded content from %s"),v),E=C()(r,l,"wp-block-embed__wrapper"),x="wp-embed"===r?Object(i.createElement)(T,{html:m}):Object(i.createElement)("div",{className:"wp-block-embed__wrapper"},Object(i.createElement)(g.SandBox,{html:m,scripts:b,title:k,type:E,onFocus:this.hideOverlay}),!d&&Object(i.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(i.createElement)("figure",{className:C()(l,"wp-block-embed",{"is-type-video":"video"===r})},j?Object(i.createElement)(g.Placeholder,{icon:Object(i.createElement)(f.BlockIcon,{icon:s,showColors:!0}),label:u},Object(i.createElement)("p",{className:"components-placeholder__error"},Object(i.createElement)("a",{href:n},n)),Object(i.createElement)("p",{className:"components-placeholder__error"},Object(p.sprintf)(Object(p.__)("Embedded content from %s can't be previewed in the editor."),v))):x,(!f.RichText.isEmpty(o)||c)&&Object(i.createElement)(f.RichText,{tagName:"figcaption",placeholder:Object(p.__)("Write caption…"),value:o,onChange:a,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(i.Component);var A=n(5),N={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function B(e){var t=e.title,n=e.description,o=e.icon,a=e.category,g=void 0===a?"embed":a,y=e.transforms,_=e.keywords,k=void 0===_?[]:_,x=e.supports,S=void 0===x?{}:x,T=e.responsive,B=void 0===T||T,I=n||Object(p.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),P=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){function o(){var e;return Object(l.a)(this,o),(e=Object(u.a)(this,Object(b.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(m.a)(Object(m.a)(e))),e.setUrl=e.setUrl.bind(Object(m.a)(Object(m.a)(e))),e.getAttributesFromPreview=e.getAttributesFromPreview.bind(Object(m.a)(Object(m.a)(e))),e.setAttributesFromPreview=e.setAttributesFromPreview.bind(Object(m.a)(Object(m.a)(e))),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(m.a)(Object(m.a)(e))),e.toggleResponsive=e.toggleResponsive.bind(Object(m.a)(Object(m.a)(e))),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(m.a)(Object(m.a)(e))),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(d.a)(o,r),Object(s.a)(o,[{key:"handleIncomingPreview",value:function(){var e=this.props.attributes.allowResponsive;this.setAttributesFromPreview();var t=Object(h.a)(this.props,this.getAttributesFromPreview(this.props.preview,e));t&&this.props.onReplace(t)}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return;this.handleIncomingPreview()}}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getAttributesFromPreview",value:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={},a=t.type,c=void 0===a?"rich":a,i=t.html,l=t.provider_name,s=Object(w.kebabCase)(Object(w.toLower)(""!==l?l:e));return Object(h.e)(i)&&(c="wp-embed"),(i||"photo"===c)&&(o.type=c,o.providerNameSlug=s),o.className=Object(h.c)(i,this.props.attributes.className,n&&r),o}},{key:"setAttributesFromPreview",value:function(){var e=this.props,t=e.setAttributes,n=e.preview,r=this.props.attributes.allowResponsive;t(this.getAttributesFromPreview(n,r))}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(p.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(p.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,a=!t;this.props.setAttributes({allowResponsive:a,className:Object(h.c)(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,l=this.props.attributes,s=l.caption,u=l.type,b=l.allowResponsive,d=this.props,m=d.fetching,g=d.setAttributes,f=d.isSelected,y=d.className,_=d.preview,w=d.cannotEmbed,k=d.themeSupportsResponsive,C=d.tryAgain;if(m)return Object(i.createElement)(v,null);var E=Object(p.sprintf)(Object(p.__)("%s URL"),e);return!_||w||c?Object(i.createElement)(j,{icon:t,label:E,onSubmit:this.setUrl,value:a,cannotEmbed:w,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Object(h.b)(a,r.props.onReplace)},tryAgain:C}):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,{showEditButton:_&&!w,themeSupportsResponsive:k,blockSupportsResponsive:n,allowResponsive:b,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(i.createElement)(R,{preview:_,className:y,url:a,type:u,caption:s,onCaptionChange:function(e){return g({caption:e})},isSelected:f,icon:t,label:E}))}}]),o}(i.Component)}(t,o,B);return{title:t,description:I,icon:o,category:g,keywords:k,attributes:N,supports:Object(r.a)({align:!0},S),transforms:y,edit:Object(E.compose)(Object(A.withSelect)(function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),d=!!l&&void 0===l.type&&!1===l.html,m=!!l&&l.data&&404===l.data.status,h=!!l&&!d&&!m,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}}),Object(A.withDispatch)(function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}}))(P),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=C()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},Object(i.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:N,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,l=n.providerNameSlug;if(!r)return null;var s=C()("wp-block-embed",(t={},Object(c.a)(t,"is-type-".concat(a),a),Object(c.a)(t,"is-provider-".concat(l),l),t));return Object(i.createElement)("figure",{className:s},"\n".concat(r,"\n"),!f.RichText.isEmpty(o)&&Object(i.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var I=n(14);n.d(t,"name",function(){return P}),n.d(t,"settings",function(){return L}),n.d(t,"common",function(){return M}),n.d(t,"others",function(){return z});var P="core/embed",L=B({title:Object(p._x)("Embed","block title"),description:Object(p.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:a.c,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(I.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),M=o.a.map(function(e){return Object(r.a)({},e,{settings:B(e.settings)})}),z=o.b.map(function(e){return Object(r.a)({},e,{settings:B(e.settings)})})},,,,,,,function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=36,u=1,b=26,d=38,m=700,h=72,p=128,g="-",f=/^xn--/,O=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,_=Math.floor,w=String.fromCharCode;function k(e){throw new RangeError(j[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(v,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,n){var r=0;for(e=n?_(e/m):e>>1,e+=_(e/t);e>y*b>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+d))}function A(e){var t,n,r,o,a,c,i,d,m,f,O,v=[],j=e.length,y=0,w=p,C=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r=128&&k("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=j&&k("invalid-input"),((d=(O=e.charCodeAt(o++))-48<10?O-22:O-65<26?O-65:O-97<26?O-97:s)>=s||d>_((l-y)/c))&&k("overflow"),y+=d*c,!(d<(m=i<=C?u:i>=C+b?b:i-C));i+=s)c>_(l/(f=s-m))&&k("overflow"),c*=f;C=R(y-a,t=v.length+1,0==a),_(y/t)>l-w&&k("overflow"),w+=_(y/t),y%=t,v.splice(y++,0,w)}return S(v)}function N(e){var t,n,r,o,a,c,i,d,m,f,O,v,j,y,C,E=[];for(v=(e=x(e)).length,t=p,n=0,a=h,c=0;c=t&&O_((l-n)/(j=r+1))&&k("overflow"),n+=(i-t)*j,t=i,c=0;cl&&k("overflow"),O==t){for(d=n,m=s;!(d<(f=m<=a?u:m>=a+b?b:m-a));m+=s)C=d-f,y=s-f,E.push(w(T(f+C%y,0))),d=_(C/y);E.push(w(T(d,0))),a=R(n,j,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.4.1",ucs2:{decode:x,encode:S},decode:A,encode:N,toASCII:function(e){return E(e,function(e){return O.test(e)?"xn--"+N(e):e})},toUnicode:function(e){return E(e,function(e){return f.test(e)?A(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(118)(e),n(59))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(121),t.encode=t.stringify=n(122)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(b=p.substr(0,g),d=p.substr(g+1)):(b=p,d=""),m=decodeURIComponent(b),h=decodeURIComponent(d),r(c,m)?o(c[m])?c[m].push(h):c[m]=[c[m],h]:c[m]=h}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(c(e),function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[c]))}).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r2?i-2:0),s=2;s1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===m.F10&&t.stopPropagation()}),e.addButton("kitchensink",{tooltip:Object(o._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(i,"has-advanced-toolbar",t)}}),e.on("init",function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(i,"has-advanced-toolbar")}),e.addButton("wp_add_media",{tooltip:Object(o.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())})}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(r.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(o.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(r.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(r.Component);n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var g="core/freeform",f={title:Object(o._x)("Classic","block title"),description:Object(o.__)("Use the classic WordPress editor."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(r.createElement)(a.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(r.createElement)(a.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"17",y:"8",width:"2",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},edit:p,save:function(e){var t=e.attributes.content;return Object(r.createElement)(r.RawHTML,null,t)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var r,o=n(7),a=n(21),c=n(17),i=n(15),l=n(0),s=n(2),u=n(1),b=n(14),d=n(8),m=n(20),h=n(4),p=(r={},Object(i.a)(r,"value",{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""}),Object(i.a)(r,"citation",{type:"string",source:"html",selector:"cite",default:""}),Object(i.a)(r,"align",{type:"string"}),r),g="core/quote",f={title:Object(u.__)("Quote"),description:Object(u.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:Object(l.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(h.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(h.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"})),category:"common",keywords:[Object(u.__)("blockquote")],attributes:p,styles:[{name:"default",label:Object(u._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(u._x)("Large","block style")}],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(b.createBlock)("core/quote",{value:Object(m.toHTMLString)({value:Object(m.join)(e.map(function(e){var t=e.content;return Object(m.create)({html:t})}),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(b.createBlock)("core/quote",{value:"

    ".concat(t,"

    ")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(b.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(b.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:{blockquote:{children:{p:{children:Object(b.getPhrasingContentSchema)()},cite:{children:Object(b.getPhrasingContentSchema)()}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"

    "!==t&&r.push.apply(r,Object(c.a)(Object(m.split)(Object(m.create)({html:t,multilineTag:"p"}),"\u2028").map(function(e){return Object(b.createBlock)("core/paragraph",{content:Object(m.toHTMLString)({value:e})})}))),n&&"

    "!==n&&r.push(Object(b.createBlock)("core/paragraph",{content:n})),0===r.length?Object(b.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(a.a)(e,["value","citation"]);if("

    "===t)return Object(b.createBlock)("core/heading",{content:n});var c=Object(m.split)(Object(m.create)({html:t,multilineTag:"p"}),"\u2028"),i=Object(b.createBlock)("core/heading",{content:Object(m.toHTMLString)({value:c[0]})});if(!n&&1===c.length)return i;var l=c.slice(1);return[i,Object(b.createBlock)("core/quote",Object(o.a)({},r,{citation:n,value:Object(m.toHTMLString)({value:l.length?Object(m.join)(c.slice(1),"\u2028"):Object(m.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(b.createBlock)("core/pullquote",{value:t,citation:n})}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.align,s=t.value,b=t.citation;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(d.BlockControls,null,Object(l.createElement)(d.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(l.createElement)("blockquote",{className:c,style:{textAlign:i}},Object(l.createElement)(d.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!b||0===b.length;!e&&t&&a([])},placeholder:Object(u.__)("Write quote…")}),(!d.RichText.isEmpty(b)||r)&&Object(l.createElement)(d.RichText,{identifier:"citation",value:b,onChange:function(e){return n({citation:e})},placeholder:Object(u.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(l.createElement)("blockquote",{style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return n&&"

    "!==n?Object(o.a)({},e,{value:e.value+n,citation:e.citation+r}):Object(o.a)({},e,{citation:e.citation+r})},deprecated:[{attributes:Object(o.a)({},p,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(o.a)({},Object(s.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(l.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(o.a)({},p,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=t.style;return Object(l.createElement)("blockquote",{className:"blocks-quote-style-".concat(a),style:{textAlign:n||null}},Object(l.createElement)(d.RichText.Content,{multiline:!0,value:r}),!d.RichText.isEmpty(o)&&Object(l.createElement)(d.RichText.Content,{tagName:"footer",value:o}))}}]}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var r=n(0),o=n(2),a=n(16),c=n.n(a),i=n(41),l=n.n(i),s=n(1),u=n(4),b=n(14),d=n(8),m=["core/column"],h=l()(function(e){return Object(o.times)(e,function(){return["core/column"]})});function p(e){var t,n=p.doc;n||(n=document.implementation.createHTMLDocument(""),p.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var g="core/columns",f={title:Object(s.__)("Columns"),icon:Object(r.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(u.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(u.G,null,Object(r.createElement)(u.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"}))),category:"layout",attributes:{columns:{type:"number",default:2}},description:Object(s.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},deprecated:[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some(function(e){return/layout-column-\d+/.test(e.originalContent)})&&t.some(function(e){return void 0!==p(e.originalContent)})},migrate:function(e,t){return[e,t.reduce(function(e,t){var n=p(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e},[]).map(function(e){return Object(b.createBlock)("core/column",{},e)})]},save:function(e){var t=e.attributes.columns;return Object(r.createElement)("div",{className:"has-".concat(t,"-columns")},Object(r.createElement)(d.InnerBlocks.Content,null))}}],edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.columns,i=c()(o,"has-".concat(a,"-columns"));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(d.InspectorControls,null,Object(r.createElement)(u.PanelBody,null,Object(r.createElement)(u.RangeControl,{label:Object(s.__)("Columns"),value:a,onChange:function(e){n({columns:e})},min:2,max:6,required:!0}))),Object(r.createElement)("div",{className:i},Object(r.createElement)(d.InnerBlocks,{template:h(a),templateLock:"all",allowedBlocks:m})))},save:function(e){var t=e.attributes.columns;return Object(r.createElement)("div",{className:"has-".concat(t,"-columns")},Object(r.createElement)(d.InnerBlocks.Content,null))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var r=n(0),o=n(4),a=n(1),c=n(8),i="core/column",l={title:Object(a.__)("Column"),parent:["core/columns"],icon:Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"})),description:Object(a.__)("A single column within a columns block."),category:"common",supports:{inserter:!1,reusable:!1,html:!1},edit:function(){return Object(r.createElement)(c.InnerBlocks,{templateLock:!1})},save:function(){return Object(r.createElement)("div",null,Object(r.createElement)(c.InnerBlocks.Content,null))}}},function(e,t,n){ +/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ +e.exports=function(){"use strict";function e(e,t){for(var n=0;nc?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,c=0,i=0,l=0;lr?-1:n===r?0:1}),d=t(b[0],5),m=d[0],h=d[1],p=d[2],g=d[3],f=d[4];return g?[Math.round(m/g),Math.round(h/g),Math.round(p/g),Math.round(g/f)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",c),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){var t=(299*e[0]+587*e[1]+114*e[2])/1e3;return t<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),a&&e(r,a),n;var r,o,a}()}()},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var r=n(21),o=n(17),a=n(7),c=n(0),i=n(2),l=n(1),s=n(14),u=n(8),b=n(20),d=n(4),m=Object(a.a)({},Object(s.getPhrasingContentSchema)(),{ul:{},ol:{attributes:["type"]}});["ul","ol"].forEach(function(e){m[e].children={li:{children:m}}});var h={className:!1},p={ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},g="core/list",f={title:Object(l.__)("List"),description:Object(l.__)("Create a bulleted or numbered list."),icon:Object(c.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(d.G,null,Object(c.createElement)(d.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"}))),category:"common",keywords:[Object(l.__)("bullet list"),Object(l.__)("ordered list"),Object(l.__)("numbered list")],attributes:p,supports:h,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(s.createBlock)("core/list",{values:Object(b.toHTMLString)({value:Object(b.join)(e.map(function(t){var n=t.content,r=Object(b.create)({html:n});return e.length>1?r:Object(b.replace)(r,/\n/g,b.LINE_SEPARATOR)}),b.LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(s.createBlock)("core/list",{values:Object(b.toHTMLString)({value:Object(b.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:{ol:m.ol,ul:m.ul},transform:function(e){return Object(s.createBlock)("core/list",Object(a.a)({},Object(s.getBlockAttributes)("core/list",e.outerHTML),{ordered:"OL"===e.nodeName}))}}].concat(Object(o.a)(["*","-"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(s.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}})),Object(o.a)(["1.","1)"].map(function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(s.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(b.split)(Object(b.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),b.LINE_SEPARATOR).map(function(e){return Object(s.createBlock)("core/paragraph",{content:Object(b.toHTMLString)({value:e})})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(s.createBlock)("core/quote",{value:Object(b.toHTMLString)({value:Object(b.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},deprecated:[{supports:h,attributes:Object(a.a)({},Object(i.omit)(p,["ordered"]),{nodeName:{type:"string",source:"property",selector:"ol,ul",property:"nodeName",default:"UL"}}),migrate:function(e){var t=e.nodeName,n=Object(r.a)(e,["nodeName"]);return Object(a.a)({},n,{ordered:"OL"===t})},save:function(e){var t=e.attributes,n=t.nodeName,r=t.values;return Object(c.createElement)(u.RichText.Content,{tagName:n.toLowerCase(),value:r})}}],merge:function(e,t){var n=t.values;return n&&"
  • "!==n?Object(a.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.insertBlocksAfter,r=e.setAttributes,o=e.mergeBlocks,a=e.onReplace,i=e.className,b=t.ordered,d=t.values;return Object(c.createElement)(u.RichText,{identifier:"values",multiline:"li",tagName:b?"ol":"ul",onChange:function(e){return r({values:e})},value:d,wrapperClassName:"block-library-list",className:i,placeholder:Object(l.__)("Write list…"),onMerge:o,unstableOnSplit:n?function(e,t){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c"!==t&&a.push(Object(s.createBlock)("core/list",{ordered:b,values:t})),r({values:e}),n(a)}:void 0,onRemove:function(){return a([])},onTagNameChange:function(e){return r({ordered:"ol"===e})}})},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=n?"ol":"ul";return Object(c.createElement)(u.RichText.Content,{tagName:o,value:r,multiline:"li"})}}},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(0),o=n(1),a=n(14),c=n(8),i=n(4),l="core/preformatted",s={title:Object(o.__)("Preformatted"),description:Object(o.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(i.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(r.createElement)(i.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(r.createElement)(i.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(r.createElement)(i.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(r.createElement)(i.Rect,{x:"10",y:"10",width:"8",height:"2"})),category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:""}},transforms:{from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(a.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:{pre:{children:Object(a.getPhrasingContentSchema)()}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.mergeBlocks,a=e.setAttributes,i=e.className,l=t.content;return Object(r.createElement)(c.RichText,{tagName:"pre",value:l.replace(/\n/g,"
    "),onChange:function(e){a({content:e})},placeholder:Object(o.__)("Write preformatted text…"),wrapperClassName:i,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(r.createElement)(c.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var r=n(0),o=n(1),a=n(14),c=n(4),i="core/separator",l={title:Object(o.__)("Separator"),description:Object(o.__)("Create a break between ideas or sections with a horizontal separator."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(c.Path,{d:"M19 13H5v-2h14v2z"})),category:"layout",keywords:[Object(o.__)("horizontal-line"),"hr",Object(o.__)("divider")],styles:[{name:"default",label:Object(o.__)("Default"),isDefault:!0},{name:"wide",label:Object(o.__)("Wide Line")},{name:"dots",label:Object(o.__)("Dots")}],transforms:{from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(a.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},edit:function(e){var t=e.className;return Object(r.createElement)("hr",{className:t})},save:function(){return Object(r.createElement)("hr",null)}}},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(0),o=n(66),a=n(1),c=n(4),i=n(8),l=n(6),s="core/shortcode",u={title:Object(a.__)("Shortcode"),description:Object(a.__)("Insert additional custom elements with a WordPress shortcode."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"})),category:"widgets",attributes:{text:{type:"string",source:"html"}},transforms:{from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(o.removep)(Object(o.autop)(n))}}},priority:20}]},supports:{customClassName:!1,className:!1,html:!1},edit:Object(l.withInstanceId)(function(e){var t=e.attributes,n=e.setAttributes,o=e.instanceId,l="blocks-shortcode-input-".concat(o);return Object(r.createElement)("div",{className:"wp-block-shortcode"},Object(r.createElement)("label",{htmlFor:l},Object(r.createElement)(c.Dashicon,{icon:"shortcode"}),Object(a.__)("Shortcode")),Object(r.createElement)(i.PlainText,{className:"input-control",id:l,value:t.text,placeholder:Object(a.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))}),save:function(e){var t=e.attributes;return Object(r.createElement)(r.RawHTML,null,t.text)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return u}),n.d(t,"settings",function(){return b});var r=n(0),o=n(16),a=n.n(o),c=n(1),i=n(8),l=n(4),s=n(6),u="core/spacer",b={title:Object(c.__)("Spacer"),description:Object(c.__)("Add white space between blocks and customize its height."),icon:Object(r.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(l.G,null,Object(r.createElement)(l.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),category:"layout",attributes:{height:{type:"number",default:100}},edit:Object(s.withInstanceId)(function(e){var t=e.attributes,n=e.isSelected,o=e.setAttributes,s=e.toggleSelection,u=e.instanceId,b=t.height,d="block-spacer-height-input-".concat(u);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.ResizableBox,{className:a()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:b},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,n,r){o({height:parseInt(b+r.height,10)}),s(!0)},onResizeStart:function(){s(!1)}}),Object(r.createElement)(i.InspectorControls,null,Object(r.createElement)(l.PanelBody,{title:Object(c.__)("Spacer Settings")},Object(r.createElement)(l.BaseControl,{label:Object(c.__)("Height in pixels"),id:d},Object(r.createElement)("input",{type:"number",id:d,onChange:function(e){o({height:parseInt(e.target.value,10)})},value:b,min:"20",step:"10"})))))}),save:function(e){var t=e.attributes;return Object(r.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return u}),n.d(t,"settings",function(){return b});var r=n(0),o=n(49),a=n.n(o),c=n(1),i=n(14),l=n(8),s=n(4),u="core/subhead",b={title:Object(c.__)("Subheading (deprecated)"),description:Object(c.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),category:"common",supports:{inserter:!1,multiple:!1},attributes:{content:{type:"string",source:"html",selector:"p"},align:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(i.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,i=t.align,s=t.content,u=t.placeholder;return a()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.BlockControls,null,Object(r.createElement)(l.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(r.createElement)(l.RichText,{tagName:"p",value:s,onChange:function(e){n({content:e})},style:{textAlign:i},className:o,placeholder:u||Object(c.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,o=t.content;return Object(r.createElement)(l.RichText.Content,{tagName:"p",style:{textAlign:n},value:o})}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var r=n(0),o=n(1),a=n(8),c=n(4),i="core/template",l={title:Object(o.__)("Reusable Template"),category:"reusable",description:Object(o.__)("Template block used as a container."),icon:Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(r.createElement)(c.G,null,Object(r.createElement)(c.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),supports:{customClassName:!1,html:!1,inserter:!1},edit:function(){return Object(r.createElement)(a.InnerBlocks,null)},save:function(){return Object(r.createElement)(a.InnerBlocks.Content,null)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",function(){return d}),n.d(t,"settings",function(){return m});var r=n(17),o=n(0),a=n(2),c=n(14),i=n(1),l=n(4),s=n(8),u=n(49),b=n.n(u),d="core/text-columns",m={supports:{inserter:!1},title:Object(i.__)("Text Columns (deprecated)"),description:Object(i.__)("This block is deprecated. Please use the Columns block instead."),icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},transforms:{to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(c.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map(function(e){var t=e.children;return Object(c.createBlock)("core/column",{},[Object(c.createBlock)("core/paragraph",{content:t})])}))}}]},getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,c=e.className,u=t.width,d=t.content,m=t.columns;return b()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(s.BlockAlignmentToolbar,{value:u,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(o.createElement)(s.InspectorControls,null,Object(o.createElement)(l.PanelBody,null,Object(o.createElement)(l.RangeControl,{label:Object(i.__)("Columns"),value:m,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(o.createElement)("div",{className:"".concat(c," align").concat(u," columns-").concat(m)},Object(a.times)(m,function(e){return Object(o.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(o.createElement)(s.RichText,{tagName:"p",value:Object(a.get)(d,[e,"children"]),onChange:function(t){n({content:[].concat(Object(r.a)(d.slice(0,e)),[{children:t}],Object(r.a)(d.slice(e+1)))})},placeholder:Object(i.__)("New Column")}))})))},save:function(e){var t=e.attributes,n=t.width,r=t.content,c=t.columns;return Object(o.createElement)("div",{className:"align".concat(n," columns-").concat(c)},Object(a.times)(c,function(e){return Object(o.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(o.createElement)(s.RichText.Content,{tagName:"p",value:Object(a.get)(r,[e,"children"])}))}))}}},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(0),o=n(1),a=n(14),c=n(8),i=n(4),l="core/verse",s={title:Object(o.__)("Verse"),description:Object(o.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(i.Path,{d:"M3 17v4h4l11-11-4-4L3 17zm3 2H5v-1l9-9 1 1-9 9zM21 6l-3-3h-1l-2 2 4 4 2-2V6z"})),category:"formatting",keywords:[Object(o.__)("poetry")],attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(a.createBlock)("core/paragraph",e)}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className,i=e.mergeBlocks,l=t.textAlign,s=t.content;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.BlockControls,null,Object(r.createElement)(c.AlignmentToolbar,{value:l,onChange:function(e){n({textAlign:e})}})),Object(r.createElement)(c.RichText,{tagName:"pre",value:s,onChange:function(e){n({content:e})},style:{textAlign:l},placeholder:Object(o.__)("Write…"),wrapperClassName:a,onMerge:i}))},save:function(e){var t=e.attributes,n=t.textAlign,o=t.content;return Object(r.createElement)(c.RichText.Content,{tagName:"pre",style:{textAlign:n},value:o})},merge:function(e,t){return{content:e.content+t.content}}}},,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(15),o=n(0),a=n(16),c=n.n(a),i=n(2),l=n(14),s=n(8),u=n(1),b=n(19),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=n(3),O=n(4),v=Object(o.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(O.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(o.createElement)(O.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(o.createElement)(O.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),j=["image","video"],y=function(e){function t(){return Object(d.a)(this,t),Object(h.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(g.a)(t,e),Object(m.a)(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(O.Toolbar,null,Object(o.createElement)(s.MediaUpload,{onSelect:n,allowedTypes:j,value:t,render:function(e){var t=e.open;return Object(o.createElement)(O.IconButton,{className:"components-toolbar__control",label:Object(u.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className;return Object(o.createElement)(o.Fragment,null,this.renderToolbarEditButton(),Object(o.createElement)("figure",{className:r},Object(o.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(o.createElement)(o.Fragment,null,this.renderToolbarEditButton(),Object(o.createElement)("figure",{className:n},Object(o.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return Object(o.createElement)(s.MediaPlaceholder,{icon:Object(o.createElement)(s.BlockIcon,{icon:v}),labels:{title:Object(u.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:j})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,a=e.mediaWidth,c=e.commitWidthChange,i=e.onWidthChange;if(r&&n){var l={right:"left"===t,left:"right"===t},s=null;switch(r){case"image":s=this.renderImage();break;case"video":s=this.renderVideo()}return Object(o.createElement)(O.ResizableBox,{className:"editor-media-container__resizer",size:{width:a+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResize:function(e,t,n){i(parseInt(n.style.width))},onResizeStop:function(e,t,n){c(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(o.Component),_=["core/button","core/paragraph","core/heading","core/list"],w=[["core/paragraph",{fontSize:"large",placeholder:Object(u._x)("Content…","content placeholder")}]],k=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(f.a)(Object(f.a)(e))),e.onWidthChange=e.onWidthChange.bind(Object(f.a)(Object(f.a)(e))),e.commitWidthChange=e.commitWidthChange.bind(Object(f.a)(Object(f.a)(e))),e.state={mediaWidth:null},e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(i.get)(e,["sizes","large","url"])||Object(i.get)(e,["media_details","sizes","large","source_url"])),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:e})}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:e}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,a=e.mediaType,c=e.mediaUrl,i=e.mediaWidth;return Object(o.createElement)(y,Object(b.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:a,mediaUrl:c,mediaPosition:r,mediaWidth:i}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,a=t.className,i=t.backgroundColor,l=t.isSelected,b=t.setAttributes,d=t.setBackgroundColor,m=n.isStackedOnMobile,h=n.mediaAlt,p=n.mediaPosition,g=n.mediaType,f=n.mediaWidth,v=this.state.mediaWidth,j=c()(a,(e={"has-media-on-the-right":"right"===p,"is-selected":l},Object(r.a)(e,i.class,i.class),Object(r.a)(e,"is-stacked-on-mobile",m),e)),y="".concat(v||f,"%"),k={gridTemplateColumns:"right"===p?"auto ".concat(y):"".concat(y," auto"),backgroundColor:i.color},C=[{value:i.color,onChange:d,label:Object(u.__)("Background Color")}],E=[{icon:"align-pull-left",title:Object(u.__)("Show media on left"),isActive:"left"===p,onClick:function(){return b({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(u.__)("Show media on right"),isActive:"right"===p,onClick:function(){return b({mediaPosition:"right"})}}],x=Object(o.createElement)(O.PanelBody,{title:Object(u.__)("Media & Text Settings")},Object(o.createElement)(O.ToggleControl,{label:Object(u.__)("Stack on mobile"),checked:m,onChange:function(){return b({isStackedOnMobile:!m})}}),"image"===g&&Object(o.createElement)(O.TextareaControl,{label:Object(u.__)("Alt Text (Alternative Text)"),value:h,onChange:function(e){b({mediaAlt:e})},help:Object(u.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}));return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.InspectorControls,null,x,Object(o.createElement)(s.PanelColorSettings,{title:Object(u.__)("Color Settings"),initialOpen:!1,colorSettings:C})),Object(o.createElement)(s.BlockControls,null,Object(o.createElement)(O.Toolbar,{controls:E})),Object(o.createElement)("div",{className:j,style:k},this.renderMediaArea(),Object(o.createElement)(s.InnerBlocks,{allowedBlocks:_,template:w,templateInsertUpdatesSelection:!1})))}}]),t}(o.Component),C=Object(s.withColors)("backgroundColor")(k),E=Object(o.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(O.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"}));n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return T});var x="core/media-text",S={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},T={title:Object(u.__)("Media & Text"),description:Object(u.__)("Set media and words side-by-side for a richer layout."),icon:E,category:"layout",keywords:[Object(u.__)("image"),Object(u.__)("video")],attributes:S,supports:{align:["wide","full"],html:!1},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(l.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(l.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(l.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(l.createBlock)("core/video",{id:t,src:n})}}]},edit:C,save:function(e){var t,n,a=e.attributes,l=a.backgroundColor,u=a.customBackgroundColor,b=a.isStackedOnMobile,d=a.mediaAlt,m=a.mediaPosition,h=a.mediaType,p=a.mediaUrl,g=a.mediaWidth,f=a.mediaId,O={image:function(){return Object(o.createElement)("img",{src:p,alt:d,className:f&&"image"===h?"wp-image-".concat(f):null})},video:function(){return Object(o.createElement)("video",{controls:!0,src:p})}},v=Object(s.getColorClassName)("background-color",l),j=c()((t={"has-media-on-the-right":"right"===m},Object(r.a)(t,v,v),Object(r.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===m?"auto ".concat(g,"%"):"".concat(g,"% auto"));var y={backgroundColor:v?void 0:u,gridTemplateColumns:n};return Object(o.createElement)("div",{className:j,style:y},Object(o.createElement)("figure",{className:"wp-block-media-text__media"},(O[h]||i.noop)()),Object(o.createElement)("div",{className:"wp-block-media-text__content"},Object(o.createElement)(s.InnerBlocks.Content,null)))},deprecated:[{attributes:S,save:function(e){var t,n,a=e.attributes,l=a.backgroundColor,u=a.customBackgroundColor,b=a.isStackedOnMobile,d=a.mediaAlt,m=a.mediaPosition,h=a.mediaType,p=a.mediaUrl,g=a.mediaWidth,f={image:function(){return Object(o.createElement)("img",{src:p,alt:d})},video:function(){return Object(o.createElement)("video",{controls:!0,src:p})}},O=Object(s.getColorClassName)("background-color",l),v=c()((t={"has-media-on-the-right":"right"===m},Object(r.a)(t,O,O),Object(r.a)(t,"is-stacked-on-mobile",b),t));50!==g&&(n="right"===m?"auto ".concat(g,"%"):"".concat(g,"% auto"));var j={backgroundColor:O?void 0:u,gridTemplateColumns:n};return Object(o.createElement)("div",{className:v,style:j},Object(o.createElement)("figure",{className:"wp-block-media-text__media"},(f[h]||i.noop)()),Object(o.createElement)("div",{className:"wp-block-media-text__content"},Object(o.createElement)(s.InnerBlocks.Content,null)))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(19),o=n(15),a=n(7),c=n(0),i=n(16),l=n.n(i),s=n(35),u=n(14),b=n(8),d=n(1),m=n(28),h=n(10),p=n(9),g=n(11),f=n(12),O=n(13),v=n(3),j=n(2),y=n(4),_=n(6),w=n(5),k=n(22),C=n(23),E=n(40),x=n(53),S=Object(c.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(y.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(c.createElement)(y.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(c.createElement)(y.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"}));var T=function(e){function t(){var e;return Object(h.a)(this,t),(e=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(v.a)(Object(v.a)(e))),e.calculateSize=e.calculateSize.bind(Object(v.a)(Object(v.a)(e))),e}return Object(O.a)(t,e),Object(p.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=j.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,a=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),c=a.width,i=a.height;this.setState({width:c,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(c.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(c.Component),R=Object(_.withGlobalEvents)({resize:"calculateSize"})(T),A=["image"],N=function(e){var t=Object(j.pick)(e,["alt","id","link","caption"]);return t.url=Object(j.get)(e,["sizes","large","url"])||Object(j.get)(e,["media_details","sizes","large","source_url"])||e.url,t},B=function(e,t){return!e&&Object(s.isBlobURL)(t)},I=function(e){function t(e){var n,r=e.attributes;return Object(h.a)(this,t),(n=Object(g.a)(this,Object(f.a)(t).apply(this,arguments))).updateAlt=n.updateAlt.bind(Object(v.a)(Object(v.a)(n))),n.updateAlignment=n.updateAlignment.bind(Object(v.a)(Object(v.a)(n))),n.onFocusCaption=n.onFocusCaption.bind(Object(v.a)(Object(v.a)(n))),n.onImageClick=n.onImageClick.bind(Object(v.a)(Object(v.a)(n))),n.onSelectImage=n.onSelectImage.bind(Object(v.a)(Object(v.a)(n))),n.onSelectURL=n.onSelectURL.bind(Object(v.a)(Object(v.a)(n))),n.updateImageURL=n.updateImageURL.bind(Object(v.a)(Object(v.a)(n))),n.updateWidth=n.updateWidth.bind(Object(v.a)(Object(v.a)(n))),n.updateHeight=n.updateHeight.bind(Object(v.a)(Object(v.a)(n))),n.updateDimensions=n.updateDimensions.bind(Object(v.a)(Object(v.a)(n))),n.onSetCustomHref=n.onSetCustomHref.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkClass=n.onSetLinkClass.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkRel=n.onSetLinkRel.bind(Object(v.a)(Object(v.a)(n))),n.onSetLinkDestination=n.onSetLinkDestination.bind(Object(v.a)(Object(v.a)(n))),n.onSetNewTab=n.onSetNewTab.bind(Object(v.a)(Object(v.a)(n))),n.getFilename=n.getFilename.bind(Object(v.a)(Object(v.a)(n))),n.toggleIsEditing=n.toggleIsEditing.bind(Object(v.a)(Object(v.a)(n))),n.onUploadError=n.onUploadError.bind(Object(v.a)(Object(v.a)(n))),n.onImageError=n.onImageError.bind(Object(v.a)(Object(v.a)(n))),n.state={captionFocused:!1,isEditing:!r.url},n}return Object(O.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(B(a,i)){var l=Object(s.getBlobByURL)(i);l&&Object(k.mediaUpload)({filesList:[l],onFileChange:function(e){var t=Object(m.a)(e,1)[0];r(N(t))},allowedTypes:A,onError:function(t){o.createErrorNotice(t),e.setState({isEditing:!0})}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;B(n,o)&&!B(c,l)&&Object(s.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){this.props.noticeOperations.createErrorNotice(e),this.setState({isEditing:!0})}},{key:"onSelectImage",value:function(e){e&&e.url?(this.setState({isEditing:!1}),this.props.setAttributes(Object(a.a)({},N(e),{width:void 0,height:void 0}))):this.props.setAttributes({url:void 0,alt:void 0,id:void 0,caption:void 0})}},{key:"onSetLinkDestination",value:function(e){var t;t="none"===e?void 0:"media"===e?this.props.image&&this.props.image.source_url||this.props.attributes.url:"attachment"===e?this.props.image&&this.props.image.link:this.props.attributes.href,this.props.setAttributes({linkDestination:e,href:t})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0}),this.setState({isEditing:!1})}},{key:"onImageError",value:function(e){var t=Object(x.a)({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetCustomHref",value:function(e){this.props.setAttributes({href:e})}},{key:"onSetLinkClass",value:function(e){this.props.setAttributes({linkClass:e})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Object(a.a)({},t,{align:e}))}},{key:"updateImageURL",value:function(e){this.props.setAttributes({url:e,width:void 0,height:void 0})}},{key:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(C.getPath)(e);if(t)return Object(j.last)(t.split("/"))}},{key:"getLinkDestinationOptions",value:function(){return[{value:"none",label:Object(d.__)("None")},{value:"media",label:Object(d.__)("Media File")},{value:"attachment",label:Object(d.__)("Attachment Page")},{value:"custom",label:Object(d.__)("Custom URL")}]}},{key:"toggleIsEditing",value:function(){this.setState({isEditing:!this.state.isEditing})}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(j.compact)(Object(j.map)(t,function(e){var t=e.name,r=e.slug,o=Object(j.get)(n,["media_details","sizes",r,"source_url"]);return o?{value:o,label:t}:null}))}},{key:"render",value:function(){var e,t=this,n=this.state.isEditing,r=this.props,o=r.attributes,a=r.setAttributes,i=r.isLargeViewport,u=r.isSelected,m=r.className,h=r.maxWidth,p=r.noticeUI,g=r.toggleSelection,f=r.isRTL,O=o.url,v=o.alt,_=o.caption,w=o.align,k=o.id,C=o.href,E=o.rel,x=o.linkClass,T=o.linkDestination,N=o.width,B=o.height,I=o.linkTarget,P=function(e,t){return t&&!e&&!Object(s.isBlobURL)(t)}(k,O);O&&(e=P?Object(c.createElement)(y.Toolbar,null,Object(c.createElement)(y.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(d.__)("Edit image"),onClick:this.toggleIsEditing,icon:"edit"})):Object(c.createElement)(b.MediaUploadCheck,null,Object(c.createElement)(y.Toolbar,null,Object(c.createElement)(b.MediaUpload,{onSelect:this.onSelectImage,allowedTypes:A,value:k,render:function(e){var t=e.open;return Object(c.createElement)(y.IconButton,{className:"components-toolbar__control",label:Object(d.__)("Edit image"),icon:"edit",onClick:t})}}))));var L=Object(c.createElement)(b.BlockControls,null,Object(c.createElement)(b.BlockAlignmentToolbar,{value:w,onChange:this.updateAlignment}),e);if(n||!O){var M=P?O:void 0;return Object(c.createElement)(c.Fragment,null,L,Object(c.createElement)(b.MediaPlaceholder,{icon:Object(c.createElement)(b.BlockIcon,{icon:S}),className:m,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:p,onError:this.onUploadError,accept:"image/*",allowedTypes:A,value:{id:k,src:M}}))}var z=l()(m,{"is-transient":Object(s.isBlobURL)(O),"is-resized":!!N||!!B,"is-focused":u}),H=-1===["wide","full"].indexOf(w)&&i,D="custom"!==T,F=this.getImageSizeOptions(),U=function(e,n){return Object(c.createElement)(b.InspectorControls,null,Object(c.createElement)(y.PanelBody,{title:Object(d.__)("Image Settings")},Object(c.createElement)(y.TextareaControl,{label:Object(d.__)("Alt Text (Alternative Text)"),value:v,onChange:t.updateAlt,help:Object(d.__)("Alternative text describes your image to people who can’t see it. Add a short description with its key details.")}),!Object(j.isEmpty)(F)&&Object(c.createElement)(y.SelectControl,{label:Object(d.__)("Image Size"),value:O,options:F,onChange:t.updateImageURL}),H&&Object(c.createElement)("div",{className:"block-library-image__dimensions"},Object(c.createElement)("p",{className:"block-library-image__dimensions__row"},Object(d.__)("Image Dimensions")),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(y.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(d.__)("Width"),value:void 0!==N?N:e,min:1,onChange:t.updateWidth}),Object(c.createElement)(y.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(d.__)("Height"),value:void 0!==B?B:n,min:1,onChange:t.updateHeight})),Object(c.createElement)("div",{className:"block-library-image__dimensions__row"},Object(c.createElement)(y.ButtonGroup,{"aria-label":Object(d.__)("Image Size")},[25,50,75,100].map(function(r){var o=Math.round(e*(r/100)),a=Math.round(n*(r/100)),i=N===o&&B===a;return Object(c.createElement)(y.Button,{key:r,isSmall:!0,isPrimary:i,"aria-pressed":i,onClick:t.updateDimensions(o,a)},r,"%")})),Object(c.createElement)(y.Button,{isSmall:!0,onClick:t.updateDimensions()},Object(d.__)("Reset"))))),Object(c.createElement)(y.PanelBody,{title:Object(d.__)("Link Settings")},Object(c.createElement)(y.SelectControl,{label:Object(d.__)("Link To"),value:T,options:t.getLinkDestinationOptions(),onChange:t.onSetLinkDestination}),"none"!==T&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(y.TextControl,{label:Object(d.__)("Link URL"),value:C||"",onChange:t.onSetCustomHref,placeholder:D?void 0:"https://",readOnly:D}),Object(c.createElement)(y.ToggleControl,{label:Object(d.__)("Open in New Tab"),onChange:t.onSetNewTab,checked:"_blank"===I}),Object(c.createElement)(y.TextControl,{label:Object(d.__)("Link CSS Class"),value:x||"",onChange:t.onSetLinkClass}),Object(c.createElement)(y.TextControl,{label:Object(d.__)("Link Rel"),value:E||"",onChange:t.onSetLinkRel}))))};return Object(c.createElement)(c.Fragment,null,L,Object(c.createElement)("figure",{className:z},Object(c.createElement)(R,{src:O,dirtynessTrigger:w},function(e){var n,r=e.imageWidthWithinContainer,o=e.imageHeightWithinContainer,i=e.imageWidth,l=e.imageHeight,u=t.getFilename(O);n=v||(u?Object(d.sprintf)(Object(d.__)("This image has an empty alt attribute; its file name is %s"),u):Object(d.__)("This image has an empty alt attribute"));var b=Object(c.createElement)(c.Fragment,null,Object(c.createElement)("img",{src:O,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(O)}}),Object(s.isBlobURL)(O)&&Object(c.createElement)(y.Spinner,null));if(!H||!r)return Object(c.createElement)(c.Fragment,null,U(i,l),Object(c.createElement)("div",{style:{width:N,height:B}},b));var m=N||r,p=B||o,j=i/l,_=i 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"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},z={img:{attributes:["src","alt"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},H={figure:{require:["img"],children:Object(a.a)({},z,{a:{attributes:["href","rel","target"],children:z},figcaption:{children:Object(u.getPhrasingContentSchema)()}})}};function D(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}function F(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;r.innerHTML=n.content;for(var o=r.querySelector("img");o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}var U={title:Object(d.__)("Image"),description:Object(d.__)("Insert an image to make a visual statement."),icon:S,category:"common",keywords:["img",Object(d.__)("photo")],attributes:M,transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:H,transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=o?Number(o[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,l=c&&c.href?c.href:void 0,s=c&&c.rel?c.rel:void 0,b=c&&c.className?c.className:void 0,d=Object(u.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:a,linkDestination:i,href:l,rel:s,linkClass:b});return Object(u.createBlock)("core/image",d)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(u.createBlock)("core/image",{url:Object(s.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:F},href:{shortcode:function(e,t){return D(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return D(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return D(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:P,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,i=n.caption,s=n.align,u=n.href,d=n.rel,m=n.linkClass,h=n.width,p=n.height,g=n.id,f=n.linkTarget,O=l()((t={},Object(o.a)(t,"align".concat(s),s),Object(o.a)(t,"is-resized",h||p),t)),v=Object(c.createElement)("img",{src:r,alt:a,className:g?"wp-image-".concat(g):null,width:h,height:p}),j=Object(c.createElement)(c.Fragment,null,u?Object(c.createElement)("a",{className:m,href:u,target:f,rel:d},v):v,!b.RichText.isEmpty(i)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:i}));return"left"===s||"right"===s||"center"===s?Object(c.createElement)("div",null,Object(c.createElement)("figure",{className:O},j)):Object(c.createElement)("figure",{className:O},j)},deprecated:[{attributes:M,save:function(e){var t,n=e.attributes,r=n.url,a=n.alt,i=n.caption,s=n.align,u=n.href,d=n.width,m=n.height,h=n.id,p=l()((t={},Object(o.a)(t,"align".concat(s),s),Object(o.a)(t,"is-resized",d||m),t)),g=Object(c.createElement)("img",{src:r,alt:a,className:h?"wp-image-".concat(h):null,width:d,height:m});return Object(c.createElement)("figure",{className:p},u?Object(c.createElement)("a",{href:u},g):g,!b.RichText.isEmpty(i)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:i}))}},{attributes:M,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,i=t.href,l=t.width,s=t.height,u=t.id,d=Object(c.createElement)("img",{src:n,alt:r,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(c.createElement)("figure",{className:a?"align".concat(a):null},i?Object(c.createElement)("a",{href:i},d):d,!b.RichText.isEmpty(o)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:M,save:function(e){var t=e.attributes,n=t.url,o=t.alt,a=t.caption,i=t.align,l=t.href,s=t.width,u=t.height,d=s||u?{width:s,height:u}:{},m=Object(c.createElement)("img",Object(r.a)({src:n,alt:o},d)),h={};return s?h={width:s}:"left"!==i&&"right"!==i||(h={maxWidth:"50%"}),Object(c.createElement)("figure",{className:i?"align".concat(i):null,style:h},l?Object(c.createElement)("a",{href:l},m):m,!b.RichText.isEmpty(a)&&Object(c.createElement)(b.RichText.Content,{tagName:"figcaption",value:a}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(10),i=n(9),l=n(11),s=n(12),u=n(13),b=n(3),d=n(2),m=n(5),h=n(22),p=n(33),g=n.n(p),f=n(6),O=n(42),v=n.n(O),j=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).containerRef=Object(r.createRef)(),e.formRef=Object(r.createRef)(),e.widgetContentRef=Object(r.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){e.form!==this.props.form&&this.widgetContentRef.current&&(this.widgetContentRef.current.innerHTML=e.form,this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current));return!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,o=t.idBase,a=t.widgetNumber,c=t.form;return Object(r.createElement)("div",{className:"widget open",ref:this.containerRef},Object(r.createElement)("div",{className:"widget-inside"},Object(r.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&e.props.onInstanceChange(e.retrieveUpdatedInstance())}},Object(r.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:c}}),Object(r.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object(r.createElement)("input",{type:"hidden",name:"id_base",className:"id_base",value:o}),Object(r.createElement)("input",{type:"hidden",name:"widget_number",className:"widget_number",value:a}),Object(r.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object(r.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""}))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0;r1?a[p]=g:a[p]=g[0]}}}catch(e){s=!0,u=e}finally{try{l||null==m.return||m.return()}finally{if(s)throw u}}return a}}}]),t}(r.Component),y=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={form:null,idBase:null},e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(b.a)(Object(b.a)(e))),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.requestWidgetUpdater()}},{key:"componentDidUpdate",value:function(e){e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,a=t.identifier,c=this.state,i=c.id,l=c.idBase,s=c.form;return a?s?Object(r.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object(r.createElement)(j,{ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,widgetNumber:-1*n,id:i,idBase:l,form:s})):null:Object(o.__)("Not a valid widget.")}},{key:"onInstanceChange",value:function(e){var t=this;this.requestWidgetUpdater(e,function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance)})}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,o=r.identifier,a=r.instanceId,c=r.instance;o&&g()({path:"/wp/v2/widgets/".concat(o,"/"),data:{identifier:o,instance:c,id_to_use:-1*a,instance_changes:e},method:"POST"}).then(function(e){n.isStillMounted&&(n.setState({form:e.form,idBase:e.id_base,id:e.id}),t&&t(e))})}}]),t}(r.Component),_=Object(f.withInstanceId)(y),w=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).state={isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(b.a)(Object(b.a)(e))),e.switchToPreview=e.switchToPreview.bind(Object(b.a)(Object(b.a)(e))),e.changeWidget=e.changeWidget.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e,t=this,n=this.props,c=n.attributes,i=n.availableLegacyWidgets,l=n.hasPermissionsToManageWidgets,s=n.setAttributes,u=this.state.isPreview,b=c.identifier,m=c.isCallbackWidget,p=b&&i[b];if(!p)return e=l?0===i.length?Object(o.__)("There are no widgets available."):Object(r.createElement)(a.SelectControl,{label:Object(o.__)("Select a legacy widget to display:"),value:b||"none",onChange:function(e){return s({instance:{},identifier:e,isCallbackWidget:i[e].isCallbackWidget})},options:[{value:"none",label:"Select widget"}].concat(Object(d.map)(i,function(e,t){return{value:t,label:e.name}}))}):Object(o.__)("You don't have permissions to use widgets on this site."),Object(r.createElement)(a.Placeholder,{icon:Object(r.createElement)(h.BlockIcon,{icon:"admin-customizer"}),label:Object(o.__)("Legacy Widget")},e);var g=Object(r.createElement)(h.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:p.name},p.description));return l?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.BlockControls,null,Object(r.createElement)(a.Toolbar,null,Object(r.createElement)(a.IconButton,{onClick:this.changeWidget,label:Object(o.__)("Change widget"),icon:"update"}),!m&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.Button,{className:"components-tab-button ".concat(u?"":"is-active"),onClick:this.switchToEdit},Object(r.createElement)("span",null,Object(o.__)("Edit"))),Object(r.createElement)(a.Button,{className:"components-tab-button ".concat(u?"is-active":""),onClick:this.switchToPreview},Object(r.createElement)("span",null,Object(o.__)("Preview")))))),g,!m&&Object(r.createElement)(_,{isVisible:!u,identifier:c.identifier,instance:c.instance,onInstanceChange:function(e){t.props.setAttributes({instance:e})}}),(u||m)&&this.renderWidgetPreview()):Object(r.createElement)(r.Fragment,null,g,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},identifier:void 0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object(r.createElement)(h.ServerSideRender,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}(r.Component),k=Object(m.withSelect)(function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}})(w);n.d(t,"name",function(){return C}),n.d(t,"settings",function(){return E});var C="core/legacy-widget",E={title:Object(o.__)("Legacy Widget (Experimental)"),description:Object(o.__)("Display a legacy widget."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(a.G,null,Object(r.createElement)(a.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},edit:k,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),a=n(1),c=n(35),i=n(14),l=n(5),s=n(8),u=n(19),b=n(28),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=n(3),O=n(16),v=n.n(O),j=n(4),y=n(6),_=n(22),w=Object(r.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(j.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(j.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function k(e){var t=e.hrefs,n=e.openInNewWindow,o=e.showDownloadButton,c=e.changeLinkDestinationOption,i=e.changeOpenInNewWindow,l=e.changeShowDownloadButton,u=t.href,b=t.textLinkHref,d=t.attachmentPage,m=[{value:u,label:Object(a.__)("URL")}];return d&&(m=[{value:u,label:Object(a.__)("Media File")},{value:d,label:Object(a.__)("Attachment Page")}]),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(a.__)("Text Link Settings")},Object(r.createElement)(j.SelectControl,{label:Object(a.__)("Link To"),value:b,options:m,onChange:c}),Object(r.createElement)(j.ToggleControl,{label:Object(a.__)("Open in New Tab"),checked:n,onChange:i})),Object(r.createElement)(j.PanelBody,{title:Object(a.__)("Download Button Settings")},Object(r.createElement)(j.ToggleControl,{label:Object(a.__)("Show Download Button"),checked:o,onChange:l}))))}var C=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(f.a)(Object(f.a)(e))),e.confirmCopyURL=e.confirmCopyURL.bind(Object(f.a)(Object(f.a)(e))),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(f.a)(Object(f.a)(e))),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(f.a)(Object(f.a)(e))),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(f.a)(Object(f.a)(e))),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(f.a)(Object(f.a)(e))),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,o=n.href;if(Object(c.isBlobURL)(o)){var a=Object(c.getBlobByURL)(o);Object(_.mediaUpload)({filesList:[a],onFileChange:function(t){var n=Object(b.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),r.createErrorNotice(t)}}),Object(c.revokeBlobURL)(o)}}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,o=e.attributes,i=e.setAttributes,l=e.noticeUI,b=e.noticeOperations,d=e.media,m=o.fileName,h=o.href,p=o.textLinkHref,g=o.textLinkTarget,f=o.showDownloadButton,O=o.downloadButtonText,y=o.id,_=this.state,C=_.hasError,E=_.showCopyConfirmation,x=d&&d.link;if(!h||C)return Object(r.createElement)(s.MediaPlaceholder,{icon:Object(r.createElement)(s.BlockIcon,{icon:w}),labels:{title:Object(a.__)("File"),instructions:Object(a.__)("Drag a file, upload a new one or select a file from your library.")},onSelect:this.onSelectFile,notices:l,onError:b.createErrorNotice,accept:"*"});var S=v()(t,{"is-transient":Object(c.isBlobURL)(h)});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(k,Object(u.a)({hrefs:{href:h,textLinkHref:p,attachmentPage:x}},{openInNewWindow:!!g,showDownloadButton:f,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(r.createElement)(s.BlockControls,null,Object(r.createElement)(s.MediaUploadCheck,null,Object(r.createElement)(j.Toolbar,null,Object(r.createElement)(s.MediaUpload,{onSelect:this.onSelectFile,value:y,render:function(e){var t=e.open;return Object(r.createElement)(j.IconButton,{className:"components-toolbar__control",label:Object(a.__)("Edit file"),onClick:t,icon:"edit"})}})))),Object(r.createElement)("div",{className:S},Object(r.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(r.createElement)(s.RichText,{wrapperClassName:"wp-block-file__textlink",tagName:"div",value:m,placeholder:Object(a.__)("Write file name…"),keepPlaceholderOnFocus:!0,formattingControls:[],onChange:function(e){return i({fileName:e})}}),f&&Object(r.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(r.createElement)(s.RichText,{tagName:"div",className:"wp-block-file__button",value:O,formattingControls:[],placeholder:Object(a.__)("Add text…"),keepPlaceholderOnFocus:!0,onChange:function(e){return i({downloadButtonText:e})}}))),n&&Object(r.createElement)(j.ClipboardButton,{isDefault:!0,text:h,className:"wp-block-file__copy-url-button",onCopy:this.confirmCopyURL,onFinishCopy:this.resetCopyConfirmation,disabled:Object(c.isBlobURL)(h)},E?Object(a.__)("Copied!"):Object(a.__)("Copy URL"))))}}]),t}(r.Component),E=Object(y.compose)([Object(l.withSelect)(function(e,t){var n=e("core").getMedia,r=t.attributes.id;return{media:void 0===r?void 0:n(r)}}),j.withNotices])(C);n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return S});var x="core/file",S={title:Object(a.__)("File"),description:Object(a.__)("Add a link to a downloadable file."),icon:w,category:"common",keywords:[Object(a.__)("document"),Object(a.__)("pdf")],attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]",default:Object(a._x)("Download","button label")}},supports:{align:!0},transforms:{from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach(function(e){var n=Object(c.createBlobURL)(e);t.push(Object(i.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(i.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(i.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(i.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"audio")},transform:function(e){return Object(i.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"video")},transform:function(e){return Object(i.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(l.select)("core").getMedia)(t);return!!n&&Object(o.includes)(n.mime_type,"image")},transform:function(e){return Object(i.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},edit:E,save:function(e){var t=e.attributes,n=t.href,o=t.fileName,a=t.textLinkHref,c=t.textLinkTarget,i=t.showDownloadButton,l=t.downloadButtonText;return n&&Object(r.createElement)("div",null,!s.RichText.isEmpty(o)&&Object(r.createElement)("a",{href:a,target:c,rel:!!c&&"noreferrer noopener"},Object(r.createElement)(s.RichText.Content,{value:o})),i&&Object(r.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(r.createElement)(s.RichText.Content,{value:l})))}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(19),a=n(7),c=n(10),i=n(9),l=n(11),s=n(12),u=n(13),b=n(3),d=n(0),m=n(2),h=n(4),p=n(5),g=n(8),f=n(6),O=n(18),v=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).titleField=Object(d.createRef)(),e.editButton=Object(d.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(b.a)(Object(b.a)(e))),e.handleTitleChange=e.handleTitleChange.bind(Object(b.a)(Object(b.a)(e))),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===O.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,o=e.isSaving,a=e.isEditDisabled,c=e.onEdit,i=e.instanceId;return Object(d.createElement)(d.Fragment,null,!t&&!o&&Object(d.createElement)("div",{className:"reusable-block-edit-panel"},Object(d.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(d.createElement)(h.Button,{ref:this.editButton,isLarge:!0,className:"reusable-block-edit-panel__button",disabled:a,onClick:c},Object(r.__)("Edit"))),(t||o)&&Object(d.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(d.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(i),className:"reusable-block-edit-panel__label"},Object(r.__)("Name:")),Object(d.createElement)("input",{ref:this.titleField,type:"text",disabled:o,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(i)}),Object(d.createElement)(h.Button,{type:"submit",isLarge:!0,isBusy:o,disabled:!n||o,className:"reusable-block-edit-panel__button"},Object(r.__)("Save"))))}}]),t}(d.Component),j=Object(f.withInstanceId)(v);var y=function(e){var t=e.title,n=Object(r.sprintf)(Object(r.__)("Reusable Block: %s"),t);return Object(d.createElement)(h.Tooltip,{text:n},Object(d.createElement)("span",{className:"reusable-block-indicator"},Object(d.createElement)(h.Dashicon,{icon:"controls-repeat"})))},_=function(e){function t(e){var n,r=e.reusableBlock;return Object(c.a)(this,t),(n=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(b.a)(Object(b.a)(n))),n.stopEditing=n.stopEditing.bind(Object(b.a)(Object(b.a)(n))),n.setAttributes=n.setAttributes.bind(Object(b.a)(Object(b.a)(n))),n.setTitle=n.setTitle.bind(Object(b.a)(Object(b.a)(n))),n.save=n.save.bind(Object(b.a)(Object(b.a)(n))),r&&r.isTemporary?n.state={isEditing:!0,title:r.title,changedAttributes:{}}:n.state={isEditing:!1,title:null,changedAttributes:null},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,changedAttributes:{}})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,changedAttributes:null})}},{key:"setAttributes",value:function(e){this.setState(function(t){if(null!==t.changedAttributes)return{changedAttributes:Object(a.a)({},t.changedAttributes,e)}})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.reusableBlock,n=e.onUpdateTitle,r=e.updateAttributes,o=e.block,a=e.onSave,c=this.state,i=c.title,l=c.changedAttributes;i!==t.title&&n(i),r(o.clientId,l),a(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,c=e.block,i=e.isFetching,l=e.isSaving,s=e.canUpdateBlock,u=this.state,b=u.isEditing,p=u.title,f=u.changedAttributes;if(!n&&i)return Object(d.createElement)(h.Placeholder,null,Object(d.createElement)(h.Spinner,null));if(!n||!c)return Object(d.createElement)(h.Placeholder,null,Object(r.__)("Block has been deleted or is unavailable."));var O=Object(d.createElement)(g.BlockEdit,Object(o.a)({},this.props,{isSelected:b&&t,clientId:c.clientId,name:c.name,attributes:Object(a.a)({},c.attributes,f),setAttributes:b?this.setAttributes:m.noop}));return b||(O=Object(d.createElement)(h.Disabled,null,O)),Object(d.createElement)(d.Fragment,null,(t||b)&&Object(d.createElement)(j,{isEditing:b,title:null!==p?p:n.title,isSaving:l&&!n.isTemporary,isEditDisabled:!s,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),!t&&!b&&Object(d.createElement)(y,{title:n.title}),O)}}]),t}(d.Component),w=Object(f.compose)([Object(p.withSelect)(function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=e("core").canUser,i=e("core/block-editor").getBlock,l=t.attributes.ref,s=r(l);return{reusableBlock:s,isFetching:o(l),isSaving:a(l),block:s?i(s.clientId):null,canUpdateBlock:!!s&&!s.isTemporary&&!!c("update","blocks",l)}}),Object(p.withDispatch)(function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlockTitle,a=n.__experimentalSaveReusableBlock,c=e("core/block-editor").updateBlockAttributes,i=t.attributes.ref;return{fetchReusableBlock:Object(m.partial)(r,i),updateAttributes:c,onUpdateTitle:Object(m.partial)(o,i),onSave:Object(m.partial)(a,i)}})])(_);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var k="core/block",C={title:Object(r.__)("Reusable Block"),category:"reusable",description:Object(r.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},edit:w,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(0),a=n(2),c=n(1),i=n(14),l=n(8),s=n(22),u=n(35),b=n(15),d=n(17),m=n(10),h=n(9),p=n(11),g=n(12),f=n(13),O=n(3),v=n(16),j=n.n(v),y=n(4),_=n(18),w=n(5),k=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).onImageClick=e.onImageClick.bind(Object(O.a)(Object(O.a)(e))),e.onSelectCaption=e.onSelectCaption.bind(Object(O.a)(Object(O.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(O.a)(Object(O.a)(e))),e.bindContainer=e.bindContainer.bind(Object(O.a)(Object(O.a)(e))),e.state={captionSelected:!1},e}return Object(f.a)(t,e),Object(h.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onImageClick",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onKeyDown",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[_.BACKSPACE,_.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,a=t.id,i=t.linkTo,s=t.link,b=t.isSelected,d=t.caption,m=t.onRemove,h=t.setAttributes,p=t["aria-label"];switch(i){case"media":e=n;break;case"attachment":e=s}var g=Object(o.createElement)(o.Fragment,null,Object(o.createElement)("img",{src:n,alt:r,"data-id":a,onClick:this.onImageClick,tabIndex:"0",onKeyDown:this.onImageClick,"aria-label":p}),Object(u.isBlobURL)(n)&&Object(o.createElement)(y.Spinner,null)),f=j()({"is-selected":b,"is-transient":Object(u.isBlobURL)(n)});return Object(o.createElement)("figure",{className:f,tabIndex:"-1",onKeyDown:this.onKeyDown,ref:this.bindContainer},b&&Object(o.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(o.createElement)(y.IconButton,{icon:"no-alt",onClick:m,className:"blocks-gallery-item__remove",label:Object(c.__)("Remove Image")})),e?Object(o.createElement)("a",{href:e},g):g,!l.RichText.isEmpty(d)||b?Object(o.createElement)(l.RichText,{tagName:"figcaption",placeholder:Object(c.__)("Write caption…"),value:d,isSelected:this.state.captionSelected,onChange:function(e){return h({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}):null)}}]),t}(o.Component),C=Object(w.withSelect)(function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})(k),E=Object(o.createElement)(y.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(y.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(y.G,null,Object(o.createElement)(y.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),x=[{value:"attachment",label:Object(c.__)("Attachment Page")},{value:"media",label:Object(c.__)("Media File")},{value:"none",label:Object(c.__)("None")}],S=["image"];function T(e){return Math.min(3,e.images.length)}var R=function(e){var t=Object(a.pick)(e,["alt","id","link","caption"]);return t.url=Object(a.get)(e,["sizes","large","url"])||Object(a.get)(e,["media_details","sizes","large","source_url"])||e.url,t},A=function(e){function t(){var e;return Object(m.a)(this,t),(e=Object(p.a)(this,Object(g.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(O.a)(Object(O.a)(e))),e.onSelectImages=e.onSelectImages.bind(Object(O.a)(Object(O.a)(e))),e.setLinkTo=e.setLinkTo.bind(Object(O.a)(Object(O.a)(e))),e.setColumnsNumber=e.setColumnsNumber.bind(Object(O.a)(Object(O.a)(e))),e.toggleImageCrop=e.toggleImageCrop.bind(Object(O.a)(Object(O.a)(e))),e.onRemoveImage=e.onRemoveImage.bind(Object(O.a)(Object(O.a)(e))),e.setImageAttributes=e.setImageAttributes.bind(Object(O.a)(Object(O.a)(e))),e.addFiles=e.addFiles.bind(Object(O.a)(Object(O.a)(e))),e.uploadFromFiles=e.uploadFromFiles.bind(Object(O.a)(Object(O.a)(e))),e.setAttributes=e.setAttributes.bind(Object(O.a)(Object(O.a)(e))),e.state={selectedImage:null},e}return Object(f.a)(t,e),Object(h.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Object(r.a)({},e,{ids:Object(a.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(a.filter)(t.props.attributes.images,function(t,n){return e!==n}),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"onSelectImages",value:function(e){var t=this.props.attributes.columns;this.setAttributes({images:e.map(function(e){return R(e)}),columns:t?Math.min(e.length,t):t})}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(c.__)("Thumbnails are cropped to align."):Object(c.__)("Thumbnails are not cropped.")}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,o=this.setAttributes;n[e]&&o({images:[].concat(Object(d.a)(n.slice(0,e)),[Object(r.a)({},n[e],t)],Object(d.a)(n.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.props.noticeOperations,r=this.setAttributes;Object(s.mediaUpload)({allowedTypes:S,filesList:e,onFileChange:function(e){var n=e.map(function(e){return R(e)});r({images:t.concat(n)})},onError:n.createErrorNotice})}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,a=n.isSelected,i=n.className,s=n.noticeOperations,u=n.noticeUI,d=r.images,m=r.columns,h=void 0===m?T(r):m,p=r.align,g=r.imageCrop,f=r.linkTo,O=Object(o.createElement)(y.DropZone,{onFilesDrop:this.addFiles}),v=Object(o.createElement)(l.BlockControls,null,!!d.length&&Object(o.createElement)(y.Toolbar,null,Object(o.createElement)(l.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:S,multiple:!0,gallery:!0,value:d.map(function(e){return e.id}),render:function(e){var t=e.open;return Object(o.createElement)(y.IconButton,{className:"components-toolbar__control",label:Object(c.__)("Edit gallery"),icon:"edit",onClick:t})}})));return 0===d.length?Object(o.createElement)(o.Fragment,null,v,Object(o.createElement)(l.MediaPlaceholder,{icon:Object(o.createElement)(l.BlockIcon,{icon:E}),className:i,labels:{title:Object(c.__)("Gallery"),instructions:Object(c.__)("Drag images, upload new ones or select files from your library.")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:S,multiple:!0,notices:u,onError:s.createErrorNotice})):Object(o.createElement)(o.Fragment,null,v,Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(y.PanelBody,{title:Object(c.__)("Gallery Settings")},d.length>1&&Object(o.createElement)(y.RangeControl,{label:Object(c.__)("Columns"),value:h,onChange:this.setColumnsNumber,min:1,max:Math.min(8,d.length),required:!0}),Object(o.createElement)(y.ToggleControl,{label:Object(c.__)("Crop Images"),checked:!!g,onChange:this.toggleImageCrop,help:this.getImageCropHelp}),Object(o.createElement)(y.SelectControl,{label:Object(c.__)("Link To"),value:f,onChange:this.setLinkTo,options:x}))),u,Object(o.createElement)("ul",{className:j()(i,(e={},Object(b.a)(e,"align".concat(p),p),Object(b.a)(e,"columns-".concat(h),h),Object(b.a)(e,"is-cropped",g),e))},O,d.map(function(e,n){var r=Object(c.sprintf)(Object(c.__)("image %1$d of %2$d in gallery"),n+1,d.length);return Object(o.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(o.createElement)(C,{url:e.url,alt:e.alt,id:e.id,isSelected:a&&t.state.selectedImage===n,onRemove:t.onRemoveImage(n),onSelect:t.onSelectImage(n),setAttributes:function(e){return t.setImageAttributes(n,e)},caption:e.caption,"aria-label":r}))}),a&&Object(o.createElement)("li",{className:"blocks-gallery-item has-add-item-button"},Object(o.createElement)(y.FormFileUpload,{multiple:!0,isLarge:!0,className:"block-library-gallery-add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(c.__)("Upload an image")))))}}]),t}(o.Component),N=Object(y.withNotices)(A);n.d(t,"name",function(){return I}),n.d(t,"settings",function(){return L});var B={images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},I="core/gallery",P=function(e){return e?e.split(",").map(function(e){return parseInt(e,10)}):[]},L={title:Object(c.__)("Gallery"),description:Object(c.__)("Display multiple images in a rich gallery."),icon:E,category:"common",keywords:[Object(c.__)("images"),Object(c.__)("photos")],attributes:B,supports:{align:!0},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(a.every)(e,["align",t])?t:void 0;var n=Object(a.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return Object(i.createBlock)("core/gallery",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return P(t).map(function(e){return{id:e}})}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return P(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(a.every)(e,function(e){return 0===e.type.indexOf("image/")})},transform:function(e,t){var n=Object(i.createBlock)("core/gallery",{images:e.map(function(e){return R({url:Object(u.createBlobURL)(e)})})});return Object(s.mediaUpload)({filesList:e,onFileChange:function(e){var r=e.map(R);t(n.clientId,{ids:Object(a.map)(r,"id"),images:r})},allowedTypes:["image"]}),n}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,r=e.url,o=e.alt,a=e.caption;return Object(i.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,align:n})}):Object(i.createBlock)("core/image",{align:n})}}]},edit:N,save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.imageCrop,i=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))}))},deprecated:[{attributes:B,isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(a.some)(t,function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]}))},migrate:function(e){return Object(r.a)({},e,{ids:Object(a.map)(e.images,function(e){var t=e.id;return t?parseInt(t,10):null})})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.imageCrop,i=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:B,save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.imageCrop,i=t.linkTo;return Object(o.createElement)("ul",{className:"columns-".concat(a," ").concat(c?"is-cropped":"")},n.map(function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return Object(o.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(o.createElement)("figure",null,t?Object(o.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(o.createElement)(l.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:Object(r.a)({},B,{images:Object(r.a)({},B.images,{selector:"div.wp-block-gallery figure.blocks-gallery-image img"}),align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.images,r=t.columns,a=void 0===r?T(t):r,c=t.align,i=t.imageCrop,l=t.linkTo;return Object(o.createElement)("div",{className:"align".concat(c," columns-").concat(a," ").concat(i?"is-cropped":"")},n.map(function(e){var t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(o.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(o.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(o.createElement)("a",{href:t},n):n)}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(21),o=n(7),a=n(17),c=n(0),i=n(2),l=n(1),s=n(14),u=n(8),b=n(4),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=function(e){function t(){return Object(d.a)(this,t),Object(h.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(g.a)(t,e),Object(m.a)(t,[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:Object(l.sprintf)(Object(l.__)("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,r=t.maxLevel,o=t.selectedLevel,a=t.onChange;return Object(c.createElement)(b.Toolbar,{controls:Object(i.range)(n,r).map(function(t){return e.createLevelControl(t,o,a)})})}}]),t}(c.Component);function O(e){return Number(e.substr(1))}n.d(t,"getLevelFromHeadingNodeName",function(){return O}),n.d(t,"name",function(){return y}),n.d(t,"settings",function(){return _});var v={className:!1,anchor:!0},j={content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},align:{type:"string"},placeholder:{type:"string"}},y="core/heading",_={title:Object(l.__)("Heading"),description:Object(l.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Object(c.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(b.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object(c.createElement)(b.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:"common",keywords:[Object(l.__)("title"),Object(l.__)("subtitle")],supports:v,attributes:j,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(s.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:{h1:{children:Object(s.getPhrasingContentSchema)()},h2:{children:Object(s.getPhrasingContentSchema)()},h3:{children:Object(s.getPhrasingContentSchema)()},h4:{children:Object(s.getPhrasingContentSchema)()},h5:{children:Object(s.getPhrasingContentSchema)()},h6:{children:Object(s.getPhrasingContentSchema)()}},transform:function(e){return Object(s.createBlock)("core/heading",Object(o.a)({},Object(s.getBlockAttributes)("core/heading",e.outerHTML),{level:O(e.nodeName)}))}}].concat(Object(a.a)([2,3,4,5,6].map(function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(s.createBlock)("core/heading",{level:e,content:t})}}}))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(s.createBlock)("core/paragraph",{content:t})}}]},deprecated:[{supports:v,attributes:Object(o.a)({},Object(i.omit)(j,["level"]),{nodeName:{type:"string",source:"property",selector:"h1,h2,h3,h4,h5,h6",property:"nodeName",default:"H2"}}),migrate:function(e){var t=e.nodeName,n=Object(r.a)(e,["nodeName"]);return Object(o.a)({},n,{level:O(t)})},save:function(e){var t=e.attributes,n=t.align,r=t.nodeName,o=t.content;return Object(c.createElement)(u.RichText.Content,{tagName:r.toLowerCase(),style:{textAlign:n},value:o})}}],merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.insertBlocksAfter,a=e.onReplace,i=e.className,d=t.align,m=t.content,h=t.level,p=t.placeholder,g="h"+h;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.BlockControls,null,Object(c.createElement)(f,{minLevel:2,maxLevel:5,selectedLevel:h,onChange:function(e){return n({level:e})}})),Object(c.createElement)(u.InspectorControls,null,Object(c.createElement)(b.PanelBody,{title:Object(l.__)("Heading Settings")},Object(c.createElement)("p",null,Object(l.__)("Level")),Object(c.createElement)(f,{minLevel:1,maxLevel:7,selectedLevel:h,onChange:function(e){return n({level:e})}}),Object(c.createElement)("p",null,Object(l.__)("Text Alignment")),Object(c.createElement)(u.AlignmentToolbar,{value:d,onChange:function(e){n({align:e})}}))),Object(c.createElement)(u.RichText,{identifier:"content",wrapperClassName:"wp-block-heading",tagName:g,value:m,onChange:function(e){return n({content:e})},onMerge:r,unstableOnSplit:o?function(e,t){n({content:e});for(var r=arguments.length,a=new Array(r>2?r-2:0),c=2;c50){if(e&&e.attributes.dimRatio>50&&e.overlayColor.color===o.color)return;return o.color?void this.changeIsDarkIfRequired(w()(o.color).isDark()):void this.changeIsDarkIfRequired(!0)}if(!(e&&e.attributes.dimRatio<=50&&e.attributes.url===c)){var i;switch(r.backgroundType){case"image":i=this.imageRef.current;break;case"video":i=this.videoRef.current}i&&T().getColorAsync(i,function(e){t.changeIsDarkIfRequired(e.isDark)})}}},{key:"changeIsDarkIfRequired",value:function(e){this.state.isDark!==e&&this.setState({isDark:e})}}]),t}(a.Component),B=Object(k.compose)([Object(C.withColors)({overlayColor:"background-color"}),d.withNotices])(N);n.d(t,"name",function(){return P}),n.d(t,"settings",function(){return L});var I={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},P="core/cover",L={title:Object(b.__)("Cover"),description:Object(b.__)("Add an image or video with a text overlay — great for headers."),icon:m,category:"common",attributes:I,supports:{align:!0},transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(s.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType;return!e.url||"image"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType;return!e.url||"video"===t},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(s.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.customOverlayColor,o=t.dimRatio,c=t.focalPoint,i=t.hasParallax,s=t.overlayColor,b=t.url,d=Object(u.getColorClassName)("background-color",s),m="image"===n?R(b):{};d||(m.backgroundColor=r),c&&!i&&(m.backgroundPosition="".concat(100*c.x,"% ").concat(100*c.y,"%"));var h=l()(A(o),d,{"has-background-dim":0!==o,"has-parallax":i});return Object(a.createElement)("div",{className:h,style:m},"video"===n&&b&&Object(a.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:b}),Object(a.createElement)("div",{className:"wp-block-cover__inner-container"},Object(a.createElement)(u.InnerBlocks.Content,null)))},edit:B,deprecated:[{attributes:Object(o.a)({},I,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,o=t.contentAlign,c=t.customOverlayColor,i=t.dimRatio,s=t.focalPoint,b=t.hasParallax,d=t.overlayColor,m=t.title,h=t.url,p=Object(u.getColorClassName)("background-color",d),g="image"===n?R(h):{};p||(g.backgroundColor=c),s&&!b&&(g.backgroundPosition="".concat(100*s.x,"% ").concat(100*s.y,"%"));var f=l()(A(i),p,Object(r.a)({"has-background-dim":0!==i,"has-parallax":b},"has-".concat(o,"-content"),"center"!==o));return Object(a.createElement)("div",{className:f,style:g},"video"===n&&h&&Object(a.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:h}),!u.RichText.isEmpty(m)&&Object(a.createElement)(u.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:m}))},migrate:function(e){return[Object(c.omit)(e,["title","contentAlign"]),[Object(s.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(b.__)("Write title…")})]]}},{attributes:Object(o.a)({},I,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,o=t.title,c=t.hasParallax,i=t.dimRatio,s=t.align,b=t.contentAlign,d=t.overlayColor,m=t.customOverlayColor,h=Object(u.getColorClassName)("background-color",d),p=R(n);h||(p.backgroundColor=m);var g=l()("wp-block-cover-image",A(i),h,Object(r.a)({"has-background-dim":0!==i,"has-parallax":c},"has-".concat(b,"-content"),"center"!==b),s?"align".concat(s):null);return Object(a.createElement)("div",{className:g,style:p},!u.RichText.isEmpty(o)&&Object(a.createElement)(u.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o}))}},{attributes:Object(o.a)({},I,{align:{type:"string"},title:{type:"string",source:"html",selector:"h2"},contentAlign:{type:"string",default:"center"}}),save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,i=t.align,s=R(n),b=l()(A(c),{"has-background-dim":0!==c,"has-parallax":o},i?"align".concat(i):null);return Object(a.createElement)("section",{className:b,style:s},Object(a.createElement)(u.RichText.Content,{tagName:"h2",value:r}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(35),a=n(14),c=n(8),i=n(1),l=n(15),s=n(28),u=n(10),b=n(9),d=n(11),m=n(12),h=n(13),p=n(3),g=n(4),f=n(22),O=n(53),v=Object(r.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(g.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(g.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"})),j=["video"],y=["image"],_=function(e){function t(){var e;return Object(u.a)(this,t),(e=Object(d.a)(this,Object(m.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(r.createRef)(),e.posterImageButton=Object(r.createRef)(),e.toggleAttribute=e.toggleAttribute.bind(Object(p.a)(Object(p.a)(e))),e.onSelectURL=e.onSelectURL.bind(Object(p.a)(Object(p.a)(e))),e.onSelectPoster=e.onSelectPoster.bind(Object(p.a)(Object(p.a)(e))),e.onRemovePoster=e.onRemovePoster.bind(Object(p.a)(Object(p.a)(e))),e}return Object(h.a)(t,e),Object(b.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(o.isBlobURL)(l)){var u=Object(o.getBlobByURL)(l);u&&Object(f.mediaUpload)({filesList:[u],onFileChange:function(e){var t=Object(s.a)(e,1)[0].url;a({src:t})},onError:function(t){e.setState({editing:!0}),r.createErrorNotice(t)},allowedTypes:j})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(l.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=Object(O.a)({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,o=t.caption,a=t.controls,l=t.loop,s=t.muted,u=t.poster,b=t.preload,d=t.src,m=this.props,h=m.setAttributes,p=m.isSelected,f=m.className,O=m.noticeOperations,_=m.noticeUI,w=this.state.editing,k=function(){e.setState({editing:!0})};return w?Object(r.createElement)(c.MediaPlaceholder,{icon:Object(r.createElement)(c.BlockIcon,{icon:v}),className:f,onSelect:function(t){if(!t||!t.url)return h({src:void 0,id:void 0}),void k();h({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:j,value:this.props.attributes,notices:_,onError:O.createErrorNotice}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.BlockControls,null,Object(r.createElement)(g.Toolbar,null,Object(r.createElement)(g.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(i.__)("Edit video"),onClick:k,icon:"edit"}))),Object(r.createElement)(c.InspectorControls,null,Object(r.createElement)(g.PanelBody,{title:Object(i.__)("Video Settings")},Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n}),Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:l}),Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Muted"),onChange:this.toggleAttribute("muted"),checked:s}),Object(r.createElement)(g.ToggleControl,{label:Object(i.__)("Playback Controls"),onChange:this.toggleAttribute("controls"),checked:a}),Object(r.createElement)(g.SelectControl,{label:Object(i.__)("Preload"),value:b,onChange:function(e){return h({preload:e})},options:[{value:"auto",label:Object(i.__)("Auto")},{value:"metadata",label:Object(i.__)("Metadata")},{value:"none",label:Object(i.__)("None")}]}),Object(r.createElement)(c.MediaUploadCheck,null,Object(r.createElement)(g.BaseControl,{className:"editor-video-poster-control",label:Object(i.__)("Poster Image")},Object(r.createElement)(c.MediaUpload,{title:Object(i.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:y,render:function(t){var n=t.open;return Object(r.createElement)(g.Button,{isDefault:!0,onClick:n,ref:e.posterImageButton},e.props.attributes.poster?Object(i.__)("Replace image"):Object(i.__)("Select Poster Image"))}}),!!this.props.attributes.poster&&Object(r.createElement)(g.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(i.__)("Remove Poster Image")))))),Object(r.createElement)("figure",{className:f},Object(r.createElement)(g.Disabled,null,Object(r.createElement)("video",{controls:a,poster:u,src:d,ref:this.videoPlayer})),(!c.RichText.isEmpty(o)||p)&&Object(r.createElement)(c.RichText,{tagName:"figcaption",placeholder:Object(i.__)("Write caption…"),value:o,onChange:function(e){return h({caption:e})},inlineToolbar:!0})))}}]),t}(r.Component),w=Object(g.withNotices)(_);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var k="core/video",C={title:Object(i.__)("Video"),description:Object(i.__)("Embed a video from your media library or upload a new one."),icon:v,keywords:[Object(i.__)("movie")],category:"common",attributes:{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"}},transforms:{from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(a.createBlock)("core/video",{src:Object(o.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},supports:{align:!0},edit:w,save:function(e){var t=e.attributes,n=t.autoplay,o=t.caption,a=t.controls,i=t.loop,l=t.muted,s=t.poster,u=t.preload,b=t.src;return Object(r.createElement)("figure",null,b&&Object(r.createElement)("video",{autoPlay:n,controls:a,loop:i,muted:l,poster:s,preload:"metadata"!==u?u:void 0,src:b}),!c.RichText.isEmpty(o)&&Object(r.createElement)(c.RichText.Content,{tagName:"figcaption",value:o}))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(16),a=n.n(o),c=n(1),i=n(14),l=n(4),s=n(8),u=n(10),b=n(9),d=n(11),m=n(12),h=n(13),p=n(3),g=n(17),f=n(15),O=n(7),v=n(2);var j=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],y=Object(s.createCustomColorsHOC)(j),_=function(e){function t(){var e;return Object(u.a)(this,t),(e=Object(d.a)(this,Object(m.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(p.a)(Object(p.a)(e))),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(p.a)(Object(p.a)(e))),e.onChange=e.onChange.bind(Object(p.a)(Object(p.a)(e))),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(p.a)(Object(p.a)(e))),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(p.a)(Object(p.a)(e))),e.renderSection=e.renderSection.bind(Object(p.a)(Object(p.a)(e))),e.getTableControls=e.getTableControls.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRow=e.onInsertRow.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(p.a)(Object(p.a)(e))),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(p.a)(Object(p.a)(e))),e.onDeleteRow=e.onDeleteRow.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumn=e.onInsertColumn.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(p.a)(Object(p.a)(e))),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(p.a)(Object(p.a)(e))),e.onDeleteColumn=e.onDeleteColumn.bind(Object(p.a)(Object(p.a)(e))),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(h.a)(t,e),Object(b.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,a=this.state,c=a.initialRowCount,i=a.initialColumnCount;c=parseInt(c,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:c,columnCount:i}).rowCount,r=t.columnCount,{body:Object(v.times)(n,function(){return{cells:Object(v.times)(r,function(){return{content:"",tag:"td"}})}})}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(function(e,t){var n=t.section,r=t.rowIndex,o=t.columnIndex,a=t.content;return Object(f.a)({},n,e[n].map(function(e,t){return t!==r?e:{cells:e.cells.map(function(e,t){return t!==o?e:Object(O.a)({},e,{content:a})})}}))}(r,{section:t.section,rowIndex:t.rowIndex,columnIndex:t.columnIndex,content:e}))}}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.rowIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.rowIndex,o=e[n][0].cells.length;return Object(f.a)({},n,[].concat(Object(g.a)(e[n].slice(0,r)),[{cells:Object(v.times)(o,function(){return{content:"",tag:"td"}})}],Object(g.a)(e[n].slice(r))))}(r,{section:a,rowIndex:c+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.rowIndex;return Object(f.a)({},n,e[n].filter(function(e,t){return t!==r}))}(n,{section:o,rowIndex:a}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.section,c=t.columnIndex;this.setState({selectedCell:null}),o(function(e,t){var n=t.section,r=t.columnIndex;return Object(f.a)({},n,e[n].map(function(e){return{cells:[].concat(Object(g.a)(e.cells.slice(0,r)),[{content:"",tag:"td"}],Object(g.a)(e.cells.slice(r)))}}))}(r,{section:a,columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.section,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.section,r=t.columnIndex;return Object(f.a)({},n,e[n].map(function(e){return{cells:e.cells.filter(function(e,t){return t!==r})}}).filter(function(e){return e.cells.length}))}(n,{section:o,columnIndex:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:e})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(c.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(c.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(c.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(c.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(c.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(c.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.type,o=e.rows;if(!o.length)return null;var c="t".concat(n),i=this.state.selectedCell;return Object(r.createElement)(c,null,o.map(function(e,o){var c=e.cells;return Object(r.createElement)("tr",{key:o},c.map(function(e,c){var l=e.content,u=e.tag,b=i&&n===i.section&&o===i.rowIndex&&c===i.columnIndex,d={section:n,rowIndex:o,columnIndex:c},m=a()({"is-selected":b});return Object(r.createElement)(u,{key:c,className:m},Object(r.createElement)(s.RichText,{className:"wp-block-table__cell-content",value:l,onChange:t.onChange,unstableOnFocus:t.createOnFocus(d)}))}))}))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,o=e.backgroundColor,i=e.setBackgroundColor,u=this.state,b=u.initialRowCount,d=u.initialColumnCount,m=t.hasFixedLayout,h=t.head,p=t.body,g=t.foot,f=!h.length&&!p.length&&!g.length,O=this.renderSection;if(f)return Object(r.createElement)("form",{onSubmit:this.onCreateTable},Object(r.createElement)(l.TextControl,{type:"number",label:Object(c.__)("Column Count"),value:d,onChange:this.onChangeInitialColumnCount,min:"1"}),Object(r.createElement)(l.TextControl,{type:"number",label:Object(c.__)("Row Count"),value:b,onChange:this.onChangeInitialRowCount,min:"1"}),Object(r.createElement)(l.Button,{isPrimary:!0,type:"submit"},Object(c.__)("Create")));var v=a()(n,o.class,{"has-fixed-layout":m,"has-background":!!o.color});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.BlockControls,null,Object(r.createElement)(l.Toolbar,null,Object(r.createElement)(l.DropdownMenu,{icon:"editor-table",label:Object(c.__)("Edit table"),controls:this.getTableControls()}))),Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(l.PanelBody,{title:Object(c.__)("Table Settings"),className:"blocks-table-settings"},Object(r.createElement)(l.ToggleControl,{label:Object(c.__)("Fixed width table cells"),checked:!!m,onChange:this.onChangeFixedLayout})),Object(r.createElement)(s.PanelColorSettings,{title:Object(c.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:i,label:Object(c.__)("Background Color"),disableCustomColors:!0,colors:j}]})),Object(r.createElement)("table",{className:v},Object(r.createElement)(O,{type:"head",rows:h}),Object(r.createElement)(O,{type:"body",rows:p}),Object(r.createElement)(O,{type:"foot",rows:g})))}}]),t}(r.Component),w=y("backgroundColor")(_);n.d(t,"name",function(){return x}),n.d(t,"settings",function(){return S});var k={tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:Object(i.getPhrasingContentSchema)()},td:{allowEmpty:!0,children:Object(i.getPhrasingContentSchema)()}}}},C={table:{children:{thead:{allowEmpty:!0,children:k},tfoot:{allowEmpty:!0,children:k},tbody:{allowEmpty:!0,children:k}}}};function E(e){return{type:"array",default:[],source:"query",selector:"t".concat(e," tr"),query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"}}}}}}var x="core/table",S={title:Object(c.__)("Table"),description:Object(c.__)("Insert a table — perfect for sharing charts and data."),icon:Object(r.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(l.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(l.G,null,Object(r.createElement)(l.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:E("head"),body:E("body"),foot:E("foot")},styles:[{name:"regular",label:Object(c._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(c.__)("Stripes")}],supports:{align:!0},transforms:{from:[{type:"raw",selector:"table",schema:C}]},edit:w,save:function(e){var t=e.attributes,n=t.hasFixedLayout,o=t.head,c=t.body,i=t.foot,l=t.backgroundColor;if(!o.length&&!c.length&&!i.length)return null;var u=Object(s.getColorClassName)("background-color",l),b=a()(u,{"has-fixed-layout":n,"has-background":!!u}),d=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var o="t".concat(t);return Object(r.createElement)(o,null,n.map(function(e,t){var n=e.cells;return Object(r.createElement)("tr",{key:t},n.map(function(e,t){var n=e.content,o=e.tag;return Object(r.createElement)(s.RichText.Content,{tagName:o,value:n,key:t})}))}))};return Object(r.createElement)("table",{className:b},Object(r.createElement)(d,{type:"head",rows:o}),Object(r.createElement)(d,{type:"body",rows:c}),Object(r.createElement)(d,{type:"foot",rows:i}))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(14),c=n(4),i=n(8);n.d(t,"name",function(){return l}),n.d(t,"settings",function(){return s});var l="core/code",s={title:Object(o.__)("Code"),description:Object(o.__)("Display code snippets that respect your spacing and tabs."),icon:Object(r.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(c.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(c.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"})),category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}},supports:{html:!1},transforms:{from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(a.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,a=e.className;return Object(r.createElement)("div",{className:a},Object(r.createElement)(i.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(o.__)("Write code…"),"aria-label":Object(o.__)("Code")}))},save:function(e){var t=e.attributes;return Object(r.createElement)("pre",null,Object(r.createElement)("code",null,t.content))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(14),i=n(17),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(8),p=n(22),g=n(5),f=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(m.a)(Object(m.a)(e))),e.switchToPreview=e.switchToPreview.bind(Object(m.a)(Object(m.a)(e))),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(i.a)(Object(p.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,c=this.state,i=c.isPreview,l=c.styles;return Object(r.createElement)("div",{className:"wp-block-html"},Object(r.createElement)(h.BlockControls,null,Object(r.createElement)("div",{className:"components-toolbar"},Object(r.createElement)("button",{className:"components-tab-button ".concat(i?"":"is-active"),onClick:this.switchToHTML},Object(r.createElement)("span",null,"HTML")),Object(r.createElement)("button",{className:"components-tab-button ".concat(i?"is-active":""),onClick:this.switchToPreview},Object(r.createElement)("span",null,Object(o.__)("Preview"))))),Object(r.createElement)(a.Disabled.Consumer,null,function(e){return i||e?Object(r.createElement)(a.SandBox,{html:t.content,styles:l}):Object(r.createElement)(h.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(o.__)("Write HTML…"),"aria-label":Object(o.__)("HTML")})}))}}]),t}(r.Component),O=Object(g.withSelect)(function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}})(f);n.d(t,"name",function(){return v}),n.d(t,"settings",function(){return j});var v="core/html",j={title:Object(o.__)("Custom HTML"),description:Object(o.__)("Add custom HTML code and preview it as you edit."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),category:"formatting",keywords:[Object(o.__)("embed")],supports:{customClassName:!1,className:!1,html:!1},attributes:{content:{type:"string",source:"html"}},transforms:{from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:Object(c.getPhrasingContentSchema)()}}}}}]},edit:O,save:function(e){var t=e.attributes;return Object(r.createElement)(r.RawHTML,null,t.content)}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(8),i=n(22);n.d(t,"name",function(){return l}),n.d(t,"settings",function(){return s});var l="core/archives",s={title:Object(o.__)("Archives"),description:Object(o.__)("Display a monthly archive of your posts."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(a.G,null,Object(r.createElement)(a.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),category:"widgets",supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,l=t.align,s=t.showPostCounts,u=t.displayAsDropdown;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Archives Settings")},Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display as Dropdown"),checked:u,onChange:function(){return n({displayAsDropdown:!u})}}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Post Counts"),checked:s,onChange:function(){return n({showPostCounts:!s})}}))),Object(r.createElement)(c.BlockControls,null,Object(r.createElement)(c.BlockAlignmentToolbar,{value:l,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object(r.createElement)(a.Disabled,null,Object(r.createElement)(i.ServerSideRender,{block:"core/archives",attributes:t})))},save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n(7),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(4),u=n(1),b=n(8),d=n(10),m=n(9),h=n(11),p=n(12),g=n(13),f=n(3),O=n(6),v=window.getComputedStyle,j=Object(s.withFallbackStyles)(function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:v(e).backgroundColor,fallbackTextColor:a||!c?void 0:v(c).color}}),y=function(e){function t(){var e;return Object(d.a)(this,t),(e=Object(h.a)(this,Object(p.a)(t).apply(this,arguments))).nodeRef=null,e.bindRef=e.bindRef.bind(Object(f.a)(Object(f.a)(e))),e}return Object(g.a)(t,e),Object(m.a)(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,o=t.backgroundColor,c=t.textColor,l=t.setBackgroundColor,d=t.setTextColor,m=t.fallbackBackgroundColor,h=t.fallbackTextColor,p=t.setAttributes,g=t.isSelected,f=t.className,O=n.text,v=n.url,j=n.title;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:f,title:j,ref:this.bindRef},Object(a.createElement)(b.RichText,{placeholder:Object(u.__)("Add text…"),value:O,onChange:function(e){return p({text:e})},formattingControls:["bold","italic","strikethrough"],className:i()("wp-block-button__link",(e={"has-background":o.color},Object(r.a)(e,o.class,o.class),Object(r.a)(e,"has-text-color",c.color),Object(r.a)(e,c.class,c.class),e)),style:{backgroundColor:o.color,color:c.color},keepPlaceholderOnFocus:!0}),Object(a.createElement)(b.InspectorControls,null,Object(a.createElement)(b.PanelColorSettings,{title:Object(u.__)("Color Settings"),colorSettings:[{value:o.color,onChange:l,label:Object(u.__)("Background Color")},{value:c.color,onChange:d,label:Object(u.__)("Text Color")}]},Object(a.createElement)(b.ContrastChecker,{isLargeText:!1,textColor:c.color,backgroundColor:o.color,fallbackBackgroundColor:m,fallbackTextColor:h})))),g&&Object(a.createElement)("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},Object(a.createElement)(s.Dashicon,{icon:"admin-links"}),Object(a.createElement)(b.URLInput,{value:v,onChange:function(e){return p({url:e})}}),Object(a.createElement)(s.IconButton,{icon:"editor-break",label:Object(u.__)("Apply"),type:"submit"})))}}]),t}(a.Component),_=Object(O.compose)([Object(b.withColors)("backgroundColor",{textColor:"color"}),j])(y);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return E});var w={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},k="core/button",C=function(e){return Object(l.omit)(Object(o.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},E={title:Object(u.__)("Button"),description:Object(u.__)("Prompt visitors to take action with a button-style link."),icon:Object(a.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(s.G,null,Object(a.createElement)(s.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"}))),category:"layout",keywords:[Object(u.__)("link")],attributes:w,supports:{align:!0,alignWide:!1},styles:[{name:"default",label:Object(u._x)("Default","block style"),isDefault:!0},{name:"outline",label:Object(u.__)("Outline")},{name:"squared",label:Object(u._x)("Squared","block style")}],edit:_,save:function(e){var t,n=e.attributes,o=n.url,c=n.text,l=n.title,s=n.backgroundColor,u=n.textColor,d=n.customBackgroundColor,m=n.customTextColor,h=Object(b.getColorClassName)("color",u),p=Object(b.getColorClassName)("background-color",s),g=i()("wp-block-button__link",(t={"has-text-color":u||m},Object(r.a)(t,h,h),Object(r.a)(t,"has-background",s||d),Object(r.a)(t,p,p),t)),f={backgroundColor:p?void 0:d,color:h?void 0:m};return Object(a.createElement)("div",null,Object(a.createElement)(b.RichText.Content,{tagName:"a",className:g,href:o,title:l,style:f,value:c}))},deprecated:[{attributes:Object(o.a)({},Object(l.pick)(w,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,i={backgroundColor:t.color,color:t.textColor};return Object(a.createElement)("div",{className:"align".concat(c)},Object(a.createElement)(b.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:i,value:r}))},migrate:C},{attributes:Object(o.a)({},Object(l.pick)(w,["url","title","text"]),{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,i=t.color,l=t.textColor;return Object(a.createElement)("div",{className:"align".concat(c),style:{backgroundColor:i}},Object(a.createElement)(b.RichText.Content,{tagName:"a",href:n,title:o,style:{color:l},value:r}))},migrate:C}]}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(4),a=n(1),c=n(15),i=n(10),l=n(9),s=n(11),u=n(12),b=n(13),d=n(3),m=n(8),h=n(22),p=function(e){function t(){var e;return Object(i.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(d.a)(Object(d.a)(e))),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(b.a)(t,e),Object(l.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(c.a)({},e,!n))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,c=e.displayDate,i=e.displayExcerpt;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.InspectorControls,null,Object(r.createElement)(o.PanelBody,{title:Object(a.__)("Latest Comments Settings")},Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Date"),checked:c,onChange:this.toggleDisplayDate}),Object(r.createElement)(o.ToggleControl,{label:Object(a.__)("Display Excerpt"),checked:i,onChange:this.toggleDisplayExcerpt}),Object(r.createElement)(o.RangeControl,{label:Object(a.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(r.createElement)(o.Disabled,null,Object(r.createElement)(h.ServerSideRender,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(r.Component);n.d(t,"name",function(){return g}),n.d(t,"settings",function(){return f});var g="core/latest-comments",f={title:Object(a.__)("Latest Comments"),description:Object(a.__)("Display a list of your most recent comments."),icon: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.G,null,Object(r.createElement)(o.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}))),category:"widgets",keywords:[Object(a.__)("recent comments")],supports:{align:!0,html:!1},edit:p,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(15),i=n(19),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(2),p=n(16),g=n.n(p),f=n(33),O=n.n(f),v=n(23),j=n(50),y=n(8),_=n(5),w={per_page:-1},k=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).state={categoriesList:[]},e.toggleDisplayPostDate=e.toggleDisplayPostDate.bind(Object(m.a)(Object(m.a)(e))),e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=O()({path:Object(v.addQueryArgs)("/wp/v2/categories",w)}).then(function(t){e.isStillMounted&&e.setState({categoriesList:t})}).catch(function(){e.isStillMounted&&e.setState({categoriesList:[]})})}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"toggleDisplayPostDate",value:function(){var e=this.props.attributes.displayPostDate;(0,this.props.setAttributes)({displayPostDate:!e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,l=e.latestPosts,s=this.state.categoriesList,u=t.displayPostDate,b=t.align,d=t.postLayout,m=t.columns,h=t.order,p=t.orderBy,f=t.categories,O=t.postsToShow,v=Object(r.createElement)(y.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Latest Posts Settings")},Object(r.createElement)(a.QueryControls,Object(i.a)({order:h,orderBy:p},{numberOfItems:O,categoriesList:s,selectedCategoryId:f,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display post date"),checked:u,onChange:this.toggleDisplayPostDate}),"grid"===d&&Object(r.createElement)(a.RangeControl,{label:Object(o.__)("Columns"),value:m,onChange:function(e){return n({columns:e})},min:2,max:_?Math.min(6,l.length):6,required:!0}))),_=Array.isArray(l)&&l.length;if(!_)return Object(r.createElement)(r.Fragment,null,v,Object(r.createElement)(a.Placeholder,{icon:"admin-post",label:Object(o.__)("Latest Posts")},Array.isArray(l)?Object(o.__)("No posts found."):Object(r.createElement)(a.Spinner,null)));var w=l.length>O?l.slice(0,O):l,k=[{icon:"list-view",title:Object(o.__)("List View"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===d},{icon:"grid-view",title:Object(o.__)("Grid View"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===d}],C=Object(j.__experimentalGetSettings)().formats.date;return Object(r.createElement)(r.Fragment,null,v,Object(r.createElement)(y.BlockControls,null,Object(r.createElement)(y.BlockAlignmentToolbar,{value:b,onChange:function(e){n({align:e})}}),Object(r.createElement)(a.Toolbar,{controls:k})),Object(r.createElement)("ul",{className:g()(this.props.className,Object(c.a)({"is-grid":"grid"===d,"has-dates":u},"columns-".concat(m),"grid"===d))},w.map(function(e,t){var n=e.title.rendered.trim();return Object(r.createElement)("li",{key:t},Object(r.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(r.createElement)(r.RawHTML,null,n):Object(o.__)("(Untitled)")),u&&e.date_gmt&&Object(r.createElement)("time",{dateTime:Object(j.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(j.dateI18n)(C,e.date_gmt)))})))}}]),t}(r.Component),C=Object(_.withSelect)(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(h.pickBy)({categories:c,order:o,orderby:a,per_page:r},function(e){return!Object(h.isUndefined)(e)}))}})(k);n.d(t,"name",function(){return E}),n.d(t,"settings",function(){return x});var E="core/latest-posts",x={title:Object(o.__)("Latest Posts"),description:Object(o.__)("Display a list of your most recent posts."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(r.createElement)(a.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(r.createElement)(a.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),category:"widgets",keywords:[Object(o.__)("recent posts")],supports:{html:!1},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right","wide","full"].includes(t))return{"data-align":t}},edit:C,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),a=n(10),c=n(9),i=n(11),l=n(12),s=n(13),u=n(3),b=n(0),d=n(29),m=n.n(d),h=n(41),p=n.n(h),g=n(4),f=n(5),O=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).getYearMonth=p()(e.getYearMonth.bind(Object(u.a)(Object(u.a)(e))),{maxSize:1}),e.getServerSideAttributes=p()(e.getServerSideAttributes.bind(Object(u.a)(Object(u.a)(e))),{maxSize:1}),e}return Object(s.a)(t,e),Object(c.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=m()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(o.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object(b.createElement)(g.Disabled,null,Object(b.createElement)(g.ServerSideRender,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(b.Component),v=Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute;return{date:"post"===t("type")?t("date"):void 0}})(O);n.d(t,"name",function(){return j}),n.d(t,"settings",function(){return y});var j="core/calendar",y={title:Object(r.__)("Calendar"),description:Object(r.__)("A calendar of your site’s posts."),icon:"calendar",category:"widgets",keywords:[Object(r.__)("posts"),Object(r.__)("archive")],supports:{align:!0},edit:v,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(4),c=n(10),i=n(9),l=n(11),s=n(12),u=n(13),b=n(3),d=n(2),m=n(6),h=n(5),p=n(8),g=function(e){function t(){var e;return Object(c.a)(this,t),(e=Object(l.a)(this,Object(s.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(b.a)(Object(b.a)(e))),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(b.a)(Object(b.a)(e))),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(b.a)(Object(b.a)(e))),e}return Object(u.a)(t,e),Object(i.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter(function(t){return t.parent===e}):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(d.unescape)(e.name).trim():Object(o.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(r.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map(function(t){return e.renderCategoryListItem(t,0)}))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,o=this.props.attributes,a=o.showHierarchy,c=o.showPostCounts,i=this.getCategories(e.id);return Object(r.createElement)("li",{key:e.id},Object(r.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(r.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),a&&!!i.length&&Object(r.createElement)("ul",{className:this.getCategoryListClassName(t+1)},i.map(function(e){return n.renderCategoryListItem(e,t+1)})))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,a=this.getCategories(n),c="blocks-category-select-".concat(t);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("label",{htmlFor:c,className:"screen-reader-text"},Object(o.__)("Categories")),Object(r.createElement)("select",{id:c,className:"wp-block-categories__dropdown"},a.map(function(t){return e.renderCategoryDropdownItem(t,0)})))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,o=this.props.attributes,a=o.showHierarchy,c=o.showPostCounts,i=this.getCategories(e.id);return[Object(r.createElement)("option",{key:e.id},Object(d.times)(3*t,function(){return" "}),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),a&&!!i.length&&i.map(function(e){return n.renderCategoryDropdownItem(e,t+1)})]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,c=t.displayAsDropdown,i=t.showHierarchy,l=t.showPostCounts,s=Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(a.PanelBody,{title:Object(o.__)("Categories Settings")},Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Display as Dropdown"),checked:c,onChange:this.toggleDisplayAsDropdown}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Hierarchy"),checked:i,onChange:this.toggleShowHierarchy}),Object(r.createElement)(a.ToggleControl,{label:Object(o.__)("Show Post Counts"),checked:l,onChange:this.toggleShowPostCounts})));return n?Object(r.createElement)(r.Fragment,null,s,Object(r.createElement)(a.Placeholder,{icon:"admin-post",label:Object(o.__)("Categories")},Object(r.createElement)(a.Spinner,null))):Object(r.createElement)(r.Fragment,null,s,Object(r.createElement)("div",{className:this.props.className},c?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(r.Component),f=Object(m.compose)(Object(h.withSelect)(function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}}),m.withInstanceId)(g);n.d(t,"name",function(){return O}),n.d(t,"settings",function(){return v});var O="core/categories",v={title:Object(o.__)("Categories"),description:Object(o.__)("Display a list of all categories."),icon:Object(r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(a.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(r.createElement)(a.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(r.createElement)(a.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(r.createElement)(a.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,alignWide:!1,html:!1},edit:f,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),a=n(1),c=n(14),i=n(4),l=n(10),s=n(9),u=n(11),b=n(12),d=n(13),m=n(3),h=n(8),p=n(18),g=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(u.a)(this,Object(b.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(m.a)(Object(m.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(m.a)(Object(m.a)(e))),e.state={defaultText:Object(a.__)("Read more")},e}return Object(d.a)(t,e),Object(s.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===p.ENTER&&n([Object(c.createBlock)(Object(c.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(a.__)("The excerpt is hidden."):Object(a.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,o=this.props.setAttributes,c=this.state.defaultText,l=void 0!==t?t:c,s=l.length+1;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h.InspectorControls,null,Object(r.createElement)(i.PanelBody,null,Object(r.createElement)(i.ToggleControl,{label:Object(a.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(r.createElement)("div",{className:"wp-block-more"},Object(r.createElement)("input",{type:"text",value:l,size:s,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(r.Component);n.d(t,"name",function(){return f}),n.d(t,"settings",function(){return O});var f="core/more",O={title:Object(a._x)("More","block name"),description:Object(a.__)("Content before this block will be shown in the excerpt on your archives page."),icon:Object(r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(i.G,null,Object(r.createElement)(i.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"}))),category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(c.createBlock)("core/more",o)}}]},edit:g,save:function(e){var t=e.attributes,n=t.customText,a=t.noTeaser,c=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",i=a?"\x3c!--noteaser--\x3e":"";return Object(r.createElement)(r.RawHTML,null,Object(o.compact)([c,i]).join("\n"))}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(14),c=n(4);n.d(t,"name",function(){return i}),n.d(t,"settings",function(){return l});var i="core/nextpage",l={title:Object(o.__)("Page Break"),description:Object(o.__)("Separate your content into a multi-page experience."),icon:Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.G,null,Object(r.createElement)(c.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:"layout",keywords:[Object(o.__)("next page"),Object(o.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(a.createBlock)("core/nextpage",{})}}]},edit:function(){return Object(r.createElement)("div",{className:"wp-block-nextpage"},Object(r.createElement)("span",null,Object(o.__)("Page break")))},save:function(){return Object(r.createElement)(r.RawHTML,null,"\x3c!--nextpage--\x3e")}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=n(8);n.d(t,"name",function(){return c}),n.d(t,"settings",function(){return i});var c="core/search",i={title:Object(r.__)("Search"),description:Object(r.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(r.__)("find")],edit:function(e){var t=e.className,n=e.attributes,c=e.setAttributes,i=n.label,l=n.placeholder,s=n.buttonText;return Object(o.createElement)("div",{className:t},Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__label","aria-label":Object(r.__)("Label text"),placeholder:Object(r.__)("Add label…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:i,onChange:function(e){return c({label:e})}}),Object(o.createElement)("input",{className:"wp-block-search__input","aria-label":Object(r.__)("Optional placeholder text"),placeholder:l?void 0:Object(r.__)("Optional placeholder…"),value:l,onChange:function(e){return c({placeholder:e.target.value})}}),Object(o.createElement)(a.RichText,{wrapperClassName:"wp-block-search__button",className:"wp-block-search__button-rich-text","aria-label":Object(r.__)("Button text"),placeholder:Object(r.__)("Add button text…"),keepPlaceholderOnFocus:!0,formattingControls:[],value:s,onChange:function(e){return c({buttonText:e})}}))},save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(15),a=n(0),c=n(16),i=n.n(c),l=n(2),s=n(1),u=n(8),b=n(5),d=n(4),m=n(19),h=n(10),p=n(9),g=n(11),f=n(12),O=n(13),v=n(3),j="is-style-".concat("solid-color"),y=function(e){function t(e){var n;return Object(h.a)(this,t),(n=Object(g.a)(this,Object(f.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(v.a)(Object(v.a)(n))),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(v.a)(Object(v.a)(n))),n}return Object(O.a)(t,e),Object(p.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setTextColor,a=t.setMainColor,c=t.className,i=Object(l.includes)(c,j),s=!r.color||this.wasTextColorAutomaticallyComputed,u=i&&s&&e;a(e),u&&(this.wasTextColorAutomaticallyComputed=!0,o(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,c=e.setAttributes,b=e.isSelected,d=e.className,h=t.value,p=t.citation,g=Object(l.includes)(d,j),f=g?{backgroundColor:n.color}:{borderColor:n.color},O={color:r.color},v=r.color?i()("has-text-color",Object(o.a)({},r.class,r.class)):void 0;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("figure",{style:f,className:i()(d,Object(o.a)({},n.class,g&&n.class))},Object(a.createElement)("blockquote",{style:O,className:v},Object(a.createElement)(u.RichText,{multiline:!0,value:h,onChange:function(e){return c({value:e})},placeholder:Object(s.__)("Write quote…"),wrapperClassName:"block-library-pullquote__content"}),(!u.RichText.isEmpty(p)||b)&&Object(a.createElement)(u.RichText,{value:p,placeholder:Object(s.__)("Write citation…"),onChange:function(e){return c({citation:e})},className:"wp-block-pullquote__citation"}))),Object(a.createElement)(u.InspectorControls,null,Object(a.createElement)(u.PanelColorSettings,{title:Object(s.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(s.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(s.__)("Text Color")}]},g&&Object(a.createElement)(u.ContrastChecker,Object(m.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(a.Component),_=Object(u.withColors)({mainColor:"background-color",textColor:"color"})(y);n.d(t,"name",function(){return k}),n.d(t,"settings",function(){return C});var w={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"}},k="core/pullquote",C={title:Object(s.__)("Pullquote"),description:Object(s.__)("Give special visual emphasis to a quote from your text."),icon:Object(a.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(d.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(a.createElement)(d.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(a.createElement)(d.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(a.createElement)(d.Polygon,{points:"21 4 2 4 2 6 21 6"})),category:"formatting",attributes:w,styles:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(s.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:_,save:function(e){var t,n,r=e.attributes,c=r.mainColor,s=r.customMainColor,d=r.textColor,m=r.customTextColor,h=r.value,p=r.citation,g=r.className;if(Object(l.includes)(g,j))(t=Object(u.getColorClassName)("background-color",c))||(n={backgroundColor:s});else if(s)n={borderColor:s};else if(c){var f=Object(l.get)(Object(b.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(u.getColorObjectByAttributeValues)(f,c).color}}var O=Object(u.getColorClassName)("color",d),v=d||m?i()("has-text-color",Object(o.a)({},O,O)):void 0,y=O?void 0:{color:m};return Object(a.createElement)("figure",{className:t,style:n},Object(a.createElement)("blockquote",{className:v,style:y},Object(a.createElement)(u.RichText.Content,{value:h,multiline:!0}),!u.RichText.isEmpty(p)&&Object(a.createElement)(u.RichText.Content,{tagName:"cite",value:p})))},deprecated:[{attributes:Object(r.a)({},w),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(a.createElement)("blockquote",null,Object(a.createElement)(u.RichText.Content,{value:n,multiline:!0}),!u.RichText.isEmpty(r)&&Object(a.createElement)(u.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(r.a)({},w,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(a.createElement)("blockquote",{className:"align".concat(o)},Object(a.createElement)(u.RichText.Content,{value:n,multiline:!0}),!u.RichText.isEmpty(r)&&Object(a.createElement)(u.RichText.Content,{tagName:"footer",value:r}))}}]}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(15),a=n(10),c=n(9),i=n(11),l=n(12),s=n(13),u=n(3),b=n(0),d=n(4),m=n(8),h=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(u.a)(Object(u.a)(e))),e.onSubmitURL=e.onSubmitURL.bind(Object(u.a)(Object(u.a)(e))),e}return Object(s.a)(t,e),Object(c.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(o.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,o=t.columns,a=t.displayAuthor,c=t.displayExcerpt,i=t.displayDate,l=t.excerptLength,s=t.feedURL,u=t.itemsToShow,h=this.props.setAttributes;if(this.state.editing)return Object(b.createElement)(d.Placeholder,{icon:"rss",label:"RSS"},Object(b.createElement)("form",{onSubmit:this.onSubmitURL},Object(b.createElement)(d.TextControl,{placeholder:Object(r.__)("Enter URL here…"),value:s,onChange:function(e){return h({feedURL:e})},className:"components-placeholder__input"}),Object(b.createElement)(d.Button,{isLarge:!0,type:"submit"},Object(r.__)("Use URL"))));var p=[{icon:"edit",title:Object(r.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(r.__)("List View"),onClick:function(){return h({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(r.__)("Grid View"),onClick:function(){return h({blockLayout:"grid"})},isActive:"grid"===n}];return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(m.BlockControls,null,Object(b.createElement)(d.Toolbar,{controls:p})),Object(b.createElement)(m.InspectorControls,null,Object(b.createElement)(d.PanelBody,{title:Object(r.__)("RSS Settings")},Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Number of items"),value:u,onChange:function(e){return h({itemsToShow:e})},min:1,max:10,required:!0}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display author"),checked:a,onChange:this.toggleAttribute("displayAuthor")}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display date"),checked:i,onChange:this.toggleAttribute("displayDate")}),Object(b.createElement)(d.ToggleControl,{label:Object(r.__)("Display excerpt"),checked:c,onChange:this.toggleAttribute("displayExcerpt")}),c&&Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Max number of words in excerpt"),value:l,onChange:function(e){return h({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(b.createElement)(d.RangeControl,{label:Object(r.__)("Columns"),value:o,onChange:function(e){return h({columns:e})},min:2,max:6,required:!0}))),Object(b.createElement)(d.Disabled,null,Object(b.createElement)(d.ServerSideRender,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(b.Component);n.d(t,"name",function(){return p}),n.d(t,"settings",function(){return g});var p="core/rss",g={title:Object(r.__)("RSS"),description:Object(r.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(r.__)("atom"),Object(r.__)("feed")],supports:{html:!1},edit:h,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(17),a=n(10),c=n(9),i=n(11),l=n(12),s=n(13),u=n(3),b=n(0),d=n(2),m=n(4),h=n(5),p=n(8),g=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(i.a)(this,Object(l.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(u.a)(Object(u.a)(e))),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(u.a)(Object(u.a)(e))),e}return Object(s.a)(t,e),Object(c.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(d.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(r.__)("- Select -"),value:""},n=Object(d.map)(e,function(e){return{value:e.slug,label:e.name}});return[t].concat(Object(o.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,o=this.getTaxonomyOptions(),a=Object(b.createElement)(p.InspectorControls,null,Object(b.createElement)(m.PanelBody,{title:Object(r.__)("Tag Cloud Settings")},Object(b.createElement)(m.SelectControl,{label:Object(r.__)("Taxonomy"),options:o,value:t,onChange:this.setTaxonomy}),Object(b.createElement)(m.ToggleControl,{label:Object(r.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(b.createElement)(b.Fragment,null,a,Object(b.createElement)(m.ServerSideRender,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(b.Component),f=Object(h.withSelect)(function(e){return{taxonomies:e("core").getTaxonomies()}})(g);n.d(t,"name",function(){return O}),n.d(t,"settings",function(){return v});var O="core/tag-cloud",v={title:Object(r.__)("Tag Cloud"),description:Object(r.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:f,save:function(){return null}}},,,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"registerCoreBlocks",function(){return G});var r=n(17),o=(n(72),n(8),n(22),n(14)),a=n(138),c=n(230),i=n(235),l=n(208),s=n(234),u=n(242),b=n(236),d=n(243),m=n(246),h=n(247),p=n(240),g=n(209),f=n(210),O=n(237),v=n(110),j=n(232),y=n(241),_=n(229),w=n(244),k=n(245),C=n(231),E=n(212),x=n(136),S=n(248),T=n(249),R=n(213),A=n(251),N=n(233),B=n(252),I=n(250),P=n(214),L=n(215),M=n(216),z=n(217),H=n(239),D=n(218),F=n(219),U=n(220),V=n(238),W=n(253),q=n(139),G=function(){[a,c,i,s,E,l,L,u,b,d,m,h,p,g,f,O,v].concat(Object(r.a)(v.common),Object(r.a)(v.others),[j,window.wp&&window.wp.oldEditor?q:null,y,_,w,k,2===e.env.GUTENBERG_PHASE?C:null,x,S,T,R,A,B,I,P,N,M,z,H,W,D,F,U,V]).forEach(function(e){if(e){var t=e.name,n=e.settings;Object(o.registerBlockType)(t,n)}}),Object(o.setDefaultBlockName)(a.name),window.wp&&window.wp.oldEditor&&Object(o.setFreeformContentHandlerName)(q.name),Object(o.setUnregisteredTypeHandlerName)(x.name)}}.call(this,n(257))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var l,s=[],u=!1,b=-1;function d(){u&&l&&(u=!1,l.length?s=l.concat(s):b=-1,s.length&&m())}function m(){if(!u){var e=i(d);u=!0;for(var t=s.length;t;){for(l=s,s=[];++b1)for(var n=1;n + *
    + *
    + *

    Left

    + *
    + * + * + * + *
    + *

    Middle

    + *
    + * + * + * + *
    + *
    + * + * ``` + * + * Parsing code: + * ```js + * import { parse } from '@wordpress/block-serialization-default-parser'; + * + * parse( post ) === [ + * { + * blockName: "core/columns", + * attrs: { + * columns: 3 + * }, + * innerBlocks: [ + * { + * blockName: "core/column", + * attrs: null, + * innerBlocks: [ + * { + * blockName: "core/paragraph", + * attrs: null, + * innerBlocks: [], + * innerHTML: "\n

    Left

    \n" + * } + * ], + * innerHTML: '\n
    \n' + * }, + * { + * blockName: "core/column", + * attrs: null, + * innerBlocks: [ + * { + * blockName: "core/paragraph", + * attrs: null, + * innerBlocks: [], + * innerHTML: "\n

    Middle

    \n" + * } + * ], + * innerHTML: '\n
    \n' + * }, + * { + * blockName: "core/column", + * attrs: null, + * innerBlocks: [], + * innerHTML: '\n
    \n' + * } + * ], + * innerHTML: '\n
    \n\n\n\n
    \n' + * } + * ]; + * ``` + * @return {Array} A block-based representation of the input HTML. + */ + var parse = function parse(doc) { document = doc; @@ -399,13 +477,13 @@ function addBlockFromStack(endOffset) { /***/ }), -/***/ 25: +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(34); +var arrayWithHoles = __webpack_require__(37); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(arr, i) { @@ -434,7 +512,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(35); +var nonIterableRest = __webpack_require__(38); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); @@ -447,7 +525,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 34: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -458,7 +536,7 @@ function _arrayWithHoles(arr) { /***/ }), -/***/ 35: +/***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/block-serialization-default-parser.min.js b/wp-includes/js/dist/block-serialization-default-parser.min.js index b29dddd785..6175fed936 100644 --- a/wp-includes/js/dist/block-serialization-default-parser.min.js +++ b/wp-includes/js/dist/block-serialization-default-parser.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.blockSerializationDefaultParser=function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=197)}({197:function(n,t,r){"use strict";r.r(t),r.d(t,"parse",function(){return a});var e,u,o,i,l=r(25),c=/)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function s(n,t,r,e,u){return{blockName:n,attrs:t,innerBlocks:r,innerHTML:e,innerContent:u}}function f(n){return s(null,{},[],n,[n])}var a=function(n){e=n,u=0,o=[],i=[],c.lastIndex=0;do{}while(p());return o};function p(){var n=function(){var n=c.exec(e);if(null===n)return["no-more-tokens"];var t=n.index,r=Object(l.a)(n,7),u=r[0],o=r[1],i=r[2],s=r[3],f=r[4],a=r[6],p=u.length,b=!!o,v=!!a,d=(i||"core/")+s,h=!!f,k=h?function(n){try{return JSON.parse(n)}catch(n){return null}}(f):{};if(v)return["void-block",d,k,t,p];if(b)return["block-closer",d,null,t,p];return["block-opener",d,k,t,p]}(),t=Object(l.a)(n,5),r=t[0],a=t[1],p=t[2],h=t[3],k=t[4],y=i.length,O=h>u?u:null;switch(r){case"no-more-tokens":if(0===y)return b(),!1;if(1===y)return d(),!1;for(;0)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function s(n,t,r,e,u){return{blockName:n,attrs:t,innerBlocks:r,innerHTML:e,innerContent:u}}function f(n){return s(null,{},[],n,[n])}var a=function(n){e=n,u=0,o=[],i=[],c.lastIndex=0;do{}while(p());return o};function p(){var n=function(){var n=c.exec(e);if(null===n)return["no-more-tokens"];var t=n.index,r=Object(l.a)(n,7),u=r[0],o=r[1],i=r[2],s=r[3],f=r[4],a=r[6],p=u.length,b=!!o,v=!!a,d=(i||"core/")+s,h=!!f,k=h?function(n){try{return JSON.parse(n)}catch(n){return null}}(f):{};if(v)return["void-block",d,k,t,p];if(b)return["block-closer",d,null,t,p];return["block-opener",d,k,t,p]}(),t=Object(l.a)(n,5),r=t[0],a=t[1],p=t[2],h=t[3],k=t[4],y=i.length,O=h>u?u:null;switch(r){case"no-more-tokens":if(0===y)return b(),!1;if(1===y)return d(),!1;for(;0 em > strong. // Impossible: strong > strong. -['strong', 'em', 'del', 'ins', 'a', 'code', 'abbr', 'sub', 'sup'].forEach(function (tag) { +['strong', 'em', 's', 'del', 'ins', 'a', 'code', 'abbr', 'sub', 'sup'].forEach(function (tag) { phrasing_content_phrasingContentSchema[tag].children = Object(external_lodash_["omit"])(phrasing_content_phrasingContentSchema, tag); }); /** @@ -10367,7 +10431,7 @@ function canHaveAnchor(node, schema) { }); // EXTERNAL MODULE: external {"this":["wp","shortcode"]} -var external_this_wp_shortcode_ = __webpack_require__(124); +var external_this_wp_shortcode_ = __webpack_require__(134); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js @@ -10516,7 +10580,7 @@ function isDoubleBR(node) { } if (textDecorationLine === 'line-through') { - Object(external_this_wp_dom_["wrap"])(doc.createElement('del'), node); + Object(external_this_wp_dom_["wrap"])(doc.createElement('s'), node); } if (verticalAlign === 'super') { @@ -10630,7 +10694,7 @@ function ms_list_converter_isList(node) { }); // EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(32); +var external_this_wp_blob_ = __webpack_require__(35); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/image-corrector.js @@ -10700,7 +10764,7 @@ var image_corrector_window = window, }); // EXTERNAL MODULE: ./node_modules/showdown/dist/showdown.js -var showdown = __webpack_require__(185); +var showdown = __webpack_require__(206); var showdown_default = /*#__PURE__*/__webpack_require__.n(showdown); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js @@ -11355,25 +11419,7 @@ function synchronizeBlocksWithTemplate() { /***/ }), -/***/ 32: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), - -/***/ 33: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - -/***/ }), - -/***/ 34: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11384,7 +11430,7 @@ function _arrayWithHoles(arr) { /***/ }), -/***/ 35: +/***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11395,7 +11441,7 @@ function _nonIterableRest() { /***/ }), -/***/ 40: +/***/ 42: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); @@ -12610,18 +12656,25 @@ else {} /***/ }), -/***/ 53: +/***/ 57: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["htmlEntities"]; }()); /***/ }), -/***/ 59: +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["compose"]; }()); + +/***/ }), + +/***/ 65: /***/ (function(module, exports, __webpack_require__) { -var rng = __webpack_require__(79); -var bytesToUuid = __webpack_require__(80); +var rng = __webpack_require__(87); +var bytesToUuid = __webpack_require__(88); function v4(options, buf, offset) { var i = buf && offset || 0; @@ -12653,7 +12706,7 @@ module.exports = v4; /***/ }), -/***/ 60: +/***/ 66: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["autop"]; }()); @@ -12661,13 +12714,34 @@ module.exports = v4; /***/ }), /***/ 7: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["compose"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} /***/ }), -/***/ 79: +/***/ 87: /***/ (function(module, exports) { // Unique ID creation requires a high quality random # generator. In the @@ -12708,35 +12782,7 @@ if (getRandomValues) { /***/ }), -/***/ 8: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 80: +/***/ 88: /***/ (function(module, exports) { /** diff --git a/wp-includes/js/dist/blocks.min.js b/wp-includes/js/dist/blocks.min.js index 9e64b620ef..dfa36a1575 100644 --- a/wp-includes/js/dist/blocks.min.js +++ b/wp-includes/js/dist/blocks.min.js @@ -1,2 +1,2 @@ -this.wp=this.wp||{},this.wp.blocks=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return 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 a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=309)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",function(){return n})},124:function(e,t){!function(){e.exports=this.wp.shortcode}()},15:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",function(){return n})},18:function(e,t,r){"use strict";var n=r(33);function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var i={},o={},s={},c=a(!0),l="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var h=function(e,t,r,n){"use strict";var a,i,o,s,c,l=n||"",u=l.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+l.replace(/g/g,"")),f=new RegExp(t,l.replace(/g/g,"")),h=[];do{for(a=0;o=d.exec(e);)if(f.test(o[0]))a++||(s=(i=d.lastIndex)-o[0].length);else if(a&&!--a){c=o.index+o[0].length;var p={left:{start:s,end:i},match:{start:i,end:o.index},right:{start:o.index,end:c},wholeMatch:{start:s,end:c}};if(h.push(p),!u)return h}}while(a&&(d.lastIndex=i));return h};i.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=h(e,t,r,n),i=[],o=0;o0){var u=[];0!==s[0].wholeMatch.start&&u.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d=0?n+(r||0):n},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e})},i.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},i.Converter=function(e){"use strict";var t={},r=[],n=[],a={},o=l,f={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var a=d(e,t);if(!a.valid)throw Error(a.error);for(var o=0;o[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,i.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],i.helper.isUndefined(r.gTitles[a])||(l=r.gTitles[a])}var u='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,n,a,o){if("\\"===n)return r+a;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),c="";return t.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),r+'"+a+""})),e=r.converter._dispatch("anchors.after",e,t,r)});var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-\/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,k=function(e){"use strict";return function(t,r,n,a,o,s,c){var l=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),u="",d="",f=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(d=' target="¨E95Eblank"'),f+'"+l+""+u+h}},v=function(e,t){"use strict";return function(r,n,a){var o="mailto:";return n=n||"",a=i.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=i.helper.encodeEmailAddress(o+a),a=i.helper.encodeEmailAddress(a)):o+=a,n+''+a+""}};i.subParser("autoLinks",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(m,k(t))).replace(_,v(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)}),i.subParser("simplifiedAutoLinks",function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,k(t)):e.replace(p,k(t))).replace(b,v(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e}),i.subParser("blockGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=i.subParser("blockQuotes")(e,t,r),e=i.subParser("headers")(e,t,r),e=i.subParser("horizontalRule")(e,t,r),e=i.subParser("lists")(e,t,r),e=i.subParser("codeBlocks")(e,t,r),e=i.subParser("tables")(e,t,r),e=i.subParser("hashHTMLBlocks")(e,t,r),e=i.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)}),i.subParser("blockQuotes",function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=i.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),i.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)}),e=r.converter._dispatch("blockQuotes.after",e,t,r)}),i.subParser("codeBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,n,a){var o=n,s=a,c="\n";return o=i.subParser("outdent")(o,t,r),o=i.subParser("encodeCode")(o,t,r),o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),o="
    "+o+c+"
    ",i.subParser("hashBlock")(o,t,r)+s})).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)}),i.subParser("codeSpans",function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,n,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=i.subParser("encodeCode")(s,t,r))+"",s=i.subParser("hashHTMLSpans")(s,t,r)}),e=r.converter._dispatch("codeSpans.after",e,t,r)}),i.subParser("completeHTMLDocument",function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",i="",o='\n',s="",c="";for(var l in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(l))switch(l.toLowerCase()){case"doctype":break;case"title":i=""+r.metadata.parsed.title+"\n";break;case"charset":o="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[l]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+i+o+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)}),i.subParser("detab",function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)}),i.subParser("encodeBackslashEscapes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)}),i.subParser("encodeCode",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)}),i.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)}),i.subParser("githubCodeBlocks",function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,n,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=i.subParser("encodeCode")(o,t,r),o="
    "+(o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",o=i.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"})).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e}),i.subParser("hashBlock",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)}),i.subParser("hashCodeTags",function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=i.helper.replaceRecursiveRegExp(e,function(e,n,a,o){var s=a+i.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"},"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)}),i.subParser("hashElement",function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}}),i.subParser("hashHTMLBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var o=0;o]*>)","im"),l="<"+n[o]+"\\b[^>]*>",u="";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,l,u,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=(e=i.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),i.subParser("hashHTMLSpans",function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,function(e){return n(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<[^>]+?>/gi,function(e){return n(e)}),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)}),i.subParser("unhashHTMLSpans",function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)}),i.subParser("headers",function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',l=""+o+"";return i.subParser("hashBlock")(l,t,r)})).replace(o,function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',l=n+1,u=""+o+"";return i.subParser("hashBlock")(u,t,r)});var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return n=e,a=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,function(e,a,o){var s=o;t.customizedHeaderId&&(s=o.replace(/\s?\{([^{]+?)}\s*$/,""));var l=i.subParser("spanGamut")(s,t,r),u=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+l+"";return i.subParser("hashBlock")(f,t,r)}),e=r.converter._dispatch("headers.after",e,t,r)}),i.subParser("horizontalRule",function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=i.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)}),i.subParser("images",function(e,t,r){"use strict";function n(e,t,n,a,o,s,c,l){var u=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),l||(l=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,i.helper.isUndefined(u[n]))return e;a=u[n],i.helper.isUndefined(d[n])||(l=d[n]),i.helper.isUndefined(f[n])||(o=f[n].width,s=f[n].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var h=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,r,a,i,o,s,c){return n(e,t,r,a=a.replace(/\s/g,""),i,o,0,c)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)}),i.subParser("italicsAndBold",function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return n(t,"","")})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return n(t,"","")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return n(t,"","")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=r.converter._dispatch("italicsAndBold.after",e,t,r)}),i.subParser("lists",function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,function(e,n,a,s,c,l,u){u=u&&""!==u.trim();var d=i.subParser("outdent")(c,t,r),f="";return l&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='-1?(d=i.subParser("githubCodeBlocks")(d,t,r),d=i.subParser("blockGamut")(d,t,r)):(d=(d=i.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=i.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?i.subParser("paragraphs")(d,t,r):i.subParser("spanGamut")(d,t,r)),d=""+(d=d.replace("¨A",""))+"\n"})).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function o(e,r,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?o:s,l="";if(-1!==e.search(c))!function t(u){var d=u.search(c),f=a(e,r);-1!==d?(l+="\n\n<"+r+f+">\n"+n(u.slice(0,d),!!i)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(u.slice(d))):l+="\n\n<"+r+f+">\n"+n(u,!!i)+"\n"}(e);else{var u=a(e,r);l="\n\n<"+r+u+">\n"+n(e,!!i)+"\n"}return l}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r){return o(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r,n){return o(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)}),i.subParser("metadata",function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,n){return r.metadata.parsed[t]=n,""})}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,r){return n(r),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"})).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)}),i.subParser("outdent",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)}),i.subParser("paragraphs",function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=i.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(o=a.length,s=0;s]*>\s*]*>/.test(u)&&(d=!0)}a[s]=u}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)}),i.subParser("runExtension",function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t}),i.subParser("spanGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)}),i.subParser("strikethrough",function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)}),e=r.converter._dispatch("strikethrough.after",e,t,r)),e}),i.subParser("stripLinkDefinitions",function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,l){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+l:(l&&(r.gTitles[n]=l.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")}),i.subParser("tables",function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+="\n\n"}(p,m)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)}),i.subParser("underline",function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return""+t+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return""+t+""}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e}),i.subParser("unescapeSpecialChars",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,function(e,t){var r=parseInt(t);return String.fromCharCode(r)}),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)}),i.subParser("makeMarkdown.blockquote",function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")}),i.subParser("makeMarkdown.codeBlock",function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"}),i.subParser("makeMarkdown.codeSpan",function(e){"use strict";return"`"+e.innerHTML+"`"}),i.subParser("makeMarkdown.emphasis",function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),i.subParser("makeMarkdown.links",function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r}),i.subParser("makeMarkdown.list",function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""}),i.subParser("makeMarkdown.strikethrough",function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rp&&(p=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")});void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},19:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=f("SET_DEFAULT_BLOCK_NAME"),p=f("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=f("SET_UNREGISTERED_FALLBACK_BLOCK_NAME");var m=Object(i.combineReducers)({blockTypes: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_BLOCK_TYPES":return Object(c.a)({},e,Object(l.keyBy)(Object(l.map)(t.blockTypes,function(e){return Object(l.omit)(e,"styles ")}),"name"));case"REMOVE_BLOCK_TYPES":return Object(l.omit)(e,t.names)}return e},blockStyles: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_BLOCK_TYPES":return Object(c.a)({},e,Object(l.mapValues)(Object(l.keyBy)(t.blockTypes,"name"),function(t){return Object(l.uniqBy)([].concat(Object(s.a)(Object(l.get)(t,["styles"],[])),Object(s.a)(Object(l.get)(e,[t.name],[]))),function(e){return e.name})}));case"ADD_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(l.uniqBy)([].concat(Object(s.a)(Object(l.get)(e,[t.blockName],[])),Object(s.a)(t.styles)),function(e){return e.name})));case"REMOVE_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(l.filter)(Object(l.get)(e,[t.blockName],[]),function(e){return-1===t.styleNames.indexOf(e.name)})))}return e},defaultBlockName:h,freeformFallbackBlockName:p,unregisteredFallbackBlockName:g,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(l.isEmpty)(t.category))return e;if(Object(l.find)(e,["slug",t.slug]))return Object(l.map)(e,function(e){return e.slug===t.slug?Object(c.a)({},e,t.category):e})}return e}}),b=r(28),_=Object(b.a)(function(e){return Object.values(e.blockTypes)},function(e){return[e.blockTypes]});function k(e,t){return e.blockTypes[t]}function v(e,t){return e.blockStyles[t]}function w(e){return e.categories}function y(e){return e.defaultBlockName}function j(e){return e.freeformFallbackBlockName}function O(e){return e.unregisteredFallbackBlockName}var x=Object(b.a)(function(e,t){return Object(l.map)(Object(l.filter)(e.blockTypes,function(e){return Object(l.includes)(e.parent,t)}),function(e){return e.name})},function(e){return[e.blockTypes]}),C=function(e,t,r,n){var a="string"==typeof t?k(e,t):t;return Object(l.get)(a,["supports",r],n)};function A(e,t,r,n){return!!C(e,t,r,n)}var S=function(e,t){return x(e,t).length>0},T=function(e,t){return Object(l.some)(x(e,t),function(t){return A(e,t,"inserter",!0)})};function E(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(l.castArray)(e)}}function P(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(l.castArray)(e)}}function M(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(l.castArray)(t),blockName:e}}function N(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(l.castArray)(t),blockName:e}}function L(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function B(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function z(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function H(e){return{type:"SET_CATEGORIES",categories:e}}function D(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}Object(i.registerStore)("core/blocks",{reducer:m,selectors:n,actions:a});var I=r(59),V=r.n(I),R=r(23),F=r(45),q=r.n(F),$=r(0),U=["#191e23","#f8f9f9"];function G(e){var t=ie();if(e.name!==t)return!1;G.block&&G.block.name===t||(G.block=me(t));var r=G.block,n=oe(t);return Object(l.every)(n.attributes,function(t,n){return r.attributes[n]===e.attributes[n]})}function W(e){return!!e&&(Object(l.isString)(e)||Object($.isValidElement)(e)||Object(l.isFunction)(e)||e instanceof $.Component)}function K(e){if(e||(e="block-default"),W(e))return{src:e};if(Object(l.has)(e,["background"])){var t=q()(e.background);return Object(c.a)({},e,{foreground:e.foreground?e.foreground:Object(F.mostReadable)(t,U,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function Y(e){return Object(l.isString)(e)?oe(e):e}var Z={};function Q(e){Z=e}function X(e,t){if(t=Object(c.a)({name:e},Object(l.get)(Z,e),t),"string"==typeof e)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(e))if(Object(i.select)("core/blocks").getBlockType(e))console.error('Block "'+e+'" is already registered.');else if((t=Object(R.applyFilters)("blocks.registerBlockType",t,e))&&Object(l.isFunction)(t.save))if("edit"in t&&!Object(l.isFunction)(t.edit))console.error('The "edit" property must be a valid function.');else if("category"in t)if("category"in t&&!Object(l.some)(Object(i.select)("core/blocks").getCategories(),{slug:t.category}))console.error('The block "'+e+'" must have a registered category.');else if("title"in t&&""!==t.title)if("string"==typeof t.title){if(t.icon=K(t.icon),W(t.icon.src))return Object(i.dispatch)("core/blocks").addBlockTypes(t),t;console.error("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-registration/#icon-optional")}else console.error("Block titles must be strings.");else console.error('The block "'+e+'" must have a title.');else console.error('The block "'+e+'" must have a category.');else console.error('The "save" property must be specified and must be a valid function.');else console.error("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");else console.error("Block names must be strings.")}function J(e){var t=Object(i.select)("core/blocks").getBlockType(e);if(t)return Object(i.dispatch)("core/blocks").removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function ee(e){Object(i.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function te(){return Object(i.select)("core/blocks").getFreeformFallbackBlockName()}function re(e){Object(i.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function ne(){return Object(i.select)("core/blocks").getUnregisteredFallbackBlockName()}function ae(e){Object(i.dispatch)("core/blocks").setDefaultBlockName(e)}function ie(){return Object(i.select)("core/blocks").getDefaultBlockName()}function oe(e){return Object(i.select)("core/blocks").getBlockType(e)}function se(){return Object(i.select)("core/blocks").getBlockTypes()}function ce(e,t,r){return Object(i.select)("core/blocks").getBlockSupport(e,t,r)}function le(e,t,r){return Object(i.select)("core/blocks").hasBlockSupport(e,t,r)}function ue(e){return"core/block"===e.name}var de=function(e){return Object(i.select)("core/blocks").getChildBlockNames(e)},fe=function(e){return Object(i.select)("core/blocks").hasChildBlocks(e)},he=function(e){return Object(i.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},pe=function(e,t){Object(i.dispatch)("core/blocks").addBlockStyles(e,t)},ge=function(e,t){Object(i.dispatch)("core/blocks").removeBlockStyles(e,t)};function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=oe(e),a=Object(l.reduce)(n.attributes,function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e},{});return{clientId:V()(),name:e,isValid:!0,attributes:a,innerBlocks:r}}function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=V()();return Object(c.a)({},e,{clientId:n,attributes:Object(c.a)({},e.attributes,t),innerBlocks:r||e.innerBlocks.map(function(e){return be(e)})})}var _e=function(e,t,r){if(Object(l.isEmpty)(r))return!1;if(!(!(r.length>1)||e.isMultiBlock))return!1;if(!("block"===e.type))return!1;var n=Object(l.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(n.name)))return!1;if(Object(l.isFunction)(e.isMatch)){var a=e.isMultiBlock?r.map(function(e){return e.attributes}):n.attributes;if(!e.isMatch(a))return!1}return!0},ke=function(e){if(Object(l.isEmpty)(e))return[];var t=se();return Object(l.filter)(t,function(t){return!!ye(je("from",t.name),function(t){return _e(t,"from",e)})})},ve=function(e){if(Object(l.isEmpty)(e))return[];var t=je("to",oe(Object(l.first)(e).name).name),r=Object(l.filter)(t,function(t){return _e(t,"to",e)});return Object(l.flatMap)(r,function(e){return e.blocks}).map(function(e){return oe(e)})};function we(e){if(Object(l.isEmpty)(e))return[];var t=Object(l.first)(e);if(e.length>1&&!Object(l.every)(e,{name:t.name}))return[];var r=ke(e),n=ve(e);return Object(l.uniq)([].concat(Object(s.a)(r),Object(s.a)(n)))}function ye(e,t){for(var r=Object(R.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),function(e){return e||a},a.priority)},a=0;a1,a=r[0],i=a.name;if(n&&!Object(l.every)(r,function(e){return e.name===i}))return null;var o,s=je("from",t),u=ye(je("to",i),function(e){return"block"===e.type&&-1!==e.blocks.indexOf(t)&&(!n||e.isMultiBlock)})||ye(s,function(e){return"block"===e.type&&-1!==e.blocks.indexOf(i)&&(!n||e.isMultiBlock)});if(!u)return null;if(o=u.isMultiBlock?u.transform(r.map(function(e){return e.attributes}),r.map(function(e){return e.innerBlocks})):u.transform(a.attributes,a.innerBlocks),!Object(l.isObjectLike)(o))return null;if((o=Object(l.castArray)(o)).some(function(e){return!oe(e.name)}))return null;var d=Object(l.findIndex)(o,function(e){return e.name===t});return d<0?null:o.map(function(t,r){var n=Object(c.a)({},t,{clientId:r===d?a.clientId:t.clientId});return Object(R.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)})}var xe=r(25);var Ce,Ae=function(){return Ce||(Ce=document.implementation.createHTMLDocument("")),Ce};function Se(e,t){if(t){if("string"==typeof e){var r=Ae();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce(function(r,n){return r[n]=Se(e,t[n]),r},{})}}function Te(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return function(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}(n,t)}}var Ee=r(60),Pe=r(184),Me=r(34),Ne=r(33),Le=r(35);var Be=r(10),ze=r(9),He=/[\t\n\f ]/,De=/[A-Za-z]/,Ie=/\r\n?/g;function Ve(e){return He.test(e)}function Re(e){return De.test(e)}function Fe(e,t){if(!e)throw new Error((t||"value")+" was null");return e}var qe=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state=null,this.input=null,this.index=-1,this.tagLine=-1,this.tagColumn=-1,this.line=-1,this.column=-1,this.states={beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var e=this.peek();"<"===e?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===e?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e))},tagOpen:function(){var e=this.consume();"!"===e?this.state="markupDeclaration":"/"===e?this.state="endTagOpen":Re(e)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(e.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.state="commentStartDash":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(e),this.state="comment")},commentStartDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var e=this.consume();"-"===e?this.state="commentEndDash":this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":(this.delegate.appendToCommentData("-"+e),this.state="comment")},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+e),this.state="comment")},tagName:function(){var e=this.consume();Ve(e)?this.state="beforeAttributeName":"/"===e?this.state="selfClosingStartTag":">"===e?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Ve(e)?this.consume():"/"===e?(this.state="selfClosingStartTag",this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.state="attributeName",this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Ve(e)?(this.state="afterAttributeName",this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.state="beforeAttributeValue",this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Ve(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.consume(),this.state="beforeAttributeValue"):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Ve(e)?this.consume():'"'===e?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Ve(e)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Ve(e)?(this.consume(),this.state="beforeAttributeName"):"/"===e?(this.consume(),this.state="selfClosingStartTag"):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var e=this.consume();Re(e)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(e.toLowerCase()))}},this.reset()}return e.prototype.reset=function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Ie,"\n")}(e);this.index2&&void 0!==arguments[2]?arguments[2]:[],n=Y(e),a=n.save;if(a.prototype instanceof $.Component){var i=new a({attributes:t});a=i.render.bind(i)}var o=a({attributes:t,innerBlocks:r});if(Object(l.isObject)(o)&&Object(R.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(R.applyFilters)("blocks.getSaveContent.extraProps",Object(c.a)({},o.props),n,t);We()(s,o.props)||(o=Object($.cloneElement)(o,s))}return o=Object(R.applyFilters)("blocks.getSaveElement",o,n,t),Object($.createElement)(et,{innerBlocks:r},o)}function at(e,t,r){var n=Y(e);return Object($.renderToString)(nt(n,t,r))}function it(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=at(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function ot(e,t,r){var n=Object(l.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(l.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function st(e){var t=e.name,r=it(e);switch(t){case te():case ne():return r;default:return ot(t,function(e,t){return Object(l.reduce)(e.attributes,function(e,r,n){var a=t[n];return void 0===a?e:void 0!==r.source?e:"default"in r&&r.default===a?e:(e[n]=a,e)},{})}(oe(t),e.attributes),r)}}function ct(e){return Object(l.castArray)(e).map(st).join("\n\n")}var lt=/[\t\n\r\v\f ]+/g,ut=/^[\t\n\r\v\f ]*$/,dt=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ft=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],ht=[].concat(ft,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),pt=[l.identity,function(e){return vt(e).join(" ")}],gt=/^[\da-z]+$/i,mt=/^#\d+$/,bt=/^#x[\da-f]+$/i;var _t=function(){function e(){Object(Be.a)(this,e)}return Object(ze.a)(e,[{key:"parse",value:function(e){if(t=e,gt.test(t)||mt.test(t)||bt.test(t))return Object(Ue.decodeEntities)("&"+e+";");var t}}]),e}(),kt=function(){function e(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{},n=Y(e),a=Object(l.mapValues)(n.attributes,function(e,n){return function(e,t,r,n){var a,i=t.type;switch(t.source){case void 0:a=n?n[e]:void 0;break;case"attribute":case"property":case"html":case"text":case"children":case"node":case"query":case"tag":a=Ut(r,t)}return void 0===i||qt(a,Object(l.castArray)(i))||(a=void 0),void 0===a?t.default:a}(n,e,t,r)});return Object(R.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Wt(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,o=te(),s=ne()||o;r=r||{},i=i.trim();var u=t||o;"core/cover-image"===u&&(u="core/cover"),"core/text"!==u&&"core/cover-text"!==u||(u="core/paragraph"),u===o&&(i=Object(Ee.autop)(i).trim());var d=oe(u);if(!d){var f=i;u&&(i=ot(u,r,i)),r={originalName:t,originalUndelimitedContent:f},d=oe(u=s)}a=a.map(Wt);var h=u===o||u===s;if(d&&(i||!h)){var p=me(u,Gt(d,i,r),a);return h||(p.isValid=Et(d,p.attributes,i)),p.originalContent=i,p=function(e,t){var r=oe(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,o=a.innerBlocks,s=0;s1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach(function(t){e(t.childNodes,r,n,a),r.forEach(function(e){n.contains(t)&&e(t,n,a)})})}(n.body.childNodes,t,n,r),n.body.innerHTML}function sr(e,t,r){var n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach(function(t){var i=t.nodeName.toLowerCase();if(!n.hasOwnProperty(i)||n[i].isMatch&&!n[i].isMatch(t))e(t.childNodes,r,n,a),a&&!er(t)&&t.nextElementSibling&&Object(Qt.insertAfter)(r.createElement("br"),t),Object(Qt.unwrap)(t);else if(t.nodeType===rr){var o=n[i],s=o.attributes,c=void 0===s?[]:s,u=o.classes,d=void 0===u?[]:u,f=o.children,h=o.require,p=void 0===h?[]:h,g=o.allowEmpty;if(f&&!g&&ir(t))return void Object(Qt.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach(function(e){var r=e.name;"class"===r||Object(l.includes)(c,r)||t.removeAttribute(r)}),t.classList&&t.classList.length)){var m=d.map(function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:l.noop});Array.from(t.classList).forEach(function(e){m.some(function(t){return t(e)})||t.classList.remove(e)}),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,r,n,a),Object(Qt.unwrap)(t)):"BODY"===t.parentNode.nodeName&&er(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some(function(e){return!er(e)})&&Object(Qt.unwrap)(t)):e(t.childNodes,r,f,a);else for(;t.firstChild;)Object(Qt.remove)(t.firstChild)}}})}(n.body.childNodes,n,t,r),n.body.innerHTML}var cr=window.Node,lr=cr.ELEMENT_NODE,ur=cr.TEXT_NODE,dr=function(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var i=n.firstChild;i.nodeType===ur?i.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):n.removeChild(i):i.nodeType===lr?"BR"===i.nodeName?(i.nextSibling&&"BR"===i.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(i.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(i):n.removeChild(i)):"P"===i.nodeName?ir(i)?n.removeChild(i):a.appendChild(i):er(i)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):a.appendChild(i):n.removeChild(i)}return a.innerHTML},fr=window.Node.COMMENT_NODE,hr=function(e,t){if(e.nodeType===fr)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===fr&&"noteaser"===n.nodeValue){a=!0,Object(Qt.remove)(n);break}Object(Qt.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(Qt.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))};function pr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var gr=function(e){if(pr(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Object(s.a)(n.childNodes).map(function(e){var t=e.nodeValue;return void 0===t?"":t}).join("")))){var i=a,o=i.previousElementSibling,c=i.parentNode;o?(o.appendChild(t),c.removeChild(i)):(c.parentNode.insertBefore(t,c),c.parentNode.removeChild(c))}if(a&&pr(a)){var l=e.previousElementSibling;l?l.appendChild(e):Object(Qt.unwrap)(e)}}},mr=function(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=dr(e.innerHTML))};var br=function(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!er(e)&&Object(l.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(l.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);for(var i=n;i&&"P"!==i.nodeName;)i=i.parentElement;var o=t.createElement("figure");i?i.parentNode.insertBefore(o,i):n.parentNode.insertBefore(o,n),o.appendChild(n)}},_r=r(124);var kr=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ye(je("from"),function(e){return"shortcode"===e.type&&Object(l.some)(Object(l.castArray)(e.tag),function(e){return Object(_r.regexp)(e).test(t)})});if(!n)return[t];var a,i=Object(l.castArray)(n.tag),o=Object(l.first)(i);if(a=Object(_r.next)(o,t,r)){var u=t.substr(0,a.index);if(r=a.index+a.content.length,!Object(l.includes)(a.shortcode.content||"","<")&&!/(\n|

    )\s*$/.test(u))return e(t,r);var d=Object(l.mapValues)(Object(l.pickBy)(n.attributes,function(e){return e.shortcode}),function(e){return e.shortcode(a.shortcode.attrs,a)});return[u,me(n.blockName,Gt(Object(c.a)({},oe(n.blockName),{attributes:n.attributes}),a.shortcode.content,d))].concat(Object(s.a)(e(t.substr(r))))}return[t]};function vr(e,t){return e.every(function(e){return function(e,t){if(er(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some(function(e){return 0===Object(l.difference)([r,t],e).length})}(e,t)&&vr(Array.from(e.children),t)})}function wr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}var yr=function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(wr)&&vr(n,t)},jr=function(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,i=r.textDecorationLine,o=r.verticalAlign;"bold"!==n&&"700"!==n||Object(Qt.wrap)(t.createElement("strong"),e),"italic"===a&&Object(Qt.wrap)(t.createElement("em"),e),"line-through"===i&&Object(Qt.wrap)(t.createElement("del"),e),"super"===o?Object(Qt.wrap)(t.createElement("sup"),e):"sub"===o&&Object(Qt.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(Qt.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(Qt.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))},Or=function(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)},xr=window.parseInt;function Cr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Ar=function(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=xr(n[1],10)-1||0,i=e.previousElementSibling;if(!i||!Cr(i)){var o=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(o),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",o),e.parentNode.insertBefore(c,e)}var l=e.previousElementSibling,u=l.nodeName,d=t.createElement("li"),f=l;for(e.removeChild(e.firstElementChild);e.firstChild;)d.appendChild(e.firstChild);for(;a--;)Cr(f=f.lastElementChild||f)&&(f=f.lastElementChild||f);Cr(f)||(f=f.appendChild(t.createElement(u))),f.appendChild(d),e.parentNode.removeChild(e)}}}},Sr=r(32),Tr=window,Er=Tr.atob,Pr=Tr.File,Mr=function(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(xe.a)(r,2),a=n[0],i=n[1],o=a.slice(5).split(";"),s=Object(xe.a)(o,1)[0];if(!i||!s)return void(e.src="");try{t=Er(i)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),l=0;l]+>/,""),"INLINE"!==o&&-1!==r.indexOf("\x3c!-- wp:"))return Yt(r);if(String.prototype.normalize&&(r=r.normalize()),!a||r&&!function(e){return!/<(?!br[ \/>])/i.test(e)}(r)||(r=Br(a),"AUTO"===o&&-1===a.indexOf("\n")&&0!==a.indexOf("

    ")&&0===r.indexOf("

    ")&&(o="INLINE")),"INLINE"===o)return Ir(r);var f=kr(r),h=f.length>1;if("AUTO"===o&&!h&&yr(r,s))return Ir(r);var p=Object(l.filter)(je("from"),{type:"raw"}).map(function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})}),g=Jt(),m=ar(p),b=Object(l.compact)(Object(l.flatMap)(f,function(e){if("string"!=typeof e)return e;var t=[Hr,Ar,Or,gr,Mr,jr,hr,br,mr];d||t.unshift(zr);var r=Object(c.a)({},m,g);return e=sr(e=or(e,t,m),r),e=dr(e),Dr.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map(function(e){var t=ye(r,function(t){return(0,t.isMatch)(e)});if(!t)return me("core/html",Gt("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):me(a,Gt(a,e.outerHTML))})}({html:e,rawTransforms:p})}));if("AUTO"===o&&1===b.length){var _=a.trim();if(""!==_&&-1===_.indexOf("\n"))return sr(it(b[0]),g)}return b}function Rr(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Yt(r);var n=kr(r),a=Object(l.filter)(je("from"),{type:"raw"}).map(function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})}),i=ar(a);return Object(l.compact)(Object(l.flatMap)(n,function(e){return"string"!=typeof e?e:(e=or(e,[gr,hr,br,mr],i),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map(function(e){var t=ye(r,function(t){return(0,t.isMatch)(e)});if(!t)return me("core/html",Gt("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):me(a,Gt(a,e.outerHTML))})}({html:e=dr(e),rawTransforms:a}))}))}function Fr(){return Object(i.select)("core/blocks").getCategories()}function qr(e){Object(i.dispatch)("core/blocks").setCategories(e)}function $r(e,t){Object(i.dispatch)("core/blocks").updateCategory(e,t)}function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(l.every)(t,function(t,r){var n=Object(xe.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&Ur(o.innerBlocks,i)})}function Gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(l.map)(t,function(t,r){var n=Object(xe.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var u=Gr(s.innerBlocks,o);return Object(c.a)({},s,{innerBlocks:u})}var d=oe(a),f=function(e,t){return Object(l.mapValues)(t,function(t,r){return h(e[r],t)})},h=function(e,t){return r=e,"html"===Object(l.get)(r,["source"])&&Object(l.isArray)(t)?Object($.renderToString)(t):function(e){return"query"===Object(l.get)(e,["source"])}(e)&&t?t.map(function(t){return f(e.query,t)}):t;var r};return me(a,f(Object(l.get)(d,["attributes"],{}),i),Gr([],o))}):e}r.d(t,"createBlock",function(){return me}),r.d(t,"cloneBlock",function(){return be}),r.d(t,"getPossibleBlockTransformations",function(){return we}),r.d(t,"switchToBlockType",function(){return Oe}),r.d(t,"getBlockTransforms",function(){return je}),r.d(t,"findTransform",function(){return ye}),r.d(t,"parse",function(){return Zt}),r.d(t,"getBlockAttributes",function(){return Gt}),r.d(t,"parseWithAttributeSchema",function(){return Ut}),r.d(t,"pasteHandler",function(){return Vr}),r.d(t,"rawHandler",function(){return Rr}),r.d(t,"getPhrasingContentSchema",function(){return Jt}),r.d(t,"serialize",function(){return ct}),r.d(t,"getBlockContent",function(){return it}),r.d(t,"getBlockDefaultClassName",function(){return tt}),r.d(t,"getBlockMenuDefaultClassName",function(){return rt}),r.d(t,"getSaveElement",function(){return nt}),r.d(t,"getSaveContent",function(){return at}),r.d(t,"isValidBlockContent",function(){return Et}),r.d(t,"getCategories",function(){return Fr}),r.d(t,"setCategories",function(){return qr}),r.d(t,"updateCategory",function(){return $r}),r.d(t,"registerBlockType",function(){return X}),r.d(t,"unregisterBlockType",function(){return J}),r.d(t,"setFreeformContentHandlerName",function(){return ee}),r.d(t,"getFreeformContentHandlerName",function(){return te}),r.d(t,"setUnregisteredTypeHandlerName",function(){return re}),r.d(t,"getUnregisteredTypeHandlerName",function(){return ne}),r.d(t,"setDefaultBlockName",function(){return ae}),r.d(t,"getDefaultBlockName",function(){return ie}),r.d(t,"getBlockType",function(){return oe}),r.d(t,"getBlockTypes",function(){return se}),r.d(t,"getBlockSupport",function(){return ce}),r.d(t,"hasBlockSupport",function(){return le}),r.d(t,"isReusableBlock",function(){return ue}),r.d(t,"getChildBlockNames",function(){return de}),r.d(t,"hasChildBlocks",function(){return fe}),r.d(t,"hasChildBlocksWithInserterSupport",function(){return he}),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",function(){return Q}),r.d(t,"registerBlockStyle",function(){return pe}),r.d(t,"unregisterBlockStyle",function(){return ge}),r.d(t,"isUnmodifiedDefaultBlock",function(){return G}),r.d(t,"normalizeIconObject",function(){return K}),r.d(t,"isValidIcon",function(){return W}),r.d(t,"doBlocksMatchTemplate",function(){return Ur}),r.d(t,"synchronizeBlocksWithTemplate",function(){return Gr}),r.d(t,"children",function(){return Lt}),r.d(t,"node",function(){return Rt}),r.d(t,"withBlockContentContext",function(){return Je})},32:function(e,t){!function(){e.exports=this.wp.blob}()},33:function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",function(){return n})},35:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",function(){return n})},40:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},45:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,s=0,c=a.round,l=a.min,u=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(E[e])e=E[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=q.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=q.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=q.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=q.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=q.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=q.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=q.hex8.exec(e))return{r:B(t[1]),g:B(t[2]),b:B(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=q.hex6.exec(e))return{r:B(t[1]),g:B(t[2]),b:B(t[3]),format:r?"name":"hex"};if(t=q.hex4.exec(e))return{r:B(t[1]+""+t[1]),g:B(t[2]+""+t[2]),b:B(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=q.hex3.exec(e))return{r:B(t[1]+""+t[1]),g:B(t[2]+""+t[2]),b:B(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&($(e.r)&&$(e.g)&&$(e.b)?(h=e.r,p=e.g,g=e.b,t={r:255*N(h,255),g:255*N(p,255),b:255*N(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):$(e.h)&&$(e.s)&&$(e.v)?(n=H(e.s),s=H(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),l=n%6;return{r:255*[r,s,o,o,c,r][l],g:255*[c,r,r,s,o,o][l],b:255*[o,o,c,r,r,s][l]}}(e.h,n,s),d=!0,f="hsv"):$(e.h)&&$(e.s)&&$(e.l)&&(n=H(e.s),c=H(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var h,p,g;return r=M(r),{ok:d,format:e.format||f,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function h(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,i=u(e,t,r),o=l(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function T(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(D(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+m(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(k,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:H(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var l=0;lc&&(c=n,s=f(t[l]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var E=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(E);function M(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return l(1,u(0,e))}function B(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function D(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return B(e)/255}var V,R,F,q=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!q.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},5:function(e,t){!function(){e.exports=this.wp.data}()},53:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},59:function(e,t,r){var n=r(79),a=r(80);e.exports=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[i+s]=o[s];return t||a(o)}},60:function(e,t){!function(){e.exports=this.wp.autop}()},7:function(e,t){!function(){e.exports=this.wp.compose}()},79: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 n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},8:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r(15);function a(e){for(var t=1;t (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var i={},o={},s={},c=a(!0),l="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var h=function(e,t,r,n){"use strict";var a,i,o,s,c,l=n||"",u=l.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+l.replace(/g/g,"")),f=new RegExp(t,l.replace(/g/g,"")),h=[];do{for(a=0;o=d.exec(e);)if(f.test(o[0]))a++||(s=(i=d.lastIndex)-o[0].length);else if(a&&!--a){c=o.index+o[0].length;var p={left:{start:s,end:i},match:{start:i,end:o.index},right:{start:o.index,end:c},wholeMatch:{start:s,end:c}};if(h.push(p),!u)return h}}while(a&&(d.lastIndex=i));return h};i.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=h(e,t,r,n),i=[],o=0;o0){var u=[];0!==s[0].wholeMatch.start&&u.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d=0?n+(r||0):n},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e})},i.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},i.Converter=function(e){"use strict";var t={},r=[],n=[],a={},o=l,f={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var a=d(e,t);if(!a.valid)throw Error(a.error);for(var o=0;o[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,i.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],i.helper.isUndefined(r.gTitles[a])||(l=r.gTitles[a])}var u='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,n,a,o){if("\\"===n)return r+a;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),c="";return t.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),r+'"+a+""})),e=r.converter._dispatch("anchors.after",e,t,r)});var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-\/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,k=function(e){"use strict";return function(t,r,n,a,o,s,c){var l=n=n.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),u="",d="",f=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(d=' target="¨E95Eblank"'),f+'"+l+""+u+h}},v=function(e,t){"use strict";return function(r,n,a){var o="mailto:";return n=n||"",a=i.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=i.helper.encodeEmailAddress(o+a),a=i.helper.encodeEmailAddress(a)):o+=a,n+''+a+""}};i.subParser("autoLinks",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(m,k(t))).replace(_,v(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)}),i.subParser("simplifiedAutoLinks",function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,k(t)):e.replace(p,k(t))).replace(b,v(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e}),i.subParser("blockGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=i.subParser("blockQuotes")(e,t,r),e=i.subParser("headers")(e,t,r),e=i.subParser("horizontalRule")(e,t,r),e=i.subParser("lists")(e,t,r),e=i.subParser("codeBlocks")(e,t,r),e=i.subParser("tables")(e,t,r),e=i.subParser("hashHTMLBlocks")(e,t,r),e=i.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)}),i.subParser("blockQuotes",function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=i.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),i.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)}),e=r.converter._dispatch("blockQuotes.after",e,t,r)}),i.subParser("codeBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,n,a){var o=n,s=a,c="\n";return o=i.subParser("outdent")(o,t,r),o=i.subParser("encodeCode")(o,t,r),o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),o="
    "+o+c+"
    ",i.subParser("hashBlock")(o,t,r)+s})).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)}),i.subParser("codeSpans",function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,n,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=i.subParser("encodeCode")(s,t,r))+"",s=i.subParser("hashHTMLSpans")(s,t,r)}),e=r.converter._dispatch("codeSpans.after",e,t,r)}),i.subParser("completeHTMLDocument",function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",i="",o='\n',s="",c="";for(var l in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(l))switch(l.toLowerCase()){case"doctype":break;case"title":i=""+r.metadata.parsed.title+"\n";break;case"charset":o="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[l]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+i+o+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)}),i.subParser("detab",function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)}),i.subParser("encodeBackslashEscapes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)}),i.subParser("encodeCode",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)}),i.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)}),i.subParser("githubCodeBlocks",function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,n,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=i.subParser("encodeCode")(o,t,r),o="
    "+(o=(o=(o=i.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",o=i.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"})).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e}),i.subParser("hashBlock",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)}),i.subParser("hashCodeTags",function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=i.helper.replaceRecursiveRegExp(e,function(e,n,a,o){var s=a+i.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"},"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)}),i.subParser("hashElement",function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}}),i.subParser("hashHTMLBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var o=0;o]*>)","im"),l="<"+n[o]+"\\b[^>]*>",u="";-1!==(s=i.helper.regexIndexOf(e,c));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],a,l,u,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=(e=i.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),i.subParser("hashHTMLSpans",function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,function(e){return n(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<[^>]+?>/gi,function(e){return n(e)}),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)}),i.subParser("unhashHTMLSpans",function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)}),i.subParser("headers",function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',l=""+o+"";return i.subParser("hashBlock")(l,t,r)})).replace(o,function(e,a){var o=i.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',l=n+1,u=""+o+"";return i.subParser("hashBlock")(u,t,r)});var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return n=e,a=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,function(e,a,o){var s=o;t.customizedHeaderId&&(s=o.replace(/\s?\{([^{]+?)}\s*$/,""));var l=i.subParser("spanGamut")(s,t,r),u=t.noHeaderId?"":' id="'+c(o)+'"',d=n-1+a.length,f=""+l+"";return i.subParser("hashBlock")(f,t,r)}),e=r.converter._dispatch("headers.after",e,t,r)}),i.subParser("horizontalRule",function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=i.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)}),i.subParser("images",function(e,t,r){"use strict";function n(e,t,n,a,o,s,c,l){var u=r.gUrls,d=r.gTitles,f=r.gDimensions;if(n=n.toLowerCase(),l||(l=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,i.helper.isUndefined(u[n]))return e;a=u[n],i.helper.isUndefined(d[n])||(l=d[n]),i.helper.isUndefined(f[n])||(o=f[n].width,s=f[n].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var h=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,r,a,i,o,s,c){return n(e,t,r,a=a.replace(/\s/g,""),i,o,0,c)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)}),i.subParser("italicsAndBold",function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return n(t,"","")})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return n(t,"","")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return n(t,"","")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=r.converter._dispatch("italicsAndBold.after",e,t,r)}),i.subParser("lists",function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,function(e,n,a,s,c,l,u){u=u&&""!==u.trim();var d=i.subParser("outdent")(c,t,r),f="";return l&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='-1?(d=i.subParser("githubCodeBlocks")(d,t,r),d=i.subParser("blockGamut")(d,t,r)):(d=(d=i.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=i.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?i.subParser("paragraphs")(d,t,r):i.subParser("spanGamut")(d,t,r)),d=""+(d=d.replace("¨A",""))+"\n"})).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function o(e,r,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?o:s,l="";if(-1!==e.search(c))!function t(u){var d=u.search(c),f=a(e,r);-1!==d?(l+="\n\n<"+r+f+">\n"+n(u.slice(0,d),!!i)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?o:s,t(u.slice(d))):l+="\n\n<"+r+f+">\n"+n(u,!!i)+"\n"}(e);else{var u=a(e,r);l="\n\n<"+r+u+">\n"+n(e,!!i)+"\n"}return l}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r){return o(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r,n){return o(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)}),i.subParser("metadata",function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,n){return r.metadata.parsed[t]=n,""})}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,r){return n(r),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"})).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)}),i.subParser("outdent",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)}),i.subParser("paragraphs",function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=i.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(o=a.length,s=0;s]*>\s*]*>/.test(u)&&(d=!0)}a[s]=u}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)}),i.subParser("runExtension",function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t}),i.subParser("spanGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=i.subParser("codeSpans")(e,t,r),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=i.subParser("encodeBackslashEscapes")(e,t,r),e=i.subParser("images")(e,t,r),e=i.subParser("anchors")(e,t,r),e=i.subParser("autoLinks")(e,t,r),e=i.subParser("simplifiedAutoLinks")(e,t,r),e=i.subParser("emoji")(e,t,r),e=i.subParser("underline")(e,t,r),e=i.subParser("italicsAndBold")(e,t,r),e=i.subParser("strikethrough")(e,t,r),e=i.subParser("ellipsis")(e,t,r),e=i.subParser("hashHTMLSpans")(e,t,r),e=i.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)}),i.subParser("strikethrough",function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,n){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)}),e=r.converter._dispatch("strikethrough.after",e,t,r)),e}),i.subParser("stripLinkDefinitions",function(e,t,r){"use strict";var n=function(e,n,a,o,s,c,l){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=i.subParser("encodeAmpsAndAngles")(a,t,r),c?c+l:(l&&(r.gTitles[n]=l.replace(/"|'/g,""")),t.parseImgDimensions&&o&&s&&(r.gDimensions[n]={width:o,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")}),i.subParser("tables",function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+i.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,o=e.split("\n");for(a=0;a"+(c=i.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var i=0;i\n"}return r+="\n\n"}(p,m)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)}),i.subParser("underline",function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return""+t+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return""+t+""}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,i.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e}),i.subParser("unescapeSpecialChars",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,function(e,t){var r=parseInt(t);return String.fromCharCode(r)}),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)}),i.subParser("makeMarkdown.blockquote",function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,o=0;o ")}),i.subParser("makeMarkdown.codeBlock",function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"}),i.subParser("makeMarkdown.codeSpan",function(e){"use strict";return"`"+e.innerHTML+"`"}),i.subParser("makeMarkdown.emphasis",function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),i.subParser("makeMarkdown.links",function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var o=0;o",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r}),i.subParser("makeMarkdown.list",function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""}),i.subParser("makeMarkdown.strikethrough",function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,o=0;otr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rp&&(p=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")});void 0===(n=function(){"use strict";return i}.call(t,r,t,e))||(e.exports=n)}).call(this)},24:function(e,t){!function(){e.exports=this.wp.hooks}()},25:function(e,t){!function(){e.exports=this.wp.dom}()},28:function(e,t,r){"use strict";var n=r(37);var a=r(38);function i(e,t){return Object(n.a)(e)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}(e,t)||Object(a.a)()}r.d(t,"a",function(){return i})},30:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=f("SET_DEFAULT_BLOCK_NAME"),p=f("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=f("SET_UNREGISTERED_FALLBACK_BLOCK_NAME");var m=Object(i.combineReducers)({blockTypes: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_BLOCK_TYPES":return Object(c.a)({},e,Object(l.keyBy)(Object(l.map)(t.blockTypes,function(e){return Object(l.omit)(e,"styles ")}),"name"));case"REMOVE_BLOCK_TYPES":return Object(l.omit)(e,t.names)}return e},blockStyles: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_BLOCK_TYPES":return Object(c.a)({},e,Object(l.mapValues)(Object(l.keyBy)(t.blockTypes,"name"),function(t){return Object(l.uniqBy)([].concat(Object(s.a)(Object(l.get)(t,["styles"],[])),Object(s.a)(Object(l.get)(e,[t.name],[]))),function(e){return e.name})}));case"ADD_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(l.uniqBy)([].concat(Object(s.a)(Object(l.get)(e,[t.blockName],[])),Object(s.a)(t.styles)),function(e){return e.name})));case"REMOVE_BLOCK_STYLES":return Object(c.a)({},e,Object(o.a)({},t.blockName,Object(l.filter)(Object(l.get)(e,[t.blockName],[]),function(e){return-1===t.styleNames.indexOf(e.name)})))}return e},defaultBlockName:h,freeformFallbackBlockName:p,unregisteredFallbackBlockName:g,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(l.isEmpty)(t.category))return e;if(Object(l.find)(e,["slug",t.slug]))return Object(l.map)(e,function(e){return e.slug===t.slug?Object(c.a)({},e,t.category):e})}return e}}),b=r(30),_=function(e,t){return"string"==typeof t?v(e,t):t},k=Object(b.a)(function(e){return Object.values(e.blockTypes)},function(e){return[e.blockTypes]});function v(e,t){return e.blockTypes[t]}function w(e,t){return e.blockStyles[t]}function y(e){return e.categories}function j(e){return e.defaultBlockName}function O(e){return e.freeformFallbackBlockName}function x(e){return e.unregisteredFallbackBlockName}var C=Object(b.a)(function(e,t){return Object(l.map)(Object(l.filter)(e.blockTypes,function(e){return Object(l.includes)(e.parent,t)}),function(e){return e.name})},function(e){return[e.blockTypes]}),A=function(e,t,r,n){var a=_(e,t);return Object(l.get)(a,["supports",r],n)};function S(e,t,r,n){return!!A(e,t,r,n)}function T(e,t,r){var n=_(e,t),a=Object(l.flow)([l.deburr,function(e){return e.toLowerCase()},function(e){return e.trim()}]),i=a(r),o=Object(l.flow)([a,function(e){return Object(l.includes)(e,i)}]);return o(n.title)||Object(l.some)(n.keywords,o)||o(n.category)}var E=function(e,t){return C(e,t).length>0},P=function(e,t){return Object(l.some)(C(e,t),function(t){return S(e,t,"inserter",!0)})};function M(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(l.castArray)(e)}}function L(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(l.castArray)(e)}}function N(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(l.castArray)(t),blockName:e}}function B(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(l.castArray)(t),blockName:e}}function z(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function H(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function D(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function I(e){return{type:"SET_CATEGORIES",categories:e}}function V(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}Object(i.registerStore)("core/blocks",{reducer:m,selectors:n,actions:a});var R=r(65),F=r.n(R),q=r(24),$=r(45),U=r.n($),G=r(0),W=["#191e23","#f8f9f9"];function K(e){var t=se();if(e.name!==t)return!1;K.block&&K.block.name===t||(K.block=_e(t));var r=K.block,n=ce(t);return Object(l.every)(n.attributes,function(t,n){return r.attributes[n]===e.attributes[n]})}function Y(e){return!!e&&(Object(l.isString)(e)||Object(G.isValidElement)(e)||Object(l.isFunction)(e)||e instanceof G.Component)}function Z(e){if(e||(e="block-default"),Y(e))return{src:e};if(Object(l.has)(e,["background"])){var t=U()(e.background);return Object(c.a)({},e,{foreground:e.foreground?e.foreground:Object($.mostReadable)(t,W,{includeFallbackColors:!0,level:"AA",size:"large"}).toHexString(),shadowColor:t.setAlpha(.3).toRgbString()})}return e}function Q(e){return Object(l.isString)(e)?ce(e):e}var X={};function J(e){X=e}function ee(e,t){if(t=Object(c.a)({name:e},Object(l.get)(X,e),t),"string"==typeof e)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(e))if(Object(i.select)("core/blocks").getBlockType(e))console.error('Block "'+e+'" is already registered.');else if((t=Object(q.applyFilters)("blocks.registerBlockType",t,e))&&Object(l.isFunction)(t.save))if("edit"in t&&!Object(l.isFunction)(t.edit))console.error('The "edit" property must be a valid function.');else if("category"in t)if("category"in t&&!Object(l.some)(Object(i.select)("core/blocks").getCategories(),{slug:t.category}))console.error('The block "'+e+'" must have a registered category.');else if("title"in t&&""!==t.title)if("string"==typeof t.title){if(t.icon=Z(t.icon),Y(t.icon.src))return Object(i.dispatch)("core/blocks").addBlockTypes(t),t;console.error("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-registration/#icon-optional")}else console.error("Block titles must be strings.");else console.error('The block "'+e+'" must have a title.');else console.error('The block "'+e+'" must have a category.');else console.error('The "save" property must be specified and must be a valid function.');else console.error("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");else console.error("Block names must be strings.")}function te(e){var t=Object(i.select)("core/blocks").getBlockType(e);if(t)return Object(i.dispatch)("core/blocks").removeBlockTypes(e),t;console.error('Block "'+e+'" is not registered.')}function re(e){Object(i.dispatch)("core/blocks").setFreeformFallbackBlockName(e)}function ne(){return Object(i.select)("core/blocks").getFreeformFallbackBlockName()}function ae(e){Object(i.dispatch)("core/blocks").setUnregisteredFallbackBlockName(e)}function ie(){return Object(i.select)("core/blocks").getUnregisteredFallbackBlockName()}function oe(e){Object(i.dispatch)("core/blocks").setDefaultBlockName(e)}function se(){return Object(i.select)("core/blocks").getDefaultBlockName()}function ce(e){return Object(i.select)("core/blocks").getBlockType(e)}function le(){return Object(i.select)("core/blocks").getBlockTypes()}function ue(e,t,r){return Object(i.select)("core/blocks").getBlockSupport(e,t,r)}function de(e,t,r){return Object(i.select)("core/blocks").hasBlockSupport(e,t,r)}function fe(e){return"core/block"===e.name}var he=function(e){return Object(i.select)("core/blocks").getChildBlockNames(e)},pe=function(e){return Object(i.select)("core/blocks").hasChildBlocks(e)},ge=function(e){return Object(i.select)("core/blocks").hasChildBlocksWithInserterSupport(e)},me=function(e,t){Object(i.dispatch)("core/blocks").addBlockStyles(e,t)},be=function(e,t){Object(i.dispatch)("core/blocks").removeBlockStyles(e,t)};function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=ce(e),a=Object(l.reduce)(n.attributes,function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e},{});return{clientId:F()(),name:e,isValid:!0,attributes:a,innerBlocks:r}}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=F()();return Object(c.a)({},e,{clientId:n,attributes:Object(c.a)({},e.attributes,t),innerBlocks:r||e.innerBlocks.map(function(e){return ke(e)})})}var ve=function(e,t,r){if(Object(l.isEmpty)(r))return!1;if(!(!(r.length>1)||e.isMultiBlock))return!1;if(!("block"===e.type))return!1;var n=Object(l.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(n.name)))return!1;if(Object(l.isFunction)(e.isMatch)){var a=e.isMultiBlock?r.map(function(e){return e.attributes}):n.attributes;if(!e.isMatch(a))return!1}return!0},we=function(e){if(Object(l.isEmpty)(e))return[];var t=le();return Object(l.filter)(t,function(t){return!!Oe(xe("from",t.name),function(t){return ve(t,"from",e)})})},ye=function(e){if(Object(l.isEmpty)(e))return[];var t=xe("to",ce(Object(l.first)(e).name).name),r=Object(l.filter)(t,function(t){return ve(t,"to",e)});return Object(l.flatMap)(r,function(e){return e.blocks}).map(function(e){return ce(e)})};function je(e){if(Object(l.isEmpty)(e))return[];var t=Object(l.first)(e);if(e.length>1&&!Object(l.every)(e,{name:t.name}))return[];var r=we(e),n=ye(e);return Object(l.uniq)([].concat(Object(s.a)(r),Object(s.a)(n)))}function Oe(e,t){for(var r=Object(q.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),function(e){return e||a},a.priority)},a=0;a1,a=r[0],i=a.name;if(n&&!Object(l.every)(r,function(e){return e.name===i}))return null;var o,s=xe("from",t),u=Oe(xe("to",i),function(e){return"block"===e.type&&-1!==e.blocks.indexOf(t)&&(!n||e.isMultiBlock)})||Oe(s,function(e){return"block"===e.type&&-1!==e.blocks.indexOf(i)&&(!n||e.isMultiBlock)});if(!u)return null;if(o=u.isMultiBlock?u.transform(r.map(function(e){return e.attributes}),r.map(function(e){return e.innerBlocks})):u.transform(a.attributes,a.innerBlocks),!Object(l.isObjectLike)(o))return null;if((o=Object(l.castArray)(o)).some(function(e){return!ce(e.name)}))return null;var d=Object(l.findIndex)(o,function(e){return e.name===t});return d<0?null:o.map(function(t,r){var n=Object(c.a)({},t,{clientId:r===d?a.clientId:t.clientId});return Object(q.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)})}var Ae=r(28);var Se,Te=function(){return Se||(Se=document.implementation.createHTMLDocument("")),Se};function Ee(e,t){if(t){if("string"==typeof e){var r=Te();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce(function(r,n){return r[n]=Ee(e,t[n]),r},{})}}function Pe(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return function(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}(n,t)}}var Me=r(66),Le=r(205),Ne=r(37),Be=r(34),ze=r(38);var He=r(10),De=r(9),Ie=/[\t\n\f ]/,Ve=/[A-Za-z]/,Re=/\r\n?/g;function Fe(e){return Ie.test(e)}function qe(e){return Ve.test(e)}function $e(e,t){if(!e)throw new Error((t||"value")+" was null");return e}var Ue=function(){function e(e,t){this.delegate=e,this.entityParser=t,this.state=null,this.input=null,this.index=-1,this.tagLine=-1,this.tagColumn=-1,this.line=-1,this.column=-1,this.states={beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var e=this.peek();"<"===e?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===e?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e))},tagOpen:function(){var e=this.consume();"!"===e?this.state="markupDeclaration":"/"===e?this.state="endTagOpen":qe(e)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(e.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.state="commentStartDash":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(e),this.state="comment")},commentStartDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var e=this.consume();"-"===e?this.state="commentEndDash":this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":(this.delegate.appendToCommentData("-"+e),this.state="comment")},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+e),this.state="comment")},tagName:function(){var e=this.consume();Fe(e)?this.state="beforeAttributeName":"/"===e?this.state="selfClosingStartTag":">"===e?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Fe(e)?this.consume():"/"===e?(this.state="selfClosingStartTag",this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.state="attributeName",this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Fe(e)?(this.state="afterAttributeName",this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.state="beforeAttributeValue",this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Fe(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.consume(),this.state="beforeAttributeValue"):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Fe(e)?this.consume():'"'===e?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Fe(e)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Fe(e)?(this.consume(),this.state="beforeAttributeName"):"/"===e?(this.consume(),this.state="selfClosingStartTag"):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var e=this.consume();qe(e)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(e.toLowerCase()))}},this.reset()}return e.prototype.reset=function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Re,"\n")}(e);this.index2&&void 0!==arguments[2]?arguments[2]:[],n=Q(e),a=n.save;if(a.prototype instanceof G.Component){var i=new a({attributes:t});a=i.render.bind(i)}var o=a({attributes:t,innerBlocks:r});if(Object(l.isObject)(o)&&Object(q.hasFilter)("blocks.getSaveContent.extraProps")){var s=Object(q.applyFilters)("blocks.getSaveContent.extraProps",Object(c.a)({},o.props),n,t);Ye()(s,o.props)||(o=Object(G.cloneElement)(o,s))}return o=Object(q.applyFilters)("blocks.getSaveElement",o,n,t),Object(G.createElement)(rt,{innerBlocks:r},o)}function ot(e,t,r){var n=Q(e);return Object(G.renderToString)(it(n,t,r))}function st(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=ot(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function ct(e,t,r){var n=Object(l.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(l.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function lt(e){var t=e.name,r=st(e);switch(t){case ne():case ie():return r;default:return ct(t,function(e,t){return Object(l.reduce)(e.attributes,function(e,r,n){var a=t[n];return void 0===a?e:void 0!==r.source?e:"default"in r&&r.default===a?e:(e[n]=a,e)},{})}(ce(t),e.attributes),r)}}function ut(e){return Object(l.castArray)(e).map(lt).join("\n\n")}var dt=/[\t\n\r\v\f ]+/g,ft=/^[\t\n\r\v\f ]*$/,ht=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,pt=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],gt=[].concat(pt,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),mt=[l.identity,function(e){return yt(e).join(" ")}],bt=/^[\da-z]+$/i,_t=/^#\d+$/,kt=/^#x[\da-f]+$/i;var vt=function(){function e(){Object(He.a)(this,e)}return Object(De.a)(e,[{key:"parse",value:function(e){if(t=e,bt.test(t)||_t.test(t)||kt.test(t))return Object(We.decodeEntities)("&"+e+";");var t}}]),e}(),wt=function(){function e(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{},n=Q(e),a=Object(l.mapValues)(n.attributes,function(e,n){return function(e,t,r,n){var a,i=t.type;switch(t.source){case void 0:a=n?n[e]:void 0;break;case"attribute":case"property":case"html":case"text":case"children":case"node":case"query":case"tag":a=Wt(r,t)}return void 0===i||Ut(a,Object(l.castArray)(i))||(a=void 0),void 0===a?t.default:a}(n,e,t,r)});return Object(q.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Yt(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,i=e.innerHTML,o=ne(),s=ie()||o;r=r||{},i=i.trim();var u=t||o;"core/cover-image"===u&&(u="core/cover"),"core/text"!==u&&"core/cover-text"!==u||(u="core/paragraph"),u===o&&(i=Object(Me.autop)(i).trim());var d=ce(u);if(!d){var f=i;u&&(i=ct(u,r,i)),r={originalName:t,originalUndelimitedContent:f},d=ce(u=s)}a=a.map(Yt);var h=u===o||u===s;if(d&&(i||!h)){var p=_e(u,Kt(d,i,r),a);return h||(p.isValid=Mt(d,p.attributes,i)),p.originalContent=i,p=function(e,t){var r=ce(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,i=a.originalContent,o=a.innerBlocks,s=0;s1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach(function(t){e(t.childNodes,r,n,a),r.forEach(function(e){n.contains(t)&&e(t,n,a)})})}(n.body.childNodes,t,n,r),n.body.innerHTML}function lr(e,t,r){var n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,function e(t,r,n,a){Array.from(t).forEach(function(t){var i=t.nodeName.toLowerCase();if(!n.hasOwnProperty(i)||n[i].isMatch&&!n[i].isMatch(t))e(t.childNodes,r,n,a),a&&!rr(t)&&t.nextElementSibling&&Object(Jt.insertAfter)(r.createElement("br"),t),Object(Jt.unwrap)(t);else if(t.nodeType===ar){var o=n[i],s=o.attributes,c=void 0===s?[]:s,u=o.classes,d=void 0===u?[]:u,f=o.children,h=o.require,p=void 0===h?[]:h,g=o.allowEmpty;if(f&&!g&&sr(t))return void Object(Jt.remove)(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach(function(e){var r=e.name;"class"===r||Object(l.includes)(c,r)||t.removeAttribute(r)}),t.classList&&t.classList.length)){var m=d.map(function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:l.noop});Array.from(t.classList).forEach(function(e){m.some(function(t){return t(e)})||t.classList.remove(e)}),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,r,n,a),Object(Jt.unwrap)(t)):"BODY"===t.parentNode.nodeName&&rr(t)?(e(t.childNodes,r,n,a),Array.from(t.childNodes).some(function(e){return!rr(e)})&&Object(Jt.unwrap)(t)):e(t.childNodes,r,f,a);else for(;t.firstChild;)Object(Jt.remove)(t.firstChild)}}})}(n.body.childNodes,n,t,r),n.body.innerHTML}var ur=window.Node,dr=ur.ELEMENT_NODE,fr=ur.TEXT_NODE,hr=function(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var i=n.firstChild;i.nodeType===fr?i.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):n.removeChild(i):i.nodeType===dr?"BR"===i.nodeName?(i.nextSibling&&"BR"===i.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(i.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(i):n.removeChild(i)):"P"===i.nodeName?sr(i)?n.removeChild(i):a.appendChild(i):rr(i)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(i)):a.appendChild(i):n.removeChild(i)}return a.innerHTML},pr=window.Node.COMMENT_NODE,gr=function(e,t){if(e.nodeType===pr)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===pr&&"noteaser"===n.nodeValue){a=!0,Object(Jt.remove)(n);break}Object(Jt.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(Jt.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))};function mr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var br=function(e){if(mr(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Object(s.a)(n.childNodes).map(function(e){var t=e.nodeValue;return void 0===t?"":t}).join("")))){var i=a,o=i.previousElementSibling,c=i.parentNode;o?(o.appendChild(t),c.removeChild(i)):(c.parentNode.insertBefore(t,c),c.parentNode.removeChild(c))}if(a&&mr(a)){var l=e.previousElementSibling;l?l.appendChild(e):Object(Jt.unwrap)(e)}}},_r=function(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=hr(e.innerHTML))};var kr=function(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!rr(e)&&Object(l.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(l.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);for(var i=n;i&&"P"!==i.nodeName;)i=i.parentElement;var o=t.createElement("figure");i?i.parentNode.insertBefore(o,i):n.parentNode.insertBefore(o,n),o.appendChild(n)}},vr=r(134);var wr=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Oe(xe("from"),function(e){return"shortcode"===e.type&&Object(l.some)(Object(l.castArray)(e.tag),function(e){return Object(vr.regexp)(e).test(t)})});if(!n)return[t];var a,i=Object(l.castArray)(n.tag),o=Object(l.first)(i);if(a=Object(vr.next)(o,t,r)){var u=t.substr(0,a.index);if(r=a.index+a.content.length,!Object(l.includes)(a.shortcode.content||"","<")&&!/(\n|

    )\s*$/.test(u))return e(t,r);var d=Object(l.mapValues)(Object(l.pickBy)(n.attributes,function(e){return e.shortcode}),function(e){return e.shortcode(a.shortcode.attrs,a)});return[u,_e(n.blockName,Kt(Object(c.a)({},ce(n.blockName),{attributes:n.attributes}),a.shortcode.content,d))].concat(Object(s.a)(e(t.substr(r))))}return[t]};function yr(e,t){return e.every(function(e){return function(e,t){if(rr(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some(function(e){return 0===Object(l.difference)([r,t],e).length})}(e,t)&&yr(Array.from(e.children),t)})}function jr(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}var Or=function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(jr)&&yr(n,t)},xr=function(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,i=r.textDecorationLine,o=r.verticalAlign;"bold"!==n&&"700"!==n||Object(Jt.wrap)(t.createElement("strong"),e),"italic"===a&&Object(Jt.wrap)(t.createElement("em"),e),"line-through"===i&&Object(Jt.wrap)(t.createElement("s"),e),"super"===o?Object(Jt.wrap)(t.createElement("sup"),e):"sub"===o&&Object(Jt.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(Jt.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(Jt.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))},Cr=function(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)},Ar=window.parseInt;function Sr(e){return"OL"===e.nodeName||"UL"===e.nodeName}var Tr=function(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=Ar(n[1],10)-1||0,i=e.previousElementSibling;if(!i||!Sr(i)){var o=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(o),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",o),e.parentNode.insertBefore(c,e)}var l=e.previousElementSibling,u=l.nodeName,d=t.createElement("li"),f=l;for(e.removeChild(e.firstElementChild);e.firstChild;)d.appendChild(e.firstChild);for(;a--;)Sr(f=f.lastElementChild||f)&&(f=f.lastElementChild||f);Sr(f)||(f=f.appendChild(t.createElement(u))),f.appendChild(d),e.parentNode.removeChild(e)}}}},Er=r(35),Pr=window,Mr=Pr.atob,Lr=Pr.File,Nr=function(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(Ae.a)(r,2),a=n[0],i=n[1],o=a.slice(5).split(";"),s=Object(Ae.a)(o,1)[0];if(!i||!s)return void(e.src="");try{t=Mr(i)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),l=0;l]+>/,""),"INLINE"!==o&&-1!==r.indexOf("\x3c!-- wp:"))return Qt(r);if(String.prototype.normalize&&(r=r.normalize()),!a||r&&!function(e){return!/<(?!br[ \/>])/i.test(e)}(r)||(r=Hr(a),"AUTO"===o&&-1===a.indexOf("\n")&&0!==a.indexOf("

    ")&&0===r.indexOf("

    ")&&(o="INLINE")),"INLINE"===o)return Rr(r);var f=wr(r),h=f.length>1;if("AUTO"===o&&!h&&Or(r,s))return Rr(r);var p=Object(l.filter)(xe("from"),{type:"raw"}).map(function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})}),g=tr(),m=or(p),b=Object(l.compact)(Object(l.flatMap)(f,function(e){if("string"!=typeof e)return e;var t=[Ir,Tr,Cr,br,Nr,xr,gr,kr,_r];d||t.unshift(Dr);var r=Object(c.a)({},m,g);return e=lr(e=cr(e,t,m),r),e=hr(e),Vr.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map(function(e){var t=Oe(r,function(t){return(0,t.isMatch)(e)});if(!t)return _e("core/html",Kt("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):_e(a,Kt(a,e.outerHTML))})}({html:e,rawTransforms:p})}));if("AUTO"===o&&1===b.length){var _=a.trim();if(""!==_&&-1===_.indexOf("\n"))return lr(st(b[0]),g)}return b}function qr(e){var t=e.HTML,r=void 0===t?"":t;if(-1!==r.indexOf("\x3c!-- wp:"))return Qt(r);var n=wr(r),a=Object(l.filter)(xe("from"),{type:"raw"}).map(function(e){return e.isMatch?e:Object(c.a)({},e,{isMatch:function(t){return e.selector&&t.matches(e.selector)}})}),i=or(a);return Object(l.compact)(Object(l.flatMap)(n,function(e){return"string"!=typeof e?e:(e=cr(e,[br,gr,kr,_r],i),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map(function(e){var t=Oe(r,function(t){return(0,t.isMatch)(e)});if(!t)return _e("core/html",Kt("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):_e(a,Kt(a,e.outerHTML))})}({html:e=hr(e),rawTransforms:a}))}))}function $r(){return Object(i.select)("core/blocks").getCategories()}function Ur(e){Object(i.dispatch)("core/blocks").setCategories(e)}function Gr(e,t){Object(i.dispatch)("core/blocks").updateCategory(e,t)}function Wr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(l.every)(t,function(t,r){var n=Object(Ae.a)(t,3),a=n[0],i=n[2],o=e[r];return a===o.name&&Wr(o.innerBlocks,i)})}function Kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(l.map)(t,function(t,r){var n=Object(Ae.a)(t,3),a=n[0],i=n[1],o=n[2],s=e[r];if(s&&s.name===a){var u=Kr(s.innerBlocks,o);return Object(c.a)({},s,{innerBlocks:u})}var d=ce(a),f=function(e,t){return Object(l.mapValues)(t,function(t,r){return h(e[r],t)})},h=function(e,t){return r=e,"html"===Object(l.get)(r,["source"])&&Object(l.isArray)(t)?Object(G.renderToString)(t):function(e){return"query"===Object(l.get)(e,["source"])}(e)&&t?t.map(function(t){return f(e.query,t)}):t;var r};return _e(a,f(Object(l.get)(d,["attributes"],{}),i),Kr([],o))}):e}r.d(t,"createBlock",function(){return _e}),r.d(t,"cloneBlock",function(){return ke}),r.d(t,"getPossibleBlockTransformations",function(){return je}),r.d(t,"switchToBlockType",function(){return Ce}),r.d(t,"getBlockTransforms",function(){return xe}),r.d(t,"findTransform",function(){return Oe}),r.d(t,"parse",function(){return Xt}),r.d(t,"getBlockAttributes",function(){return Kt}),r.d(t,"parseWithAttributeSchema",function(){return Wt}),r.d(t,"pasteHandler",function(){return Fr}),r.d(t,"rawHandler",function(){return qr}),r.d(t,"getPhrasingContentSchema",function(){return tr}),r.d(t,"serialize",function(){return ut}),r.d(t,"getBlockContent",function(){return st}),r.d(t,"getBlockDefaultClassName",function(){return nt}),r.d(t,"getBlockMenuDefaultClassName",function(){return at}),r.d(t,"getSaveElement",function(){return it}),r.d(t,"getSaveContent",function(){return ot}),r.d(t,"isValidBlockContent",function(){return Mt}),r.d(t,"getCategories",function(){return $r}),r.d(t,"setCategories",function(){return Ur}),r.d(t,"updateCategory",function(){return Gr}),r.d(t,"registerBlockType",function(){return ee}),r.d(t,"unregisterBlockType",function(){return te}),r.d(t,"setFreeformContentHandlerName",function(){return re}),r.d(t,"getFreeformContentHandlerName",function(){return ne}),r.d(t,"setUnregisteredTypeHandlerName",function(){return ae}),r.d(t,"getUnregisteredTypeHandlerName",function(){return ie}),r.d(t,"setDefaultBlockName",function(){return oe}),r.d(t,"getDefaultBlockName",function(){return se}),r.d(t,"getBlockType",function(){return ce}),r.d(t,"getBlockTypes",function(){return le}),r.d(t,"getBlockSupport",function(){return ue}),r.d(t,"hasBlockSupport",function(){return de}),r.d(t,"isReusableBlock",function(){return fe}),r.d(t,"getChildBlockNames",function(){return he}),r.d(t,"hasChildBlocks",function(){return pe}),r.d(t,"hasChildBlocksWithInserterSupport",function(){return ge}),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",function(){return J}),r.d(t,"registerBlockStyle",function(){return me}),r.d(t,"unregisterBlockStyle",function(){return be}),r.d(t,"isUnmodifiedDefaultBlock",function(){return K}),r.d(t,"normalizeIconObject",function(){return Z}),r.d(t,"isValidIcon",function(){return Y}),r.d(t,"doBlocksMatchTemplate",function(){return Wr}),r.d(t,"synchronizeBlocksWithTemplate",function(){return Kr}),r.d(t,"children",function(){return zt}),r.d(t,"node",function(){return qt}),r.d(t,"withBlockContentContext",function(){return tt})},37:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",function(){return n})},38:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",function(){return n})},42:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},45:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,s=0,c=a.round,l=a.min,u=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(E[e])e=E[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=q.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=q.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=q.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=q.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=q.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=q.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=q.hex8.exec(e))return{r:B(t[1]),g:B(t[2]),b:B(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=q.hex6.exec(e))return{r:B(t[1]),g:B(t[2]),b:B(t[3]),format:r?"name":"hex"};if(t=q.hex4.exec(e))return{r:B(t[1]+""+t[1]),g:B(t[2]+""+t[2]),b:B(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=q.hex3.exec(e))return{r:B(t[1]+""+t[1]),g:B(t[2]+""+t[2]),b:B(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&($(e.r)&&$(e.g)&&$(e.b)?(h=e.r,p=e.g,g=e.b,t={r:255*L(h,255),g:255*L(p,255),b:255*L(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):$(e.h)&&$(e.s)&&$(e.v)?(n=H(e.s),s=H(e.v),t=function(e,t,r){e=6*L(e,360),t=L(t,100),r=L(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),l=n%6;return{r:255*[r,s,o,o,c,r][l],g:255*[c,r,r,s,o,o][l],b:255*[o,o,c,r,r,s][l]}}(e.h,n,s),d=!0,f="hsv"):$(e.h)&&$(e.s)&&$(e.l)&&(n=H(e.s),c=H(e.l),t=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=L(e,360),t=L(t,100),r=L(r,100),0===t)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=o(c,s,e+1/3),a=o(c,s,e),i=o(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,n,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var h,p,g;return r=M(r),{ok:d,format:e.format||f,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function h(e,t,r){e=L(e,255),t=L(t,255),r=L(r,255);var n,a,i=u(e,t,r),o=l(e,t,r),s=(i+o)/2;if(i==o)n=a=0;else{var c=i-o;switch(a=s>.5?c/(2-i-o):c/(i+o),i){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(f(n));return i}function T(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(D(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*L(this._r,255))+"%",g:c(100*L(this._g,255))+"%",b:c(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*L(this._r,255))+"%, "+c(100*L(this._g,255))+"%, "+c(100*L(this._b,255))+"%)":"rgba("+c(100*L(this._r,255))+"%, "+c(100*L(this._g,255))+"%, "+c(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);r="#"+m(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(k,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:H(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),a=f(t).toRgb(),i=r/100;return f({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,a,i=f.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,r){var n,a,i,o,s=null,c=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var l=0;lc&&(c=n,s=f(t[l]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var E=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(E);function M(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function N(e){return l(1,u(0,e))}function B(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function H(e){return e<=1&&(e=100*e+"%"),e}function D(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return B(e)/255}var V,R,F,q=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!q.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},5:function(e,t){!function(){e.exports=this.wp.data}()},57:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},6:function(e,t){!function(){e.exports=this.wp.compose}()},65:function(e,t,r){var n=r(87),a=r(88);e.exports=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[i+s]=o[s];return t||a(o)}},66:function(e,t){!function(){e.exports=this.wp.autop}()},7:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r(15);function a(e){for(var t=1;t>>((3&t)<<3)&255;return a}}},88:function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,a=r;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}},9:function(e,t,r){"use strict";function n(e,t){for(var r=0;r 0) { + // 强制向上 + if (alignWithTop === true) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else if (alignWithTop === false) { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } else { + // 自动调整 + if (diffTop.top < 0) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; + if (alignWithTop) { + util.scrollTop(container, containerScroll.top + diffTop.top); + } else { + util.scrollTop(container, containerScroll.top + diffBottom.top); + } + } + } + + if (allowHorizontalScroll) { + if (diffTop.left < 0 || diffBottom.left > 0) { + // 强制向上 + if (alignWithLeft === true) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else if (alignWithLeft === false) { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } else { + // 自动调整 + if (diffTop.left < 0) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } else { + if (!onlyScrollIfNeeded) { + alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; + if (alignWithLeft) { + util.scrollLeft(container, containerScroll.left + diffTop.left); + } else { + util.scrollLeft(container, containerScroll.left + diffBottom.left); + } + } + } + } +} + +module.exports = scrollIntoView; + +/***/ }), +/* 116 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; + +var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; + +function getClientPosition(elem) { + var box = undefined; + var x = undefined; + var y = undefined; + var doc = elem.ownerDocument; + var body = doc.body; + var docElem = doc && doc.documentElement; + // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 + box = elem.getBoundingClientRect(); + + // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop + // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 + // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin + + x = box.left; + y = box.top; + + // In IE, most of the time, 2 extra pixels are added to the top and left + // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and + // IE6 standards mode, this border can be overridden by setting the + // document element's border to zero -- thus, we cannot rely on the + // offset always being 2 pixels. + + // In quirks mode, the offset can be determined by querying the body's + // clientLeft/clientTop, but in standards mode, it is found by querying + // the document element's clientLeft/clientTop. Since we already called + // getClientBoundingRect we have already forced a reflow, so it is not + // too expensive just to query them all. + + // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 + // 窗口边框标准是设 documentElement ,quirks 时设置 body + // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 + // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 + // 标准 ie 下 docElem.clientTop 就是 border-top + // ie7 html 即窗口边框改变不了。永远为 2 + // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 + + x -= docElem.clientLeft || body.clientLeft || 0; + y -= docElem.clientTop || body.clientTop || 0; + + return { + left: x, + top: y + }; +} + +function getScroll(w, top) { + var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; + var method = 'scroll' + (top ? 'Top' : 'Left'); + if (typeof ret !== 'number') { + var d = w.document; + // ie6,7,8 standard mode + ret = d.documentElement[method]; + if (typeof ret !== 'number') { + // quirks mode + ret = d.body[method]; + } + } + return ret; +} + +function getScrollLeft(w) { + return getScroll(w); +} + +function getScrollTop(w) { + return getScroll(w, true); +} + +function getOffset(el) { + var pos = getClientPosition(el); + var doc = el.ownerDocument; + var w = doc.defaultView || doc.parentWindow; + pos.left += getScrollLeft(w); + pos.top += getScrollTop(w); + return pos; +} +function _getComputedStyle(elem, name, computedStyle_) { + var val = ''; + var d = elem.ownerDocument; + var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); + + // https://github.com/kissyteam/kissy/issues/61 + if (computedStyle) { + val = computedStyle.getPropertyValue(name) || computedStyle[name]; + } + + return val; +} + +var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); +var RE_POS = /^(top|right|bottom|left)$/; +var CURRENT_STYLE = 'currentStyle'; +var RUNTIME_STYLE = 'runtimeStyle'; +var LEFT = 'left'; +var PX = 'px'; + +function _getComputedStyleIE(elem, name) { + // currentStyle maybe null + // http://msdn.microsoft.com/en-us/library/ms535231.aspx + var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; + + // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 + // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 + // 在 ie 下不对,需要直接用 offset 方式 + // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 + + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + // exclude left right for relativity + if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { + // Remember the original values + var style = elem.style; + var left = style[LEFT]; + var rsLeft = elem[RUNTIME_STYLE][LEFT]; + + // prevent flashing of content + elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; + + // Put in the new values to get a computed value out + style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; + ret = style.pixelLeft + PX; + + // Revert the changed values + style[LEFT] = left; + + elem[RUNTIME_STYLE][LEFT] = rsLeft; + } + return ret === '' ? 'auto' : ret; +} + +var getComputedStyleX = undefined; +if (typeof window !== 'undefined') { + getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; +} + +function each(arr, fn) { + for (var i = 0; i < arr.length; i++) { + fn(arr[i]); + } +} + +function isBorderBoxFn(elem) { + return getComputedStyleX(elem, 'boxSizing') === 'border-box'; +} + +var BOX_MODELS = ['margin', 'border', 'padding']; +var CONTENT_INDEX = -1; +var PADDING_INDEX = 2; +var BORDER_INDEX = 1; +var MARGIN_INDEX = 0; + +function swap(elem, options, callback) { + var old = {}; + var style = elem.style; + var name = undefined; + + // Remember the old values, and insert the new ones + for (name in options) { + if (options.hasOwnProperty(name)) { + old[name] = style[name]; + style[name] = options[name]; + } + } + + callback.call(elem); + + // Revert the old values + for (name in options) { + if (options.hasOwnProperty(name)) { + style[name] = old[name]; + } + } +} + +function getPBMWidth(elem, props, which) { + var value = 0; + var prop = undefined; + var j = undefined; + var i = undefined; + for (j = 0; j < props.length; j++) { + prop = props[j]; + if (prop) { + for (i = 0; i < which.length; i++) { + var cssProp = undefined; + if (prop === 'border') { + cssProp = prop + which[i] + 'Width'; + } else { + cssProp = prop + which[i]; + } + value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; + } + } + } + return value; +} + +/** + * A crude way of determining if an object is a window + * @member util + */ +function isWindow(obj) { + // must use == for ie8 + /* eslint eqeqeq:0 */ + return obj != null && obj == obj.window; +} + +var domUtils = {}; + +each(['Width', 'Height'], function (name) { + domUtils['doc' + name] = function (refWin) { + var d = refWin.document; + return Math.max( + // firefox chrome documentElement.scrollHeight< body.scrollHeight + // ie standard mode : documentElement.scrollHeight> body.scrollHeight + d.documentElement['scroll' + name], + // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? + d.body['scroll' + name], domUtils['viewport' + name](d)); + }; + + domUtils['viewport' + name] = function (win) { + // pc browser includes scrollbar in window.innerWidth + var prop = 'client' + name; + var doc = win.document; + var body = doc.body; + var documentElement = doc.documentElement; + var documentElementProp = documentElement[prop]; + // 标准模式取 documentElement + // backcompat 取 body + return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; + }; +}); + +/* + 得到元素的大小信息 + @param elem + @param name + @param {String} [extra] 'padding' : (css width) + padding + 'border' : (css width) + padding + border + 'margin' : (css width) + padding + border + margin + */ +function getWH(elem, name, extra) { + if (isWindow(elem)) { + return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); + } else if (elem.nodeType === 9) { + return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); + } + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem, computedStyle); + var cssBoxValue = 0; + if (borderBoxValue == null || borderBoxValue <= 0) { + borderBoxValue = undefined; + // Fall back to computed then un computed css if necessary + cssBoxValue = getComputedStyleX(elem, name); + if (cssBoxValue == null || Number(cssBoxValue) < 0) { + cssBoxValue = elem.style[name] || 0; + } + // Normalize '', auto, and prepare for extra + cssBoxValue = parseFloat(cssBoxValue) || 0; + } + if (extra === undefined) { + extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; + } + var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; + var val = borderBoxValue || cssBoxValue; + if (extra === CONTENT_INDEX) { + if (borderBoxValueOrIsBorderBox) { + return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); + } + return cssBoxValue; + } + if (borderBoxValueOrIsBorderBox) { + var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); + return val + (extra === BORDER_INDEX ? 0 : padding); + } + return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); +} + +var cssShow = { + position: 'absolute', + visibility: 'hidden', + display: 'block' +}; + +// fix #119 : https://github.com/kissyteam/kissy/issues/119 +function getWHIgnoreDisplay(elem) { + var val = undefined; + var args = arguments; + // in case elem is window + // elem.offsetWidth === undefined + if (elem.offsetWidth !== 0) { + val = getWH.apply(undefined, args); + } else { + swap(elem, cssShow, function () { + val = getWH.apply(undefined, args); + }); + } + return val; +} + +function css(el, name, v) { + var value = v; + if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { + for (var i in name) { + if (name.hasOwnProperty(i)) { + css(el, i, name[i]); + } + } + return undefined; + } + if (typeof value !== 'undefined') { + if (typeof value === 'number') { + value += 'px'; + } + el.style[name] = value; + return undefined; + } + return getComputedStyleX(el, name); +} + +each(['width', 'height'], function (name) { + var first = name.charAt(0).toUpperCase() + name.slice(1); + domUtils['outer' + first] = function (el, includeMargin) { + return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); + }; + var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; + + domUtils[name] = function (elem, val) { + if (val !== undefined) { + if (elem) { + var computedStyle = getComputedStyleX(elem); + var isBorderBox = isBorderBoxFn(elem); + if (isBorderBox) { + val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); + } + return css(elem, name, val); + } + return undefined; + } + return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); + }; +}); + +// 设置 elem 相对 elem.ownerDocument 的坐标 +function setOffset(elem, offset) { + // set position first, in-case top/left are set even on static elem + if (css(elem, 'position') === 'static') { + elem.style.position = 'relative'; + } + + var old = getOffset(elem); + var ret = {}; + var current = undefined; + var key = undefined; + + for (key in offset) { + if (offset.hasOwnProperty(key)) { + current = parseFloat(css(elem, key)) || 0; + ret[key] = current + offset[key] - old[key]; + } + } + css(elem, ret); +} + +module.exports = _extends({ + getWindow: function getWindow(node) { + var doc = node.ownerDocument || node; + return doc.defaultView || doc.parentWindow; + }, + offset: function offset(el, value) { + if (typeof value !== 'undefined') { + setOffset(el, value); + } else { + return getOffset(el); + } + }, + + isWindow: isWindow, + each: each, + css: css, + clone: function clone(obj) { + var ret = {}; + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret[i] = obj[i]; + } + } + var overflow = obj.overflow; + if (overflow) { + for (var i in obj) { + if (obj.hasOwnProperty(i)) { + ret.overflow[i] = obj.overflow[i]; + } + } + } + return ret; + }, + scrollLeft: function scrollLeft(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollLeft(w); + } + window.scrollTo(v, getScrollTop(w)); + } else { + if (v === undefined) { + return w.scrollLeft; + } + w.scrollLeft = v; + } + }, + scrollTop: function scrollTop(w, v) { + if (isWindow(w)) { + if (v === undefined) { + return getScrollTop(w); + } + window.scrollTo(getScrollLeft(w), v); + } else { + if (v === undefined) { + return w.scrollTop; + } + w.scrollTop = v; + } + }, + + viewportWidth: 0, + viewportHeight: 0 +}, domUtils); + +/***/ }), +/* 117 */, +/* 118 */, +/* 119 */, +/* 120 */, +/* 121 */, +/* 122 */, +/* 123 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3498,10 +4175,10 @@ module.exports = function isCallable(value) { /***/ }), -/* 108 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { -var bind = __webpack_require__(70); +var bind = __webpack_require__(74); var has = bind.call(Function.call, Object.prototype.hasOwnProperty); var $assign = Object.assign; @@ -3521,7 +4198,7 @@ module.exports = function assign(target, source) { /***/ }), -/* 109 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3536,49 +4213,49 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(71); +var _reactAddonsShallowCompare = __webpack_require__(78); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(144); +var _getCalendarDaySettings = __webpack_require__(157); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _ModifiersShape = __webpack_require__(91); +var _ModifiersShape = __webpack_require__(101); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -4003,124 +4680,15 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CalendarDay); /***/ }), -/* 110 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = __webpack_require__(111); - -function emptyFunction() {} - -module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } - var err = 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' - ); - err.name = 'Invariant Violation'; - throw err; - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), -/* 111 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), -/* 112 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(242); +module.exports = __webpack_require__(303); /***/ }), -/* 113 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var define = __webpack_require__(66); - -var implementation = __webpack_require__(150); -var getPolyfill = __webpack_require__(151); -var shim = __webpack_require__(244); - -var polyfill = getPolyfill(); - -define(polyfill, { - getPolyfill: getPolyfill, - implementation: implementation, - shim: shim -}); - -module.exports = polyfill; - - -/***/ }), -/* 114 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4185,7 +4753,7 @@ function getInputHeight(_ref, small) { } /***/ }), -/* 115 */ +/* 128 */ /***/ (function(module, exports) { /** @@ -4222,7 +4790,7 @@ module.exports = isObject; /***/ }), -/* 116 */ +/* 129 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4233,15 +4801,15 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = toLocalizedDateString; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _toMomentObject = __webpack_require__(73); +var _toMomentObject = __webpack_require__(80); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -4253,7 +4821,7 @@ function toLocalizedDateString(date, currentFormat) { } /***/ }), -/* 117 */ +/* 130 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4264,11 +4832,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isDayVisible; -var _isBeforeDay = __webpack_require__(85); +var _isBeforeDay = __webpack_require__(95); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isAfterDay = __webpack_require__(96); +var _isAfterDay = __webpack_require__(106); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); @@ -4285,7 +4853,7 @@ function isDayVisible(day, month, numberOfMonths, enableOutsideDays) { } /***/ }), -/* 118 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4300,97 +4868,97 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(71); +var _reactAddonsShallowCompare = __webpack_require__(78); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _throttle = __webpack_require__(162); +var _throttle = __webpack_require__(182); var _throttle2 = _interopRequireDefault(_throttle); -var _isTouchDevice = __webpack_require__(75); +var _isTouchDevice = __webpack_require__(82); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(112); +var _reactOutsideClickHandler = __webpack_require__(126); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonthGrid = __webpack_require__(147); +var _CalendarMonthGrid = __webpack_require__(160); var _CalendarMonthGrid2 = _interopRequireDefault(_CalendarMonthGrid); -var _DayPickerNavigation = __webpack_require__(255); +var _DayPickerNavigation = __webpack_require__(326); var _DayPickerNavigation2 = _interopRequireDefault(_DayPickerNavigation); -var _DayPickerKeyboardShortcuts = __webpack_require__(258); +var _DayPickerKeyboardShortcuts = __webpack_require__(329); var _DayPickerKeyboardShortcuts2 = _interopRequireDefault(_DayPickerKeyboardShortcuts); -var _getNumberOfCalendarMonthWeeks = __webpack_require__(260); +var _getNumberOfCalendarMonthWeeks = __webpack_require__(331); var _getNumberOfCalendarMonthWeeks2 = _interopRequireDefault(_getNumberOfCalendarMonthWeeks); -var _getCalendarMonthWidth = __webpack_require__(148); +var _getCalendarMonthWidth = __webpack_require__(161); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _calculateDimension = __webpack_require__(146); +var _calculateDimension = __webpack_require__(159); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getActiveElement = __webpack_require__(261); +var _getActiveElement = __webpack_require__(332); var _getActiveElement2 = _interopRequireDefault(_getActiveElement); -var _isDayVisible = __webpack_require__(117); +var _isDayVisible = __webpack_require__(130); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _ModifiersShape = __webpack_require__(91); +var _ModifiersShape = __webpack_require__(101); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(74); +var _ScrollableOrientationShape = __webpack_require__(81); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(67); +var _DayOfWeekShape = __webpack_require__(75); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(83); +var _CalendarInfoPositionShape = __webpack_require__(93); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -5867,593 +6435,15 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPicker); /***/ }), -/* 119 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var util = __webpack_require__(120); - -function scrollIntoView(elem, container, config) { - config = config || {}; - // document 归一化到 window - if (container.nodeType === 9) { - container = util.getWindow(container); - } - - var allowHorizontalScroll = config.allowHorizontalScroll; - var onlyScrollIfNeeded = config.onlyScrollIfNeeded; - var alignWithTop = config.alignWithTop; - var alignWithLeft = config.alignWithLeft; - var offsetTop = config.offsetTop || 0; - var offsetLeft = config.offsetLeft || 0; - var offsetBottom = config.offsetBottom || 0; - var offsetRight = config.offsetRight || 0; - - allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll; - - var isWin = util.isWindow(container); - var elemOffset = util.offset(elem); - var eh = util.outerHeight(elem); - var ew = util.outerWidth(elem); - var containerOffset = undefined; - var ch = undefined; - var cw = undefined; - var containerScroll = undefined; - var diffTop = undefined; - var diffBottom = undefined; - var win = undefined; - var winScroll = undefined; - var ww = undefined; - var wh = undefined; - - if (isWin) { - win = container; - wh = util.height(win); - ww = util.width(win); - winScroll = { - left: util.scrollLeft(win), - top: util.scrollTop(win) - }; - // elem 相对 container 可视视窗的距离 - diffTop = { - left: elemOffset.left - winScroll.left - offsetLeft, - top: elemOffset.top - winScroll.top - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight, - top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom - }; - containerScroll = winScroll; - } else { - containerOffset = util.offset(container); - ch = container.clientHeight; - cw = container.clientWidth; - containerScroll = { - left: container.scrollLeft, - top: container.scrollTop - }; - // elem 相对 container 可视视窗的距离 - // 注意边框, offset 是边框到根节点 - diffTop = { - left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft, - top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight, - top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom - }; - } - - if (diffTop.top < 0 || diffBottom.top > 0) { - // 强制向上 - if (alignWithTop === true) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else if (alignWithTop === false) { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } else { - // 自动调整 - if (diffTop.top < 0) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; - if (alignWithTop) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } - - if (allowHorizontalScroll) { - if (diffTop.left < 0 || diffBottom.left > 0) { - // 强制向上 - if (alignWithLeft === true) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else if (alignWithLeft === false) { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } else { - // 自动调整 - if (diffTop.left < 0) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; - if (alignWithLeft) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } - } -} - -module.exports = scrollIntoView; - -/***/ }), -/* 120 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - -var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; - -function getClientPosition(elem) { - var box = undefined; - var x = undefined; - var y = undefined; - var doc = elem.ownerDocument; - var body = doc.body; - var docElem = doc && doc.documentElement; - // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 - box = elem.getBoundingClientRect(); - - // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop - // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 - // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin - - x = box.left; - y = box.top; - - // In IE, most of the time, 2 extra pixels are added to the top and left - // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and - // IE6 standards mode, this border can be overridden by setting the - // document element's border to zero -- thus, we cannot rely on the - // offset always being 2 pixels. - - // In quirks mode, the offset can be determined by querying the body's - // clientLeft/clientTop, but in standards mode, it is found by querying - // the document element's clientLeft/clientTop. Since we already called - // getClientBoundingRect we have already forced a reflow, so it is not - // too expensive just to query them all. - - // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 - // 窗口边框标准是设 documentElement ,quirks 时设置 body - // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 - // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 - // 标准 ie 下 docElem.clientTop 就是 border-top - // ie7 html 即窗口边框改变不了。永远为 2 - // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 - - x -= docElem.clientLeft || body.clientLeft || 0; - y -= docElem.clientTop || body.clientTop || 0; - - return { - left: x, - top: y - }; -} - -function getScroll(w, top) { - var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; - var method = 'scroll' + (top ? 'Top' : 'Left'); - if (typeof ret !== 'number') { - var d = w.document; - // ie6,7,8 standard mode - ret = d.documentElement[method]; - if (typeof ret !== 'number') { - // quirks mode - ret = d.body[method]; - } - } - return ret; -} - -function getScrollLeft(w) { - return getScroll(w); -} - -function getScrollTop(w) { - return getScroll(w, true); -} - -function getOffset(el) { - var pos = getClientPosition(el); - var doc = el.ownerDocument; - var w = doc.defaultView || doc.parentWindow; - pos.left += getScrollLeft(w); - pos.top += getScrollTop(w); - return pos; -} -function _getComputedStyle(elem, name, computedStyle_) { - var val = ''; - var d = elem.ownerDocument; - var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); - - // https://github.com/kissyteam/kissy/issues/61 - if (computedStyle) { - val = computedStyle.getPropertyValue(name) || computedStyle[name]; - } - - return val; -} - -var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); -var RE_POS = /^(top|right|bottom|left)$/; -var CURRENT_STYLE = 'currentStyle'; -var RUNTIME_STYLE = 'runtimeStyle'; -var LEFT = 'left'; -var PX = 'px'; - -function _getComputedStyleIE(elem, name) { - // currentStyle maybe null - // http://msdn.microsoft.com/en-us/library/ms535231.aspx - var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; - - // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 - // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 - // 在 ie 下不对,需要直接用 offset 方式 - // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // exclude left right for relativity - if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { - // Remember the original values - var style = elem.style; - var left = style[LEFT]; - var rsLeft = elem[RUNTIME_STYLE][LEFT]; - - // prevent flashing of content - elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; - - // Put in the new values to get a computed value out - style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; - ret = style.pixelLeft + PX; - - // Revert the changed values - style[LEFT] = left; - - elem[RUNTIME_STYLE][LEFT] = rsLeft; - } - return ret === '' ? 'auto' : ret; -} - -var getComputedStyleX = undefined; -if (typeof window !== 'undefined') { - getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; -} - -function each(arr, fn) { - for (var i = 0; i < arr.length; i++) { - fn(arr[i]); - } -} - -function isBorderBoxFn(elem) { - return getComputedStyleX(elem, 'boxSizing') === 'border-box'; -} - -var BOX_MODELS = ['margin', 'border', 'padding']; -var CONTENT_INDEX = -1; -var PADDING_INDEX = 2; -var BORDER_INDEX = 1; -var MARGIN_INDEX = 0; - -function swap(elem, options, callback) { - var old = {}; - var style = elem.style; - var name = undefined; - - // Remember the old values, and insert the new ones - for (name in options) { - if (options.hasOwnProperty(name)) { - old[name] = style[name]; - style[name] = options[name]; - } - } - - callback.call(elem); - - // Revert the old values - for (name in options) { - if (options.hasOwnProperty(name)) { - style[name] = old[name]; - } - } -} - -function getPBMWidth(elem, props, which) { - var value = 0; - var prop = undefined; - var j = undefined; - var i = undefined; - for (j = 0; j < props.length; j++) { - prop = props[j]; - if (prop) { - for (i = 0; i < which.length; i++) { - var cssProp = undefined; - if (prop === 'border') { - cssProp = prop + which[i] + 'Width'; - } else { - cssProp = prop + which[i]; - } - value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; - } - } - } - return value; -} - -/** - * A crude way of determining if an object is a window - * @member util - */ -function isWindow(obj) { - // must use == for ie8 - /* eslint eqeqeq:0 */ - return obj != null && obj == obj.window; -} - -var domUtils = {}; - -each(['Width', 'Height'], function (name) { - domUtils['doc' + name] = function (refWin) { - var d = refWin.document; - return Math.max( - // firefox chrome documentElement.scrollHeight< body.scrollHeight - // ie standard mode : documentElement.scrollHeight> body.scrollHeight - d.documentElement['scroll' + name], - // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? - d.body['scroll' + name], domUtils['viewport' + name](d)); - }; - - domUtils['viewport' + name] = function (win) { - // pc browser includes scrollbar in window.innerWidth - var prop = 'client' + name; - var doc = win.document; - var body = doc.body; - var documentElement = doc.documentElement; - var documentElementProp = documentElement[prop]; - // 标准模式取 documentElement - // backcompat 取 body - return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; - }; -}); - -/* - 得到元素的大小信息 - @param elem - @param name - @param {String} [extra] 'padding' : (css width) + padding - 'border' : (css width) + padding + border - 'margin' : (css width) + padding + border + margin - */ -function getWH(elem, name, extra) { - if (isWindow(elem)) { - return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); - } else if (elem.nodeType === 9) { - return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); - } - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem, computedStyle); - var cssBoxValue = 0; - if (borderBoxValue == null || borderBoxValue <= 0) { - borderBoxValue = undefined; - // Fall back to computed then un computed css if necessary - cssBoxValue = getComputedStyleX(elem, name); - if (cssBoxValue == null || Number(cssBoxValue) < 0) { - cssBoxValue = elem.style[name] || 0; - } - // Normalize '', auto, and prepare for extra - cssBoxValue = parseFloat(cssBoxValue) || 0; - } - if (extra === undefined) { - extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; - } - var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; - var val = borderBoxValue || cssBoxValue; - if (extra === CONTENT_INDEX) { - if (borderBoxValueOrIsBorderBox) { - return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); - } - return cssBoxValue; - } - if (borderBoxValueOrIsBorderBox) { - var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); - return val + (extra === BORDER_INDEX ? 0 : padding); - } - return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); -} - -var cssShow = { - position: 'absolute', - visibility: 'hidden', - display: 'block' -}; - -// fix #119 : https://github.com/kissyteam/kissy/issues/119 -function getWHIgnoreDisplay(elem) { - var val = undefined; - var args = arguments; - // in case elem is window - // elem.offsetWidth === undefined - if (elem.offsetWidth !== 0) { - val = getWH.apply(undefined, args); - } else { - swap(elem, cssShow, function () { - val = getWH.apply(undefined, args); - }); - } - return val; -} - -function css(el, name, v) { - var value = v; - if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { - for (var i in name) { - if (name.hasOwnProperty(i)) { - css(el, i, name[i]); - } - } - return undefined; - } - if (typeof value !== 'undefined') { - if (typeof value === 'number') { - value += 'px'; - } - el.style[name] = value; - return undefined; - } - return getComputedStyleX(el, name); -} - -each(['width', 'height'], function (name) { - var first = name.charAt(0).toUpperCase() + name.slice(1); - domUtils['outer' + first] = function (el, includeMargin) { - return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); - }; - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - - domUtils[name] = function (elem, val) { - if (val !== undefined) { - if (elem) { - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem); - if (isBorderBox) { - val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); - } - return css(elem, name, val); - } - return undefined; - } - return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); - }; -}); - -// 设置 elem 相对 elem.ownerDocument 的坐标 -function setOffset(elem, offset) { - // set position first, in-case top/left are set even on static elem - if (css(elem, 'position') === 'static') { - elem.style.position = 'relative'; - } - - var old = getOffset(elem); - var ret = {}; - var current = undefined; - var key = undefined; - - for (key in offset) { - if (offset.hasOwnProperty(key)) { - current = parseFloat(css(elem, key)) || 0; - ret[key] = current + offset[key] - old[key]; - } - } - css(elem, ret); -} - -module.exports = _extends({ - getWindow: function getWindow(node) { - var doc = node.ownerDocument || node; - return doc.defaultView || doc.parentWindow; - }, - offset: function offset(el, value) { - if (typeof value !== 'undefined') { - setOffset(el, value); - } else { - return getOffset(el); - } - }, - - isWindow: isWindow, - each: each, - css: css, - clone: function clone(obj) { - var ret = {}; - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret[i] = obj[i]; - } - } - var overflow = obj.overflow; - if (overflow) { - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret.overflow[i] = obj.overflow[i]; - } - } - } - return ret; - }, - scrollLeft: function scrollLeft(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollLeft(w); - } - window.scrollTo(v, getScrollTop(w)); - } else { - if (v === undefined) { - return w.scrollLeft; - } - w.scrollLeft = v; - } - }, - scrollTop: function scrollTop(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollTop(w); - } - window.scrollTo(getScrollLeft(w), v); - } else { - if (v === undefined) { - return w.scrollTop; - } - w.scrollTop = v; - } - }, - - viewportWidth: 0, - viewportHeight: 0 -}, domUtils); - -/***/ }), -/* 121 */, -/* 122 */, -/* 123 */, -/* 124 */, -/* 125 */, -/* 126 */, -/* 127 */ +/* 132 */, +/* 133 */, +/* 134 */, +/* 135 */, +/* 136 */, +/* 137 */, +/* 138 */, +/* 139 */, +/* 140 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6528,7 +6518,7 @@ module.exports = hoistNonReactStatics; /***/ }), -/* 128 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6538,7 +6528,7 @@ module.exports = hoistNonReactStatics; var has = Object.prototype.hasOwnProperty; var toStr = Object.prototype.toString; var slice = Array.prototype.slice; -var isArgs = __webpack_require__(205); +var isArgs = __webpack_require__(266); var isEnumerable = Object.prototype.propertyIsEnumerable; var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'); var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'); @@ -6675,13 +6665,13 @@ module.exports = keysShim; /***/ }), -/* 129 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES = __webpack_require__(208); +var ES = __webpack_require__(269); var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || (Math.pow(2, 53) - 1); @@ -6747,14 +6737,14 @@ module.exports = function flat() { /***/ }), -/* 130 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES2015 = __webpack_require__(209); -var assign = __webpack_require__(108); +var ES2015 = __webpack_require__(270); +var assign = __webpack_require__(124); var ES2016 = assign(assign({}, ES2015), { // https://github.com/tc39/ecma262/pull/60 @@ -6770,7 +6760,7 @@ module.exports = ES2016; /***/ }), -/* 131 */ +/* 144 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -6779,14 +6769,14 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 132 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var toStr = Object.prototype.toString; -var hasSymbols = __webpack_require__(213)(); +var hasSymbols = __webpack_require__(274)(); if (hasSymbols) { var symToStr = Symbol.prototype.toString; @@ -6821,7 +6811,7 @@ if (hasSymbols) { /***/ }), -/* 133 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6870,7 +6860,7 @@ module.exports = function hasSymbols() { /***/ }), -/* 134 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7054,7 +7044,7 @@ module.exports = function GetIntrinsic(name, allowMissing) { /***/ }), -/* 135 */ +/* 148 */ /***/ (function(module, exports) { module.exports = Number.isNaN || function isNaN(a) { @@ -7063,7 +7053,7 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 136 */ +/* 149 */ /***/ (function(module, exports) { var $isNaN = Number.isNaN || function (a) { return a !== a; }; @@ -7072,7 +7062,7 @@ module.exports = Number.isFinite || function (x) { return typeof x === 'number' /***/ }), -/* 137 */ +/* 150 */ /***/ (function(module, exports) { module.exports = function sign(number) { @@ -7081,7 +7071,7 @@ module.exports = function sign(number) { /***/ }), -/* 138 */ +/* 151 */ /***/ (function(module, exports) { module.exports = function mod(number, modulo) { @@ -7091,13 +7081,13 @@ module.exports = function mod(number, modulo) { /***/ }), -/* 139 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(129); +var implementation = __webpack_require__(142); module.exports = function getPolyfill() { return Array.prototype.flat || implementation; @@ -7105,7 +7095,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 140 */ +/* 153 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { @@ -7199,7 +7189,7 @@ exports['default'] = { }; /***/ }), -/* 141 */ +/* 154 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7405,19 +7395,19 @@ exports['default'] = { }; /***/ }), -/* 142 */ +/* 155 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // modified from https://github.com/es-shims/es6-shim -var keys = __webpack_require__(128); -var bind = __webpack_require__(70); +var keys = __webpack_require__(141); +var bind = __webpack_require__(74); var canBeObject = function (obj) { return typeof obj !== 'undefined' && obj !== null; }; -var hasSymbols = __webpack_require__(133)(); +var hasSymbols = __webpack_require__(146)(); var toObject = Object; var push = bind.call(Function.call, Array.prototype.push); var propIsEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); @@ -7453,13 +7443,13 @@ module.exports = function assign(target, source1) { /***/ }), -/* 143 */ +/* 156 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(142); +var implementation = __webpack_require__(155); var lacksProperEnumerationOrder = function () { if (!Object.assign) { @@ -7511,7 +7501,7 @@ module.exports = function getPolyfill() { /***/ }), -/* 144 */ +/* 157 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7522,11 +7512,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarDaySettings; -var _getPhrase = __webpack_require__(233); +var _getPhrase = __webpack_require__(294); var _getPhrase2 = _interopRequireDefault(_getPhrase); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -7569,7 +7559,7 @@ function getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrase } /***/ }), -/* 145 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7583,77 +7573,77 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(71); +var _reactAddonsShallowCompare = __webpack_require__(78); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarWeek = __webpack_require__(234); +var _CalendarWeek = __webpack_require__(295); var _CalendarWeek2 = _interopRequireDefault(_CalendarWeek); -var _CalendarDay = __webpack_require__(109); +var _CalendarDay = __webpack_require__(125); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _calculateDimension = __webpack_require__(146); +var _calculateDimension = __webpack_require__(159); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getCalendarMonthWeeks = __webpack_require__(236); +var _getCalendarMonthWeeks = __webpack_require__(297); var _getCalendarMonthWeeks2 = _interopRequireDefault(_getCalendarMonthWeeks); -var _isSameDay = __webpack_require__(72); +var _isSameDay = __webpack_require__(79); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _toISODateString = __webpack_require__(92); +var _toISODateString = __webpack_require__(102); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _ModifiersShape = __webpack_require__(91); +var _ModifiersShape = __webpack_require__(101); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(74); +var _ScrollableOrientationShape = __webpack_require__(81); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(67); +var _DayOfWeekShape = __webpack_require__(75); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -7974,7 +7964,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonth); /***/ }), -/* 146 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8018,7 +8008,7 @@ function calculateDimension(el, axis) { } /***/ }), -/* 147 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8032,83 +8022,83 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(71); +var _reactAddonsShallowCompare = __webpack_require__(78); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _consolidatedEvents = __webpack_require__(93); +var _consolidatedEvents = __webpack_require__(103); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonth = __webpack_require__(145); +var _CalendarMonth = __webpack_require__(158); var _CalendarMonth2 = _interopRequireDefault(_CalendarMonth); -var _isTransitionEndSupported = __webpack_require__(237); +var _isTransitionEndSupported = __webpack_require__(298); var _isTransitionEndSupported2 = _interopRequireDefault(_isTransitionEndSupported); -var _getTransformStyles = __webpack_require__(238); +var _getTransformStyles = __webpack_require__(299); var _getTransformStyles2 = _interopRequireDefault(_getTransformStyles); -var _getCalendarMonthWidth = __webpack_require__(148); +var _getCalendarMonthWidth = __webpack_require__(161); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _toISOMonthString = __webpack_require__(94); +var _toISOMonthString = __webpack_require__(104); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _isPrevMonth = __webpack_require__(239); +var _isPrevMonth = __webpack_require__(300); var _isPrevMonth2 = _interopRequireDefault(_isPrevMonth); -var _isNextMonth = __webpack_require__(240); +var _isNextMonth = __webpack_require__(301); var _isNextMonth2 = _interopRequireDefault(_isNextMonth); -var _ModifiersShape = __webpack_require__(91); +var _ModifiersShape = __webpack_require__(101); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); -var _ScrollableOrientationShape = __webpack_require__(74); +var _ScrollableOrientationShape = __webpack_require__(81); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(67); +var _DayOfWeekShape = __webpack_require__(75); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -8584,7 +8574,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonthGrid); /***/ }), -/* 148 */ +/* 161 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8599,7 +8589,7 @@ function getCalendarMonthWidth(daySize, calendarMonthPadding) { } /***/ }), -/* 149 */ +/* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8610,7 +8600,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isSameMonth; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); @@ -8624,15 +8614,104 @@ function isSameMonth(a, b) { } /***/ }), -/* 150 */ +/* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES = __webpack_require__(243); -var has = __webpack_require__(90); -var bind = __webpack_require__(70); +var keys = __webpack_require__(308); +var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; + +var toStr = Object.prototype.toString; +var concat = Array.prototype.concat; +var origDefineProperty = Object.defineProperty; + +var isFunction = function (fn) { + return typeof fn === 'function' && toStr.call(fn) === '[object Function]'; +}; + +var arePropertyDescriptorsSupported = function () { + var obj = {}; + try { + origDefineProperty(obj, 'x', { enumerable: false, value: obj }); + // eslint-disable-next-line no-unused-vars, no-restricted-syntax + for (var _ in obj) { // jscs:ignore disallowUnusedVariables + return false; + } + return obj.x === obj; + } catch (e) { /* this is IE 8. */ + return false; + } +}; +var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported(); + +var defineProperty = function (object, name, value, predicate) { + if (name in object && (!isFunction(predicate) || !predicate())) { + return; + } + if (supportsDescriptors) { + origDefineProperty(object, name, { + configurable: true, + enumerable: false, + value: value, + writable: true + }); + } else { + object[name] = value; + } +}; + +var defineProperties = function (object, map) { + var predicates = arguments.length > 2 ? arguments[2] : {}; + var props = keys(map); + if (hasSymbols) { + props = concat.call(props, Object.getOwnPropertySymbols(map)); + } + for (var i = 0; i < props.length; i += 1) { + defineProperty(object, props[i], map[props[i]], predicates[props[i]]); + } +}; + +defineProperties.supportsDescriptors = !!supportsDescriptors; + +module.exports = defineProperties; + + +/***/ }), +/* 164 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var toStr = Object.prototype.toString; + +module.exports = function isArguments(value) { + var str = toStr.call(value); + var isArgs = str === '[object Arguments]'; + if (!isArgs) { + isArgs = str !== '[object Array]' && + value !== null && + typeof value === 'object' && + typeof value.length === 'number' && + value.length >= 0 && + toStr.call(value.callee) === '[object Function]'; + } + return isArgs; +}; + + +/***/ }), +/* 165 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var ES = __webpack_require__(166); +var has = __webpack_require__(91); +var bind = __webpack_require__(74); var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); module.exports = function values(O) { @@ -8648,13 +8727,23 @@ module.exports = function values(O) { /***/ }), -/* 151 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var implementation = __webpack_require__(150); +module.exports = __webpack_require__(143); + + +/***/ }), +/* 167 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(165); module.exports = function getPolyfill() { return typeof Object.values === 'function' ? Object.values : implementation; @@ -8662,7 +8751,147 @@ module.exports = function getPolyfill() { /***/ }), -/* 152 */ +/* 168 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var keys = __webpack_require__(312); +var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; + +var toStr = Object.prototype.toString; +var concat = Array.prototype.concat; +var origDefineProperty = Object.defineProperty; + +var isFunction = function (fn) { + return typeof fn === 'function' && toStr.call(fn) === '[object Function]'; +}; + +var arePropertyDescriptorsSupported = function () { + var obj = {}; + try { + origDefineProperty(obj, 'x', { enumerable: false, value: obj }); + // eslint-disable-next-line no-unused-vars, no-restricted-syntax + for (var _ in obj) { // jscs:ignore disallowUnusedVariables + return false; + } + return obj.x === obj; + } catch (e) { /* this is IE 8. */ + return false; + } +}; +var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported(); + +var defineProperty = function (object, name, value, predicate) { + if (name in object && (!isFunction(predicate) || !predicate())) { + return; + } + if (supportsDescriptors) { + origDefineProperty(object, name, { + configurable: true, + enumerable: false, + value: value, + writable: true + }); + } else { + object[name] = value; + } +}; + +var defineProperties = function (object, map) { + var predicates = arguments.length > 2 ? arguments[2] : {}; + var props = keys(map); + if (hasSymbols) { + props = concat.call(props, Object.getOwnPropertySymbols(map)); + } + for (var i = 0; i < props.length; i += 1) { + defineProperty(object, props[i], map[props[i]], predicates[props[i]]); + } +}; + +defineProperties.supportsDescriptors = !!supportsDescriptors; + +module.exports = defineProperties; + + +/***/ }), +/* 169 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var toStr = Object.prototype.toString; + +module.exports = function isArguments(value) { + var str = toStr.call(value); + var isArgs = str === '[object Arguments]'; + if (!isArgs) { + isArgs = str !== '[object Array]' && + value !== null && + typeof value === 'object' && + typeof value.length === 'number' && + value.length >= 0 && + toStr.call(value.callee) === '[object Function]'; + } + return isArgs; +}; + + +/***/ }), +/* 170 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +module.exports = function contains(other) { + if (arguments.length < 1) { + throw new TypeError('1 argument is required'); + } + if (typeof other !== 'object') { + throw new TypeError('Argument 1 (”other“) to Node.contains must be an instance of Node'); + } + + var node = other; + do { + if (this === node) { + return true; + } + if (node) { + node = node.parentNode; + } + } while (node); + + return false; +}; + + +/***/ }), +/* 171 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(170); + +module.exports = function getPolyfill() { + if (typeof document !== 'undefined') { + if (document.contains) { + return document.contains; + } + if (document.body && document.body.contains) { + return document.body.contains; + } + } + return implementation; +}; + + +/***/ }), +/* 172 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8672,51 +8901,51 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _FocusedInputShape = __webpack_require__(153); +var _FocusedInputShape = __webpack_require__(173); var _FocusedInputShape2 = _interopRequireDefault(_FocusedInputShape); -var _IconPositionShape = __webpack_require__(82); +var _IconPositionShape = __webpack_require__(92); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _OrientationShape = __webpack_require__(154); +var _OrientationShape = __webpack_require__(174); var _OrientationShape2 = _interopRequireDefault(_OrientationShape); -var _DisabledShape = __webpack_require__(95); +var _DisabledShape = __webpack_require__(105); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _AnchorDirectionShape = __webpack_require__(155); +var _AnchorDirectionShape = __webpack_require__(175); var _AnchorDirectionShape2 = _interopRequireDefault(_AnchorDirectionShape); -var _OpenDirectionShape = __webpack_require__(76); +var _OpenDirectionShape = __webpack_require__(83); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _DayOfWeekShape = __webpack_require__(67); +var _DayOfWeekShape = __webpack_require__(75); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(83); +var _CalendarInfoPositionShape = __webpack_require__(93); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); @@ -8803,7 +9032,7 @@ exports['default'] = { }; /***/ }), -/* 153 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8813,18 +9042,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.START_DATE, _constants.END_DATE]); /***/ }), -/* 154 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8834,18 +9063,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION]); /***/ }), -/* 155 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8855,18 +9084,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = _propTypes2['default'].oneOf([_constants.ANCHOR_LEFT, _constants.ANCHOR_RIGHT]); /***/ }), -/* 156 */ +/* 176 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8877,7 +9106,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getResponsiveContainerStyles; -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } @@ -8890,7 +9119,7 @@ function getResponsiveContainerStyles(anchorDirection, currentOffset, containerE } /***/ }), -/* 157 */ +/* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8901,7 +9130,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getDetachedContainerStyles; -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); /** * Calculate and return a CSS transform style to position a detached element @@ -8942,7 +9171,7 @@ function getDetachedContainerStyles(openDirection, anchorDirection, referenceEl) } /***/ }), -/* 158 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9031,7 +9260,7 @@ function disableScroll(node) { } /***/ }), -/* 159 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9043,63 +9272,63 @@ Object.defineProperty(exports, "__esModule", { var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _OpenDirectionShape = __webpack_require__(76); +var _OpenDirectionShape = __webpack_require__(83); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _DateRangePickerInput = __webpack_require__(160); +var _DateRangePickerInput = __webpack_require__(180); var _DateRangePickerInput2 = _interopRequireDefault(_DateRangePickerInput); -var _IconPositionShape = __webpack_require__(82); +var _IconPositionShape = __webpack_require__(92); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _DisabledShape = __webpack_require__(95); +var _DisabledShape = __webpack_require__(105); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _toMomentObject = __webpack_require__(73); +var _toMomentObject = __webpack_require__(80); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _toLocalizedDateString = __webpack_require__(116); +var _toLocalizedDateString = __webpack_require__(129); var _toLocalizedDateString2 = _interopRequireDefault(_toLocalizedDateString); -var _isInclusivelyAfterDay = __webpack_require__(84); +var _isInclusivelyAfterDay = __webpack_require__(94); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _isBeforeDay = __webpack_require__(85); +var _isBeforeDay = __webpack_require__(95); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -9516,7 +9745,7 @@ DateRangePickerInputController.propTypes = propTypes; DateRangePickerInputController.defaultProps = defaultProps; /***/ }), -/* 160 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9528,61 +9757,61 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _OpenDirectionShape = __webpack_require__(76); +var _OpenDirectionShape = __webpack_require__(83); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _DateInput = __webpack_require__(161); +var _DateInput = __webpack_require__(181); var _DateInput2 = _interopRequireDefault(_DateInput); -var _IconPositionShape = __webpack_require__(82); +var _IconPositionShape = __webpack_require__(92); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _DisabledShape = __webpack_require__(95); +var _DisabledShape = __webpack_require__(105); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _RightArrow = __webpack_require__(165); +var _RightArrow = __webpack_require__(185); var _RightArrow2 = _interopRequireDefault(_RightArrow); -var _LeftArrow = __webpack_require__(166); +var _LeftArrow = __webpack_require__(186); var _LeftArrow2 = _interopRequireDefault(_LeftArrow); -var _CloseButton = __webpack_require__(86); +var _CloseButton = __webpack_require__(96); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _CalendarIcon = __webpack_require__(167); +var _CalendarIcon = __webpack_require__(187); var _CalendarIcon2 = _interopRequireDefault(_CalendarIcon); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -9972,7 +10201,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DateRangePickerInput); /***/ }), -/* 161 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9986,39 +10215,39 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _throttle = __webpack_require__(162); +var _throttle = __webpack_require__(182); var _throttle2 = _interopRequireDefault(_throttle); -var _isTouchDevice = __webpack_require__(75); +var _isTouchDevice = __webpack_require__(82); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _getInputHeight = __webpack_require__(114); +var _getInputHeight = __webpack_require__(127); var _getInputHeight2 = _interopRequireDefault(_getInputHeight); -var _OpenDirectionShape = __webpack_require__(76); +var _OpenDirectionShape = __webpack_require__(83); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -10452,11 +10681,11 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(DateInput); /***/ }), -/* 162 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { -var debounce = __webpack_require__(245), - isObject = __webpack_require__(115); +var debounce = __webpack_require__(315), + isObject = __webpack_require__(128); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -10527,10 +10756,10 @@ module.exports = throttle; /***/ }), -/* 163 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(247); +var freeGlobal = __webpack_require__(317); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -10542,10 +10771,10 @@ module.exports = root; /***/ }), -/* 164 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(163); +var root = __webpack_require__(183); /** Built-in value references. */ var Symbol = root.Symbol; @@ -10554,7 +10783,7 @@ module.exports = Symbol; /***/ }), -/* 165 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10564,7 +10793,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); @@ -10590,7 +10819,7 @@ RightArrow.defaultProps = { exports['default'] = RightArrow; /***/ }), -/* 166 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10600,7 +10829,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); @@ -10626,7 +10855,7 @@ LeftArrow.defaultProps = { exports['default'] = LeftArrow; /***/ }), -/* 167 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10636,7 +10865,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); @@ -10662,7 +10891,7 @@ CalendarIcon.defaultProps = { exports['default'] = CalendarIcon; /***/ }), -/* 168 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10676,105 +10905,105 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _object3 = __webpack_require__(113); +var _object3 = __webpack_require__(189); var _object4 = _interopRequireDefault(_object3); -var _isTouchDevice = __webpack_require__(75); +var _isTouchDevice = __webpack_require__(82); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _isInclusivelyAfterDay = __webpack_require__(84); +var _isInclusivelyAfterDay = __webpack_require__(94); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _isNextDay = __webpack_require__(169); +var _isNextDay = __webpack_require__(192); var _isNextDay2 = _interopRequireDefault(_isNextDay); -var _isSameDay = __webpack_require__(72); +var _isSameDay = __webpack_require__(79); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _isAfterDay = __webpack_require__(96); +var _isAfterDay = __webpack_require__(106); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); -var _isBeforeDay = __webpack_require__(85); +var _isBeforeDay = __webpack_require__(95); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _getVisibleDays = __webpack_require__(170); +var _getVisibleDays = __webpack_require__(193); var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); -var _isDayVisible = __webpack_require__(117); +var _isDayVisible = __webpack_require__(130); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _getSelectedDateOffset = __webpack_require__(254); +var _getSelectedDateOffset = __webpack_require__(325); var _getSelectedDateOffset2 = _interopRequireDefault(_getSelectedDateOffset); -var _toISODateString = __webpack_require__(92); +var _toISODateString = __webpack_require__(102); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _toISOMonthString = __webpack_require__(94); +var _toISOMonthString = __webpack_require__(104); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _DisabledShape = __webpack_require__(95); +var _DisabledShape = __webpack_require__(105); var _DisabledShape2 = _interopRequireDefault(_DisabledShape); -var _FocusedInputShape = __webpack_require__(153); +var _FocusedInputShape = __webpack_require__(173); var _FocusedInputShape2 = _interopRequireDefault(_FocusedInputShape); -var _ScrollableOrientationShape = __webpack_require__(74); +var _ScrollableOrientationShape = __webpack_require__(81); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(67); +var _DayOfWeekShape = __webpack_require__(75); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(83); +var _CalendarInfoPositionShape = __webpack_require__(93); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); -var _DayPicker = __webpack_require__(118); +var _DayPicker = __webpack_require__(131); var _DayPicker2 = _interopRequireDefault(_DayPicker); @@ -12173,7 +12402,69 @@ DayPickerRangeController.propTypes = propTypes; DayPickerRangeController.defaultProps = defaultProps; /***/ }), -/* 169 */ +/* 189 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var define = __webpack_require__(73); + +var implementation = __webpack_require__(190); +var getPolyfill = __webpack_require__(191); +var shim = __webpack_require__(324); + +var polyfill = getPolyfill(); + +define(polyfill, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = polyfill; + + +/***/ }), +/* 190 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var ES = __webpack_require__(166); +var has = __webpack_require__(91); +var bind = __webpack_require__(74); +var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); + +module.exports = function values(O) { + var obj = ES.RequireObjectCoercible(O); + var vals = []; + for (var key in obj) { + if (has(obj, key) && isEnumerable(obj, key)) { + vals.push(obj[key]); + } + } + return vals; +}; + + +/***/ }), +/* 191 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(190); + +module.exports = function getPolyfill() { + return typeof Object.values === 'function' ? Object.values : implementation; +}; + + +/***/ }), +/* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12184,11 +12475,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isNextDay; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isSameDay = __webpack_require__(72); +var _isSameDay = __webpack_require__(79); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -12201,7 +12492,7 @@ function isNextDay(a, b) { } /***/ }), -/* 170 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12212,11 +12503,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getVisibleDays; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _toISOMonthString = __webpack_require__(94); +var _toISOMonthString = __webpack_require__(104); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); @@ -12270,7 +12561,7 @@ function getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransit } /***/ }), -/* 171 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12284,81 +12575,81 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _object3 = __webpack_require__(113); +var _object3 = __webpack_require__(189); var _object4 = _interopRequireDefault(_object3); -var _isTouchDevice = __webpack_require__(75); +var _isTouchDevice = __webpack_require__(82); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _isSameDay = __webpack_require__(72); +var _isSameDay = __webpack_require__(79); var _isSameDay2 = _interopRequireDefault(_isSameDay); -var _isAfterDay = __webpack_require__(96); +var _isAfterDay = __webpack_require__(106); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); -var _getVisibleDays = __webpack_require__(170); +var _getVisibleDays = __webpack_require__(193); var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); -var _isDayVisible = __webpack_require__(117); +var _isDayVisible = __webpack_require__(130); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _toISODateString = __webpack_require__(92); +var _toISODateString = __webpack_require__(102); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _toISOMonthString = __webpack_require__(94); +var _toISOMonthString = __webpack_require__(104); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _ScrollableOrientationShape = __webpack_require__(74); +var _ScrollableOrientationShape = __webpack_require__(81); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(67); +var _DayOfWeekShape = __webpack_require__(75); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(83); +var _CalendarInfoPositionShape = __webpack_require__(93); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); -var _DayPicker = __webpack_require__(118); +var _DayPicker = __webpack_require__(131); var _DayPicker2 = _interopRequireDefault(_DayPicker); @@ -13318,7 +13609,7 @@ DayPickerSingleDateController.propTypes = propTypes; DayPickerSingleDateController.defaultProps = defaultProps; /***/ }), -/* 172 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13328,43 +13619,43 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _IconPositionShape = __webpack_require__(82); +var _IconPositionShape = __webpack_require__(92); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _OrientationShape = __webpack_require__(154); +var _OrientationShape = __webpack_require__(174); var _OrientationShape2 = _interopRequireDefault(_OrientationShape); -var _AnchorDirectionShape = __webpack_require__(155); +var _AnchorDirectionShape = __webpack_require__(175); var _AnchorDirectionShape2 = _interopRequireDefault(_AnchorDirectionShape); -var _OpenDirectionShape = __webpack_require__(76); +var _OpenDirectionShape = __webpack_require__(83); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _DayOfWeekShape = __webpack_require__(67); +var _DayOfWeekShape = __webpack_require__(75); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); -var _CalendarInfoPositionShape = __webpack_require__(83); +var _CalendarInfoPositionShape = __webpack_require__(93); var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionShape); @@ -13447,7 +13738,7 @@ exports['default'] = { }; /***/ }), -/* 173 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13459,49 +13750,49 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _DateInput = __webpack_require__(161); +var _DateInput = __webpack_require__(181); var _DateInput2 = _interopRequireDefault(_DateInput); -var _IconPositionShape = __webpack_require__(82); +var _IconPositionShape = __webpack_require__(92); var _IconPositionShape2 = _interopRequireDefault(_IconPositionShape); -var _CloseButton = __webpack_require__(86); +var _CloseButton = __webpack_require__(96); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _CalendarIcon = __webpack_require__(167); +var _CalendarIcon = __webpack_require__(187); var _CalendarIcon2 = _interopRequireDefault(_CalendarIcon); -var _OpenDirectionShape = __webpack_require__(76); +var _OpenDirectionShape = __webpack_require__(83); var _OpenDirectionShape2 = _interopRequireDefault(_OpenDirectionShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -13807,30 +14098,28 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(SingleDatePickerInput); /***/ }), -/* 174 */, -/* 175 */, -/* 176 */, -/* 177 */, -/* 178 */, -/* 179 */, -/* 180 */, -/* 181 */, -/* 182 */ +/* 197 */, +/* 198 */, +/* 199 */, +/* 200 */, +/* 201 */, +/* 202 */, +/* 203 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: external "ReactDOM" -var external_ReactDOM_ = __webpack_require__(48); +var external_ReactDOM_ = __webpack_require__(52); var external_ReactDOM_default = /*#__PURE__*/__webpack_require__.n(external_ReactDOM_); // EXTERNAL MODULE: external "React" -var external_React_ = __webpack_require__(26); +var external_React_ = __webpack_require__(27); var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_); // EXTERNAL MODULE: ./node_modules/prop-types/index.js -var prop_types = __webpack_require__(30); +var prop_types = __webpack_require__(31); var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); // CONCATENATED MODULE: ./node_modules/react-portal/es/utils.js @@ -14135,10 +14424,24 @@ PortalWithState_PortalWithState.defaultProps = { /***/ }), -/* 183 */, -/* 184 */, -/* 185 */, -/* 186 */ +/* 204 */, +/* 205 */, +/* 206 */, +/* 207 */, +/* 208 */, +/* 209 */, +/* 210 */, +/* 211 */, +/* 212 */, +/* 213 */, +/* 214 */, +/* 215 */, +/* 216 */, +/* 217 */, +/* 218 */, +/* 219 */, +/* 220 */, +/* 221 */ /***/ (function(module, exports, __webpack_require__) { /*! @@ -15116,7 +15419,7 @@ module.exports = closest; }); /***/ }), -/* 187 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ @@ -16181,24 +16484,50 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ /***/ }), -/* 188 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(224); +module.exports = __webpack_require__(285); /***/ }), -/* 189 */, -/* 190 */, -/* 191 */, -/* 192 */, -/* 193 */, -/* 194 */, -/* 195 */, -/* 196 */, -/* 197 */, -/* 198 */ +/* 224 */, +/* 225 */, +/* 226 */, +/* 227 */, +/* 228 */, +/* 229 */, +/* 230 */, +/* 231 */, +/* 232 */, +/* 233 */, +/* 234 */, +/* 235 */, +/* 236 */, +/* 237 */, +/* 238 */, +/* 239 */, +/* 240 */, +/* 241 */, +/* 242 */, +/* 243 */, +/* 244 */, +/* 245 */, +/* 246 */, +/* 247 */, +/* 248 */, +/* 249 */, +/* 250 */, +/* 251 */, +/* 252 */, +/* 253 */, +/* 254 */, +/* 255 */, +/* 256 */, +/* 257 */, +/* 258 */, +/* 259 */ /***/ (function(module, exports) { /** @@ -16247,21 +16576,21 @@ module.exports = __webpack_require__(224); /***/ }), -/* 199 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -__webpack_require__(200); +__webpack_require__(261); /***/ }), -/* 200 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(201); +var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(262); var _registerCSSInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerCSSInterfaceWithDefaultTheme); @@ -16270,7 +16599,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd (0, _registerCSSInterfaceWithDefaultTheme2['default'])(); /***/ }), -/* 201 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16281,11 +16610,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerCSSInterfaceWithDefaultTheme; -var _reactWithStylesInterfaceCss = __webpack_require__(202); +var _reactWithStylesInterfaceCss = __webpack_require__(263); var _reactWithStylesInterfaceCss2 = _interopRequireDefault(_reactWithStylesInterfaceCss); -var _registerInterfaceWithDefaultTheme = __webpack_require__(223); +var _registerInterfaceWithDefaultTheme = __webpack_require__(284); var _registerInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerInterfaceWithDefaultTheme); @@ -16296,36 +16625,36 @@ function registerCSSInterfaceWithDefaultTheme() { } /***/ }), -/* 202 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(203).default; +module.exports = __webpack_require__(264).default; /***/ }), -/* 203 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -var _arrayPrototype = __webpack_require__(204); +var _arrayPrototype = __webpack_require__(265); var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); -var _globalCache = __webpack_require__(219); +var _globalCache = __webpack_require__(280); var _globalCache2 = _interopRequireDefault(_globalCache); -var _constants = __webpack_require__(220); +var _constants = __webpack_require__(281); -var _getClassName = __webpack_require__(221); +var _getClassName = __webpack_require__(282); var _getClassName2 = _interopRequireDefault(_getClassName); -var _separateStyles2 = __webpack_require__(222); +var _separateStyles2 = __webpack_require__(283); var _separateStyles3 = _interopRequireDefault(_separateStyles2); @@ -16383,19 +16712,19 @@ function resolve(stylesArray) { exports['default'] = { create: create, resolve: resolve }; /***/ }), -/* 204 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(66); -var bind = __webpack_require__(70); +var define = __webpack_require__(73); +var bind = __webpack_require__(74); -var implementation = __webpack_require__(129); -var getPolyfill = __webpack_require__(139); +var implementation = __webpack_require__(142); +var getPolyfill = __webpack_require__(152); var polyfill = getPolyfill(); -var shim = __webpack_require__(218); +var shim = __webpack_require__(279); var boundFlat = bind.call(Function.call, polyfill); @@ -16409,7 +16738,7 @@ module.exports = boundFlat; /***/ }), -/* 205 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16433,7 +16762,7 @@ module.exports = function isArguments(value) { /***/ }), -/* 206 */ +/* 267 */ /***/ (function(module, exports) { @@ -16461,7 +16790,7 @@ module.exports = function forEach (obj, fn, ctx) { /***/ }), -/* 207 */ +/* 268 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -16520,14 +16849,14 @@ module.exports = function bind(that) { /***/ }), -/* 208 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES2016 = __webpack_require__(130); -var assign = __webpack_require__(108); +var ES2016 = __webpack_require__(143); +var assign = __webpack_require__(124); var ES2017 = assign(assign({}, ES2016), { ToIndex: function ToIndex(value) { @@ -16552,16 +16881,16 @@ module.exports = ES2017; /***/ }), -/* 209 */ +/* 270 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(90); -var toPrimitive = __webpack_require__(210); +var has = __webpack_require__(91); +var toPrimitive = __webpack_require__(271); -var GetIntrinsic = __webpack_require__(134); +var GetIntrinsic = __webpack_require__(147); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); @@ -16574,16 +16903,16 @@ var $RegExp = GetIntrinsic('%RegExp%'); var hasSymbols = !!$Symbol; -var $isNaN = __webpack_require__(135); -var $isFinite = __webpack_require__(136); +var $isNaN = __webpack_require__(148); +var $isFinite = __webpack_require__(149); var MAX_SAFE_INTEGER = $Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; -var assign = __webpack_require__(108); -var sign = __webpack_require__(137); -var mod = __webpack_require__(138); -var isPrimitive = __webpack_require__(214); +var assign = __webpack_require__(124); +var sign = __webpack_require__(150); +var mod = __webpack_require__(151); +var isPrimitive = __webpack_require__(275); var parseInteger = parseInt; -var bind = __webpack_require__(70); +var bind = __webpack_require__(74); var arraySlice = bind.call(Function.call, $Array.prototype.slice); var strSlice = bind.call(Function.call, $String.prototype.slice); var isBinary = bind.call(Function.call, $RegExp.prototype.test, /^0b[01]+$/i); @@ -16619,9 +16948,9 @@ var trim = function (value) { return replace(value, trimRegex, ''); }; -var ES5 = __webpack_require__(215); +var ES5 = __webpack_require__(276); -var hasRegExpMatcher = __webpack_require__(217); +var hasRegExpMatcher = __webpack_require__(278); // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations var ES6 = assign(assign({}, ES5), { @@ -17252,17 +17581,17 @@ module.exports = ES6; /***/ }), -/* 210 */ +/* 271 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(211); +module.exports = __webpack_require__(272); /***/ }), -/* 211 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17270,10 +17599,10 @@ module.exports = __webpack_require__(211); var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; -var isPrimitive = __webpack_require__(131); -var isCallable = __webpack_require__(107); -var isDate = __webpack_require__(212); -var isSymbol = __webpack_require__(132); +var isPrimitive = __webpack_require__(144); +var isCallable = __webpack_require__(123); +var isDate = __webpack_require__(273); +var isSymbol = __webpack_require__(145); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -17344,7 +17673,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 212 */ +/* 273 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17371,14 +17700,14 @@ module.exports = function isDateObject(value) { /***/ }), -/* 213 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(133); +var hasSymbolSham = __webpack_require__(146); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } @@ -17389,10 +17718,10 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(59))) /***/ }), -/* 214 */ +/* 275 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -17401,28 +17730,28 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 215 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(134); +var GetIntrinsic = __webpack_require__(147); var $Object = GetIntrinsic('%Object%'); var $TypeError = GetIntrinsic('%TypeError%'); var $String = GetIntrinsic('%String%'); -var $isNaN = __webpack_require__(135); -var $isFinite = __webpack_require__(136); +var $isNaN = __webpack_require__(148); +var $isFinite = __webpack_require__(149); -var sign = __webpack_require__(137); -var mod = __webpack_require__(138); +var sign = __webpack_require__(150); +var mod = __webpack_require__(151); -var IsCallable = __webpack_require__(107); -var toPrimitive = __webpack_require__(216); +var IsCallable = __webpack_require__(123); +var toPrimitive = __webpack_require__(277); -var has = __webpack_require__(90); +var has = __webpack_require__(91); // https://es5.github.io/#x9 var ES5 = { @@ -17650,7 +17979,7 @@ module.exports = ES5; /***/ }), -/* 216 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17658,9 +17987,9 @@ module.exports = ES5; var toStr = Object.prototype.toString; -var isPrimitive = __webpack_require__(131); +var isPrimitive = __webpack_require__(144); -var isCallable = __webpack_require__(107); +var isCallable = __webpack_require__(123); // http://ecma-international.org/ecma-262/5.1/#sec-8.12.8 var ES5internalSlots = { @@ -17702,13 +18031,13 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 217 */ +/* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(90); +var has = __webpack_require__(91); var regexExec = RegExp.prototype.exec; var gOPD = Object.getOwnPropertyDescriptor; @@ -17748,14 +18077,14 @@ module.exports = function isRegex(value) { /***/ }), -/* 218 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(66); -var getPolyfill = __webpack_require__(139); +var define = __webpack_require__(73); +var getPolyfill = __webpack_require__(152); module.exports = function shimFlat() { var polyfill = getPolyfill(); @@ -17769,14 +18098,14 @@ module.exports = function shimFlat() { /***/ }), -/* 219 */ +/* 280 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { -var define = __webpack_require__(66); -var isSymbol = __webpack_require__(132); +var define = __webpack_require__(73); +var isSymbol = __webpack_require__(145); var globalKey = '__ global cache key __'; /* istanbul ignore else */ @@ -17865,10 +18194,10 @@ var globalCache = { module.exports = globalCache; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(59))) /***/ }), -/* 220 */ +/* 281 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -17881,7 +18210,7 @@ exports.GLOBAL_CACHE_KEY = GLOBAL_CACHE_KEY; exports.MAX_SPECIFICITY = MAX_SPECIFICITY; /***/ }), -/* 221 */ +/* 282 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -17902,7 +18231,7 @@ function getClassName(namespace, styleName) { } /***/ }), -/* 222 */ +/* 283 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -17950,7 +18279,7 @@ function separateStyles(stylesArray) { exports['default'] = separateStyles; /***/ }), -/* 223 */ +/* 284 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17961,11 +18290,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerInterfaceWithDefaultTheme; -var _ThemedStyleSheet = __webpack_require__(140); +var _ThemedStyleSheet = __webpack_require__(153); var _ThemedStyleSheet2 = _interopRequireDefault(_ThemedStyleSheet); -var _DefaultTheme = __webpack_require__(141); +var _DefaultTheme = __webpack_require__(154); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -17977,7 +18306,7 @@ function registerInterfaceWithDefaultTheme(reactWithStylesInterface) { } /***/ }), -/* 224 */ +/* 285 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -17987,7 +18316,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _CalendarDay = __webpack_require__(109); +var _CalendarDay = __webpack_require__(125); Object.defineProperty(exports, 'CalendarDay', { enumerable: true, @@ -18000,7 +18329,7 @@ Object.defineProperty(exports, 'CalendarDay', { }() }); -var _CalendarMonth = __webpack_require__(145); +var _CalendarMonth = __webpack_require__(158); Object.defineProperty(exports, 'CalendarMonth', { enumerable: true, @@ -18013,7 +18342,7 @@ Object.defineProperty(exports, 'CalendarMonth', { }() }); -var _CalendarMonthGrid = __webpack_require__(147); +var _CalendarMonthGrid = __webpack_require__(160); Object.defineProperty(exports, 'CalendarMonthGrid', { enumerable: true, @@ -18026,7 +18355,7 @@ Object.defineProperty(exports, 'CalendarMonthGrid', { }() }); -var _DateRangePicker = __webpack_require__(241); +var _DateRangePicker = __webpack_require__(302); Object.defineProperty(exports, 'DateRangePicker', { enumerable: true, @@ -18039,7 +18368,7 @@ Object.defineProperty(exports, 'DateRangePicker', { }() }); -var _DateRangePickerInput = __webpack_require__(160); +var _DateRangePickerInput = __webpack_require__(180); Object.defineProperty(exports, 'DateRangePickerInput', { enumerable: true, @@ -18052,7 +18381,7 @@ Object.defineProperty(exports, 'DateRangePickerInput', { }() }); -var _DateRangePickerInputController = __webpack_require__(159); +var _DateRangePickerInputController = __webpack_require__(179); Object.defineProperty(exports, 'DateRangePickerInputController', { enumerable: true, @@ -18065,7 +18394,7 @@ Object.defineProperty(exports, 'DateRangePickerInputController', { }() }); -var _DateRangePickerShape = __webpack_require__(152); +var _DateRangePickerShape = __webpack_require__(172); Object.defineProperty(exports, 'DateRangePickerShape', { enumerable: true, @@ -18078,7 +18407,7 @@ Object.defineProperty(exports, 'DateRangePickerShape', { }() }); -var _DayPicker = __webpack_require__(118); +var _DayPicker = __webpack_require__(131); Object.defineProperty(exports, 'DayPicker', { enumerable: true, @@ -18091,7 +18420,7 @@ Object.defineProperty(exports, 'DayPicker', { }() }); -var _DayPickerRangeController = __webpack_require__(168); +var _DayPickerRangeController = __webpack_require__(188); Object.defineProperty(exports, 'DayPickerRangeController', { enumerable: true, @@ -18104,7 +18433,7 @@ Object.defineProperty(exports, 'DayPickerRangeController', { }() }); -var _DayPickerSingleDateController = __webpack_require__(171); +var _DayPickerSingleDateController = __webpack_require__(194); Object.defineProperty(exports, 'DayPickerSingleDateController', { enumerable: true, @@ -18117,7 +18446,7 @@ Object.defineProperty(exports, 'DayPickerSingleDateController', { }() }); -var _SingleDatePicker = __webpack_require__(262); +var _SingleDatePicker = __webpack_require__(333); Object.defineProperty(exports, 'SingleDatePicker', { enumerable: true, @@ -18130,7 +18459,7 @@ Object.defineProperty(exports, 'SingleDatePicker', { }() }); -var _SingleDatePickerInput = __webpack_require__(173); +var _SingleDatePickerInput = __webpack_require__(196); Object.defineProperty(exports, 'SingleDatePickerInput', { enumerable: true, @@ -18143,7 +18472,7 @@ Object.defineProperty(exports, 'SingleDatePickerInput', { }() }); -var _SingleDatePickerShape = __webpack_require__(172); +var _SingleDatePickerShape = __webpack_require__(195); Object.defineProperty(exports, 'SingleDatePickerShape', { enumerable: true, @@ -18156,7 +18485,7 @@ Object.defineProperty(exports, 'SingleDatePickerShape', { }() }); -var _isInclusivelyAfterDay = __webpack_require__(84); +var _isInclusivelyAfterDay = __webpack_require__(94); Object.defineProperty(exports, 'isInclusivelyAfterDay', { enumerable: true, @@ -18169,7 +18498,7 @@ Object.defineProperty(exports, 'isInclusivelyAfterDay', { }() }); -var _isInclusivelyBeforeDay = __webpack_require__(263); +var _isInclusivelyBeforeDay = __webpack_require__(334); Object.defineProperty(exports, 'isInclusivelyBeforeDay', { enumerable: true, @@ -18182,7 +18511,7 @@ Object.defineProperty(exports, 'isInclusivelyBeforeDay', { }() }); -var _isNextDay = __webpack_require__(169); +var _isNextDay = __webpack_require__(192); Object.defineProperty(exports, 'isNextDay', { enumerable: true, @@ -18195,7 +18524,7 @@ Object.defineProperty(exports, 'isNextDay', { }() }); -var _isSameDay = __webpack_require__(72); +var _isSameDay = __webpack_require__(79); Object.defineProperty(exports, 'isSameDay', { enumerable: true, @@ -18208,7 +18537,7 @@ Object.defineProperty(exports, 'isSameDay', { }() }); -var _toISODateString = __webpack_require__(92); +var _toISODateString = __webpack_require__(102); Object.defineProperty(exports, 'toISODateString', { enumerable: true, @@ -18221,7 +18550,7 @@ Object.defineProperty(exports, 'toISODateString', { }() }); -var _toLocalizedDateString = __webpack_require__(116); +var _toLocalizedDateString = __webpack_require__(129); Object.defineProperty(exports, 'toLocalizedDateString', { enumerable: true, @@ -18234,7 +18563,7 @@ Object.defineProperty(exports, 'toLocalizedDateString', { }() }); -var _toMomentObject = __webpack_require__(73); +var _toMomentObject = __webpack_require__(80); Object.defineProperty(exports, 'toMomentObject', { enumerable: true, @@ -18250,14 +18579,14 @@ Object.defineProperty(exports, 'toMomentObject', { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /***/ }), -/* 225 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(66); -var getPolyfill = __webpack_require__(143); +var define = __webpack_require__(73); +var getPolyfill = __webpack_require__(156); module.exports = function shimAssign() { var polyfill = getPolyfill(); @@ -18271,7 +18600,7 @@ module.exports = function shimAssign() { /***/ }), -/* 226 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18342,10 +18671,10 @@ function shallowEqual(objA, objB) { module.exports = shallowEqual; /***/ }), -/* 227 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { -var moment = __webpack_require__(27); +var moment = __webpack_require__(29); function isValidMoment(testMoment) { if (typeof moment.isMoment === 'function' && !moment.isMoment(testMoment)) { @@ -18368,7 +18697,7 @@ module.exports = { /***/ }), -/* 228 */ +/* 289 */ /***/ (function(module, exports) { var messages = { @@ -18493,7 +18822,7 @@ module.exports = { /***/ }), -/* 229 */ +/* 290 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18547,7 +18876,7 @@ module.exports = { /***/ }), -/* 230 */ +/* 291 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18651,7 +18980,7 @@ module.exports = deepmerge_1; /***/ }), -/* 231 */ +/* 292 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -18665,14 +18994,14 @@ var DIRECTIONS = exports.DIRECTIONS = { }; /***/ }), -/* 232 */ +/* 293 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -18685,7 +19014,7 @@ exports['default'] = _propTypes2['default'].shape({ }); /***/ }), -/* 233 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18706,7 +19035,7 @@ function getPhrase(phrase, args) { } /***/ }), -/* 234 */ +/* 295 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18717,17 +19046,17 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = CalendarWeek; -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _CalendarDay = __webpack_require__(109); +var _CalendarDay = __webpack_require__(125); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _CustomizableCalendarDay = __webpack_require__(235); +var _CustomizableCalendarDay = __webpack_require__(296); var _CustomizableCalendarDay2 = _interopRequireDefault(_CustomizableCalendarDay); @@ -18750,7 +19079,7 @@ function CalendarWeek(_ref) { CalendarWeek.propTypes = propTypes; /***/ }), -/* 235 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -18765,47 +19094,47 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _reactAddonsShallowCompare = __webpack_require__(71); +var _reactAddonsShallowCompare = __webpack_require__(78); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _reactMomentProptypes = __webpack_require__(57); +var _reactMomentProptypes = __webpack_require__(64); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _getCalendarDaySettings = __webpack_require__(144); +var _getCalendarDaySettings = __webpack_require__(157); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); -var _DefaultTheme = __webpack_require__(141); +var _DefaultTheme = __webpack_require__(154); var _DefaultTheme2 = _interopRequireDefault(_DefaultTheme); @@ -19260,7 +19589,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CustomizableCalendarDay); /***/ }), -/* 236 */ +/* 297 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19271,11 +19600,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarMonthWeeks; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -19324,7 +19653,7 @@ function getCalendarMonthWeeks(month, enableOutsideDays) { } /***/ }), -/* 237 */ +/* 298 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19339,7 +19668,7 @@ function isTransitionEndSupported() { } /***/ }), -/* 238 */ +/* 299 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19359,7 +19688,7 @@ function getTransformStyles(transformValue) { } /***/ }), -/* 239 */ +/* 300 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19370,11 +19699,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isPrevMonth; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(149); +var _isSameMonth = __webpack_require__(162); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -19386,7 +19715,7 @@ function isPrevMonth(a, b) { } /***/ }), -/* 240 */ +/* 301 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19397,11 +19726,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isNextMonth; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isSameMonth = __webpack_require__(149); +var _isSameMonth = __webpack_require__(162); var _isSameMonth2 = _interopRequireDefault(_isSameMonth); @@ -19413,7 +19742,7 @@ function isNextMonth(a, b) { } /***/ }), -/* 241 */ +/* 302 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -19428,77 +19757,77 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _reactAddonsShallowCompare = __webpack_require__(71); +var _reactAddonsShallowCompare = __webpack_require__(78); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _reactPortal = __webpack_require__(182); +var _reactPortal = __webpack_require__(203); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _consolidatedEvents = __webpack_require__(93); +var _consolidatedEvents = __webpack_require__(103); -var _isTouchDevice = __webpack_require__(75); +var _isTouchDevice = __webpack_require__(82); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(112); +var _reactOutsideClickHandler = __webpack_require__(126); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _DateRangePickerShape = __webpack_require__(152); +var _DateRangePickerShape = __webpack_require__(172); var _DateRangePickerShape2 = _interopRequireDefault(_DateRangePickerShape); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getResponsiveContainerStyles = __webpack_require__(156); +var _getResponsiveContainerStyles = __webpack_require__(176); var _getResponsiveContainerStyles2 = _interopRequireDefault(_getResponsiveContainerStyles); -var _getDetachedContainerStyles = __webpack_require__(157); +var _getDetachedContainerStyles = __webpack_require__(177); var _getDetachedContainerStyles2 = _interopRequireDefault(_getDetachedContainerStyles); -var _getInputHeight = __webpack_require__(114); +var _getInputHeight = __webpack_require__(127); var _getInputHeight2 = _interopRequireDefault(_getInputHeight); -var _isInclusivelyAfterDay = __webpack_require__(84); +var _isInclusivelyAfterDay = __webpack_require__(94); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _disableScroll2 = __webpack_require__(158); +var _disableScroll2 = __webpack_require__(178); var _disableScroll3 = _interopRequireDefault(_disableScroll2); -var _DateRangePickerInputController = __webpack_require__(159); +var _DateRangePickerInputController = __webpack_require__(179); var _DateRangePickerInputController2 = _interopRequireDefault(_DateRangePickerInputController); -var _DayPickerRangeController = __webpack_require__(168); +var _DayPickerRangeController = __webpack_require__(188); var _DayPickerRangeController2 = _interopRequireDefault(_DayPickerRangeController); -var _CloseButton = __webpack_require__(86); +var _CloseButton = __webpack_require__(96); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -20251,7 +20580,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(DateRangePicker); /***/ }), -/* 242 */ +/* 303 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -20263,22 +20592,26 @@ Object.defineProperty(exports, "__esModule", { var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(304); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _consolidatedEvents = __webpack_require__(93); +var _consolidatedEvents = __webpack_require__(103); -var _object = __webpack_require__(113); +var _object = __webpack_require__(307); var _object2 = _interopRequireDefault(_object); +var _document = __webpack_require__(311); + +var _document2 = _interopRequireDefault(_document); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -20384,7 +20717,7 @@ var OutsideClickHandler = function (_React$Component) { var useCapture = this.props.useCapture; - var isDescendantOfRoot = this.childNode && this.childNode.contains(e.target); + var isDescendantOfRoot = this.childNode && (0, _document2['default'])(this.childNode, e.target); if (!isDescendantOfRoot) { this.removeMouseUp = (0, _consolidatedEvents.addEventListener)(document, 'mouseup', this.onMouseUp, { capture: useCapture }); } @@ -20404,7 +20737,7 @@ var OutsideClickHandler = function (_React$Component) { var onOutsideClick = this.props.onOutsideClick; - var isDescendantOfRoot = this.childNode && this.childNode.contains(e.target); + var isDescendantOfRoot = this.childNode && (0, _document2['default'])(this.childNode, e.target); if (this.removeMouseUp) this.removeMouseUp(); this.removeMouseUp = null; @@ -20476,24 +20809,312 @@ OutsideClickHandler.propTypes = propTypes; OutsideClickHandler.defaultProps = defaultProps; /***/ }), -/* 243 */ +/* 304 */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - -module.exports = __webpack_require__(130); +if (false) { var throwOnDirectAccess, ReactIs; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(305)(); +} /***/ }), -/* 244 */ +/* 305 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = __webpack_require__(306); + +function emptyFunction() {} +function emptyFunctionWithReset() {} +emptyFunctionWithReset.resetWarningCache = emptyFunction; + +module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = 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' + ); + err.name = 'Invariant Violation'; + throw err; + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; + + +/***/ }), +/* 306 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), +/* 307 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var getPolyfill = __webpack_require__(151); -var define = __webpack_require__(66); +var define = __webpack_require__(163); + +var implementation = __webpack_require__(165); +var getPolyfill = __webpack_require__(167); +var shim = __webpack_require__(310); + +var polyfill = getPolyfill(); + +define(polyfill, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = polyfill; + + +/***/ }), +/* 308 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var slice = Array.prototype.slice; +var isArgs = __webpack_require__(164); + +var origKeys = Object.keys; +var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(309); + +var originalKeys = Object.keys; + +keysShim.shim = function shimObjectKeys() { + if (Object.keys) { + var keysWorksWithArguments = (function () { + // Safari 5.0 bug + var args = Object.keys(arguments); + return args && args.length === arguments.length; + }(1, 2)); + if (!keysWorksWithArguments) { + Object.keys = function keys(object) { // eslint-disable-line func-name-matching + if (isArgs(object)) { + return originalKeys(slice.call(object)); + } + return originalKeys(object); + }; + } + } else { + Object.keys = keysShim; + } + return Object.keys || keysShim; +}; + +module.exports = keysShim; + + +/***/ }), +/* 309 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var keysShim; +if (!Object.keys) { + // modified from https://github.com/es-shims/es5-shim + var has = Object.prototype.hasOwnProperty; + var toStr = Object.prototype.toString; + var isArgs = __webpack_require__(164); // eslint-disable-line global-require + var isEnumerable = Object.prototype.propertyIsEnumerable; + var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'); + var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'); + var dontEnums = [ + 'toString', + 'toLocaleString', + 'valueOf', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'constructor' + ]; + var equalsConstructorPrototype = function (o) { + var ctor = o.constructor; + return ctor && ctor.prototype === o; + }; + var excludedKeys = { + $applicationCache: true, + $console: true, + $external: true, + $frame: true, + $frameElement: true, + $frames: true, + $innerHeight: true, + $innerWidth: true, + $outerHeight: true, + $outerWidth: true, + $pageXOffset: true, + $pageYOffset: true, + $parent: true, + $scrollLeft: true, + $scrollTop: true, + $scrollX: true, + $scrollY: true, + $self: true, + $webkitIndexedDB: true, + $webkitStorageInfo: true, + $window: true + }; + var hasAutomationEqualityBug = (function () { + /* global window */ + if (typeof window === 'undefined') { return false; } + for (var k in window) { + try { + if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') { + try { + equalsConstructorPrototype(window[k]); + } catch (e) { + return true; + } + } + } catch (e) { + return true; + } + } + return false; + }()); + var equalsConstructorPrototypeIfNotBuggy = function (o) { + /* global window */ + if (typeof window === 'undefined' || !hasAutomationEqualityBug) { + return equalsConstructorPrototype(o); + } + try { + return equalsConstructorPrototype(o); + } catch (e) { + return false; + } + }; + + keysShim = function keys(object) { + var isObject = object !== null && typeof object === 'object'; + var isFunction = toStr.call(object) === '[object Function]'; + var isArguments = isArgs(object); + var isString = isObject && toStr.call(object) === '[object String]'; + var theKeys = []; + + if (!isObject && !isFunction && !isArguments) { + throw new TypeError('Object.keys called on a non-object'); + } + + var skipProto = hasProtoEnumBug && isFunction; + if (isString && object.length > 0 && !has.call(object, 0)) { + for (var i = 0; i < object.length; ++i) { + theKeys.push(String(i)); + } + } + + if (isArguments && object.length > 0) { + for (var j = 0; j < object.length; ++j) { + theKeys.push(String(j)); + } + } else { + for (var name in object) { + if (!(skipProto && name === 'prototype') && has.call(object, name)) { + theKeys.push(String(name)); + } + } + } + + if (hasDontEnumBug) { + var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object); + + for (var k = 0; k < dontEnums.length; ++k) { + if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) { + theKeys.push(dontEnums[k]); + } + } + } + return theKeys; + }; +} +module.exports = keysShim; + + +/***/ }), +/* 310 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var getPolyfill = __webpack_require__(167); +var define = __webpack_require__(163); module.exports = function shimValues() { var polyfill = getPolyfill(); @@ -20507,12 +21128,235 @@ module.exports = function shimValues() { /***/ }), -/* 245 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(115), - now = __webpack_require__(246), - toNumber = __webpack_require__(248); +"use strict"; + + +var define = __webpack_require__(168); + +var implementation = __webpack_require__(170); +var getPolyfill = __webpack_require__(171); +var polyfill = getPolyfill(); +var shim = __webpack_require__(314); + +var boundContains = function contains(node, other) { + return polyfill.apply(node, [other]); +}; + +define(boundContains, { + getPolyfill: getPolyfill, + implementation: implementation, + shim: shim +}); + +module.exports = boundContains; + + +/***/ }), +/* 312 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var slice = Array.prototype.slice; +var isArgs = __webpack_require__(169); + +var origKeys = Object.keys; +var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(313); + +var originalKeys = Object.keys; + +keysShim.shim = function shimObjectKeys() { + if (Object.keys) { + var keysWorksWithArguments = (function () { + // Safari 5.0 bug + var args = Object.keys(arguments); + return args && args.length === arguments.length; + }(1, 2)); + if (!keysWorksWithArguments) { + Object.keys = function keys(object) { // eslint-disable-line func-name-matching + if (isArgs(object)) { + return originalKeys(slice.call(object)); + } + return originalKeys(object); + }; + } + } else { + Object.keys = keysShim; + } + return Object.keys || keysShim; +}; + +module.exports = keysShim; + + +/***/ }), +/* 313 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var keysShim; +if (!Object.keys) { + // modified from https://github.com/es-shims/es5-shim + var has = Object.prototype.hasOwnProperty; + var toStr = Object.prototype.toString; + var isArgs = __webpack_require__(169); // eslint-disable-line global-require + var isEnumerable = Object.prototype.propertyIsEnumerable; + var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'); + var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'); + var dontEnums = [ + 'toString', + 'toLocaleString', + 'valueOf', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'constructor' + ]; + var equalsConstructorPrototype = function (o) { + var ctor = o.constructor; + return ctor && ctor.prototype === o; + }; + var excludedKeys = { + $applicationCache: true, + $console: true, + $external: true, + $frame: true, + $frameElement: true, + $frames: true, + $innerHeight: true, + $innerWidth: true, + $outerHeight: true, + $outerWidth: true, + $pageXOffset: true, + $pageYOffset: true, + $parent: true, + $scrollLeft: true, + $scrollTop: true, + $scrollX: true, + $scrollY: true, + $self: true, + $webkitIndexedDB: true, + $webkitStorageInfo: true, + $window: true + }; + var hasAutomationEqualityBug = (function () { + /* global window */ + if (typeof window === 'undefined') { return false; } + for (var k in window) { + try { + if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') { + try { + equalsConstructorPrototype(window[k]); + } catch (e) { + return true; + } + } + } catch (e) { + return true; + } + } + return false; + }()); + var equalsConstructorPrototypeIfNotBuggy = function (o) { + /* global window */ + if (typeof window === 'undefined' || !hasAutomationEqualityBug) { + return equalsConstructorPrototype(o); + } + try { + return equalsConstructorPrototype(o); + } catch (e) { + return false; + } + }; + + keysShim = function keys(object) { + var isObject = object !== null && typeof object === 'object'; + var isFunction = toStr.call(object) === '[object Function]'; + var isArguments = isArgs(object); + var isString = isObject && toStr.call(object) === '[object String]'; + var theKeys = []; + + if (!isObject && !isFunction && !isArguments) { + throw new TypeError('Object.keys called on a non-object'); + } + + var skipProto = hasProtoEnumBug && isFunction; + if (isString && object.length > 0 && !has.call(object, 0)) { + for (var i = 0; i < object.length; ++i) { + theKeys.push(String(i)); + } + } + + if (isArguments && object.length > 0) { + for (var j = 0; j < object.length; ++j) { + theKeys.push(String(j)); + } + } else { + for (var name in object) { + if (!(skipProto && name === 'prototype') && has.call(object, name)) { + theKeys.push(String(name)); + } + } + } + + if (hasDontEnumBug) { + var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object); + + for (var k = 0; k < dontEnums.length; ++k) { + if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) { + theKeys.push(dontEnums[k]); + } + } + } + return theKeys; + }; +} +module.exports = keysShim; + + +/***/ }), +/* 314 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var define = __webpack_require__(168); +var getPolyfill = __webpack_require__(171); + +module.exports = function shimContains() { + var polyfill = getPolyfill(); + if (typeof document !== 'undefined') { + define( + document, + { contains: polyfill }, + { contains: function () { return document.contains !== polyfill; } } + ); + if (typeof Element !== 'undefined') { + define( + Element.prototype, + { contains: polyfill }, + { contains: function () { return Element.prototype.contains !== polyfill; } } + ); + } + } + return polyfill; +}; + + +/***/ }), +/* 315 */ +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__(128), + now = __webpack_require__(316), + toNumber = __webpack_require__(318); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -20703,10 +21547,10 @@ module.exports = debounce; /***/ }), -/* 246 */ +/* 316 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(163); +var root = __webpack_require__(183); /** * Gets the timestamp of the number of milliseconds that have elapsed since @@ -20732,7 +21576,7 @@ module.exports = now; /***/ }), -/* 247 */ +/* 317 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ @@ -20740,14 +21584,14 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object module.exports = freeGlobal; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(59))) /***/ }), -/* 248 */ +/* 318 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(115), - isSymbol = __webpack_require__(249); +var isObject = __webpack_require__(128), + isSymbol = __webpack_require__(319); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; @@ -20815,11 +21659,11 @@ module.exports = toNumber; /***/ }), -/* 249 */ +/* 319 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(250), - isObjectLike = __webpack_require__(253); +var baseGetTag = __webpack_require__(320), + isObjectLike = __webpack_require__(323); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; @@ -20850,12 +21694,12 @@ module.exports = isSymbol; /***/ }), -/* 250 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(164), - getRawTag = __webpack_require__(251), - objectToString = __webpack_require__(252); +var Symbol = __webpack_require__(184), + getRawTag = __webpack_require__(321), + objectToString = __webpack_require__(322); /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -20884,10 +21728,10 @@ module.exports = baseGetTag; /***/ }), -/* 251 */ +/* 321 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(164); +var Symbol = __webpack_require__(184); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -20936,7 +21780,7 @@ module.exports = getRawTag; /***/ }), -/* 252 */ +/* 322 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -20964,7 +21808,7 @@ module.exports = objectToString; /***/ }), -/* 253 */ +/* 323 */ /***/ (function(module, exports) { /** @@ -20999,7 +21843,28 @@ module.exports = isObjectLike; /***/ }), -/* 254 */ +/* 324 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var getPolyfill = __webpack_require__(191); +var define = __webpack_require__(73); + +module.exports = function shimValues() { + var polyfill = getPolyfill(); + define(Object, { values: polyfill }, { + values: function testValues() { + return Object.values !== polyfill; + } + }); + return polyfill; +}; + + +/***/ }), +/* 325 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21021,7 +21886,7 @@ function getSelectedDateOffset(fn, day) { } /***/ }), -/* 255 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21033,49 +21898,49 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _LeftArrow = __webpack_require__(166); +var _LeftArrow = __webpack_require__(186); var _LeftArrow2 = _interopRequireDefault(_LeftArrow); -var _RightArrow = __webpack_require__(165); +var _RightArrow = __webpack_require__(185); var _RightArrow2 = _interopRequireDefault(_RightArrow); -var _ChevronUp = __webpack_require__(256); +var _ChevronUp = __webpack_require__(327); var _ChevronUp2 = _interopRequireDefault(_ChevronUp); -var _ChevronDown = __webpack_require__(257); +var _ChevronDown = __webpack_require__(328); var _ChevronDown2 = _interopRequireDefault(_ChevronDown); -var _ScrollableOrientationShape = __webpack_require__(74); +var _ScrollableOrientationShape = __webpack_require__(81); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -21330,7 +22195,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPickerNavigation); /***/ }), -/* 256 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21340,7 +22205,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); @@ -21366,7 +22231,7 @@ ChevronUp.defaultProps = { exports['default'] = ChevronUp; /***/ }), -/* 257 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21376,7 +22241,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); @@ -21402,7 +22267,7 @@ ChevronDown.defaultProps = { exports['default'] = ChevronDown; /***/ }), -/* 258 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21417,33 +22282,33 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _getPhrasePropTypes = __webpack_require__(47); +var _getPhrasePropTypes = __webpack_require__(51); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _KeyboardShortcutRow = __webpack_require__(259); +var _KeyboardShortcutRow = __webpack_require__(330); var _KeyboardShortcutRow2 = _interopRequireDefault(_KeyboardShortcutRow); -var _CloseButton = __webpack_require__(86); +var _CloseButton = __webpack_require__(96); var _CloseButton2 = _interopRequireDefault(_CloseButton); @@ -21911,7 +22776,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref3) { })(DayPickerKeyboardShortcuts); /***/ }), -/* 259 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -21923,21 +22788,21 @@ Object.defineProperty(exports, "__esModule", { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(30); +var _propTypes = __webpack_require__(31); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -22026,7 +22891,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(KeyboardShortcutRow); /***/ }), -/* 260 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22037,7 +22902,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getNumberOfCalendarMonthWeeks; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); @@ -22057,7 +22922,7 @@ function getNumberOfCalendarMonthWeeks(month) { } /***/ }), -/* 261 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22072,7 +22937,7 @@ function getActiveElement() { } /***/ }), -/* 262 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22087,81 +22952,81 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -var _object = __webpack_require__(42); +var _object = __webpack_require__(46); var _object2 = _interopRequireDefault(_object); -var _react = __webpack_require__(26); +var _react = __webpack_require__(27); var _react2 = _interopRequireDefault(_react); -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _reactWithStyles = __webpack_require__(50); +var _reactWithStyles = __webpack_require__(56); -var _reactPortal = __webpack_require__(182); +var _reactPortal = __webpack_require__(203); -var _airbnbPropTypes = __webpack_require__(39); +var _airbnbPropTypes = __webpack_require__(43); -var _consolidatedEvents = __webpack_require__(93); +var _consolidatedEvents = __webpack_require__(103); -var _isTouchDevice = __webpack_require__(75); +var _isTouchDevice = __webpack_require__(82); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(112); +var _reactOutsideClickHandler = __webpack_require__(126); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _SingleDatePickerShape = __webpack_require__(172); +var _SingleDatePickerShape = __webpack_require__(195); var _SingleDatePickerShape2 = _interopRequireDefault(_SingleDatePickerShape); -var _defaultPhrases = __webpack_require__(43); +var _defaultPhrases = __webpack_require__(47); -var _toMomentObject = __webpack_require__(73); +var _toMomentObject = __webpack_require__(80); var _toMomentObject2 = _interopRequireDefault(_toMomentObject); -var _toLocalizedDateString = __webpack_require__(116); +var _toLocalizedDateString = __webpack_require__(129); var _toLocalizedDateString2 = _interopRequireDefault(_toLocalizedDateString); -var _getResponsiveContainerStyles = __webpack_require__(156); +var _getResponsiveContainerStyles = __webpack_require__(176); var _getResponsiveContainerStyles2 = _interopRequireDefault(_getResponsiveContainerStyles); -var _getDetachedContainerStyles = __webpack_require__(157); +var _getDetachedContainerStyles = __webpack_require__(177); var _getDetachedContainerStyles2 = _interopRequireDefault(_getDetachedContainerStyles); -var _getInputHeight = __webpack_require__(114); +var _getInputHeight = __webpack_require__(127); var _getInputHeight2 = _interopRequireDefault(_getInputHeight); -var _isInclusivelyAfterDay = __webpack_require__(84); +var _isInclusivelyAfterDay = __webpack_require__(94); var _isInclusivelyAfterDay2 = _interopRequireDefault(_isInclusivelyAfterDay); -var _disableScroll2 = __webpack_require__(158); +var _disableScroll2 = __webpack_require__(178); var _disableScroll3 = _interopRequireDefault(_disableScroll2); -var _SingleDatePickerInput = __webpack_require__(173); +var _SingleDatePickerInput = __webpack_require__(196); var _SingleDatePickerInput2 = _interopRequireDefault(_SingleDatePickerInput); -var _DayPickerSingleDateController = __webpack_require__(171); +var _DayPickerSingleDateController = __webpack_require__(194); var _DayPickerSingleDateController2 = _interopRequireDefault(_DayPickerSingleDateController); -var _CloseButton = __webpack_require__(86); +var _CloseButton = __webpack_require__(96); var _CloseButton2 = _interopRequireDefault(_CloseButton); -var _constants = __webpack_require__(36); +var _constants = __webpack_require__(39); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -22947,7 +23812,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(SingleDatePicker); /***/ }), -/* 263 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -22958,11 +23823,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = isInclusivelyBeforeDay; -var _moment = __webpack_require__(27); +var _moment = __webpack_require__(29); var _moment2 = _interopRequireDefault(_moment); -var _isAfterDay = __webpack_require__(96); +var _isAfterDay = __webpack_require__(106); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); @@ -22974,55 +23839,38 @@ function isInclusivelyBeforeDay(a, b) { } /***/ }), -/* 264 */, -/* 265 */, -/* 266 */, -/* 267 */, -/* 268 */, -/* 269 */, -/* 270 */, -/* 271 */, -/* 272 */, -/* 273 */, -/* 274 */, -/* 275 */, -/* 276 */, -/* 277 */, -/* 278 */, -/* 279 */, -/* 280 */, -/* 281 */, -/* 282 */, -/* 283 */, -/* 284 */, -/* 285 */, -/* 286 */, -/* 287 */, -/* 288 */, -/* 289 */, -/* 290 */, -/* 291 */, -/* 292 */, -/* 293 */, -/* 294 */, -/* 295 */, -/* 296 */, -/* 297 */, -/* 298 */, -/* 299 */, -/* 300 */, -/* 301 */, -/* 302 */, -/* 303 */, -/* 304 */, -/* 305 */ +/* 335 */, +/* 336 */, +/* 337 */, +/* 338 */, +/* 339 */, +/* 340 */, +/* 341 */, +/* 342 */, +/* 343 */, +/* 344 */, +/* 345 */, +/* 346 */, +/* 347 */, +/* 348 */, +/* 349 */, +/* 350 */, +/* 351 */, +/* 352 */, +/* 353 */, +/* 354 */, +/* 355 */, +/* 356 */, +/* 357 */, +/* 358 */, +/* 359 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); @@ -23068,7 +23916,7 @@ var svg_SVG = function SVG(props) { var defineProperty = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(25); +var slicedToArray = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/classnames/index.js var classnames = __webpack_require__(16); @@ -23139,25 +23987,25 @@ var inherits = __webpack_require__(13); var assertThisInitialized = __webpack_require__(3); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(17); +var external_this_wp_keycodes_ = __webpack_require__(18); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); +var external_this_wp_compose_ = __webpack_require__(6); // EXTERNAL MODULE: external {"this":["wp","richText"]} var external_this_wp_richText_ = __webpack_require__(20); // EXTERNAL MODULE: external {"this":["wp","dom"]} -var external_this_wp_dom_ = __webpack_require__(24); +var external_this_wp_dom_ = __webpack_require__(25); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(19); @@ -23383,7 +24231,7 @@ function Button(props, ref) { /* harmony default export */ var build_module_button = (Object(external_this_wp_element_["forwardRef"])(Button)); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(40); +var external_this_wp_isShallowEqual_ = __webpack_require__(42); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/utils.js @@ -23560,6 +24408,99 @@ function utils_computePopoverPosition(anchorRect, contentSize) { }, xAxisPosition, yAxisPosition); } +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/context.js + + + + + + + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +var _createContext = Object(external_this_wp_element_["createContext"])({ + focusHistory: [] +}), + Provider = _createContext.Provider, + Consumer = _createContext.Consumer; + +Provider.displayName = 'FocusReturnProvider'; +Consumer.displayName = 'FocusReturnConsumer'; +/** + * The maximum history length to capture for the focus stack. When exceeded, + * items should be shifted from the stack for each consecutive push. + * + * @type {number} + */ + +var MAX_STACK_LENGTH = 100; + +var context_FocusReturnProvider = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(FocusReturnProvider, _Component); + + function FocusReturnProvider() { + var _this; + + Object(classCallCheck["a" /* default */])(this, FocusReturnProvider); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FocusReturnProvider).apply(this, arguments)); + _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + focusHistory: [] + }; + return _this; + } + + Object(createClass["a" /* default */])(FocusReturnProvider, [{ + key: "onFocus", + value: function onFocus(event) { + var focusHistory = this.state.focusHistory; // Push the focused element to the history stack, keeping only unique + // members but preferring the _last_ occurrence of any duplicates. + // Lodash's `uniq` behavior favors the first occurrence, so the array + // is temporarily reversed prior to it being called upon. Uniqueness + // helps avoid situations where, such as in a constrained tabbing area, + // the user changes focus enough within a transient element that the + // stack may otherwise only consist of members pending destruction, at + // which point focus might have been lost. + + var nextFocusHistory = Object(external_lodash_["uniq"])([].concat(Object(toConsumableArray["a" /* default */])(focusHistory), [event.target]).slice(-1 * MAX_STACK_LENGTH).reverse()).reverse(); + this.setState({ + focusHistory: nextFocusHistory + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + className = _this$props.className; + return Object(external_this_wp_element_["createElement"])(Provider, { + value: this.state + }, Object(external_this_wp_element_["createElement"])("div", { + onFocus: this.onFocus, + className: className + }, children)); + } + }]); + + return FocusReturnProvider; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var with_focus_return_context = (context_FocusReturnProvider); + + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js @@ -23568,63 +24509,116 @@ function utils_computePopoverPosition(anchorRect, contentSize) { + + +/** + * External dependencies + */ + /** * WordPress dependencies */ + +/** + * Internal dependencies + */ + + +/** + * Returns true if the given object is component-like. An object is component- + * like if it is an instance of wp.element.Component, or is a function. + * + * @param {*} object Object to test. + * + * @return {boolean} Whether object is component-like. + */ + +function isComponentLike(object) { + return object instanceof external_this_wp_element_["Component"] || typeof object === 'function'; +} /** * Higher Order Component used to be used to wrap disposable elements like * sidebars, modals, dropdowns. When mounting the wrapped component, we track a * reference to the current active element so we know where to restore focus * when the component is unmounted. * - * @param {WPElement} WrappedComponent The disposable component. + * @param {(WPComponent|Object)} options The component to be enhanced with + * focus return behavior, or an object + * describing the component and the + * focus return characteristics. * * @return {Component} Component with the focus restauration behaviour. */ -/* harmony default export */ var with_focus_return = (Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return ( + +function withFocusReturn(options) { + // Normalize as overloaded form `withFocusReturn( options )( Component )` + // or as `withFocusReturn( Component )`. + if (isComponentLike(options)) { + var WrappedComponent = options; + return withFocusReturn({})(WrappedComponent); + } + + var _options$onFocusRetur = options.onFocusReturn, + onFocusReturn = _options$onFocusRetur === void 0 ? external_lodash_["stubTrue"] : _options$onFocusRetur; + return function (WrappedComponent) { + var FocusReturn = /*#__PURE__*/ function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); + Object(inherits["a" /* default */])(FocusReturn, _Component); - function _class() { + function FocusReturn() { var _this; - Object(classCallCheck["a" /* default */])(this, _class); + Object(classCallCheck["a" /* default */])(this, FocusReturn); - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).apply(this, arguments)); - - _this.setIsFocusedTrue = function () { - return _this.isFocused = true; - }; + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FocusReturn).apply(this, arguments)); + _this.ownFocusedElements = new Set(); + _this.activeElementOnMount = document.activeElement; _this.setIsFocusedFalse = function () { return _this.isFocused = false; }; - _this.activeElementOnMount = document.activeElement; + _this.setIsFocusedTrue = function (event) { + _this.ownFocusedElements.add(event.target); + + _this.isFocused = true; + }; + return _this; } - Object(createClass["a" /* default */])(_class, [{ + Object(createClass["a" /* default */])(FocusReturn, [{ key: "componentWillUnmount", value: function componentWillUnmount() { var activeElementOnMount = this.activeElementOnMount, - isFocused = this.isFocused; + isFocused = this.isFocused, + ownFocusedElements = this.ownFocusedElements; - if (!activeElementOnMount) { + if (!isFocused) { + return; + } // Defer to the component's own explicit focus return behavior, + // if specified. The function should return `false` to prevent + // the default behavior otherwise occurring here. This allows + // for support that the `onFocusReturn` decides to allow the + // default behavior to occur under some conditions. + + + if (onFocusReturn() === false) { return; } - var _document = document, - body = _document.body, - activeElement = _document.activeElement; + var stack = [].concat(Object(toConsumableArray["a" /* default */])(external_lodash_["without"].apply(void 0, [this.props.focusHistory].concat(Object(toConsumableArray["a" /* default */])(ownFocusedElements)))), [activeElementOnMount]); + var candidate; - if (isFocused || null === activeElement || body === activeElement) { - activeElementOnMount.focus(); + while (candidate = stack.pop()) { + if (document.body.contains(candidate)) { + candidate.focus(); + return; + } } } }, { @@ -23637,10 +24631,19 @@ function utils_computePopoverPosition(anchorRect, contentSize) { } }]); - return _class; - }(external_this_wp_element_["Component"]) - ); -}, 'withFocusReturn')); + return FocusReturn; + }(external_this_wp_element_["Component"]); + + return function (props) { + return Object(external_this_wp_element_["createElement"])(Consumer, null, function (context) { + return Object(external_this_wp_element_["createElement"])(FocusReturn, Object(esm_extends["a" /* default */])({}, props, context)); + }); + }; + }; +} + +/* harmony default export */ var with_focus_return = (Object(external_this_wp_compose_["createHigherOrderComponent"])(withFocusReturn, 'withFocusReturn')); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js @@ -23729,7 +24732,7 @@ var withConstrainedTabbing = Object(external_this_wp_compose_["createHigherOrder /* harmony default export */ var with_constrained_tabbing = (withConstrainedTabbing); // EXTERNAL MODULE: ./node_modules/react-click-outside/dist/index.js -var dist = __webpack_require__(98); +var dist = __webpack_require__(108); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/detect-outside.js @@ -25495,7 +26498,7 @@ function (_Component) { -var _createContext = Object(external_this_wp_element_["createContext"])({ +var context_createContext = Object(external_this_wp_element_["createContext"])({ registerSlot: function registerSlot() {}, unregisterSlot: function unregisterSlot() {}, registerFill: function registerFill() {}, @@ -25503,8 +26506,8 @@ var _createContext = Object(external_this_wp_element_["createContext"])({ getSlot: function getSlot() {}, getFills: function getFills() {} }), - Provider = _createContext.Provider, - Consumer = _createContext.Consumer; + context_Provider = context_createContext.Provider, + context_Consumer = context_createContext.Consumer; var context_SlotFillProvider = /*#__PURE__*/ @@ -25621,7 +26624,7 @@ function (_Component) { }, { key: "render", value: function render() { - return Object(external_this_wp_element_["createElement"])(Provider, { + return Object(external_this_wp_element_["createElement"])(context_Provider, { value: this.state }, this.props.children); } @@ -25746,7 +26749,7 @@ function (_Component) { }(external_this_wp_element_["Component"]); var slot_Slot = function Slot(props) { - return Object(external_this_wp_element_["createElement"])(Consumer, null, function (_ref) { + return Object(external_this_wp_element_["createElement"])(context_Consumer, null, function (_ref) { var registerSlot = _ref.registerSlot, unregisterSlot = _ref.unregisterSlot, getFills = _ref.getFills; @@ -25870,7 +26873,7 @@ function (_Component) { }(external_this_wp_element_["Component"]); var fill_Fill = function Fill(props) { - return Object(external_this_wp_element_["createElement"])(Consumer, null, function (_ref) { + return Object(external_this_wp_element_["createElement"])(context_Consumer, null, function (_ref) { var getSlot = _ref.getSlot, registerFill = _ref.registerFill, unregisterFill = _ref.unregisterFill; @@ -26298,7 +27301,7 @@ function (_Component) { content = Object(external_this_wp_element_["createElement"])(FocusManaged, null, content); } - return Object(external_this_wp_element_["createElement"])(Consumer, null, function (_ref3) { + return Object(external_this_wp_element_["createElement"])(context_Consumer, null, function (_ref3) { var getSlot = _ref3.getSlot; // In case there is no slot context in which to render, @@ -26335,7 +27338,7 @@ PopoverContainer.Slot = function () { /* harmony default export */ var popover = (PopoverContainer); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(44); +var external_this_wp_a11y_ = __webpack_require__(48); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js @@ -27120,7 +28123,7 @@ function CheckboxControl(_ref) { /* harmony default export */ var checkbox_control = (Object(external_this_wp_compose_["withInstanceId"])(CheckboxControl)); // EXTERNAL MODULE: ./node_modules/clipboard/dist/clipboard.js -var clipboard = __webpack_require__(186); +var clipboard = __webpack_require__(221); var clipboard_default = /*#__PURE__*/__webpack_require__.n(clipboard); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/clipboard-button/index.js @@ -27663,11 +28666,11 @@ function calculateSaturationChange(e, props, container) { } // EXTERNAL MODULE: ./node_modules/mousetrap/mousetrap.js -var mousetrap = __webpack_require__(187); +var mousetrap = __webpack_require__(222); var mousetrap_default = /*#__PURE__*/__webpack_require__.n(mousetrap); // EXTERNAL MODULE: ./node_modules/mousetrap/plugins/global-bind/mousetrap-global-bind.js -var mousetrap_global_bind = __webpack_require__(198); +var mousetrap_global_bind = __webpack_require__(259); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/keyboard-shortcuts/index.js @@ -29118,14 +30121,14 @@ function ColorPalette(_ref) { } // EXTERNAL MODULE: ./node_modules/react-dates/initialize.js -var initialize = __webpack_require__(199); +var initialize = __webpack_require__(260); // EXTERNAL MODULE: external "moment" -var external_moment_ = __webpack_require__(27); +var external_moment_ = __webpack_require__(29); var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_); // EXTERNAL MODULE: ./node_modules/react-dates/index.js -var react_dates = __webpack_require__(188); +var react_dates = __webpack_require__(223); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date.js @@ -30836,7 +31839,8 @@ function DropdownMenu(_ref) { label = _ref.label, menuLabel = _ref.menuLabel, controls = _ref.controls, - className = _ref.className; + className = _ref.className, + position = _ref.position; if (!controls || !controls.length) { return null; @@ -30852,6 +31856,7 @@ function DropdownMenu(_ref) { return Object(external_this_wp_element_["createElement"])(dropdown, { className: classnames_default()('components-dropdown-menu', className), contentClassName: "components-dropdown-menu__popover", + position: position, renderToggle: function renderToggle(_ref2) { var isOpen = _ref2.isOpen, onToggle = _ref2.onToggle; @@ -30949,7 +31954,7 @@ function ExternalLink(_ref, ref) { target: "_blank", rel: rel, ref: ref - }), children, Object(external_this_wp_element_["createElement"])("span", { + }), " ", children, Object(external_this_wp_element_["createElement"])("span", { className: "screen-reader-text" }, /* translators: accessibility text */ @@ -31428,11 +32433,10 @@ function RangeControl(_ref) { }; var onChangeValue = function onChangeValue(event) { - var newValue = event.target.value; - var newNumericValue = parseInt(newValue, 10); // If the input value is invalid temporarily save it to the state, + var newValue = event.target.value; // If the input value is invalid temporarily save it to the state, // without calling on change. - if (isNaN(newNumericValue) || min !== undefined && newNumericValue < min || max !== undefined && newNumericValue > max) { + if (!event.target.checkValidity()) { setState({ currentInput: newValue }); @@ -31442,10 +32446,10 @@ function RangeControl(_ref) { resetCurrentInput(); - onChange(newNumericValue); + onChange(newValue === '' ? undefined : parseFloat(newValue)); }; - var initialSliderValue = Object(external_lodash_["isFinite"])(value) ? currentInputValue : initialPosition || ''; + var initialSliderValue = Object(external_lodash_["isFinite"])(currentInputValue) ? currentInputValue : initialPosition || ''; return Object(external_this_wp_element_["createElement"])(base_control, { label: label, id: id, @@ -31760,7 +32764,7 @@ function FormToggle(_ref) { /* harmony default export */ var form_toggle = (FormToggle); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js -var esm_typeof = __webpack_require__(29); +var esm_typeof = __webpack_require__(32); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token.js @@ -31930,7 +32934,7 @@ function (_Component) { /* harmony default export */ var token_input = (token_input_TokenInput); // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var lib = __webpack_require__(61); +var lib = __webpack_require__(67); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js @@ -33901,7 +34905,7 @@ function (_Component) { var children = this.props.children; var style = this.state.style; return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-format-toolbar__selection-position", + className: "editor-format-toolbar__selection-position block-editor-format-toolbar__selection-position", style: style }, children); } @@ -34101,7 +35105,8 @@ function QueryControls(_ref) { value: numberOfItems, onChange: onNumberOfItemsChange, min: minItems, - max: maxItems + max: maxItems, + required: true })]; } @@ -34166,7 +35171,7 @@ function RadioControl(_ref) { /* harmony default export */ var radio_control = (Object(external_this_wp_compose_["withInstanceId"])(RadioControl)); // EXTERNAL MODULE: external "React" -var external_React_ = __webpack_require__(26); +var external_React_ = __webpack_require__(27); // CONCATENATED MODULE: ./node_modules/re-resizable/lib/index.js @@ -35267,11 +36272,11 @@ function Spinner() { } // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(31); +var external_this_wp_apiFetch_ = __webpack_require__(33); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(22); +var external_this_wp_url_ = __webpack_require__(23); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/server-side-render/index.js @@ -35615,6 +36620,7 @@ function TextareaControl(_ref) { * External dependencies */ + /** * WordPress dependencies */ @@ -35657,7 +36663,8 @@ function (_Component) { label = _this$props.label, checked = _this$props.checked, help = _this$props.help, - instanceId = _this$props.instanceId; + instanceId = _this$props.instanceId, + className = _this$props.className; var id = "inspector-toggle-control-".concat(instanceId); var describedBy, helpLabel; @@ -35669,7 +36676,7 @@ function (_Component) { return Object(external_this_wp_element_["createElement"])(base_control, { id: id, help: helpLabel, - className: "components-toggle-control" + className: classnames_default()('components-toggle-control', className) }, Object(external_this_wp_element_["createElement"])(form_toggle, { id: id, checked: checked, @@ -36060,7 +37067,7 @@ function Toolbar(_ref) { }); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(23); +var external_this_wp_hooks_ = __webpack_require__(24); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js @@ -36197,7 +37204,7 @@ function withFilters(hookName) { } // EXTERNAL MODULE: ./node_modules/uuid/v4.js -var v4 = __webpack_require__(59); +var v4 = __webpack_require__(65); var v4_default = /*#__PURE__*/__webpack_require__.n(v4); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js @@ -36423,6 +37430,7 @@ var v4_default = /*#__PURE__*/__webpack_require__.n(v4); /* concated harmony reexport withFilters */__webpack_require__.d(__webpack_exports__, "withFilters", function() { return withFilters; }); /* concated harmony reexport withFocusOutside */__webpack_require__.d(__webpack_exports__, "withFocusOutside", function() { return with_focus_outside; }); /* concated harmony reexport withFocusReturn */__webpack_require__.d(__webpack_exports__, "withFocusReturn", function() { return with_focus_return; }); +/* concated harmony reexport FocusReturnProvider */__webpack_require__.d(__webpack_exports__, "FocusReturnProvider", function() { return with_focus_return_context; }); /* concated harmony reexport withNotices */__webpack_require__.d(__webpack_exports__, "withNotices", function() { return with_notices; }); /* concated harmony reexport withSpokenMessages */__webpack_require__.d(__webpack_exports__, "withSpokenMessages", function() { return with_spoken_messages; }); // Components diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 86d1e34a83..6c42f87ec1 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -1,4 +1,4 @@ -this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=305)}([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.lodash}()},function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return o})},,,,function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n(15);function r(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",function(){return o})},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){"use strict";var o=n(34);var r=n(35);function a(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(o=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(r)throw a}}return n}(e,t)||Object(r.a)()}n.d(t,"a",function(){return a})},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.moment}()},,function(e,t,n){"use strict";function o(e){return(o="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(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=n(110)()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},,function(e,t,n){"use strict";function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},,,function(e,t,n){e.exports=n(229)},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},,function(e,t,n){"use strict";var o=n(66),r=n(142),a=n(143),i=n(225),c=a();o(c,{getPolyfill:a,implementation:r,shim:i}),e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="Interact with the calendar and add the check-in date for your trip.",r="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",c="Home and end keys",s="Escape key",l="Select the date in focus.",u="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",h="Return to the date input field.",f="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",p=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},b=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},v=function(e){return e.date},m=function(e){var t=e.date;return"Not available. "+String(t)},y=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:o,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:b,dateIsUnavailable:m,dateIsSelected:y};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:o,jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:b,dateIsUnavailable:m,dateIsSelected:y},t.DateRangePickerInputPhrases={focusStartDate:o,clearDates:"Clear Dates",keyboardNavigationInstructions:f},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:f},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,chooseAvailableStartDate:p,chooseAvailableEndDate:b,chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y},t.DayPickerKeyboardShortcutsPhrases={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h},t.DayPickerNavigationPhrases={jumpToPrevMonth:r,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y}},function(e,t){!function(){e.exports=this.wp.a11y}()},function(e,t,n){var o;!function(r){var a=/^\s+/,i=/\s+$/,c=0,s=r.round,l=r.min,u=r.max,d=r.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,o=null,c=null,s=null,d=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(E[e])e=E[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),a:A(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),a:A(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(f=e.r,p=e.g,b=e.b,t={r:255*I(f,255),g:255*I(p,255),b:255*I(b,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(o=R(e.s),c=R(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var o=r.floor(e),a=e-o,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),l=o%6;return{r:255*[n,c,i,i,s,n][l],g:255*[s,n,n,c,i,i][l],b:255*[i,i,s,n,n,c][l]}}(e.h,o,c),d=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(o=R(e.s),s=R(e.l),t=function(e,t,n){var o,r,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)o=r=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=i(s,c,e+1/3),r=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*o,g:255*r,b:255*a}}(e.h,o,s),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,b;return n=T(n),{ok:d,format:e.format||h,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function f(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var o,r,a=u(e,t,n),i=l(e,t,n),c=(a+i)/2;if(a==i)o=r=0;else{var s=a-i;switch(r=c>.5?s/(2-a-i):s/(a+i),a){case e:o=(t-n)/s+(t>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(h(o));return a}function P(e,t){t=t||6;for(var n=h(e).toHsv(),o=n.h,r=n.s,a=n.v,i=[],c=1/t;t--;)i.push(h({h:o,s:r,v:a})),a=(a+c)%1;return i}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),o=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),o=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var a=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16)),N(L(o))];if(r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=h(e);n="#"+v(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:R(e[o]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:d(),g:d(),b:d()})},h.mix=function(e,t,n){n=0===n?0:n||50;var o=h(e).toRgb(),r=h(t).toRgb(),a=n/100;return h({r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a})},h.readability=function(e,t){var n=h(e),o=h(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},h.isReadable=function(e,t,n){var o,r,a=h.readability(e,t);switch(r=!1,(o=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+o.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},h.mostReadable=function(e,t,n){var o,r,a,i,c=null,s=0;r=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;ls&&(s=o,c=h(t[l]));return h.isReadable(e,c,{level:a,size:i})||!r?c:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var E=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function x(e){return l(1,u(0,e))}function H(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function L(e){return r.round(255*parseFloat(e)).toString(16)}function A(e){return H(e)/255}var F,V,B,K=(V="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",B="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(o=function(){return h}.call(t,n,t,e))||(e.exports=o)}(Math)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(e,t){return(0,o.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,r.default.oneOfType([r.default.string,r.default.func,r.default.node])))},{})};var o=a(n(42)),r=a(n(30));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){!function(){e.exports=this.ReactDOM}()},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,i=void 0===n?"styles":n,u=t.themePropName,h=void 0===u?"theme":u,p=t.cssPropName,y=void 0===p?"css":p,g=t.flushBefore,O=void 0!==g&&g,k=t.pureComponent,_=void 0!==k&&k,D=void 0,M=void 0,w=void 0,S=void 0,j=function(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}(_);function C(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function P(t,n){var o=function(e){return e===l.DIRECTIONS.LTR?w:S}(t),r=t===l.DIRECTIONS.LTR?D:M,a=d.default.get();if(r&&o===a)return r;var i=t===l.DIRECTIONS.RTL;return i?(M=e?d.default.createRTL(e):b,S=a,r=M):(D=e?d.default.createLTR(e):b,w=a,r=D),r}function E(e,t){return{resolveMethod:C(e),styleDef:P(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function c(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e,n)),r=o.context[l.CHANNEL]?o.context[l.CHANNEL].getState():m;return o.state=E(r,t),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,n),r(c,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe(function(n){e.setState(E(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;O&&d.default.flush();var n=this.state,r=n.resolveMethod,c=n.styleDef;return a.default.createElement(e,o({},this.props,(f(t={},h,d.default.get()),f(t,i,c()),f(t,y,r),t)))}}()}]),c}(j);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,s.default)({},e.propTypes),delete n.propTypes[i],delete n.propTypes[h],delete n.propTypes[y]);e.defaultProps&&(n.defaultProps=(0,s.default)({},e.defaultProps));return(0,c.default)(n,e)}}()};var a=h(n(26)),i=h(n(30)),c=h(n(127)),s=h(n(230)),l=n(231),u=h(n(232)),d=h(n(140));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:i.default.object.isRequired,theme:i.default.object.isRequired,css:i.default.func.isRequired};var p={},b=function(){return p};var v=f({},l.CHANNEL,u.default),m=l.DIRECTIONS.LTR},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,function(e,t,n){var o=n(27),r=n(227),a=n(228);e.exports={momentObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isValidMoment(e)},"Moment"),momentString:a.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return r.isValidMoment(o(e))},"Moment"),momentDurationObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isDuration(e)},"Duration")}},,function(e,t,n){var o=n(79),r=n(80);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||o)();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||r(i)}},,function(e,t,n){"use strict";e.exports=n(119)},,,,,function(e,t,n){"use strict";var o=n(128),r=n(206),a="function"==typeof Symbol&&"symbol"==typeof Symbol(),i=Object.prototype.toString,c=Object.defineProperty&&function(){var e={};try{for(var t in Object.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),s=function(e,t,n,o){var r;t in e&&("function"!=typeof(r=o)||"[object Function]"!==i.call(r)||!o())||(c?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=o(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t))),r(i,function(o){s(e,o,t[o],n[o])})};l.supportsDescriptors=!!c,e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(30),a=(o=r)&&o.__esModule?o:{default:o},i=n(36);t.default=a.default.oneOf(i.WEEKDAYS)},,,function(e,t,n){"use strict";var o=n(207);e.exports=Function.prototype.bind||o},function(e,t,n){"use strict";var o=n(226);e.exports=function(e,t,n){return!o(e.props,t)||!o(e.state,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year()};var o,r=n(27),a=(o=r)&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t?[t,i.DISPLAY_FORMAT,i.ISO_FORMAT]:[i.DISPLAY_FORMAT,i.ISO_FORMAT],o=(0,a.default)(e,n,!0);return o.isValid()?o.hour(12):null};var o,r=n(27),a=(o=r)&&o.__esModule?o:{default:o},i=n(36)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(30),a=(o=r)&&o.__esModule?o:{default:o},i=n(36);t.default=a.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION,i.VERTICAL_SCROLLABLE])},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(30),a=(o=r)&&o.__esModule?o:{default:o},i=n(36);t.default=a.default.oneOf([i.OPEN_DOWN,i.OPEN_UP])},,,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 o=new Uint8Array(16);e.exports=function(){return n(o),o}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},function(e,t){for(var n=[],o=0;o<256;++o)n[o]=(o+256).toString(16).substr(1);e.exports=function(e,t){var o=t||0,r=n;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(30),a=(o=r)&&o.__esModule?o:{default:o},i=n(36);t.default=a.default.oneOf([i.ICON_BEFORE_POSITION,i.ICON_AFTER_POSITION])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(30),a=(o=r)&&o.__esModule?o:{default:o},i=n(36);t.default=a.default.oneOf([i.INFO_POSITION_TOP,i.INFO_POSITION_BOTTOM,i.INFO_POSITION_BEFORE,i.INFO_POSITION_AFTER])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!o.default.isMoment(e)||!o.default.isMoment(t)||(0,r.default)(e,t))};var o=a(n(27)),r=a(n(85));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),o=e.month(),r=t.year(),i=t.month(),c=n===r,s=o===i;return c&&s?e.date()2?n-2:0),r=2;r=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(n,["wrappedRef"]);return i.createElement(e,o({},a,{ref:function(e){t.__wrappedInstance=e,t.__domNode=c.findDOMNode(e),r&&r(e)}}))}}]),n}();return n.displayName="clickOutside("+t+")",a(n,e)}},,,,,,,,,function(e,t,n){"use strict";var o=Function.prototype.toString,r=/^\s*class\b/,a=function(e){try{var t=o.call(e);return r.test(t)}catch(e){return!1}},i=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)return function(e){try{return!a(e)&&(o.call(e),!0)}catch(e){return!1}}(e);if(a(e))return!1;var t=i.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){var o=n(70).call(Function.call,Object.prototype.hasOwnProperty),r=Object.assign;e.exports=function(e,t){if(r)return r(e,t);for(var n in t)o(t,n)&&(e[n]=t[n]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCalendarDay=void 0;var o=Object.assign||function(e){for(var t=1;t0?!0===i?o.scrollTop(t,g.top+O.top):!1===i?o.scrollTop(t,g.top+k.top):O.top<0?o.scrollTop(t,g.top+O.top):o.scrollTop(t,g.top+k.top):a||((i=void 0===i||!!i)?o.scrollTop(t,g.top+O.top):o.scrollTop(t,g.top+k.top)),r&&(O.left<0||k.left>0?!0===c?o.scrollLeft(t,g.left+O.left):!1===c?o.scrollLeft(t,g.left+k.left):O.left<0?o.scrollLeft(t,g.left+O.left):o.scrollLeft(t,g.left+k.left):a||((c=void 0===c||!!c)?o.scrollLeft(t,g.left+O.left):o.scrollLeft(t,g.left+k.left)))}},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t0&&!o.call(e,0))for(var b=0;b0)for(var v=0;v0&&void 0!==arguments[0]&&(n=o.ToInteger(arguments[0]));var a=o.ArraySpeciesCreate(e,0);return function e(t,n,a,i,c){for(var s=i,l=0;l0&&(h=o.IsArray(d)),h)s=e(t,d,o.ToLength(o.Get(d,"length")),s,c-1);else{if(s>=r)throw new TypeError("index too large");o.CreateDataPropertyOrThrow(t,o.ToString(s),d),s+=1}}l+=1}return s}(a,e,t,0,n),a}},function(e,t,n){"use strict";var o=n(209),r=n(108),a=r(r({},o),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=a},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var o=Object.prototype.toString;if(n(213)()){var r=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==o.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&a.test(r.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},function(e,t,n){"use strict";var o=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=Object.getPrototypeOf||function(e){return e.__proto__},i=void 0,c="undefined"==typeof Uint8Array?void 0:a(Uint8Array),s={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r?a([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":i&&r&&Symbol.asyncIterator?i[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":r?a(a([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&r?a((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&r?a((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r?a(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r?Symbol:void 0,"$ %SymbolPrototype%":r?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":o,"$ %TypedArray%":c,"$ %TypedArrayPrototype%":c?c.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var o=n(129);e.exports=function(){return Array.prototype.flat||o}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=void 0,r=void 0;function a(e,t){var n=t(e(r));return function(){return n}}function i(e){return a(e,o.createLTR||o.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var r="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||o?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,l="width"===t?c:s;n||(l-=parseFloat(i["padding"+r])+parseFloat(i["padding"+a])+parseFloat(i["border"+r+"Width"])+parseFloat(i["border"+a+"Width"]));o&&(l+=parseFloat(i["margin"+r])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=r&&at.clientHeight?t:r(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=o(),i=r(e);return t.set(i,i.style.overflowY),i===n?t:a(i,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&(L||H||i!==k)){var Y=y||this.today;V=this.deleteModifierFromRange(V,Y,Y.clone().add(k,"days"),"blocked-minimum-nights"),V=this.deleteModifierFromRange(V,Y,Y.clone().add(k,"days"),"blocked")}(L||x)&&(0,d.default)(P).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,u.default)(e),o=!1;(L||z)&&(c(n)?(V=t.addModifier(V,n,"blocked-out-of-range"),o=!0):V=t.deleteModifier(V,n,"blocked-out-of-range")),(L||T)&&(s(n)?(V=t.addModifier(V,n,"blocked-calendar"),o=!0):V=t.deleteModifier(V,n,"blocked-calendar")),V=o?t.addModifier(V,n,"blocked"):t.deleteModifier(V,n,"blocked"),(L||I)&&(V=l(n)?t.addModifier(V,n,"highlighted-calendar"):t.deleteModifier(V,n,"highlighted-calendar"))})}),i>0&&n&&r===E.END_DATE&&(V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked-minimum-nights"),V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked"));var $=(0,u.default)();if((0,m.default)(this.today,$)||(V=this.deleteModifier(V,this.today,"today"),V=this.addModifier(V,$,"today"),this.today=$),Object.keys(V).length>0&&this.setState({visibleDays:(0,a.default)({},P,V)}),L||h!==w){var G=N(h,r);this.setState({phrases:(0,a.default)({},h,{chooseAvailableDate:G})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,o=n.keepOpenOnDateSelect,r=n.minimumNights,a=n.onBlur,i=n.focusedInput,c=n.onFocusChange,s=n.onClose,l=n.onDatesChange,u=n.startDateOffset,d=n.endDateOffset,h=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var f=this.props,p=f.startDate,v=f.endDate;if(u||d)p=(0,_.default)(u,e),v=(0,_.default)(d,e),o||(c(null),s({startDate:p,endDate:v}));else if(i===E.START_DATE){var m=v&&v.clone().subtract(r,"days"),O=(0,g.default)(m,e)||(0,y.default)(p,v),k=h===E.END_DATE;k&&O||(p=e,O&&(v=null)),k&&!O?(c(null),s({startDate:p,endDate:v})):k||c(E.END_DATE)}else if(i===E.END_DATE){var D=p&&p.clone().add(r,"days");p?(0,b.default)(e,D)?(v=e,o||(c(null),s({startDate:p,endDate:v}))):h!==E.START_DATE&&(p=e,v=null):(v=e,c(E.START_DATE))}l({startDate:p,endDate:v}),a()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,o=t.endDate,r=t.focusedInput,i=t.minimumNights,c=t.startDateOffset,s=t.endDateOffset,l=this.state,u=l.hoverDate,d=l.visibleDays,h=null;if(r){var f=c||s,p={};if(f){var b=(0,_.default)(c,e),v=(0,_.default)(s,e,function(e){return e.add(1,"day")});h={start:b,end:v},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,b,v,"hovered-offset")}if(!f){if(p=this.deleteModifier(p,u,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!o&&r===E.END_DATE){if((0,y.default)(u,n)){var O=u.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,O,"hovered-span")}if(!this.isBlocked(e)&&(0,y.default)(e,n)){var k=e.clone().add(1,"day");p=this.addModifierToRange(p,n,k,"hovered-span")}}if(!n&&o&&r===E.START_DATE&&((0,g.default)(u,o)&&(p=this.deleteModifierFromRange(p,u,o,"hovered-span")),!this.isBlocked(e)&&(0,g.default)(e,o)&&(p=this.addModifierToRange(p,e,o,"hovered-span"))),n){var D=n.clone().add(1,"day"),M=n.clone().add(i+1,"days");if(p=this.deleteModifierFromRange(p,D,M,"after-hovered-start"),(0,m.default)(e,n)){var w=n.clone().add(1,"day"),S=n.clone().add(i+1,"days");p=this.addModifierToRange(p,w,S,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:h,visibleDays:(0,a.default)({},d,p)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate,r=t.minimumNights,i=this.state,c=i.hoverDate,s=i.visibleDays,l=i.dateOffset;if(!this.isTouchDevice&&c){var u={};if(u=this.deleteModifier(u,c,"hovered"),l&&(u=this.deleteModifierFromRange(u,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!o&&(0,y.default)(c,n)){var d=c.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,d,"hovered-span")}if(!n&&o&&(0,y.default)(o,c)&&(u=this.deleteModifierFromRange(u,c,o,"hovered-span")),n&&(0,m.default)(e,n)){var h=n.clone().add(1,"day"),f=n.clone().add(r+1,"days");u=this.deleteModifierFromRange(u,h,f,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,a.default)({},s,u)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach(function(e){s[e]=c[e]});var l=i.clone().subtract(2,"months"),u=(0,O.default)(l,1,o,!0),d=i.clone().subtract(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(d.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(1).forEach(function(e){s[e]=c[e]});var l=i.clone().add(n+1,"month"),u=(0,O.default)(l,1,o,!0),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(d.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,o=this.state,r=o.currentMonth,i=o.visibleDays,c=Object.keys(i).length,s=r.clone().add(c,"month"),l=(0,O.default)(s,t,n,!0);this.setState({visibleDays:(0,a.default)({},i,this.getModifiers(l))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.startDate,a=n.endDate,i=n.focusedInput,c=n.minimumNights,s=n.numberOfMonths,l=e.clone().startOf("month");if(i===E.START_DATE&&r?l=r.clone():i===E.END_DATE&&!a&&r?l=r.clone().add(c,"days"):i===E.END_DATE&&a&&(l=a.clone()),this.isBlocked(l)){for(var u=[],d=e.clone().add(s-1,"months").endOf("month"),h=l.clone();!(0,y.default)(h,d);)h=h.clone().add(1,"day"),u.push(h);var f=u.filter(function(e){return!t.isBlocked(e)});f.length>0&&(l=o(f,1)[0])}return l}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]={},e[o].forEach(function(e){n[o][(0,D.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,o=e.numberOfMonths,r=e.enableOutsideDays,a=e.orientation,i=e.startDate,c=(n||(i?function(){return i}:function(){return t.today}))(),s=a===E.VERTICAL_SCROLLABLE;return{currentMonth:c,visibleDays:this.getModifiers((0,O.default)(c,o,r,s))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.add(n),(0,a.default)({},t,I({},o,(0,a.default)({},r,I({},f,i))))},p);else{var b=(0,M.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.add(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,m))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,o){for(var r=e,a=t.clone();(0,g.default)(a,n);)r=this.addModifier(r,a,o),a=a.clone().add(1,"day");return r}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.delete(n),(0,a.default)({},t,I({},o,(0,a.default)({},r,I({},f,i))))},p);else{var b=(0,M.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.delete(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,m))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,o){for(var r=e,a=t.clone();(0,g.default)(a,n);)r=this.deleteModifier(r,a,o),a=a.clone().add(1,"day");return r}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.isOutsideRange,r=t.focusedInput,a=t.minimumNights;if(r!==E.END_DATE)return!1;if(n){var i=e.diff(n.clone().startOf("day").hour(12),"days");return i=0}return o((0,u.default)(e).subtract(a,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate,r=t.minimumNights,a=(this.state||{}).hoverDate;return!!n&&!o&&!this.isBlocked(e)&&(0,v.default)(a,e)&&r>0&&(0,m.default)(a,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,m.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate,r=(this.state||{}).hoverDate,a=!!n&&!o&&(e.isBetween(n,r)||(0,m.default)(r,e)),i=!!o&&!n&&(e.isBetween(r,o)||(0,m.default)(r,e)),c=r&&!this.isBlocked(r);return(a||i)&&c}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate;return e.isBetween(n,o)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,m.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,o=t.isOutsideRange;return n(e)||o(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,m.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,o=e.monthFormat,r=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.noNavButtons,l=e.onOutsideClick,u=e.withPortal,d=e.enableOutsideDays,h=e.firstDayOfWeek,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.focusedInput,v=e.renderCalendarDay,m=e.renderDayContents,y=e.renderCalendarInfo,g=e.renderMonthElement,O=e.calendarInfoPosition,k=e.onBlur,_=e.isFocused,D=e.showKeyboardShortcuts,M=e.isRTL,w=e.weekDayFormat,S=e.dayAriaLabelFormat,j=e.verticalHeight,C=e.noBorder,P=e.transitionDuration,E=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.phrases,N=I.visibleDays;return i.default.createElement(z.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:o,renderMonthText:r,withPortal:u,hidden:!b,initialVisibleMonth:function(){return x},daySize:p,onOutsideClick:l,navPrev:a,navNext:c,noNavButtons:s,renderCalendarDay:v,renderDayContents:m,renderCalendarInfo:y,renderMonthElement:g,calendarInfoPosition:O,firstDayOfWeek:h,hideKeyboardShortcutsPanel:f,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,showKeyboardShortcuts:D,phrases:H,isRTL:M,weekDayFormat:w,dayAriaLabelFormat:S,verticalHeight:j,verticalBorderSpacing:E,noBorder:C,transitionDuration:P,horizontalMonthPadding:T})}}()}]),t}();t.default=R,R.propTypes=x,R.defaultProps=H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!o.default.isMoment(e)||!o.default.isMoment(t))return!1;var n=(0,o.default)(e).add(1,"day");return(0,r.default)(n,t)};var o=a(n(27)),r=a(n(72));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!o.default.isMoment(e))return{};for(var i={},c=a?e.clone():e.clone().subtract(1,"month"),s=0;s<(a?t:t+2);s+=1){var l=[],u=c.clone(),d=u.clone().startOf("month").hour(12),h=u.clone().endOf("month").hour(12),f=d.clone();if(n)for(var p=0;p0&&this.setState({visibleDays:(0,a.default)({},D,z)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,u.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,o=n.onDateChange,r=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;o(e),r||(a({focused:!1}),i({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,o=t.visibleDays,r=this.deleteModifier({},n,"hovered");r=this.addModifier(r,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},o,r)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var o=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,o)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach(function(e){s[e]=c[e]});var l=i.clone().subtract(1,"month"),u=(0,m.default)(l,1,o);this.setState({currentMonth:l,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(l.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(1).forEach(function(e){s[e]=c[e]});var l=i.clone().add(n,"month"),u=(0,m.default)(l,1,o),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(d.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===M.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===M.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(r&&(i=r.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,v.default)(l,s);)l=l.clone().add(1,"day"),c.push(l);var u=c.filter(function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)});if(u.length>0){var d=o(u,1);i=d[0]}}return i}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]={},e[o].forEach(function(e){n[o][(0,g.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,o=e.date,r=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(o?function(){return o}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,r,a))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===M.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.add(n),(0,a.default)({},t,j({},o,(0,a.default)({},r,j({},f,i))))},p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.add(n),p=(0,a.default)({},p,j({},b,(0,a.default)({},v,j({},f,m))))}return p}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===M.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.delete(n),(0,a.default)({},t,j({},o,(0,a.default)({},r,j({},f,i))))},p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.delete(n),p=(0,a.default)({},p,j({},b,(0,a.default)({},v,j({},f,m))))}return p}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,o=t.isOutsideRange;return n(e)||o(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,b.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,b.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,b.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,o=e.monthFormat,r=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,h=e.hideKeyboardShortcutsPanel,f=e.daySize,p=e.firstDayOfWeek,b=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,k=e.isRTL,_=e.phrases,D=e.dayAriaLabelFormat,M=e.onBlur,S=e.showKeyboardShortcuts,j=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,E=e.transitionDuration,z=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.visibleDays;return i.default.createElement(w.default,{orientation:n,enableOutsideDays:d,modifiers:H,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:o,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return x},firstDayOfWeek:p,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:r,renderCalendarDay:b,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:M,phrases:_,daySize:f,isRTL:k,showKeyboardShortcuts:S,weekDayFormat:j,dayAriaLabelFormat:D,verticalHeight:C,noBorder:P,transitionDuration:E,verticalBorderSpacing:z,horizontalMonthPadding:T})}}()}]),t}();t.default=E,E.propTypes=C,E.defaultProps=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=p(n(30)),r=p(n(57)),a=n(39),i=n(43),c=p(n(47)),s=p(n(82)),l=p(n(154)),u=p(n(155)),d=p(n(76)),h=p(n(67)),f=p(n(83));function p(e){return e&&e.__esModule?e:{default:e}}t.default={date:r.default.momentObj,onDateChange:o.default.func.isRequired,focused:o.default.bool,onFocusChange:o.default.func.isRequired,id:o.default.string.isRequired,placeholder:o.default.string,disabled:o.default.bool,required:o.default.bool,readOnly:o.default.bool,screenReaderInputMessage:o.default.string,showClearDate:o.default.bool,customCloseIcon:o.default.node,showDefaultInputIcon:o.default.bool,inputIconPosition:s.default,customInputIcon:o.default.node,noBorder:o.default.bool,block:o.default.bool,small:o.default.bool,regular:o.default.bool,verticalSpacing:a.nonNegativeInteger,keepFocusOnInput:o.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(o.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(o.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:u.default,openDirection:d.default,horizontalMargin:o.default.number,withPortal:o.default.bool,withFullScreenPortal:o.default.bool,appendToBody:o.default.bool,disableScroll:o.default.bool,initialVisibleMonth:o.default.func,firstDayOfWeek:h.default,numberOfMonths:o.default.number,keepOpenOnDateSelect:o.default.bool,reopenPickerOnClearDate:o.default.bool,renderCalendarInfo:o.default.func,calendarInfoPosition:f.default,hideKeyboardShortcutsPanel:o.default.bool,daySize:a.nonNegativeInteger,isRTL:o.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,horizontalMonthPadding:a.nonNegativeInteger,navPrev:o.default.node,navNext:o.default.node,onPrevMonthClick:o.default.func,onNextMonthClick:o.default.func,onClose:o.default.func,renderCalendarDay:o.default.func,renderDayContents:o.default.func,enableOutsideDays:o.default.bool,isDayBlocked:o.default.func,isOutsideRange:o.default.func,isDayHighlighted:o.default.func,displayFormat:o.default.oneOfType([o.default.string,o.default.func]),monthFormat:o.default.string,weekDayFormat:o.default.string,phrases:o.default.shape((0,c.default)(i.SingleDatePickerPhrases)),dayAriaLabelFormat:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",function(){return o})},,function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.dom}()},,function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";var o=n(37);var r=n(38);function a(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(o=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(r)throw a}}return n}(e,t)||Object(r.a)()}n.d(t,"a",function(){return a})},function(e,t){!function(){e.exports=this.moment}()},,function(e,t,n){e.exports=n(89)()},function(e,t,n){"use strict";function o(e){return(o="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(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){"use strict";function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return o})},,,function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},,,function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){e.exports=n(290)},,function(e,t,n){var o;!function(r){var a=/^\s+/,i=/\s+$/,c=0,s=r.round,l=r.min,u=r.max,d=r.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,o=null,c=null,s=null,d=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(E[e])e=E[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),a:A(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),a:A(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(f=e.r,p=e.g,b=e.b,t={r:255*I(f,255),g:255*I(p,255),b:255*I(b,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(o=R(e.s),c=R(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var o=r.floor(e),a=e-o,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),l=o%6;return{r:255*[n,c,i,i,s,n][l],g:255*[s,n,n,c,i,i][l],b:255*[i,i,s,n,n,c][l]}}(e.h,o,c),d=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(o=R(e.s),s=R(e.l),t=function(e,t,n){var o,r,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)o=r=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=i(s,c,e+1/3),r=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*o,g:255*r,b:255*a}}(e.h,o,s),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,b;return n=T(n),{ok:d,format:e.format||h,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function f(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var o,r,a=u(e,t,n),i=l(e,t,n),c=(a+i)/2;if(a==i)o=r=0;else{var s=a-i;switch(r=c>.5?s/(2-a-i):s/(a+i),a){case e:o=(t-n)/s+(t>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(h(o));return a}function P(e,t){t=t||6;for(var n=h(e).toHsv(),o=n.h,r=n.s,a=n.v,i=[],c=1/t;t--;)i.push(h({h:o,s:r,v:a})),a=(a+c)%1;return i}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),o=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),o=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var a=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16)),N(L(o))];if(r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=h(e);n="#"+v(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:R(e[o]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:d(),g:d(),b:d()})},h.mix=function(e,t,n){n=0===n?0:n||50;var o=h(e).toRgb(),r=h(t).toRgb(),a=n/100;return h({r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a})},h.readability=function(e,t){var n=h(e),o=h(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},h.isReadable=function(e,t,n){var o,r,a=h.readability(e,t);switch(r=!1,(o=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+o.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},h.mostReadable=function(e,t,n){var o,r,a,i,c=null,s=0;r=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;ls&&(s=o,c=h(t[l]));return h.isReadable(e,c,{level:a,size:i})||!r?c:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var E=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function x(e){return l(1,u(0,e))}function H(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function L(e){return r.round(255*parseFloat(e)).toString(16)}function A(e){return H(e)/255}var F,V,B,K=(V="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",B="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(o=function(){return h}.call(t,n,t,e))||(e.exports=o)}(Math)},function(e,t,n){"use strict";var o=n(73),r=n(155),a=n(156),i=n(286),c=a();o(c,{getPolyfill:a,implementation:r,shim:i}),e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="Interact with the calendar and add the check-in date for your trip.",r="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",c="Home and end keys",s="Escape key",l="Select the date in focus.",u="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",h="Return to the date input field.",f="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",p=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},b=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},v=function(e){return e.date},m=function(e){var t=e.date;return"Not available. "+String(t)},y=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:o,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:b,dateIsUnavailable:m,dateIsSelected:y};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:o,jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableStartDate:p,chooseAvailableEndDate:b,dateIsUnavailable:m,dateIsSelected:y},t.DateRangePickerInputPhrases={focusStartDate:o,clearDates:"Clear Dates",keyboardNavigationInstructions:f},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,keyboardNavigationInstructions:f,chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:f},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:r,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h,chooseAvailableStartDate:p,chooseAvailableEndDate:b,chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y},t.DayPickerKeyboardShortcutsPhrases={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:h},t.DayPickerNavigationPhrases={jumpToPrevMonth:r,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:v,dateIsUnavailable:m,dateIsSelected:y}},function(e,t){!function(){e.exports=this.wp.a11y}()},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(e,t){return(0,o.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,r.default.oneOfType([r.default.string,r.default.func,r.default.node])))},{})};var o=a(n(46)),r=a(n(31));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){!function(){e.exports=this.ReactDOM}()},,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,i=void 0===n?"styles":n,u=t.themePropName,h=void 0===u?"theme":u,p=t.cssPropName,y=void 0===p?"css":p,g=t.flushBefore,O=void 0!==g&&g,k=t.pureComponent,_=void 0!==k&&k,D=void 0,w=void 0,S=void 0,j=void 0,M=function(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}(_);function C(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function P(t,n){var o=function(e){return e===l.DIRECTIONS.LTR?S:j}(t),r=t===l.DIRECTIONS.LTR?D:w,a=d.default.get();if(r&&o===a)return r;var i=t===l.DIRECTIONS.RTL;return i?(w=e?d.default.createRTL(e):b,j=a,r=w):(D=e?d.default.createLTR(e):b,S=a,r=D),r}function E(e,t){return{resolveMethod:C(e),styleDef:P(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function c(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e,n)),r=o.context[l.CHANNEL]?o.context[l.CHANNEL].getState():m;return o.state=E(r,t),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,n),r(c,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe(function(n){e.setState(E(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;O&&d.default.flush();var n=this.state,r=n.resolveMethod,c=n.styleDef;return a.default.createElement(e,o({},this.props,(f(t={},h,d.default.get()),f(t,i,c()),f(t,y,r),t)))}}()}]),c}(M);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=v,e.propTypes&&(n.propTypes=(0,s.default)({},e.propTypes),delete n.propTypes[i],delete n.propTypes[h],delete n.propTypes[y]);e.defaultProps&&(n.defaultProps=(0,s.default)({},e.defaultProps));return(0,c.default)(n,e)}}()};var a=h(n(27)),i=h(n(31)),c=h(n(140)),s=h(n(291)),l=n(292),u=h(n(293)),d=h(n(153));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:i.default.object.isRequired,theme:i.default.object.isRequired,css:i.default.func.isRequired};var p={},b=function(){return p};var v=f({},l.CHANNEL,u.default),m=l.DIRECTIONS.LTR},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,function(e,t,n){var o=n(29),r=n(288),a=n(289);e.exports={momentObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isValidMoment(e)},"Moment"),momentString:a.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return r.isValidMoment(o(e))},"Moment"),momentDurationObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isDuration(e)},"Duration")}},function(e,t,n){var o=n(87),r=n(88);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||o)();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||r(i)}},,function(e,t,n){"use strict";e.exports=n(115)},,,,,,function(e,t,n){"use strict";var o=n(141),r=n(267),a="function"==typeof Symbol&&"symbol"==typeof Symbol(),i=Object.prototype.toString,c=Object.defineProperty&&function(){var e={};try{for(var t in Object.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),s=function(e,t,n,o){var r;t in e&&("function"!=typeof(r=o)||"[object Function]"!==i.call(r)||!o())||(c?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=o(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t))),r(i,function(o){s(e,o,t[o],n[o])})};l.supportsDescriptors=!!c,e.exports=l},function(e,t,n){"use strict";var o=n(268);e.exports=Function.prototype.bind||o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf(i.WEEKDAYS)},,,function(e,t,n){"use strict";var o=n(287);e.exports=function(e,t,n){return!o(e.props,t)||!o(e.state,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year()};var o,r=n(29),a=(o=r)&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t?[t,i.DISPLAY_FORMAT,i.ISO_FORMAT]:[i.DISPLAY_FORMAT,i.ISO_FORMAT],o=(0,a.default)(e,n,!0);return o.isValid()?o.hour(12):null};var o,r=n(29),a=(o=r)&&o.__esModule?o:{default:o},i=n(39)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION,i.VERTICAL_SCROLLABLE])},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf([i.OPEN_DOWN,i.OPEN_UP])},,,,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 o=new Uint8Array(16);e.exports=function(){return n(o),o}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},function(e,t){for(var n=[],o=0;o<256;++o)n[o]=(o+256).toString(16).substr(1);e.exports=function(e,t){var o=t||0,r=n;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},function(e,t,n){"use strict";var o=n(90);function r(){}e.exports=function(){function e(e,t,n,r,a,i){if(i!==o){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,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var o=n(74);e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf([i.ICON_BEFORE_POSITION,i.ICON_AFTER_POSITION])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf([i.INFO_POSITION_TOP,i.INFO_POSITION_BOTTOM,i.INFO_POSITION_BEFORE,i.INFO_POSITION_AFTER])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!o.default.isMoment(e)||!o.default.isMoment(t)||(0,r.default)(e,t))};var o=a(n(29)),r=a(n(95));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),o=e.month(),r=t.year(),i=t.month(),c=n===r,s=o===i;return c&&s?e.date()2?n-2:0),r=2;r=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(n,["wrappedRef"]);return i.createElement(e,o({},a,{ref:function(e){t.__wrappedInstance=e,t.__domNode=c.findDOMNode(e),r&&r(e)}}))}}]),n}();return n.displayName="clickOutside("+t+")",a(n,e)}},,,,,,,function(e,t,n){"use strict";var o=n(116);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var h=o.isWindow(t),f=o.offset(e),p=o.outerHeight(e),b=o.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,k=void 0,_=void 0,D=void 0,w=void 0,S=void 0;h?(_=t,S=o.height(_),w=o.width(_),D={left:o.scrollLeft(_),top:o.scrollTop(_)},O={left:f.left-D.left-l,top:f.top-D.top-s},k={left:f.left+b-(D.left+w)+d,top:f.top+p-(D.top+S)+u},g=D):(v=o.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:f.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-l,top:f.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-s},k={left:f.left+b-(v.left+y+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(v.top+m+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),O.top<0||k.top>0?!0===i?o.scrollTop(t,g.top+O.top):!1===i?o.scrollTop(t,g.top+k.top):O.top<0?o.scrollTop(t,g.top+O.top):o.scrollTop(t,g.top+k.top):a||((i=void 0===i||!!i)?o.scrollTop(t,g.top+O.top):o.scrollTop(t,g.top+k.top)),r&&(O.left<0||k.left>0?!0===c?o.scrollLeft(t,g.left+O.left):!1===c?o.scrollLeft(t,g.left+k.left):O.left<0?o.scrollLeft(t,g.left+O.left):o.scrollLeft(t,g.left+k.left):a||((c=void 0===c||!!c)?o.scrollLeft(t,g.left+O.left):o.scrollLeft(t,g.left+k.left)))}},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t0&&!o.call(e,0))for(var b=0;b0)for(var v=0;v0&&void 0!==arguments[0]&&(n=o.ToInteger(arguments[0]));var a=o.ArraySpeciesCreate(e,0);return function e(t,n,a,i,c){for(var s=i,l=0;l0&&(h=o.IsArray(d)),h)s=e(t,d,o.ToLength(o.Get(d,"length")),s,c-1);else{if(s>=r)throw new TypeError("index too large");o.CreateDataPropertyOrThrow(t,o.ToString(s),d),s+=1}}l+=1}return s}(a,e,t,0,n),a}},function(e,t,n){"use strict";var o=n(270),r=n(124),a=r(r({},o),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=a},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var o=Object.prototype.toString;if(n(274)()){var r=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==o.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&a.test(r.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},function(e,t,n){"use strict";var o=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=Object.getPrototypeOf||function(e){return e.__proto__},i=void 0,c="undefined"==typeof Uint8Array?void 0:a(Uint8Array),s={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r?a([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":i&&r&&Symbol.asyncIterator?i[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":r?a(a([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&r?a((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&r?a((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r?a(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r?Symbol:void 0,"$ %SymbolPrototype%":r?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":o,"$ %TypedArray%":c,"$ %TypedArrayPrototype%":c?c.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var o=n(142);e.exports=function(){return Array.prototype.flat||o}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=void 0,r=void 0;function a(e,t){var n=t(e(r));return function(){return n}}function i(e){return a(e,o.createLTR||o.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var r="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||o?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,l="width"===t?c:s;n||(l-=parseFloat(i["padding"+r])+parseFloat(i["padding"+a])+parseFloat(i["border"+r+"Width"])+parseFloat(i["border"+a+"Width"]));o&&(l+=parseFloat(i["margin"+r])+parseFloat(i["margin"+a]));return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=r&&a2?arguments[2]:{},a=o(t);r&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c=0&&"[object Function]"===o.call(e.callee)),n}},function(e,t,n){"use strict";var o=n(166),r=n(91),a=n(74).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=o.RequireObjectCoercible(e),n=[];for(var i in t)r(t,i)&&a(t,i)&&n.push(t[i]);return n}},function(e,t,n){"use strict";e.exports=n(143)},function(e,t,n){"use strict";var o=n(165);e.exports=function(){return"function"==typeof Object.values?Object.values:o}},function(e,t,n){"use strict";var o=n(312),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,c=Object.defineProperty,s=c&&function(){var e={};try{for(var t in c(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,o){var r;t in e&&("function"!=typeof(r=o)||"[object Function]"!==a.call(r)||!o())||(s?c(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},a=o(t);r&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c=0&&"[object Function]"===o.call(e.callee)),n}},function(e,t,n){"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},function(e,t,n){"use strict";var o=n(170);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)return document.body.contains}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(31)),r=v(n(64)),a=n(43),i=n(47),c=v(n(51)),s=v(n(173)),l=v(n(92)),u=v(n(174)),d=v(n(105)),h=v(n(175)),f=v(n(83)),p=v(n(75)),b=v(n(93));function v(e){return e&&e.__esModule?e:{default:e}}t.default={startDate:r.default.momentObj,endDate:r.default.momentObj,onDatesChange:o.default.func.isRequired,focusedInput:s.default,onFocusChange:o.default.func.isRequired,onClose:o.default.func,startDateId:o.default.string.isRequired,startDatePlaceholderText:o.default.string,endDateId:o.default.string.isRequired,endDatePlaceholderText:o.default.string,disabled:d.default,required:o.default.bool,readOnly:o.default.bool,screenReaderInputMessage:o.default.string,showClearDates:o.default.bool,showDefaultInputIcon:o.default.bool,inputIconPosition:l.default,customInputIcon:o.default.node,customArrowIcon:o.default.node,customCloseIcon:o.default.node,noBorder:o.default.bool,block:o.default.bool,small:o.default.bool,regular:o.default.bool,keepFocusOnInput:o.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(o.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(o.default.func,"renderMonthText","renderMonthElement"),orientation:u.default,anchorDirection:h.default,openDirection:f.default,horizontalMargin:o.default.number,withPortal:o.default.bool,withFullScreenPortal:o.default.bool,appendToBody:o.default.bool,disableScroll:o.default.bool,daySize:a.nonNegativeInteger,isRTL:o.default.bool,firstDayOfWeek:p.default,initialVisibleMonth:o.default.func,numberOfMonths:o.default.number,keepOpenOnDateSelect:o.default.bool,reopenPickerOnClearDates:o.default.bool,renderCalendarInfo:o.default.func,calendarInfoPosition:b.default,hideKeyboardShortcutsPanel:o.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,verticalSpacing:a.nonNegativeInteger,navPrev:o.default.node,navNext:o.default.node,onPrevMonthClick:o.default.func,onNextMonthClick:o.default.func,renderCalendarDay:o.default.func,renderDayContents:o.default.func,minimumNights:o.default.number,enableOutsideDays:o.default.bool,isDayBlocked:o.default.func,isOutsideRange:o.default.func,isDayHighlighted:o.default.func,displayFormat:o.default.oneOfType([o.default.string,o.default.func]),monthFormat:o.default.string,weekDayFormat:o.default.string,phrases:o.default.shape((0,c.default)(i.DateRangePickerPhrases)),dayAriaLabelFormat:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf([i.START_DATE,i.END_DATE])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o},i=n(39);t.default=a.default.oneOf([i.ANCHOR_LEFT,i.ANCHOR_RIGHT])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){var a="undefined"!=typeof window?window.innerWidth:0,i=e===o.ANCHOR_LEFT?a-n:n,c=r||0;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,Math.min(t+i-c,0))};var o=n(39)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=n.getBoundingClientRect(),a=r.left,i=r.top;e===o.OPEN_UP&&(i=-(window.innerHeight-r.bottom));t===o.ANCHOR_RIGHT&&(a=-(window.innerWidth-r.right));return{transform:"translate3d("+String(Math.round(a))+"px, "+String(Math.round(i))+"px, 0)"}};var o=n(39)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScrollParent=r,t.getScrollAncestorsOverflowY=a,t.default=function(e){var t=a(e),n=function(e){return t.forEach(function(t,n){n.style.setProperty("overflow-y",e?"hidden":t)})};return n(!0),function(){return n(!1)}};var o=function(){return document.scrollingElement||document.documentElement};function r(e){var t=e.parentElement;if(null==t)return o();var n=window.getComputedStyle(t).overflowY;return"visible"!==n&&"hidden"!==n&&t.scrollHeight>t.clientHeight?t:r(t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=o(),i=r(e);return t.set(i,i.style.overflowY),i===n?t:a(i,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&(L||H||i!==k)){var $=y||this.today;V=this.deleteModifierFromRange(V,$,$.clone().add(k,"days"),"blocked-minimum-nights"),V=this.deleteModifierFromRange(V,$,$.clone().add(k,"days"),"blocked")}(L||x)&&(0,d.default)(P).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,u.default)(e),o=!1;(L||z)&&(c(n)?(V=t.addModifier(V,n,"blocked-out-of-range"),o=!0):V=t.deleteModifier(V,n,"blocked-out-of-range")),(L||T)&&(s(n)?(V=t.addModifier(V,n,"blocked-calendar"),o=!0):V=t.deleteModifier(V,n,"blocked-calendar")),V=o?t.addModifier(V,n,"blocked"):t.deleteModifier(V,n,"blocked"),(L||I)&&(V=l(n)?t.addModifier(V,n,"highlighted-calendar"):t.deleteModifier(V,n,"highlighted-calendar"))})}),i>0&&n&&r===E.END_DATE&&(V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked-minimum-nights"),V=this.addModifierToRange(V,n,n.clone().add(i,"days"),"blocked"));var Y=(0,u.default)();if((0,m.default)(this.today,Y)||(V=this.deleteModifier(V,this.today,"today"),V=this.addModifier(V,Y,"today"),this.today=Y),Object.keys(V).length>0&&this.setState({visibleDays:(0,a.default)({},P,V)}),L||h!==S){var q=N(h,r);this.setState({phrases:(0,a.default)({},h,{chooseAvailableDate:q})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,o=n.keepOpenOnDateSelect,r=n.minimumNights,a=n.onBlur,i=n.focusedInput,c=n.onFocusChange,s=n.onClose,l=n.onDatesChange,u=n.startDateOffset,d=n.endDateOffset,h=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var f=this.props,p=f.startDate,v=f.endDate;if(u||d)p=(0,_.default)(u,e),v=(0,_.default)(d,e),o||(c(null),s({startDate:p,endDate:v}));else if(i===E.START_DATE){var m=v&&v.clone().subtract(r,"days"),O=(0,g.default)(m,e)||(0,y.default)(p,v),k=h===E.END_DATE;k&&O||(p=e,O&&(v=null)),k&&!O?(c(null),s({startDate:p,endDate:v})):k||c(E.END_DATE)}else if(i===E.END_DATE){var D=p&&p.clone().add(r,"days");p?(0,b.default)(e,D)?(v=e,o||(c(null),s({startDate:p,endDate:v}))):h!==E.START_DATE&&(p=e,v=null):(v=e,c(E.START_DATE))}l({startDate:p,endDate:v}),a()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,o=t.endDate,r=t.focusedInput,i=t.minimumNights,c=t.startDateOffset,s=t.endDateOffset,l=this.state,u=l.hoverDate,d=l.visibleDays,h=null;if(r){var f=c||s,p={};if(f){var b=(0,_.default)(c,e),v=(0,_.default)(s,e,function(e){return e.add(1,"day")});h={start:b,end:v},this.state.dateOffset&&this.state.dateOffset.start&&this.state.dateOffset.end&&(p=this.deleteModifierFromRange(p,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),p=this.addModifierToRange(p,b,v,"hovered-offset")}if(!f){if(p=this.deleteModifier(p,u,"hovered"),p=this.addModifier(p,e,"hovered"),n&&!o&&r===E.END_DATE){if((0,y.default)(u,n)){var O=u.clone().add(1,"day");p=this.deleteModifierFromRange(p,n,O,"hovered-span")}if(!this.isBlocked(e)&&(0,y.default)(e,n)){var k=e.clone().add(1,"day");p=this.addModifierToRange(p,n,k,"hovered-span")}}if(!n&&o&&r===E.START_DATE&&((0,g.default)(u,o)&&(p=this.deleteModifierFromRange(p,u,o,"hovered-span")),!this.isBlocked(e)&&(0,g.default)(e,o)&&(p=this.addModifierToRange(p,e,o,"hovered-span"))),n){var D=n.clone().add(1,"day"),w=n.clone().add(i+1,"days");if(p=this.deleteModifierFromRange(p,D,w,"after-hovered-start"),(0,m.default)(e,n)){var S=n.clone().add(1,"day"),j=n.clone().add(i+1,"days");p=this.addModifierToRange(p,S,j,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:h,visibleDays:(0,a.default)({},d,p)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate,r=t.minimumNights,i=this.state,c=i.hoverDate,s=i.visibleDays,l=i.dateOffset;if(!this.isTouchDevice&&c){var u={};if(u=this.deleteModifier(u,c,"hovered"),l&&(u=this.deleteModifierFromRange(u,this.state.dateOffset.start,this.state.dateOffset.end,"hovered-offset")),n&&!o&&(0,y.default)(c,n)){var d=c.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,d,"hovered-span")}if(!n&&o&&(0,y.default)(o,c)&&(u=this.deleteModifierFromRange(u,c,o,"hovered-span")),n&&(0,m.default)(e,n)){var h=n.clone().add(1,"day"),f=n.clone().add(r+1,"days");u=this.deleteModifierFromRange(u,h,f,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:(0,a.default)({},s,u)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach(function(e){s[e]=c[e]});var l=i.clone().subtract(2,"months"),u=(0,O.default)(l,1,o,!0),d=i.clone().subtract(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(d.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(1).forEach(function(e){s[e]=c[e]});var l=i.clone().add(n+1,"month"),u=(0,O.default)(l,1,o,!0),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(d.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===E.VERTICAL_SCROLLABLE,a=(0,O.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,o=this.state,r=o.currentMonth,i=o.visibleDays,c=Object.keys(i).length,s=r.clone().add(c,"month"),l=(0,O.default)(s,t,n,!0);this.setState({visibleDays:(0,a.default)({},i,this.getModifiers(l))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.startDate,a=n.endDate,i=n.focusedInput,c=n.minimumNights,s=n.numberOfMonths,l=e.clone().startOf("month");if(i===E.START_DATE&&r?l=r.clone():i===E.END_DATE&&!a&&r?l=r.clone().add(c,"days"):i===E.END_DATE&&a&&(l=a.clone()),this.isBlocked(l)){for(var u=[],d=e.clone().add(s-1,"months").endOf("month"),h=l.clone();!(0,y.default)(h,d);)h=h.clone().add(1,"day"),u.push(h);var f=u.filter(function(e){return!t.isBlocked(e)});f.length>0&&(l=o(f,1)[0])}return l}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]={},e[o].forEach(function(e){n[o][(0,D.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,o=e.numberOfMonths,r=e.enableOutsideDays,a=e.orientation,i=e.startDate,c=(n||(i?function(){return i}:function(){return t.today}))(),s=a===E.VERTICAL_SCROLLABLE;return{currentMonth:c,visibleDays:this.getModifiers((0,O.default)(c,o,r,s))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.add(n),(0,a.default)({},t,I({},o,(0,a.default)({},r,I({},f,i))))},p);else{var b=(0,w.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.add(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,m))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,o){for(var r=e,a=t.clone();(0,g.default)(a,n);)r=this.addModifier(r,a,o),a=a.clone().add(1,"day");return r}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===E.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,k.default)(t,d,h,i))return e;var f=(0,D.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.delete(n),(0,a.default)({},t,I({},o,(0,a.default)({},r,I({},f,i))))},p);else{var b=(0,w.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.delete(n),p=(0,a.default)({},p,I({},b,(0,a.default)({},v,I({},f,m))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,o){for(var r=e,a=t.clone();(0,g.default)(a,n);)r=this.deleteModifier(r,a,o),a=a.clone().add(1,"day");return r}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.isOutsideRange,r=t.focusedInput,a=t.minimumNights;if(r!==E.END_DATE)return!1;if(n){var i=e.diff(n.clone().startOf("day").hour(12),"days");return i=0}return o((0,u.default)(e).subtract(a,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate,r=t.minimumNights,a=(this.state||{}).hoverDate;return!!n&&!o&&!this.isBlocked(e)&&(0,v.default)(a,e)&&r>0&&(0,m.default)(a,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,m.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,m.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate,r=(this.state||{}).hoverDate,a=!!n&&!o&&(e.isBetween(n,r)||(0,m.default)(r,e)),i=!!o&&!n&&(e.isBetween(r,o)||(0,m.default)(r,e)),c=r&&!this.isBlocked(r);return(a||i)&&c}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,o=t.endDate;return e.isBetween(n,o)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,v.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,m.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,o=t.isOutsideRange;return n(e)||o(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,m.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,o=e.monthFormat,r=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.noNavButtons,l=e.onOutsideClick,u=e.withPortal,d=e.enableOutsideDays,h=e.firstDayOfWeek,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.focusedInput,v=e.renderCalendarDay,m=e.renderDayContents,y=e.renderCalendarInfo,g=e.renderMonthElement,O=e.calendarInfoPosition,k=e.onBlur,_=e.isFocused,D=e.showKeyboardShortcuts,w=e.isRTL,S=e.weekDayFormat,j=e.dayAriaLabelFormat,M=e.verticalHeight,C=e.noBorder,P=e.transitionDuration,E=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.phrases,N=I.visibleDays;return i.default.createElement(z.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:o,renderMonthText:r,withPortal:u,hidden:!b,initialVisibleMonth:function(){return x},daySize:p,onOutsideClick:l,navPrev:a,navNext:c,noNavButtons:s,renderCalendarDay:v,renderDayContents:m,renderCalendarInfo:y,renderMonthElement:g,calendarInfoPosition:O,firstDayOfWeek:h,hideKeyboardShortcutsPanel:f,isFocused:_,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,showKeyboardShortcuts:D,phrases:H,isRTL:w,weekDayFormat:S,dayAriaLabelFormat:j,verticalHeight:M,verticalBorderSpacing:E,noBorder:C,transitionDuration:P,horizontalMonthPadding:T})}}()}]),t}();t.default=R,R.propTypes=x,R.defaultProps=H},function(e,t,n){"use strict";var o=n(73),r=n(190),a=n(191),i=n(324),c=a();o(c,{getPolyfill:a,implementation:r,shim:i}),e.exports=c},function(e,t,n){"use strict";var o=n(166),r=n(91),a=n(74).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=o.RequireObjectCoercible(e),n=[];for(var i in t)r(t,i)&&a(t,i)&&n.push(t[i]);return n}},function(e,t,n){"use strict";var o=n(190);e.exports=function(){return"function"==typeof Object.values?Object.values:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!o.default.isMoment(e)||!o.default.isMoment(t))return!1;var n=(0,o.default)(e).add(1,"day");return(0,r.default)(n,t)};var o=a(n(29)),r=a(n(79));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!o.default.isMoment(e))return{};for(var i={},c=a?e.clone():e.clone().subtract(1,"month"),s=0;s<(a?t:t+2);s+=1){var l=[],u=c.clone(),d=u.clone().startOf("month").hour(12),h=u.clone().endOf("month").hour(12),f=d.clone();if(n)for(var p=0;p0&&this.setState({visibleDays:(0,a.default)({},D,z)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,u.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,o=n.onDateChange,r=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;o(e),r||(a({focused:!1}),i({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,o=t.visibleDays,r=this.deleteModifier({},n,"hovered");r=this.addModifier(r,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},o,r)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var o=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,o)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach(function(e){s[e]=c[e]});var l=i.clone().subtract(1,"month"),u=(0,m.default)(l,1,o);this.setState({currentMonth:l,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(l.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,o=e.enableOutsideDays,r=this.state,i=r.currentMonth,c=r.visibleDays,s={};Object.keys(c).sort().slice(1).forEach(function(e){s[e]=c[e]});var l=i.clone().add(n,"month"),u=(0,m.default)(l,1,o),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},function(){t(d.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===w.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,o=t.enableOutsideDays,r=t.orientation===w.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,o,r);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(r&&(i=r.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,v.default)(l,s);)l=l.clone().add(1,"day"),c.push(l);var u=c.filter(function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)});if(u.length>0){var d=o(u,1);i=d[0]}}return i}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]={},e[o].forEach(function(e){n[o][(0,g.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,o=e.date,r=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(o?function(){return o}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,r,a))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===w.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.add(n),(0,a.default)({},t,M({},o,(0,a.default)({},r,M({},f,i))))},p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.add(n),p=(0,a.default)({},p,M({},b,(0,a.default)({},v,M({},f,m))))}return p}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var o=this.props,r=o.numberOfMonths,i=o.enableOutsideDays,c=o.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,h=r;if(c===w.VERTICAL_SCROLLABLE?h=Object.keys(u).length:(d=d.clone().subtract(1,"month"),h+=2),!t||!(0,y.default)(t,d,h,i))return e;var f=(0,g.default)(t),p=(0,a.default)({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,o){var r=e[o]||u[o],i=new Set(r[f]);return i.delete(n),(0,a.default)({},t,M({},o,(0,a.default)({},r,M({},f,i))))},p);else{var b=(0,O.default)(t),v=e[b]||u[b],m=new Set(v[f]);m.delete(n),p=(0,a.default)({},p,M({},b,(0,a.default)({},v,M({},f,m))))}return p}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,o=t.isOutsideRange;return n(e)||o(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,b.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,b.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,b.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,o=e.monthFormat,r=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,h=e.hideKeyboardShortcutsPanel,f=e.daySize,p=e.firstDayOfWeek,b=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,k=e.isRTL,_=e.phrases,D=e.dayAriaLabelFormat,w=e.onBlur,j=e.showKeyboardShortcuts,M=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,E=e.transitionDuration,z=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,x=I.currentMonth,H=I.visibleDays;return i.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:H,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:o,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return x},firstDayOfWeek:p,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:r,renderCalendarDay:b,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,phrases:_,daySize:f,isRTL:k,showKeyboardShortcuts:j,weekDayFormat:M,dayAriaLabelFormat:D,verticalHeight:C,noBorder:P,transitionDuration:E,verticalBorderSpacing:z,horizontalMonthPadding:T})}}()}]),t}();t.default=E,E.propTypes=C,E.defaultProps=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=p(n(31)),r=p(n(64)),a=n(43),i=n(47),c=p(n(51)),s=p(n(92)),l=p(n(174)),u=p(n(175)),d=p(n(83)),h=p(n(75)),f=p(n(93));function p(e){return e&&e.__esModule?e:{default:e}}t.default={date:r.default.momentObj,onDateChange:o.default.func.isRequired,focused:o.default.bool,onFocusChange:o.default.func.isRequired,id:o.default.string.isRequired,placeholder:o.default.string,disabled:o.default.bool,required:o.default.bool,readOnly:o.default.bool,screenReaderInputMessage:o.default.string,showClearDate:o.default.bool,customCloseIcon:o.default.node,showDefaultInputIcon:o.default.bool,inputIconPosition:s.default,customInputIcon:o.default.node,noBorder:o.default.bool,block:o.default.bool,small:o.default.bool,regular:o.default.bool,verticalSpacing:a.nonNegativeInteger,keepFocusOnInput:o.default.bool,renderMonthText:(0,a.mutuallyExclusiveProps)(o.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,a.mutuallyExclusiveProps)(o.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:u.default,openDirection:d.default,horizontalMargin:o.default.number,withPortal:o.default.bool,withFullScreenPortal:o.default.bool,appendToBody:o.default.bool,disableScroll:o.default.bool,initialVisibleMonth:o.default.func,firstDayOfWeek:h.default,numberOfMonths:o.default.number,keepOpenOnDateSelect:o.default.bool,reopenPickerOnClearDate:o.default.bool,renderCalendarInfo:o.default.func,calendarInfoPosition:f.default,hideKeyboardShortcutsPanel:o.default.bool,daySize:a.nonNegativeInteger,isRTL:o.default.bool,verticalHeight:a.nonNegativeInteger,transitionDuration:a.nonNegativeInteger,horizontalMonthPadding:a.nonNegativeInteger,navPrev:o.default.node,navNext:o.default.node,onPrevMonthClick:o.default.func,onNextMonthClick:o.default.func,onClose:o.default.func,renderCalendarDay:o.default.func,renderDayContents:o.default.func,enableOutsideDays:o.default.bool,isDayBlocked:o.default.func,isOutsideRange:o.default.func,isDayHighlighted:o.default.func,displayFormat:o.default.oneOfType([o.default.string,o.default.func]),monthFormat:o.default.string,weekDayFormat:o.default.string,phrases:o.default.shape((0,c.default)(i.SingleDatePickerPhrases)),dayAriaLabelFormat:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===o(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,c.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=l},function(e,t,n){"use strict";var o,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},a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(e),o.removeAllRanges(),o.addRange(r),t=o.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)s[111+h]="f"+h;for(h=0;h<=9;++h)s[h+96]=h.toString();y.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==a&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);c=null},y.init=function(){var e=y(a);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),r.Mousetrap=y,e.exports&&(e.exports=y),void 0===(o=function(){return y}.call(t,n,t,e))||(e.exports=o)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function b(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t,n){return n||(n=function(){if(!c)for(var e in c={},s)e>95&&e<112||s.hasOwnProperty(e)&&(c[s[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,o,r,a=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r1?h(e,c,n,o):(i=m(e,o),t._callbacks[i.key]=t._callbacks[i.key]||[],l(i.key,i.modifiers,{type:i.action},r,e,a),t._callbacks[i.key][r?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:r,level:a,combo:e}))}t._handleKey=function(e,t,n){var o,r=l(e,t,n),a={},d=0,h=!1;for(o=0;o=0&&"[object Function]"===o.call(e.callee)),n}},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function(e,t,r){if("[object Function]"!==o.call(t))throw new TypeError("iterator must be a function");var a=e.length;if(a===+a)for(var i=0;i= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n}});delete a.EnumerableOwnNames,e.exports=a},function(e,t,n){"use strict";var o=n(90),r=n(210),a=n(134),i=a("%TypeError%"),c=a("%SyntaxError%"),s=a("%Array%"),l=a("%String%"),u=a("%Object%"),d=a("%Number%"),h=a("%Symbol%",!0),f=a("%RegExp%"),p=!!h,b=n(135),v=n(136),m=d.MAX_SAFE_INTEGER||Math.pow(2,53)-1,y=n(108),g=n(137),O=n(138),k=n(214),_=parseInt,D=n(70),M=D.call(Function.call,s.prototype.slice),w=D.call(Function.call,l.prototype.slice),S=D.call(Function.call,f.prototype.test,/^0b[01]+$/i),j=D.call(Function.call,f.prototype.test,/^0o[0-7]+$/i),C=D.call(Function.call,f.prototype.exec),P=new f("["+["…","​","￾"].join("")+"]","g"),E=D.call(Function.call,f.prototype.test,P),z=D.call(Function.call,f.prototype.test,/^[-+]0x[0-9a-f]+$/i),T=D.call(Function.call,l.prototype.charCodeAt),I=D.call(Function.call,Object.prototype.toString),x=Math.floor,H=Math.abs,N=Object.create,R=u.getOwnPropertyDescriptor,L=u.isExtensible,A=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),F=new RegExp("(^["+A+"]+)|(["+A+"]+$)","g"),V=D.call(Function.call,l.prototype.replace),B=n(215),K=n(217),W=y(y({},B),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new i(e+" is not a function");return e.apply(t,n)},ToPrimitive:r,ToNumber:function(e){var t=k(e)?e:r(e,d);if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a number");if("string"==typeof t){if(S(t))return this.ToNumber(_(w(t,2),2));if(j(t))return this.ToNumber(_(w(t,2),8));if(E(t)||z(t))return NaN;var n=function(e){return V(e,F,"")}(t);if(n!==t)return this.ToNumber(n)}return d(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(b(t)||0===t||!v(t))return 0;var n=g(t)*x(H(t));return O(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(b(t)||t<=0)return 0;if(t>=255)return 255;var n=x(e);return n+.5m?m:t},CanonicalNumericIndexString:function(e){if("[object String]"!==I(e))throw new i("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:B.CheckObjectCoercible,IsArray:s.isArray||function(e){return"[object Array]"===I(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!k(e)&&L(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||b(e)||!v(e))return!1;var t=H(e);return x(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(p){var t=e[h.match];if(void 0!==t)return B.ToBoolean(t)}return K(e)},SameValueZero:function(e,t){return e===t||b(e)&&b(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new i(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":B.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new i("O.constructor is not an Object");var o=p&&h.species?n[h.species]:void 0;if(null==o)return t;if(this.IsConstructor(o))return o;throw new i("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(o(e,"[[Value]]")||(e["[[Value]]"]=void 0),o(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(o(e,"[[Get]]")||(e["[[Get]]"]=void 0),o(e,"[[Set]]")||(e["[[Set]]"]=void 0)),o(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),o(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,o){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");if("Boolean"!==this.Type(o))throw new i("Throw must be a Boolean");if(o)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");return o(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(p&&"symbol"==typeof h.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");var n=M(arguments,2),o=this.GetV(e,t);return this.Call(o,e,n)},GetIterator:function(e,t){if(!p)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,h.iterator));var o=this.Call(n,e);if("Object"!==this.Type(o))throw new i("iterator must return an object");return o},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new i("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new i("Assertion failed: completion is not a thunk for a Completion Record");var n,o=t,r=this.GetMethod(e,"return");if(void 0===r)return o();try{var a=this.Call(r,e,[])}catch(e){throw n=o(),o=null,e}if(n=o(),o=null,"Object"!==this.Type(a))throw new i("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new i("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new i("R must be an Object");if("String"!==this.Type(t))throw new i("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var o=this.Call(n,e,[t]);if(null===o||"Object"===this.Type(o))return o;throw new i('"exec" method must return `null` or an Object')}return C(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new i("Assertion failed: length must be an integer >= 0");var n,o=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&p&&h.species&&null===(n=this.Get(n,h.species))&&(n=void 0)),void 0===n)return s(o);if(!this.IsConstructor(n))throw new i("C must be a constructor");return new n(o)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var o=R(e,t),r=o||"function"!=typeof L||L(e);if(o&&(!o.writable||!o.configurable)||!r)return!1;var a={configurable:!0,enumerable:!0,value:n,writable:!0};return Object.defineProperty(e,t,a),!0},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var o=this.CreateDataProperty(e,t,n);if(!o)throw new i("unable to create data property");return o},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new i("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new c("es-abstract does not yet support internal slots");if(null===e&&!N)throw new c("native Object.create support is required to create null objects");return N(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new i("S must be a String");if(!this.IsInteger(t)||t<0||t>m)throw new i("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new i("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var o=T(e,t);if(o<55296||o>56319)return t+1;var r=T(e,t+1);return r<56320||r>57343?t+1:t+2}});delete W.CheckObjectCoercible,e.exports=W},function(e,t,n){"use strict";e.exports=n(211)},function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,r=n(131),a=n(107),i=n(212),c=n(132);e.exports=function(e){if(r(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),o&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!=n){if(!a(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var s=t.call(e,n);if(r(s))return s;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||c(e))&&(n="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,o,i,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(c(t)||0===t||!s(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return u(n,65536)},ToString:function(e){return i(e)},ToObject:function(e){return this.CheckObjectCoercible(e),r(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:c(e)&&c(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(f(e,n)&&!t[n])return!1;var o=f(e,"[[Value]]"),r=f(e,"[[Get]]")||f(e,"[[Set]]");if(o&&r)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");return!(!f(e,"[[Get]]")&&!f(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");return!(!f(e,"[[Value]]")&&!f(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new a("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new a("ToPropertyDescriptor requires an object");var t={};if(f(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),f(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),f(e,"value")&&(t["[[Value]]"]=e.value),f(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),f(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(f(e,"set")){var o=e.set;if(void 0!==o&&!this.IsCallable(o))throw new a("setter must be a function");t["[[Set]]"]=o}if((f(t,"[[Get]]")||f(t,"[[Set]]"))&&(f(t,"[[Value]]")||f(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=p},function(e,t,n){"use strict";var o=Object.prototype.toString,r=n(131),a=n(107),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===o.call(e)?String:Number)===String||t===Number){var n,i,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1?i(e,arguments[1]):i(e)}},function(e,t,n){"use strict";var o=n(90),r=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!o(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,r.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var o=n(66),r=n(139);e.exports=function(){var e=r();return o(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},function(e,t,n){"use strict";(function(t){var o=n(66),r=n(132),a="__ global cache key __";"function"==typeof Symbol&&r(Symbol("foo"))&&"function"==typeof Symbol.for&&(a=Symbol.for(a));var i=function(){return!0},c=function(){if(!t[a]){var e={};e[a]={};var n={};n[a]=i,o(t,e,n)}return t[a]},s=c(),l=function(e){return r(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},u=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[a],s=c()},delete:function(e){return u(e),delete s[l(e)],!d.has(e)},get:function(e){return u(e),s[l(e)]},has:function(e){return u(e),l(e)in s},set:function(e,t){u(e);var n=l(e),r={};r[n]=t;var a={};return a[n]=i,o(s,r,a),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n(51))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,o={},r=0;r>",baseInvalidMessage:"Invalid "};function o(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var o=e.bind(null,!1,t);return o.isRequired=e.bind(null,!0,t),o},t}function r(e,t,o){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+o+"`.")}var a=-1;e.exports={constructPropValidatorVariations:o,createMomentChecker:function(e,t,i,c){return o(function(o,s,l,u,d,h,f){var p=l[u],b=typeof p,v=function(e,t,n,o){var i=void 0===o,c=null===o;if(e){if(i)return r(n,t,"undefined");if(c)return r(n,t,"null")}return i||c?null:a}(o,d=d||n.anonymousMessage,f=f||u,p);if(v!==a)return v;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+b+"` supplied to `"+d+"`, expected `"+e+"`.");if(!i(p))return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+b+"` supplied to `"+d+"`, expected `"+c+"`.");if(s&&!s(p)){var m=s.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+b+"` supplied to `"+d+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null})},messages:n}},function(e,t,n){"use strict";function o(){return null}function r(){return o}o.isRequired=o,e.exports={and:r,between:r,booleanSome:r,childrenHavePropXorChildren:r,childrenOf:r,childrenOfType:r,childrenSequenceOf:r,componentWithName:r,disallowedIf:r,elementType:r,empty:r,explicitNull:r,forbidExtraProps:Object,integer:r,keysOf:r,mutuallyExclusiveProps:r,mutuallyExclusiveTrueProps:r,nChildren:r,nonNegativeInteger:o,nonNegativeNumber:r,numericString:r,object:r,or:r,range:r,requiredBy:r,restrictedProp:r,sequenceOf:r,shape:r,stringStartsWith:r,uniqueArray:r,uniqueArrayOf:r,valuesOf:r,withShape:r}},function(e,t,n){"use strict";var o=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){var n;return t&&!0===t.clone&&o(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e}function i(e,t,n){var r=e.slice();return t.forEach(function(t,i){void 0===r[i]?r[i]=a(t,n):o(t)?r[i]=c(e[i],t,n):-1===e.indexOf(t)&&r.push(a(t,n))}),r}function c(e,t,n){var r=Array.isArray(t);return r===Array.isArray(e)?r?((n||{arrayMerge:i}).arrayMerge||i)(e,t,n):function(e,t,n){var r={};return o(e)&&Object.keys(e).forEach(function(t){r[t]=a(e[t],n)}),Object.keys(t).forEach(function(i){o(t[i])&&e[i]?r[i]=c(e[i],t[i],n):r[i]=a(t[i],n)}),r}(e,t,n):a(t,n)}c.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return c(e,n,t)})};var s=c;e.exports=s},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(30),a=(o=r)&&o.__esModule?o:{default:o};t.default=a.default.shape({getState:a.default.func,setState:a.default.func,subscribe:a.default.func})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var o=c(n(26)),r=n(39),a=c(n(109)),i=c(n(235));function c(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.forbidExtraProps)({children:(0,r.or)([(0,r.childrenOfType)(a.default),(0,r.childrenOfType)(i.default)]).isRequired});function l(e){var t=e.children;return o.default.createElement("tr",null,t)}l.propTypes=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var o=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var o=e.clone().startOf("month").hour(12),r=e.clone().endOf("month").hour(12),c=(o.day()+7-n)%7,s=(n+6-r.day())%7,l=o.clone().subtract(c,"day"),u=r.clone().add(s,"day").diff(l,"days")+1,d=l.clone(),h=[],f=0;f=c&&f=t||n<0||m&&e-b>=d}function k(){var e=r();if(O(e))return _(e);f=setTimeout(k,function(e){var n=t-(e-p);return m?s(n,d-(e-b)):n}(e))}function _(e){return f=void 0,y&&l?g(e):(l=u=void 0,h)}function D(){var e=r(),n=O(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return function(e){return b=e,f=setTimeout(k,t),v?g(e):h}(p);if(m)return f=setTimeout(k,t),g(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=a(t)||0,o(n)&&(v=!!n.leading,d=(m="maxWait"in n)?c(a(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),D.cancel=function(){void 0!==f&&clearTimeout(f),b=0,l=p=u=f=void 0},D.flush=function(){return void 0===f?h:_(r())},D}},function(e,t,n){var o=n(163);e.exports=function(){return o.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(51))},function(e,t,n){var o=n(115),r=n(249),a=NaN,i=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):c.test(e)?a:+e}},function(e,t,n){var o=n(250),r=n(253),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||r(e)&&o(e)==a}},function(e,t,n){var o=n(164),r=n(251),a=n(252),i="[object Null]",c="[object Undefined]",s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?c:i:s&&s in Object(e)?r(e):a(e)}},function(e,t,n){var o=n(164),r=Object.prototype,a=r.hasOwnProperty,i=r.toString,c=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var o=!0}catch(e){}var r=i.call(e);return o&&(t?e[c]=n:delete e[c]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return e?n(e(t.clone())):t};var o=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:a.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var o,r=n(27),a=(o=r)&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var o=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=n.split(" "),i=Object(h.a)(a,2),c=i[0],s=i[1],l=void 0===s?"center":s,u=function(e,t,n){var o,r=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-r/2>0?r/2:a)+(a+r/2>window.innerHeight?window.innerHeight-a:r/2)},c={popoverTop:e.top,contentHeight:e.top-N-r>0?r:e.top-N},s={popoverTop:e.bottom,contentHeight:e.bottom+N+r>window.innerHeight?window.innerHeight-N-e.bottom:r},l=null;if("middle"===n&&i.contentHeight===r)o="middle";else if("top"===n&&c.contentHeight===r)o="top";else if("bottom"===n&&s.contentHeight===r)o="bottom";else{var u="top"==(o=c.contentHeight>s.contentHeight?"top":"bottom")?c.contentHeight:s.contentHeight;l=u!==r?u:null}return{yAxis:o,popoverTop:"middle"===o?i.popoverTop:"top"===o?c.popoverTop:s.popoverTop,contentHeight:l}}(e,t,c),d=function(e,t,n,o){var r=t.width;"left"===n&&L()?n="right":"right"===n&&L()&&(n="left");var a,i=Math.round(e.left+e.width/2),c={popoverLeft:i,contentWidth:(i-r/2>0?r/2:i)+(i+r/2>window.innerWidth?window.innerWidth-i:r/2)},s="middle"===o?e.left:i,l={popoverLeft:s,contentWidth:s-r>0?r:s},u="middle"===o?e.right:i,d={popoverLeft:u,contentWidth:u+r>window.innerWidth?window.innerWidth-u:r},h=null;if("center"===n&&c.contentWidth===r)a="center";else if("left"===n&&l.contentWidth===r)a="left";else if("right"===n&&d.contentWidth===r)a="right";else{var f="left"==(a=l.contentWidth>d.contentWidth?"left":"right")?l.contentWidth:d.contentWidth;h=f!==r?f:null}return{xAxis:a,popoverLeft:"center"===a?c.popoverLeft:"left"===a?l.popoverLeft:d.popoverLeft,contentWidth:h}}(e,t,l,u.yAxis);return Object(o.a)({isMobile:R()&&r},d,u)}var F=Object(S.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).setIsFocusedTrue=function(){return e.isFocused=!0},e.setIsFocusedFalse=function(){return e.isFocused=!1},e.activeElementOnMount=document.activeElement,e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused;if(e){var n=document,o=n.body,r=n.activeElement;(t||null===r||o===r)&&e.focus()}}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(r.createElement)(e,this.props))}}]),n}(r.Component)},"withFocusReturn"),V=Object(S.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).focusContainRef=Object(r.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===M.TAB){var t=C.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],o=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),o.focus()):(e.shiftKey||e.target!==o)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(r.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(r.createElement)(e,this.props))}}]),n}(r.Component)},"withConstrainedTabbing"),B=n(98),K=n.n(B),W=function(e){function t(){return Object(v.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(O.a)(t,e),Object(g.a)(t,[{key:"handleClickOutside",value:function(e){var t=this.props.onClickOutside;t&&t(e)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component),U=K()(W);var Y=function(e){var t,n,o=e.shortcut,a=e.className;return o?(Object(D.isString)(o)&&(t=o),Object(D.isObject)(o)&&(t=o.display,n=o.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null},$=700,G=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).delayedSetIsOver=Object(D.debounce)(function(t){return e.setState({isOver:t})},$),e.state={isOver:!1},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel()}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===r.Children.count(n)){var o=r.Children.only(n);"function"==typeof o.props[e]&&o.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(o){if(n.emitToChild(e,o),!o.currentTarget.disabled){n.delayedSetIsOver.cancel();var r=Object(D.includes)(["focus","mouseenter"],o.type);r!==n.state.isOver&&(t?n.delayedSetIsOver(r):n.setState({isOver:r}))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,o=e.text,a=e.shortcut;if(1!==r.Children.count(t))return t;var i=r.Children.only(t),c=this.state.isOver;return Object(r.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),children:Object(r.concatChildren)(i.props.children,c&&Object(r.createElement)(he,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},o,Object(r.createElement)(Y,{className:"components-tooltip__shortcut",shortcut:a})))})}}]),t}(r.Component),q=function(e){function t(){return Object(v.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(O.a)(t,e),Object(g.a)(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.icon!==e.icon||this.props.size!==e.size||this.props.className!==e.className||this.props.ariaPressed!==e.ariaPressed}},{key:"render",value:function(){var e,t=this.props,n=t.icon,o=t.size,a=void 0===o?20:o;switch(n){case"admin-appearance":e="M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z";break;case"admin-collapse":e="M10 2.16c4.33 0 7.84 3.51 7.84 7.84s-3.51 7.84-7.84 7.84S2.16 14.33 2.16 10 5.71 2.16 10 2.16zm2 11.72V6.12L6.18 9.97z";break;case"admin-comments":e="M5 2h9c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z";break;case"admin-customizer":e="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z";break;case"admin-generic":e="M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z";break;case"admin-home":e="M16 8.5l1.53 1.53-1.06 1.06L10 4.62l-6.47 6.47-1.06-1.06L10 2.5l4 4v-2h2v4zm-6-2.46l6 5.99V18H4v-5.97zM12 17v-5H8v5h4z";break;case"admin-links":e="M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z";break;case"admin-media":e="M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z";break;case"admin-multisite":e="M14.27 6.87L10 3.14 5.73 6.87 5 6.14l5-4.38 5 4.38zM14 8.42l-4.05 3.43L6 8.38v-.74l4-3.5 4 3.5v.78zM11 9.7V8H9v1.7h2zm-1.73 4.03L5 10 .73 13.73 0 13l5-4.38L10 13zm10 0L15 10l-4.27 3.73L10 13l5-4.38L20 13zM5 11l4 3.5V18H1v-3.5zm10 0l4 3.5V18h-8v-3.5zm-9 6v-2H4v2h2zm10 0v-2h-2v2h2z";break;case"admin-network":e="M16.95 2.58c1.96 1.95 1.96 5.12 0 7.07-1.51 1.51-3.75 1.84-5.59 1.01l-1.87 3.31-2.99.31L5 18H2l-1-2 7.95-7.69c-.92-1.87-.62-4.18.93-5.73 1.95-1.96 5.12-1.96 7.07 0zm-2.51 3.79c.74 0 1.33-.6 1.33-1.34 0-.73-.59-1.33-1.33-1.33-.73 0-1.33.6-1.33 1.33 0 .74.6 1.34 1.33 1.34z";break;case"admin-page":e="M6 15V2h10v13H6zm-1 1h8v2H3V5h2v11z";break;case"admin-plugins":e="M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z";break;case"admin-post":e="M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z";break;case"admin-settings":e="M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z";break;case"admin-site-alt":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z";break;case"admin-site-alt2":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm2.92 12.34c0 .35.14.63.36.66.22.03.47-.22.58-.6l.2.08c.718.384 1.07 1.22.84 2-.15.69-.743 1.198-1.45 1.24-.49-1.21-2.11.06-3.56-.22-.612-.154-1.11-.6-1.33-1.19 1.19-.11 2.85-1.73 4.36-1.97zM8 11.27c.918 0 1.695-.68 1.82-1.59.44.54.41 1.324-.07 1.83-.255.223-.594.325-.93.28-.335-.047-.635-.236-.82-.52zm3-.76c.41.39 3-.06 3.52 1.09-.95-.2-2.95.61-3.47-1.08l-.05-.01zM9.73 5.45v.27c-.65-.77-1.33-1.07-1.61-.57-.28.5 1 1.11.76 1.88-.24.77-1.27.56-1.88 1.61-.61 1.05-.49 2.42 1.24 3.67-1.192-.132-2.19-.962-2.54-2.11-.4-1.2-.09-2.26-.78-2.46C4 7.46 3 8.71 3 9.8c-1.26-1.26.05-2.86-1.2-4.18C3.5 1.998 7.644.223 11.44 1.49c-1.1 1.02-1.722 2.458-1.71 3.96z";break;case"admin-site-alt3":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z";break;case"admin-site":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm3.46 11.95c0 1.47-.8 3.3-4.06 4.7.3-4.17-2.52-3.69-3.2-5 .126-1.1.804-2.063 1.8-2.55-1.552-.266-3-.96-4.18-2 .05.47.28.904.64 1.21-.782-.295-1.458-.817-1.94-1.5.977-3.225 3.883-5.482 7.25-5.63-.84 1.38-1.5 4.13 0 5.57C7.23 7 6.26 5 5.41 5.79c-1.13 1.06.33 2.51 3.42 3.08 3.29.59 3.66 1.58 3.63 3.08zm1.34-4c-.32-1.11.62-2.23 1.69-3.14 1.356 1.955 1.67 4.45.84 6.68-.77-1.89-2.17-2.32-2.53-3.57v.03z";break;case"admin-tools":e="M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z";break;case"admin-users":e="M10 9.25c-2.27 0-2.73-3.44-2.73-3.44C7 4.02 7.82 2 9.97 2c2.16 0 2.98 2.02 2.71 3.81 0 0-.41 3.44-2.68 3.44zm0 2.57L12.72 10c2.39 0 4.52 2.33 4.52 4.53v2.49s-3.65 1.13-7.24 1.13c-3.65 0-7.24-1.13-7.24-1.13v-2.49c0-2.25 1.94-4.48 4.47-4.48z";break;case"album":e="M0 18h10v-.26c1.52.4 3.17.35 4.76-.24 4.14-1.52 6.27-6.12 4.75-10.26-1.43-3.89-5.58-6-9.51-4.98V2H0v16zM9 3v14H1V3h8zm5.45 8.22c-.68 1.35-2.32 1.9-3.67 1.23-.31-.15-.57-.35-.78-.59V8.13c.8-.86 2.11-1.13 3.22-.58 1.35.68 1.9 2.32 1.23 3.67zm-2.75-.82c.22.16.53.12.7-.1.16-.22.12-.53-.1-.7s-.53-.12-.7.1c-.16.21-.12.53.1.7zm3.01 3.67c-1.17.78-2.56.99-3.83.69-.27-.06-.44-.34-.37-.61s.34-.43.62-.36l.17.04c.96.17 1.98-.01 2.86-.59.47-.32.86-.72 1.14-1.18.15-.23.45-.3.69-.16.23.15.3.46.16.69-.36.57-.84 1.08-1.44 1.48zm1.05 1.57c-1.48.99-3.21 1.32-4.84 1.06-.28-.05-.47-.32-.41-.6.05-.27.32-.45.61-.39l.22.04c1.31.15 2.68-.14 3.87-.94.71-.47 1.27-1.07 1.7-1.74.14-.24.45-.31.68-.16.24.14.31.45.16.69-.49.79-1.16 1.49-1.99 2.04z";break;case"align-center":e="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z";break;case"align-full-width":e="M17 13V3H3v10h14zM5 17h10v-2H5v2z";break;case"align-left":e="M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z";break;case"align-none":e="M3 5h14V3H3v2zm10 8V7H3v6h10zM3 17h14v-2H3v2z";break;case"align-pull-left":e="M9 16V4H3v12h6zm2-7h6V7h-6v2zm0 4h6v-2h-6v2z";break;case"align-pull-right":e="M17 16V4h-6v12h6zM9 7H3v2h6V7zm0 4H3v2h6v-2z";break;case"align-right":e="M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z";break;case"align-wide":e="M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z";break;case"analytics":e="M18 18V2H2v16h16zM16 5H4V4h12v1zM7 7v3h3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3zm1 2V7c1.1 0 2 .9 2 2H8zm8-1h-4V7h4v1zm0 3h-4V9h4v2zm0 2h-4v-1h4v1zm0 3H4v-1h12v1z";break;case"archive":e="M19 4v2H1V4h18zM2 7h16v10H2V7zm11 3V9H7v1h6z";break;case"arrow-down-alt":e="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z";break;case"arrow-down-alt2":e="M5 6l5 5 5-5 2 1-7 7-7-7z";break;case"arrow-down":e="M15 8l-4.03 6L7 8h8z";break;case"arrow-left-alt":e="M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z";break;case"arrow-left-alt2":e="M14 5l-5 5 5 5-1 2-7-7 7-7z";break;case"arrow-left":e="M13 14L7 9.97 13 6v8z";break;case"arrow-right-alt":e="M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z";break;case"arrow-right-alt2":e="M6 15l5-5-5-5 1-2 7 7-7 7z";break;case"arrow-right":e="M8 6l6 4.03L8 14V6z";break;case"arrow-up-alt":e="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z";break;case"arrow-up-alt2":e="M15 14l-5-5-5 5-2-1 7-7 7 7z";break;case"arrow-up":e="M7 13l4.03-6L15 13H7z";break;case"art":e="M8.55 3.06c1.01.34-1.95 2.01-.1 3.13 1.04.63 3.31-2.22 4.45-2.86.97-.54 2.67-.65 3.53 1.23 1.09 2.38.14 8.57-3.79 11.06-3.97 2.5-8.97 1.23-10.7-2.66-2.01-4.53 3.12-11.09 6.61-9.9zm1.21 6.45c.73 1.64 4.7-.5 3.79-2.8-.59-1.49-4.48 1.25-3.79 2.8z";break;case"awards":e="M4.46 5.16L5 7.46l-.54 2.29 2.01 1.24L7.7 13l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L15 7.46l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C7.79 11.5 6 9.71 6 7.49c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C8.33 10.5 7 9.16 7 7.5c0-1.65 1.33-3 2.99-3S13 5.85 13 7.5c0 1.66-1.35 3-3.01 3zm3.84 1.1l-1.28 2.24-2.08-.47L13 19.2l1.4-2.2h2.5zm-7.7.07l1.25 2.25 2.13-.51L7 19.2 5.6 17H3.1z";break;case"backup":e="M13.65 2.88c3.93 2.01 5.48 6.84 3.47 10.77s-6.83 5.48-10.77 3.47c-1.87-.96-3.2-2.56-3.86-4.4l1.64-1.03c.45 1.57 1.52 2.95 3.08 3.76 3.01 1.54 6.69.35 8.23-2.66 1.55-3.01.36-6.69-2.65-8.24C9.78 3.01 6.1 4.2 4.56 7.21l1.88.97-4.95 3.08-.39-5.82 1.78.91C4.9 2.4 9.75.89 13.65 2.88zm-4.36 7.83C9.11 10.53 9 10.28 9 10c0-.07.03-.12.04-.19h-.01L10 5l.97 4.81L14 13l-4.5-2.12.02-.02c-.08-.04-.16-.09-.23-.15z";break;case"block-default":e="M15 6V4h-3v2H8V4H5v2H4c-.6 0-1 .4-1 1v8h14V7c0-.6-.4-1-1-1h-1z";break;case"book-alt":e="M5 17h13v2H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h13v14H5c-.55 0-1 .45-1 1s.45 1 1 1zm2-3.5v-11c0-.28-.22-.5-.5-.5s-.5.22-.5.5v11c0 .28.22.5.5.5s.5-.22.5-.5z";break;case"book":e="M16 3h2v16H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h9v14H5c-.55 0-1 .45-1 1s.45 1 1 1h11V3z";break;case"buddicons-activity":e="M8 1v7h2V6c0-1.52 1.45-3 3-3v.86c.55-.52 1.26-.86 2-.86v3h1c1.1 0 2 .9 2 2s-.9 2-2 2h-1v6c0 .55-.45 1-1 1s-1-.45-1-1v-2.18c-.31.11-.65.18-1 .18v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H8v2c0 .55-.45 1-1 1s-1-.45-1-1v-2c-.35 0-.69-.07-1-.18V16c0 .55-.45 1-1 1s-1-.45-1-1v-4H2v-1c0-1.66 1.34-3 3-3h2V1h1zm5 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z";break;case"buddicons-bbpress-logo":e="M8.5 12.6c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.3 1.7c-.3 1 .3 1.5 1 1.5 1.2 0 1.9-1.1 2.2-2.4zm-4-6.4C3.7 7.3 3.3 8.6 3.3 10c0 1 .2 1.9.6 2.8l1-4.6c.3-1.7.4-2-.4-2zm9.3 6.4c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.4 1.7c-.2 1.1.4 1.6 1.1 1.6 1.1-.1 1.9-1.2 2.2-2.5zM10 3.3c-2 0-3.9.9-5.1 2.3.6-.1 1.4-.2 1.8-.3.2 0 .2.1.2.2 0 .2-1 4.8-1 4.8.5-.3 1.2-.7 1.8-.7.9 0 1.5.4 1.9.9l.5-2.4c.4-1.6.4-1.9-.4-1.9-.4 0-.4-.5 0-.6.6-.1 1.8-.2 2.3-.3.2 0 .2.1.2.2l-1 4.8c.5-.4 1.2-.7 1.9-.7 1.7 0 2.5 1.3 2.1 3-.3 1.7-2 3-3.8 3-1.3 0-2.1-.7-2.3-1.4-.7.8-1.7 1.3-2.8 1.4 1.1.7 2.4 1.1 3.7 1.1 3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM10 2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 15.5c-2.1 0-4-.8-5.3-2.2-.3-.4-.7-.8-1-1.2-.7-1.2-1.2-2.6-1.2-4.1 0-4.1 3.4-7.5 7.5-7.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5z";break;case"buddicons-buddypress-logo":e="M10 0c5.52 0 10 4.48 10 10s-4.48 10-10 10S0 15.52 0 10 4.48 0 10 0zm0 .5C4.75.5.5 4.75.5 10s4.25 9.5 9.5 9.5 9.5-4.25 9.5-9.5S15.25.5 10 .5zm0 1c4.7 0 8.5 3.8 8.5 8.5s-3.8 8.5-8.5 8.5-8.5-3.8-8.5-8.5S5.3 1.5 10 1.5zm1.8 1.71c-.57 0-1.1.17-1.55.45 1.56.37 2.73 1.77 2.73 3.45 0 .69-.21 1.33-.55 1.87 1.31-.29 2.29-1.45 2.29-2.85 0-1.61-1.31-2.92-2.92-2.92zm-2.38 1c-1.61 0-2.92 1.31-2.92 2.93 0 1.61 1.31 2.92 2.92 2.92 1.62 0 2.93-1.31 2.93-2.92 0-1.62-1.31-2.93-2.93-2.93zm4.25 5.01l-.51.59c2.34.69 2.45 3.61 2.45 3.61h1.28c0-4.71-3.22-4.2-3.22-4.2zm-2.1.8l-2.12 2.09-2.12-2.09C3.12 10.24 3.89 15 3.89 15h11.08c.47-4.98-3.4-4.98-3.4-4.98z";break;case"buddicons-community":e="M9 3c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zm4 0c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zM9 9V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 0V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 1c0-1.48-1.41-2.77-3.5-3.46V9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5V6.01c-.17 0-.33-.01-.5-.01s-.33.01-.5.01V9c0 .83-.67 1.5-1.5 1.5S6.5 9.83 6.5 9V6.54C4.41 7.23 3 8.52 3 10c0 1.41.95 2.65 3.21 3.37 1.11.35 2.39 1.12 3.79 1.12s2.69-.78 3.79-1.13C16.04 12.65 17 11.41 17 10zm-7 5.43c1.43 0 2.74-.79 3.88-1.11 1.9-.53 2.49-1.34 3.12-2.32v3c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3c.64.99 1.32 1.8 3.15 2.33 1.13.33 2.44 1.1 3.85 1.1z";break;case"buddicons-forums":e="M13.5 7h-7C5.67 7 5 6.33 5 5.5S5.67 4 6.5 4h1.59C8.04 3.84 8 3.68 8 3.5 8 2.67 8.67 2 9.5 2h1c.83 0 1.5.67 1.5 1.5 0 .18-.04.34-.09.5h1.59c.83 0 1.5.67 1.5 1.5S14.33 7 13.5 7zM4 8h12c.55 0 1 .45 1 1s-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1zm1 3h10c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1s.45-1 1-1zm2 3h6c.55 0 1 .45 1 1s-.45 1-1 1h-1.09c.05.16.09.32.09.5 0 .83-.67 1.5-1.5 1.5h-1c-.83 0-1.5-.67-1.5-1.5 0-.18.04-.34.09-.5H7c-.55 0-1-.45-1-1s.45-1 1-1z";break;case"buddicons-friends":e="M8.75 5.77C8.75 4.39 7 2 7 2S5.25 4.39 5.25 5.77 5.9 7.5 7 7.5s1.75-.35 1.75-1.73zm6 0C14.75 4.39 13 2 13 2s-1.75 2.39-1.75 3.77S11.9 7.5 13 7.5s1.75-.35 1.75-1.73zM9 17V9c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm6 0V9c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-9-6l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2zm-6 3l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2z";break;case"buddicons-groups":e="M15.45 6.25c1.83.94 1.98 3.18.7 4.98-.8 1.12-2.33 1.88-3.46 1.78L10.05 18H9l-2.65-4.99c-1.13.16-2.73-.63-3.55-1.79-1.28-1.8-1.13-4.04.71-4.97.48-.24.96-.33 1.43-.31-.01.4.01.8.07 1.21.26 1.69 1.41 3.53 2.86 4.37-.19.55-.49.99-.88 1.25L9 16.58v-5.66C7.64 10.55 6.26 8.76 6 7c-.4-2.65 1-5 3.5-5s3.9 2.35 3.5 5c-.26 1.76-1.64 3.55-3 3.92v5.77l2.07-3.84c-.44-.23-.77-.71-.99-1.3 1.48-.83 2.65-2.69 2.91-4.4.06-.41.08-.82.07-1.22.46-.01.92.08 1.39.32z";break;case"buddicons-pm":e="M10 2c3 0 8 5 8 5v11H2V7s5-5 8-5zm7 14.72l-3.73-2.92L17 11l-.43-.37-2.26 1.3.24-4.31-8.77-.52-.46 4.54-1.99-.95L3 11l3.73 2.8-3.44 2.85.4.43L10 13l6.53 4.15z";break;case"buddicons-replies":e="M17.54 10.29c1.17 1.17 1.17 3.08 0 4.25-1.18 1.17-3.08 1.17-4.25 0l-.34-.52c0 3.66-2 4.38-2.95 4.98-.82-.6-2.95-1.28-2.95-4.98l-.34.52c-1.17 1.17-3.07 1.17-4.25 0-1.17-1.17-1.17-3.08 0-4.25 0 0 1.02-.67 2.1-1.3C3.71 7.84 3.2 6.42 3.2 4.88c0-.34.03-.67.08-1C3.53 5.66 4.47 7.22 5.8 8.3c.67-.35 1.85-.83 2.37-.92H8c-1.1 0-2-.9-2-2s.9-2 2-2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5h2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5c1.1 0 2 .9 2 2s-.9 2-2 2h-.17c.51.09 1.78.61 2.38.92 1.33-1.08 2.27-2.64 2.52-4.42.05.33.08.66.08 1 0 1.54-.51 2.96-1.36 4.11 1.08.63 2.09 1.3 2.09 1.3zM8.5 6.38c.5 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3-2c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-2.3 5.73c-.12.11-.19.26-.19.43.02.25.23.46.49.46h1c.26 0 .47-.21.49-.46 0-.15-.07-.29-.19-.43-.08-.06-.18-.11-.3-.11h-1c-.12 0-.22.05-.3.11zM12 12.5c0-.12-.06-.28-.19-.38-.09-.07-.19-.12-.31-.12h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z";break;case"buddicons-topics":e="M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53 0 2.12.6.6 1.56.56 2.12 0l5.66-5.66c.58-.58.59-1.53 0-2.12zm2.83 2.83c-.59-.59-1.54-.59-2.12 0l-5.66 5.66c-.59.58-.59 1.53 0 2.12.6.6 1.56.55 2.12 0l5.66-5.66c.58-.58.58-1.53 0-2.12zm1.06 6.72l4.18 4.18c.59.58.59 1.53 0 2.12s-1.54.59-2.12 0l-4.18-4.18-1.77 1.77c-.59.58-1.54.58-2.12 0-.59-.59-.59-1.54 0-2.13l5.66-5.65c.58-.59 1.53-.59 2.12 0 .58.58.58 1.53 0 2.12zM5 15c0-1.59-1.66-4-1.66-4S2 13.78 2 15s.6 2 1.34 2h.32C4.4 17 5 16.59 5 15z";break;case"buddicons-tracking":e="M10.98 6.78L15.5 15c-1 2-3.5 3-5.5 3s-4.5-1-5.5-3L9 6.82c-.75-1.23-2.28-1.98-4.29-2.03l2.46-2.92c1.68 1.19 2.46 2.32 2.97 3.31.56-.87 1.2-1.68 2.7-2.12l1.83 2.86c-1.42-.34-2.64.08-3.69.86zM8.17 10.4l-.93 1.69c.49.11 1 .16 1.54.16 1.35 0 2.58-.36 3.55-.95l-1.01-1.82c-.87.53-1.96.86-3.15.92zm.86 5.38c1.99 0 3.73-.74 4.74-1.86l-.98-1.76c-1 1.12-2.74 1.87-4.74 1.87-.62 0-1.21-.08-1.76-.21l-.63 1.15c.94.5 2.1.81 3.37.81z";break;case"building":e="M3 20h14V0H3v20zM7 3H5V1h2v2zm4 0H9V1h2v2zm4 0h-2V1h2v2zM7 6H5V4h2v2zm4 0H9V4h2v2zm4 0h-2V4h2v2zM7 9H5V7h2v2zm4 0H9V7h2v2zm4 0h-2V7h2v2zm-8 3H5v-2h2v2zm4 0H9v-2h2v2zm4 0h-2v-2h2v2zm-4 7H5v-6h6v6zm4-4h-2v-2h2v2zm0 3h-2v-2h2v2z";break;case"businessman":e="M7.3 6l-.03-.19c-.04-.37-.05-.73-.03-1.08.02-.36.1-.71.25-1.04.14-.32.31-.61.52-.86s.49-.46.83-.6c.34-.15.72-.23 1.13-.23.69 0 1.26.2 1.71.59s.76.87.91 1.44.18 1.16.09 1.78l-.03.19c-.01.09-.05.25-.11.48-.05.24-.12.47-.2.69-.08.21-.19.45-.34.72-.14.27-.3.49-.47.69-.18.19-.4.34-.67.48-.27.13-.55.19-.86.19s-.59-.06-.87-.19c-.26-.13-.49-.29-.67-.5-.18-.2-.34-.42-.49-.66-.15-.25-.26-.49-.34-.73-.09-.25-.16-.47-.21-.67-.06-.21-.1-.37-.12-.5zm9.2 6.24c.41.7.5 1.41.5 2.14v2.49c0 .03-.12.08-.29.13-.18.04-.42.13-.97.27-.55.12-1.1.24-1.65.34s-1.19.19-1.95.27c-.75.08-1.46.12-2.13.12-.68 0-1.39-.04-2.14-.12-.75-.07-1.4-.17-1.98-.27-.58-.11-1.08-.23-1.56-.34-.49-.11-.8-.21-1.06-.29L3 16.87v-2.49c0-.75.07-1.46.46-2.15s.81-1.25 1.5-1.68C5.66 10.12 7.19 10 8 10l1.67 1.67L9 13v3l1.02 1.08L11 16v-3l-.68-1.33L11.97 10c.77 0 2.2.07 2.9.52.71.45 1.21 1.02 1.63 1.72z";break;case"button":e="M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z";break;case"calendar-alt":e="M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z";break;case"calendar":e="M15 4h3v14H2V4h3V3c0-.83.67-1.5 1.5-1.5S8 2.17 8 3v1h4V3c0-.83.67-1.5 1.5-1.5S15 2.17 15 3v1zM6 3v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5S6 2.72 6 3zm7 0v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5s-.5.22-.5.5zm4 14V8H3v9h14zM7 16V9H5v7h2zm4 0V9H9v7h2zm4 0V9h-2v7h2z";break;case"camera":e="M6 5V3H3v2h3zm12 10V4H9L7 6H2v9h16zm-7-8c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z";break;case"carrot":e="M2 18.43c1.51 1.36 11.64-4.67 13.14-7.21.72-1.22-.13-3.01-1.52-4.44C15.2 5.73 16.59 9 17.91 8.31c.6-.32.99-1.31.7-1.92-.52-1.08-2.25-1.08-3.42-1.21.83-.2 2.82-1.05 2.86-2.25.04-.92-1.13-1.97-2.05-1.86-1.21.14-1.65 1.88-2.06 3-.05-.71-.2-2.27-.98-2.95-1.04-.91-2.29-.05-2.32 1.05-.04 1.33 2.82 2.07 1.92 3.67C11.04 4.67 9.25 4.03 8.1 4.7c-.49.31-1.05.91-1.63 1.69.89.94 2.12 2.07 3.09 2.72.2.14.26.42.11.62-.14.21-.42.26-.62.12-.99-.67-2.2-1.78-3.1-2.71-.45.67-.91 1.43-1.34 2.23.85.86 1.93 1.83 2.79 2.41.2.14.25.42.11.62-.14.21-.42.26-.63.12-.85-.58-1.86-1.48-2.71-2.32C2.4 13.69 1.1 17.63 2 18.43z";break;case"cart":e="M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z";break;case"category":e="M5 7h13v10H2V4h7l2 2H4v9h1V7z";break;case"chart-area":e="M18 18l.01-12.28c.59-.35.99-.99.99-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.47 1.48 1.14 1.8l-4.13 6.58c-.33-.24-.73-.38-1.16-.38-.84 0-1.55.51-1.85 1.24l-2.14-1.53c.09-.22.14-.46.14-.71 0-1.11-.89-2-2-2-1.1 0-2 .89-2 2 0 .73.4 1.36.98 1.71L1 18h17zM17 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM5 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5.85 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"chart-bar":e="M18 18V2h-4v16h4zm-6 0V7H8v11h4zm-6 0v-8H2v8h4z";break;case"chart-line":e="M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z";break;case"chart-pie":e="M10 10V3c3.87 0 7 3.13 7 7h-7zM9 4v7h7c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7z";break;case"clipboard":e="M11.9.39l1.4 1.4c1.61.19 3.5-.74 4.61.37s.18 3 .37 4.61l1.4 1.4c.39.39.39 1.02 0 1.41l-9.19 9.2c-.4.39-1.03.39-1.42 0L1.29 11c-.39-.39-.39-1.02 0-1.42l9.2-9.19c.39-.39 1.02-.39 1.41 0zm.58 2.25l-.58.58 4.95 4.95.58-.58c-.19-.6-.2-1.22-.15-1.82.02-.31.05-.62.09-.92.12-1 .18-1.63-.17-1.98s-.98-.29-1.98-.17c-.3.04-.61.07-.92.09-.6.05-1.22.04-1.82-.15zm4.02.93c.39.39.39 1.03 0 1.42s-1.03.39-1.42 0-.39-1.03 0-1.42 1.03-.39 1.42 0zm-6.72.36l-.71.7L15.44 11l.7-.71zM8.36 5.34l-.7.71 6.36 6.36.71-.7zM6.95 6.76l-.71.7 6.37 6.37.7-.71zM5.54 8.17l-.71.71 6.36 6.36.71-.71zM4.12 9.58l-.71.71 6.37 6.37.71-.71z";break;case"clock":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z";break;case"cloud-saved":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16h10c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5zm-6.3 5.9l-3.2-3.2 1.4-1.4 1.8 1.8 3.8-3.8 1.4 1.4-5.2 5.2z";break;case"cloud-upload":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z";break;case"cloud":e="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z";break;case"columns":e="M3 15h6V5H3v10zm8 0h6V5h-6v10z";break;case"controls-back":e="M2 10l10-6v3.6L18 4v12l-6-3.6V16z";break;case"controls-forward":e="M18 10L8 16v-3.6L2 16V4l6 3.6V4z";break;case"controls-pause":e="M5 16V4h3v12H5zm7-12h3v12h-3V4z";break;case"controls-play":e="M5 4l10 6-10 6V4z";break;case"controls-repeat":e="M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z";break;case"controls-skipback":e="M11.98 7.63l6-3.6v12l-6-3.6v3.6l-8-4.8v4.8h-2v-12h2v4.8l8-4.8v3.6z";break;case"controls-skipforward":e="M8 12.4L2 16V4l6 3.6V4l8 4.8V4h2v12h-2v-4.8L8 16v-3.6z";break;case"controls-volumeoff":e="M2 7h4l5-4v14l-5-4H2V7z";break;case"controls-volumeon":e="M2 7h4l5-4v14l-5-4H2V7zm12.69-2.46C14.82 4.59 18 5.92 18 10s-3.18 5.41-3.31 5.46c-.06.03-.13.04-.19.04-.2 0-.39-.12-.46-.31-.11-.26.02-.55.27-.65.11-.05 2.69-1.15 2.69-4.54 0-3.41-2.66-4.53-2.69-4.54-.25-.1-.38-.39-.27-.65.1-.25.39-.38.65-.27zM16 10c0 2.57-2.23 3.43-2.32 3.47-.06.02-.12.03-.18.03-.2 0-.39-.12-.47-.32-.1-.26.04-.55.29-.65.07-.02 1.68-.67 1.68-2.53s-1.61-2.51-1.68-2.53c-.25-.1-.38-.39-.29-.65.1-.25.39-.39.65-.29.09.04 2.32.9 2.32 3.47z";break;case"cover-image":e="M2.2 1h15.5c.7 0 1.3.6 1.3 1.2v11.5c0 .7-.6 1.2-1.2 1.2H2.2c-.6.1-1.2-.5-1.2-1.1V2.2C1 1.6 1.6 1 2.2 1zM17 13V3H3v10h14zm-4-4s0-5 3-5v7c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1V7c2 0 3 4 3 4s1-4 3-4 3 2 3 2zM4 17h12v2H4z";break;case"dashboard":e="M3.76 16h12.48c1.1-1.37 1.76-3.11 1.76-5 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 1.89.66 3.63 1.76 5zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 6c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5.37 5.55L12 7v6c0 1.1-.9 2-2 2s-2-.9-2-2c0-.57.24-1.08.63-1.45zM4 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm12 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 3c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1z";break;case"desktop":e="M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z";break;case"dismiss":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z";break;case"download":e="M14.01 4v6h2V2H4v8h2.01V4h8zm-2 2v6h3l-5 6-5-6h3V6h4z";break;case"edit":e="M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z";break;case"editor-aligncenter":e="M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z";break;case"editor-alignleft":e="M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z";break;case"editor-alignright":e="M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z";break;case"editor-bold":e="M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z";break;case"editor-break":e="M16 4h2v9H7v3l-5-4 5-4v3h9V4z";break;case"editor-code":e="M9 6l-4 4 4 4-1 2-6-6 6-6zm2 8l4-4-4-4 1-2 6 6-6 6z";break;case"editor-contract":e="M15.75 6.75L18 3v14l-2.25-3.75L17 12h-4v4l1.25-1.25L18 17H2l3.75-2.25L7 16v-4H3l1.25 1.25L2 17V3l2.25 3.75L3 8h4V4L5.75 5.25 2 3h16l-3.75 2.25L13 4v4h4z";break;case"editor-customchar":e="M10 5.4c1.27 0 2.24.36 2.91 1.08.66.71 1 1.76 1 3.13 0 1.28-.23 2.37-.69 3.27-.47.89-1.27 1.52-2.22 2.12v2h6v-2h-3.69c.92-.64 1.62-1.34 2.12-2.34.49-1.01.74-2.13.74-3.35 0-1.78-.55-3.19-1.65-4.22S11.92 3.54 10 3.54s-3.43.53-4.52 1.57c-1.1 1.04-1.65 2.44-1.65 4.2 0 1.21.24 2.31.73 3.33.48 1.01 1.19 1.71 2.1 2.36H3v2h6v-2c-.98-.64-1.8-1.28-2.24-2.17-.45-.89-.67-1.96-.67-3.22 0-1.37.33-2.41 1-3.13C7.75 5.76 8.72 5.4 10 5.4z";break;case"editor-expand":e="M7 8h6v4H7zm-5 5v4h4l-1.2-1.2L7 12l-3.8 2.2M14 17h4v-4l-1.2 1.2L13 12l2.2 3.8M14 3l1.3 1.3L13 8l3.8-2.2L18 7V3M6 3H2v4l1.2-1.2L7 8 4.7 4.3";break;case"editor-help":e="M17 10c0-3.87-3.14-7-7-7-3.87 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7zm-6.3 1.48H9.14v-.43c0-.38.08-.7.24-.98s.46-.57.88-.89c.41-.29.68-.53.81-.71.14-.18.2-.39.2-.62 0-.25-.09-.44-.28-.58-.19-.13-.45-.19-.79-.19-.58 0-1.25.19-2 .57l-.64-1.28c.87-.49 1.8-.74 2.77-.74.81 0 1.45.2 1.92.58.48.39.71.91.71 1.55 0 .43-.09.8-.29 1.11-.19.32-.57.67-1.11 1.06-.38.28-.61.49-.71.63-.1.15-.15.34-.15.57v.35zm-1.47 2.74c-.18-.17-.27-.42-.27-.73 0-.33.08-.58.26-.75s.43-.25.77-.25c.32 0 .57.09.75.26s.27.42.27.74c0 .3-.09.55-.27.72-.18.18-.43.27-.75.27-.33 0-.58-.09-.76-.26z";break;case"editor-indent":e="M3 5V3h9v2H3zm10-1V3h4v1h-4zm0 3h2V5l4 3.5-4 3.5v-2h-2V7zM3 8V6h9v2H3zm2 3V9h7v2H5zm-2 3v-2h9v2H3zm10 0v-1h4v1h-4zm-4 3v-2h3v2H9z";break;case"editor-insertmore":e="M17 7V3H3v4h14zM6 11V9H3v2h3zm6 0V9H8v2h4zm5 0V9h-3v2h3zm0 6v-4H3v4h14z";break;case"editor-italic":e="M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z";break;case"editor-justify":e="M2 3h16v2H2V3zm0 4h16v2H2V7zm0 4h16v2H2v-2zm0 4h16v2H2v-2z";break;case"editor-kitchensink":e="M19 2v6H1V2h18zm-1 5V3H2v4h16zM5 4v2H3V4h2zm3 0v2H6V4h2zm3 0v2H9V4h2zm3 0v2h-2V4h2zm3 0v2h-2V4h2zm2 5v9H1V9h18zm-1 8v-7H2v7h16zM5 11v2H3v-2h2zm3 0v2H6v-2h2zm3 0v2H9v-2h2zm6 0v2h-5v-2h5zm-6 3v2H3v-2h8zm3 0v2h-2v-2h2zm3 0v2h-2v-2h2z";break;case"editor-ltr":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z";break;case"editor-ol-rtl":e="M15.025 8.75a1.048 1.048 0 0 1 .45-.1.507.507 0 0 1 .35.11.455.455 0 0 1 .13.36.803.803 0 0 1-.06.3 1.448 1.448 0 0 1-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76v-.7h-1.72v-.04l.51-.48a7.276 7.276 0 0 0 .7-.71 1.75 1.75 0 0 0 .3-.49 1.254 1.254 0 0 0 .1-.51.968.968 0 0 0-.16-.56 1.007 1.007 0 0 0-.44-.37 1.512 1.512 0 0 0-.65-.14 1.98 1.98 0 0 0-.51.06 1.9 1.9 0 0 0-.42.15 3.67 3.67 0 0 0-.48.35l.45.54a2.505 2.505 0 0 1 .45-.3zM16.695 15.29a1.29 1.29 0 0 0-.74-.3v-.02a1.203 1.203 0 0 0 .65-.37.973.973 0 0 0 .23-.65.81.81 0 0 0-.37-.71 1.72 1.72 0 0 0-1-.26 2.185 2.185 0 0 0-1.33.4l.4.6a1.79 1.79 0 0 1 .46-.23 1.18 1.18 0 0 1 .41-.07c.38 0 .58.15.58.46a.447.447 0 0 1-.22.43 1.543 1.543 0 0 1-.7.12h-.31v.66h.31a1.764 1.764 0 0 1 .75.12.433.433 0 0 1 .23.41.55.55 0 0 1-.2.47 1.084 1.084 0 0 1-.63.15 2.24 2.24 0 0 1-.57-.08 2.671 2.671 0 0 1-.52-.2v.74a2.923 2.923 0 0 0 1.18.22 1.948 1.948 0 0 0 1.22-.33 1.077 1.077 0 0 0 .43-.92.836.836 0 0 0-.26-.64zM15.005 4.17c.06-.05.16-.14.3-.28l-.02.42V7h.84V3h-.69l-1.29 1.03.4.51zM4.02 5h9v1h-9zM4.02 10h9v1h-9zM4.02 15h9v1h-9z";break;case"editor-ol":e="M6 7V3h-.69L4.02 4.03l.4.51.46-.37c.06-.05.16-.14.3-.28l-.02.42V7H6zm2-2h9v1H8V5zm-1.23 6.95v-.7H5.05v-.04l.51-.48c.33-.31.57-.54.7-.71.14-.17.24-.33.3-.49.07-.16.1-.33.1-.51 0-.21-.05-.4-.16-.56-.1-.16-.25-.28-.44-.37s-.41-.14-.65-.14c-.19 0-.36.02-.51.06-.15.03-.29.09-.42.15-.12.07-.29.19-.48.35l.45.54c.16-.13.31-.23.45-.3.15-.07.3-.1.45-.1.14 0 .26.03.35.11s.13.2.13.36c0 .1-.02.2-.06.3s-.1.21-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76zM8 10h9v1H8v-1zm-1.29 3.95c0-.3-.12-.54-.37-.71-.24-.17-.58-.26-1-.26-.52 0-.96.13-1.33.4l.4.6c.17-.11.32-.19.46-.23.14-.05.27-.07.41-.07.38 0 .58.15.58.46 0 .2-.07.35-.22.43s-.38.12-.7.12h-.31v.66h.31c.34 0 .59.04.75.12.15.08.23.22.23.41 0 .22-.07.37-.2.47-.14.1-.35.15-.63.15-.19 0-.38-.03-.57-.08s-.36-.12-.52-.2v.74c.34.15.74.22 1.18.22.53 0 .94-.11 1.22-.33.29-.22.43-.52.43-.92 0-.27-.09-.48-.26-.64s-.42-.26-.74-.3v-.02c.27-.06.49-.19.65-.37.15-.18.23-.39.23-.65zM8 15h9v1H8v-1z";break;case"editor-outdent":e="M7 4V3H3v1h4zm10 1V3H8v2h9zM7 7H5V5L1 8.5 5 12v-2h2V7zm10 1V6H8v2h9zm-2 3V9H8v2h7zm2 3v-2H8v2h9zM7 14v-1H3v1h4zm4 3v-2H8v2h3z";break;case"editor-paragraph":e="M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71C15.5 2.1 15.27 2 15 2z";break;case"editor-paste-text":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.44 1-1 0-.55-.45-1-1-1s-1 .45-1 1c0 .56.45 1 1 1zm5.45-1H17c.55 0 1 .45 1 1v12c0 .56-.45 1-1 1H3c-.55 0-1-.44-1-1V5c0-.55.45-1 1-1h1.55L4 4.63V7h12V4.63zM14 11V9H6v2h3v5h2v-5h3z";break;case"editor-paste-word":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm8 12V5c0-.55-.45-1-1-1h-1.54l.54.63V7H4V4.62L4.55 4H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-3-8l-2 7h-2l-1-5-1 5H6.92L5 9h2l1 5 1-5h2l1 5 1-5h2z";break;case"editor-quote":e="M9.49 13.22c0-.74-.2-1.38-.61-1.9-.62-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L7.88 4c-2.73 1.3-5.42 4.28-4.96 8.05C3.21 14.43 4.59 16 6.54 16c.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03zm8.05 0c0-.74-.2-1.38-.61-1.9-.63-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L15.93 4c-2.73 1.3-5.41 4.28-4.95 8.05.29 2.38 1.66 3.95 3.61 3.95.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03z";break;case"editor-removeformatting":e="M14.29 4.59l1.1 1.11c.41.4.61.94.61 1.47v2.12c0 .53-.2 1.07-.61 1.47l-6.63 6.63c-.4.41-.94.61-1.47.61s-1.07-.2-1.47-.61l-1.11-1.1-1.1-1.11c-.41-.4-.61-.94-.61-1.47v-2.12c0-.54.2-1.07.61-1.48l6.63-6.62c.4-.41.94-.61 1.47-.61s1.06.2 1.47.61zm-6.21 9.7l6.42-6.42c.39-.39.39-1.03 0-1.43L12.36 4.3c-.19-.19-.45-.29-.72-.29s-.52.1-.71.29l-6.42 6.42c-.39.4-.39 1.04 0 1.43l2.14 2.14c.38.38 1.04.38 1.43 0z";break;case"editor-rtl":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z";break;case"editor-spellcheck":e="M15.84 2.76c.25 0 .49.04.71.11.23.07.44.16.64.25l.35-.81c-.52-.26-1.08-.39-1.69-.39-.58 0-1.09.13-1.52.37-.43.25-.76.61-.99 1.08C13.11 3.83 13 4.38 13 5c0 .99.23 1.75.7 2.28s1.15.79 2.02.79c.6 0 1.13-.09 1.6-.26v-.84c-.26.08-.51.14-.74.19-.24.05-.49.08-.74.08-.59 0-1.04-.19-1.34-.57-.32-.37-.47-.93-.47-1.66 0-.7.16-1.25.48-1.65.33-.4.77-.6 1.33-.6zM6.5 8h1.04L5.3 2H4.24L2 8h1.03l.58-1.66H5.9zM8 2v6h2.17c.67 0 1.19-.15 1.57-.46.38-.3.56-.72.56-1.26 0-.4-.1-.72-.3-.95-.19-.24-.5-.39-.93-.47v-.04c.35-.06.6-.21.78-.44.18-.24.28-.53.28-.88 0-.52-.19-.9-.56-1.14-.36-.24-.96-.36-1.79-.36H8zm.98 2.48V2.82h.85c.44 0 .77.06.97.19.21.12.31.33.31.61 0 .31-.1.53-.29.66-.18.13-.48.2-.89.2h-.95zM5.64 5.5H3.9l.54-1.56c.14-.4.25-.76.32-1.1l.15.52c.07.23.13.4.17.51zm3.34-.23h.99c.44 0 .76.08.98.23.21.15.32.38.32.69 0 .34-.11.59-.32.75s-.52.24-.93.24H8.98V5.27zM4 13l5 5 9-8-1-1-8 6-4-3z";break;case"editor-strikethrough":e="M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z";break;case"editor-table":e="M18 17V3H2v14h16zM16 7H4V5h12v2zm-7 4H4V9h5v2zm7 0h-5V9h5v2zm-7 4H4v-2h5v2zm7 0h-5v-2h5v2z";break;case"editor-textcolor":e="M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z";break;case"editor-ul":e="M5.5 7C4.67 7 4 6.33 4 5.5 4 4.68 4.67 4 5.5 4 6.32 4 7 4.68 7 5.5 7 6.33 6.32 7 5.5 7zM8 5h9v1H8V5zm-2.5 7c-.83 0-1.5-.67-1.5-1.5C4 9.68 4.67 9 5.5 9c.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 10h9v1H8v-1zm-2.5 7c-.83 0-1.5-.67-1.5-1.5 0-.82.67-1.5 1.5-1.5.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 15h9v1H8v-1z";break;case"editor-underline":e="M14 5h-2v5.71c0 1.99-1.12 2.98-2.45 2.98-1.32 0-2.55-1-2.55-2.96V5H5v5.87c0 1.91 1 4.54 4.48 4.54 3.49 0 4.52-2.58 4.52-4.5V5zm0 13v-2H5v2h9z";break;case"editor-unlink":e="M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z";break;case"editor-video":e="M16 2h-3v1H7V2H4v15h3v-1h6v1h3V2zM6 3v1H5V3h1zm9 0v1h-1V3h1zm-2 1v5H7V4h6zM6 5v1H5V5h1zm9 0v1h-1V5h1zM6 7v1H5V7h1zm9 0v1h-1V7h1zM6 9v1H5V9h1zm9 0v1h-1V9h1zm-2 1v5H7v-5h6zm-7 1v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1z";break;case"ellipsis":e="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z";break;case"email-alt":e="M19 14.5v-9c0-.83-.67-1.5-1.5-1.5H3.49c-.83 0-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5H17.5c.83 0 1.5-.67 1.5-1.5zm-1.31-9.11c.33.33.15.67-.03.84L13.6 9.95l3.9 4.06c.12.14.2.36.06.51-.13.16-.43.15-.56.05l-4.37-3.73-2.14 1.95-2.13-1.95-4.37 3.73c-.13.1-.43.11-.56-.05-.14-.15-.06-.37.06-.51l3.9-4.06-4.06-3.72c-.18-.17-.36-.51-.03-.84s.67-.17.95.07l6.24 5.04 6.25-5.04c.28-.24.62-.4.95-.07z";break;case"email-alt2":e="M18.01 11.18V2.51c0-1.19-.9-1.81-2-1.37L4 5.91c-1.1.44-2 1.77-2 2.97v8.66c0 1.2.9 1.81 2 1.37l12.01-4.77c1.1-.44 2-1.76 2-2.96zm-1.43-7.46l-6.04 9.33-6.65-4.6c-.1-.07-.36-.32-.17-.64.21-.36.65-.21.65-.21l6.3 2.32s4.83-6.34 5.11-6.7c.13-.17.43-.34.73-.13.29.2.16.49.07.63z";break;case"email":e="M3.87 4h13.25C18.37 4 19 4.59 19 5.79v8.42c0 1.19-.63 1.79-1.88 1.79H3.87c-1.25 0-1.88-.6-1.88-1.79V5.79c0-1.2.63-1.79 1.88-1.79zm6.62 8.6l6.74-5.53c.24-.2.43-.66.13-1.07-.29-.41-.82-.42-1.17-.17l-5.7 3.86L4.8 5.83c-.35-.25-.88-.24-1.17.17-.3.41-.11.87.13 1.07z";break;case"embed-audio":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 3H7v4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.4 0 .7.1 1 .3V5h4v2zm4 3.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-generic":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3 6.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-photo":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 8H3V6h7v6zm4-1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3zm-6-4V8.5L7.2 10 6 9.2 4 11h5zM4.6 8.6c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z";break;case"embed-post":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.6 9l-.4.3c-.4.4-.5 1.1-.2 1.6l-.8.8-1.1-1.1-1.3 1.3c-.2.2-1.6 1.3-1.8 1.1-.2-.2.9-1.6 1.1-1.8l1.3-1.3-1.1-1.1.8-.8c.5.3 1.2.3 1.6-.2l.3-.3c.5-.5.5-1.2.2-1.7L8 5l3 2.9-.8.8c-.5-.2-1.2-.2-1.6.3zm5.4 1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-video":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 6.5L8 9.1V11H3V6h5v1.8l2-1.3v4zm4 0L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"excerpt-view":e="M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z";break;case"exit":e="M13 3v2h2v10h-2v2h4V3h-4zm0 8V9H5.4l4.3-4.3-1.4-1.4L1.6 10l6.7 6.7 1.4-1.4L5.4 11H13z";break;case"external":e="M9 3h8v8l-2-1V6.92l-5.6 5.59-1.41-1.41L14.08 5H10zm3 12v-3l2-2v7H3V6h8L9 8H5v7h7z";break;case"facebook-alt":e="M8.46 18h2.93v-7.3h2.45l.37-2.84h-2.82V6.04c0-.82.23-1.38 1.41-1.38h1.51V2.11c-.26-.03-1.15-.11-2.19-.11-2.18 0-3.66 1.33-3.66 3.76v2.1H6v2.84h2.46V18z";break;case"facebook":e="M2.89 2h14.23c.49 0 .88.39.88.88v14.24c0 .48-.39.88-.88.88h-4.08v-6.2h2.08l.31-2.41h-2.39V7.85c0-.7.2-1.18 1.2-1.18h1.28V4.51c-.22-.03-.98-.09-1.86-.09-1.85 0-3.11 1.12-3.11 3.19v1.78H8.46v2.41h2.09V18H2.89c-.49 0-.89-.4-.89-.88V2.88c0-.49.4-.88.89-.88z";break;case"feedback":e="M2 2h16c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm15 14V7H3v9h14zM4 8v1h3V8H4zm4 0v3h8V8H8zm-4 4v1h3v-1H4zm4 0v3h8v-3H8z";break;case"filter":e="M3 4.5v-2s3.34-1 7-1 7 1 7 1v2l-5 7.03v6.97s-1.22-.09-2.25-.59S8 16.5 8 16.5v-4.97z";break;case"flag":e="M5 18V3H3v15h2zm1-6V4c3-1 7 1 11 0v8c-3 1.27-8-1-11 0z";break;case"format-aside":e="M1 1h18v12l-6 6H1V1zm3 3v1h12V4H4zm0 4v1h12V8H4zm6 5v-1H4v1h6zm2 4l5-5h-5v5z";break;case"format-audio":e="M6.99 3.08l11.02-2c.55-.08.99.45.99 1V14.5c0 1.94-1.57 3.5-3.5 3.5S12 16.44 12 14.5c0-1.93 1.57-3.5 3.5-3.5.54 0 1.04.14 1.5.35V5.08l-9 2V16c-.24 1.7-1.74 3-3.5 3C2.57 19 1 17.44 1 15.5 1 13.57 2.57 12 4.5 12c.54 0 1.04.14 1.5.35V4.08c0-.55.44-.91.99-1z";break;case"format-chat":e="M11 6h-.82C9.07 6 8 7.2 8 8.16V10l-3 3v-3H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v3zm0 1h6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2h-2v3l-3-3h-1c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2z";break;case"format-gallery":e="M16 4h1.96c.57 0 1.04.47 1.04 1.04v12.92c0 .57-.47 1.04-1.04 1.04H5.04C4.47 19 4 18.53 4 17.96V16H2.04C1.47 16 1 15.53 1 14.96V2.04C1 1.47 1.47 1 2.04 1h12.92c.57 0 1.04.47 1.04 1.04V4zM3 14h11V3H3v11zm5-8.5C8 4.67 7.33 4 6.5 4S5 4.67 5 5.5 5.67 7 6.5 7 8 6.33 8 5.5zm2 4.5s1-5 3-5v8H4V7c2 0 2 3 2 3s.33-2 2-2 2 2 2 2zm7 7V6h-1v8.96c0 .57-.47 1.04-1.04 1.04H6v1h11z";break;case"format-image":e="M2.25 1h15.5c.69 0 1.25.56 1.25 1.25v15.5c0 .69-.56 1.25-1.25 1.25H2.25C1.56 19 1 18.44 1 17.75V2.25C1 1.56 1.56 1 2.25 1zM17 17V3H3v14h14zM10 6c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm3 5s0-6 3-6v10c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V8c2 0 3 4 3 4s1-3 3-3 3 2 3 2z";break;case"format-quote":e="M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z";break;case"format-status":e="M10 1c7 0 9 2.91 9 6.5S17 14 10 14s-9-2.91-9-6.5S3 1 10 1zM5.5 9C6.33 9 7 8.33 7 7.5S6.33 6 5.5 6 4 6.67 4 7.5 4.67 9 5.5 9zM10 9c.83 0 1.5-.67 1.5-1.5S10.83 6 10 6s-1.5.67-1.5 1.5S9.17 9 10 9zm4.5 0c.83 0 1.5-.67 1.5-1.5S15.33 6 14.5 6 13 6.67 13 7.5 13.67 9 14.5 9zM6 14.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"format-video":e="M2 1h16c.55 0 1 .45 1 1v16l-18-.02V2c0-.55.45-1 1-1zm4 1L4 5h1l2-3H6zm4 0H9L7 5h1zm3 0h-1l-2 3h1zm3 0h-1l-2 3h1zm1 14V6H3v10h14zM8 7l6 4-6 4V7z";break;case"forms":e="M2 2h7v7H2V2zm9 0v7h7V2h-7zM5.5 4.5L7 3H4zM12 8V3h5v5h-5zM4.5 5.5L3 4v3zM8 4L6.5 5.5 8 7V4zM5.5 6.5L4 8h3zM9 18v-7H2v7h7zm9 0h-7v-7h7v7zM8 12v5H3v-5h5zm6.5 1.5L16 12h-3zM12 16l1.5-1.5L12 13v3zm3.5-1.5L17 16v-3zm-1 1L13 17h3z";break;case"googleplus":e="M6.73 10h5.4c.05.29.09.57.09.95 0 3.27-2.19 5.6-5.49 5.6-3.17 0-5.73-2.57-5.73-5.73 0-3.17 2.56-5.73 5.73-5.73 1.54 0 2.84.57 3.83 1.5l-1.55 1.5c-.43-.41-1.17-.89-2.28-.89-1.96 0-3.55 1.62-3.55 3.62 0 1.99 1.59 3.61 3.55 3.61 2.26 0 3.11-1.62 3.24-2.47H6.73V10zM19 10v1.64h-1.64v1.63h-1.63v-1.63h-1.64V10h1.64V8.36h1.63V10H19z";break;case"grid-view":e="M2 1h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1zm7.01 7.99v-6H3v6h6.01zm8 0v-6h-6v6h6zm-8 8.01v-6H3v6h6.01zm8 0v-6h-6v6h6z";break;case"groups":e="M8.03 4.46c-.29 1.28.55 3.46 1.97 3.46 1.41 0 2.25-2.18 1.96-3.46-.22-.98-1.08-1.63-1.96-1.63-.89 0-1.74.65-1.97 1.63zm-4.13.9c-.25 1.08.47 2.93 1.67 2.93s1.92-1.85 1.67-2.93c-.19-.83-.92-1.39-1.67-1.39s-1.48.56-1.67 1.39zm8.86 0c-.25 1.08.47 2.93 1.66 2.93 1.2 0 1.92-1.85 1.67-2.93-.19-.83-.92-1.39-1.67-1.39-.74 0-1.47.56-1.66 1.39zm-.59 11.43l1.25-4.3C14.2 10 12.71 8.47 10 8.47c-2.72 0-4.21 1.53-3.44 4.02l1.26 4.3C8.05 17.51 9 18 10 18c.98 0 1.94-.49 2.17-1.21zm-6.1-7.63c-.49.67-.96 1.83-.42 3.59l1.12 3.79c-.34.2-.77.31-1.2.31-.85 0-1.65-.41-1.85-1.03l-1.07-3.65c-.65-2.11.61-3.4 2.92-3.4.27 0 .54.02.79.06-.1.1-.2.22-.29.33zm8.35-.39c2.31 0 3.58 1.29 2.92 3.4l-1.07 3.65c-.2.62-1 1.03-1.85 1.03-.43 0-.86-.11-1.2-.31l1.11-3.77c.55-1.78.08-2.94-.42-3.61-.08-.11-.18-.23-.28-.33.25-.04.51-.06.79-.06z";break;case"hammer":e="M17.7 6.32l1.41 1.42-3.47 3.41-1.42-1.42.84-.82c-.32-.76-.81-1.57-1.51-2.31l-4.61 6.59-5.26 4.7c-.39.39-1.02.39-1.42 0l-1.2-1.21c-.39-.39-.39-1.02 0-1.41l10.97-9.92c-1.37-.86-3.21-1.46-5.67-1.48 2.7-.82 4.95-.93 6.58-.3 1.7.66 2.82 2.2 3.91 3.58z";break;case"heading":e="M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4";break;case"heart":e="M10 17.12c3.33-1.4 5.74-3.79 7.04-6.21 1.28-2.41 1.46-4.81.32-6.25-1.03-1.29-2.37-1.78-3.73-1.74s-2.68.63-3.63 1.46c-.95-.83-2.27-1.42-3.63-1.46s-2.7.45-3.73 1.74c-1.14 1.44-.96 3.84.34 6.25 1.28 2.42 3.69 4.81 7.02 6.21z";break;case"hidden":e="M17.2 3.3l.16.17c.39.39.39 1.02 0 1.41L4.55 17.7c-.39.39-1.03.39-1.41 0l-.17-.17c-.39-.39-.39-1.02 0-1.41l1.59-1.6c-1.57-1-2.76-2.3-3.56-3.93.81-1.65 2.03-2.98 3.64-3.99S8.04 5.09 10 5.09c1.2 0 2.33.21 3.4.6l2.38-2.39c.39-.39 1.03-.39 1.42 0zm-7.09 4.01c-.23.25-.34.54-.34.88 0 .31.12.58.31.81l1.8-1.79c-.13-.12-.28-.21-.45-.26-.11-.01-.28-.03-.49-.04-.33.03-.6.16-.83.4zM2.4 10.59c.69 1.23 1.71 2.25 3.05 3.05l1.28-1.28c-.51-.69-.77-1.47-.77-2.36 0-1.06.36-1.98 1.09-2.76-1.04.27-1.96.7-2.76 1.26-.8.58-1.43 1.27-1.89 2.09zm13.22-2.13l.96-.96c1.02.86 1.83 1.89 2.42 3.09-.81 1.65-2.03 2.98-3.64 3.99s-3.4 1.51-5.36 1.51c-.63 0-1.24-.07-1.83-.18l1.07-1.07c.25.02.5.05.76.05 1.63 0 3.13-.4 4.5-1.21s2.4-1.84 3.1-3.09c-.46-.82-1.09-1.51-1.89-2.09-.03-.01-.06-.03-.09-.04zm-5.58 5.58l4-4c-.01 1.1-.41 2.04-1.18 2.81-.78.78-1.72 1.18-2.82 1.19z";break;case"html":e="M4 16v-2H2v2H1v-5h1v2h2v-2h1v5H4zM7 16v-4H5.6v-1h3.7v1H8v4H7zM10 16v-5h1l1.4 3.4h.1L14 11h1v5h-1v-3.1h-.1l-1.1 2.5h-.6l-1.1-2.5H11V16h-1zM19 16h-3v-5h1v4h2v1zM9.4 4.2L7.1 6.5l2.3 2.3-.6 1.2-3.5-3.5L8.8 3l.6 1.2zm1.2 4.6l2.3-2.3-2.3-2.3.6-1.2 3.5 3.5-3.5 3.5-.6-1.2z";break;case"id-alt":e="M18 18H2V2h16v16zM8.05 7.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L8.95 6c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C8.23 4.1 7.95 4 7.6 4c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM16 5V4h-5v1h5zm0 2V6h-5v1h5zM7.62 8.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM16 9V8h-3v1h3zm0 2v-1h-3v1h3zm0 3v-1H4v1h12zm0 2v-1H4v1h12z";break;case"id":e="M18 16H2V4h16v12zM7.05 8.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L7.95 7c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C7.23 5.1 6.95 5 6.6 5c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM17 9V5h-5v4h5zm-10.38.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM17 11v-1h-5v1h5zm0 2v-1h-5v1h5zm0 2v-1H3v1h14z";break;case"image-crop":e="M19 12v3h-4v4h-3v-4H4V7H0V4h4V0h3v4h7l3-3 1 1-3 3v7h4zm-8-5H7v4zm-3 5h4V8z";break;case"image-filter":e="M14 5.87c0-2.2-1.79-4-4-4s-4 1.8-4 4c0 2.21 1.79 4 4 4s4-1.79 4-4zM3.24 10.66c-1.92 1.1-2.57 3.55-1.47 5.46 1.11 1.92 3.55 2.57 5.47 1.47 1.91-1.11 2.57-3.55 1.46-5.47-1.1-1.91-3.55-2.56-5.46-1.46zm9.52 6.93c1.92 1.1 4.36.45 5.47-1.46 1.1-1.92.45-4.36-1.47-5.47-1.91-1.1-4.36-.45-5.46 1.46-1.11 1.92-.45 4.36 1.46 5.47z";break;case"image-flip-horizontal":e="M19 3v14h-8v3H9v-3H1V3h8V0h2v3h8zm-8.5 14V3h-1v14h1zM7 6.5L3 10l4 3.5v-7zM17 10l-4-3.5v7z";break;case"image-flip-vertical":e="M20 9v2h-3v8H3v-8H0V9h3V1h14v8h3zM6.5 7h7L10 3zM17 9.5H3v1h14v-1zM13.5 13h-7l3.5 4z";break;case"image-rotate-left":e="M7 5H5.05c0-1.74.85-2.9 2.95-2.9V0C4.85 0 2.96 2.11 2.96 5H1.18L3.8 8.39zm13-4v14h-5v5H1V10h9V1h10zm-2 2h-6v7h3v3h3V3zm-5 9H3v6h10v-6z";break;case"image-rotate-right":e="M15.95 5H14l3.2 3.39L19.82 5h-1.78c0-2.89-1.89-5-5.04-5v2.1c2.1 0 2.95 1.16 2.95 2.9zM1 1h10v9h9v10H6v-5H1V1zm2 2v10h3v-3h3V3H3zm5 9v6h10v-6H8z";break;case"image-rotate":e="M10.25 1.02c5.1 0 8.75 4.04 8.75 9s-3.65 9-8.75 9c-3.2 0-6.02-1.59-7.68-3.99l2.59-1.52c1.1 1.5 2.86 2.51 4.84 2.51 3.3 0 6-2.79 6-6s-2.7-6-6-6c-1.97 0-3.72 1-4.82 2.49L7 8.02l-6 2v-7L2.89 4.6c1.69-2.17 4.36-3.58 7.36-3.58z";break;case"images-alt":e="M4 15v-3H2V2h12v3h2v3h2v10H6v-3H4zm7-12c-1.1 0-2 .9-2 2h4c0-1.1-.89-2-2-2zm-7 8V6H3v5h1zm7-3h4c0-1.1-.89-2-2-2-1.1 0-2 .9-2 2zm-5 6V9H5v5h1zm9-1c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2s-2 .9-2 2c0 1.11.9 2 2 2zm2 4v-2c-5 0-5-3-10-3v5h10z";break;case"images-alt2":e="M5 3h14v11h-2v2h-2v2H1V7h2V5h2V3zm13 10V4H6v9h12zm-3-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm1 6v-1H5V6H4v9h12zM7 6l10 6H7V6zm7 11v-1H3V8H2v9h12z";break;case"index-card":e="M1 3.17V18h18V4H8v-.83c0-.32-.12-.6-.35-.83S7.14 2 6.82 2H2.18c-.33 0-.6.11-.83.34-.24.23-.35.51-.35.83zM10 6v2H3V6h7zm7 0v10h-5V6h5zm-7 4v2H3v-2h7zm0 4v2H3v-2h7z";break;case"info-outline":e="M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z";break;case"info":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z";break;case"insert-after":e="M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z";break;case"insert-before":e="M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z";break;case"insert":e="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z";break;case"instagram":e="M12.67 10A2.67 2.67 0 1 0 10 12.67 2.68 2.68 0 0 0 12.67 10zm1.43 0A4.1 4.1 0 1 1 10 5.9a4.09 4.09 0 0 1 4.1 4.1zm1.13-4.27a1 1 0 1 1-1-1 1 1 0 0 1 1 1zM10 3.44c-1.17 0-3.67-.1-4.72.32a2.67 2.67 0 0 0-1.52 1.52c-.42 1-.32 3.55-.32 4.72s-.1 3.67.32 4.72a2.74 2.74 0 0 0 1.52 1.52c1 .42 3.55.32 4.72.32s3.67.1 4.72-.32a2.83 2.83 0 0 0 1.52-1.52c.42-1.05.32-3.55.32-4.72s.1-3.67-.32-4.72a2.74 2.74 0 0 0-1.52-1.52c-1.05-.42-3.55-.32-4.72-.32zM18 10c0 1.1 0 2.2-.05 3.3a4.84 4.84 0 0 1-1.29 3.36A4.8 4.8 0 0 1 13.3 18H6.7a4.84 4.84 0 0 1-3.36-1.29 4.84 4.84 0 0 1-1.29-3.41C2 12.2 2 11.1 2 10V6.7a4.84 4.84 0 0 1 1.34-3.36A4.8 4.8 0 0 1 6.7 2.05C7.8 2 8.9 2 10 2h3.3a4.84 4.84 0 0 1 3.36 1.29A4.8 4.8 0 0 1 18 6.7V10z";break;case"keyboard-hide":e="M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z";break;case"laptop":e="M3 3h14c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zm13 2H4v8h12V5zm-3 1H5v4zm6 11v-1H1v1c0 .6.5 1 1.1 1h15.8c.6 0 1.1-.4 1.1-1z";break;case"layout":e="M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z";break;case"leftright":e="M3 10.03L9 6v8zM11 6l6 4.03L11 14V6z";break;case"lightbulb":e="M10 1c3.11 0 5.63 2.52 5.63 5.62 0 1.84-2.03 4.58-2.03 4.58-.33.44-.6 1.25-.6 1.8v1c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-1c0-.55-.27-1.36-.6-1.8 0 0-2.02-2.74-2.02-4.58C4.38 3.52 6.89 1 10 1zM7 16.87V16h6v.87c0 .62-.13 1.13-.75 1.13H12c0 .62-.4 1-1.02 1h-2c-.61 0-.98-.38-.98-1h-.25c-.62 0-.75-.51-.75-1.13z";break;case"list-view":e="M2 19h16c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V3h11zM4 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V7h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11zM4 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11z";break;case"location-alt":e="M13 13.14l1.17-5.94c.79-.43 1.33-1.25 1.33-2.2 0-1.38-1.12-2.5-2.5-2.5S10.5 3.62 10.5 5c0 .95.54 1.77 1.33 2.2zm0-9.64c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm1.72 4.8L18 6.97v9L13.12 18 7 15.97l-5 2v-9l5-2 4.27 1.41 1.73 7.3z";break;case"location":e="M10 2C6.69 2 4 4.69 4 8c0 2.02 1.17 3.71 2.53 4.89.43.37 1.18.96 1.85 1.83.74.97 1.41 2.01 1.62 2.71.21-.7.88-1.74 1.62-2.71.67-.87 1.42-1.46 1.85-1.83C14.83 11.71 16 10.02 16 8c0-3.31-2.69-6-6-6zm0 2.56c1.9 0 3.44 1.54 3.44 3.44S11.9 11.44 10 11.44 6.56 9.9 6.56 8 8.1 4.56 10 4.56z";break;case"lock":e="M14 9h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h1V6c0-2.21 1.79-4 4-4s4 1.79 4 4v3zm-2 0V6c0-1.1-.9-2-2-2s-2 .9-2 2v3h4zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"marker":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z";break;case"media-archive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zM8 3.5v2l1.8-1zM11 5L9.2 6 11 7V5zM8 6.5v2l1.8-1zM11 8L9.2 9l1.8 1V8zM8 9.5v2l1.8-1zm3 1.5l-1.8 1 1.8 1v-2zm-1.5 6c.83 0 1.62-.72 1.5-1.63-.05-.38-.49-1.61-.49-1.61l-1.99-1.1s-.45 1.95-.52 2.71c-.07.77.67 1.63 1.5 1.63zm0-2.39c.42 0 .76.34.76.76 0 .43-.34.77-.76.77s-.76-.34-.76-.77c0-.42.34-.76.76-.76z";break;case"media-audio":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm1 7.26V8.09c0-.11-.04-.21-.12-.29-.07-.08-.16-.11-.27-.1 0 0-3.97.71-4.25.78C8.07 8.54 8 8.8 8 9v3.37c-.2-.09-.42-.07-.6-.07-.38 0-.7.13-.96.39-.26.27-.4.58-.4.96 0 .37.14.69.4.95.26.27.58.4.96.4.34 0 .7-.04.96-.26.26-.23.64-.65.64-1.12V10.3l3-.6V12c-.67-.2-1.17.04-1.44.31-.26.26-.39.58-.39.95 0 .38.13.69.39.96.27.26.71.39 1.08.39.38 0 .7-.13.96-.39.26-.27.4-.58.4-.96z";break;case"media-code":e="M12 2l4 4v12H4V2h8zM9 13l-2-2 2-2-1-1-3 3 3 3zm3 1l3-3-3-3-1 1 2 2-2 2z";break;case"media-default":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3z";break;case"media-document":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zM5 9v1h4V9H5zm10 3V9h-5v3h5zM5 11v1h4v-1H5zm10 3v-1H5v1h10zm-3 2v-1H5v1h7z";break;case"media-interactive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm2 8V8H6v6h3l-1 2h1l1-2 1 2h1l-1-2h3zm-6-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-2v2h-3V9h3zm0 3v1H7v-1h6z";break;case"media-spreadsheet":e="M12 2l4 4v12H4V2h8zm-1 4V3H5v3h6zM8 8V7H5v1h3zm3 0V7H9v1h2zm4 0V7h-3v1h3zm-7 2V9H5v1h3zm3 0V9H9v1h2zm4 0V9h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2z";break;case"media-text":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zm0 2V9H5v1h10zm0 2v-1H5v1h10zm-4 2v-1H5v1h6z";break;case"media-video":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm-1 8v-3c0-.27-.1-.51-.29-.71-.2-.19-.44-.29-.71-.29H7c-.27 0-.51.1-.71.29-.19.2-.29.44-.29.71v3c0 .27.1.51.29.71.2.19.44.29.71.29h3c.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71zm3 1v-5l-2 2v1z";break;case"megaphone":e="M18.15 5.94c.46 1.62.38 3.22-.02 4.48-.42 1.28-1.26 2.18-2.3 2.48-.16.06-.26.06-.4.06-.06.02-.12.02-.18.02-.06.02-.14.02-.22.02h-6.8l2.22 5.5c.02.14-.06.26-.14.34-.08.1-.24.16-.34.16H6.95c-.1 0-.26-.06-.34-.16-.08-.08-.16-.2-.14-.34l-1-5.5H4.25l-.02-.02c-.5.06-1.08-.18-1.54-.62s-.88-1.08-1.06-1.88c-.24-.8-.2-1.56-.02-2.2.18-.62.58-1.08 1.06-1.3l.02-.02 9-5.4c.1-.06.18-.1.24-.16.06-.04.14-.08.24-.12.16-.08.28-.12.5-.18 1.04-.3 2.24.1 3.22.98s1.84 2.24 2.26 3.86zm-2.58 5.98h-.02c.4-.1.74-.34 1.04-.7.58-.7.86-1.76.86-3.04 0-.64-.1-1.3-.28-1.98-.34-1.36-1.02-2.5-1.78-3.24s-1.68-1.1-2.46-.88c-.82.22-1.4.96-1.7 2-.32 1.04-.28 2.36.06 3.72.38 1.36 1 2.5 1.8 3.24.78.74 1.62 1.1 2.48.88zm-2.54-7.08c.22-.04.42-.02.62.04.38.16.76.48 1.02 1s.42 1.2.42 1.78c0 .3-.04.56-.12.8-.18.48-.44.84-.86.94-.34.1-.8-.06-1.14-.4s-.64-.86-.78-1.5c-.18-.62-.12-1.24.02-1.72s.48-.84.82-.94z";break;case"menu-alt":e="M3 4h14v2H3V4zm0 5h14v2H3V9zm0 5h14v2H3v-2z";break;case"menu":e="M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z";break;case"microphone":e="M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z";break;case"migrate":e="M4 6h6V4H2v12.01h8V14H4V6zm2 2h6V5l6 5-6 5v-3H6V8z";break;case"minus":e="M4 9h12v2H4V9z";break;case"money":e="M0 3h20v12h-.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42.79-2.94 1.91-.25-.1-.52-.16-.81-.16-.98 0-1.8.63-2.11 1.5H0V3zm8.37 3.11c-.06.15-.1.31-.11.47s-.01.33.01.5l.02.08c.01.06.02.14.05.23.02.1.06.2.1.31.03.11.09.22.15.33.07.12.15.22.23.31s.18.17.31.23c.12.06.25.09.4.09.14 0 .27-.03.39-.09s.22-.14.3-.22c.09-.09.16-.2.22-.32.07-.12.12-.23.16-.33s.07-.2.09-.31c.03-.11.04-.18.05-.22s.01-.07.01-.09c.05-.29.03-.56-.04-.82s-.21-.48-.41-.66c-.21-.18-.47-.27-.79-.27-.19 0-.36.03-.52.1-.15.07-.28.16-.38.28-.09.11-.17.25-.24.4zm4.48 6.04v-1.14c0-.33-.1-.66-.29-.98s-.45-.59-.77-.79c-.32-.21-.66-.31-1.02-.31l-1.24.84-1.28-.82c-.37 0-.72.1-1.04.3-.31.2-.56.46-.74.77-.18.32-.27.65-.27.99v1.14l.18.05c.12.04.29.08.51.14.23.05.47.1.74.15.26.05.57.09.91.13.34.03.67.05.99.05.3 0 .63-.02.98-.05.34-.04.64-.08.89-.13.25-.04.5-.1.76-.16l.5-.12c.08-.02.14-.04.19-.06zm3.15.1c1.52 0 2.75 1.23 2.75 2.75s-1.23 2.75-2.75 2.75c-.73 0-1.38-.3-1.87-.77.23-.35.37-.78.37-1.23 0-.77-.39-1.46-.99-1.86.43-.96 1.37-1.64 2.49-1.64zm-5.5 3.5c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75-.79 1.75-1.75 1.75-1.75-.79-1.75-1.75z";break;case"move":e="M19 10l-4 4v-3h-4v4h3l-4 4-4-4h3v-4H5v3l-4-4 4-4v3h4V5H6l4-4 4 4h-3v4h4V6z";break;case"nametag":e="M12 5V2c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-2-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 13V7c0-1.1-.9-2-2-2h-3v.33C13 6.25 12.25 7 11.33 7H8.67C7.75 7 7 6.25 7 5.33V5H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-1-6v6H3V9h14zm-8 2c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm3 0c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm-5.96 1.21c.92.48 2.34.79 3.96.79s3.04-.31 3.96-.79c-.21 1-1.89 1.79-3.96 1.79s-3.75-.79-3.96-1.79z";break;case"networking":e="M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z";break;case"no-alt":e="M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z";break;case"no":e="M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z";break;case"palmtree":e="M8.58 2.39c.32 0 .59.05.81.14 1.25.55 1.69 2.24 1.7 3.97.59-.82 2.15-2.29 3.41-2.29s2.94.73 3.53 3.55c-1.13-.65-2.42-.94-3.65-.94-1.26 0-2.45.32-3.29.89.4-.11.86-.16 1.33-.16 1.39 0 2.9.45 3.4 1.31.68 1.16.47 3.38-.76 4.14-.14-2.1-1.69-4.12-3.47-4.12-.44 0-.88.12-1.33.38C8 10.62 7 14.56 7 19H2c0-5.53 4.21-9.65 7.68-10.79-.56-.09-1.17-.15-1.82-.15C6.1 8.06 4.05 8.5 2 10c.76-2.96 2.78-4.1 4.69-4.1 1.25 0 2.45.5 3.2 1.29-.66-2.24-2.49-2.86-4.08-2.86-.8 0-1.55.16-2.05.35.91-1.29 3.31-2.29 4.82-2.29zM13 11.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z";break;case"paperclip":e="M17.05 2.7c1.93 1.94 1.93 5.13 0 7.07L10 16.84c-1.88 1.89-4.91 1.93-6.86.15-.06-.05-.13-.09-.19-.15-1.93-1.94-1.93-5.12 0-7.07l4.94-4.95c.91-.92 2.28-1.1 3.39-.58.3.15.59.33.83.58 1.17 1.17 1.17 3.07 0 4.24l-4.93 4.95c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41l4.93-4.95c.39-.39.39-1.02 0-1.41-.38-.39-1.02-.39-1.4 0l-4.94 4.95c-.91.92-1.1 2.29-.57 3.4.14.3.32.59.57.84s.54.43.84.57c1.11.53 2.47.35 3.39-.57l7.05-7.07c1.16-1.17 1.16-3.08 0-4.25-.56-.55-1.28-.83-2-.86-.08.01-.16.01-.24 0-.22-.03-.43-.11-.6-.27-.39-.4-.38-1.05.02-1.45.16-.16.36-.24.56-.28.14-.02.27-.01.4.02 1.19.06 2.36.52 3.27 1.43z";break;case"performance":e="M3.76 17.01h12.48C17.34 15.63 18 13.9 18 12c0-4.41-3.58-8-8-8s-8 3.59-8 8c0 1.9.66 3.63 1.76 5.01zM9 6c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zM4 8c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm4.52 3.4c.84-.83 6.51-3.5 6.51-3.5s-2.66 5.68-3.49 6.51c-.84.84-2.18.84-3.02 0-.83-.83-.83-2.18 0-3.01zM3 13c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1z";break;case"phone":e="M12.06 6l-.21-.2c-.52-.54-.43-.79.08-1.3l2.72-2.75c.81-.82.96-1.21 1.73-.48l.21.2zm.53.45l4.4-4.4c.7.94 2.34 3.47 1.53 5.34-.73 1.67-1.09 1.75-2 3-1.85 2.11-4.18 4.37-6 6.07-1.26.91-1.31 1.33-3 2-1.8.71-4.4-.89-5.38-1.56l4.4-4.4 1.18 1.62c.34.46 1.2-.06 1.8-.66 1.04-1.05 3.18-3.18 4-4.07.59-.59 1.12-1.45.66-1.8zM1.57 16.5l-.21-.21c-.68-.74-.29-.9.52-1.7l2.74-2.72c.51-.49.75-.6 1.27-.11l.2.21z";break;case"playlist-audio":e="M17 3V1H2v2h15zm0 4V5H2v2h15zm-7 4V9H2v2h8zm7.45-1.96l-6 1.12c-.16.02-.19.03-.29.13-.11.09-.16.22-.16.37v4.59c-.29-.13-.66-.14-.93-.14-.54 0-1 .19-1.38.57s-.56.84-.56 1.38c0 .53.18.99.56 1.37s.84.57 1.38.57c.49 0 .92-.16 1.29-.48s.59-.71.65-1.19v-4.95L17 11.27v3.48c-.29-.13-.56-.19-.83-.19-.54 0-1.11.19-1.49.57-.38.37-.57.83-.57 1.37s.19.99.57 1.37.84.57 1.38.57c.53 0 .99-.19 1.37-.57s.57-.83.57-1.37V9.6c0-.16-.05-.3-.16-.41-.11-.12-.24-.17-.39-.15zM8 15v-2H2v2h6zm-2 4v-2H2v2h4z";break;case"playlist-video":e="M17 3V1H2v2h15zm0 4V5H2v2h15zM6 11V9H2v2h4zm2-2h9c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm3 7l3.33-2L11 12v4zm-5-1v-2H2v2h4zm0 4v-2H2v2h4z";break;case"plus-alt":e="M15.8 4.2c3.2 3.21 3.2 8.39 0 11.6-3.21 3.2-8.39 3.2-11.6 0C1 12.59 1 7.41 4.2 4.2 7.41 1 12.59 1 15.8 4.2zm-4.3 11.3v-4h4v-3h-4v-4h-3v4h-4v3h4v4h3z";break;case"plus-light":e="M17 9v2h-6v6H9v-6H3V9h6V3h2v6h6z";break;case"plus":e="M17 7v3h-5v5H9v-5H4V7h5V2h3v5h5z";break;case"portfolio":e="M4 5H.78c-.37 0-.74.32-.69.84l1.56 9.99S3.5 8.47 3.86 6.7c.11-.53.61-.7.98-.7H10s-.7-2.08-.77-2.31C9.11 3.25 8.89 3 8.45 3H5.14c-.36 0-.7.23-.8.64C4.25 4.04 4 5 4 5zm4.88 0h-4s.42-1 .87-1h2.13c.48 0 1 1 1 1zM2.67 16.25c-.31.47-.76.75-1.26.75h15.73c.54 0 .92-.31 1.03-.83.44-2.19 1.68-8.44 1.68-8.44.07-.5-.3-.73-.62-.73H16V5.53c0-.16-.26-.53-.66-.53h-3.76c-.52 0-.87.58-.87.58L10 7H5.59c-.32 0-.63.19-.69.5 0 0-1.59 6.7-1.72 7.33-.07.37-.22.99-.51 1.42zM15.38 7H11s.58-1 1.13-1h2.29c.71 0 .96 1 .96 1z";break;case"post-status":e="M14 6c0 1.86-1.28 3.41-3 3.86V16c0 1-2 2-2 2V9.86c-1.72-.45-3-2-3-3.86 0-2.21 1.79-4 4-4s4 1.79 4 4zM8 5c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1z";break;case"pressthis":e="M14.76 1C16.55 1 18 2.46 18 4.25c0 1.78-1.45 3.24-3.24 3.24-.23 0-.47-.03-.7-.08L13 8.47V19H2V4h9.54c.13-2 1.52-3 3.22-3zm0 5.49C16 6.49 17 5.48 17 4.25 17 3.01 16 2 14.76 2s-2.24 1.01-2.24 2.25c0 .37.1.72.27 1.03L9.57 8.5c-.28.28-1.77 2.22-1.5 2.49.02.03.06.04.1.04.49 0 2.14-1.28 2.39-1.53l3.24-3.24c.29.14.61.23.96.23z";break;case"products":e="M17 8h1v11H2V8h1V6c0-2.76 2.24-5 5-5 .71 0 1.39.15 2 .42.61-.27 1.29-.42 2-.42 2.76 0 5 2.24 5 5v2zM5 6v2h2V6c0-1.13.39-2.16 1.02-3H8C6.35 3 5 4.35 5 6zm10 2V6c0-1.65-1.35-3-3-3h-.02c.63.84 1.02 1.87 1.02 3v2h2zm-5-4.22C9.39 4.33 9 5.12 9 6v2h2V6c0-.88-.39-1.67-1-2.22z";break;case"randomize":e="M18 6.01L14 9V7h-4l-5 8H2v-2h2l5-8h5V3zM2 5h3l1.15 2.17-1.12 1.8L4 7H2V5zm16 9.01L14 17v-2H9l-1.15-2.17 1.12-1.8L10 13h4v-2z";break;case"redo":e="M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z";break;case"rest-api":e="M3 4h2v12H3z";break;case"rss":e="M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z";break;case"saved":e="M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2";break;case"schedule":e="M2 2h16v4H2V2zm0 10V8h4v4H2zm6-2V8h4v2H8zm6 3V8h4v5h-4zm-6 5v-6h4v6H8zm-6 0v-4h4v4H2zm12 0v-3h4v3h-4z";break;case"screenoptions":e="M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z";break;case"search":e="M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z";break;case"share-alt":e="M16.22 5.8c.47.69.29 1.62-.4 2.08-.69.47-1.62.29-2.08-.4-.16-.24-.35-.46-.55-.67-.21-.2-.43-.39-.67-.55s-.5-.3-.77-.41c-.27-.12-.55-.21-.84-.26-.59-.13-1.23-.13-1.82-.01-.29.06-.57.15-.84.27-.27.11-.53.25-.77.41s-.46.35-.66.55c-.21.21-.4.43-.56.67s-.3.5-.41.76c-.01.02-.01.03-.01.04-.1.24-.17.48-.23.72H1V6h2.66c.04-.07.07-.13.12-.2.27-.4.57-.77.91-1.11s.72-.65 1.11-.91c.4-.27.83-.51 1.28-.7s.93-.34 1.41-.43c.99-.21 2.03-.21 3.02 0 .48.09.96.24 1.41.43s.88.43 1.28.7c.39.26.77.57 1.11.91s.64.71.91 1.11zM12.5 10c0-1.38-1.12-2.5-2.5-2.5S7.5 8.62 7.5 10s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm-8.72 4.2c-.47-.69-.29-1.62.4-2.09.69-.46 1.62-.28 2.08.41.16.24.35.46.55.67.21.2.43.39.67.55s.5.3.77.41c.27.12.55.2.84.26.59.13 1.23.12 1.82 0 .29-.06.57-.14.84-.26.27-.11.53-.25.77-.41s.46-.35.66-.55c.21-.21.4-.44.56-.67.16-.25.3-.5.41-.76.01-.02.01-.03.01-.04.1-.24.17-.48.23-.72H19v3h-2.66c-.04.06-.07.13-.12.2-.27.4-.57.77-.91 1.11s-.72.65-1.11.91c-.4.27-.83.51-1.28.7s-.93.33-1.41.43c-.99.21-2.03.21-3.02 0-.48-.1-.96-.24-1.41-.43s-.88-.43-1.28-.7c-.39-.26-.77-.57-1.11-.91s-.64-.71-.91-1.11z";break;case"share-alt2":e="M18 8l-5 4V9.01c-2.58.06-4.88.45-7 2.99.29-3.57 2.66-5.66 7-5.94V3zM4 14h11v-2l2-1.6V16H2V5h9.43c-1.83.32-3.31 1-4.41 2H4v7z";break;case"share":e="M14.5 12c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.24.03-.46.09-.69l-4.38-2.3c-.55.61-1.33.99-2.21.99-1.66 0-3-1.34-3-3s1.34-3 3-3c.88 0 1.66.39 2.21.99l4.38-2.3c-.06-.23-.09-.45-.09-.69 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.88 0-1.66-.39-2.21-.99l-4.38 2.3c.06.23.09.45.09.69s-.03.46-.09.69l4.38 2.3c.55-.61 1.33-.99 2.21-.99z";break;case"shield-alt":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2z";break;case"shield":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2zm0 8h5s1-1 1-5c0 0-5-1-6-2v7H5c1 4 5 7 5 7v-7z";break;case"shortcode":e="M6 14H4V6h2V4H2v12h4M7.1 17h2.1l3.7-14h-2.1M14 4v2h2v8h-2v2h4V4";break;case"slides":e="M5 14V6h10v8H5zm-3-1V7h2v6H2zm4-6v6h8V7H6zm10 0h2v6h-2V7zm-3 2V8H7v1h6zm0 3v-2H7v2h6z";break;case"smartphone":e="M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z";break;case"smiley":e="M7 5.2c1.1 0 2 .89 2 2 0 .37-.11.71-.28 1C8.72 8.2 8 8 7 8s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.9-2 2-2zm6 0c1.11 0 2 .89 2 2 0 .37-.11.71-.28 1 0 0-.72-.2-1.72-.2s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.89-2 2-2zm-3 13.7c3.72 0 7.03-2.36 8.23-5.88l-1.32-.46C15.9 15.52 13.12 17.5 10 17.5s-5.9-1.98-6.91-4.94l-1.32.46c1.2 3.52 4.51 5.88 8.23 5.88z";break;case"sort":e="M11 7H1l5 7zm-2 7h10l-5-7z";break;case"sos":e="M18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8 8-3.58 8-8zM7.23 3.57L8.72 7.3c-.62.29-1.13.8-1.42 1.42L3.57 7.23c.71-1.64 2.02-2.95 3.66-3.66zm9.2 3.66L12.7 8.72c-.29-.62-.8-1.13-1.42-1.42l1.49-3.73c1.64.71 2.95 2.02 3.66 3.66zM10 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm-6.43.77l3.73-1.49c.29.62.8 1.13 1.42 1.42l-1.49 3.73c-1.64-.71-2.95-2.02-3.66-3.66zm9.2 3.66l-1.49-3.73c.62-.29 1.13-.8 1.42-1.42l3.73 1.49c-.71 1.64-2.02 2.95-3.66 3.66z";break;case"star-empty":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88l-4.68 2.34.87-5.15-3.18-3.56 4.65-.58z";break;case"star-filled":e="M10 1l3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z";break;case"star-half":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88V3.24z";break;case"sticky":e="M5 3.61V1.04l8.99-.01-.01 2.58c-1.22.26-2.16 1.35-2.16 2.67v.5c.01 1.31.93 2.4 2.17 2.66l-.01 2.58h-3.41l-.01 2.57c0 .6-.47 4.41-1.06 4.41-.6 0-1.08-3.81-1.08-4.41v-2.56L5 12.02l.01-2.58c1.23-.25 2.15-1.35 2.15-2.66v-.5c0-1.31-.92-2.41-2.16-2.67z";break;case"store":e="M1 10c.41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.51.43.54 0 1.08-.14 1.49-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.63-.46 1-1.17 1-2V7l-3-7H4L0 7v1c0 .83.37 1.54 1 2zm2 8.99h5v-5h4v5h5v-7c-.37-.05-.72-.22-1-.43-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.49.44-.55 0-1.1-.14-1.51-.44-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.5.44-.54 0-1.09-.14-1.5-.44-.63-.45-1-.73-1-1.57 0 .84-.38 1.12-1 1.57-.29.21-.63.38-1 .44v6.99z";break;case"table-col-after":e="M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z";break;case"table-col-before":e="M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z";break;case"table-col-delete":e="M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z";break;case"table-row-after":e="M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z";break;case"table-row-before":e="M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z";break;case"table-row-delete":e="M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z";break;case"tablet":e="M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z";break;case"tag":e="M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z";break;case"tagcloud":e="M11 3v4H1V3h10zm8 0v4h-7V3h7zM7 8v3H1V8h6zm12 0v3H8V8h11zM9 12v2H1v-2h8zm10 0v2h-9v-2h9zM6 15v1H1v-1h5zm5 0v1H7v-1h4zm3 0v1h-2v-1h2zm5 0v1h-4v-1h4z";break;case"testimonial":e="M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z";break;case"text":e="M18 3v2H2V3h16zm-6 4v2H2V7h10zm6 0v2h-4V7h4zM8 11v2H2v-2h6zm10 0v2h-8v-2h8zm-4 4v2H2v-2h12z";break;case"thumbs-down":e="M7.28 18c-.15.02-.26-.02-.41-.07-.56-.19-.83-.79-.66-1.35.17-.55 1-3.04 1-3.58 0-.53-.75-1-1.35-1h-3c-.6 0-1-.4-1-1s2-7 2-7c.17-.39.55-1 1-1H14v9h-2.14c-.41.41-3.3 4.71-3.58 5.27-.21.41-.6.68-1 .73zM18 12h-2V3h2v9z";break;case"thumbs-up":e="M12.72 2c.15-.02.26.02.41.07.56.19.83.79.66 1.35-.17.55-1 3.04-1 3.58 0 .53.75 1 1.35 1h3c.6 0 1 .4 1 1s-2 7-2 7c-.17.39-.55 1-1 1H6V8h2.14c.41-.41 3.3-4.71 3.58-5.27.21-.41.6-.68 1-.73zM2 8h2v9H2V8z";break;case"tickets-alt":e="M20 6.38L18.99 9.2v-.01c-.52-.19-1.03-.16-1.53.08s-.85.62-1.04 1.14-.16 1.03.07 1.53c.24.5.62.84 1.15 1.03v.01l-1.01 2.82-15.06-5.38.99-2.79c.52.19 1.03.16 1.53-.08.5-.23.84-.61 1.03-1.13s.16-1.03-.08-1.53c-.23-.49-.61-.83-1.13-1.02L4.93 1zm-4.97 5.69l1.37-3.76c.12-.31.1-.65-.04-.95s-.39-.53-.7-.65L8.14 3.98c-.64-.23-1.37.12-1.6.74L5.17 8.48c-.24.65.1 1.37.74 1.6l7.52 2.74c.14.05.28.08.43.08.52 0 1-.33 1.17-.83zM7.97 4.45l7.51 2.73c.19.07.34.21.43.39.08.18.09.38.02.57l-1.37 3.76c-.13.38-.58.59-.96.45L6.09 9.61c-.39-.14-.59-.57-.45-.96l1.37-3.76c.1-.29.39-.49.7-.49.09 0 .17.02.26.05zm6.82 12.14c.35.27.75.41 1.2.41H16v3H0v-2.96c.55 0 1.03-.2 1.41-.59.39-.38.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59V10h1.05l-.28.8 2.87 1.02c-.51.16-.89.62-.89 1.18v4c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25v-1.75l.83.3c.12.43.36.78.71 1.04zM3.25 17v-4c0-.41.34-.75.75-.75h.83l7.92 2.83V17c0 .41-.34.75-.75.75H4c-.41 0-.75-.34-.75-.75z";break;case"tickets":e="M20 5.38L18.99 8.2v-.01c-1.04-.37-2.19.18-2.57 1.22-.37 1.04.17 2.19 1.22 2.56v.01l-1.01 2.82L1.57 9.42l.99-2.79c1.04.38 2.19-.17 2.56-1.21s-.17-2.18-1.21-2.55L4.93 0zm-5.45 3.37c.74-2.08-.34-4.37-2.42-5.12-2.08-.74-4.37.35-5.11 2.42-.74 2.08.34 4.38 2.42 5.12 2.07.74 4.37-.35 5.11-2.42zm-2.56-4.74c.89.32 1.57.94 1.97 1.71-.01-.01-.02-.01-.04-.02-.33-.12-.67.09-.78.4-.1.28-.03.57.05.91.04.27.09.62-.06 1.04-.1.29-.33.58-.65 1l-.74 1.01.08-4.08.4.11c.19.04.26-.24.08-.29 0 0-.57-.15-.92-.28-.34-.12-.88-.36-.88-.36-.18-.08-.3.19-.12.27 0 0 .16.08.34.16l.01 1.63L9.2 9.18l.08-4.11c.2.06.4.11.4.11.19.04.26-.23.07-.29 0 0-.56-.15-.91-.28-.07-.02-.14-.05-.22-.08.93-.7 2.19-.94 3.37-.52zM7.4 6.19c.17-.49.44-.92.78-1.27l.04 5c-.94-.95-1.3-2.39-.82-3.73zm4.04 4.75l2.1-2.63c.37-.41.57-.77.69-1.12.05-.12.08-.24.11-.35.09.57.04 1.18-.17 1.77-.45 1.25-1.51 2.1-2.73 2.33zm-.7-3.22l.02 3.22c0 .02 0 .04.01.06-.4 0-.8-.07-1.2-.21-.33-.12-.63-.28-.9-.48zm1.24 6.08l2.1.75c.24.84 1 1.45 1.91 1.45H16v3H0v-2.96c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2V9h1.05l-.28.8 4.28 1.52C4.4 12.03 4 12.97 4 14c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.07-.02-.13-.02-.2zm-6.53-2.33l1.48.53c-.14.04-.15.27.03.28 0 0 .18.02.37.03l.56 1.54-.78 2.36-1.31-3.9c.21-.01.41-.03.41-.03.19-.02.17-.31-.02-.3 0 0-.59.05-.96.05-.07 0-.15 0-.23-.01.13-.2.28-.38.45-.55zM4.4 14c0-.52.12-1.02.32-1.46l1.71 4.7C5.23 16.65 4.4 15.42 4.4 14zm4.19-1.41l1.72.62c.07.17.12.37.12.61 0 .31-.12.66-.28 1.16l-.35 1.2zM11.6 14c0 1.33-.72 2.49-1.79 3.11l1.1-3.18c.06-.17.1-.31.14-.46l.52.19c.02.11.03.22.03.34zm-4.62 3.45l1.08-3.14 1.11 3.03c.01.02.01.04.02.05-.37.13-.77.21-1.19.21-.35 0-.69-.06-1.02-.15z";break;case"tide":e="M17 7.2V3H3v7.1c2.6-.5 4.5-1.5 6.4-2.6.2-.2.4-.3.6-.5v3c-1.9 1.1-4 2.2-7 2.8V17h14V9.9c-2.6.5-4.4 1.5-6.2 2.6-.3.1-.5.3-.8.4V10c2-1.1 4-2.2 7-2.8z";break;case"translation":e="M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z";break;case"trash":e="M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z";break;case"twitter":e="M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9.01.15.01.31.01.47 0 4.85-3.69 10.44-10.43 10.44-2.07 0-4-.61-5.63-1.65.29.03.58.05.88.05 1.72 0 3.3-.59 4.55-1.57-1.6-.03-2.95-1.09-3.42-2.55.22.04.45.07.69.07.33 0 .66-.05.96-.13-1.67-.34-2.94-1.82-2.94-3.6v-.04c.5.27 1.06.44 1.66.46-.98-.66-1.63-1.78-1.63-3.06 0-.67.18-1.3.5-1.84 1.81 2.22 4.51 3.68 7.56 3.83-.06-.27-.1-.55-.1-.84 0-2.02 1.65-3.66 3.67-3.66 1.06 0 2.01.44 2.68 1.16.83-.17 1.62-.47 2.33-.89-.28.85-.86 1.57-1.62 2.02.75-.08 1.45-.28 2.11-.57z";break;case"undo":e="M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z";break;case"universal-access-alt":e="M19 10c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9 9-4.03 9-9zm-9-7.4c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"universal-access":e="M10 2.6c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"unlock":e="M12 9V6c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.21 1.79-4 4-4s4 1.79 4 4v3h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h7zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"update":e="M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z";break;case"upload":e="M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z";break;case"vault":e="M18 17V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-1 0H3V3h14v14zM4.75 4h10.5c.41 0 .75.34.75.75V6h-1v3h1v2h-1v3h1v1.25c0 .41-.34.75-.75.75H4.75c-.41 0-.75-.34-.75-.75V4.75c0-.41.34-.75.75-.75zM13 10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM9 7l.77 1.15C10.49 8.46 11 9.17 11 10c0 1.1-.9 2-2 2s-2-.9-2-2c0-.83.51-1.54 1.23-1.85z";break;case"video-alt":e="M8 5c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1 0 .57.49 1 1 1h5c.55 0 1-.45 1-1zm6 5l4-4v10l-4-4v-2zm-1 4V8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1z";break;case"video-alt2":e="M12 13V7c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2zm1-2.5l6 4.5V5l-6 4.5v1z";break;case"video-alt3":e="M19 15V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2zM8 14V6l6 4z";break;case"visibility":e="M19.7 9.4C17.7 6 14 3.9 10 3.9S2.3 6 .3 9.4L0 10l.3.6c2 3.4 5.7 5.5 9.7 5.5s7.7-2.1 9.7-5.5l.3-.6-.3-.6zM10 14.1c-3.1 0-6-1.6-7.7-4.1C3.6 8 5.7 6.6 8 6.1c-.9.6-1.5 1.7-1.5 2.9 0 1.9 1.6 3.5 3.5 3.5s3.5-1.6 3.5-3.5c0-1.2-.6-2.3-1.5-2.9 2.3.5 4.4 1.9 5.7 3.9-1.7 2.5-4.6 4.1-7.7 4.1z";break;case"warning":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z";break;case"welcome-add-page":e="M17 7V4h-2V2h-3v1H3v15h11V9h1V7h2zm-1-2v1h-2v2h-1V6h-2V5h2V3h1v2h2z";break;case"welcome-comments":e="M5 2h10c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8.5 8.5L11 8l2.5-2.5-1-1L10 7 7.5 4.5l-1 1L9 8l-2.5 2.5 1 1L10 9l2.5 2.5z";break;case"welcome-learn-more":e="M10 10L2.54 7.02 3 18H1l.48-11.41L0 6l10-4 10 4zm0-5c-.55 0-1 .22-1 .5s.45.5 1 .5 1-.22 1-.5-.45-.5-1-.5zm0 6l5.57-2.23c.71.94 1.2 2.07 1.36 3.3-.3-.04-.61-.07-.93-.07-2.55 0-4.78 1.37-6 3.41C8.78 13.37 6.55 12 4 12c-.32 0-.63.03-.93.07.16-1.23.65-2.36 1.36-3.3z";break;case"welcome-view-site":e="M18 14V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-8-8c2.3 0 4.4 1.14 6 3-1.6 1.86-3.7 3-6 3s-4.4-1.14-6-3c1.6-1.86 3.7-3 6-3zm2 3c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm2 8h3v1H3v-1h3v-1h8v1z";break;case"welcome-widgets-menus":e="M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z";break;case"welcome-write-blog":e="M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z";break;case"wordpress-alt":e="M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z";break;case"wordpress":e="M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10s4.48 10 10 10 10-4.48 10-10zM10 1.01c4.97 0 8.99 4.02 8.99 8.99s-4.02 8.99-8.99 8.99S1.01 14.97 1.01 10 5.03 1.01 10 1.01zM8.01 14.82L4.96 6.61c.49-.03 1.05-.08 1.05-.08.43-.05.38-1.01-.06-.99 0 0-1.29.1-2.13.1-.15 0-.33 0-.52-.01 1.44-2.17 3.9-3.6 6.7-3.6 2.09 0 3.99.79 5.41 2.09-.6-.08-1.45.35-1.45 1.42 0 .66.38 1.22.79 1.88.31.54.5 1.22.5 2.21 0 1.34-1.27 4.48-1.27 4.48l-2.71-7.5c.48-.03.75-.16.75-.16.43-.05.38-1.1-.05-1.08 0 0-1.3.11-2.14.11-.78 0-2.11-.11-2.11-.11-.43-.02-.48 1.06-.05 1.08l.84.08 1.12 3.04zm6.02 2.15L16.64 10s.67-1.69.39-3.81c.63 1.14.94 2.42.94 3.81 0 2.96-1.56 5.58-3.94 6.97zM2.68 6.77L6.5 17.25c-2.67-1.3-4.47-4.08-4.47-7.25 0-1.16.2-2.23.65-3.23zm7.45 4.53l2.29 6.25c-.75.27-1.57.42-2.42.42-.72 0-1.41-.11-2.06-.3z";break;case"yes-alt":e="M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z";break;case"yes":e="M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z"}if(!e)return null;var i,s=["dashicon","dashicons-"+(i=this.props).icon,i.className].filter(Boolean).join(" ");return Object(r.createElement)(u,{"aria-hidden":!0,role:"img",focusable:"false",className:s,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 20 20"},Object(r.createElement)(c,{d:e}))}}]),t}(r.Component);var Z=Object(r.forwardRef)(function(e,t){var n=e.icon,o=e.children,a=e.label,i=e.className,c=e.tooltip,s=e.shortcut,l=e.labelPosition,u=Object(T.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition"]),d=u["aria-pressed"],h=p()("components-icon-button",i,{"has-text":o}),f=c||a,b=!u.disabled&&(c||s||!!a&&(!o||Object(D.isArray)(o)&&!o.length)&&!1!==c),v=Object(r.createElement)(I,Object(P.a)({"aria-label":a},u,{className:h,ref:t}),Object(D.isString)(n)?Object(r.createElement)(q,{icon:n,ariaPressed:d}):n,o);return b&&(v=Object(r.createElement)(G,{text:f,shortcut:s,position:l},v)),v});var X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,o=e.className,a=void 0===o?"lockscroll":o,i=0,c=0;function s(e){var t=n.scrollingElement||n.body;e&&(c=t.scrollTop);var o=e?"add":"remove";t.classList[o](a),n.documentElement.classList[o](a),e||(t.scrollTop=c)}return function(e){function t(){return Object(v.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){0===i&&s(!0),++i}},{key:"componentWillUnmount",value:function(){1===i&&s(!1),--i}},{key:"render",value:function(){return null}}]),t}(r.Component)}(),Q=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).stopEventPropagationOutsideContainer=n.stopEventPropagationOutsideContainer.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"stopEventPropagationOutsideContainer",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(T.a)(e,["children"]);return Object(r.createElement)("div",Object(P.a)({},n,{onMouseDown:this.stopEventPropagationOutsideContainer}),t)}}]),t}(r.Component),J=Object(r.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){}}),ee=J.Provider,te=J.Consumer,ne=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).registerSlot=e.registerSlot.bind(Object(k.a)(Object(k.a)(e))),e.registerFill=e.registerFill.bind(Object(k.a)(Object(k.a)(e))),e.unregisterSlot=e.unregisterSlot.bind(Object(k.a)(Object(k.a)(e))),e.unregisterFill=e.unregisterFill.bind(Object(k.a)(Object(k.a)(e))),e.getSlot=e.getSlot.bind(Object(k.a)(Object(k.a)(e))),e.getFills=e.getFills.bind(Object(k.a)(Object(k.a)(e))),e.slots={},e.fills={},e.state={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.forceUpdateFills(e),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(_.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.forceUpdateFills(e))}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(D.without)(this.fills[e],t),this.resetFillOccurrence(e),this.forceUpdateSlot(e)}},{key:"getSlot",value:function(e){return this.slots[e]}},{key:"getFills",value:function(e,t){return this.slots[e]!==t?[]:Object(D.sortBy)(this.fills[e],"occurrence")}},{key:"resetFillOccurrence",value:function(e){Object(D.forEach)(this.fills[e],function(e){e.resetOccurrence()})}},{key:"forceUpdateFills",value:function(e){Object(D.forEach)(this.fills[e],function(e){e.forceUpdate()})}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"render",value:function(){return Object(r.createElement)(ee,{value:this.state},this.props.children)}}]),t}(r.Component),oe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,o=t.unregisterSlot,r=t.registerSlot;e.name!==n&&(o(e.name),r(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,o=e.bubblesVirtually,a=void 0!==o&&o,i=e.fillProps,c=void 0===i?{}:i,s=e.getFills;if(a)return Object(r.createElement)("div",{ref:this.bindNode});var l=Object(D.map)(s(n,this),function(e){var t=e.occurrence,n=Object(D.isFunction)(e.props.children)?e.props.children(c):e.props.children;return r.Children.map(n,function(e,n){if(!e||Object(D.isString)(e))return e;var o="".concat(t,"---").concat(e.key||n);return Object(r.cloneElement)(e,{key:o})})}).filter(Object(D.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(D.isFunction)(t)?t(l):l)}}]),t}(r.Component),re=function(e){return Object(r.createElement)(te,null,function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(r.createElement)(oe,Object(P.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))})},ae=0,ie=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).occurrence=++ae,e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){(0,this.props.registerFill)(this.props.name,this)}},{key:"componentWillUpdate",value:function(){this.occurrence||(this.occurrence=++ae);var e=(0,this.props.getSlot)(this.props.name);e&&!e.props.bubblesVirtually&&e.forceUpdate()}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterFill)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,o=t.unregisterFill,r=t.registerFill;e.name!==n&&(o(e.name,this),r(n,this))}},{key:"resetOccurrence",value:function(){this.occurrence=null}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.getSlot,o=this.props.children,a=n(t);return a&&a.node&&a.props.bubblesVirtually?(Object(D.isFunction)(o)&&(o=o(a.props.fillProps)),Object(r.createPortal)(o,a.node)):null}}]),t}(r.Component),ce=function(e){return Object(r.createElement)(te,null,function(t){var n=t.getSlot,o=t.registerFill,a=t.unregisterFill;return Object(r.createElement)(ie,Object(P.a)({},e,{getSlot:n,registerFill:o,unregisterFill:a}))})};function se(e){var t=function(t){return Object(r.createElement)(ce,Object(P.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(r.createElement)(re,Object(P.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}var le=V(F(function(e){return e.children})),ue=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).getAnchorRect=e.getAnchorRect.bind(Object(k.a)(Object(k.a)(e))),e.computePopoverPosition=e.computePopoverPosition.bind(Object(k.a)(Object(k.a)(e))),e.maybeClose=e.maybeClose.bind(Object(k.a)(Object(k.a)(e))),e.throttledRefresh=e.throttledRefresh.bind(Object(k.a)(Object(k.a)(e))),e.refresh=e.refresh.bind(Object(k.a)(Object(k.a)(e))),e.refreshOnAnchorMove=e.refreshOnAnchorMove.bind(Object(k.a)(Object(k.a)(e))),e.contentNode=Object(r.createRef)(),e.anchorNode=Object(r.createRef)(),e.state={popoverLeft:null,popoverTop:null,yAxis:"top",xAxis:"center",contentHeight:null,contentWidth:null,isMobile:!1,popoverSize:null,isReadyToAnimate:!1},e.anchorRect={},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.toggleAutoRefresh(!0),this.refresh(),this.focusTimeout=setTimeout(function(){e.focus()},0)}},{key:"componentDidUpdate",value:function(e){e.position!==this.props.position&&this.computePopoverPosition(this.state.popoverSize,this.anchorRect)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.focusTimeout),this.toggleAutoRefresh(!1)}},{key:"toggleAutoRefresh",value:function(e){window.cancelAnimationFrame(this.rafHandle);var t=e?"addEventListener":"removeEventListener";window[t]("resize",this.throttledRefresh),window[t]("scroll",this.throttledRefresh,!0),e?this.autoRefresh=setInterval(this.refreshOnAnchorMove,500):clearInterval(this.autoRefresh)}},{key:"throttledRefresh",value:function(e){window.cancelAnimationFrame(this.rafHandle),e&&"scroll"===e.type&&this.contentNode.current.contains(e.target)||(this.rafHandle=window.requestAnimationFrame(this.refresh))}},{key:"refreshOnAnchorMove",value:function(){var e=this.props.getAnchorRect,t=(void 0===e?this.getAnchorRect:e)(this.anchorNode.current);!H()(t,this.anchorRect)&&(this.anchorRect=t,this.computePopoverPosition(this.state.popoverSize,t))}},{key:"refresh",value:function(){var e=this.props.getAnchorRect,t=(void 0===e?this.getAnchorRect:e)(this.anchorNode.current),n=this.contentNode.current.getBoundingClientRect(),o={width:n.width,height:n.height};(!this.state.popoverSize||o.width!==this.state.popoverSize.width||o.height!==this.state.popoverSize.height)&&this.setState({popoverSize:o,isReadyToAnimate:!0}),this.anchorRect=t,this.computePopoverPosition(o,t)}},{key:"focus",value:function(){var e=this.props.focusOnMount;if(e&&this.contentNode.current)if("firstElement"!==e)"container"===e&&this.contentNode.current.focus();else{var t=C.focus.tabbable.find(this.contentNode.current)[0];t?t.focus():this.contentNode.current.focus()}}},{key:"getAnchorRect",value:function(e){if(e&&e.parentNode){var t=e.parentNode.getBoundingClientRect(),n=window.getComputedStyle(e.parentNode),o=n.paddingTop,r=n.paddingBottom,a=parseInt(o,10),i=parseInt(r,10);return{x:t.left,y:t.top+a,width:t.width,height:t.height-a-i,left:t.left,right:t.right,top:t.top+a,bottom:t.bottom-i}}}},{key:"computePopoverPosition",value:function(e,t){var n=this.props,o=n.position,r=A(t,e,void 0===o?"top":o,n.expandOnMobile);this.state.yAxis===r.yAxis&&this.state.xAxis===r.xAxis&&this.state.popoverLeft===r.popoverLeft&&this.state.popoverTop===r.popoverTop&&this.state.contentHeight===r.contentHeight&&this.state.contentWidth===r.contentWidth&&this.state.isMobile===r.isMobile||this.setState(r)}},{key:"maybeClose",value:function(e){var t=this.props,n=t.onKeyDown,o=t.onClose;e.keyCode===M.ESCAPE&&o&&(e.stopPropagation(),o()),n&&n(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.headerTitle,o=t.onClose,a=t.children,i=t.className,c=t.onClickOutside,s=void 0===c?o:c,l=t.noArrow,u=(t.position,t.range,t.focusOnMount),d=(t.getAnchorRect,t.expandOnMobile),h=t.animate,f=void 0===h||h,v=Object(T.a)(t,["headerTitle","onClose","children","className","onClickOutside","noArrow","position","range","focusOnMount","getAnchorRect","expandOnMobile","animate"]),m=this.state,y=m.popoverLeft,g=m.popoverTop,O=m.yAxis,k=m.xAxis,_=m.contentHeight,D=m.contentWidth,M=m.popoverSize,w=m.isMobile,S=m.isReadyToAnimate,j={top:"bottom",bottom:"top"}[O]||"middle",C={left:"right",right:"left"}[k]||"center",E=p()("components-popover",i,"is-"+O,"is-"+k,{"is-mobile":w,"is-without-arrow":l||"center"===k&&"middle"===O}),z=Object(r.createElement)(U,{onClickOutside:s},Object(r.createElement)(b,{type:f&&S?"appear":null,options:{origin:j+" "+C}},function(t){var i=t.className;return Object(r.createElement)(Q,Object(P.a)({className:p()(E,i),style:{top:!w&&g?g+"px":void 0,left:!w&&y?y+"px":void 0,visibility:M?void 0:"hidden"}},v,{onKeyDown:e.maybeClose}),w&&Object(r.createElement)("div",{className:"components-popover__header"},Object(r.createElement)("span",{className:"components-popover__header-title"},n),Object(r.createElement)(Z,{className:"components-popover__close",icon:"no-alt",onClick:o})),Object(r.createElement)("div",{ref:e.contentNode,className:"components-popover__content",style:{maxHeight:!w&&_?_+"px":void 0,maxWidth:!w&&D?D+"px":void 0},tabIndex:"-1"},a))}));return u&&(z=Object(r.createElement)(le,null,z)),Object(r.createElement)(te,null,function(t){var n=t.getSlot;return n&&n("Popover")&&(z=Object(r.createElement)(ce,{name:"Popover"},z)),Object(r.createElement)("span",{ref:e.anchorNode},z,w&&d&&Object(r.createElement)(X,null))})}}]),t}(r.Component);ue.defaultProps={focusOnMount:"firstElement",noArrow:!1};var de=ue;de.Slot=function(){return Object(r.createElement)(re,{bubblesVirtually:!0,name:"Popover"})};var he=de,fe=n(44),pe=Object(S.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).debouncedSpeak=Object(D.debounce)(e.speak.bind(Object(k.a)(Object(k.a)(e))),500),e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(fe.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(r.createElement)(e,Object(P.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(r.Component)},"withSpokenMessages");function be(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=[],r=0;r0,v=b?"components-autocomplete-listbox-".concat(o):null,m=b?"components-autocomplete-item-".concat(o,"-").concat(d):null;return Object(r.createElement)("div",{ref:this.bindNode,onClick:this.resetWhenSuppressed,className:"components-autocomplete"},n({isExpanded:b,listBoxId:v,activeId:m}),b&&Object(r.createElement)(he,{focusOnMount:!1,onClose:this.reset,position:"top right",className:"components-autocomplete__popover",getAnchorRect:ve},Object(r.createElement)("div",{id:v,role:"listbox",className:"components-autocomplete__results"},b&&Object(D.map)(l,function(t,n){return Object(r.createElement)(I,{key:t.key,id:"components-autocomplete-item-".concat(o,"-").concat(t.key),role:"option","aria-selected":n===s,disabled:t.isDisabled,className:p()("components-autocomplete__result",f,{"is-selected":n===s}),onClick:function(){return e.select(t)}},t.label)}))))}}]),t}(r.Component),ye=Object(S.compose)([pe,S.withInstanceId,z])(me);var ge=function(e){var t=e.id,n=e.label,o=e.help,a=e.className,i=e.children;return Object(r.createElement)("div",{className:p()("components-base-control",a)},Object(r.createElement)("div",{className:"components-base-control__field"},n&&t&&Object(r.createElement)("label",{className:"components-base-control__label",htmlFor:t},n),n&&!t&&Object(r.createElement)("span",{className:"components-base-control__label"},n),i),!!o&&Object(r.createElement)("p",{id:t+"__help",className:"components-base-control__help"},o))};var Oe=function(e){var t=e.className,n=Object(T.a)(e,["className"]),o=p()("components-button-group",t);return Object(r.createElement)("div",Object(P.a)({},n,{className:o,role:"group"}))};var ke=Object(S.withInstanceId)(function(e){var t=e.label,n=e.className,o=e.heading,a=e.checked,i=e.help,c=e.instanceId,s=e.onChange,l=Object(T.a)(e,["label","className","heading","checked","help","instanceId","onChange"]),u="inspector-checkbox-control-".concat(c);return Object(r.createElement)(ge,{label:o,id:u,help:i,className:n},Object(r.createElement)("input",Object(P.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return s(e.target.checked)},checked:a,"aria-describedby":i?u+"__help":void 0},l)),Object(r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))}),_e=n(186),De=n.n(_e),Me=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(k.a)(Object(k.a)(e))),e.onCopy=e.onCopy.bind(Object(k.a)(Object(k.a)(e))),e.getText=e.getText.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){var e=this.container,t=this.getText,n=this.onCopy,o=e.firstChild;this.clipboard=new De.a(o,{text:t,container:e}),this.clipboard.on("success",n)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard,clearTimeout(this.onCopyTimeout)}},{key:"bindContainer",value:function(e){this.container=e}},{key:"onCopy",value:function(e){e.clearSelection();var t=this.props,n=t.onCopy,o=t.onFinishCopy;n&&(n(),o&&(clearTimeout(this.onCopyTimeout),this.onCopyTimeout=setTimeout(o,4e3)))}},{key:"getText",value:function(){var e=this.props.text;return"function"==typeof e&&(e=e()),e}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,o=(e.onCopy,e.onFinishCopy,e.text,Object(T.a)(e,["className","children","onCopy","onFinishCopy","text"])),a=o.icon,i=p()("components-clipboard-button",t),c=a?Z:I;return Object(r.createElement)("span",{ref:this.bindContainer,onCopy:function(e){e.target.focus()}},Object(r.createElement)(c,Object(P.a)({},o,{className:i}),n))}}]),t}(r.Component),we=function(e){var t=e.className,n=e.colorValue,o=Object(T.a)(e,["className","colorValue"]);return Object(r.createElement)("span",Object(P.a)({className:p()("component-color-indicator",t),style:{background:n}},o))},Se=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(k.a)(Object(k.a)(e))),e.close=e.close.bind(Object(k.a)(Object(k.a)(e))),e.closeIfClickOutside=e.closeIfClickOutside.bind(Object(k.a)(Object(k.a)(e))),e.containerRef=Object(r.createRef)(),e.state={isOpen:!1},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){var e=this.state.isOpen,t=this.props.onToggle;e&&t&&t(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,o=this.props.onToggle;t.isOpen!==n&&o&&o(n)}},{key:"toggle",value:function(){this.setState(function(e){return{isOpen:!e.isOpen}})}},{key:"closeIfClickOutside",value:function(e){this.containerRef.current.contains(e.target)||this.close()}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"render",value:function(){var e=this.state.isOpen,t=this.props,n=t.renderContent,o=t.renderToggle,a=t.position,i=void 0===a?"bottom":a,c=t.className,s=t.contentClassName,l=t.expandOnMobile,u=t.headerTitle,d=t.focusOnMount,h={isOpen:e,onToggle:this.toggle,onClose:this.close};return Object(r.createElement)("div",{className:c,ref:this.containerRef},o(h),e&&Object(r.createElement)(he,{className:s,position:i,onClose:this.close,onClickOutside:this.closeIfClickOutside,expandOnMobile:l,headerTitle:u,focusOnMount:d},n(h)))}}]),t}(r.Component),je=n(45),Ce=n.n(je);function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?Ce()(e.hex):Ce()(e),o=n.toHsl();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.l=Math.round(100*o.l);var r=n.toHsv();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.v=Math.round(100*r.v);var a=n.toRgb(),i=n.toHex();return 0===o.s&&(o.h=t||0,r.h=t||0),{color:n,hex:"000000"===i&&0===a.a?"transparent":"#".concat(i),hsl:o,hsv:r,oldHue:e.h||t||o.h,rgb:a,source:e.source}}function Ee(e,t){e.preventDefault();var n=t.getBoundingClientRect(),o=n.left,r=n.top,a=n.width,i=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=c-(o+window.pageXOffset),u=s-(r+window.pageYOffset);return l<0?l=0:l>a?l=a:u<0?u=0:u>i&&(u=i),{top:u,left:l,width:a,height:i}}var ze=n(187),Te=n.n(ze),Ie=(n(198),function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindKeyTarget=e.bindKeyTarget.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.keyTarget,n=void 0===t?document:t;this.mousetrap=new Te.a(n),Object(D.forEach)(this.props.shortcuts,function(t,n){var o=e.props,r=o.bindGlobal,a=o.eventName,i=r?"bindGlobal":"bind";e.mousetrap[i](n,t,a)})}},{key:"componentWillUnmount",value:function(){this.mousetrap.reset()}},{key:"bindKeyTarget",value:function(e){this.keyTarget=e}},{key:"render",value:function(){var e=this.props.children;return r.Children.count(e)?Object(r.createElement)("div",{ref:this.bindKeyTarget},e):null}}]),t}(r.Component)),xe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(r.createRef)(),e.increase=e.increase.bind(Object(k.a)(Object(k.a)(e))),e.decrease=e.decrease.bind(Object(k.a)(Object(k.a)(e))),e.handleChange=e.handleChange.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseDown=e.handleMouseDown.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseUp=e.handleMouseUp.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,o=t.onChange,r=void 0===o?D.noop:o;e=parseInt(100*e,10),r({h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"})}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,o=t.onChange,r=void 0===o?D.noop:o,a=parseInt(100*n.a,10)-parseInt(100*e,10);r({h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"})}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,o=function(e,t,n){var o=Ee(e,n),r=o.left,a=o.width,i=r<0?0:Math.round(100*r/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);o&&n(o,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==M.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),o={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},a={left:"".concat(100*t.a,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(r.createElement)(Ie,{shortcuts:i},Object(r.createElement)("div",{className:"components-color-picker__alpha"},Object(r.createElement)("div",{className:"components-color-picker__alpha-gradient",style:o}),Object(r.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(r.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(w.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:a,onKeyDown:this.preventKeyEvents}))))}}]),t}(r.Component),He=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(r.createRef)(),e.increase=e.increase.bind(Object(k.a)(Object(k.a)(e))),e.decrease=e.decrease.bind(Object(k.a)(Object(k.a)(e))),e.handleChange=e.handleChange.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseDown=e.handleMouseDown.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseUp=e.handleMouseUp.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,o=t.onChange;(void 0===o?D.noop:o)({h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"})}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,o=t.onChange;(void 0===o?D.noop:o)({h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"})}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,o=function(e,t,n){var o=Ee(e,n),r=o.left,a=o.width,i=r>=a?359:100*r/a*360/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);o&&n(o,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==M.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,o=void 0===n?{}:n,a=t.instanceId,i={left:"".concat(100*o.h/360,"%")},c={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(r.createElement)(Ie,{shortcuts:c},Object(r.createElement)("div",{className:"components-color-picker__hue"},Object(r.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(r.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(r.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":o.h,"aria-orientation":"horizontal","aria-label":Object(w.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(a),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(r.createElement)("p",{className:"components-color-picker__hue-description screen-reader-text",id:"components-color-picker__hue-description-".concat(a)},Object(w.__)("Move the arrow left or right to change hue.")))))}}]),t}(r.Component),Ne=Object(S.withInstanceId)(He);var Re=Object(S.withInstanceId)(function(e){var t=e.label,n=e.value,o=e.help,a=e.className,i=e.instanceId,c=e.onChange,s=e.type,l=void 0===s?"text":s,u=Object(T.a)(e,["label","value","help","className","instanceId","onChange","type"]),d="inspector-text-control-".concat(i);return Object(r.createElement)(ge,{label:t,id:d,help:o,className:a},Object(r.createElement)("input",Object(P.a)({className:"components-text-control__input",type:l,id:d,value:n,onChange:function(e){return c(e.target.value)},"aria-describedby":o?d+"__help":void 0},u)))}),Le=function(e){function t(e){var n,o=e.value;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={value:String(o).toLowerCase()},n.handleBlur=n.handleBlur.bind(Object(k.a)(Object(k.a)(n))),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n.handleKeyDown=n.handleKeyDown.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.props.value&&this.setState({value:String(e.value).toLowerCase()})}},{key:"handleBlur",value:function(){var e=this.props,t=e.valueKey,n=e.onChange,o=this.state.value;n(Object(d.a)({},t,o))}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,o=t.onChange;e.length>4&&o(Object(d.a)({},n,e)),this.setState({value:e})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===M.ENTER||t===M.UP||t===M.DOWN){var n=this.state.value,o=this.props,r=o.valueKey;(0,o.onChange)(Object(d.a)({},r,n))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,o=Object(T.a)(t,["label"]),a=this.state.value;return Object(r.createElement)(Re,Object(P.a)({className:"components-color-picker__inputs-field",label:n,value:a,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(D.omit)(o,["onChange","value","valueKey"])))}}]),t}(r.Component),Ae=function(e){function t(e){var n,o=e.hsl;Object(v.a)(this,t),n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments));var r=1===o.a?"hex":"rgb";return n.state={view:r},n.toggleViews=n.toggleViews.bind(Object(k.a)(Object(k.a)(n))),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"}),Object(fe.speak)(Object(w.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"}),Object(fe.speak)(Object(w.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"}),Object(fe.speak)(Object(w.__)("Hex color mode active"))):(this.setState({view:"rgb"}),Object(fe.speak)(Object(w.__)("RGB mode active"))))}},{key:"handleChange",value:function(e){var t,n;e.hex?(t=e.hex,n="#"===String(t).charAt(0)?1:0,t.length!==4+n&&t.length<7+n&&Ce()(t).isValid()&&this.props.onChange({hex:e.hex,source:"hex"})):e.r||e.g||e.b?this.props.onChange({r:e.r||this.props.rgb.r,g:e.g||this.props.rgb.g,b:e.b||this.props.rgb.b,source:"rgb"}):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),this.props.onChange({h:this.props.hsl.h,s:this.props.hsl.s,l:this.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"})):(e.h||e.s||e.l)&&this.props.onChange({h:e.h||this.props.hsl.h,s:e.s||this.props.hsl.s,l:e.l||this.props.hsl.l,source:"hsl"})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;return"hex"===this.state.view?Object(r.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(r.createElement)(Le,{label:Object(w.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange})):"rgb"===this.state.view?Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"screen-reader-text"},Object(w.__)("Color value in RGB")),Object(r.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(r.createElement)(Le,{label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(r.createElement)(Le,{label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(r.createElement)(Le,{label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(r.createElement)(Le,{label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):"hsl"===this.state.view?Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"screen-reader-text"},Object(w.__)("Color value in HSL")),Object(r.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(r.createElement)(Le,{label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(r.createElement)(Le,{label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(r.createElement)(Le,{label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(r.createElement)(Le,{label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):void 0}},{key:"render",value:function(){return Object(r.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(r.createElement)("div",{className:"components-color-picker__inputs-toggle"},Object(r.createElement)(Z,{icon:"arrow-down-alt2",label:Object(w.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(r.Component),Fe=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).throttle=Object(D.throttle)(function(e,t,n){e(t,n)},50),n.container=Object(r.createRef)(),n.saturate=n.saturate.bind(Object(k.a)(Object(k.a)(n))),n.brighten=n.brighten.bind(Object(k.a)(Object(k.a)(n))),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n.handleMouseDown=n.handleMouseDown.bind(Object(k.a)(Object(k.a)(n))),n.handleMouseUp=n.handleMouseUp.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,o=t.onChange,r=void 0===o?D.noop:o,a=Object(D.clamp)(n.s+Math.round(100*e),0,100);r({h:n.h,s:a,v:n.v,a:n.a,source:"rgb"})}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,o=t.onChange,r=void 0===o?D.noop:o,a=Object(D.clamp)(n.v+Math.round(100*e),0,100);r({h:n.h,s:n.s,v:a,a:n.a,source:"rgb"})}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,o=function(e,t,n){var o=Ee(e,n),r=o.top,a=o.left,i=o.width,c=o.height,s=a<0?0:100*a/i,l=r>=c?0:-100*r/c+100;return l<1&&(l=0),{h:t.hsl.h,s:s,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,o,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==M.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,o=t.hsl,a=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},c={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(r.createElement)(Ie,{shortcuts:c},Object(r.createElement)("div",{style:{background:"hsl(".concat(o.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(r.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(r.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(r.createElement)("button",{"aria-label":Object(w.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(a),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(r.createElement)("div",{className:"screen-reader-text",id:"color-picker-saturation-".concat(a)},Object(w.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),t}(r.Component),Ve=Object(S.withInstanceId)(Fe),Be=function(e){function t(e){var n,o=e.color,r=void 0===o?"0071a1":o;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state=Pe(r),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"handleChange",value:function(e){var t=this.props,n=t.oldHue,o=t.onChangeComplete,r=void 0===o?D.noop:o;if(function(e){var t=0,n=0;return Object(D.each)(["r","g","b","a","h","s","l","v"],function(o){e[o]&&(t+=1,isNaN(e[o])||(n+=1))}),t===n&&e}(e)){var a=Pe(e,e.h||n);this.setState(a,Object(D.debounce)(Object(D.partial)(r,a),100))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,o=this.state,a=o.color,i=o.hex,c=o.hsl,s=o.hsv,l=o.rgb,u=p()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(r.createElement)("div",{className:u},Object(r.createElement)("div",{className:"components-color-picker__saturation"},Object(r.createElement)(Ve,{hsl:c,hsv:s,onChange:this.handleChange})),Object(r.createElement)("div",{className:"components-color-picker__body"},Object(r.createElement)("div",{className:"components-color-picker__controls"},Object(r.createElement)("div",{className:"components-color-picker__swatch"},Object(r.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:a&&a.toRgbString()}})),Object(r.createElement)("div",{className:"components-color-picker__toggles"},Object(r.createElement)(Ne,{hsl:c,onChange:this.handleChange}),n?null:Object(r.createElement)(xe,{rgb:l,hsl:c,onChange:this.handleChange}))),Object(r.createElement)(Ae,{rgb:l,hsl:c,hex:i,onChange:this.handleChange,disableAlpha:n})))}}]),t}(r.Component);function Ke(e){var t=e.colors,n=e.disableCustomColors,o=void 0!==n&&n,a=e.value,i=e.onChange,c=e.className;function s(e){return function(){return i(a===e?void 0:e)}}var l=Object(w.__)("Custom color picker"),u=p()("components-color-palette",c);return Object(r.createElement)("div",{className:u},Object(D.map)(t,function(e){var t=e.color,n=e.name,o={color:t},i=p()("components-color-palette__item",{"is-active":a===t});return Object(r.createElement)("div",{key:t,className:"components-color-palette__item-wrapper"},Object(r.createElement)(G,{text:n||Object(w.sprintf)(Object(w.__)("Color code: %s"),t)},Object(r.createElement)("button",{type:"button",className:i,style:o,onClick:s(t),"aria-label":n?Object(w.sprintf)(Object(w.__)("Color: %s"),n):Object(w.sprintf)(Object(w.__)("Color code: %s"),t),"aria-pressed":a===t})),a===t&&Object(r.createElement)(q,{icon:"saved"}))}),Object(r.createElement)("div",{className:"components-color-palette__custom-clear-wrapper"},!o&&Object(r.createElement)(Se,{className:"components-color-palette__custom-color",contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(r.createElement)(I,{"aria-expanded":t,onClick:n,"aria-label":l,isLink:!0},Object(w.__)("Custom Color"))},renderContent:function(){return Object(r.createElement)(Be,{color:a,onChangeComplete:function(e){return i(e.hex)},disableAlpha:!0})}}),Object(r.createElement)(I,{className:"components-color-palette__clear",type:"button",onClick:function(){return i(void 0)},isSmall:!0,isDefault:!0},Object(w.__)("Clear"))))}n(199);var We=n(27),Ue=n.n(We),Ye=n(188),$e=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChangeMoment=e.onChangeMoment.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,o=t.onChange,r=n?Ue()(n):Ue()(),a={hours:r.hours(),minutes:r.minutes(),seconds:r.seconds()};o(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?Ue()(e):Ue()()}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,o=this.getMomentDate(t);return Object(r.createElement)("div",{className:"components-datetime__date"},Object(r.createElement)(Ye.DayPickerSingleDateController,{date:o,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(o?o.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())}}))}}]),t}(r.Component),Ge=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={day:"",month:"",year:"",hours:"",minutes:"",am:!0,date:null},e.updateMonth=e.updateMonth.bind(Object(k.a)(Object(k.a)(e))),e.onChangeMonth=e.onChangeMonth.bind(Object(k.a)(Object(k.a)(e))),e.updateDay=e.updateDay.bind(Object(k.a)(Object(k.a)(e))),e.onChangeDay=e.onChangeDay.bind(Object(k.a)(Object(k.a)(e))),e.updateYear=e.updateYear.bind(Object(k.a)(Object(k.a)(e))),e.onChangeYear=e.onChangeYear.bind(Object(k.a)(Object(k.a)(e))),e.updateHours=e.updateHours.bind(Object(k.a)(Object(k.a)(e))),e.updateMinutes=e.updateMinutes.bind(Object(k.a)(Object(k.a)(e))),e.onChangeHours=e.onChangeHours.bind(Object(k.a)(Object(k.a)(e))),e.onChangeMinutes=e.onChangeMinutes.bind(Object(k.a)(Object(k.a)(e))),e.renderMonth=e.renderMonth.bind(Object(k.a)(Object(k.a)(e))),e.renderDay=e.renderDay.bind(Object(k.a)(Object(k.a)(e))),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,o=t.is12Hour;n===e.currentTime&&o===e.is12Hour||this.syncState(this.props)}},{key:"getMaxHours",value:function(){return this.props.is12Hour?12:23}},{key:"getMinHours",value:function(){return this.props.is12Hour?1:0}},{key:"syncState",value:function(e){var t=e.currentTime,n=e.is12Hour,o=t?Ue()(t):Ue()(),r=o.format("DD"),a=o.format("MM"),i=o.format("YYYY"),c=o.format("mm"),s=o.format("A"),l=o.format(n?"hh":"HH"),u=t?Ue()(t):Ue()();this.setState({day:r,month:a,year:i,minutes:c,hours:l,am:s,date:u})}},{key:"updateHours",value:function(){var e=this.props,t=e.is12Hour,n=e.onChange,o=this.state,r=o.am,a=o.hours,i=o.date,c=parseInt(a,10);if(!Object(D.isInteger)(c)||t&&(c<1||c>12)||!t&&(c<0||c>23))this.syncState(this.props);else{var s=t?i.clone().hours("AM"===r?c%12:(c%12+12)%24):i.clone().hours(c);this.setState({date:s}),n(s.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateMinutes",value:function(){var e=this.props.onChange,t=this.state,n=t.minutes,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var a=o.clone().minutes(r);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateDay",value:function(){var e=this.props.onChange,t=this.state,n=t.day,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var a=o.clone().date(r);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateMonth",value:function(){var e=this.props.onChange,t=this.state,n=t.month,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var a=o.clone().month(r-1);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateYear",value:function(){var e=this.props.onChange,t=this.state,n=t.year,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var a=o.clone().year(r);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,o=t.props.onChange,r=t.state,a=r.am,i=r.date,c=r.hours;a!==e&&(n="PM"===e?i.clone().hours((parseInt(c,10)%12+12)%24):i.clone().hours(parseInt(c,10)%12),t.setState({date:n}),o(n.format("YYYY-MM-DDTHH:mm:ss")))}}},{key:"onChangeDay",value:function(e){this.setState({day:e.target.value})}},{key:"onChangeMonth",value:function(e){this.setState({month:e.target.value})}},{key:"onChangeYear",value:function(e){this.setState({year:e.target.value})}},{key:"onChangeHours",value:function(e){this.setState({hours:e.target.value})}},{key:"onChangeMinutes",value:function(e){this.setState({minutes:e.target.value})}},{key:"renderMonth",value:function(e){return Object(r.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(r.createElement)("select",{"aria-label":Object(w.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},Object(r.createElement)("option",{value:"01"},Object(w.__)("January")),Object(r.createElement)("option",{value:"02"},Object(w.__)("February")),Object(r.createElement)("option",{value:"03"},Object(w.__)("March")),Object(r.createElement)("option",{value:"04"},Object(w.__)("April")),Object(r.createElement)("option",{value:"05"},Object(w.__)("May")),Object(r.createElement)("option",{value:"06"},Object(w.__)("June")),Object(r.createElement)("option",{value:"07"},Object(w.__)("July")),Object(r.createElement)("option",{value:"08"},Object(w.__)("August")),Object(r.createElement)("option",{value:"09"},Object(w.__)("September")),Object(r.createElement)("option",{value:"10"},Object(w.__)("October")),Object(r.createElement)("option",{value:"11"},Object(w.__)("November")),Object(r.createElement)("option",{value:"12"},Object(w.__)("December"))))}},{key:"renderDay",value:function(e){return Object(r.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(r.createElement)("input",{"aria-label":Object(w.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",value:e,step:1,min:1,onChange:this.onChangeDay,onBlur:this.updateDay}))}},{key:"renderDayMonthFormat",value:function(e){var t=this.state,n=t.day,o=t.month,r=[this.renderDay(n),this.renderMonth(o)];return e?r:r.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,o=t.minutes,a=t.hours,i=t.am;return Object(r.createElement)("div",{className:p()("components-datetime__time")},Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(w.__)("Date")),Object(r.createElement)("div",{className:"components-datetime__time-wrapper"},this.renderDayMonthFormat(e),Object(r.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(r.createElement)("input",{"aria-label":Object(w.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",step:1,value:n,onChange:this.onChangeYear,onBlur:this.updateYear})))),Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(w.__)("Time")),Object(r.createElement)("div",{className:"components-datetime__time-wrapper"},Object(r.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(r.createElement)("input",{"aria-label":Object(w.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",step:1,min:this.getMinHours(),max:this.getMaxHours(),value:a,onChange:this.onChangeHours,onBlur:this.updateHours}),Object(r.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(r.createElement)("input",{"aria-label":Object(w.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:o,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(r.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(r.createElement)(I,{"aria-pressed":"AM"===i,isDefault:!0,className:"components-datetime__time-am-button",isToggled:"AM"===i,onClick:this.updateAmPm("AM")},Object(w.__)("AM")),Object(r.createElement)(I,{"aria-pressed":"PM"===i,isDefault:!0,className:"components-datetime__time-pm-button",isToggled:"PM"===i,onClick:this.updateAmPm("PM")},Object(w.__)("PM"))))))}}]),t}(r.Component),qe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"onClickDescriptionToggle",value:function(){this.setState({calendarHelpIsVisible:!this.state.calendarHelpIsVisible})}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.is12Hour,o=e.onChange;return Object(r.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ge,{currentTime:t,onChange:o,is12Hour:n}),Object(r.createElement)($e,{currentDate:t,onChange:o})),this.state.calendarHelpIsVisible&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"components-datetime__calendar-help"},Object(r.createElement)("h4",null,Object(w.__)("Click to Select")),Object(r.createElement)("ul",null,Object(r.createElement)("li",null,Object(w.__)("Click the right or left arrows to select other months in the past or the future.")),Object(r.createElement)("li",null,Object(w.__)("Click the desired day to select it."))),Object(r.createElement)("h4",null,Object(w.__)("Navigating with a keyboard")),Object(r.createElement)("ul",null,Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(w._x)("Enter","keyboard button")},"↵")," ",Object(r.createElement)("span",null,Object(w.__)("Select the date in focus."))),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(w.__)("Left and Right Arrows")},"←/→")," ",Object(w.__)("Move backward (left) or forward (right) by one day.")),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(w.__)("Up and Down Arrows")},"↑/↓")," ",Object(w.__)("Move backward (up) or forward (down) by one week.")),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(w.__)("Page Up and Page Down")},Object(w.__)("PgUp/PgDn"))," ",Object(w.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(w.__)("Home and End")},Object(w.__)("Home/End"))," ",Object(w.__)("Go to the first (home) or last (end) day of a week."))),Object(r.createElement)(I,{isSmall:!0,onClick:this.onClickDescriptionToggle},Object(w.__)("Close")))),!this.state.calendarHelpIsVisible&&Object(r.createElement)(I,{className:"components-datetime__date-help-button",isLink:!0,onClick:this.onClickDescriptionToggle},Object(w.__)("Calendar Help")))}}]),t}(r.Component),Ze=Object(r.createContext)(!1),Xe=Ze.Consumer,Qe=Ze.Provider,Je=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],et=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(k.a)(Object(k.a)(e))),e.disable=e.disable.bind(Object(k.a)(Object(k.a)(e))),e.debouncedDisable=Object(D.debounce)(e.disable,{leading:!0}),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.disable(),this.observer=new window.MutationObserver(this.debouncedDisable),this.observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.debouncedDisable.cancel()}},{key:"bindNode",value:function(e){this.node=e}},{key:"disable",value:function(){C.focus.focusable.find(this.node).forEach(function(e){Object(D.includes)(Je,e.nodeName)&&e.setAttribute("disabled",""),e.hasAttribute("tabindex")&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})}},{key:"render",value:function(){var e=this.props,t=e.className,n=Object(T.a)(e,["className"]);return Object(r.createElement)(Qe,{value:!0},Object(r.createElement)("div",Object(P.a)({ref:this.bindNode,className:p()(t,"components-disabled")},n),this.props.children))}}]),t}(r.Component);et.Consumer=Xe;var tt=et,nt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragStart=e.onDragStart.bind(Object(k.a)(Object(k.a)(e))),e.onDragOver=e.onDragOver.bind(Object(k.a)(Object(k.a)(e))),e.onDrop=e.onDrop.bind(Object(k.a)(Object(k.a)(e))),e.onDragEnd=e.onDragEnd.bind(Object(k.a)(Object(k.a)(e))),e.resetDragState=e.resetDragState.bind(Object(k.a)(Object(k.a)(e))),e.isChromeAndHasIframes=!1,e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?D.noop:t;e&&e.preventDefault(),this.resetDragState(),this.props.setTimeout(n)}},{key:"onDragOver",value:function(e){this.cloneWrapper.style.top="".concat(parseInt(this.cloneWrapper.style.top,10)+e.clientY-this.cursorTop,"px"),this.cloneWrapper.style.left="".concat(parseInt(this.cloneWrapper.style.left,10)+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,n=t.elementId,o=t.transferData,r=t.onDragStart,a=void 0===r?D.noop:r,i=document.getElementById(n);if(i){if("function"==typeof e.dataTransfer.setDragImage){var c=document.createElement("div");c.id="drag-image-".concat(n),c.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(c),e.dataTransfer.setDragImage(c,0,0),this.props.setTimeout(function(){document.body.removeChild(c)})}e.dataTransfer.setData("text",JSON.stringify(o));var s=i.getBoundingClientRect(),l=i.parentNode,u=parseInt(s.top,10),d=parseInt(s.left,10),h=i.cloneNode(!0);h.id="clone-".concat(n),this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),this.cloneWrapper.style.width="".concat(s.width+40,"px"),s.height>700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(u-20,"px"),this.cloneWrapper.style.left="".concat(d-20,"px")),Object(_.a)(h.querySelectorAll("iframe")).forEach(function(e){return e.parentNode.removeChild(e)}),this.cloneWrapper.appendChild(h),l.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)&&Object(_.a)(document.getElementById("editor").querySelectorAll("iframe")).length>0&&(this.isChromeAndHasIframes=!0,document.addEventListener("drop",this.onDrop)),this.props.setTimeout(a)}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}(r.Component),ot=Object(S.withSafeTimeout)(nt),rt=Object(r.createContext)({addDropZone:function(){},removeDropZone:function(){}}),at=rt.Provider,it=rt.Consumer,ct=function(e){var t=e.dataTransfer;if(t){if(Object(D.includes)(t.types,"Files"))return"file";if(Object(D.includes)(t.types,"text/html"))return"html"}return"default"},st=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},lt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragOver=e.onDragOver.bind(Object(k.a)(Object(k.a)(e))),e.onDrop=e.onDrop.bind(Object(k.a)(Object(k.a)(e))),e.addDropZone=e.addDropZone.bind(Object(k.a)(Object(k.a)(e))),e.removeDropZone=e.removeDropZone.bind(Object(k.a)(Object(k.a)(e))),e.resetDragState=e.resetDragState.bind(Object(k.a)(Object(k.a)(e))),e.toggleDraggingOverDocument=Object(D.throttle)(e.toggleDraggingOverDocument.bind(Object(k.a)(Object(k.a)(e))),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("dragover",this.onDragOver),window.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragover",this.onDragOver),window.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(D.filter)(this.dropZones,function(t){return t!==e})}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null}),this.dropZones.forEach(function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})}))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,o=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,r=Object(D.filter)(this.dropZones,function(e){return st(t,e)&&(n=e.element,r=o.clientX,a=o.clientY,(i=n.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&r>=i.left&&r<=i.right&&a>=i.top&&a<=i.bottom);var n,r,a,i}),a=Object(D.find)(r,function(e){return!Object(D.some)(r,function(t){return t!==e&&e.element.parentElement.contains(t.element)})}),i=this.dropZones.indexOf(a),c=null;if(a){var s=a.element.getBoundingClientRect();c={x:o.clientX-s.left-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,o=n.cycle,r=void 0===o||o,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?D.noop:i,s=n.stopNavigationEvents,l=a(e);if(void 0!==l&&s&&(e.nativeEvent.stopImmediatePropagation(),"menuitem"===e.target.getAttribute("role")&&e.preventDefault(),e.stopPropagation()),l){var u=t(document.activeElement);if(u){var d=u.index,h=u.focusables,f=r?function(e,t,n){var o=e+n;return o<0?t+o:o>=t?o-t:o}(d,h.length,l):d+l;f>=0&&f0&&0===o,"is-active":e.isActive}),icon:e.icon,role:"menuitem",disabled:e.isDisabled},e.title)})}))}})};var yt=Object(r.forwardRef)(function(e,t){var n=e.href,o=e.children,a=e.className,i=e.rel,c=void 0===i?"":i,s=Object(T.a)(e,["href","children","className","rel"]);c=Object(D.uniq)(Object(D.compact)([].concat(Object(_.a)(c.split(" ")),["external","noreferrer","noopener"]))).join(" ");var l=p()("components-external-link",a);return Object(r.createElement)("a",Object(P.a)({},s,{className:l,href:n,target:"_blank",rel:c,ref:t}),o,Object(r.createElement)("span",{className:"screen-reader-text"},Object(w.__)("(opens in a new tab)")),Object(r.createElement)(q,{icon:"external",className:"components-external-link__icon"}))}),gt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onMouseMove=e.onMouseMove.bind(Object(k.a)(Object(k.a)(e))),e.state={isDragging:!1,bounds:{},percentages:{}},e.containerRef=Object(r.createRef)(),e.imageRef=Object(r.createRef)(),e.horizontalPositionChanged=e.horizontalPositionChanged.bind(Object(k.a)(Object(k.a)(e))),e.verticalPositionChanged=e.verticalPositionChanged.bind(Object(k.a)(Object(k.a)(e))),e.onLoad=e.onLoad.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.setState({percentages:this.props.value})}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1})}},{key:"calculateBounds",value:function(){var e={top:0,left:0,bottom:0,right:0,width:0,height:0};if(!this.imageRef.current)return e;var t=this.imageRef.current.clientWidth,n=this.imageRef.current.clientHeight,o=this.pickerDimensions(),r=o.width/t,a=o.height/n;return a>=r?(e.width=e.right=o.width,e.height=n*r,e.top=(o.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=o.height,e.width=t*a,e.left=(o.width-e.width)/2,e.right=e.left+e.width),e}},{key:"onLoad",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,o=t.bounds,r=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},c=Math.max(o.left,Math.min(i.left,o.right)),s=Math.max(o.top,Math.min(i.top,o.bottom)),l={x:(c-o.left)/(a.width-2*o.left),y:(s-o.top)/(a.height-2*o.top)};this.setState({percentages:l},function(){r({x:this.state.percentages.x,y:this.state.percentages.y})})}}},{key:"fractionToPercentage",value:function(e){return Math.round(100*e)}},{key:"horizontalPositionChanged",value:function(e){this.positionChangeFromTextControl("x",e.target.value)}},{key:"verticalPositionChanged",value:function(e){this.positionChangeFromTextControl("y",e.target.value)}},{key:"positionChangeFromTextControl",value:function(e,t){var n=this.props.onChange,o=this.state.percentages,r=Math.max(Math.min(parseInt(t),100),0);o[e]=r?r/100:0,this.setState({percentages:o},function(){n({x:this.state.percentages.x,y:this.state.percentages.y})})}},{key:"pickerDimensions",value:function(){return this.containerRef.current?{width:this.containerRef.current.clientWidth,height:this.containerRef.current.clientHeight,top:this.containerRef.current.getBoundingClientRect().top+document.body.scrollTop,left:this.containerRef.current.getBoundingClientRect().left}:{width:0,height:0,left:0,top:0}}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.url,a=t.value,i=t.label,s=t.help,l=t.className,d=this.state,h=d.bounds,f=d.isDragging,b=d.percentages,v=this.pickerDimensions(),m={left:a.x*(v.width-2*h.left)+h.left,top:a.y*(v.height-2*h.top)+h.top},y={left:"".concat(m.left,"px"),top:"".concat(m.top,"px")},g=p()("components-focal-point-picker__icon_container",f?"is-dragging":null),O="inspector-focal-point-picker-control-".concat(n),k="inspector-focal-point-picker-control-horizontal-position-".concat(n),_="inspector-focal-point-picker-control-horizontal-position-".concat(n);return Object(r.createElement)(ge,{label:i,id:O,help:s,className:l},Object(r.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(r.createElement)("div",{className:"components-focal-point-picker",onMouseDown:function(){return e.setState({isDragging:!0})},onDragStart:function(){return e.setState({isDragging:!0})},onMouseUp:function(){return e.setState({isDragging:!1})},onDrop:function(){return e.setState({isDragging:!1})},onMouseMove:this.onMouseMove,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(r.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:o,draggable:"false"}),Object(r.createElement)("div",{className:g,style:y},Object(r.createElement)(u,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(r.createElement)(c,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),Object(r.createElement)(c,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"}))))),Object(r.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(r.createElement)(ge,{label:Object(w.__)("Horizontal Pos."),id:k},Object(r.createElement)("input",{className:"components-text-control__input",id:k,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(b.x)}),Object(r.createElement)("span",null,"%")),Object(r.createElement)(ge,{label:Object(w.__)("Vertical Pos."),id:_},Object(r.createElement)("input",{className:"components-text-control__input",id:_,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(b.y)}),Object(r.createElement)("span",null,"%"))))}}]),t}(r.Component);gt.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var Ot=Object(S.compose)([S.withInstanceId,z])(gt),kt=window.FocusEvent,_t=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).checkFocus=n.checkFocus.bind(Object(k.a)(Object(k.a)(n))),n.node=e.iframeRef||Object(r.createRef)(),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new kt("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(r.createElement)("iframe",Object(P.a)({ref:this.node},Object(D.omit)(this.props,["iframeRef","onFocus"])))}}]),t}(r.Component),Dt=Object(S.withGlobalEvents)({blur:"checkFocus"})(_t);var Mt=Object(S.compose)([S.withInstanceId,Object(S.withState)({currentInput:null})])(function(e){var t=e.className,n=e.currentInput,o=e.label,a=e.value,i=e.instanceId,c=e.onChange,s=e.beforeIcon,l=e.afterIcon,u=e.help,d=e.allowReset,h=e.initialPosition,f=e.min,b=e.max,v=e.setState,m=Object(T.a)(e,["className","currentInput","label","value","instanceId","onChange","beforeIcon","afterIcon","help","allowReset","initialPosition","min","max","setState"]),y="inspector-range-control-".concat(i),g=null===n?a:n,O=function(){null!==n&&v({currentInput:null})},k=function(e){var t=e.target.value,n=parseInt(t,10);isNaN(n)||void 0!==f&&nb?v({currentInput:t}):(O(),c(n))},_=Object(D.isFinite)(a)?g:h||"";return Object(r.createElement)(ge,{label:o,id:y,help:u,className:p()("components-range-control",t)},s&&Object(r.createElement)(q,{icon:s}),Object(r.createElement)("input",Object(P.a)({className:"components-range-control__slider",id:y,type:"range",value:_,onChange:k,"aria-describedby":u?y+"__help":void 0,min:f,max:b},m)),l&&Object(r.createElement)(q,{icon:l}),Object(r.createElement)("input",Object(P.a)({className:"components-range-control__number",type:"number",onChange:k,"aria-label":o,value:g,min:f,max:b,onBlur:O},m)),d&&Object(r.createElement)(I,{onClick:function(){O(),c()},disabled:void 0===a},Object(w.__)("Reset")))});var wt=function(e){var t=e.fallbackFontSize,n=e.fontSizes,o=void 0===n?[]:n,a=e.disableCustomFontSizes,i=void 0!==a&&a,c=e.onChange,s=e.value,l=e.withSlider,u=void 0!==l&&l;if(i&&!o.length)return null;var d=o.find(function(e){return e.size===s}),h=d&&d.name||!s&&Object(w._x)("Normal","font size name")||Object(w._x)("Custom","font size name");return Object(r.createElement)(ge,{label:Object(w.__)("Font Size")},Object(r.createElement)("div",{className:"components-font-size-picker__buttons"},o.length>0&&Object(r.createElement)(Se,{className:"components-font-size-picker__dropdown",contentClassName:"components-font-size-picker__dropdown-content",position:"bottom",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(r.createElement)(I,{className:"components-font-size-picker__selector",isLarge:!0,onClick:n,"aria-expanded":t,"aria-label":Object(w.sprintf)(Object(w.__)("Font size: %s"),h)},h)},renderContent:function(){return Object(r.createElement)(bt,null,Object(D.map)(o,function(e){var t=e.name,n=e.size,o=e.slug,a=s===n||!s&&"normal"===o;return Object(r.createElement)(I,{key:o,onClick:function(){return c("normal"===o?void 0:n)},className:"is-font-".concat(o),role:"menuitemradio","aria-checked":a},a&&Object(r.createElement)(q,{icon:"saved"}),Object(r.createElement)("span",{className:"components-font-size-picker__dropdown-text-size",style:{fontSize:n}},t))}))}}),!u&&!i&&Object(r.createElement)("input",{className:"components-range-control__number",type:"number",onChange:function(e){var t=e.target.value;c(""!==t?Number(t):void 0)},"aria-label":Object(w.__)("Custom font size"),value:s||""}),Object(r.createElement)(I,{className:"components-color-palette__clear",type:"button",disabled:void 0===s,onClick:function(){return c(void 0)},isSmall:!0,isDefault:!0},Object(w.__)("Reset"))),u&&Object(r.createElement)(Mt,{className:"components-font-size-picker__custom-input",label:Object(w.__)("Custom Size"),value:s||"",initialPosition:t,onChange:c,min:12,max:100,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor"}))},St=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(Object(k.a)(Object(k.a)(e))),e.bindInput=e.bindInput.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"openFileDialog",value:function(){this.input.click()}},{key:"bindInput",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.multiple,o=void 0!==n&&n,a=e.accept,i=e.onChange,c=e.icon,s=void 0===c?"upload":c,l=Object(T.a)(e,["children","multiple","accept","onChange","icon"]);return Object(r.createElement)("div",{className:"components-form-file-upload"},Object(r.createElement)(Z,Object(P.a)({icon:s,onClick:this.openFileDialog},l),t),Object(r.createElement)("input",{type:"file",ref:this.bindInput,multiple:o,style:{display:"none"},accept:a,onChange:i}))}}]),t}(r.Component);var jt=function(e){var t=e.className,n=e.checked,o=e.id,a=e.onChange,i=void 0===a?D.noop:a,s=Object(T.a)(e,["className","checked","id","onChange"]),l=p()("components-form-toggle",t,{"is-checked":n});return Object(r.createElement)("span",{className:l},Object(r.createElement)("input",Object(P.a)({className:"components-form-toggle__input",id:o,type:"checkbox",checked:n,onChange:i},s)),Object(r.createElement)("span",{className:"components-form-toggle__track"}),Object(r.createElement)("span",{className:"components-form-toggle__thumb"}),n?Object(r.createElement)(u,{className:"components-form-toggle__on",width:"2",height:"6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 6"},Object(r.createElement)(c,{d:"M0 0h2v6H0z"})):Object(r.createElement)(u,{className:"components-form-toggle__off",width:"6",height:"6","aria-hidden":"true",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6"},Object(r.createElement)(c,{d:"M3 1.5c.8 0 1.5.7 1.5 1.5S3.8 4.5 3 4.5 1.5 3.8 1.5 3 2.2 1.5 3 1.5M3 0C1.3 0 0 1.3 0 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"})))},Ct=n(29);var Pt=Object(S.withInstanceId)(function(e){var t=e.value,n=e.status,o=e.title,a=e.displayTransform,i=e.isBorderless,c=void 0!==i&&i,s=e.disabled,l=void 0!==s&&s,u=e.onClickRemove,d=void 0===u?D.noop:u,h=e.onMouseEnter,f=e.onMouseLeave,b=e.messages,v=e.termPosition,m=e.termsCount,y=e.instanceId,g=p()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":c,"is-disabled":l}),O=a(t),k=Object(w.sprintf)(Object(w.__)("%1$s (%2$s of %3$s)"),O,v,m);return Object(r.createElement)("span",{className:g,onMouseEnter:h,onMouseLeave:f,title:o},Object(r.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(y)},Object(r.createElement)("span",{className:"screen-reader-text"},k),Object(r.createElement)("span",{"aria-hidden":"true"},O)),Object(r.createElement)(Z,{className:"components-form-token-field__remove-token",icon:"dismiss",onClick:!l&&function(){return d({value:t})},label:b.remove,"aria-describedby":"components-form-token-field__token-text-".concat(y)}))}),Et=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(k.a)(Object(k.a)(e))),e.bindInput=e.bindInput.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===document.activeElement}},{key:"bindInput",value:function(e){this.input=e}},{key:"onChange",value:function(e){this.props.onChange({value:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.isExpanded,o=e.instanceId,a=e.selectedSuggestionIndex,i=Object(T.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),c=t.length+1;return Object(r.createElement)("input",Object(P.a)({ref:this.bindInput,id:"components-form-token-input-".concat(o),type:"text"},i,{value:t,onChange:this.onChange,size:c,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(o):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(o,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(o)}))}}]),t}(r.Component),zt=n(61),Tt=n.n(zt),It=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).handleMouseDown=e.handleMouseDown.bind(Object(k.a)(Object(k.a)(e))),e.bindList=e.bindList.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Tt()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),setTimeout(function(){e.scrollingIntoView=!1},100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(r.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(D.map)(this.props.suggestions,function(t,n){var o=e.computeSuggestionMatch(t),a=p()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(r.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:a,key:t,onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},o?Object(r.createElement)("span",{"aria-label":e.props.displayTransform(t)},o.suggestionBeforeMatch,Object(r.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):e.props.displayTransform(t))}))}}]),t}(r.Component);It.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var xt=It,Ht={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},Nt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state=Ht,e.onKeyDown=e.onKeyDown.bind(Object(k.a)(Object(k.a)(e))),e.onKeyPress=e.onKeyPress.bind(Object(k.a)(Object(k.a)(e))),e.onFocus=e.onFocus.bind(Object(k.a)(Object(k.a)(e))),e.onBlur=e.onBlur.bind(Object(k.a)(Object(k.a)(e))),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(k.a)(Object(k.a)(e))),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(k.a)(Object(k.a)(e))),e.addCurrentToken=e.addCurrentToken.bind(Object(k.a)(Object(k.a)(e))),e.onContainerTouched=e.onContainerTouched.bind(Object(k.a)(Object(k.a)(e))),e.renderToken=e.renderToken.bind(Object(k.a)(Object(k.a)(e))),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(k.a)(Object(k.a)(e))),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(k.a)(Object(k.a)(e))),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(k.a)(Object(k.a)(e))),e.onInputChange=e.onInputChange.bind(Object(k.a)(Object(k.a)(e))),e.bindInput=e.bindInput.bind(Object(k.a)(Object(k.a)(e))),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidUpdate",value:function(){this.state.isActive&&!this.input.hasFocus()&&this.input.focus()}},{key:"bindInput",value:function(e){this.input=e}},{key:"bindTokensAndInput",value:function(e){this.tokensAndInput=e}},{key:"onFocus",value:function(e){this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}},{key:"onBlur",value:function(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(Ht)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case M.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case M.ENTER:t=this.addCurrentToken();break;case M.LEFT:t=this.handleLeftArrowKey();break;case M.UP:t=this.handleUpArrowKey();break;case M.RIGHT:t=this.handleRightArrowKey();break;case M.DOWN:t=this.handleDownArrowKey();break;case M.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case M.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case M.ESCAPE:t=this.handleEscapeKey(e),e.stopPropagation()}t&&e.preventDefault()}},{key:"onKeyPress",value:function(e){var t=!1;switch(e.charCode){case 44:t=this.handleCommaKey()}t&&e.preventDefault()}},{key:"onContainerTouched",value:function(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}},{key:"onTokenClickRemove",value:function(e){this.deleteToken(e.value),this.input.focus()}},{key:"onSuggestionHovered",value:function(e){var t=this.getMatchingSuggestions().indexOf(e);t>=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,o=t.split(n),r=Object(D.last)(o)||"",a=r.trim().length>1,i=this.getMatchingSuggestions(r),c=a&&!!i.length;o.length>1&&this.addNewTokens(o.slice(0,-1)),this.setState({incompleteTokenValue:r,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.props.onInputChange(r),a&&(this.setState({isExpanded:c}),i.length?this.props.debouncedSpeak(Object(w.sprintf)(Object(w._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",i.length),i.length),"assertive"):this.props.debouncedSpeak(Object(w.__)("No results."),"assertive"))}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState(function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}}),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState(function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}}),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState(function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}})}},{key:"moveInputBeforePreviousToken",value:function(){this.setState(function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}})}},{key:"moveInputAfterNextToken",value:function(){this.setState(function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}})}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var o=Object(D.clone)(this.props.value);o.splice.apply(o,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(o)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter(function(n){return t.getTokenValue(n)!==t.getTokenValue(e)});this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(Ct.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,r=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform)(e),a=[],i=[];return 0===r.length?t=Object(D.difference)(t,n):(r=r.toLocaleLowerCase(),Object(D.each)(t,function(e){var t=e.toLocaleLowerCase().indexOf(r);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&i.push(e))}),t=a.concat(i)),Object(D.take)(t,o)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(D.some)(this.props.value,function(n){return t.getTokenValue(e)===t.getTokenValue(n)})}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"renderTokensAndInput",value:function(){var e=Object(D.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var o=this.getTokenValue(e),a=e.status?e.status:void 0,i=t+1,c=n.length;return Object(r.createElement)(Pt,{key:"token-"+o,value:o,status:a,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==a&&this.props.disabled,messages:this.props.messages,termsCount:c,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,a=e.maxLength,i=e.value,c={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return a&&i.length>=a||(c=Object(o.a)({},c,{onChange:this.onInputChange})),Object(r.createElement)(Et,c)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,o=void 0===n?Object(w.__)("Add item"):n,a=e.instanceId,i=e.className,c=this.state.isExpanded,s=p()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),l={className:"components-form-token-field",tabIndex:"-1"},u=this.getMatchingSuggestions();return t||(l=Object.assign({},l,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(r.createElement)("div",l,Object(r.createElement)("label",{htmlFor:"components-form-token-input-".concat(a),className:"components-form-token-field__label"},o),Object(r.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),c&&Object(r.createElement)(xt,{instanceId:a,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:u,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(r.createElement)("div",{id:"components-form-token-suggestions-howto-".concat(a),className:"screen-reader-text"},Object(w.__)("Separate with commas")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),t}(r.Component);Nt.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:D.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(w.__)("Item added."),removed:Object(w.__)("Item removed."),remove:Object(w.__)("Remove item")}};var Rt=pe(Object(S.withInstanceId)(Nt));var Lt=function(e){var t,n=e.icon,a=void 0===n?null:n,i=e.size,c=e.className;if("string"==typeof a)return t=i||20,Object(r.createElement)(q,{icon:a,size:t,className:c});if(t=i||24,"function"==typeof a)return a.prototype instanceof r.Component?Object(r.createElement)(a,{className:c,size:t}):a();if(a&&("svg"===a.type||a.type===u)){var s=Object(o.a)({className:c,width:t,height:t},a.props);return Object(r.createElement)(u,s)}return Object(r.isValidElement)(a)?Object(r.cloneElement)(a,{className:c,size:t}):a};var At=Object(S.withInstanceId)(function(e){var t=e.children,n=e.className,o=void 0===n?"":n,a=e.instanceId,i=e.label;if(!r.Children.count(t))return null;var c="components-menu-group-label-".concat(a),s=p()(o,"components-menu-group");return Object(r.createElement)("div",{className:s},i&&Object(r.createElement)("div",{className:"components-menu-group__label",id:c},i),Object(r.createElement)(bt,{orientation:"vertical","aria-labelledby":i?c:null},t))});var Ft=Object(S.withInstanceId)(function(e){var t=e.children,n=e.info,a=e.className,i=e.icon,c=e.shortcut,s=e.isSelected,l=e.role,u=void 0===l?"menuitem":l,d=e.instanceId,h=Object(T.a)(e,["children","info","className","icon","shortcut","isSelected","role","instanceId"]);if(a=p()("components-menu-item__button",a,{"has-icon":i}),n){var f="edit-post-feature-toggle__info-"+d;h["aria-describedby"]=f,t=Object(r.createElement)("span",{className:"components-menu-item__info-wrapper"},t,Object(r.createElement)("span",{id:f,className:"components-menu-item__info"},n))}var b=I;return i&&(Object(D.isString)(i)||(i=Object(r.cloneElement)(i,{className:"components-menu-items__item-icon",height:20,width:20})),b=Z,h.icon=i),Object(r.createElement)(b,Object(o.a)({"aria-checked":"menuitemcheckbox"===u||"menuitemradio"===u?s:void 0,role:u,className:a},h),t,Object(r.createElement)(Y,{className:"components-menu-item__shortcut",shortcut:c}))});function Vt(e){var t=e.choices,n=void 0===t?[]:t,o=e.onSelect,a=e.value;return n.map(function(e){var t=a===e.value;return Object(r.createElement)(Ft,{key:e.value,role:"menuitemradio",icon:t&&"yes",isSelected:t,shortcut:e.shortcut,onClick:function(){t||o(e.value)}},e.label)})}var Bt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).containerRef=Object(r.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(k.a)(Object(k.a)(e))),e.handleClickOutside=e.handleClickOutside.bind(Object(k.a)(Object(k.a)(e))),e.focusFirstTabbable=e.focusFirstTabbable.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusFirstTabbable()}},{key:"focusFirstTabbable",value:function(){var e=C.focus.tabbable.find(this.containerRef.current);e.length&&e[0].focus()}},{key:"handleClickOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===M.ESCAPE&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.preventDefault(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.contentLabel,n=e.aria,o=n.describedby,a=n.labelledby,i=e.children,c=e.className,s=e.role,l=e.style;return Object(r.createElement)("div",{className:c,style:l,ref:this.containerRef,role:s,"aria-label":t,"aria-labelledby":t?null:a,"aria-describedby":o,tabIndex:"-1"},i)}}]),t}(r.Component),Kt=Object(S.compose)([F,V,K.a,Object(S.withGlobalEvents)({keydown:"handleKeyDown"})])(Bt),Wt=function(e){var t=e.icon,n=e.title,o=e.onClose,a=e.closeLabel,i=e.headingId,c=e.isDismissable,s=a||Object(w.__)("Close dialog");return Object(r.createElement)("div",{className:"components-modal__header"},Object(r.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(r.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(r.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),c&&Object(r.createElement)(Z,{onClick:o,icon:"no-alt",label:s}))},Ut=new Set(["alert","status","log","marquee","timer"]),Yt=[],$t=!1;function Gt(e){if(!$t){var t=document.body.children;Object(D.forEach)(t,function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Ut.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Yt.push(t))}),$t=!0}}var qt,Zt=0,Xt=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).prepareDOM(),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){1===++Zt&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--Zt&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){qt||(qt=document.createElement("div"),document.body.appendChild(qt)),this.node=document.createElement("div"),qt.appendChild(this.node)}},{key:"cleanDOM",value:function(){qt.removeChild(this.node)}},{key:"openFirstModal",value:function(){Gt(qt),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),$t&&(Object(D.forEach)(Yt,function(e){e.removeAttribute("aria-hidden")}),Yt=[],$t=!1)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.className,o=e.onRequestClose,a=e.title,i=e.icon,c=e.closeButtonLabel,s=e.children,l=e.aria,u=e.instanceId,d=e.isDismissable,h=Object(T.a)(e,["overlayClassName","className","onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissable"]),f=l.labelledby||"components-modal-header-".concat(u);return Object(r.createPortal)(Object(r.createElement)(Q,{className:p()("components-modal__screen-overlay",t)},Object(r.createElement)(Kt,Object(P.a)({className:p()("components-modal__frame",n),onRequestClose:o,aria:{labelledby:a?f:null,describedby:l.describedby}},h),Object(r.createElement)("div",{className:"components-modal__content",tabIndex:"0"},Object(r.createElement)(Wt,{closeLabel:c,headingId:f,icon:i,isDismissable:d,onClose:o,title:a}),s))),this.node)}}]),t}(r.Component);Xt.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,onRequestClose:D.noop,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissable:!0,aria:{labelledby:null,describedby:null}};var Qt=Object(S.withInstanceId)(Xt);var Jt=function(e){var t=e.className,n=e.status,o=e.children,a=e.onRemove,i=void 0===a?D.noop:a,c=e.isDismissible,s=void 0===c||c,l=e.actions,u=void 0===l?[]:l,d=e.__unstableHTML,h=p()(t,"components-notice","is-"+n,{"is-dismissible":s});return d&&(o=Object(r.createElement)(r.RawHTML,null,o)),Object(r.createElement)("div",{className:h},Object(r.createElement)("div",{className:"components-notice__content"},o,u.map(function(e,t){var n=e.className,o=e.label,a=e.noDefaultClasses,i=void 0!==a&&a,c=e.onClick,s=e.url;return Object(r.createElement)(I,{key:t,href:s,isDefault:!i&&!s,isLink:!i&&!!s,onClick:s?void 0:c,className:p()("components-notice__action",n)},o)})),s&&Object(r.createElement)(Z,{className:"components-notice__dismiss",icon:"no",label:Object(w.__)("Dismiss this notice"),onClick:i,tooltip:!1}))};var en=function(e){var t=e.notices,n=e.onRemove,o=void 0===n?D.noop:n,a=e.className,i=e.children;return a=p()("components-notice-list",a),Object(r.createElement)("div",{className:a},i,Object(_.a)(t).reverse().map(function(e){return Object(r.createElement)(Jt,Object(P.a)({},Object(D.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return o(t)})}),e.content);var t}))};var tn=function(e){var t=e.label,n=e.children;return Object(r.createElement)("div",{className:"components-panel__header"},t&&Object(r.createElement)("h2",null,t),n)};var nn=function(e){var t=e.header,n=e.className,o=e.children,a=p()(n,"components-panel");return Object(r.createElement)("div",{className:a},t&&Object(r.createElement)(tn,{label:t}),o)},on=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={opened:void 0===e.initialOpen||e.initialOpen},n.toggle=n.toggle.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"toggle",value:function(e){e.preventDefault(),void 0===this.props.opened&&this.setState(function(e){return{opened:!e.opened}}),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,o=e.opened,a=e.className,s=e.icon,l=e.forwardedRef,d=void 0===o?this.state.opened:o,h=p()("components-panel__body",a,{"is-opened":d});return Object(r.createElement)("div",{className:h,ref:l},!!t&&Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)(I,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":d},Object(r.createElement)("span",{"aria-hidden":"true"},d?Object(r.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i,null,Object(r.createElement)(c,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(r.createElement)(i,null,Object(r.createElement)(c,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):Object(r.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i,null,Object(r.createElement)(c,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(r.createElement)(i,null,Object(r.createElement)(c,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),t,s&&Object(r.createElement)(Lt,{icon:s,className:"components-panel__icon",size:20}))),d&&n)}}]),t}(r.Component),rn=function(e,t){return Object(r.createElement)(on,Object(P.a)({},e,{forwardedRef:t}))};rn.displayName="PanelBody";var an=Object(r.forwardRef)(rn);var cn=function(e){var t=e.className,n=e.children,o=p()("components-panel__row",t);return Object(r.createElement)("div",{className:o},n)};var sn=function(e){var t=e.icon,n=e.children,o=e.label,a=e.instructions,i=e.className,c=e.notices,s=Object(T.a)(e,["icon","children","label","instructions","className","notices"]),l=p()("components-placeholder",i);return Object(r.createElement)("div",Object(P.a)({},s,{className:l}),c,Object(r.createElement)("div",{className:"components-placeholder__label"},Object(D.isString)(t)?Object(r.createElement)(q,{icon:t}):t,o),!!a&&Object(r.createElement)("div",{className:"components-placeholder__instructions"},a),Object(r.createElement)("div",{className:"components-placeholder__fieldset"},n))};function ln(){var e=window.getSelection();if(0===e.rangeCount)return{};var t=Object(C.getRectangleFromRange)(e.getRangeAt(0)),n=t.top+t.height,o=t.left+t.width/2,r=Object(C.getOffsetParent)(e.anchorNode);if(r){var a=r.getBoundingClientRect();n-=a.top,o-=a.left}return{top:n,left:o}}var un=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={style:ln()},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"render",value:function(){var e=this.props.children,t=this.state.style;return Object(r.createElement)("div",{className:"editor-format-toolbar__selection-position",style:t},e)}}]),t}(r.Component);function dn(e){var t=e.label,n=e.noOptionLabel,o=e.onChange,a=e.selectedId,i=e.tree,c=Object(T.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),s=Object(D.compact)([n&&{value:"",label:n}].concat(Object(_.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(D.flatMap)(t,function(t){return[{value:t.id,label:Object(D.repeat)(" ",3*n)+Object(D.unescape)(t.name)}].concat(Object(_.a)(e(t.children||[],n+1)))})}(i))));return Object(r.createElement)(Ln,Object(P.a)({label:t,options:s,onChange:o},{value:a},c))}function hn(e){var t,n,a=e.label,i=e.noOptionLabel,c=e.categoriesList,s=e.selectedCategoryId,l=e.onChange,u=(t=c.map(function(e){return Object(o.a)({children:[],parent:null},e)}),(n=Object(D.groupBy)(t,"parent")).null&&n.null.length?t:function e(t){return t.map(function(t){var r=n[t.id];return Object(o.a)({},t,{children:r&&r.length?e(r):[]})})}(n[0]||[]));return Object(r.createElement)(dn,Object(P.a)({label:a,noOptionLabel:i,onChange:l},{tree:u,selectedId:s}))}var fn=1,pn=100;function bn(e){var t=e.categoriesList,n=e.selectedCategoryId,o=e.numberOfItems,a=e.order,i=e.orderBy,c=e.maxItems,s=void 0===c?pn:c,l=e.minItems,u=void 0===l?fn:l,d=e.onCategoryChange,f=e.onNumberOfItemsChange,p=e.onOrderChange,b=e.onOrderByChange;return[p&&b&&Object(r.createElement)(Ln,{key:"query-controls-order-select",label:Object(w.__)("Order by"),value:"".concat(i,"/").concat(a),options:[{label:Object(w.__)("Newest to Oldest"),value:"date/desc"},{label:Object(w.__)("Oldest to Newest"),value:"date/asc"},{label:Object(w.__)("A → Z"),value:"title/asc"},{label:Object(w.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(h.a)(t,2),o=n[0],r=n[1];r!==a&&p(r),o!==i&&b(o)}}),d&&Object(r.createElement)(hn,{key:"query-controls-category-select",categoriesList:t,label:Object(w.__)("Category"),noOptionLabel:Object(w.__)("All"),selectedCategoryId:n,onChange:d}),f&&Object(r.createElement)(Mt,{key:"query-controls-range-control",label:Object(w.__)("Number of items"),value:o,onChange:f,min:u,max:s})]}var vn=Object(S.withInstanceId)(function(e){var t=e.label,n=e.className,o=e.selected,a=e.help,i=e.instanceId,c=e.onChange,s=e.options,l=void 0===s?[]:s,u="inspector-radio-control-".concat(i),d=function(e){return c(e.target.value)};return!Object(D.isEmpty)(l)&&Object(r.createElement)(ge,{label:t,id:u,help:a,className:p()(n,"components-radio-control")},l.map(function(e,t){return Object(r.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},Object(r.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:d,checked:e.value===o,"aria-describedby":a?"".concat(u,"__help"):void 0}),Object(r.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))}))}),mn=n(26),yn=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},gn=function(){function e(e,t){for(var n=0;n div,\n\t\t\tbody > div > iframe {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\thtml.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio > div,\n\t\t\tbody.wp-has-aspect-ratio > div > iframe {\n\t\t\t\theight: 100%;\n\t\t\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t\t\t}\n\t\t\tbody > div > * {\n\t\t\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\t\t\tmargin-bottom: 0 !important;\n\t\t\t}\n\t\t"}}),this.props.styles&&this.props.styles.map(function(e,t){return Object(r.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})})),Object(r.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(r.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(r.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"\n\t\t\t( function() {\n\t\t\t\tvar observer;\n\n\t\t\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfunction sendResize() {\n\t\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t\t\twindow.parent.postMessage( {\n\t\t\t\t\t\taction: 'resize',\n\t\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t\t}, '*' );\n\t\t\t\t}\n\n\t\t\t\tobserver = new MutationObserver( sendResize );\n\t\t\t\tobserver.observe( document.body, {\n\t\t\t\t\tattributes: true,\n\t\t\t\t\tattributeOldValue: false,\n\t\t\t\t\tcharacterData: true,\n\t\t\t\t\tcharacterDataOldValue: false,\n\t\t\t\t\tchildList: true,\n\t\t\t\t\tsubtree: true\n\t\t\t\t} );\n\n\t\t\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t\t\t// the iframe root and interfere with our mechanism for\n\t\t\t\t// determining the unconstrained page bounds.\n\t\t\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\t\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t\t\t} );\n\n\t\t\t\tdocument.body.style.position = 'absolute';\n\t\t\t\tdocument.body.style.width = '100%';\n\t\t\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\t\t\tsendResize();\n\n\t\t\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\t\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\t} )();"}}),this.props.scripts&&this.props.scripts.map(function(e){return Object(r.createElement)("script",{key:e,src:e})}))),t=this.iframe.current.contentWindow.document;t.open(),t.write(""+Object(r.renderToString)(e)),t.close()}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(r.createElement)(Dt,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onLoad:this.trySandbox,onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),t}(r.Component),Rn=Nn=Object(S.withGlobalEvents)({message:"checkMessageForResize"})(Nn);var Ln=Object(S.withInstanceId)(function(e){var t=e.help,n=e.instanceId,o=e.label,a=e.multiple,i=void 0!==a&&a,c=e.onChange,s=e.options,l=void 0===s?[]:s,u=e.className,d=Object(T.a)(e,["help","instanceId","label","multiple","onChange","options","className"]),h="inspector-select-control-".concat(n);return!Object(D.isEmpty)(l)&&Object(r.createElement)(ge,{label:o,id:h,help:t,className:u},Object(r.createElement)("select",Object(P.a)({id:h,className:"components-select-control__input",onChange:function(e){if(i){var t=Object(_.a)(e.target.options).filter(function(e){return e.selected}).map(function(e){return e.value});c(t)}else c(e.target.value)},"aria-describedby":t?"".concat(h,"__help"):void 0,multiple:i},d),l.map(function(e,t){return Object(r.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))});function An(){return Object(r.createElement)("span",{className:"components-spinner"})}var Fn=n(31),Vn=n.n(Fn),Bn=n(22);var Kn=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).state={response:null},n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=Object(D.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){Object(D.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var n=e.block,r=e.attributes,a=void 0===r?null:r,i=e.urlQueryArgs,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(Bn.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Object(o.a)({context:"edit"},null!==t?{attributes:t}:{},n))}(n,a,void 0===i?{}:i),s=this.currentFetchRequest=Vn()({path:c}).then(function(e){t.isStillMounted&&s===t.currentFetchRequest&&e&&e.rendered&&t.setState({response:e.rendered})}).catch(function(e){t.isStillMounted&&s===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})});return s}}},{key:"render",value:function(){var e=this.state.response,t=this.props.className;if(!e)return Object(r.createElement)(sn,{className:t},Object(r.createElement)(An,null));if(e.error){var n=Object(w.sprintf)(Object(w.__)("Error loading block: %s"),e.errorMsg);return Object(r.createElement)(sn,{className:t},n)}return e.length?Object(r.createElement)(r.RawHTML,{key:"html",className:t},e):Object(r.createElement)(sn,{className:t},Object(w.__)("No results found."))}}]),t}(r.Component),Wn=function(e){var t=e.tabId,n=e.onClick,o=e.children,a=e.selected,i=Object(T.a)(e,["tabId","onClick","children","selected"]);return Object(r.createElement)(I,Object(P.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),o)},Un=function(e){function t(){var e;Object(v.a)(this,t);var n=(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).props,o=n.tabs,r=n.initialTabName;return e.handleClick=e.handleClick.bind(Object(k.a)(Object(k.a)(e))),e.onNavigate=e.onNavigate.bind(Object(k.a)(Object(k.a)(e))),e.state={selected:r||(o.length>0?o[0].name:null)},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"handleClick",value:function(e){var t=this.props.onSelect,n=void 0===t?D.noop:t;this.setState({selected:e}),n(e)}},{key:"onNavigate",value:function(e,t){t.click()}},{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,o=n.activeClass,a=void 0===o?"is-active":o,i=n.className,c=n.instanceId,s=n.orientation,l=void 0===s?"horizontal":s,u=n.tabs,d=Object(D.find)(u,{name:t}),h=c+"-"+d.name;return Object(r.createElement)("div",{className:i},Object(r.createElement)(bt,{role:"tablist",orientation:l,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},u.map(function(n){return Object(r.createElement)(Wn,{className:"".concat(n.className," ").concat(n.name===t?a:""),tabId:c+"-"+n.name,"aria-controls":c+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(D.partial)(e.handleClick,n.name)},n.title)})),d&&Object(r.createElement)("div",{"aria-labelledby":h,role:"tabpanel",id:h+"-view",className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(d)))}}]),t}(r.Component),Yn=Object(S.withInstanceId)(Un);var $n=Object(S.withInstanceId)(function(e){var t=e.label,n=e.value,o=e.help,a=e.instanceId,i=e.onChange,c=e.rows,s=void 0===c?4:c,l=e.className,u=Object(T.a)(e,["label","value","help","instanceId","onChange","rows","className"]),d="inspector-textarea-control-".concat(a);return Object(r.createElement)(ge,{label:t,id:d,help:o,className:l},Object(r.createElement)("textarea",Object(P.a)({className:"components-textarea-control__input",id:d,rows:s,onChange:function(e){return i(e.target.value)},"aria-describedby":o?d+"__help":void 0,value:n},u)))}),Gn=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"onChange",value:function(e){this.props.onChange&&this.props.onChange(e.target.checked)}},{key:"render",value:function(){var e,t,n=this.props,o=n.label,a=n.checked,i=n.help,c=n.instanceId,s="inspector-toggle-control-".concat(c);return i&&(e=s+"__help",t=Object(D.isFunction)(i)?i(a):i),Object(r.createElement)(ge,{id:s,help:t,className:"components-toggle-control"},Object(r.createElement)(jt,{id:s,checked:a,onChange:this.onChange,"aria-describedby":e}),Object(r.createElement)("label",{htmlFor:s,className:"components-toggle-control__label"},o))}}]),t}(r.Component),qn=Object(S.withInstanceId)(Gn),Zn=function(e){return Object(r.createElement)("div",{className:e.className},e.children)};var Xn=function(e){var t=e.containerClassName,n=e.icon,o=e.title,a=e.shortcut,i=e.subscript,c=e.onClick,s=e.className,l=e.isActive,u=e.isDisabled,d=e.extraProps,h=e.children;return Object(r.createElement)(Zn,{className:t},Object(r.createElement)(Z,Object(P.a)({icon:n,label:o,shortcut:a,"data-subscript":i,onClick:function(e){e.stopPropagation(),c()},className:p()("components-toolbar__control",s,{"is-active":l}),"aria-pressed":l,disabled:u},d)),h)},Qn=function(e){return Object(r.createElement)("div",{className:e.className},e.children)};var Jn=function(e){var t=e.controls,n=void 0===t?[]:t,o=e.children,a=e.className,i=e.isCollapsed,c=e.icon,s=e.label,l=Object(T.a)(e,["controls","children","className","isCollapsed","icon","label"]);if(!(n&&n.length||o))return null;var u=n;return Array.isArray(u[0])||(u=[u]),i?Object(r.createElement)(mt,{icon:c,label:s,controls:u,className:p()("components-toolbar",a)}):Object(r.createElement)(Qn,Object(P.a)({className:p()("components-toolbar",a)},l),Object(D.flatMap)(u,function(e,t){return e.map(function(e,n){return Object(r.createElement)(Xn,Object(P.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))})}),o)},eo=Object(S.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(k.a)(Object(k.a)(e))),e.focusNextRegion=e.focusRegion.bind(Object(k.a)(Object(k.a)(e)),1),e.focusPreviousRegion=e.focusRegion.bind(Object(k.a)(Object(k.a)(e)),-1),e.onClick=e.onClick.bind(Object(k.a)(Object(k.a)(e))),e.state={isFocusingRegions:!1},e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"focusRegion",value:function(e){var t=Object(_.a)(this.container.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],o=t.indexOf(document.activeElement);if(-1!==o){var r=o+e;n=t[r=(r=-1===r?t.length-1:r)===t.length?0:r]}n.focus(),this.setState({isFocusingRegions:!0})}}},{key:"onClick",value:function(){this.setState({isFocusingRegions:!1})}},{key:"render",value:function(){var t=p()("components-navigate-regions",{"is-focusing-regions":this.state.isFocusingRegions});return Object(r.createElement)("div",{ref:this.bindContainer,className:t,onClick:this.onClick},Object(r.createElement)(Ie,{bindGlobal:!0,shortcuts:{"ctrl+`":this.focusNextRegion,"shift+alt+n":this.focusNextRegion,"ctrl+shift+`":this.focusPreviousRegion,"shift+alt+p":this.focusPreviousRegion}}),Object(r.createElement)(e,this.props))}}]),n}(r.Component)},"navigateRegions"),to=function(e){return Object(S.createHigherOrderComponent)(function(t){return function(n){function o(){var e;return Object(v.a)(this,o),(e=Object(m.a)(this,Object(y.a)(o).apply(this,arguments))).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(o,n),Object(g.a)(o,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"componentDidMount",value:function(){this.grabFallbackStyles()}},{key:"componentDidUpdate",value:function(){this.grabFallbackStyles()}},{key:"grabFallbackStyles",value:function(){var t=this.state,n=t.grabStylesCompleted,o=t.fallbackStyles;if(this.nodeRef&&!n){var r=e(this.nodeRef,this.props);Object(D.isEqual)(r,o)||this.setState({fallbackStyles:r,grabStylesCompleted:!!Object(D.every)(r)})}}},{key:"render",value:function(){var e=Object(r.createElement)(t,Object(P.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(r.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),o}(r.Component)},"withFallbackStyles")},no=n(23),oo=16;function ro(e){return Object(S.createHigherOrderComponent)(function(t){var n,o="core/with-filters/"+e;var a=function(a){function i(){var o;return Object(v.a)(this,i),o=Object(m.a)(this,Object(y.a)(i).apply(this,arguments)),void 0===n&&(n=Object(no.applyFilters)(e,t)),o}return Object(O.a)(i,a),Object(g.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(no.addAction)("hookRemoved",o,c),Object(no.addAction)("hookAdded",o,c))}},{key:"componentWillUnmount",value:function(){i.instances=Object(D.without)(i.instances,this),0===i.instances.length&&(Object(no.removeAction)("hookRemoved",o),Object(no.removeAction)("hookAdded",o))}},{key:"render",value:function(){return Object(r.createElement)(n,this.props)}}]),i}(r.Component);a.instances=[];var i=Object(D.debounce)(function(){n=Object(no.applyFilters)(e,t),a.instances.forEach(function(e){e.forceUpdate()})},oo);function c(t){t===e&&i()}return a},"withFilters")}var ao=n(59),io=n.n(ao),co=Object(S.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).createNotice=e.createNotice.bind(Object(k.a)(Object(k.a)(e))),e.createErrorNotice=e.createErrorNotice.bind(Object(k.a)(Object(k.a)(e))),e.removeNotice=e.removeNotice.bind(Object(k.a)(Object(k.a)(e))),e.removeAllNotices=e.removeAllNotices.bind(Object(k.a)(Object(k.a)(e))),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"createNotice",value:function(e){var t=e.id?e:Object(o.a)({},e,{id:io()()});this.setState(function(e){return{noticeList:[].concat(Object(_.a)(e.noticeList),[t])}})}},{key:"createErrorNotice",value:function(e){this.createNotice({status:"error",content:e})}},{key:"removeNotice",value:function(e){this.setState(function(t){return{noticeList:t.noticeList.filter(function(t){return t.id!==e})}})}},{key:"removeAllNotices",value:function(){this.setState({noticeList:[]})}},{key:"render",value:function(){return Object(r.createElement)(e,Object(P.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(r.createElement)(en,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),n}(r.Component)});n.d(t,"Circle",function(){return a}),n.d(t,"G",function(){return i}),n.d(t,"Path",function(){return c}),n.d(t,"Polygon",function(){return s}),n.d(t,"Rect",function(){return l}),n.d(t,"SVG",function(){return u}),n.d(t,"Animate",function(){return b}),n.d(t,"Autocomplete",function(){return ye}),n.d(t,"BaseControl",function(){return ge}),n.d(t,"Button",function(){return I}),n.d(t,"ButtonGroup",function(){return Oe}),n.d(t,"CheckboxControl",function(){return ke}),n.d(t,"ClipboardButton",function(){return Me}),n.d(t,"ColorIndicator",function(){return we}),n.d(t,"ColorPalette",function(){return Ke}),n.d(t,"ColorPicker",function(){return Be}),n.d(t,"Dashicon",function(){return q}),n.d(t,"DateTimePicker",function(){return qe}),n.d(t,"DatePicker",function(){return $e}),n.d(t,"TimePicker",function(){return Ge}),n.d(t,"Disabled",function(){return tt}),n.d(t,"Draggable",function(){return ot}),n.d(t,"DropZone",function(){return dt}),n.d(t,"DropZoneProvider",function(){return lt}),n.d(t,"Dropdown",function(){return Se}),n.d(t,"DropdownMenu",function(){return mt}),n.d(t,"ExternalLink",function(){return yt}),n.d(t,"FocalPointPicker",function(){return Ot}),n.d(t,"FocusableIframe",function(){return Dt}),n.d(t,"FontSizePicker",function(){return wt}),n.d(t,"FormFileUpload",function(){return St}),n.d(t,"FormToggle",function(){return jt}),n.d(t,"FormTokenField",function(){return Rt}),n.d(t,"Icon",function(){return Lt}),n.d(t,"IconButton",function(){return Z}),n.d(t,"KeyboardShortcuts",function(){return Ie}),n.d(t,"MenuGroup",function(){return At}),n.d(t,"MenuItem",function(){return Ft}),n.d(t,"MenuItemsChoice",function(){return Vt}),n.d(t,"Modal",function(){return Qt}),n.d(t,"ScrollLock",function(){return X}),n.d(t,"NavigableMenu",function(){return bt}),n.d(t,"TabbableContainer",function(){return vt}),n.d(t,"Notice",function(){return Jt}),n.d(t,"NoticeList",function(){return en}),n.d(t,"Panel",function(){return nn}),n.d(t,"PanelBody",function(){return an}),n.d(t,"PanelHeader",function(){return tn}),n.d(t,"PanelRow",function(){return cn}),n.d(t,"Placeholder",function(){return sn}),n.d(t,"Popover",function(){return he}),n.d(t,"PositionedAtSelection",function(){return un}),n.d(t,"QueryControls",function(){return bn}),n.d(t,"RadioControl",function(){return vn}),n.d(t,"RangeControl",function(){return Mt}),n.d(t,"ResizableBox",function(){return xn}),n.d(t,"ResponsiveWrapper",function(){return Hn}),n.d(t,"SandBox",function(){return Rn}),n.d(t,"SelectControl",function(){return Ln}),n.d(t,"Spinner",function(){return An}),n.d(t,"ServerSideRender",function(){return Kn}),n.d(t,"TabPanel",function(){return Yn}),n.d(t,"TextControl",function(){return Re}),n.d(t,"TextareaControl",function(){return $n}),n.d(t,"ToggleControl",function(){return qn}),n.d(t,"Toolbar",function(){return Jn}),n.d(t,"ToolbarButton",function(){return Xn}),n.d(t,"Tooltip",function(){return G}),n.d(t,"TreeSelect",function(){return dn}),n.d(t,"IsolatedEventContainer",function(){return Q}),n.d(t,"createSlotFill",function(){return se}),n.d(t,"Slot",function(){return re}),n.d(t,"Fill",function(){return ce}),n.d(t,"SlotFillProvider",function(){return ne}),n.d(t,"navigateRegions",function(){return eo}),n.d(t,"withConstrainedTabbing",function(){return V}),n.d(t,"withFallbackStyles",function(){return to}),n.d(t,"withFilters",function(){return ro}),n.d(t,"withFocusOutside",function(){return z}),n.d(t,"withFocusReturn",function(){return F}),n.d(t,"withNotices",function(){return co}),n.d(t,"withSpokenMessages",function(){return pe})}]); \ No newline at end of file +var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var o="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},r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===o(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,c.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=l},function(e,t,n){"use strict";var o,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},a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(e),o.removeAllRanges(),o.addRange(r),t=o.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)s[111+h]="f"+h;for(h=0;h<=9;++h)s[h+96]=h.toString();y.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==a&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);c=null},y.init=function(){var e=y(a);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),r.Mousetrap=y,e.exports&&(e.exports=y),void 0===(o=function(){return y}.call(t,n,t,e))||(e.exports=o)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function b(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t,n){return n||(n=function(){if(!c)for(var e in c={},s)e>95&&e<112||s.hasOwnProperty(e)&&(c[s[e]]=e);return c}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,o,r,a=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r1?h(e,c,n,o):(i=m(e,o),t._callbacks[i.key]=t._callbacks[i.key]||[],l(i.key,i.modifiers,{type:i.action},r,e,a),t._callbacks[i.key][r?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:r,level:a,combo:e}))}t._handleKey=function(e,t,n){var o,r=l(e,t,n),a={},d=0,h=!1;for(o=0;o=0&&"[object Function]"===o.call(e.callee)),n}},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function(e,t,r){if("[object Function]"!==o.call(t))throw new TypeError("iterator must be a function");var a=e.length;if(a===+a)for(var i=0;i= 0");var n=this.ToLength(t);if(!this.SameValueZero(t,n))throw new RangeError("index must be >= 0 and < 2 ** 53 - 1");return n}});delete a.EnumerableOwnNames,e.exports=a},function(e,t,n){"use strict";var o=n(91),r=n(271),a=n(147),i=a("%TypeError%"),c=a("%SyntaxError%"),s=a("%Array%"),l=a("%String%"),u=a("%Object%"),d=a("%Number%"),h=a("%Symbol%",!0),f=a("%RegExp%"),p=!!h,b=n(148),v=n(149),m=d.MAX_SAFE_INTEGER||Math.pow(2,53)-1,y=n(124),g=n(150),O=n(151),k=n(275),_=parseInt,D=n(74),w=D.call(Function.call,s.prototype.slice),S=D.call(Function.call,l.prototype.slice),j=D.call(Function.call,f.prototype.test,/^0b[01]+$/i),M=D.call(Function.call,f.prototype.test,/^0o[0-7]+$/i),C=D.call(Function.call,f.prototype.exec),P=new f("["+["…","​","￾"].join("")+"]","g"),E=D.call(Function.call,f.prototype.test,P),z=D.call(Function.call,f.prototype.test,/^[-+]0x[0-9a-f]+$/i),T=D.call(Function.call,l.prototype.charCodeAt),I=D.call(Function.call,Object.prototype.toString),x=Math.floor,H=Math.abs,N=Object.create,R=u.getOwnPropertyDescriptor,L=u.isExtensible,A=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),F=new RegExp("(^["+A+"]+)|(["+A+"]+$)","g"),V=D.call(Function.call,l.prototype.replace),B=n(276),K=n(278),W=y(y({},B),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new i(e+" is not a function");return e.apply(t,n)},ToPrimitive:r,ToNumber:function(e){var t=k(e)?e:r(e,d);if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a number");if("string"==typeof t){if(j(t))return this.ToNumber(_(S(t,2),2));if(M(t))return this.ToNumber(_(S(t,2),8));if(E(t)||z(t))return NaN;var n=function(e){return V(e,F,"")}(t);if(n!==t)return this.ToNumber(n)}return d(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(b(t)||0===t||!v(t))return 0;var n=g(t)*x(H(t));return O(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(b(t)||t<=0)return 0;if(t>=255)return 255;var n=x(e);return n+.5m?m:t},CanonicalNumericIndexString:function(e){if("[object String]"!==I(e))throw new i("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:B.CheckObjectCoercible,IsArray:s.isArray||function(e){return"[object Array]"===I(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!k(e)&&L(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||b(e)||!v(e))return!1;var t=H(e);return x(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(p){var t=e[h.match];if(void 0!==t)return B.ToBoolean(t)}return K(e)},SameValueZero:function(e,t){return e===t||b(e)&&b(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new i(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":B.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new i("O.constructor is not an Object");var o=p&&h.species?n[h.species]:void 0;if(null==o)return t;if(this.IsConstructor(o))return o;throw new i("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(o(e,"[[Value]]")||(e["[[Value]]"]=void 0),o(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(o(e,"[[Get]]")||(e["[[Get]]"]=void 0),o(e,"[[Set]]")||(e["[[Set]]"]=void 0)),o(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),o(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,o){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");if("Boolean"!==this.Type(o))throw new i("Throw must be a Boolean");if(o)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");return o(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(p&&"symbol"==typeof h.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");var n=w(arguments,2),o=this.GetV(e,t);return this.Call(o,e,n)},GetIterator:function(e,t){if(!p)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,h.iterator));var o=this.Call(n,e);if("Object"!==this.Type(o))throw new i("iterator must return an object");return o},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new i("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new i("Assertion failed: completion is not a thunk for a Completion Record");var n,o=t,r=this.GetMethod(e,"return");if(void 0===r)return o();try{var a=this.Call(r,e,[])}catch(e){throw n=o(),o=null,e}if(n=o(),o=null,"Object"!==this.Type(a))throw new i("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new i("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new i("R must be an Object");if("String"!==this.Type(t))throw new i("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var o=this.Call(n,e,[t]);if(null===o||"Object"===this.Type(o))return o;throw new i('"exec" method must return `null` or an Object')}return C(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new i("Assertion failed: length must be an integer >= 0");var n,o=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&p&&h.species&&null===(n=this.Get(n,h.species))&&(n=void 0)),void 0===n)return s(o);if(!this.IsConstructor(n))throw new i("C must be a constructor");return new n(o)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var o=R(e,t),r=o||"function"!=typeof L||L(e);if(o&&(!o.writable||!o.configurable)||!r)return!1;var a={configurable:!0,enumerable:!0,value:n,writable:!0};return Object.defineProperty(e,t,a),!0},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var o=this.CreateDataProperty(e,t,n);if(!o)throw new i("unable to create data property");return o},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new i("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new c("es-abstract does not yet support internal slots");if(null===e&&!N)throw new c("native Object.create support is required to create null objects");return N(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new i("S must be a String");if(!this.IsInteger(t)||t<0||t>m)throw new i("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new i("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var o=T(e,t);if(o<55296||o>56319)return t+1;var r=T(e,t+1);return r<56320||r>57343?t+1:t+2}});delete W.CheckObjectCoercible,e.exports=W},function(e,t,n){"use strict";e.exports=n(272)},function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,r=n(144),a=n(123),i=n(273),c=n(145);e.exports=function(e){if(r(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),o&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!=n){if(!a(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var s=t.call(e,n);if(r(s))return s;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||c(e))&&(n="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,o,i,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(c(t)||0===t||!s(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return u(n,65536)},ToString:function(e){return i(e)},ToObject:function(e){return this.CheckObjectCoercible(e),r(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:c(e)&&c(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(f(e,n)&&!t[n])return!1;var o=f(e,"[[Value]]"),r=f(e,"[[Get]]")||f(e,"[[Set]]");if(o&&r)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");return!(!f(e,"[[Get]]")&&!f(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");return!(!f(e,"[[Value]]")&&!f(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new a("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new a("ToPropertyDescriptor requires an object");var t={};if(f(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),f(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),f(e,"value")&&(t["[[Value]]"]=e.value),f(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),f(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(f(e,"set")){var o=e.set;if(void 0!==o&&!this.IsCallable(o))throw new a("setter must be a function");t["[[Set]]"]=o}if((f(t,"[[Get]]")||f(t,"[[Set]]"))&&(f(t,"[[Value]]")||f(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=p},function(e,t,n){"use strict";var o=Object.prototype.toString,r=n(144),a=n(123),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===o.call(e)?String:Number)===String||t===Number){var n,i,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1?i(e,arguments[1]):i(e)}},function(e,t,n){"use strict";var o=n(91),r=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!o(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,r.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var o=n(73),r=n(152);e.exports=function(){var e=r();return o(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},function(e,t,n){"use strict";(function(t){var o=n(73),r=n(145),a="__ global cache key __";"function"==typeof Symbol&&r(Symbol("foo"))&&"function"==typeof Symbol.for&&(a=Symbol.for(a));var i=function(){return!0},c=function(){if(!t[a]){var e={};e[a]={};var n={};n[a]=i,o(t,e,n)}return t[a]},s=c(),l=function(e){return r(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},u=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[a],s=c()},delete:function(e){return u(e),delete s[l(e)],!d.has(e)},get:function(e){return u(e),s[l(e)]},has:function(e){return u(e),l(e)in s},set:function(e,t){u(e);var n=l(e),r={};r[n]=t;var a={};return a[n]=i,o(s,r,a),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n(59))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,o={},r=0;r>",baseInvalidMessage:"Invalid "};function o(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var o=e.bind(null,!1,t);return o.isRequired=e.bind(null,!0,t),o},t}function r(e,t,o){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+o+"`.")}var a=-1;e.exports={constructPropValidatorVariations:o,createMomentChecker:function(e,t,i,c){return o(function(o,s,l,u,d,h,f){var p=l[u],b=typeof p,v=function(e,t,n,o){var i=void 0===o,c=null===o;if(e){if(i)return r(n,t,"undefined");if(c)return r(n,t,"null")}return i||c?null:a}(o,d=d||n.anonymousMessage,f=f||u,p);if(v!==a)return v;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+b+"` supplied to `"+d+"`, expected `"+e+"`.");if(!i(p))return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+b+"` supplied to `"+d+"`, expected `"+c+"`.");if(s&&!s(p)){var m=s.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+h+" `"+u+"` of type `"+b+"` supplied to `"+d+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null})},messages:n}},function(e,t,n){"use strict";function o(){return null}function r(){return o}o.isRequired=o,e.exports={and:r,between:r,booleanSome:r,childrenHavePropXorChildren:r,childrenOf:r,childrenOfType:r,childrenSequenceOf:r,componentWithName:r,disallowedIf:r,elementType:r,empty:r,explicitNull:r,forbidExtraProps:Object,integer:r,keysOf:r,mutuallyExclusiveProps:r,mutuallyExclusiveTrueProps:r,nChildren:r,nonNegativeInteger:o,nonNegativeNumber:r,numericString:r,object:r,or:r,range:r,requiredBy:r,restrictedProp:r,sequenceOf:r,shape:r,stringStartsWith:r,uniqueArray:r,uniqueArrayOf:r,valuesOf:r,withShape:r}},function(e,t,n){"use strict";var o=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){var n;return t&&!0===t.clone&&o(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e}function i(e,t,n){var r=e.slice();return t.forEach(function(t,i){void 0===r[i]?r[i]=a(t,n):o(t)?r[i]=c(e[i],t,n):-1===e.indexOf(t)&&r.push(a(t,n))}),r}function c(e,t,n){var r=Array.isArray(t);return r===Array.isArray(e)?r?((n||{arrayMerge:i}).arrayMerge||i)(e,t,n):function(e,t,n){var r={};return o(e)&&Object.keys(e).forEach(function(t){r[t]=a(e[t],n)}),Object.keys(t).forEach(function(i){o(t[i])&&e[i]?r[i]=c(e[i],t[i],n):r[i]=a(t[i],n)}),r}(e,t,n):a(t,n)}c.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return c(e,n,t)})};var s=c;e.exports=s},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(31),a=(o=r)&&o.__esModule?o:{default:o};t.default=a.default.shape({getState:a.default.func,setState:a.default.func,subscribe:a.default.func})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var o=c(n(27)),r=n(43),a=c(n(125)),i=c(n(296));function c(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.forbidExtraProps)({children:(0,r.or)([(0,r.childrenOfType)(a.default),(0,r.childrenOfType)(i.default)]).isRequired});function l(e){var t=e.children;return o.default.createElement("tr",null,t)}l.propTypes=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var o=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var o=e.clone().startOf("month").hour(12),r=e.clone().endOf("month").hour(12),c=(o.day()+7-n)%7,s=(n+6-r.day())%7,l=o.clone().subtract(c,"day"),u=r.clone().add(s,"day").diff(l,"days")+1,d=l.clone(),h=[],f=0;f=c&&f0&&!r.call(e,0))for(var b=0;b0)for(var v=0;v0&&!r.call(e,0))for(var b=0;b0)for(var v=0;v=t||n<0||m&&e-b>=d}function k(){var e=r();if(O(e))return _(e);f=setTimeout(k,function(e){var n=t-(e-p);return m?s(n,d-(e-b)):n}(e))}function _(e){return f=void 0,y&&l?g(e):(l=u=void 0,h)}function D(){var e=r(),n=O(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return function(e){return b=e,f=setTimeout(k,t),v?g(e):h}(p);if(m)return f=setTimeout(k,t),g(p)}return void 0===f&&(f=setTimeout(k,t)),h}return t=a(t)||0,o(n)&&(v=!!n.leading,d=(m="maxWait"in n)?c(a(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),D.cancel=function(){void 0!==f&&clearTimeout(f),b=0,l=p=u=f=void 0},D.flush=function(){return void 0===f?h:_(r())},D}},function(e,t,n){var o=n(183);e.exports=function(){return o.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(59))},function(e,t,n){var o=n(128),r=n(319),a=NaN,i=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):c.test(e)?a:+e}},function(e,t,n){var o=n(320),r=n(323),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||r(e)&&o(e)==a}},function(e,t,n){var o=n(184),r=n(321),a=n(322),i="[object Null]",c="[object Undefined]",s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?c:i:s&&s in Object(e)?r(e):a(e)}},function(e,t,n){var o=n(184),r=Object.prototype,a=r.hasOwnProperty,i=r.toString,c=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var o=!0}catch(e){}var r=i.call(e);return o&&(t?e[c]=n:delete e[c]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var o=n(191),r=n(73);e.exports=function(){var e=o();return r(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return e?n(e(t.clone())):t};var o=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:a.default.localeData().firstDayOfWeek(),n=function(e,t){return(e.day()-t+7)%7}(e.clone().startOf("month"),t);return Math.ceil((n+e.daysInMonth())/7)};var o,r=n(29),a=(o=r)&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureSingleDatePicker=void 0;var o=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=n.split(" "),i=Object(h.a)(a,2),c=i[0],s=i[1],l=void 0===s?"center":s,u=function(e,t,n){var o,r=t.height,a=e.top+e.height/2,i={popoverTop:a,contentHeight:(a-r/2>0?r/2:a)+(a+r/2>window.innerHeight?window.innerHeight-a:r/2)},c={popoverTop:e.top,contentHeight:e.top-N-r>0?r:e.top-N},s={popoverTop:e.bottom,contentHeight:e.bottom+N+r>window.innerHeight?window.innerHeight-N-e.bottom:r},l=null;if("middle"===n&&i.contentHeight===r)o="middle";else if("top"===n&&c.contentHeight===r)o="top";else if("bottom"===n&&s.contentHeight===r)o="bottom";else{var u="top"==(o=c.contentHeight>s.contentHeight?"top":"bottom")?c.contentHeight:s.contentHeight;l=u!==r?u:null}return{yAxis:o,popoverTop:"middle"===o?i.popoverTop:"top"===o?c.popoverTop:s.popoverTop,contentHeight:l}}(e,t,c),d=function(e,t,n,o){var r=t.width;"left"===n&&L()?n="right":"right"===n&&L()&&(n="left");var a,i=Math.round(e.left+e.width/2),c={popoverLeft:i,contentWidth:(i-r/2>0?r/2:i)+(i+r/2>window.innerWidth?window.innerWidth-i:r/2)},s="middle"===o?e.left:i,l={popoverLeft:s,contentWidth:s-r>0?r:s},u="middle"===o?e.right:i,d={popoverLeft:u,contentWidth:u+r>window.innerWidth?window.innerWidth-u:r},h=null;if("center"===n&&c.contentWidth===r)a="center";else if("left"===n&&l.contentWidth===r)a="left";else if("right"===n&&d.contentWidth===r)a="right";else{var f="left"==(a=l.contentWidth>d.contentWidth?"left":"right")?l.contentWidth:d.contentWidth;h=f!==r?f:null}return{xAxis:a,popoverLeft:"center"===a?c.popoverLeft:"left"===a?l.popoverLeft:d.popoverLeft,contentWidth:h}}(e,t,l,u.yAxis);return Object(o.a)({isMobile:R()&&r},d,u)}var F=Object(r.createContext)({focusHistory:[]}),V=F.Provider,B=F.Consumer;V.displayName="FocusReturnProvider",B.displayName="FocusReturnConsumer";var K=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onFocus=e.onFocus.bind(Object(k.a)(Object(k.a)(e))),e.state={focusHistory:[]},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(D.uniq)([].concat(Object(_.a)(t),[e.target]).slice(-100).reverse()).reverse();this.setState({focusHistory:n})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(r.createElement)(V,{value:this.state},Object(r.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),t}(r.Component);var W=Object(j.createHigherOrderComponent)(function e(t){if((o=t)instanceof r.Component||"function"==typeof o){var n=t;return e({})(n)}var o,a=t.onFocusReturn,i=void 0===a?D.stubTrue:a;return function(e){var t=function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==i())for(var o,r=[].concat(Object(_.a)(D.without.apply(void 0,[this.props.focusHistory].concat(Object(_.a)(n)))),[e]);o=r.pop();)if(document.body.contains(o))return void o.focus()}},{key:"render",value:function(){return Object(r.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(r.createElement)(e,this.props))}}]),n}(r.Component);return function(e){return Object(r.createElement)(B,null,function(n){return Object(r.createElement)(t,Object(P.a)({},e,n))})}}},"withFocusReturn"),U=Object(j.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).focusContainRef=Object(r.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===w.TAB){var t=C.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],o=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),o.focus()):(e.shiftKey||e.target!==o)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(r.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(r.createElement)(e,this.props))}}]),n}(r.Component)},"withConstrainedTabbing"),$=n(108),Y=n.n($),q=function(e){function t(){return Object(v.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(O.a)(t,e),Object(g.a)(t,[{key:"handleClickOutside",value:function(e){var t=this.props.onClickOutside;t&&t(e)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component),G=Y()(q);var Z=function(e){var t,n,o=e.shortcut,a=e.className;return o?(Object(D.isString)(o)&&(t=o),Object(D.isObject)(o)&&(t=o.display,n=o.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null},X=700,Q=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).delayedSetIsOver=Object(D.debounce)(function(t){return e.setState({isOver:t})},X),e.state={isOver:!1},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel()}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===r.Children.count(n)){var o=r.Children.only(n);"function"==typeof o.props[e]&&o.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(o){if(n.emitToChild(e,o),!o.currentTarget.disabled){n.delayedSetIsOver.cancel();var r=Object(D.includes)(["focus","mouseenter"],o.type);r!==n.state.isOver&&(t?n.delayedSetIsOver(r):n.setState({isOver:r}))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,o=e.text,a=e.shortcut;if(1!==r.Children.count(t))return t;var i=r.Children.only(t),c=this.state.isOver;return Object(r.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),children:Object(r.concatChildren)(i.props.children,c&&Object(r.createElement)(ve,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1},o,Object(r.createElement)(Z,{className:"components-tooltip__shortcut",shortcut:a})))})}}]),t}(r.Component),J=function(e){function t(){return Object(v.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(O.a)(t,e),Object(g.a)(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.icon!==e.icon||this.props.size!==e.size||this.props.className!==e.className||this.props.ariaPressed!==e.ariaPressed}},{key:"render",value:function(){var e,t=this.props,n=t.icon,o=t.size,a=void 0===o?20:o;switch(n){case"admin-appearance":e="M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z";break;case"admin-collapse":e="M10 2.16c4.33 0 7.84 3.51 7.84 7.84s-3.51 7.84-7.84 7.84S2.16 14.33 2.16 10 5.71 2.16 10 2.16zm2 11.72V6.12L6.18 9.97z";break;case"admin-comments":e="M5 2h9c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z";break;case"admin-customizer":e="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z";break;case"admin-generic":e="M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z";break;case"admin-home":e="M16 8.5l1.53 1.53-1.06 1.06L10 4.62l-6.47 6.47-1.06-1.06L10 2.5l4 4v-2h2v4zm-6-2.46l6 5.99V18H4v-5.97zM12 17v-5H8v5h4z";break;case"admin-links":e="M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z";break;case"admin-media":e="M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z";break;case"admin-multisite":e="M14.27 6.87L10 3.14 5.73 6.87 5 6.14l5-4.38 5 4.38zM14 8.42l-4.05 3.43L6 8.38v-.74l4-3.5 4 3.5v.78zM11 9.7V8H9v1.7h2zm-1.73 4.03L5 10 .73 13.73 0 13l5-4.38L10 13zm10 0L15 10l-4.27 3.73L10 13l5-4.38L20 13zM5 11l4 3.5V18H1v-3.5zm10 0l4 3.5V18h-8v-3.5zm-9 6v-2H4v2h2zm10 0v-2h-2v2h2z";break;case"admin-network":e="M16.95 2.58c1.96 1.95 1.96 5.12 0 7.07-1.51 1.51-3.75 1.84-5.59 1.01l-1.87 3.31-2.99.31L5 18H2l-1-2 7.95-7.69c-.92-1.87-.62-4.18.93-5.73 1.95-1.96 5.12-1.96 7.07 0zm-2.51 3.79c.74 0 1.33-.6 1.33-1.34 0-.73-.59-1.33-1.33-1.33-.73 0-1.33.6-1.33 1.33 0 .74.6 1.34 1.33 1.34z";break;case"admin-page":e="M6 15V2h10v13H6zm-1 1h8v2H3V5h2v11z";break;case"admin-plugins":e="M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z";break;case"admin-post":e="M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z";break;case"admin-settings":e="M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z";break;case"admin-site-alt":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z";break;case"admin-site-alt2":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm2.92 12.34c0 .35.14.63.36.66.22.03.47-.22.58-.6l.2.08c.718.384 1.07 1.22.84 2-.15.69-.743 1.198-1.45 1.24-.49-1.21-2.11.06-3.56-.22-.612-.154-1.11-.6-1.33-1.19 1.19-.11 2.85-1.73 4.36-1.97zM8 11.27c.918 0 1.695-.68 1.82-1.59.44.54.41 1.324-.07 1.83-.255.223-.594.325-.93.28-.335-.047-.635-.236-.82-.52zm3-.76c.41.39 3-.06 3.52 1.09-.95-.2-2.95.61-3.47-1.08l-.05-.01zM9.73 5.45v.27c-.65-.77-1.33-1.07-1.61-.57-.28.5 1 1.11.76 1.88-.24.77-1.27.56-1.88 1.61-.61 1.05-.49 2.42 1.24 3.67-1.192-.132-2.19-.962-2.54-2.11-.4-1.2-.09-2.26-.78-2.46C4 7.46 3 8.71 3 9.8c-1.26-1.26.05-2.86-1.2-4.18C3.5 1.998 7.644.223 11.44 1.49c-1.1 1.02-1.722 2.458-1.71 3.96z";break;case"admin-site-alt3":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z";break;case"admin-site":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm3.46 11.95c0 1.47-.8 3.3-4.06 4.7.3-4.17-2.52-3.69-3.2-5 .126-1.1.804-2.063 1.8-2.55-1.552-.266-3-.96-4.18-2 .05.47.28.904.64 1.21-.782-.295-1.458-.817-1.94-1.5.977-3.225 3.883-5.482 7.25-5.63-.84 1.38-1.5 4.13 0 5.57C7.23 7 6.26 5 5.41 5.79c-1.13 1.06.33 2.51 3.42 3.08 3.29.59 3.66 1.58 3.63 3.08zm1.34-4c-.32-1.11.62-2.23 1.69-3.14 1.356 1.955 1.67 4.45.84 6.68-.77-1.89-2.17-2.32-2.53-3.57v.03z";break;case"admin-tools":e="M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z";break;case"admin-users":e="M10 9.25c-2.27 0-2.73-3.44-2.73-3.44C7 4.02 7.82 2 9.97 2c2.16 0 2.98 2.02 2.71 3.81 0 0-.41 3.44-2.68 3.44zm0 2.57L12.72 10c2.39 0 4.52 2.33 4.52 4.53v2.49s-3.65 1.13-7.24 1.13c-3.65 0-7.24-1.13-7.24-1.13v-2.49c0-2.25 1.94-4.48 4.47-4.48z";break;case"album":e="M0 18h10v-.26c1.52.4 3.17.35 4.76-.24 4.14-1.52 6.27-6.12 4.75-10.26-1.43-3.89-5.58-6-9.51-4.98V2H0v16zM9 3v14H1V3h8zm5.45 8.22c-.68 1.35-2.32 1.9-3.67 1.23-.31-.15-.57-.35-.78-.59V8.13c.8-.86 2.11-1.13 3.22-.58 1.35.68 1.9 2.32 1.23 3.67zm-2.75-.82c.22.16.53.12.7-.1.16-.22.12-.53-.1-.7s-.53-.12-.7.1c-.16.21-.12.53.1.7zm3.01 3.67c-1.17.78-2.56.99-3.83.69-.27-.06-.44-.34-.37-.61s.34-.43.62-.36l.17.04c.96.17 1.98-.01 2.86-.59.47-.32.86-.72 1.14-1.18.15-.23.45-.3.69-.16.23.15.3.46.16.69-.36.57-.84 1.08-1.44 1.48zm1.05 1.57c-1.48.99-3.21 1.32-4.84 1.06-.28-.05-.47-.32-.41-.6.05-.27.32-.45.61-.39l.22.04c1.31.15 2.68-.14 3.87-.94.71-.47 1.27-1.07 1.7-1.74.14-.24.45-.31.68-.16.24.14.31.45.16.69-.49.79-1.16 1.49-1.99 2.04z";break;case"align-center":e="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z";break;case"align-full-width":e="M17 13V3H3v10h14zM5 17h10v-2H5v2z";break;case"align-left":e="M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z";break;case"align-none":e="M3 5h14V3H3v2zm10 8V7H3v6h10zM3 17h14v-2H3v2z";break;case"align-pull-left":e="M9 16V4H3v12h6zm2-7h6V7h-6v2zm0 4h6v-2h-6v2z";break;case"align-pull-right":e="M17 16V4h-6v12h6zM9 7H3v2h6V7zm0 4H3v2h6v-2z";break;case"align-right":e="M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z";break;case"align-wide":e="M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z";break;case"analytics":e="M18 18V2H2v16h16zM16 5H4V4h12v1zM7 7v3h3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3zm1 2V7c1.1 0 2 .9 2 2H8zm8-1h-4V7h4v1zm0 3h-4V9h4v2zm0 2h-4v-1h4v1zm0 3H4v-1h12v1z";break;case"archive":e="M19 4v2H1V4h18zM2 7h16v10H2V7zm11 3V9H7v1h6z";break;case"arrow-down-alt":e="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z";break;case"arrow-down-alt2":e="M5 6l5 5 5-5 2 1-7 7-7-7z";break;case"arrow-down":e="M15 8l-4.03 6L7 8h8z";break;case"arrow-left-alt":e="M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z";break;case"arrow-left-alt2":e="M14 5l-5 5 5 5-1 2-7-7 7-7z";break;case"arrow-left":e="M13 14L7 9.97 13 6v8z";break;case"arrow-right-alt":e="M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z";break;case"arrow-right-alt2":e="M6 15l5-5-5-5 1-2 7 7-7 7z";break;case"arrow-right":e="M8 6l6 4.03L8 14V6z";break;case"arrow-up-alt":e="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z";break;case"arrow-up-alt2":e="M15 14l-5-5-5 5-2-1 7-7 7 7z";break;case"arrow-up":e="M7 13l4.03-6L15 13H7z";break;case"art":e="M8.55 3.06c1.01.34-1.95 2.01-.1 3.13 1.04.63 3.31-2.22 4.45-2.86.97-.54 2.67-.65 3.53 1.23 1.09 2.38.14 8.57-3.79 11.06-3.97 2.5-8.97 1.23-10.7-2.66-2.01-4.53 3.12-11.09 6.61-9.9zm1.21 6.45c.73 1.64 4.7-.5 3.79-2.8-.59-1.49-4.48 1.25-3.79 2.8z";break;case"awards":e="M4.46 5.16L5 7.46l-.54 2.29 2.01 1.24L7.7 13l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L15 7.46l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C7.79 11.5 6 9.71 6 7.49c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C8.33 10.5 7 9.16 7 7.5c0-1.65 1.33-3 2.99-3S13 5.85 13 7.5c0 1.66-1.35 3-3.01 3zm3.84 1.1l-1.28 2.24-2.08-.47L13 19.2l1.4-2.2h2.5zm-7.7.07l1.25 2.25 2.13-.51L7 19.2 5.6 17H3.1z";break;case"backup":e="M13.65 2.88c3.93 2.01 5.48 6.84 3.47 10.77s-6.83 5.48-10.77 3.47c-1.87-.96-3.2-2.56-3.86-4.4l1.64-1.03c.45 1.57 1.52 2.95 3.08 3.76 3.01 1.54 6.69.35 8.23-2.66 1.55-3.01.36-6.69-2.65-8.24C9.78 3.01 6.1 4.2 4.56 7.21l1.88.97-4.95 3.08-.39-5.82 1.78.91C4.9 2.4 9.75.89 13.65 2.88zm-4.36 7.83C9.11 10.53 9 10.28 9 10c0-.07.03-.12.04-.19h-.01L10 5l.97 4.81L14 13l-4.5-2.12.02-.02c-.08-.04-.16-.09-.23-.15z";break;case"block-default":e="M15 6V4h-3v2H8V4H5v2H4c-.6 0-1 .4-1 1v8h14V7c0-.6-.4-1-1-1h-1z";break;case"book-alt":e="M5 17h13v2H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h13v14H5c-.55 0-1 .45-1 1s.45 1 1 1zm2-3.5v-11c0-.28-.22-.5-.5-.5s-.5.22-.5.5v11c0 .28.22.5.5.5s.5-.22.5-.5z";break;case"book":e="M16 3h2v16H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h9v14H5c-.55 0-1 .45-1 1s.45 1 1 1h11V3z";break;case"buddicons-activity":e="M8 1v7h2V6c0-1.52 1.45-3 3-3v.86c.55-.52 1.26-.86 2-.86v3h1c1.1 0 2 .9 2 2s-.9 2-2 2h-1v6c0 .55-.45 1-1 1s-1-.45-1-1v-2.18c-.31.11-.65.18-1 .18v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H8v2c0 .55-.45 1-1 1s-1-.45-1-1v-2c-.35 0-.69-.07-1-.18V16c0 .55-.45 1-1 1s-1-.45-1-1v-4H2v-1c0-1.66 1.34-3 3-3h2V1h1zm5 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z";break;case"buddicons-bbpress-logo":e="M8.5 12.6c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.3 1.7c-.3 1 .3 1.5 1 1.5 1.2 0 1.9-1.1 2.2-2.4zm-4-6.4C3.7 7.3 3.3 8.6 3.3 10c0 1 .2 1.9.6 2.8l1-4.6c.3-1.7.4-2-.4-2zm9.3 6.4c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.4 1.7c-.2 1.1.4 1.6 1.1 1.6 1.1-.1 1.9-1.2 2.2-2.5zM10 3.3c-2 0-3.9.9-5.1 2.3.6-.1 1.4-.2 1.8-.3.2 0 .2.1.2.2 0 .2-1 4.8-1 4.8.5-.3 1.2-.7 1.8-.7.9 0 1.5.4 1.9.9l.5-2.4c.4-1.6.4-1.9-.4-1.9-.4 0-.4-.5 0-.6.6-.1 1.8-.2 2.3-.3.2 0 .2.1.2.2l-1 4.8c.5-.4 1.2-.7 1.9-.7 1.7 0 2.5 1.3 2.1 3-.3 1.7-2 3-3.8 3-1.3 0-2.1-.7-2.3-1.4-.7.8-1.7 1.3-2.8 1.4 1.1.7 2.4 1.1 3.7 1.1 3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM10 2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 15.5c-2.1 0-4-.8-5.3-2.2-.3-.4-.7-.8-1-1.2-.7-1.2-1.2-2.6-1.2-4.1 0-4.1 3.4-7.5 7.5-7.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5z";break;case"buddicons-buddypress-logo":e="M10 0c5.52 0 10 4.48 10 10s-4.48 10-10 10S0 15.52 0 10 4.48 0 10 0zm0 .5C4.75.5.5 4.75.5 10s4.25 9.5 9.5 9.5 9.5-4.25 9.5-9.5S15.25.5 10 .5zm0 1c4.7 0 8.5 3.8 8.5 8.5s-3.8 8.5-8.5 8.5-8.5-3.8-8.5-8.5S5.3 1.5 10 1.5zm1.8 1.71c-.57 0-1.1.17-1.55.45 1.56.37 2.73 1.77 2.73 3.45 0 .69-.21 1.33-.55 1.87 1.31-.29 2.29-1.45 2.29-2.85 0-1.61-1.31-2.92-2.92-2.92zm-2.38 1c-1.61 0-2.92 1.31-2.92 2.93 0 1.61 1.31 2.92 2.92 2.92 1.62 0 2.93-1.31 2.93-2.92 0-1.62-1.31-2.93-2.93-2.93zm4.25 5.01l-.51.59c2.34.69 2.45 3.61 2.45 3.61h1.28c0-4.71-3.22-4.2-3.22-4.2zm-2.1.8l-2.12 2.09-2.12-2.09C3.12 10.24 3.89 15 3.89 15h11.08c.47-4.98-3.4-4.98-3.4-4.98z";break;case"buddicons-community":e="M9 3c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zm4 0c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zM9 9V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 0V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 1c0-1.48-1.41-2.77-3.5-3.46V9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5V6.01c-.17 0-.33-.01-.5-.01s-.33.01-.5.01V9c0 .83-.67 1.5-1.5 1.5S6.5 9.83 6.5 9V6.54C4.41 7.23 3 8.52 3 10c0 1.41.95 2.65 3.21 3.37 1.11.35 2.39 1.12 3.79 1.12s2.69-.78 3.79-1.13C16.04 12.65 17 11.41 17 10zm-7 5.43c1.43 0 2.74-.79 3.88-1.11 1.9-.53 2.49-1.34 3.12-2.32v3c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3c.64.99 1.32 1.8 3.15 2.33 1.13.33 2.44 1.1 3.85 1.1z";break;case"buddicons-forums":e="M13.5 7h-7C5.67 7 5 6.33 5 5.5S5.67 4 6.5 4h1.59C8.04 3.84 8 3.68 8 3.5 8 2.67 8.67 2 9.5 2h1c.83 0 1.5.67 1.5 1.5 0 .18-.04.34-.09.5h1.59c.83 0 1.5.67 1.5 1.5S14.33 7 13.5 7zM4 8h12c.55 0 1 .45 1 1s-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1zm1 3h10c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1s.45-1 1-1zm2 3h6c.55 0 1 .45 1 1s-.45 1-1 1h-1.09c.05.16.09.32.09.5 0 .83-.67 1.5-1.5 1.5h-1c-.83 0-1.5-.67-1.5-1.5 0-.18.04-.34.09-.5H7c-.55 0-1-.45-1-1s.45-1 1-1z";break;case"buddicons-friends":e="M8.75 5.77C8.75 4.39 7 2 7 2S5.25 4.39 5.25 5.77 5.9 7.5 7 7.5s1.75-.35 1.75-1.73zm6 0C14.75 4.39 13 2 13 2s-1.75 2.39-1.75 3.77S11.9 7.5 13 7.5s1.75-.35 1.75-1.73zM9 17V9c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm6 0V9c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-9-6l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2zm-6 3l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2z";break;case"buddicons-groups":e="M15.45 6.25c1.83.94 1.98 3.18.7 4.98-.8 1.12-2.33 1.88-3.46 1.78L10.05 18H9l-2.65-4.99c-1.13.16-2.73-.63-3.55-1.79-1.28-1.8-1.13-4.04.71-4.97.48-.24.96-.33 1.43-.31-.01.4.01.8.07 1.21.26 1.69 1.41 3.53 2.86 4.37-.19.55-.49.99-.88 1.25L9 16.58v-5.66C7.64 10.55 6.26 8.76 6 7c-.4-2.65 1-5 3.5-5s3.9 2.35 3.5 5c-.26 1.76-1.64 3.55-3 3.92v5.77l2.07-3.84c-.44-.23-.77-.71-.99-1.3 1.48-.83 2.65-2.69 2.91-4.4.06-.41.08-.82.07-1.22.46-.01.92.08 1.39.32z";break;case"buddicons-pm":e="M10 2c3 0 8 5 8 5v11H2V7s5-5 8-5zm7 14.72l-3.73-2.92L17 11l-.43-.37-2.26 1.3.24-4.31-8.77-.52-.46 4.54-1.99-.95L3 11l3.73 2.8-3.44 2.85.4.43L10 13l6.53 4.15z";break;case"buddicons-replies":e="M17.54 10.29c1.17 1.17 1.17 3.08 0 4.25-1.18 1.17-3.08 1.17-4.25 0l-.34-.52c0 3.66-2 4.38-2.95 4.98-.82-.6-2.95-1.28-2.95-4.98l-.34.52c-1.17 1.17-3.07 1.17-4.25 0-1.17-1.17-1.17-3.08 0-4.25 0 0 1.02-.67 2.1-1.3C3.71 7.84 3.2 6.42 3.2 4.88c0-.34.03-.67.08-1C3.53 5.66 4.47 7.22 5.8 8.3c.67-.35 1.85-.83 2.37-.92H8c-1.1 0-2-.9-2-2s.9-2 2-2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5h2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5c1.1 0 2 .9 2 2s-.9 2-2 2h-.17c.51.09 1.78.61 2.38.92 1.33-1.08 2.27-2.64 2.52-4.42.05.33.08.66.08 1 0 1.54-.51 2.96-1.36 4.11 1.08.63 2.09 1.3 2.09 1.3zM8.5 6.38c.5 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3-2c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-2.3 5.73c-.12.11-.19.26-.19.43.02.25.23.46.49.46h1c.26 0 .47-.21.49-.46 0-.15-.07-.29-.19-.43-.08-.06-.18-.11-.3-.11h-1c-.12 0-.22.05-.3.11zM12 12.5c0-.12-.06-.28-.19-.38-.09-.07-.19-.12-.31-.12h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z";break;case"buddicons-topics":e="M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53 0 2.12.6.6 1.56.56 2.12 0l5.66-5.66c.58-.58.59-1.53 0-2.12zm2.83 2.83c-.59-.59-1.54-.59-2.12 0l-5.66 5.66c-.59.58-.59 1.53 0 2.12.6.6 1.56.55 2.12 0l5.66-5.66c.58-.58.58-1.53 0-2.12zm1.06 6.72l4.18 4.18c.59.58.59 1.53 0 2.12s-1.54.59-2.12 0l-4.18-4.18-1.77 1.77c-.59.58-1.54.58-2.12 0-.59-.59-.59-1.54 0-2.13l5.66-5.65c.58-.59 1.53-.59 2.12 0 .58.58.58 1.53 0 2.12zM5 15c0-1.59-1.66-4-1.66-4S2 13.78 2 15s.6 2 1.34 2h.32C4.4 17 5 16.59 5 15z";break;case"buddicons-tracking":e="M10.98 6.78L15.5 15c-1 2-3.5 3-5.5 3s-4.5-1-5.5-3L9 6.82c-.75-1.23-2.28-1.98-4.29-2.03l2.46-2.92c1.68 1.19 2.46 2.32 2.97 3.31.56-.87 1.2-1.68 2.7-2.12l1.83 2.86c-1.42-.34-2.64.08-3.69.86zM8.17 10.4l-.93 1.69c.49.11 1 .16 1.54.16 1.35 0 2.58-.36 3.55-.95l-1.01-1.82c-.87.53-1.96.86-3.15.92zm.86 5.38c1.99 0 3.73-.74 4.74-1.86l-.98-1.76c-1 1.12-2.74 1.87-4.74 1.87-.62 0-1.21-.08-1.76-.21l-.63 1.15c.94.5 2.1.81 3.37.81z";break;case"building":e="M3 20h14V0H3v20zM7 3H5V1h2v2zm4 0H9V1h2v2zm4 0h-2V1h2v2zM7 6H5V4h2v2zm4 0H9V4h2v2zm4 0h-2V4h2v2zM7 9H5V7h2v2zm4 0H9V7h2v2zm4 0h-2V7h2v2zm-8 3H5v-2h2v2zm4 0H9v-2h2v2zm4 0h-2v-2h2v2zm-4 7H5v-6h6v6zm4-4h-2v-2h2v2zm0 3h-2v-2h2v2z";break;case"businessman":e="M7.3 6l-.03-.19c-.04-.37-.05-.73-.03-1.08.02-.36.1-.71.25-1.04.14-.32.31-.61.52-.86s.49-.46.83-.6c.34-.15.72-.23 1.13-.23.69 0 1.26.2 1.71.59s.76.87.91 1.44.18 1.16.09 1.78l-.03.19c-.01.09-.05.25-.11.48-.05.24-.12.47-.2.69-.08.21-.19.45-.34.72-.14.27-.3.49-.47.69-.18.19-.4.34-.67.48-.27.13-.55.19-.86.19s-.59-.06-.87-.19c-.26-.13-.49-.29-.67-.5-.18-.2-.34-.42-.49-.66-.15-.25-.26-.49-.34-.73-.09-.25-.16-.47-.21-.67-.06-.21-.1-.37-.12-.5zm9.2 6.24c.41.7.5 1.41.5 2.14v2.49c0 .03-.12.08-.29.13-.18.04-.42.13-.97.27-.55.12-1.1.24-1.65.34s-1.19.19-1.95.27c-.75.08-1.46.12-2.13.12-.68 0-1.39-.04-2.14-.12-.75-.07-1.4-.17-1.98-.27-.58-.11-1.08-.23-1.56-.34-.49-.11-.8-.21-1.06-.29L3 16.87v-2.49c0-.75.07-1.46.46-2.15s.81-1.25 1.5-1.68C5.66 10.12 7.19 10 8 10l1.67 1.67L9 13v3l1.02 1.08L11 16v-3l-.68-1.33L11.97 10c.77 0 2.2.07 2.9.52.71.45 1.21 1.02 1.63 1.72z";break;case"button":e="M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z";break;case"calendar-alt":e="M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z";break;case"calendar":e="M15 4h3v14H2V4h3V3c0-.83.67-1.5 1.5-1.5S8 2.17 8 3v1h4V3c0-.83.67-1.5 1.5-1.5S15 2.17 15 3v1zM6 3v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5S6 2.72 6 3zm7 0v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5s-.5.22-.5.5zm4 14V8H3v9h14zM7 16V9H5v7h2zm4 0V9H9v7h2zm4 0V9h-2v7h2z";break;case"camera":e="M6 5V3H3v2h3zm12 10V4H9L7 6H2v9h16zm-7-8c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z";break;case"carrot":e="M2 18.43c1.51 1.36 11.64-4.67 13.14-7.21.72-1.22-.13-3.01-1.52-4.44C15.2 5.73 16.59 9 17.91 8.31c.6-.32.99-1.31.7-1.92-.52-1.08-2.25-1.08-3.42-1.21.83-.2 2.82-1.05 2.86-2.25.04-.92-1.13-1.97-2.05-1.86-1.21.14-1.65 1.88-2.06 3-.05-.71-.2-2.27-.98-2.95-1.04-.91-2.29-.05-2.32 1.05-.04 1.33 2.82 2.07 1.92 3.67C11.04 4.67 9.25 4.03 8.1 4.7c-.49.31-1.05.91-1.63 1.69.89.94 2.12 2.07 3.09 2.72.2.14.26.42.11.62-.14.21-.42.26-.62.12-.99-.67-2.2-1.78-3.1-2.71-.45.67-.91 1.43-1.34 2.23.85.86 1.93 1.83 2.79 2.41.2.14.25.42.11.62-.14.21-.42.26-.63.12-.85-.58-1.86-1.48-2.71-2.32C2.4 13.69 1.1 17.63 2 18.43z";break;case"cart":e="M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z";break;case"category":e="M5 7h13v10H2V4h7l2 2H4v9h1V7z";break;case"chart-area":e="M18 18l.01-12.28c.59-.35.99-.99.99-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.47 1.48 1.14 1.8l-4.13 6.58c-.33-.24-.73-.38-1.16-.38-.84 0-1.55.51-1.85 1.24l-2.14-1.53c.09-.22.14-.46.14-.71 0-1.11-.89-2-2-2-1.1 0-2 .89-2 2 0 .73.4 1.36.98 1.71L1 18h17zM17 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM5 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5.85 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"chart-bar":e="M18 18V2h-4v16h4zm-6 0V7H8v11h4zm-6 0v-8H2v8h4z";break;case"chart-line":e="M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z";break;case"chart-pie":e="M10 10V3c3.87 0 7 3.13 7 7h-7zM9 4v7h7c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7z";break;case"clipboard":e="M11.9.39l1.4 1.4c1.61.19 3.5-.74 4.61.37s.18 3 .37 4.61l1.4 1.4c.39.39.39 1.02 0 1.41l-9.19 9.2c-.4.39-1.03.39-1.42 0L1.29 11c-.39-.39-.39-1.02 0-1.42l9.2-9.19c.39-.39 1.02-.39 1.41 0zm.58 2.25l-.58.58 4.95 4.95.58-.58c-.19-.6-.2-1.22-.15-1.82.02-.31.05-.62.09-.92.12-1 .18-1.63-.17-1.98s-.98-.29-1.98-.17c-.3.04-.61.07-.92.09-.6.05-1.22.04-1.82-.15zm4.02.93c.39.39.39 1.03 0 1.42s-1.03.39-1.42 0-.39-1.03 0-1.42 1.03-.39 1.42 0zm-6.72.36l-.71.7L15.44 11l.7-.71zM8.36 5.34l-.7.71 6.36 6.36.71-.7zM6.95 6.76l-.71.7 6.37 6.37.7-.71zM5.54 8.17l-.71.71 6.36 6.36.71-.71zM4.12 9.58l-.71.71 6.37 6.37.71-.71z";break;case"clock":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z";break;case"cloud-saved":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16h10c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5zm-6.3 5.9l-3.2-3.2 1.4-1.4 1.8 1.8 3.8-3.8 1.4 1.4-5.2 5.2z";break;case"cloud-upload":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z";break;case"cloud":e="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z";break;case"columns":e="M3 15h6V5H3v10zm8 0h6V5h-6v10z";break;case"controls-back":e="M2 10l10-6v3.6L18 4v12l-6-3.6V16z";break;case"controls-forward":e="M18 10L8 16v-3.6L2 16V4l6 3.6V4z";break;case"controls-pause":e="M5 16V4h3v12H5zm7-12h3v12h-3V4z";break;case"controls-play":e="M5 4l10 6-10 6V4z";break;case"controls-repeat":e="M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z";break;case"controls-skipback":e="M11.98 7.63l6-3.6v12l-6-3.6v3.6l-8-4.8v4.8h-2v-12h2v4.8l8-4.8v3.6z";break;case"controls-skipforward":e="M8 12.4L2 16V4l6 3.6V4l8 4.8V4h2v12h-2v-4.8L8 16v-3.6z";break;case"controls-volumeoff":e="M2 7h4l5-4v14l-5-4H2V7z";break;case"controls-volumeon":e="M2 7h4l5-4v14l-5-4H2V7zm12.69-2.46C14.82 4.59 18 5.92 18 10s-3.18 5.41-3.31 5.46c-.06.03-.13.04-.19.04-.2 0-.39-.12-.46-.31-.11-.26.02-.55.27-.65.11-.05 2.69-1.15 2.69-4.54 0-3.41-2.66-4.53-2.69-4.54-.25-.1-.38-.39-.27-.65.1-.25.39-.38.65-.27zM16 10c0 2.57-2.23 3.43-2.32 3.47-.06.02-.12.03-.18.03-.2 0-.39-.12-.47-.32-.1-.26.04-.55.29-.65.07-.02 1.68-.67 1.68-2.53s-1.61-2.51-1.68-2.53c-.25-.1-.38-.39-.29-.65.1-.25.39-.39.65-.29.09.04 2.32.9 2.32 3.47z";break;case"cover-image":e="M2.2 1h15.5c.7 0 1.3.6 1.3 1.2v11.5c0 .7-.6 1.2-1.2 1.2H2.2c-.6.1-1.2-.5-1.2-1.1V2.2C1 1.6 1.6 1 2.2 1zM17 13V3H3v10h14zm-4-4s0-5 3-5v7c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1V7c2 0 3 4 3 4s1-4 3-4 3 2 3 2zM4 17h12v2H4z";break;case"dashboard":e="M3.76 16h12.48c1.1-1.37 1.76-3.11 1.76-5 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 1.89.66 3.63 1.76 5zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 6c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5.37 5.55L12 7v6c0 1.1-.9 2-2 2s-2-.9-2-2c0-.57.24-1.08.63-1.45zM4 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm12 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 3c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1z";break;case"desktop":e="M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z";break;case"dismiss":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z";break;case"download":e="M14.01 4v6h2V2H4v8h2.01V4h8zm-2 2v6h3l-5 6-5-6h3V6h4z";break;case"edit":e="M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z";break;case"editor-aligncenter":e="M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z";break;case"editor-alignleft":e="M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z";break;case"editor-alignright":e="M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z";break;case"editor-bold":e="M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z";break;case"editor-break":e="M16 4h2v9H7v3l-5-4 5-4v3h9V4z";break;case"editor-code":e="M9 6l-4 4 4 4-1 2-6-6 6-6zm2 8l4-4-4-4 1-2 6 6-6 6z";break;case"editor-contract":e="M15.75 6.75L18 3v14l-2.25-3.75L17 12h-4v4l1.25-1.25L18 17H2l3.75-2.25L7 16v-4H3l1.25 1.25L2 17V3l2.25 3.75L3 8h4V4L5.75 5.25 2 3h16l-3.75 2.25L13 4v4h4z";break;case"editor-customchar":e="M10 5.4c1.27 0 2.24.36 2.91 1.08.66.71 1 1.76 1 3.13 0 1.28-.23 2.37-.69 3.27-.47.89-1.27 1.52-2.22 2.12v2h6v-2h-3.69c.92-.64 1.62-1.34 2.12-2.34.49-1.01.74-2.13.74-3.35 0-1.78-.55-3.19-1.65-4.22S11.92 3.54 10 3.54s-3.43.53-4.52 1.57c-1.1 1.04-1.65 2.44-1.65 4.2 0 1.21.24 2.31.73 3.33.48 1.01 1.19 1.71 2.1 2.36H3v2h6v-2c-.98-.64-1.8-1.28-2.24-2.17-.45-.89-.67-1.96-.67-3.22 0-1.37.33-2.41 1-3.13C7.75 5.76 8.72 5.4 10 5.4z";break;case"editor-expand":e="M7 8h6v4H7zm-5 5v4h4l-1.2-1.2L7 12l-3.8 2.2M14 17h4v-4l-1.2 1.2L13 12l2.2 3.8M14 3l1.3 1.3L13 8l3.8-2.2L18 7V3M6 3H2v4l1.2-1.2L7 8 4.7 4.3";break;case"editor-help":e="M17 10c0-3.87-3.14-7-7-7-3.87 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7zm-6.3 1.48H9.14v-.43c0-.38.08-.7.24-.98s.46-.57.88-.89c.41-.29.68-.53.81-.71.14-.18.2-.39.2-.62 0-.25-.09-.44-.28-.58-.19-.13-.45-.19-.79-.19-.58 0-1.25.19-2 .57l-.64-1.28c.87-.49 1.8-.74 2.77-.74.81 0 1.45.2 1.92.58.48.39.71.91.71 1.55 0 .43-.09.8-.29 1.11-.19.32-.57.67-1.11 1.06-.38.28-.61.49-.71.63-.1.15-.15.34-.15.57v.35zm-1.47 2.74c-.18-.17-.27-.42-.27-.73 0-.33.08-.58.26-.75s.43-.25.77-.25c.32 0 .57.09.75.26s.27.42.27.74c0 .3-.09.55-.27.72-.18.18-.43.27-.75.27-.33 0-.58-.09-.76-.26z";break;case"editor-indent":e="M3 5V3h9v2H3zm10-1V3h4v1h-4zm0 3h2V5l4 3.5-4 3.5v-2h-2V7zM3 8V6h9v2H3zm2 3V9h7v2H5zm-2 3v-2h9v2H3zm10 0v-1h4v1h-4zm-4 3v-2h3v2H9z";break;case"editor-insertmore":e="M17 7V3H3v4h14zM6 11V9H3v2h3zm6 0V9H8v2h4zm5 0V9h-3v2h3zm0 6v-4H3v4h14z";break;case"editor-italic":e="M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z";break;case"editor-justify":e="M2 3h16v2H2V3zm0 4h16v2H2V7zm0 4h16v2H2v-2zm0 4h16v2H2v-2z";break;case"editor-kitchensink":e="M19 2v6H1V2h18zm-1 5V3H2v4h16zM5 4v2H3V4h2zm3 0v2H6V4h2zm3 0v2H9V4h2zm3 0v2h-2V4h2zm3 0v2h-2V4h2zm2 5v9H1V9h18zm-1 8v-7H2v7h16zM5 11v2H3v-2h2zm3 0v2H6v-2h2zm3 0v2H9v-2h2zm6 0v2h-5v-2h5zm-6 3v2H3v-2h8zm3 0v2h-2v-2h2zm3 0v2h-2v-2h2z";break;case"editor-ltr":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z";break;case"editor-ol-rtl":e="M15.025 8.75a1.048 1.048 0 0 1 .45-.1.507.507 0 0 1 .35.11.455.455 0 0 1 .13.36.803.803 0 0 1-.06.3 1.448 1.448 0 0 1-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76v-.7h-1.72v-.04l.51-.48a7.276 7.276 0 0 0 .7-.71 1.75 1.75 0 0 0 .3-.49 1.254 1.254 0 0 0 .1-.51.968.968 0 0 0-.16-.56 1.007 1.007 0 0 0-.44-.37 1.512 1.512 0 0 0-.65-.14 1.98 1.98 0 0 0-.51.06 1.9 1.9 0 0 0-.42.15 3.67 3.67 0 0 0-.48.35l.45.54a2.505 2.505 0 0 1 .45-.3zM16.695 15.29a1.29 1.29 0 0 0-.74-.3v-.02a1.203 1.203 0 0 0 .65-.37.973.973 0 0 0 .23-.65.81.81 0 0 0-.37-.71 1.72 1.72 0 0 0-1-.26 2.185 2.185 0 0 0-1.33.4l.4.6a1.79 1.79 0 0 1 .46-.23 1.18 1.18 0 0 1 .41-.07c.38 0 .58.15.58.46a.447.447 0 0 1-.22.43 1.543 1.543 0 0 1-.7.12h-.31v.66h.31a1.764 1.764 0 0 1 .75.12.433.433 0 0 1 .23.41.55.55 0 0 1-.2.47 1.084 1.084 0 0 1-.63.15 2.24 2.24 0 0 1-.57-.08 2.671 2.671 0 0 1-.52-.2v.74a2.923 2.923 0 0 0 1.18.22 1.948 1.948 0 0 0 1.22-.33 1.077 1.077 0 0 0 .43-.92.836.836 0 0 0-.26-.64zM15.005 4.17c.06-.05.16-.14.3-.28l-.02.42V7h.84V3h-.69l-1.29 1.03.4.51zM4.02 5h9v1h-9zM4.02 10h9v1h-9zM4.02 15h9v1h-9z";break;case"editor-ol":e="M6 7V3h-.69L4.02 4.03l.4.51.46-.37c.06-.05.16-.14.3-.28l-.02.42V7H6zm2-2h9v1H8V5zm-1.23 6.95v-.7H5.05v-.04l.51-.48c.33-.31.57-.54.7-.71.14-.17.24-.33.3-.49.07-.16.1-.33.1-.51 0-.21-.05-.4-.16-.56-.1-.16-.25-.28-.44-.37s-.41-.14-.65-.14c-.19 0-.36.02-.51.06-.15.03-.29.09-.42.15-.12.07-.29.19-.48.35l.45.54c.16-.13.31-.23.45-.3.15-.07.3-.1.45-.1.14 0 .26.03.35.11s.13.2.13.36c0 .1-.02.2-.06.3s-.1.21-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76zM8 10h9v1H8v-1zm-1.29 3.95c0-.3-.12-.54-.37-.71-.24-.17-.58-.26-1-.26-.52 0-.96.13-1.33.4l.4.6c.17-.11.32-.19.46-.23.14-.05.27-.07.41-.07.38 0 .58.15.58.46 0 .2-.07.35-.22.43s-.38.12-.7.12h-.31v.66h.31c.34 0 .59.04.75.12.15.08.23.22.23.41 0 .22-.07.37-.2.47-.14.1-.35.15-.63.15-.19 0-.38-.03-.57-.08s-.36-.12-.52-.2v.74c.34.15.74.22 1.18.22.53 0 .94-.11 1.22-.33.29-.22.43-.52.43-.92 0-.27-.09-.48-.26-.64s-.42-.26-.74-.3v-.02c.27-.06.49-.19.65-.37.15-.18.23-.39.23-.65zM8 15h9v1H8v-1z";break;case"editor-outdent":e="M7 4V3H3v1h4zm10 1V3H8v2h9zM7 7H5V5L1 8.5 5 12v-2h2V7zm10 1V6H8v2h9zm-2 3V9H8v2h7zm2 3v-2H8v2h9zM7 14v-1H3v1h4zm4 3v-2H8v2h3z";break;case"editor-paragraph":e="M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71C15.5 2.1 15.27 2 15 2z";break;case"editor-paste-text":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.44 1-1 0-.55-.45-1-1-1s-1 .45-1 1c0 .56.45 1 1 1zm5.45-1H17c.55 0 1 .45 1 1v12c0 .56-.45 1-1 1H3c-.55 0-1-.44-1-1V5c0-.55.45-1 1-1h1.55L4 4.63V7h12V4.63zM14 11V9H6v2h3v5h2v-5h3z";break;case"editor-paste-word":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm8 12V5c0-.55-.45-1-1-1h-1.54l.54.63V7H4V4.62L4.55 4H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-3-8l-2 7h-2l-1-5-1 5H6.92L5 9h2l1 5 1-5h2l1 5 1-5h2z";break;case"editor-quote":e="M9.49 13.22c0-.74-.2-1.38-.61-1.9-.62-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L7.88 4c-2.73 1.3-5.42 4.28-4.96 8.05C3.21 14.43 4.59 16 6.54 16c.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03zm8.05 0c0-.74-.2-1.38-.61-1.9-.63-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L15.93 4c-2.73 1.3-5.41 4.28-4.95 8.05.29 2.38 1.66 3.95 3.61 3.95.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03z";break;case"editor-removeformatting":e="M14.29 4.59l1.1 1.11c.41.4.61.94.61 1.47v2.12c0 .53-.2 1.07-.61 1.47l-6.63 6.63c-.4.41-.94.61-1.47.61s-1.07-.2-1.47-.61l-1.11-1.1-1.1-1.11c-.41-.4-.61-.94-.61-1.47v-2.12c0-.54.2-1.07.61-1.48l6.63-6.62c.4-.41.94-.61 1.47-.61s1.06.2 1.47.61zm-6.21 9.7l6.42-6.42c.39-.39.39-1.03 0-1.43L12.36 4.3c-.19-.19-.45-.29-.72-.29s-.52.1-.71.29l-6.42 6.42c-.39.4-.39 1.04 0 1.43l2.14 2.14c.38.38 1.04.38 1.43 0z";break;case"editor-rtl":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z";break;case"editor-spellcheck":e="M15.84 2.76c.25 0 .49.04.71.11.23.07.44.16.64.25l.35-.81c-.52-.26-1.08-.39-1.69-.39-.58 0-1.09.13-1.52.37-.43.25-.76.61-.99 1.08C13.11 3.83 13 4.38 13 5c0 .99.23 1.75.7 2.28s1.15.79 2.02.79c.6 0 1.13-.09 1.6-.26v-.84c-.26.08-.51.14-.74.19-.24.05-.49.08-.74.08-.59 0-1.04-.19-1.34-.57-.32-.37-.47-.93-.47-1.66 0-.7.16-1.25.48-1.65.33-.4.77-.6 1.33-.6zM6.5 8h1.04L5.3 2H4.24L2 8h1.03l.58-1.66H5.9zM8 2v6h2.17c.67 0 1.19-.15 1.57-.46.38-.3.56-.72.56-1.26 0-.4-.1-.72-.3-.95-.19-.24-.5-.39-.93-.47v-.04c.35-.06.6-.21.78-.44.18-.24.28-.53.28-.88 0-.52-.19-.9-.56-1.14-.36-.24-.96-.36-1.79-.36H8zm.98 2.48V2.82h.85c.44 0 .77.06.97.19.21.12.31.33.31.61 0 .31-.1.53-.29.66-.18.13-.48.2-.89.2h-.95zM5.64 5.5H3.9l.54-1.56c.14-.4.25-.76.32-1.1l.15.52c.07.23.13.4.17.51zm3.34-.23h.99c.44 0 .76.08.98.23.21.15.32.38.32.69 0 .34-.11.59-.32.75s-.52.24-.93.24H8.98V5.27zM4 13l5 5 9-8-1-1-8 6-4-3z";break;case"editor-strikethrough":e="M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z";break;case"editor-table":e="M18 17V3H2v14h16zM16 7H4V5h12v2zm-7 4H4V9h5v2zm7 0h-5V9h5v2zm-7 4H4v-2h5v2zm7 0h-5v-2h5v2z";break;case"editor-textcolor":e="M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z";break;case"editor-ul":e="M5.5 7C4.67 7 4 6.33 4 5.5 4 4.68 4.67 4 5.5 4 6.32 4 7 4.68 7 5.5 7 6.33 6.32 7 5.5 7zM8 5h9v1H8V5zm-2.5 7c-.83 0-1.5-.67-1.5-1.5C4 9.68 4.67 9 5.5 9c.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 10h9v1H8v-1zm-2.5 7c-.83 0-1.5-.67-1.5-1.5 0-.82.67-1.5 1.5-1.5.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 15h9v1H8v-1z";break;case"editor-underline":e="M14 5h-2v5.71c0 1.99-1.12 2.98-2.45 2.98-1.32 0-2.55-1-2.55-2.96V5H5v5.87c0 1.91 1 4.54 4.48 4.54 3.49 0 4.52-2.58 4.52-4.5V5zm0 13v-2H5v2h9z";break;case"editor-unlink":e="M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z";break;case"editor-video":e="M16 2h-3v1H7V2H4v15h3v-1h6v1h3V2zM6 3v1H5V3h1zm9 0v1h-1V3h1zm-2 1v5H7V4h6zM6 5v1H5V5h1zm9 0v1h-1V5h1zM6 7v1H5V7h1zm9 0v1h-1V7h1zM6 9v1H5V9h1zm9 0v1h-1V9h1zm-2 1v5H7v-5h6zm-7 1v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1z";break;case"ellipsis":e="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z";break;case"email-alt":e="M19 14.5v-9c0-.83-.67-1.5-1.5-1.5H3.49c-.83 0-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5H17.5c.83 0 1.5-.67 1.5-1.5zm-1.31-9.11c.33.33.15.67-.03.84L13.6 9.95l3.9 4.06c.12.14.2.36.06.51-.13.16-.43.15-.56.05l-4.37-3.73-2.14 1.95-2.13-1.95-4.37 3.73c-.13.1-.43.11-.56-.05-.14-.15-.06-.37.06-.51l3.9-4.06-4.06-3.72c-.18-.17-.36-.51-.03-.84s.67-.17.95.07l6.24 5.04 6.25-5.04c.28-.24.62-.4.95-.07z";break;case"email-alt2":e="M18.01 11.18V2.51c0-1.19-.9-1.81-2-1.37L4 5.91c-1.1.44-2 1.77-2 2.97v8.66c0 1.2.9 1.81 2 1.37l12.01-4.77c1.1-.44 2-1.76 2-2.96zm-1.43-7.46l-6.04 9.33-6.65-4.6c-.1-.07-.36-.32-.17-.64.21-.36.65-.21.65-.21l6.3 2.32s4.83-6.34 5.11-6.7c.13-.17.43-.34.73-.13.29.2.16.49.07.63z";break;case"email":e="M3.87 4h13.25C18.37 4 19 4.59 19 5.79v8.42c0 1.19-.63 1.79-1.88 1.79H3.87c-1.25 0-1.88-.6-1.88-1.79V5.79c0-1.2.63-1.79 1.88-1.79zm6.62 8.6l6.74-5.53c.24-.2.43-.66.13-1.07-.29-.41-.82-.42-1.17-.17l-5.7 3.86L4.8 5.83c-.35-.25-.88-.24-1.17.17-.3.41-.11.87.13 1.07z";break;case"embed-audio":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 3H7v4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.4 0 .7.1 1 .3V5h4v2zm4 3.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-generic":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3 6.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-photo":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 8H3V6h7v6zm4-1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3zm-6-4V8.5L7.2 10 6 9.2 4 11h5zM4.6 8.6c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z";break;case"embed-post":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.6 9l-.4.3c-.4.4-.5 1.1-.2 1.6l-.8.8-1.1-1.1-1.3 1.3c-.2.2-1.6 1.3-1.8 1.1-.2-.2.9-1.6 1.1-1.8l1.3-1.3-1.1-1.1.8-.8c.5.3 1.2.3 1.6-.2l.3-.3c.5-.5.5-1.2.2-1.7L8 5l3 2.9-.8.8c-.5-.2-1.2-.2-1.6.3zm5.4 1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-video":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 6.5L8 9.1V11H3V6h5v1.8l2-1.3v4zm4 0L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"excerpt-view":e="M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z";break;case"exit":e="M13 3v2h2v10h-2v2h4V3h-4zm0 8V9H5.4l4.3-4.3-1.4-1.4L1.6 10l6.7 6.7 1.4-1.4L5.4 11H13z";break;case"external":e="M9 3h8v8l-2-1V6.92l-5.6 5.59-1.41-1.41L14.08 5H10zm3 12v-3l2-2v7H3V6h8L9 8H5v7h7z";break;case"facebook-alt":e="M8.46 18h2.93v-7.3h2.45l.37-2.84h-2.82V6.04c0-.82.23-1.38 1.41-1.38h1.51V2.11c-.26-.03-1.15-.11-2.19-.11-2.18 0-3.66 1.33-3.66 3.76v2.1H6v2.84h2.46V18z";break;case"facebook":e="M2.89 2h14.23c.49 0 .88.39.88.88v14.24c0 .48-.39.88-.88.88h-4.08v-6.2h2.08l.31-2.41h-2.39V7.85c0-.7.2-1.18 1.2-1.18h1.28V4.51c-.22-.03-.98-.09-1.86-.09-1.85 0-3.11 1.12-3.11 3.19v1.78H8.46v2.41h2.09V18H2.89c-.49 0-.89-.4-.89-.88V2.88c0-.49.4-.88.89-.88z";break;case"feedback":e="M2 2h16c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm15 14V7H3v9h14zM4 8v1h3V8H4zm4 0v3h8V8H8zm-4 4v1h3v-1H4zm4 0v3h8v-3H8z";break;case"filter":e="M3 4.5v-2s3.34-1 7-1 7 1 7 1v2l-5 7.03v6.97s-1.22-.09-2.25-.59S8 16.5 8 16.5v-4.97z";break;case"flag":e="M5 18V3H3v15h2zm1-6V4c3-1 7 1 11 0v8c-3 1.27-8-1-11 0z";break;case"format-aside":e="M1 1h18v12l-6 6H1V1zm3 3v1h12V4H4zm0 4v1h12V8H4zm6 5v-1H4v1h6zm2 4l5-5h-5v5z";break;case"format-audio":e="M6.99 3.08l11.02-2c.55-.08.99.45.99 1V14.5c0 1.94-1.57 3.5-3.5 3.5S12 16.44 12 14.5c0-1.93 1.57-3.5 3.5-3.5.54 0 1.04.14 1.5.35V5.08l-9 2V16c-.24 1.7-1.74 3-3.5 3C2.57 19 1 17.44 1 15.5 1 13.57 2.57 12 4.5 12c.54 0 1.04.14 1.5.35V4.08c0-.55.44-.91.99-1z";break;case"format-chat":e="M11 6h-.82C9.07 6 8 7.2 8 8.16V10l-3 3v-3H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v3zm0 1h6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2h-2v3l-3-3h-1c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2z";break;case"format-gallery":e="M16 4h1.96c.57 0 1.04.47 1.04 1.04v12.92c0 .57-.47 1.04-1.04 1.04H5.04C4.47 19 4 18.53 4 17.96V16H2.04C1.47 16 1 15.53 1 14.96V2.04C1 1.47 1.47 1 2.04 1h12.92c.57 0 1.04.47 1.04 1.04V4zM3 14h11V3H3v11zm5-8.5C8 4.67 7.33 4 6.5 4S5 4.67 5 5.5 5.67 7 6.5 7 8 6.33 8 5.5zm2 4.5s1-5 3-5v8H4V7c2 0 2 3 2 3s.33-2 2-2 2 2 2 2zm7 7V6h-1v8.96c0 .57-.47 1.04-1.04 1.04H6v1h11z";break;case"format-image":e="M2.25 1h15.5c.69 0 1.25.56 1.25 1.25v15.5c0 .69-.56 1.25-1.25 1.25H2.25C1.56 19 1 18.44 1 17.75V2.25C1 1.56 1.56 1 2.25 1zM17 17V3H3v14h14zM10 6c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm3 5s0-6 3-6v10c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V8c2 0 3 4 3 4s1-3 3-3 3 2 3 2z";break;case"format-quote":e="M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z";break;case"format-status":e="M10 1c7 0 9 2.91 9 6.5S17 14 10 14s-9-2.91-9-6.5S3 1 10 1zM5.5 9C6.33 9 7 8.33 7 7.5S6.33 6 5.5 6 4 6.67 4 7.5 4.67 9 5.5 9zM10 9c.83 0 1.5-.67 1.5-1.5S10.83 6 10 6s-1.5.67-1.5 1.5S9.17 9 10 9zm4.5 0c.83 0 1.5-.67 1.5-1.5S15.33 6 14.5 6 13 6.67 13 7.5 13.67 9 14.5 9zM6 14.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"format-video":e="M2 1h16c.55 0 1 .45 1 1v16l-18-.02V2c0-.55.45-1 1-1zm4 1L4 5h1l2-3H6zm4 0H9L7 5h1zm3 0h-1l-2 3h1zm3 0h-1l-2 3h1zm1 14V6H3v10h14zM8 7l6 4-6 4V7z";break;case"forms":e="M2 2h7v7H2V2zm9 0v7h7V2h-7zM5.5 4.5L7 3H4zM12 8V3h5v5h-5zM4.5 5.5L3 4v3zM8 4L6.5 5.5 8 7V4zM5.5 6.5L4 8h3zM9 18v-7H2v7h7zm9 0h-7v-7h7v7zM8 12v5H3v-5h5zm6.5 1.5L16 12h-3zM12 16l1.5-1.5L12 13v3zm3.5-1.5L17 16v-3zm-1 1L13 17h3z";break;case"googleplus":e="M6.73 10h5.4c.05.29.09.57.09.95 0 3.27-2.19 5.6-5.49 5.6-3.17 0-5.73-2.57-5.73-5.73 0-3.17 2.56-5.73 5.73-5.73 1.54 0 2.84.57 3.83 1.5l-1.55 1.5c-.43-.41-1.17-.89-2.28-.89-1.96 0-3.55 1.62-3.55 3.62 0 1.99 1.59 3.61 3.55 3.61 2.26 0 3.11-1.62 3.24-2.47H6.73V10zM19 10v1.64h-1.64v1.63h-1.63v-1.63h-1.64V10h1.64V8.36h1.63V10H19z";break;case"grid-view":e="M2 1h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1zm7.01 7.99v-6H3v6h6.01zm8 0v-6h-6v6h6zm-8 8.01v-6H3v6h6.01zm8 0v-6h-6v6h6z";break;case"groups":e="M8.03 4.46c-.29 1.28.55 3.46 1.97 3.46 1.41 0 2.25-2.18 1.96-3.46-.22-.98-1.08-1.63-1.96-1.63-.89 0-1.74.65-1.97 1.63zm-4.13.9c-.25 1.08.47 2.93 1.67 2.93s1.92-1.85 1.67-2.93c-.19-.83-.92-1.39-1.67-1.39s-1.48.56-1.67 1.39zm8.86 0c-.25 1.08.47 2.93 1.66 2.93 1.2 0 1.92-1.85 1.67-2.93-.19-.83-.92-1.39-1.67-1.39-.74 0-1.47.56-1.66 1.39zm-.59 11.43l1.25-4.3C14.2 10 12.71 8.47 10 8.47c-2.72 0-4.21 1.53-3.44 4.02l1.26 4.3C8.05 17.51 9 18 10 18c.98 0 1.94-.49 2.17-1.21zm-6.1-7.63c-.49.67-.96 1.83-.42 3.59l1.12 3.79c-.34.2-.77.31-1.2.31-.85 0-1.65-.41-1.85-1.03l-1.07-3.65c-.65-2.11.61-3.4 2.92-3.4.27 0 .54.02.79.06-.1.1-.2.22-.29.33zm8.35-.39c2.31 0 3.58 1.29 2.92 3.4l-1.07 3.65c-.2.62-1 1.03-1.85 1.03-.43 0-.86-.11-1.2-.31l1.11-3.77c.55-1.78.08-2.94-.42-3.61-.08-.11-.18-.23-.28-.33.25-.04.51-.06.79-.06z";break;case"hammer":e="M17.7 6.32l1.41 1.42-3.47 3.41-1.42-1.42.84-.82c-.32-.76-.81-1.57-1.51-2.31l-4.61 6.59-5.26 4.7c-.39.39-1.02.39-1.42 0l-1.2-1.21c-.39-.39-.39-1.02 0-1.41l10.97-9.92c-1.37-.86-3.21-1.46-5.67-1.48 2.7-.82 4.95-.93 6.58-.3 1.7.66 2.82 2.2 3.91 3.58z";break;case"heading":e="M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4";break;case"heart":e="M10 17.12c3.33-1.4 5.74-3.79 7.04-6.21 1.28-2.41 1.46-4.81.32-6.25-1.03-1.29-2.37-1.78-3.73-1.74s-2.68.63-3.63 1.46c-.95-.83-2.27-1.42-3.63-1.46s-2.7.45-3.73 1.74c-1.14 1.44-.96 3.84.34 6.25 1.28 2.42 3.69 4.81 7.02 6.21z";break;case"hidden":e="M17.2 3.3l.16.17c.39.39.39 1.02 0 1.41L4.55 17.7c-.39.39-1.03.39-1.41 0l-.17-.17c-.39-.39-.39-1.02 0-1.41l1.59-1.6c-1.57-1-2.76-2.3-3.56-3.93.81-1.65 2.03-2.98 3.64-3.99S8.04 5.09 10 5.09c1.2 0 2.33.21 3.4.6l2.38-2.39c.39-.39 1.03-.39 1.42 0zm-7.09 4.01c-.23.25-.34.54-.34.88 0 .31.12.58.31.81l1.8-1.79c-.13-.12-.28-.21-.45-.26-.11-.01-.28-.03-.49-.04-.33.03-.6.16-.83.4zM2.4 10.59c.69 1.23 1.71 2.25 3.05 3.05l1.28-1.28c-.51-.69-.77-1.47-.77-2.36 0-1.06.36-1.98 1.09-2.76-1.04.27-1.96.7-2.76 1.26-.8.58-1.43 1.27-1.89 2.09zm13.22-2.13l.96-.96c1.02.86 1.83 1.89 2.42 3.09-.81 1.65-2.03 2.98-3.64 3.99s-3.4 1.51-5.36 1.51c-.63 0-1.24-.07-1.83-.18l1.07-1.07c.25.02.5.05.76.05 1.63 0 3.13-.4 4.5-1.21s2.4-1.84 3.1-3.09c-.46-.82-1.09-1.51-1.89-2.09-.03-.01-.06-.03-.09-.04zm-5.58 5.58l4-4c-.01 1.1-.41 2.04-1.18 2.81-.78.78-1.72 1.18-2.82 1.19z";break;case"html":e="M4 16v-2H2v2H1v-5h1v2h2v-2h1v5H4zM7 16v-4H5.6v-1h3.7v1H8v4H7zM10 16v-5h1l1.4 3.4h.1L14 11h1v5h-1v-3.1h-.1l-1.1 2.5h-.6l-1.1-2.5H11V16h-1zM19 16h-3v-5h1v4h2v1zM9.4 4.2L7.1 6.5l2.3 2.3-.6 1.2-3.5-3.5L8.8 3l.6 1.2zm1.2 4.6l2.3-2.3-2.3-2.3.6-1.2 3.5 3.5-3.5 3.5-.6-1.2z";break;case"id-alt":e="M18 18H2V2h16v16zM8.05 7.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L8.95 6c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C8.23 4.1 7.95 4 7.6 4c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM16 5V4h-5v1h5zm0 2V6h-5v1h5zM7.62 8.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM16 9V8h-3v1h3zm0 2v-1h-3v1h3zm0 3v-1H4v1h12zm0 2v-1H4v1h12z";break;case"id":e="M18 16H2V4h16v12zM7.05 8.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L7.95 7c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C7.23 5.1 6.95 5 6.6 5c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM17 9V5h-5v4h5zm-10.38.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM17 11v-1h-5v1h5zm0 2v-1h-5v1h5zm0 2v-1H3v1h14z";break;case"image-crop":e="M19 12v3h-4v4h-3v-4H4V7H0V4h4V0h3v4h7l3-3 1 1-3 3v7h4zm-8-5H7v4zm-3 5h4V8z";break;case"image-filter":e="M14 5.87c0-2.2-1.79-4-4-4s-4 1.8-4 4c0 2.21 1.79 4 4 4s4-1.79 4-4zM3.24 10.66c-1.92 1.1-2.57 3.55-1.47 5.46 1.11 1.92 3.55 2.57 5.47 1.47 1.91-1.11 2.57-3.55 1.46-5.47-1.1-1.91-3.55-2.56-5.46-1.46zm9.52 6.93c1.92 1.1 4.36.45 5.47-1.46 1.1-1.92.45-4.36-1.47-5.47-1.91-1.1-4.36-.45-5.46 1.46-1.11 1.92-.45 4.36 1.46 5.47z";break;case"image-flip-horizontal":e="M19 3v14h-8v3H9v-3H1V3h8V0h2v3h8zm-8.5 14V3h-1v14h1zM7 6.5L3 10l4 3.5v-7zM17 10l-4-3.5v7z";break;case"image-flip-vertical":e="M20 9v2h-3v8H3v-8H0V9h3V1h14v8h3zM6.5 7h7L10 3zM17 9.5H3v1h14v-1zM13.5 13h-7l3.5 4z";break;case"image-rotate-left":e="M7 5H5.05c0-1.74.85-2.9 2.95-2.9V0C4.85 0 2.96 2.11 2.96 5H1.18L3.8 8.39zm13-4v14h-5v5H1V10h9V1h10zm-2 2h-6v7h3v3h3V3zm-5 9H3v6h10v-6z";break;case"image-rotate-right":e="M15.95 5H14l3.2 3.39L19.82 5h-1.78c0-2.89-1.89-5-5.04-5v2.1c2.1 0 2.95 1.16 2.95 2.9zM1 1h10v9h9v10H6v-5H1V1zm2 2v10h3v-3h3V3H3zm5 9v6h10v-6H8z";break;case"image-rotate":e="M10.25 1.02c5.1 0 8.75 4.04 8.75 9s-3.65 9-8.75 9c-3.2 0-6.02-1.59-7.68-3.99l2.59-1.52c1.1 1.5 2.86 2.51 4.84 2.51 3.3 0 6-2.79 6-6s-2.7-6-6-6c-1.97 0-3.72 1-4.82 2.49L7 8.02l-6 2v-7L2.89 4.6c1.69-2.17 4.36-3.58 7.36-3.58z";break;case"images-alt":e="M4 15v-3H2V2h12v3h2v3h2v10H6v-3H4zm7-12c-1.1 0-2 .9-2 2h4c0-1.1-.89-2-2-2zm-7 8V6H3v5h1zm7-3h4c0-1.1-.89-2-2-2-1.1 0-2 .9-2 2zm-5 6V9H5v5h1zm9-1c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2s-2 .9-2 2c0 1.11.9 2 2 2zm2 4v-2c-5 0-5-3-10-3v5h10z";break;case"images-alt2":e="M5 3h14v11h-2v2h-2v2H1V7h2V5h2V3zm13 10V4H6v9h12zm-3-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm1 6v-1H5V6H4v9h12zM7 6l10 6H7V6zm7 11v-1H3V8H2v9h12z";break;case"index-card":e="M1 3.17V18h18V4H8v-.83c0-.32-.12-.6-.35-.83S7.14 2 6.82 2H2.18c-.33 0-.6.11-.83.34-.24.23-.35.51-.35.83zM10 6v2H3V6h7zm7 0v10h-5V6h5zm-7 4v2H3v-2h7zm0 4v2H3v-2h7z";break;case"info-outline":e="M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z";break;case"info":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z";break;case"insert-after":e="M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z";break;case"insert-before":e="M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z";break;case"insert":e="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z";break;case"instagram":e="M12.67 10A2.67 2.67 0 1 0 10 12.67 2.68 2.68 0 0 0 12.67 10zm1.43 0A4.1 4.1 0 1 1 10 5.9a4.09 4.09 0 0 1 4.1 4.1zm1.13-4.27a1 1 0 1 1-1-1 1 1 0 0 1 1 1zM10 3.44c-1.17 0-3.67-.1-4.72.32a2.67 2.67 0 0 0-1.52 1.52c-.42 1-.32 3.55-.32 4.72s-.1 3.67.32 4.72a2.74 2.74 0 0 0 1.52 1.52c1 .42 3.55.32 4.72.32s3.67.1 4.72-.32a2.83 2.83 0 0 0 1.52-1.52c.42-1.05.32-3.55.32-4.72s.1-3.67-.32-4.72a2.74 2.74 0 0 0-1.52-1.52c-1.05-.42-3.55-.32-4.72-.32zM18 10c0 1.1 0 2.2-.05 3.3a4.84 4.84 0 0 1-1.29 3.36A4.8 4.8 0 0 1 13.3 18H6.7a4.84 4.84 0 0 1-3.36-1.29 4.84 4.84 0 0 1-1.29-3.41C2 12.2 2 11.1 2 10V6.7a4.84 4.84 0 0 1 1.34-3.36A4.8 4.8 0 0 1 6.7 2.05C7.8 2 8.9 2 10 2h3.3a4.84 4.84 0 0 1 3.36 1.29A4.8 4.8 0 0 1 18 6.7V10z";break;case"keyboard-hide":e="M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z";break;case"laptop":e="M3 3h14c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zm13 2H4v8h12V5zm-3 1H5v4zm6 11v-1H1v1c0 .6.5 1 1.1 1h15.8c.6 0 1.1-.4 1.1-1z";break;case"layout":e="M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z";break;case"leftright":e="M3 10.03L9 6v8zM11 6l6 4.03L11 14V6z";break;case"lightbulb":e="M10 1c3.11 0 5.63 2.52 5.63 5.62 0 1.84-2.03 4.58-2.03 4.58-.33.44-.6 1.25-.6 1.8v1c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-1c0-.55-.27-1.36-.6-1.8 0 0-2.02-2.74-2.02-4.58C4.38 3.52 6.89 1 10 1zM7 16.87V16h6v.87c0 .62-.13 1.13-.75 1.13H12c0 .62-.4 1-1.02 1h-2c-.61 0-.98-.38-.98-1h-.25c-.62 0-.75-.51-.75-1.13z";break;case"list-view":e="M2 19h16c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V3h11zM4 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V7h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11zM4 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11z";break;case"location-alt":e="M13 13.14l1.17-5.94c.79-.43 1.33-1.25 1.33-2.2 0-1.38-1.12-2.5-2.5-2.5S10.5 3.62 10.5 5c0 .95.54 1.77 1.33 2.2zm0-9.64c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm1.72 4.8L18 6.97v9L13.12 18 7 15.97l-5 2v-9l5-2 4.27 1.41 1.73 7.3z";break;case"location":e="M10 2C6.69 2 4 4.69 4 8c0 2.02 1.17 3.71 2.53 4.89.43.37 1.18.96 1.85 1.83.74.97 1.41 2.01 1.62 2.71.21-.7.88-1.74 1.62-2.71.67-.87 1.42-1.46 1.85-1.83C14.83 11.71 16 10.02 16 8c0-3.31-2.69-6-6-6zm0 2.56c1.9 0 3.44 1.54 3.44 3.44S11.9 11.44 10 11.44 6.56 9.9 6.56 8 8.1 4.56 10 4.56z";break;case"lock":e="M14 9h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h1V6c0-2.21 1.79-4 4-4s4 1.79 4 4v3zm-2 0V6c0-1.1-.9-2-2-2s-2 .9-2 2v3h4zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"marker":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z";break;case"media-archive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zM8 3.5v2l1.8-1zM11 5L9.2 6 11 7V5zM8 6.5v2l1.8-1zM11 8L9.2 9l1.8 1V8zM8 9.5v2l1.8-1zm3 1.5l-1.8 1 1.8 1v-2zm-1.5 6c.83 0 1.62-.72 1.5-1.63-.05-.38-.49-1.61-.49-1.61l-1.99-1.1s-.45 1.95-.52 2.71c-.07.77.67 1.63 1.5 1.63zm0-2.39c.42 0 .76.34.76.76 0 .43-.34.77-.76.77s-.76-.34-.76-.77c0-.42.34-.76.76-.76z";break;case"media-audio":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm1 7.26V8.09c0-.11-.04-.21-.12-.29-.07-.08-.16-.11-.27-.1 0 0-3.97.71-4.25.78C8.07 8.54 8 8.8 8 9v3.37c-.2-.09-.42-.07-.6-.07-.38 0-.7.13-.96.39-.26.27-.4.58-.4.96 0 .37.14.69.4.95.26.27.58.4.96.4.34 0 .7-.04.96-.26.26-.23.64-.65.64-1.12V10.3l3-.6V12c-.67-.2-1.17.04-1.44.31-.26.26-.39.58-.39.95 0 .38.13.69.39.96.27.26.71.39 1.08.39.38 0 .7-.13.96-.39.26-.27.4-.58.4-.96z";break;case"media-code":e="M12 2l4 4v12H4V2h8zM9 13l-2-2 2-2-1-1-3 3 3 3zm3 1l3-3-3-3-1 1 2 2-2 2z";break;case"media-default":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3z";break;case"media-document":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zM5 9v1h4V9H5zm10 3V9h-5v3h5zM5 11v1h4v-1H5zm10 3v-1H5v1h10zm-3 2v-1H5v1h7z";break;case"media-interactive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm2 8V8H6v6h3l-1 2h1l1-2 1 2h1l-1-2h3zm-6-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-2v2h-3V9h3zm0 3v1H7v-1h6z";break;case"media-spreadsheet":e="M12 2l4 4v12H4V2h8zm-1 4V3H5v3h6zM8 8V7H5v1h3zm3 0V7H9v1h2zm4 0V7h-3v1h3zm-7 2V9H5v1h3zm3 0V9H9v1h2zm4 0V9h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2z";break;case"media-text":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zm0 2V9H5v1h10zm0 2v-1H5v1h10zm-4 2v-1H5v1h6z";break;case"media-video":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm-1 8v-3c0-.27-.1-.51-.29-.71-.2-.19-.44-.29-.71-.29H7c-.27 0-.51.1-.71.29-.19.2-.29.44-.29.71v3c0 .27.1.51.29.71.2.19.44.29.71.29h3c.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71zm3 1v-5l-2 2v1z";break;case"megaphone":e="M18.15 5.94c.46 1.62.38 3.22-.02 4.48-.42 1.28-1.26 2.18-2.3 2.48-.16.06-.26.06-.4.06-.06.02-.12.02-.18.02-.06.02-.14.02-.22.02h-6.8l2.22 5.5c.02.14-.06.26-.14.34-.08.1-.24.16-.34.16H6.95c-.1 0-.26-.06-.34-.16-.08-.08-.16-.2-.14-.34l-1-5.5H4.25l-.02-.02c-.5.06-1.08-.18-1.54-.62s-.88-1.08-1.06-1.88c-.24-.8-.2-1.56-.02-2.2.18-.62.58-1.08 1.06-1.3l.02-.02 9-5.4c.1-.06.18-.1.24-.16.06-.04.14-.08.24-.12.16-.08.28-.12.5-.18 1.04-.3 2.24.1 3.22.98s1.84 2.24 2.26 3.86zm-2.58 5.98h-.02c.4-.1.74-.34 1.04-.7.58-.7.86-1.76.86-3.04 0-.64-.1-1.3-.28-1.98-.34-1.36-1.02-2.5-1.78-3.24s-1.68-1.1-2.46-.88c-.82.22-1.4.96-1.7 2-.32 1.04-.28 2.36.06 3.72.38 1.36 1 2.5 1.8 3.24.78.74 1.62 1.1 2.48.88zm-2.54-7.08c.22-.04.42-.02.62.04.38.16.76.48 1.02 1s.42 1.2.42 1.78c0 .3-.04.56-.12.8-.18.48-.44.84-.86.94-.34.1-.8-.06-1.14-.4s-.64-.86-.78-1.5c-.18-.62-.12-1.24.02-1.72s.48-.84.82-.94z";break;case"menu-alt":e="M3 4h14v2H3V4zm0 5h14v2H3V9zm0 5h14v2H3v-2z";break;case"menu":e="M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z";break;case"microphone":e="M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z";break;case"migrate":e="M4 6h6V4H2v12.01h8V14H4V6zm2 2h6V5l6 5-6 5v-3H6V8z";break;case"minus":e="M4 9h12v2H4V9z";break;case"money":e="M0 3h20v12h-.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42.79-2.94 1.91-.25-.1-.52-.16-.81-.16-.98 0-1.8.63-2.11 1.5H0V3zm8.37 3.11c-.06.15-.1.31-.11.47s-.01.33.01.5l.02.08c.01.06.02.14.05.23.02.1.06.2.1.31.03.11.09.22.15.33.07.12.15.22.23.31s.18.17.31.23c.12.06.25.09.4.09.14 0 .27-.03.39-.09s.22-.14.3-.22c.09-.09.16-.2.22-.32.07-.12.12-.23.16-.33s.07-.2.09-.31c.03-.11.04-.18.05-.22s.01-.07.01-.09c.05-.29.03-.56-.04-.82s-.21-.48-.41-.66c-.21-.18-.47-.27-.79-.27-.19 0-.36.03-.52.1-.15.07-.28.16-.38.28-.09.11-.17.25-.24.4zm4.48 6.04v-1.14c0-.33-.1-.66-.29-.98s-.45-.59-.77-.79c-.32-.21-.66-.31-1.02-.31l-1.24.84-1.28-.82c-.37 0-.72.1-1.04.3-.31.2-.56.46-.74.77-.18.32-.27.65-.27.99v1.14l.18.05c.12.04.29.08.51.14.23.05.47.1.74.15.26.05.57.09.91.13.34.03.67.05.99.05.3 0 .63-.02.98-.05.34-.04.64-.08.89-.13.25-.04.5-.1.76-.16l.5-.12c.08-.02.14-.04.19-.06zm3.15.1c1.52 0 2.75 1.23 2.75 2.75s-1.23 2.75-2.75 2.75c-.73 0-1.38-.3-1.87-.77.23-.35.37-.78.37-1.23 0-.77-.39-1.46-.99-1.86.43-.96 1.37-1.64 2.49-1.64zm-5.5 3.5c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75-.79 1.75-1.75 1.75-1.75-.79-1.75-1.75z";break;case"move":e="M19 10l-4 4v-3h-4v4h3l-4 4-4-4h3v-4H5v3l-4-4 4-4v3h4V5H6l4-4 4 4h-3v4h4V6z";break;case"nametag":e="M12 5V2c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-2-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 13V7c0-1.1-.9-2-2-2h-3v.33C13 6.25 12.25 7 11.33 7H8.67C7.75 7 7 6.25 7 5.33V5H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-1-6v6H3V9h14zm-8 2c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm3 0c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm-5.96 1.21c.92.48 2.34.79 3.96.79s3.04-.31 3.96-.79c-.21 1-1.89 1.79-3.96 1.79s-3.75-.79-3.96-1.79z";break;case"networking":e="M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z";break;case"no-alt":e="M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z";break;case"no":e="M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z";break;case"palmtree":e="M8.58 2.39c.32 0 .59.05.81.14 1.25.55 1.69 2.24 1.7 3.97.59-.82 2.15-2.29 3.41-2.29s2.94.73 3.53 3.55c-1.13-.65-2.42-.94-3.65-.94-1.26 0-2.45.32-3.29.89.4-.11.86-.16 1.33-.16 1.39 0 2.9.45 3.4 1.31.68 1.16.47 3.38-.76 4.14-.14-2.1-1.69-4.12-3.47-4.12-.44 0-.88.12-1.33.38C8 10.62 7 14.56 7 19H2c0-5.53 4.21-9.65 7.68-10.79-.56-.09-1.17-.15-1.82-.15C6.1 8.06 4.05 8.5 2 10c.76-2.96 2.78-4.1 4.69-4.1 1.25 0 2.45.5 3.2 1.29-.66-2.24-2.49-2.86-4.08-2.86-.8 0-1.55.16-2.05.35.91-1.29 3.31-2.29 4.82-2.29zM13 11.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z";break;case"paperclip":e="M17.05 2.7c1.93 1.94 1.93 5.13 0 7.07L10 16.84c-1.88 1.89-4.91 1.93-6.86.15-.06-.05-.13-.09-.19-.15-1.93-1.94-1.93-5.12 0-7.07l4.94-4.95c.91-.92 2.28-1.1 3.39-.58.3.15.59.33.83.58 1.17 1.17 1.17 3.07 0 4.24l-4.93 4.95c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41l4.93-4.95c.39-.39.39-1.02 0-1.41-.38-.39-1.02-.39-1.4 0l-4.94 4.95c-.91.92-1.1 2.29-.57 3.4.14.3.32.59.57.84s.54.43.84.57c1.11.53 2.47.35 3.39-.57l7.05-7.07c1.16-1.17 1.16-3.08 0-4.25-.56-.55-1.28-.83-2-.86-.08.01-.16.01-.24 0-.22-.03-.43-.11-.6-.27-.39-.4-.38-1.05.02-1.45.16-.16.36-.24.56-.28.14-.02.27-.01.4.02 1.19.06 2.36.52 3.27 1.43z";break;case"performance":e="M3.76 17.01h12.48C17.34 15.63 18 13.9 18 12c0-4.41-3.58-8-8-8s-8 3.59-8 8c0 1.9.66 3.63 1.76 5.01zM9 6c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zM4 8c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm4.52 3.4c.84-.83 6.51-3.5 6.51-3.5s-2.66 5.68-3.49 6.51c-.84.84-2.18.84-3.02 0-.83-.83-.83-2.18 0-3.01zM3 13c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1z";break;case"phone":e="M12.06 6l-.21-.2c-.52-.54-.43-.79.08-1.3l2.72-2.75c.81-.82.96-1.21 1.73-.48l.21.2zm.53.45l4.4-4.4c.7.94 2.34 3.47 1.53 5.34-.73 1.67-1.09 1.75-2 3-1.85 2.11-4.18 4.37-6 6.07-1.26.91-1.31 1.33-3 2-1.8.71-4.4-.89-5.38-1.56l4.4-4.4 1.18 1.62c.34.46 1.2-.06 1.8-.66 1.04-1.05 3.18-3.18 4-4.07.59-.59 1.12-1.45.66-1.8zM1.57 16.5l-.21-.21c-.68-.74-.29-.9.52-1.7l2.74-2.72c.51-.49.75-.6 1.27-.11l.2.21z";break;case"playlist-audio":e="M17 3V1H2v2h15zm0 4V5H2v2h15zm-7 4V9H2v2h8zm7.45-1.96l-6 1.12c-.16.02-.19.03-.29.13-.11.09-.16.22-.16.37v4.59c-.29-.13-.66-.14-.93-.14-.54 0-1 .19-1.38.57s-.56.84-.56 1.38c0 .53.18.99.56 1.37s.84.57 1.38.57c.49 0 .92-.16 1.29-.48s.59-.71.65-1.19v-4.95L17 11.27v3.48c-.29-.13-.56-.19-.83-.19-.54 0-1.11.19-1.49.57-.38.37-.57.83-.57 1.37s.19.99.57 1.37.84.57 1.38.57c.53 0 .99-.19 1.37-.57s.57-.83.57-1.37V9.6c0-.16-.05-.3-.16-.41-.11-.12-.24-.17-.39-.15zM8 15v-2H2v2h6zm-2 4v-2H2v2h4z";break;case"playlist-video":e="M17 3V1H2v2h15zm0 4V5H2v2h15zM6 11V9H2v2h4zm2-2h9c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm3 7l3.33-2L11 12v4zm-5-1v-2H2v2h4zm0 4v-2H2v2h4z";break;case"plus-alt":e="M15.8 4.2c3.2 3.21 3.2 8.39 0 11.6-3.21 3.2-8.39 3.2-11.6 0C1 12.59 1 7.41 4.2 4.2 7.41 1 12.59 1 15.8 4.2zm-4.3 11.3v-4h4v-3h-4v-4h-3v4h-4v3h4v4h3z";break;case"plus-light":e="M17 9v2h-6v6H9v-6H3V9h6V3h2v6h6z";break;case"plus":e="M17 7v3h-5v5H9v-5H4V7h5V2h3v5h5z";break;case"portfolio":e="M4 5H.78c-.37 0-.74.32-.69.84l1.56 9.99S3.5 8.47 3.86 6.7c.11-.53.61-.7.98-.7H10s-.7-2.08-.77-2.31C9.11 3.25 8.89 3 8.45 3H5.14c-.36 0-.7.23-.8.64C4.25 4.04 4 5 4 5zm4.88 0h-4s.42-1 .87-1h2.13c.48 0 1 1 1 1zM2.67 16.25c-.31.47-.76.75-1.26.75h15.73c.54 0 .92-.31 1.03-.83.44-2.19 1.68-8.44 1.68-8.44.07-.5-.3-.73-.62-.73H16V5.53c0-.16-.26-.53-.66-.53h-3.76c-.52 0-.87.58-.87.58L10 7H5.59c-.32 0-.63.19-.69.5 0 0-1.59 6.7-1.72 7.33-.07.37-.22.99-.51 1.42zM15.38 7H11s.58-1 1.13-1h2.29c.71 0 .96 1 .96 1z";break;case"post-status":e="M14 6c0 1.86-1.28 3.41-3 3.86V16c0 1-2 2-2 2V9.86c-1.72-.45-3-2-3-3.86 0-2.21 1.79-4 4-4s4 1.79 4 4zM8 5c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1z";break;case"pressthis":e="M14.76 1C16.55 1 18 2.46 18 4.25c0 1.78-1.45 3.24-3.24 3.24-.23 0-.47-.03-.7-.08L13 8.47V19H2V4h9.54c.13-2 1.52-3 3.22-3zm0 5.49C16 6.49 17 5.48 17 4.25 17 3.01 16 2 14.76 2s-2.24 1.01-2.24 2.25c0 .37.1.72.27 1.03L9.57 8.5c-.28.28-1.77 2.22-1.5 2.49.02.03.06.04.1.04.49 0 2.14-1.28 2.39-1.53l3.24-3.24c.29.14.61.23.96.23z";break;case"products":e="M17 8h1v11H2V8h1V6c0-2.76 2.24-5 5-5 .71 0 1.39.15 2 .42.61-.27 1.29-.42 2-.42 2.76 0 5 2.24 5 5v2zM5 6v2h2V6c0-1.13.39-2.16 1.02-3H8C6.35 3 5 4.35 5 6zm10 2V6c0-1.65-1.35-3-3-3h-.02c.63.84 1.02 1.87 1.02 3v2h2zm-5-4.22C9.39 4.33 9 5.12 9 6v2h2V6c0-.88-.39-1.67-1-2.22z";break;case"randomize":e="M18 6.01L14 9V7h-4l-5 8H2v-2h2l5-8h5V3zM2 5h3l1.15 2.17-1.12 1.8L4 7H2V5zm16 9.01L14 17v-2H9l-1.15-2.17 1.12-1.8L10 13h4v-2z";break;case"redo":e="M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z";break;case"rest-api":e="M3 4h2v12H3z";break;case"rss":e="M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z";break;case"saved":e="M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2";break;case"schedule":e="M2 2h16v4H2V2zm0 10V8h4v4H2zm6-2V8h4v2H8zm6 3V8h4v5h-4zm-6 5v-6h4v6H8zm-6 0v-4h4v4H2zm12 0v-3h4v3h-4z";break;case"screenoptions":e="M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z";break;case"search":e="M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z";break;case"share-alt":e="M16.22 5.8c.47.69.29 1.62-.4 2.08-.69.47-1.62.29-2.08-.4-.16-.24-.35-.46-.55-.67-.21-.2-.43-.39-.67-.55s-.5-.3-.77-.41c-.27-.12-.55-.21-.84-.26-.59-.13-1.23-.13-1.82-.01-.29.06-.57.15-.84.27-.27.11-.53.25-.77.41s-.46.35-.66.55c-.21.21-.4.43-.56.67s-.3.5-.41.76c-.01.02-.01.03-.01.04-.1.24-.17.48-.23.72H1V6h2.66c.04-.07.07-.13.12-.2.27-.4.57-.77.91-1.11s.72-.65 1.11-.91c.4-.27.83-.51 1.28-.7s.93-.34 1.41-.43c.99-.21 2.03-.21 3.02 0 .48.09.96.24 1.41.43s.88.43 1.28.7c.39.26.77.57 1.11.91s.64.71.91 1.11zM12.5 10c0-1.38-1.12-2.5-2.5-2.5S7.5 8.62 7.5 10s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm-8.72 4.2c-.47-.69-.29-1.62.4-2.09.69-.46 1.62-.28 2.08.41.16.24.35.46.55.67.21.2.43.39.67.55s.5.3.77.41c.27.12.55.2.84.26.59.13 1.23.12 1.82 0 .29-.06.57-.14.84-.26.27-.11.53-.25.77-.41s.46-.35.66-.55c.21-.21.4-.44.56-.67.16-.25.3-.5.41-.76.01-.02.01-.03.01-.04.1-.24.17-.48.23-.72H19v3h-2.66c-.04.06-.07.13-.12.2-.27.4-.57.77-.91 1.11s-.72.65-1.11.91c-.4.27-.83.51-1.28.7s-.93.33-1.41.43c-.99.21-2.03.21-3.02 0-.48-.1-.96-.24-1.41-.43s-.88-.43-1.28-.7c-.39-.26-.77-.57-1.11-.91s-.64-.71-.91-1.11z";break;case"share-alt2":e="M18 8l-5 4V9.01c-2.58.06-4.88.45-7 2.99.29-3.57 2.66-5.66 7-5.94V3zM4 14h11v-2l2-1.6V16H2V5h9.43c-1.83.32-3.31 1-4.41 2H4v7z";break;case"share":e="M14.5 12c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.24.03-.46.09-.69l-4.38-2.3c-.55.61-1.33.99-2.21.99-1.66 0-3-1.34-3-3s1.34-3 3-3c.88 0 1.66.39 2.21.99l4.38-2.3c-.06-.23-.09-.45-.09-.69 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.88 0-1.66-.39-2.21-.99l-4.38 2.3c.06.23.09.45.09.69s-.03.46-.09.69l4.38 2.3c.55-.61 1.33-.99 2.21-.99z";break;case"shield-alt":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2z";break;case"shield":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2zm0 8h5s1-1 1-5c0 0-5-1-6-2v7H5c1 4 5 7 5 7v-7z";break;case"shortcode":e="M6 14H4V6h2V4H2v12h4M7.1 17h2.1l3.7-14h-2.1M14 4v2h2v8h-2v2h4V4";break;case"slides":e="M5 14V6h10v8H5zm-3-1V7h2v6H2zm4-6v6h8V7H6zm10 0h2v6h-2V7zm-3 2V8H7v1h6zm0 3v-2H7v2h6z";break;case"smartphone":e="M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z";break;case"smiley":e="M7 5.2c1.1 0 2 .89 2 2 0 .37-.11.71-.28 1C8.72 8.2 8 8 7 8s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.9-2 2-2zm6 0c1.11 0 2 .89 2 2 0 .37-.11.71-.28 1 0 0-.72-.2-1.72-.2s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.89-2 2-2zm-3 13.7c3.72 0 7.03-2.36 8.23-5.88l-1.32-.46C15.9 15.52 13.12 17.5 10 17.5s-5.9-1.98-6.91-4.94l-1.32.46c1.2 3.52 4.51 5.88 8.23 5.88z";break;case"sort":e="M11 7H1l5 7zm-2 7h10l-5-7z";break;case"sos":e="M18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8 8-3.58 8-8zM7.23 3.57L8.72 7.3c-.62.29-1.13.8-1.42 1.42L3.57 7.23c.71-1.64 2.02-2.95 3.66-3.66zm9.2 3.66L12.7 8.72c-.29-.62-.8-1.13-1.42-1.42l1.49-3.73c1.64.71 2.95 2.02 3.66 3.66zM10 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm-6.43.77l3.73-1.49c.29.62.8 1.13 1.42 1.42l-1.49 3.73c-1.64-.71-2.95-2.02-3.66-3.66zm9.2 3.66l-1.49-3.73c.62-.29 1.13-.8 1.42-1.42l3.73 1.49c-.71 1.64-2.02 2.95-3.66 3.66z";break;case"star-empty":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88l-4.68 2.34.87-5.15-3.18-3.56 4.65-.58z";break;case"star-filled":e="M10 1l3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z";break;case"star-half":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88V3.24z";break;case"sticky":e="M5 3.61V1.04l8.99-.01-.01 2.58c-1.22.26-2.16 1.35-2.16 2.67v.5c.01 1.31.93 2.4 2.17 2.66l-.01 2.58h-3.41l-.01 2.57c0 .6-.47 4.41-1.06 4.41-.6 0-1.08-3.81-1.08-4.41v-2.56L5 12.02l.01-2.58c1.23-.25 2.15-1.35 2.15-2.66v-.5c0-1.31-.92-2.41-2.16-2.67z";break;case"store":e="M1 10c.41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.51.43.54 0 1.08-.14 1.49-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.63-.46 1-1.17 1-2V7l-3-7H4L0 7v1c0 .83.37 1.54 1 2zm2 8.99h5v-5h4v5h5v-7c-.37-.05-.72-.22-1-.43-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.49.44-.55 0-1.1-.14-1.51-.44-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.5.44-.54 0-1.09-.14-1.5-.44-.63-.45-1-.73-1-1.57 0 .84-.38 1.12-1 1.57-.29.21-.63.38-1 .44v6.99z";break;case"table-col-after":e="M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z";break;case"table-col-before":e="M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z";break;case"table-col-delete":e="M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z";break;case"table-row-after":e="M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z";break;case"table-row-before":e="M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z";break;case"table-row-delete":e="M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z";break;case"tablet":e="M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z";break;case"tag":e="M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z";break;case"tagcloud":e="M11 3v4H1V3h10zm8 0v4h-7V3h7zM7 8v3H1V8h6zm12 0v3H8V8h11zM9 12v2H1v-2h8zm10 0v2h-9v-2h9zM6 15v1H1v-1h5zm5 0v1H7v-1h4zm3 0v1h-2v-1h2zm5 0v1h-4v-1h4z";break;case"testimonial":e="M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z";break;case"text":e="M18 3v2H2V3h16zm-6 4v2H2V7h10zm6 0v2h-4V7h4zM8 11v2H2v-2h6zm10 0v2h-8v-2h8zm-4 4v2H2v-2h12z";break;case"thumbs-down":e="M7.28 18c-.15.02-.26-.02-.41-.07-.56-.19-.83-.79-.66-1.35.17-.55 1-3.04 1-3.58 0-.53-.75-1-1.35-1h-3c-.6 0-1-.4-1-1s2-7 2-7c.17-.39.55-1 1-1H14v9h-2.14c-.41.41-3.3 4.71-3.58 5.27-.21.41-.6.68-1 .73zM18 12h-2V3h2v9z";break;case"thumbs-up":e="M12.72 2c.15-.02.26.02.41.07.56.19.83.79.66 1.35-.17.55-1 3.04-1 3.58 0 .53.75 1 1.35 1h3c.6 0 1 .4 1 1s-2 7-2 7c-.17.39-.55 1-1 1H6V8h2.14c.41-.41 3.3-4.71 3.58-5.27.21-.41.6-.68 1-.73zM2 8h2v9H2V8z";break;case"tickets-alt":e="M20 6.38L18.99 9.2v-.01c-.52-.19-1.03-.16-1.53.08s-.85.62-1.04 1.14-.16 1.03.07 1.53c.24.5.62.84 1.15 1.03v.01l-1.01 2.82-15.06-5.38.99-2.79c.52.19 1.03.16 1.53-.08.5-.23.84-.61 1.03-1.13s.16-1.03-.08-1.53c-.23-.49-.61-.83-1.13-1.02L4.93 1zm-4.97 5.69l1.37-3.76c.12-.31.1-.65-.04-.95s-.39-.53-.7-.65L8.14 3.98c-.64-.23-1.37.12-1.6.74L5.17 8.48c-.24.65.1 1.37.74 1.6l7.52 2.74c.14.05.28.08.43.08.52 0 1-.33 1.17-.83zM7.97 4.45l7.51 2.73c.19.07.34.21.43.39.08.18.09.38.02.57l-1.37 3.76c-.13.38-.58.59-.96.45L6.09 9.61c-.39-.14-.59-.57-.45-.96l1.37-3.76c.1-.29.39-.49.7-.49.09 0 .17.02.26.05zm6.82 12.14c.35.27.75.41 1.2.41H16v3H0v-2.96c.55 0 1.03-.2 1.41-.59.39-.38.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59V10h1.05l-.28.8 2.87 1.02c-.51.16-.89.62-.89 1.18v4c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25v-1.75l.83.3c.12.43.36.78.71 1.04zM3.25 17v-4c0-.41.34-.75.75-.75h.83l7.92 2.83V17c0 .41-.34.75-.75.75H4c-.41 0-.75-.34-.75-.75z";break;case"tickets":e="M20 5.38L18.99 8.2v-.01c-1.04-.37-2.19.18-2.57 1.22-.37 1.04.17 2.19 1.22 2.56v.01l-1.01 2.82L1.57 9.42l.99-2.79c1.04.38 2.19-.17 2.56-1.21s-.17-2.18-1.21-2.55L4.93 0zm-5.45 3.37c.74-2.08-.34-4.37-2.42-5.12-2.08-.74-4.37.35-5.11 2.42-.74 2.08.34 4.38 2.42 5.12 2.07.74 4.37-.35 5.11-2.42zm-2.56-4.74c.89.32 1.57.94 1.97 1.71-.01-.01-.02-.01-.04-.02-.33-.12-.67.09-.78.4-.1.28-.03.57.05.91.04.27.09.62-.06 1.04-.1.29-.33.58-.65 1l-.74 1.01.08-4.08.4.11c.19.04.26-.24.08-.29 0 0-.57-.15-.92-.28-.34-.12-.88-.36-.88-.36-.18-.08-.3.19-.12.27 0 0 .16.08.34.16l.01 1.63L9.2 9.18l.08-4.11c.2.06.4.11.4.11.19.04.26-.23.07-.29 0 0-.56-.15-.91-.28-.07-.02-.14-.05-.22-.08.93-.7 2.19-.94 3.37-.52zM7.4 6.19c.17-.49.44-.92.78-1.27l.04 5c-.94-.95-1.3-2.39-.82-3.73zm4.04 4.75l2.1-2.63c.37-.41.57-.77.69-1.12.05-.12.08-.24.11-.35.09.57.04 1.18-.17 1.77-.45 1.25-1.51 2.1-2.73 2.33zm-.7-3.22l.02 3.22c0 .02 0 .04.01.06-.4 0-.8-.07-1.2-.21-.33-.12-.63-.28-.9-.48zm1.24 6.08l2.1.75c.24.84 1 1.45 1.91 1.45H16v3H0v-2.96c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2V9h1.05l-.28.8 4.28 1.52C4.4 12.03 4 12.97 4 14c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.07-.02-.13-.02-.2zm-6.53-2.33l1.48.53c-.14.04-.15.27.03.28 0 0 .18.02.37.03l.56 1.54-.78 2.36-1.31-3.9c.21-.01.41-.03.41-.03.19-.02.17-.31-.02-.3 0 0-.59.05-.96.05-.07 0-.15 0-.23-.01.13-.2.28-.38.45-.55zM4.4 14c0-.52.12-1.02.32-1.46l1.71 4.7C5.23 16.65 4.4 15.42 4.4 14zm4.19-1.41l1.72.62c.07.17.12.37.12.61 0 .31-.12.66-.28 1.16l-.35 1.2zM11.6 14c0 1.33-.72 2.49-1.79 3.11l1.1-3.18c.06-.17.1-.31.14-.46l.52.19c.02.11.03.22.03.34zm-4.62 3.45l1.08-3.14 1.11 3.03c.01.02.01.04.02.05-.37.13-.77.21-1.19.21-.35 0-.69-.06-1.02-.15z";break;case"tide":e="M17 7.2V3H3v7.1c2.6-.5 4.5-1.5 6.4-2.6.2-.2.4-.3.6-.5v3c-1.9 1.1-4 2.2-7 2.8V17h14V9.9c-2.6.5-4.4 1.5-6.2 2.6-.3.1-.5.3-.8.4V10c2-1.1 4-2.2 7-2.8z";break;case"translation":e="M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z";break;case"trash":e="M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z";break;case"twitter":e="M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9.01.15.01.31.01.47 0 4.85-3.69 10.44-10.43 10.44-2.07 0-4-.61-5.63-1.65.29.03.58.05.88.05 1.72 0 3.3-.59 4.55-1.57-1.6-.03-2.95-1.09-3.42-2.55.22.04.45.07.69.07.33 0 .66-.05.96-.13-1.67-.34-2.94-1.82-2.94-3.6v-.04c.5.27 1.06.44 1.66.46-.98-.66-1.63-1.78-1.63-3.06 0-.67.18-1.3.5-1.84 1.81 2.22 4.51 3.68 7.56 3.83-.06-.27-.1-.55-.1-.84 0-2.02 1.65-3.66 3.67-3.66 1.06 0 2.01.44 2.68 1.16.83-.17 1.62-.47 2.33-.89-.28.85-.86 1.57-1.62 2.02.75-.08 1.45-.28 2.11-.57z";break;case"undo":e="M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z";break;case"universal-access-alt":e="M19 10c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9 9-4.03 9-9zm-9-7.4c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"universal-access":e="M10 2.6c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"unlock":e="M12 9V6c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.21 1.79-4 4-4s4 1.79 4 4v3h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h7zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"update":e="M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z";break;case"upload":e="M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z";break;case"vault":e="M18 17V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-1 0H3V3h14v14zM4.75 4h10.5c.41 0 .75.34.75.75V6h-1v3h1v2h-1v3h1v1.25c0 .41-.34.75-.75.75H4.75c-.41 0-.75-.34-.75-.75V4.75c0-.41.34-.75.75-.75zM13 10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM9 7l.77 1.15C10.49 8.46 11 9.17 11 10c0 1.1-.9 2-2 2s-2-.9-2-2c0-.83.51-1.54 1.23-1.85z";break;case"video-alt":e="M8 5c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1 0 .57.49 1 1 1h5c.55 0 1-.45 1-1zm6 5l4-4v10l-4-4v-2zm-1 4V8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1z";break;case"video-alt2":e="M12 13V7c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2zm1-2.5l6 4.5V5l-6 4.5v1z";break;case"video-alt3":e="M19 15V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2zM8 14V6l6 4z";break;case"visibility":e="M19.7 9.4C17.7 6 14 3.9 10 3.9S2.3 6 .3 9.4L0 10l.3.6c2 3.4 5.7 5.5 9.7 5.5s7.7-2.1 9.7-5.5l.3-.6-.3-.6zM10 14.1c-3.1 0-6-1.6-7.7-4.1C3.6 8 5.7 6.6 8 6.1c-.9.6-1.5 1.7-1.5 2.9 0 1.9 1.6 3.5 3.5 3.5s3.5-1.6 3.5-3.5c0-1.2-.6-2.3-1.5-2.9 2.3.5 4.4 1.9 5.7 3.9-1.7 2.5-4.6 4.1-7.7 4.1z";break;case"warning":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z";break;case"welcome-add-page":e="M17 7V4h-2V2h-3v1H3v15h11V9h1V7h2zm-1-2v1h-2v2h-1V6h-2V5h2V3h1v2h2z";break;case"welcome-comments":e="M5 2h10c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8.5 8.5L11 8l2.5-2.5-1-1L10 7 7.5 4.5l-1 1L9 8l-2.5 2.5 1 1L10 9l2.5 2.5z";break;case"welcome-learn-more":e="M10 10L2.54 7.02 3 18H1l.48-11.41L0 6l10-4 10 4zm0-5c-.55 0-1 .22-1 .5s.45.5 1 .5 1-.22 1-.5-.45-.5-1-.5zm0 6l5.57-2.23c.71.94 1.2 2.07 1.36 3.3-.3-.04-.61-.07-.93-.07-2.55 0-4.78 1.37-6 3.41C8.78 13.37 6.55 12 4 12c-.32 0-.63.03-.93.07.16-1.23.65-2.36 1.36-3.3z";break;case"welcome-view-site":e="M18 14V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-8-8c2.3 0 4.4 1.14 6 3-1.6 1.86-3.7 3-6 3s-4.4-1.14-6-3c1.6-1.86 3.7-3 6-3zm2 3c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm2 8h3v1H3v-1h3v-1h8v1z";break;case"welcome-widgets-menus":e="M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z";break;case"welcome-write-blog":e="M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z";break;case"wordpress-alt":e="M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z";break;case"wordpress":e="M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10s4.48 10 10 10 10-4.48 10-10zM10 1.01c4.97 0 8.99 4.02 8.99 8.99s-4.02 8.99-8.99 8.99S1.01 14.97 1.01 10 5.03 1.01 10 1.01zM8.01 14.82L4.96 6.61c.49-.03 1.05-.08 1.05-.08.43-.05.38-1.01-.06-.99 0 0-1.29.1-2.13.1-.15 0-.33 0-.52-.01 1.44-2.17 3.9-3.6 6.7-3.6 2.09 0 3.99.79 5.41 2.09-.6-.08-1.45.35-1.45 1.42 0 .66.38 1.22.79 1.88.31.54.5 1.22.5 2.21 0 1.34-1.27 4.48-1.27 4.48l-2.71-7.5c.48-.03.75-.16.75-.16.43-.05.38-1.1-.05-1.08 0 0-1.3.11-2.14.11-.78 0-2.11-.11-2.11-.11-.43-.02-.48 1.06-.05 1.08l.84.08 1.12 3.04zm6.02 2.15L16.64 10s.67-1.69.39-3.81c.63 1.14.94 2.42.94 3.81 0 2.96-1.56 5.58-3.94 6.97zM2.68 6.77L6.5 17.25c-2.67-1.3-4.47-4.08-4.47-7.25 0-1.16.2-2.23.65-3.23zm7.45 4.53l2.29 6.25c-.75.27-1.57.42-2.42.42-.72 0-1.41-.11-2.06-.3z";break;case"yes-alt":e="M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z";break;case"yes":e="M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z"}if(!e)return null;var i,s=["dashicon","dashicons-"+(i=this.props).icon,i.className].filter(Boolean).join(" ");return Object(r.createElement)(u,{"aria-hidden":!0,role:"img",focusable:"false",className:s,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 20 20"},Object(r.createElement)(c,{d:e}))}}]),t}(r.Component);var ee=Object(r.forwardRef)(function(e,t){var n=e.icon,o=e.children,a=e.label,i=e.className,c=e.tooltip,s=e.shortcut,l=e.labelPosition,u=Object(T.a)(e,["icon","children","label","className","tooltip","shortcut","labelPosition"]),d=u["aria-pressed"],h=p()("components-icon-button",i,{"has-text":o}),f=c||a,b=!u.disabled&&(c||s||!!a&&(!o||Object(D.isArray)(o)&&!o.length)&&!1!==c),v=Object(r.createElement)(I,Object(P.a)({"aria-label":a},u,{className:h,ref:t}),Object(D.isString)(n)?Object(r.createElement)(J,{icon:n,ariaPressed:d}):n,o);return b&&(v=Object(r.createElement)(Q,{text:f,shortcut:s,position:l},v)),v});var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,o=e.className,a=void 0===o?"lockscroll":o,i=0,c=0;function s(e){var t=n.scrollingElement||n.body;e&&(c=t.scrollTop);var o=e?"add":"remove";t.classList[o](a),n.documentElement.classList[o](a),e||(t.scrollTop=c)}return function(e){function t(){return Object(v.a)(this,t),Object(m.a)(this,Object(y.a)(t).apply(this,arguments))}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){0===i&&s(!0),++i}},{key:"componentWillUnmount",value:function(){1===i&&s(!1),--i}},{key:"render",value:function(){return null}}]),t}(r.Component)}(),ne=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).stopEventPropagationOutsideContainer=n.stopEventPropagationOutsideContainer.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"stopEventPropagationOutsideContainer",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(T.a)(e,["children"]);return Object(r.createElement)("div",Object(P.a)({},n,{onMouseDown:this.stopEventPropagationOutsideContainer}),t)}}]),t}(r.Component),oe=Object(r.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){}}),re=oe.Provider,ae=oe.Consumer,ie=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).registerSlot=e.registerSlot.bind(Object(k.a)(Object(k.a)(e))),e.registerFill=e.registerFill.bind(Object(k.a)(Object(k.a)(e))),e.unregisterSlot=e.unregisterSlot.bind(Object(k.a)(Object(k.a)(e))),e.unregisterFill=e.unregisterFill.bind(Object(k.a)(Object(k.a)(e))),e.getSlot=e.getSlot.bind(Object(k.a)(Object(k.a)(e))),e.getFills=e.getFills.bind(Object(k.a)(Object(k.a)(e))),e.slots={},e.fills={},e.state={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.forceUpdateFills(e),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(_.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.forceUpdateFills(e))}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(D.without)(this.fills[e],t),this.resetFillOccurrence(e),this.forceUpdateSlot(e)}},{key:"getSlot",value:function(e){return this.slots[e]}},{key:"getFills",value:function(e,t){return this.slots[e]!==t?[]:Object(D.sortBy)(this.fills[e],"occurrence")}},{key:"resetFillOccurrence",value:function(e){Object(D.forEach)(this.fills[e],function(e){e.resetOccurrence()})}},{key:"forceUpdateFills",value:function(e){Object(D.forEach)(this.fills[e],function(e){e.forceUpdate()})}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"render",value:function(){return Object(r.createElement)(re,{value:this.state},this.props.children)}}]),t}(r.Component),ce=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,o=t.unregisterSlot,r=t.registerSlot;e.name!==n&&(o(e.name),r(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,o=e.bubblesVirtually,a=void 0!==o&&o,i=e.fillProps,c=void 0===i?{}:i,s=e.getFills;if(a)return Object(r.createElement)("div",{ref:this.bindNode});var l=Object(D.map)(s(n,this),function(e){var t=e.occurrence,n=Object(D.isFunction)(e.props.children)?e.props.children(c):e.props.children;return r.Children.map(n,function(e,n){if(!e||Object(D.isString)(e))return e;var o="".concat(t,"---").concat(e.key||n);return Object(r.cloneElement)(e,{key:o})})}).filter(Object(D.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(D.isFunction)(t)?t(l):l)}}]),t}(r.Component),se=function(e){return Object(r.createElement)(ae,null,function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(r.createElement)(ce,Object(P.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))})},le=0,ue=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).occurrence=++le,e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){(0,this.props.registerFill)(this.props.name,this)}},{key:"componentWillUpdate",value:function(){this.occurrence||(this.occurrence=++le);var e=(0,this.props.getSlot)(this.props.name);e&&!e.props.bubblesVirtually&&e.forceUpdate()}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterFill)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,o=t.unregisterFill,r=t.registerFill;e.name!==n&&(o(e.name,this),r(n,this))}},{key:"resetOccurrence",value:function(){this.occurrence=null}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.getSlot,o=this.props.children,a=n(t);return a&&a.node&&a.props.bubblesVirtually?(Object(D.isFunction)(o)&&(o=o(a.props.fillProps)),Object(r.createPortal)(o,a.node)):null}}]),t}(r.Component),de=function(e){return Object(r.createElement)(ae,null,function(t){var n=t.getSlot,o=t.registerFill,a=t.unregisterFill;return Object(r.createElement)(ue,Object(P.a)({},e,{getSlot:n,registerFill:o,unregisterFill:a}))})};function he(e){var t=function(t){return Object(r.createElement)(de,Object(P.a)({name:e},t))};t.displayName=e+"Fill";var n=function(t){return Object(r.createElement)(se,Object(P.a)({name:e},t))};return n.displayName=e+"Slot",{Fill:t,Slot:n}}var fe=U(W(function(e){return e.children})),pe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).getAnchorRect=e.getAnchorRect.bind(Object(k.a)(Object(k.a)(e))),e.computePopoverPosition=e.computePopoverPosition.bind(Object(k.a)(Object(k.a)(e))),e.maybeClose=e.maybeClose.bind(Object(k.a)(Object(k.a)(e))),e.throttledRefresh=e.throttledRefresh.bind(Object(k.a)(Object(k.a)(e))),e.refresh=e.refresh.bind(Object(k.a)(Object(k.a)(e))),e.refreshOnAnchorMove=e.refreshOnAnchorMove.bind(Object(k.a)(Object(k.a)(e))),e.contentNode=Object(r.createRef)(),e.anchorNode=Object(r.createRef)(),e.state={popoverLeft:null,popoverTop:null,yAxis:"top",xAxis:"center",contentHeight:null,contentWidth:null,isMobile:!1,popoverSize:null,isReadyToAnimate:!1},e.anchorRect={},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.toggleAutoRefresh(!0),this.refresh(),this.focusTimeout=setTimeout(function(){e.focus()},0)}},{key:"componentDidUpdate",value:function(e){e.position!==this.props.position&&this.computePopoverPosition(this.state.popoverSize,this.anchorRect)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.focusTimeout),this.toggleAutoRefresh(!1)}},{key:"toggleAutoRefresh",value:function(e){window.cancelAnimationFrame(this.rafHandle);var t=e?"addEventListener":"removeEventListener";window[t]("resize",this.throttledRefresh),window[t]("scroll",this.throttledRefresh,!0),e?this.autoRefresh=setInterval(this.refreshOnAnchorMove,500):clearInterval(this.autoRefresh)}},{key:"throttledRefresh",value:function(e){window.cancelAnimationFrame(this.rafHandle),e&&"scroll"===e.type&&this.contentNode.current.contains(e.target)||(this.rafHandle=window.requestAnimationFrame(this.refresh))}},{key:"refreshOnAnchorMove",value:function(){var e=this.props.getAnchorRect,t=(void 0===e?this.getAnchorRect:e)(this.anchorNode.current);!H()(t,this.anchorRect)&&(this.anchorRect=t,this.computePopoverPosition(this.state.popoverSize,t))}},{key:"refresh",value:function(){var e=this.props.getAnchorRect,t=(void 0===e?this.getAnchorRect:e)(this.anchorNode.current),n=this.contentNode.current.getBoundingClientRect(),o={width:n.width,height:n.height};(!this.state.popoverSize||o.width!==this.state.popoverSize.width||o.height!==this.state.popoverSize.height)&&this.setState({popoverSize:o,isReadyToAnimate:!0}),this.anchorRect=t,this.computePopoverPosition(o,t)}},{key:"focus",value:function(){var e=this.props.focusOnMount;if(e&&this.contentNode.current)if("firstElement"!==e)"container"===e&&this.contentNode.current.focus();else{var t=C.focus.tabbable.find(this.contentNode.current)[0];t?t.focus():this.contentNode.current.focus()}}},{key:"getAnchorRect",value:function(e){if(e&&e.parentNode){var t=e.parentNode.getBoundingClientRect(),n=window.getComputedStyle(e.parentNode),o=n.paddingTop,r=n.paddingBottom,a=parseInt(o,10),i=parseInt(r,10);return{x:t.left,y:t.top+a,width:t.width,height:t.height-a-i,left:t.left,right:t.right,top:t.top+a,bottom:t.bottom-i}}}},{key:"computePopoverPosition",value:function(e,t){var n=this.props,o=n.position,r=A(t,e,void 0===o?"top":o,n.expandOnMobile);this.state.yAxis===r.yAxis&&this.state.xAxis===r.xAxis&&this.state.popoverLeft===r.popoverLeft&&this.state.popoverTop===r.popoverTop&&this.state.contentHeight===r.contentHeight&&this.state.contentWidth===r.contentWidth&&this.state.isMobile===r.isMobile||this.setState(r)}},{key:"maybeClose",value:function(e){var t=this.props,n=t.onKeyDown,o=t.onClose;e.keyCode===w.ESCAPE&&o&&(e.stopPropagation(),o()),n&&n(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.headerTitle,o=t.onClose,a=t.children,i=t.className,c=t.onClickOutside,s=void 0===c?o:c,l=t.noArrow,u=(t.position,t.range,t.focusOnMount),d=(t.getAnchorRect,t.expandOnMobile),h=t.animate,f=void 0===h||h,v=Object(T.a)(t,["headerTitle","onClose","children","className","onClickOutside","noArrow","position","range","focusOnMount","getAnchorRect","expandOnMobile","animate"]),m=this.state,y=m.popoverLeft,g=m.popoverTop,O=m.yAxis,k=m.xAxis,_=m.contentHeight,D=m.contentWidth,w=m.popoverSize,S=m.isMobile,j=m.isReadyToAnimate,M={top:"bottom",bottom:"top"}[O]||"middle",C={left:"right",right:"left"}[k]||"center",E=p()("components-popover",i,"is-"+O,"is-"+k,{"is-mobile":S,"is-without-arrow":l||"center"===k&&"middle"===O}),z=Object(r.createElement)(G,{onClickOutside:s},Object(r.createElement)(b,{type:f&&j?"appear":null,options:{origin:M+" "+C}},function(t){var i=t.className;return Object(r.createElement)(ne,Object(P.a)({className:p()(E,i),style:{top:!S&&g?g+"px":void 0,left:!S&&y?y+"px":void 0,visibility:w?void 0:"hidden"}},v,{onKeyDown:e.maybeClose}),S&&Object(r.createElement)("div",{className:"components-popover__header"},Object(r.createElement)("span",{className:"components-popover__header-title"},n),Object(r.createElement)(ee,{className:"components-popover__close",icon:"no-alt",onClick:o})),Object(r.createElement)("div",{ref:e.contentNode,className:"components-popover__content",style:{maxHeight:!S&&_?_+"px":void 0,maxWidth:!S&&D?D+"px":void 0},tabIndex:"-1"},a))}));return u&&(z=Object(r.createElement)(fe,null,z)),Object(r.createElement)(ae,null,function(t){var n=t.getSlot;return n&&n("Popover")&&(z=Object(r.createElement)(de,{name:"Popover"},z)),Object(r.createElement)("span",{ref:e.anchorNode},z,S&&d&&Object(r.createElement)(te,null))})}}]),t}(r.Component);pe.defaultProps={focusOnMount:"firstElement",noArrow:!1};var be=pe;be.Slot=function(){return Object(r.createElement)(se,{bubblesVirtually:!0,name:"Popover"})};var ve=be,me=n(48),ye=Object(j.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).debouncedSpeak=Object(D.debounce)(e.speak.bind(Object(k.a)(Object(k.a)(e))),500),e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(me.speak)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(r.createElement)(e,Object(P.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(r.Component)},"withSpokenMessages");function ge(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=[],r=0;r0,v=b?"components-autocomplete-listbox-".concat(o):null,m=b?"components-autocomplete-item-".concat(o,"-").concat(d):null;return Object(r.createElement)("div",{ref:this.bindNode,onClick:this.resetWhenSuppressed,className:"components-autocomplete"},n({isExpanded:b,listBoxId:v,activeId:m}),b&&Object(r.createElement)(ve,{focusOnMount:!1,onClose:this.reset,position:"top right",className:"components-autocomplete__popover",getAnchorRect:Oe},Object(r.createElement)("div",{id:v,role:"listbox",className:"components-autocomplete__results"},b&&Object(D.map)(l,function(t,n){return Object(r.createElement)(I,{key:t.key,id:"components-autocomplete-item-".concat(o,"-").concat(t.key),role:"option","aria-selected":n===s,disabled:t.isDisabled,className:p()("components-autocomplete__result",f,{"is-selected":n===s}),onClick:function(){return e.select(t)}},t.label)}))))}}]),t}(r.Component),_e=Object(j.compose)([ye,j.withInstanceId,z])(ke);var De=function(e){var t=e.id,n=e.label,o=e.help,a=e.className,i=e.children;return Object(r.createElement)("div",{className:p()("components-base-control",a)},Object(r.createElement)("div",{className:"components-base-control__field"},n&&t&&Object(r.createElement)("label",{className:"components-base-control__label",htmlFor:t},n),n&&!t&&Object(r.createElement)("span",{className:"components-base-control__label"},n),i),!!o&&Object(r.createElement)("p",{id:t+"__help",className:"components-base-control__help"},o))};var we=function(e){var t=e.className,n=Object(T.a)(e,["className"]),o=p()("components-button-group",t);return Object(r.createElement)("div",Object(P.a)({},n,{className:o,role:"group"}))};var Se=Object(j.withInstanceId)(function(e){var t=e.label,n=e.className,o=e.heading,a=e.checked,i=e.help,c=e.instanceId,s=e.onChange,l=Object(T.a)(e,["label","className","heading","checked","help","instanceId","onChange"]),u="inspector-checkbox-control-".concat(c);return Object(r.createElement)(De,{label:o,id:u,help:i,className:n},Object(r.createElement)("input",Object(P.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return s(e.target.checked)},checked:a,"aria-describedby":i?u+"__help":void 0},l)),Object(r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))}),je=n(221),Me=n.n(je),Ce=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(k.a)(Object(k.a)(e))),e.onCopy=e.onCopy.bind(Object(k.a)(Object(k.a)(e))),e.getText=e.getText.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){var e=this.container,t=this.getText,n=this.onCopy,o=e.firstChild;this.clipboard=new Me.a(o,{text:t,container:e}),this.clipboard.on("success",n)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard,clearTimeout(this.onCopyTimeout)}},{key:"bindContainer",value:function(e){this.container=e}},{key:"onCopy",value:function(e){e.clearSelection();var t=this.props,n=t.onCopy,o=t.onFinishCopy;n&&(n(),o&&(clearTimeout(this.onCopyTimeout),this.onCopyTimeout=setTimeout(o,4e3)))}},{key:"getText",value:function(){var e=this.props.text;return"function"==typeof e&&(e=e()),e}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,o=(e.onCopy,e.onFinishCopy,e.text,Object(T.a)(e,["className","children","onCopy","onFinishCopy","text"])),a=o.icon,i=p()("components-clipboard-button",t),c=a?ee:I;return Object(r.createElement)("span",{ref:this.bindContainer,onCopy:function(e){e.target.focus()}},Object(r.createElement)(c,Object(P.a)({},o,{className:i}),n))}}]),t}(r.Component),Pe=function(e){var t=e.className,n=e.colorValue,o=Object(T.a)(e,["className","colorValue"]);return Object(r.createElement)("span",Object(P.a)({className:p()("component-color-indicator",t),style:{background:n}},o))},Ee=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(k.a)(Object(k.a)(e))),e.close=e.close.bind(Object(k.a)(Object(k.a)(e))),e.closeIfClickOutside=e.closeIfClickOutside.bind(Object(k.a)(Object(k.a)(e))),e.containerRef=Object(r.createRef)(),e.state={isOpen:!1},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){var e=this.state.isOpen,t=this.props.onToggle;e&&t&&t(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,o=this.props.onToggle;t.isOpen!==n&&o&&o(n)}},{key:"toggle",value:function(){this.setState(function(e){return{isOpen:!e.isOpen}})}},{key:"closeIfClickOutside",value:function(e){this.containerRef.current.contains(e.target)||this.close()}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"render",value:function(){var e=this.state.isOpen,t=this.props,n=t.renderContent,o=t.renderToggle,a=t.position,i=void 0===a?"bottom":a,c=t.className,s=t.contentClassName,l=t.expandOnMobile,u=t.headerTitle,d=t.focusOnMount,h={isOpen:e,onToggle:this.toggle,onClose:this.close};return Object(r.createElement)("div",{className:c,ref:this.containerRef},o(h),e&&Object(r.createElement)(ve,{className:s,position:i,onClose:this.close,onClickOutside:this.closeIfClickOutside,expandOnMobile:l,headerTitle:u,focusOnMount:d},n(h)))}}]),t}(r.Component),ze=n(45),Te=n.n(ze);function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?Te()(e.hex):Te()(e),o=n.toHsl();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.l=Math.round(100*o.l);var r=n.toHsv();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.v=Math.round(100*r.v);var a=n.toRgb(),i=n.toHex();return 0===o.s&&(o.h=t||0,r.h=t||0),{color:n,hex:"000000"===i&&0===a.a?"transparent":"#".concat(i),hsl:o,hsv:r,oldHue:e.h||t||o.h,rgb:a,source:e.source}}function xe(e,t){e.preventDefault();var n=t.getBoundingClientRect(),o=n.left,r=n.top,a=n.width,i=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=c-(o+window.pageXOffset),u=s-(r+window.pageYOffset);return l<0?l=0:l>a?l=a:u<0?u=0:u>i&&(u=i),{top:u,left:l,width:a,height:i}}var He=n(222),Ne=n.n(He),Re=(n(259),function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindKeyTarget=e.bindKeyTarget.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.keyTarget,n=void 0===t?document:t;this.mousetrap=new Ne.a(n),Object(D.forEach)(this.props.shortcuts,function(t,n){var o=e.props,r=o.bindGlobal,a=o.eventName,i=r?"bindGlobal":"bind";e.mousetrap[i](n,t,a)})}},{key:"componentWillUnmount",value:function(){this.mousetrap.reset()}},{key:"bindKeyTarget",value:function(e){this.keyTarget=e}},{key:"render",value:function(){var e=this.props.children;return r.Children.count(e)?Object(r.createElement)("div",{ref:this.bindKeyTarget},e):null}}]),t}(r.Component)),Le=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(r.createRef)(),e.increase=e.increase.bind(Object(k.a)(Object(k.a)(e))),e.decrease=e.decrease.bind(Object(k.a)(Object(k.a)(e))),e.handleChange=e.handleChange.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseDown=e.handleMouseDown.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseUp=e.handleMouseUp.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,o=t.onChange,r=void 0===o?D.noop:o;e=parseInt(100*e,10),r({h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"})}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,o=t.onChange,r=void 0===o?D.noop:o,a=parseInt(100*n.a,10)-parseInt(100*e,10);r({h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"})}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,o=function(e,t,n){var o=xe(e,n),r=o.left,a=o.width,i=r<0?0:Math.round(100*r/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);o&&n(o,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),o={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},a={left:"".concat(100*t.a,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(r.createElement)(Re,{shortcuts:i},Object(r.createElement)("div",{className:"components-color-picker__alpha"},Object(r.createElement)("div",{className:"components-color-picker__alpha-gradient",style:o}),Object(r.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(r.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(S.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:a,onKeyDown:this.preventKeyEvents}))))}}]),t}(r.Component),Ae=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).container=Object(r.createRef)(),e.increase=e.increase.bind(Object(k.a)(Object(k.a)(e))),e.decrease=e.decrease.bind(Object(k.a)(Object(k.a)(e))),e.handleChange=e.handleChange.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseDown=e.handleMouseDown.bind(Object(k.a)(Object(k.a)(e))),e.handleMouseUp=e.handleMouseUp.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,o=t.onChange;(void 0===o?D.noop:o)({h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"})}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,o=t.onChange;(void 0===o?D.noop:o)({h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"})}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,o=function(e,t,n){var o=xe(e,n),r=o.left,a=o.width,i=r>=a?359:100*r/a*360/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);o&&n(o,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,o=void 0===n?{}:n,a=t.instanceId,i={left:"".concat(100*o.h/360,"%")},c={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(r.createElement)(Re,{shortcuts:c},Object(r.createElement)("div",{className:"components-color-picker__hue"},Object(r.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(r.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(r.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":o.h,"aria-orientation":"horizontal","aria-label":Object(S.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(a),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(r.createElement)("p",{className:"components-color-picker__hue-description screen-reader-text",id:"components-color-picker__hue-description-".concat(a)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),t}(r.Component),Fe=Object(j.withInstanceId)(Ae);var Ve=Object(j.withInstanceId)(function(e){var t=e.label,n=e.value,o=e.help,a=e.className,i=e.instanceId,c=e.onChange,s=e.type,l=void 0===s?"text":s,u=Object(T.a)(e,["label","value","help","className","instanceId","onChange","type"]),d="inspector-text-control-".concat(i);return Object(r.createElement)(De,{label:t,id:d,help:o,className:a},Object(r.createElement)("input",Object(P.a)({className:"components-text-control__input",type:l,id:d,value:n,onChange:function(e){return c(e.target.value)},"aria-describedby":o?d+"__help":void 0},u)))}),Be=function(e){function t(e){var n,o=e.value;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={value:String(o).toLowerCase()},n.handleBlur=n.handleBlur.bind(Object(k.a)(Object(k.a)(n))),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n.handleKeyDown=n.handleKeyDown.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.props.value&&this.setState({value:String(e.value).toLowerCase()})}},{key:"handleBlur",value:function(){var e=this.props,t=e.valueKey,n=e.onChange,o=this.state.value;n(Object(d.a)({},t,o))}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,o=t.onChange;e.length>4&&o(Object(d.a)({},n,e)),this.setState({value:e})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===w.ENTER||t===w.UP||t===w.DOWN){var n=this.state.value,o=this.props,r=o.valueKey;(0,o.onChange)(Object(d.a)({},r,n))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,o=Object(T.a)(t,["label"]),a=this.state.value;return Object(r.createElement)(Ve,Object(P.a)({className:"components-color-picker__inputs-field",label:n,value:a,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(D.omit)(o,["onChange","value","valueKey"])))}}]),t}(r.Component),Ke=function(e){function t(e){var n,o=e.hsl;Object(v.a)(this,t),n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments));var r=1===o.a?"hex":"rgb";return n.state={view:r},n.toggleViews=n.toggleViews.bind(Object(k.a)(Object(k.a)(n))),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"}),Object(me.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"}),Object(me.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"}),Object(me.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"}),Object(me.speak)(Object(S.__)("RGB mode active"))))}},{key:"handleChange",value:function(e){var t,n;e.hex?(t=e.hex,n="#"===String(t).charAt(0)?1:0,t.length!==4+n&&t.length<7+n&&Te()(t).isValid()&&this.props.onChange({hex:e.hex,source:"hex"})):e.r||e.g||e.b?this.props.onChange({r:e.r||this.props.rgb.r,g:e.g||this.props.rgb.g,b:e.b||this.props.rgb.b,source:"rgb"}):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),this.props.onChange({h:this.props.hsl.h,s:this.props.hsl.s,l:this.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"})):(e.h||e.s||e.l)&&this.props.onChange({h:e.h||this.props.hsl.h,s:e.s||this.props.hsl.s,l:e.l||this.props.hsl.l,source:"hsl"})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;return"hex"===this.state.view?Object(r.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(r.createElement)(Be,{label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange})):"rgb"===this.state.view?Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"screen-reader-text"},Object(S.__)("Color value in RGB")),Object(r.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(r.createElement)(Be,{label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(r.createElement)(Be,{label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(r.createElement)(Be,{label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(r.createElement)(Be,{label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):"hsl"===this.state.view?Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"screen-reader-text"},Object(S.__)("Color value in HSL")),Object(r.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(r.createElement)(Be,{label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(r.createElement)(Be,{label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(r.createElement)(Be,{label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(r.createElement)(Be,{label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"}))):void 0}},{key:"render",value:function(){return Object(r.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(r.createElement)("div",{className:"components-color-picker__inputs-toggle"},Object(r.createElement)(ee,{icon:"arrow-down-alt2",label:Object(S.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(r.Component),We=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).throttle=Object(D.throttle)(function(e,t,n){e(t,n)},50),n.container=Object(r.createRef)(),n.saturate=n.saturate.bind(Object(k.a)(Object(k.a)(n))),n.brighten=n.brighten.bind(Object(k.a)(Object(k.a)(n))),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n.handleMouseDown=n.handleMouseDown.bind(Object(k.a)(Object(k.a)(n))),n.handleMouseUp=n.handleMouseUp.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,o=t.onChange,r=void 0===o?D.noop:o,a=Object(D.clamp)(n.s+Math.round(100*e),0,100);r({h:n.h,s:a,v:n.v,a:n.a,source:"rgb"})}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,o=t.onChange,r=void 0===o?D.noop:o,a=Object(D.clamp)(n.v+Math.round(100*e),0,100);r({h:n.h,s:n.s,v:a,a:n.a,source:"rgb"})}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?D.noop:t,o=function(e,t,n){var o=xe(e,n),r=o.top,a=o.left,i=o.width,c=o.height,s=a<0?0:100*a/i,l=r>=c?0:-100*r/c+100;return l<1&&(l=0),{h:t.hsl.h,s:s,v:l,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,o,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==w.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,o=t.hsl,a=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},c={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(r.createElement)(Re,{shortcuts:c},Object(r.createElement)("div",{style:{background:"hsl(".concat(o.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(r.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(r.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(r.createElement)("button",{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(a),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(r.createElement)("div",{className:"screen-reader-text",id:"color-picker-saturation-".concat(a)},Object(S.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),t}(r.Component),Ue=Object(j.withInstanceId)(We),$e=function(e){function t(e){var n,o=e.color,r=void 0===o?"0071a1":o;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state=Ie(r),n.handleChange=n.handleChange.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"handleChange",value:function(e){var t=this.props,n=t.oldHue,o=t.onChangeComplete,r=void 0===o?D.noop:o;if(function(e){var t=0,n=0;return Object(D.each)(["r","g","b","a","h","s","l","v"],function(o){e[o]&&(t+=1,isNaN(e[o])||(n+=1))}),t===n&&e}(e)){var a=Ie(e,e.h||n);this.setState(a,Object(D.debounce)(Object(D.partial)(r,a),100))}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disableAlpha,o=this.state,a=o.color,i=o.hex,c=o.hsl,s=o.hsv,l=o.rgb,u=p()(t,{"components-color-picker":!0,"is-alpha-disabled":n,"is-alpha-enabled":!n});return Object(r.createElement)("div",{className:u},Object(r.createElement)("div",{className:"components-color-picker__saturation"},Object(r.createElement)(Ue,{hsl:c,hsv:s,onChange:this.handleChange})),Object(r.createElement)("div",{className:"components-color-picker__body"},Object(r.createElement)("div",{className:"components-color-picker__controls"},Object(r.createElement)("div",{className:"components-color-picker__swatch"},Object(r.createElement)("div",{className:"components-color-picker__active",style:{backgroundColor:a&&a.toRgbString()}})),Object(r.createElement)("div",{className:"components-color-picker__toggles"},Object(r.createElement)(Fe,{hsl:c,onChange:this.handleChange}),n?null:Object(r.createElement)(Le,{rgb:l,hsl:c,onChange:this.handleChange}))),Object(r.createElement)(Ke,{rgb:l,hsl:c,hex:i,onChange:this.handleChange,disableAlpha:n})))}}]),t}(r.Component);function Ye(e){var t=e.colors,n=e.disableCustomColors,o=void 0!==n&&n,a=e.value,i=e.onChange,c=e.className;function s(e){return function(){return i(a===e?void 0:e)}}var l=Object(S.__)("Custom color picker"),u=p()("components-color-palette",c);return Object(r.createElement)("div",{className:u},Object(D.map)(t,function(e){var t=e.color,n=e.name,o={color:t},i=p()("components-color-palette__item",{"is-active":a===t});return Object(r.createElement)("div",{key:t,className:"components-color-palette__item-wrapper"},Object(r.createElement)(Q,{text:n||Object(S.sprintf)(Object(S.__)("Color code: %s"),t)},Object(r.createElement)("button",{type:"button",className:i,style:o,onClick:s(t),"aria-label":n?Object(S.sprintf)(Object(S.__)("Color: %s"),n):Object(S.sprintf)(Object(S.__)("Color code: %s"),t),"aria-pressed":a===t})),a===t&&Object(r.createElement)(J,{icon:"saved"}))}),Object(r.createElement)("div",{className:"components-color-palette__custom-clear-wrapper"},!o&&Object(r.createElement)(Ee,{className:"components-color-palette__custom-color",contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(r.createElement)(I,{"aria-expanded":t,onClick:n,"aria-label":l,isLink:!0},Object(S.__)("Custom Color"))},renderContent:function(){return Object(r.createElement)($e,{color:a,onChangeComplete:function(e){return i(e.hex)},disableAlpha:!0})}}),Object(r.createElement)(I,{className:"components-color-palette__clear",type:"button",onClick:function(){return i(void 0)},isSmall:!0,isDefault:!0},Object(S.__)("Clear"))))}n(260);var qe=n(29),Ge=n.n(qe),Ze=n(223),Xe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChangeMoment=e.onChangeMoment.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,o=t.onChange,r=n?Ge()(n):Ge()(),a={hours:r.hours(),minutes:r.minutes(),seconds:r.seconds()};o(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?Ge()(e):Ge()()}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,o=this.getMomentDate(t);return Object(r.createElement)("div",{className:"components-datetime__date"},Object(r.createElement)(Ze.DayPickerSingleDateController,{date:o,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(o?o.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())}}))}}]),t}(r.Component),Qe=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={day:"",month:"",year:"",hours:"",minutes:"",am:!0,date:null},e.updateMonth=e.updateMonth.bind(Object(k.a)(Object(k.a)(e))),e.onChangeMonth=e.onChangeMonth.bind(Object(k.a)(Object(k.a)(e))),e.updateDay=e.updateDay.bind(Object(k.a)(Object(k.a)(e))),e.onChangeDay=e.onChangeDay.bind(Object(k.a)(Object(k.a)(e))),e.updateYear=e.updateYear.bind(Object(k.a)(Object(k.a)(e))),e.onChangeYear=e.onChangeYear.bind(Object(k.a)(Object(k.a)(e))),e.updateHours=e.updateHours.bind(Object(k.a)(Object(k.a)(e))),e.updateMinutes=e.updateMinutes.bind(Object(k.a)(Object(k.a)(e))),e.onChangeHours=e.onChangeHours.bind(Object(k.a)(Object(k.a)(e))),e.onChangeMinutes=e.onChangeMinutes.bind(Object(k.a)(Object(k.a)(e))),e.renderMonth=e.renderMonth.bind(Object(k.a)(Object(k.a)(e))),e.renderDay=e.renderDay.bind(Object(k.a)(Object(k.a)(e))),e.renderDayMonthFormat=e.renderDayMonthFormat.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.syncState(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.currentTime,o=t.is12Hour;n===e.currentTime&&o===e.is12Hour||this.syncState(this.props)}},{key:"getMaxHours",value:function(){return this.props.is12Hour?12:23}},{key:"getMinHours",value:function(){return this.props.is12Hour?1:0}},{key:"syncState",value:function(e){var t=e.currentTime,n=e.is12Hour,o=t?Ge()(t):Ge()(),r=o.format("DD"),a=o.format("MM"),i=o.format("YYYY"),c=o.format("mm"),s=o.format("A"),l=o.format(n?"hh":"HH"),u=t?Ge()(t):Ge()();this.setState({day:r,month:a,year:i,minutes:c,hours:l,am:s,date:u})}},{key:"updateHours",value:function(){var e=this.props,t=e.is12Hour,n=e.onChange,o=this.state,r=o.am,a=o.hours,i=o.date,c=parseInt(a,10);if(!Object(D.isInteger)(c)||t&&(c<1||c>12)||!t&&(c<0||c>23))this.syncState(this.props);else{var s=t?i.clone().hours("AM"===r?c%12:(c%12+12)%24):i.clone().hours(c);this.setState({date:s}),n(s.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateMinutes",value:function(){var e=this.props.onChange,t=this.state,n=t.minutes,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<0||r>59)this.syncState(this.props);else{var a=o.clone().minutes(r);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateDay",value:function(){var e=this.props.onChange,t=this.state,n=t.day,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<1||r>31)this.syncState(this.props);else{var a=o.clone().date(r);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateMonth",value:function(){var e=this.props.onChange,t=this.state,n=t.month,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<1||r>12)this.syncState(this.props);else{var a=o.clone().month(r-1);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateYear",value:function(){var e=this.props.onChange,t=this.state,n=t.year,o=t.date,r=parseInt(n,10);if(!Object(D.isInteger)(r)||r<0||r>9999)this.syncState(this.props);else{var a=o.clone().year(r);this.setState({date:a}),e(a.format("YYYY-MM-DDTHH:mm:ss"))}}},{key:"updateAmPm",value:function(e){var t=this;return function(){var n,o=t.props.onChange,r=t.state,a=r.am,i=r.date,c=r.hours;a!==e&&(n="PM"===e?i.clone().hours((parseInt(c,10)%12+12)%24):i.clone().hours(parseInt(c,10)%12),t.setState({date:n}),o(n.format("YYYY-MM-DDTHH:mm:ss")))}}},{key:"onChangeDay",value:function(e){this.setState({day:e.target.value})}},{key:"onChangeMonth",value:function(e){this.setState({month:e.target.value})}},{key:"onChangeYear",value:function(e){this.setState({year:e.target.value})}},{key:"onChangeHours",value:function(e){this.setState({hours:e.target.value})}},{key:"onChangeMinutes",value:function(e){this.setState({minutes:e.target.value})}},{key:"renderMonth",value:function(e){return Object(r.createElement)("div",{key:"render-month",className:"components-datetime__time-field components-datetime__time-field-month"},Object(r.createElement)("select",{"aria-label":Object(S.__)("Month"),className:"components-datetime__time-field-month-select",value:e,onChange:this.onChangeMonth,onBlur:this.updateMonth},Object(r.createElement)("option",{value:"01"},Object(S.__)("January")),Object(r.createElement)("option",{value:"02"},Object(S.__)("February")),Object(r.createElement)("option",{value:"03"},Object(S.__)("March")),Object(r.createElement)("option",{value:"04"},Object(S.__)("April")),Object(r.createElement)("option",{value:"05"},Object(S.__)("May")),Object(r.createElement)("option",{value:"06"},Object(S.__)("June")),Object(r.createElement)("option",{value:"07"},Object(S.__)("July")),Object(r.createElement)("option",{value:"08"},Object(S.__)("August")),Object(r.createElement)("option",{value:"09"},Object(S.__)("September")),Object(r.createElement)("option",{value:"10"},Object(S.__)("October")),Object(r.createElement)("option",{value:"11"},Object(S.__)("November")),Object(r.createElement)("option",{value:"12"},Object(S.__)("December"))))}},{key:"renderDay",value:function(e){return Object(r.createElement)("div",{key:"render-day",className:"components-datetime__time-field components-datetime__time-field-day"},Object(r.createElement)("input",{"aria-label":Object(S.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",value:e,step:1,min:1,onChange:this.onChangeDay,onBlur:this.updateDay}))}},{key:"renderDayMonthFormat",value:function(e){var t=this.state,n=t.day,o=t.month,r=[this.renderDay(n),this.renderMonth(o)];return e?r:r.reverse()}},{key:"render",value:function(){var e=this.props.is12Hour,t=this.state,n=t.year,o=t.minutes,a=t.hours,i=t.am;return Object(r.createElement)("div",{className:p()("components-datetime__time")},Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Date")),Object(r.createElement)("div",{className:"components-datetime__time-wrapper"},this.renderDayMonthFormat(e),Object(r.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(r.createElement)("input",{"aria-label":Object(S.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",step:1,value:n,onChange:this.onChangeYear,onBlur:this.updateYear})))),Object(r.createElement)("fieldset",null,Object(r.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(S.__)("Time")),Object(r.createElement)("div",{className:"components-datetime__time-wrapper"},Object(r.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(r.createElement)("input",{"aria-label":Object(S.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",step:1,min:this.getMinHours(),max:this.getMaxHours(),value:a,onChange:this.onChangeHours,onBlur:this.updateHours}),Object(r.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(r.createElement)("input",{"aria-label":Object(S.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",min:0,max:59,value:o,onChange:this.onChangeMinutes,onBlur:this.updateMinutes})),e&&Object(r.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(r.createElement)(I,{"aria-pressed":"AM"===i,isDefault:!0,className:"components-datetime__time-am-button",isToggled:"AM"===i,onClick:this.updateAmPm("AM")},Object(S.__)("AM")),Object(r.createElement)(I,{"aria-pressed":"PM"===i,isDefault:!0,className:"components-datetime__time-pm-button",isToggled:"PM"===i,onClick:this.updateAmPm("PM")},Object(S.__)("PM"))))))}}]),t}(r.Component),Je=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={calendarHelpIsVisible:!1},e.onClickDescriptionToggle=e.onClickDescriptionToggle.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"onClickDescriptionToggle",value:function(){this.setState({calendarHelpIsVisible:!this.state.calendarHelpIsVisible})}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.is12Hour,o=e.onChange;return Object(r.createElement)("div",{className:"components-datetime"},!this.state.calendarHelpIsVisible&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Qe,{currentTime:t,onChange:o,is12Hour:n}),Object(r.createElement)(Xe,{currentDate:t,onChange:o})),this.state.calendarHelpIsVisible&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"components-datetime__calendar-help"},Object(r.createElement)("h4",null,Object(S.__)("Click to Select")),Object(r.createElement)("ul",null,Object(r.createElement)("li",null,Object(S.__)("Click the right or left arrows to select other months in the past or the future.")),Object(r.createElement)("li",null,Object(S.__)("Click the desired day to select it."))),Object(r.createElement)("h4",null,Object(S.__)("Navigating with a keyboard")),Object(r.createElement)("ul",null,Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(S._x)("Enter","keyboard button")},"↵")," ",Object(r.createElement)("span",null,Object(S.__)("Select the date in focus."))),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(S.__)("Left and Right Arrows")},"←/→")," ",Object(S.__)("Move backward (left) or forward (right) by one day.")),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(S.__)("Up and Down Arrows")},"↑/↓")," ",Object(S.__)("Move backward (up) or forward (down) by one week.")),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(S.__)("Page Up and Page Down")},Object(S.__)("PgUp/PgDn"))," ",Object(S.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(r.createElement)("li",null,Object(r.createElement)("abbr",{"aria-label":Object(S.__)("Home and End")},Object(S.__)("Home/End"))," ",Object(S.__)("Go to the first (home) or last (end) day of a week."))),Object(r.createElement)(I,{isSmall:!0,onClick:this.onClickDescriptionToggle},Object(S.__)("Close")))),!this.state.calendarHelpIsVisible&&Object(r.createElement)(I,{className:"components-datetime__date-help-button",isLink:!0,onClick:this.onClickDescriptionToggle},Object(S.__)("Calendar Help")))}}]),t}(r.Component),et=Object(r.createContext)(!1),tt=et.Consumer,nt=et.Provider,ot=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"],rt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).bindNode=e.bindNode.bind(Object(k.a)(Object(k.a)(e))),e.disable=e.disable.bind(Object(k.a)(Object(k.a)(e))),e.debouncedDisable=Object(D.debounce)(e.disable,{leading:!0}),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.disable(),this.observer=new window.MutationObserver(this.debouncedDisable),this.observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0})}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.debouncedDisable.cancel()}},{key:"bindNode",value:function(e){this.node=e}},{key:"disable",value:function(){C.focus.focusable.find(this.node).forEach(function(e){Object(D.includes)(ot,e.nodeName)&&e.setAttribute("disabled",""),e.hasAttribute("tabindex")&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})}},{key:"render",value:function(){var e=this.props,t=e.className,n=Object(T.a)(e,["className"]);return Object(r.createElement)(nt,{value:!0},Object(r.createElement)("div",Object(P.a)({ref:this.bindNode,className:p()(t,"components-disabled")},n),this.props.children))}}]),t}(r.Component);rt.Consumer=tt;var at=rt,it=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragStart=e.onDragStart.bind(Object(k.a)(Object(k.a)(e))),e.onDragOver=e.onDragOver.bind(Object(k.a)(Object(k.a)(e))),e.onDrop=e.onDrop.bind(Object(k.a)(Object(k.a)(e))),e.onDragEnd=e.onDragEnd.bind(Object(k.a)(Object(k.a)(e))),e.resetDragState=e.resetDragState.bind(Object(k.a)(Object(k.a)(e))),e.isChromeAndHasIframes=!1,e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,n=void 0===t?D.noop:t;e&&e.preventDefault(),this.resetDragState(),this.props.setTimeout(n)}},{key:"onDragOver",value:function(e){this.cloneWrapper.style.top="".concat(parseInt(this.cloneWrapper.style.top,10)+e.clientY-this.cursorTop,"px"),this.cloneWrapper.style.left="".concat(parseInt(this.cloneWrapper.style.left,10)+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,n=t.elementId,o=t.transferData,r=t.onDragStart,a=void 0===r?D.noop:r,i=document.getElementById(n);if(i){if("function"==typeof e.dataTransfer.setDragImage){var c=document.createElement("div");c.id="drag-image-".concat(n),c.classList.add("components-draggable__invisible-drag-image"),document.body.appendChild(c),e.dataTransfer.setDragImage(c,0,0),this.props.setTimeout(function(){document.body.removeChild(c)})}e.dataTransfer.setData("text",JSON.stringify(o));var s=i.getBoundingClientRect(),l=i.parentNode,u=parseInt(s.top,10),d=parseInt(s.left,10),h=i.cloneNode(!0);h.id="clone-".concat(n),this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),this.cloneWrapper.style.width="".concat(s.width+40,"px"),s.height>700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(u-20,"px"),this.cloneWrapper.style.left="".concat(d-20,"px")),Object(_.a)(h.querySelectorAll("iframe")).forEach(function(e){return e.parentNode.removeChild(e)}),this.cloneWrapper.appendChild(h),l.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)&&Object(_.a)(document.getElementById("editor").querySelectorAll("iframe")).length>0&&(this.isChromeAndHasIframes=!0,document.addEventListener("drop",this.onDrop)),this.props.setTimeout(a)}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}(r.Component),ct=Object(j.withSafeTimeout)(it),st=Object(r.createContext)({addDropZone:function(){},removeDropZone:function(){}}),lt=st.Provider,ut=st.Consumer,dt=function(e){var t=e.dataTransfer;if(t){if(Object(D.includes)(t.types,"Files"))return"file";if(Object(D.includes)(t.types,"text/html"))return"html"}return"default"},ht=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},ft=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onDragOver=e.onDragOver.bind(Object(k.a)(Object(k.a)(e))),e.onDrop=e.onDrop.bind(Object(k.a)(Object(k.a)(e))),e.addDropZone=e.addDropZone.bind(Object(k.a)(Object(k.a)(e))),e.removeDropZone=e.removeDropZone.bind(Object(k.a)(Object(k.a)(e))),e.resetDragState=e.resetDragState.bind(Object(k.a)(Object(k.a)(e))),e.toggleDraggingOverDocument=Object(D.throttle)(e.toggleDraggingOverDocument.bind(Object(k.a)(Object(k.a)(e))),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("dragover",this.onDragOver),window.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragover",this.onDragOver),window.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(D.filter)(this.dropZones,function(t){return t!==e})}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null}),this.dropZones.forEach(function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})}))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,o=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,r=Object(D.filter)(this.dropZones,function(e){return ht(t,e)&&(n=e.element,r=o.clientX,a=o.clientY,(i=n.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&r>=i.left&&r<=i.right&&a>=i.top&&a<=i.bottom);var n,r,a,i}),a=Object(D.find)(r,function(e){return!Object(D.some)(r,function(t){return t!==e&&e.element.parentElement.contains(t.element)})}),i=this.dropZones.indexOf(a),c=null;if(a){var s=a.element.getBoundingClientRect();c={x:o.clientX-s.left-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,o=n.cycle,r=void 0===o||o,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?D.noop:i,s=n.stopNavigationEvents,l=a(e);if(void 0!==l&&s&&(e.nativeEvent.stopImmediatePropagation(),"menuitem"===e.target.getAttribute("role")&&e.preventDefault(),e.stopPropagation()),l){var u=t(document.activeElement);if(u){var d=u.index,h=u.focusables,f=r?function(e,t,n){var o=e+n;return o<0?t+o:o>=t?o-t:o}(d,h.length,l):d+l;f>=0&&f0&&0===o,"is-active":e.isActive}),icon:e.icon,role:"menuitem",disabled:e.isDisabled},e.title)})}))}})};var _t=Object(r.forwardRef)(function(e,t){var n=e.href,o=e.children,a=e.className,i=e.rel,c=void 0===i?"":i,s=Object(T.a)(e,["href","children","className","rel"]);c=Object(D.uniq)(Object(D.compact)([].concat(Object(_.a)(c.split(" ")),["external","noreferrer","noopener"]))).join(" ");var l=p()("components-external-link",a);return Object(r.createElement)("a",Object(P.a)({},s,{className:l,href:n,target:"_blank",rel:c,ref:t})," ",o,Object(r.createElement)("span",{className:"screen-reader-text"},Object(S.__)("(opens in a new tab)")),Object(r.createElement)(J,{icon:"external",className:"components-external-link__icon"}))}),Dt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onMouseMove=e.onMouseMove.bind(Object(k.a)(Object(k.a)(e))),e.state={isDragging:!1,bounds:{},percentages:{}},e.containerRef=Object(r.createRef)(),e.imageRef=Object(r.createRef)(),e.horizontalPositionChanged=e.horizontalPositionChanged.bind(Object(k.a)(Object(k.a)(e))),e.verticalPositionChanged=e.verticalPositionChanged.bind(Object(k.a)(Object(k.a)(e))),e.onLoad=e.onLoad.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.setState({percentages:this.props.value})}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1})}},{key:"calculateBounds",value:function(){var e={top:0,left:0,bottom:0,right:0,width:0,height:0};if(!this.imageRef.current)return e;var t=this.imageRef.current.clientWidth,n=this.imageRef.current.clientHeight,o=this.pickerDimensions(),r=o.width/t,a=o.height/n;return a>=r?(e.width=e.right=o.width,e.height=n*r,e.top=(o.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=o.height,e.width=t*a,e.left=(o.width-e.width)/2,e.right=e.left+e.width),e}},{key:"onLoad",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,o=t.bounds,r=this.props.onChange;if(n){var a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},c=Math.max(o.left,Math.min(i.left,o.right)),s=Math.max(o.top,Math.min(i.top,o.bottom)),l={x:(c-o.left)/(a.width-2*o.left),y:(s-o.top)/(a.height-2*o.top)};this.setState({percentages:l},function(){r({x:this.state.percentages.x,y:this.state.percentages.y})})}}},{key:"fractionToPercentage",value:function(e){return Math.round(100*e)}},{key:"horizontalPositionChanged",value:function(e){this.positionChangeFromTextControl("x",e.target.value)}},{key:"verticalPositionChanged",value:function(e){this.positionChangeFromTextControl("y",e.target.value)}},{key:"positionChangeFromTextControl",value:function(e,t){var n=this.props.onChange,o=this.state.percentages,r=Math.max(Math.min(parseInt(t),100),0);o[e]=r?r/100:0,this.setState({percentages:o},function(){n({x:this.state.percentages.x,y:this.state.percentages.y})})}},{key:"pickerDimensions",value:function(){return this.containerRef.current?{width:this.containerRef.current.clientWidth,height:this.containerRef.current.clientHeight,top:this.containerRef.current.getBoundingClientRect().top+document.body.scrollTop,left:this.containerRef.current.getBoundingClientRect().left}:{width:0,height:0,left:0,top:0}}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,o=t.url,a=t.value,i=t.label,s=t.help,l=t.className,d=this.state,h=d.bounds,f=d.isDragging,b=d.percentages,v=this.pickerDimensions(),m={left:a.x*(v.width-2*h.left)+h.left,top:a.y*(v.height-2*h.top)+h.top},y={left:"".concat(m.left,"px"),top:"".concat(m.top,"px")},g=p()("components-focal-point-picker__icon_container",f?"is-dragging":null),O="inspector-focal-point-picker-control-".concat(n),k="inspector-focal-point-picker-control-horizontal-position-".concat(n),_="inspector-focal-point-picker-control-horizontal-position-".concat(n);return Object(r.createElement)(De,{label:i,id:O,help:s,className:l},Object(r.createElement)("div",{className:"components-focal-point-picker-wrapper"},Object(r.createElement)("div",{className:"components-focal-point-picker",onMouseDown:function(){return e.setState({isDragging:!0})},onDragStart:function(){return e.setState({isDragging:!0})},onMouseUp:function(){return e.setState({isDragging:!1})},onDrop:function(){return e.setState({isDragging:!1})},onMouseMove:this.onMouseMove,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(r.createElement)("img",{alt:"Dimensions helper",onLoad:this.onLoad,ref:this.imageRef,src:o,draggable:"false"}),Object(r.createElement)("div",{className:g,style:y},Object(r.createElement)(u,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(r.createElement)(c,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),Object(r.createElement)(c,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"}))))),Object(r.createElement)("div",{className:"components-focal-point-picker_position-display-container"},Object(r.createElement)(De,{label:Object(S.__)("Horizontal Pos."),id:k},Object(r.createElement)("input",{className:"components-text-control__input",id:k,max:100,min:0,onChange:this.horizontalPositionChanged,type:"number",value:this.fractionToPercentage(b.x)}),Object(r.createElement)("span",null,"%")),Object(r.createElement)(De,{label:Object(S.__)("Vertical Pos."),id:_},Object(r.createElement)("input",{className:"components-text-control__input",id:_,max:100,min:0,onChange:this.verticalPositionChanged,type:"number",value:this.fractionToPercentage(b.y)}),Object(r.createElement)("span",null,"%"))))}}]),t}(r.Component);Dt.defaultProps={url:null,value:{x:.5,y:.5},onChange:function(){}};var wt=Object(j.compose)([j.withInstanceId,z])(Dt),St=window.FocusEvent,jt=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).checkFocus=n.checkFocus.bind(Object(k.a)(Object(k.a)(n))),n.node=e.iframeRef||Object(r.createRef)(),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"checkFocus",value:function(){var e=this.node.current;if(document.activeElement===e){var t=new St("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(r.createElement)("iframe",Object(P.a)({ref:this.node},Object(D.omit)(this.props,["iframeRef","onFocus"])))}}]),t}(r.Component),Mt=Object(j.withGlobalEvents)({blur:"checkFocus"})(jt);var Ct=Object(j.compose)([j.withInstanceId,Object(j.withState)({currentInput:null})])(function(e){var t=e.className,n=e.currentInput,o=e.label,a=e.value,i=e.instanceId,c=e.onChange,s=e.beforeIcon,l=e.afterIcon,u=e.help,d=e.allowReset,h=e.initialPosition,f=e.min,b=e.max,v=e.setState,m=Object(T.a)(e,["className","currentInput","label","value","instanceId","onChange","beforeIcon","afterIcon","help","allowReset","initialPosition","min","max","setState"]),y="inspector-range-control-".concat(i),g=null===n?a:n,O=function(){null!==n&&v({currentInput:null})},k=function(e){var t=e.target.value;e.target.checkValidity()?(O(),c(""===t?void 0:parseFloat(t))):v({currentInput:t})},_=Object(D.isFinite)(g)?g:h||"";return Object(r.createElement)(De,{label:o,id:y,help:u,className:p()("components-range-control",t)},s&&Object(r.createElement)(J,{icon:s}),Object(r.createElement)("input",Object(P.a)({className:"components-range-control__slider",id:y,type:"range",value:_,onChange:k,"aria-describedby":u?y+"__help":void 0,min:f,max:b},m)),l&&Object(r.createElement)(J,{icon:l}),Object(r.createElement)("input",Object(P.a)({className:"components-range-control__number",type:"number",onChange:k,"aria-label":o,value:g,min:f,max:b,onBlur:O},m)),d&&Object(r.createElement)(I,{onClick:function(){O(),c()},disabled:void 0===a},Object(S.__)("Reset")))});var Pt=function(e){var t=e.fallbackFontSize,n=e.fontSizes,o=void 0===n?[]:n,a=e.disableCustomFontSizes,i=void 0!==a&&a,c=e.onChange,s=e.value,l=e.withSlider,u=void 0!==l&&l;if(i&&!o.length)return null;var d=o.find(function(e){return e.size===s}),h=d&&d.name||!s&&Object(S._x)("Normal","font size name")||Object(S._x)("Custom","font size name");return Object(r.createElement)(De,{label:Object(S.__)("Font Size")},Object(r.createElement)("div",{className:"components-font-size-picker__buttons"},o.length>0&&Object(r.createElement)(Ee,{className:"components-font-size-picker__dropdown",contentClassName:"components-font-size-picker__dropdown-content",position:"bottom",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(r.createElement)(I,{className:"components-font-size-picker__selector",isLarge:!0,onClick:n,"aria-expanded":t,"aria-label":Object(S.sprintf)(Object(S.__)("Font size: %s"),h)},h)},renderContent:function(){return Object(r.createElement)(gt,null,Object(D.map)(o,function(e){var t=e.name,n=e.size,o=e.slug,a=s===n||!s&&"normal"===o;return Object(r.createElement)(I,{key:o,onClick:function(){return c("normal"===o?void 0:n)},className:"is-font-".concat(o),role:"menuitemradio","aria-checked":a},a&&Object(r.createElement)(J,{icon:"saved"}),Object(r.createElement)("span",{className:"components-font-size-picker__dropdown-text-size",style:{fontSize:n}},t))}))}}),!u&&!i&&Object(r.createElement)("input",{className:"components-range-control__number",type:"number",onChange:function(e){var t=e.target.value;c(""!==t?Number(t):void 0)},"aria-label":Object(S.__)("Custom font size"),value:s||""}),Object(r.createElement)(I,{className:"components-color-palette__clear",type:"button",disabled:void 0===s,onClick:function(){return c(void 0)},isSmall:!0,isDefault:!0},Object(S.__)("Reset"))),u&&Object(r.createElement)(Ct,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:c,min:12,max:100,beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor"}))},Et=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(Object(k.a)(Object(k.a)(e))),e.bindInput=e.bindInput.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"openFileDialog",value:function(){this.input.click()}},{key:"bindInput",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.multiple,o=void 0!==n&&n,a=e.accept,i=e.onChange,c=e.icon,s=void 0===c?"upload":c,l=Object(T.a)(e,["children","multiple","accept","onChange","icon"]);return Object(r.createElement)("div",{className:"components-form-file-upload"},Object(r.createElement)(ee,Object(P.a)({icon:s,onClick:this.openFileDialog},l),t),Object(r.createElement)("input",{type:"file",ref:this.bindInput,multiple:o,style:{display:"none"},accept:a,onChange:i}))}}]),t}(r.Component);var zt=function(e){var t=e.className,n=e.checked,o=e.id,a=e.onChange,i=void 0===a?D.noop:a,s=Object(T.a)(e,["className","checked","id","onChange"]),l=p()("components-form-toggle",t,{"is-checked":n});return Object(r.createElement)("span",{className:l},Object(r.createElement)("input",Object(P.a)({className:"components-form-toggle__input",id:o,type:"checkbox",checked:n,onChange:i},s)),Object(r.createElement)("span",{className:"components-form-toggle__track"}),Object(r.createElement)("span",{className:"components-form-toggle__thumb"}),n?Object(r.createElement)(u,{className:"components-form-toggle__on",width:"2",height:"6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 6"},Object(r.createElement)(c,{d:"M0 0h2v6H0z"})):Object(r.createElement)(u,{className:"components-form-toggle__off",width:"6",height:"6","aria-hidden":"true",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 6"},Object(r.createElement)(c,{d:"M3 1.5c.8 0 1.5.7 1.5 1.5S3.8 4.5 3 4.5 1.5 3.8 1.5 3 2.2 1.5 3 1.5M3 0C1.3 0 0 1.3 0 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"})))},Tt=n(32);var It=Object(j.withInstanceId)(function(e){var t=e.value,n=e.status,o=e.title,a=e.displayTransform,i=e.isBorderless,c=void 0!==i&&i,s=e.disabled,l=void 0!==s&&s,u=e.onClickRemove,d=void 0===u?D.noop:u,h=e.onMouseEnter,f=e.onMouseLeave,b=e.messages,v=e.termPosition,m=e.termsCount,y=e.instanceId,g=p()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":c,"is-disabled":l}),O=a(t),k=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),O,v,m);return Object(r.createElement)("span",{className:g,onMouseEnter:h,onMouseLeave:f,title:o},Object(r.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(y)},Object(r.createElement)("span",{className:"screen-reader-text"},k),Object(r.createElement)("span",{"aria-hidden":"true"},O)),Object(r.createElement)(ee,{className:"components-form-token-field__remove-token",icon:"dismiss",onClick:!l&&function(){return d({value:t})},label:b.remove,"aria-describedby":"components-form-token-field__token-text-".concat(y)}))}),xt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(k.a)(Object(k.a)(e))),e.bindInput=e.bindInput.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"hasFocus",value:function(){return this.input===document.activeElement}},{key:"bindInput",value:function(e){this.input=e}},{key:"onChange",value:function(e){this.props.onChange({value:e.target.value})}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.isExpanded,o=e.instanceId,a=e.selectedSuggestionIndex,i=Object(T.a)(e,["value","isExpanded","instanceId","selectedSuggestionIndex"]),c=t.length+1;return Object(r.createElement)("input",Object(P.a)({ref:this.bindInput,id:"components-form-token-input-".concat(o),type:"text"},i,{value:t,onChange:this.onChange,size:c,className:"components-form-token-field__input",role:"combobox","aria-expanded":n,"aria-autocomplete":"list","aria-owns":n?"components-form-token-suggestions-".concat(o):void 0,"aria-activedescendant":-1!==a?"components-form-token-suggestions-".concat(o,"-").concat(a):void 0,"aria-describedby":"components-form-token-suggestions-howto-".concat(o)}))}}]),t}(r.Component),Ht=n(67),Nt=n.n(Ht),Rt=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).handleMouseDown=e.handleMouseDown.bind(Object(k.a)(Object(k.a)(e))),e.bindList=e.bindList.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidUpdate",value:function(){var e=this;this.props.selectedIndex>-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Nt()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),setTimeout(function(){e.scrollingIntoView=!1},100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(r.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(D.map)(this.props.suggestions,function(t,n){var o=e.computeSuggestionMatch(t),a=p()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(r.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:a,key:t,onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},o?Object(r.createElement)("span",{"aria-label":e.props.displayTransform(t)},o.suggestionBeforeMatch,Object(r.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):e.props.displayTransform(t))}))}}]),t}(r.Component);Rt.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var Lt=Rt,At={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1},Ft=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state=At,e.onKeyDown=e.onKeyDown.bind(Object(k.a)(Object(k.a)(e))),e.onKeyPress=e.onKeyPress.bind(Object(k.a)(Object(k.a)(e))),e.onFocus=e.onFocus.bind(Object(k.a)(Object(k.a)(e))),e.onBlur=e.onBlur.bind(Object(k.a)(Object(k.a)(e))),e.deleteTokenBeforeInput=e.deleteTokenBeforeInput.bind(Object(k.a)(Object(k.a)(e))),e.deleteTokenAfterInput=e.deleteTokenAfterInput.bind(Object(k.a)(Object(k.a)(e))),e.addCurrentToken=e.addCurrentToken.bind(Object(k.a)(Object(k.a)(e))),e.onContainerTouched=e.onContainerTouched.bind(Object(k.a)(Object(k.a)(e))),e.renderToken=e.renderToken.bind(Object(k.a)(Object(k.a)(e))),e.onTokenClickRemove=e.onTokenClickRemove.bind(Object(k.a)(Object(k.a)(e))),e.onSuggestionHovered=e.onSuggestionHovered.bind(Object(k.a)(Object(k.a)(e))),e.onSuggestionSelected=e.onSuggestionSelected.bind(Object(k.a)(Object(k.a)(e))),e.onInputChange=e.onInputChange.bind(Object(k.a)(Object(k.a)(e))),e.bindInput=e.bindInput.bind(Object(k.a)(Object(k.a)(e))),e.bindTokensAndInput=e.bindTokensAndInput.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidUpdate",value:function(){this.state.isActive&&!this.input.hasFocus()&&this.input.focus()}},{key:"bindInput",value:function(e){this.input=e}},{key:"bindTokensAndInput",value:function(e){this.tokensAndInput=e}},{key:"onFocus",value:function(e){this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}},{key:"onBlur",value:function(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(At)}},{key:"onKeyDown",value:function(e){var t=!1;switch(e.keyCode){case w.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case w.ENTER:t=this.addCurrentToken();break;case w.LEFT:t=this.handleLeftArrowKey();break;case w.UP:t=this.handleUpArrowKey();break;case w.RIGHT:t=this.handleRightArrowKey();break;case w.DOWN:t=this.handleDownArrowKey();break;case w.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case w.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case w.ESCAPE:t=this.handleEscapeKey(e),e.stopPropagation()}t&&e.preventDefault()}},{key:"onKeyPress",value:function(e){var t=!1;switch(e.charCode){case 44:t=this.handleCommaKey()}t&&e.preventDefault()}},{key:"onContainerTouched",value:function(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}},{key:"onTokenClickRemove",value:function(e){this.deleteToken(e.value),this.input.focus()}},{key:"onSuggestionHovered",value:function(e){var t=this.getMatchingSuggestions().indexOf(e);t>=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,o=t.split(n),r=Object(D.last)(o)||"",a=r.trim().length>1,i=this.getMatchingSuggestions(r),c=a&&!!i.length;o.length>1&&this.addNewTokens(o.slice(0,-1)),this.setState({incompleteTokenValue:r,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.props.onInputChange(r),a&&(this.setState({isExpanded:c}),i.length?this.props.debouncedSpeak(Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",i.length),i.length),"assertive"):this.props.debouncedSpeak(Object(S.__)("No results."),"assertive"))}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState(function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}}),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState(function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}}),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState(function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}})}},{key:"moveInputBeforePreviousToken",value:function(){this.setState(function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}})}},{key:"moveInputAfterNextToken",value:function(){this.setState(function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}})}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var o=Object(D.clone)(this.props.value);o.splice.apply(o,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(o)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter(function(n){return t.getTokenValue(n)!==t.getTokenValue(e)});this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(Tt.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,r=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform)(e),a=[],i=[];return 0===r.length?t=Object(D.difference)(t,n):(r=r.toLocaleLowerCase(),Object(D.each)(t,function(e){var t=e.toLocaleLowerCase().indexOf(r);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&i.push(e))}),t=a.concat(i)),Object(D.take)(t,o)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(D.some)(this.props.value,function(n){return t.getTokenValue(e)===t.getTokenValue(n)})}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"renderTokensAndInput",value:function(){var e=Object(D.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var o=this.getTokenValue(e),a=e.status?e.status:void 0,i=t+1,c=n.length;return Object(r.createElement)(It,{key:"token-"+o,value:o,status:a,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==a&&this.props.disabled,messages:this.props.messages,termsCount:c,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,a=e.maxLength,i=e.value,c={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return a&&i.length>=a||(c=Object(o.a)({},c,{onChange:this.onInputChange})),Object(r.createElement)(xt,c)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,o=void 0===n?Object(S.__)("Add item"):n,a=e.instanceId,i=e.className,c=this.state.isExpanded,s=p()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),l={className:"components-form-token-field",tabIndex:"-1"},u=this.getMatchingSuggestions();return t||(l=Object.assign({},l,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(r.createElement)("div",l,Object(r.createElement)("label",{htmlFor:"components-form-token-input-".concat(a),className:"components-form-token-field__label"},o),Object(r.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),c&&Object(r.createElement)(Lt,{instanceId:a,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:u,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(r.createElement)("div",{id:"components-form-token-suggestions-howto-".concat(a),className:"screen-reader-text"},Object(S.__)("Separate with commas")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),t}(r.Component);Ft.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:D.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(S.__)("Item added."),removed:Object(S.__)("Item removed."),remove:Object(S.__)("Remove item")}};var Vt=ye(Object(j.withInstanceId)(Ft));var Bt=function(e){var t,n=e.icon,a=void 0===n?null:n,i=e.size,c=e.className;if("string"==typeof a)return t=i||20,Object(r.createElement)(J,{icon:a,size:t,className:c});if(t=i||24,"function"==typeof a)return a.prototype instanceof r.Component?Object(r.createElement)(a,{className:c,size:t}):a();if(a&&("svg"===a.type||a.type===u)){var s=Object(o.a)({className:c,width:t,height:t},a.props);return Object(r.createElement)(u,s)}return Object(r.isValidElement)(a)?Object(r.cloneElement)(a,{className:c,size:t}):a};var Kt=Object(j.withInstanceId)(function(e){var t=e.children,n=e.className,o=void 0===n?"":n,a=e.instanceId,i=e.label;if(!r.Children.count(t))return null;var c="components-menu-group-label-".concat(a),s=p()(o,"components-menu-group");return Object(r.createElement)("div",{className:s},i&&Object(r.createElement)("div",{className:"components-menu-group__label",id:c},i),Object(r.createElement)(gt,{orientation:"vertical","aria-labelledby":i?c:null},t))});var Wt=Object(j.withInstanceId)(function(e){var t=e.children,n=e.info,a=e.className,i=e.icon,c=e.shortcut,s=e.isSelected,l=e.role,u=void 0===l?"menuitem":l,d=e.instanceId,h=Object(T.a)(e,["children","info","className","icon","shortcut","isSelected","role","instanceId"]);if(a=p()("components-menu-item__button",a,{"has-icon":i}),n){var f="edit-post-feature-toggle__info-"+d;h["aria-describedby"]=f,t=Object(r.createElement)("span",{className:"components-menu-item__info-wrapper"},t,Object(r.createElement)("span",{id:f,className:"components-menu-item__info"},n))}var b=I;return i&&(Object(D.isString)(i)||(i=Object(r.cloneElement)(i,{className:"components-menu-items__item-icon",height:20,width:20})),b=ee,h.icon=i),Object(r.createElement)(b,Object(o.a)({"aria-checked":"menuitemcheckbox"===u||"menuitemradio"===u?s:void 0,role:u,className:a},h),t,Object(r.createElement)(Z,{className:"components-menu-item__shortcut",shortcut:c}))});function Ut(e){var t=e.choices,n=void 0===t?[]:t,o=e.onSelect,a=e.value;return n.map(function(e){var t=a===e.value;return Object(r.createElement)(Wt,{key:e.value,role:"menuitemradio",icon:t&&"yes",isSelected:t,shortcut:e.shortcut,onClick:function(){t||o(e.value)}},e.label)})}var $t=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).containerRef=Object(r.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(k.a)(Object(k.a)(e))),e.handleClickOutside=e.handleClickOutside.bind(Object(k.a)(Object(k.a)(e))),e.focusFirstTabbable=e.focusFirstTabbable.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusFirstTabbable()}},{key:"focusFirstTabbable",value:function(){var e=C.focus.tabbable.find(this.containerRef.current);e.length&&e[0].focus()}},{key:"handleClickOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===w.ESCAPE&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.preventDefault(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.contentLabel,n=e.aria,o=n.describedby,a=n.labelledby,i=e.children,c=e.className,s=e.role,l=e.style;return Object(r.createElement)("div",{className:c,style:l,ref:this.containerRef,role:s,"aria-label":t,"aria-labelledby":t?null:a,"aria-describedby":o,tabIndex:"-1"},i)}}]),t}(r.Component),Yt=Object(j.compose)([W,U,Y.a,Object(j.withGlobalEvents)({keydown:"handleKeyDown"})])($t),qt=function(e){var t=e.icon,n=e.title,o=e.onClose,a=e.closeLabel,i=e.headingId,c=e.isDismissable,s=a||Object(S.__)("Close dialog");return Object(r.createElement)("div",{className:"components-modal__header"},Object(r.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(r.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(r.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),c&&Object(r.createElement)(ee,{onClick:o,icon:"no-alt",label:s}))},Gt=new Set(["alert","status","log","marquee","timer"]),Zt=[],Xt=!1;function Qt(e){if(!Xt){var t=document.body.children;Object(D.forEach)(t,function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Gt.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Zt.push(t))}),Xt=!0}}var Jt,en=0,tn=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).prepareDOM(),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){1===++en&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--en&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){Jt||(Jt=document.createElement("div"),document.body.appendChild(Jt)),this.node=document.createElement("div"),Jt.appendChild(this.node)}},{key:"cleanDOM",value:function(){Jt.removeChild(this.node)}},{key:"openFirstModal",value:function(){Qt(Jt),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),Xt&&(Object(D.forEach)(Zt,function(e){e.removeAttribute("aria-hidden")}),Zt=[],Xt=!1)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.className,o=e.onRequestClose,a=e.title,i=e.icon,c=e.closeButtonLabel,s=e.children,l=e.aria,u=e.instanceId,d=e.isDismissable,h=Object(T.a)(e,["overlayClassName","className","onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissable"]),f=l.labelledby||"components-modal-header-".concat(u);return Object(r.createPortal)(Object(r.createElement)(ne,{className:p()("components-modal__screen-overlay",t)},Object(r.createElement)(Yt,Object(P.a)({className:p()("components-modal__frame",n),onRequestClose:o,aria:{labelledby:a?f:null,describedby:l.describedby}},h),Object(r.createElement)("div",{className:"components-modal__content",tabIndex:"0"},Object(r.createElement)(qt,{closeLabel:c,headingId:f,icon:i,isDismissable:d,onClose:o,title:a}),s))),this.node)}}]),t}(r.Component);tn.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,onRequestClose:D.noop,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissable:!0,aria:{labelledby:null,describedby:null}};var nn=Object(j.withInstanceId)(tn);var on=function(e){var t=e.className,n=e.status,o=e.children,a=e.onRemove,i=void 0===a?D.noop:a,c=e.isDismissible,s=void 0===c||c,l=e.actions,u=void 0===l?[]:l,d=e.__unstableHTML,h=p()(t,"components-notice","is-"+n,{"is-dismissible":s});return d&&(o=Object(r.createElement)(r.RawHTML,null,o)),Object(r.createElement)("div",{className:h},Object(r.createElement)("div",{className:"components-notice__content"},o,u.map(function(e,t){var n=e.className,o=e.label,a=e.noDefaultClasses,i=void 0!==a&&a,c=e.onClick,s=e.url;return Object(r.createElement)(I,{key:t,href:s,isDefault:!i&&!s,isLink:!i&&!!s,onClick:s?void 0:c,className:p()("components-notice__action",n)},o)})),s&&Object(r.createElement)(ee,{className:"components-notice__dismiss",icon:"no",label:Object(S.__)("Dismiss this notice"),onClick:i,tooltip:!1}))};var rn=function(e){var t=e.notices,n=e.onRemove,o=void 0===n?D.noop:n,a=e.className,i=e.children;return a=p()("components-notice-list",a),Object(r.createElement)("div",{className:a},i,Object(_.a)(t).reverse().map(function(e){return Object(r.createElement)(on,Object(P.a)({},Object(D.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,function(){return o(t)})}),e.content);var t}))};var an=function(e){var t=e.label,n=e.children;return Object(r.createElement)("div",{className:"components-panel__header"},t&&Object(r.createElement)("h2",null,t),n)};var cn=function(e){var t=e.header,n=e.className,o=e.children,a=p()(n,"components-panel");return Object(r.createElement)("div",{className:a},t&&Object(r.createElement)(an,{label:t}),o)},sn=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={opened:void 0===e.initialOpen||e.initialOpen},n.toggle=n.toggle.bind(Object(k.a)(Object(k.a)(n))),n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"toggle",value:function(e){e.preventDefault(),void 0===this.props.opened&&this.setState(function(e){return{opened:!e.opened}}),this.props.onToggle&&this.props.onToggle()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,o=e.opened,a=e.className,s=e.icon,l=e.forwardedRef,d=void 0===o?this.state.opened:o,h=p()("components-panel__body",a,{"is-opened":d});return Object(r.createElement)("div",{className:h,ref:l},!!t&&Object(r.createElement)("h2",{className:"components-panel__body-title"},Object(r.createElement)(I,{className:"components-panel__body-toggle",onClick:this.toggle,"aria-expanded":d},Object(r.createElement)("span",{"aria-hidden":"true"},d?Object(r.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i,null,Object(r.createElement)(c,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(r.createElement)(i,null,Object(r.createElement)(c,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):Object(r.createElement)(u,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(i,null,Object(r.createElement)(c,{fill:"none",d:"M0,0h24v24H0V0z"})),Object(r.createElement)(i,null,Object(r.createElement)(c,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),t,s&&Object(r.createElement)(Bt,{icon:s,className:"components-panel__icon",size:20}))),d&&n)}}]),t}(r.Component),ln=function(e,t){return Object(r.createElement)(sn,Object(P.a)({},e,{forwardedRef:t}))};ln.displayName="PanelBody";var un=Object(r.forwardRef)(ln);var dn=function(e){var t=e.className,n=e.children,o=p()("components-panel__row",t);return Object(r.createElement)("div",{className:o},n)};var hn=function(e){var t=e.icon,n=e.children,o=e.label,a=e.instructions,i=e.className,c=e.notices,s=Object(T.a)(e,["icon","children","label","instructions","className","notices"]),l=p()("components-placeholder",i);return Object(r.createElement)("div",Object(P.a)({},s,{className:l}),c,Object(r.createElement)("div",{className:"components-placeholder__label"},Object(D.isString)(t)?Object(r.createElement)(J,{icon:t}):t,o),!!a&&Object(r.createElement)("div",{className:"components-placeholder__instructions"},a),Object(r.createElement)("div",{className:"components-placeholder__fieldset"},n))};function fn(){var e=window.getSelection();if(0===e.rangeCount)return{};var t=Object(C.getRectangleFromRange)(e.getRangeAt(0)),n=t.top+t.height,o=t.left+t.width/2,r=Object(C.getOffsetParent)(e.anchorNode);if(r){var a=r.getBoundingClientRect();n-=a.top,o-=a.left}return{top:n,left:o}}var pn=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).state={style:fn()},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"render",value:function(){var e=this.props.children,t=this.state.style;return Object(r.createElement)("div",{className:"editor-format-toolbar__selection-position block-editor-format-toolbar__selection-position",style:t},e)}}]),t}(r.Component);function bn(e){var t=e.label,n=e.noOptionLabel,o=e.onChange,a=e.selectedId,i=e.tree,c=Object(T.a)(e,["label","noOptionLabel","onChange","selectedId","tree"]),s=Object(D.compact)([n&&{value:"",label:n}].concat(Object(_.a)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(D.flatMap)(t,function(t){return[{value:t.id,label:Object(D.repeat)(" ",3*n)+Object(D.unescape)(t.name)}].concat(Object(_.a)(e(t.children||[],n+1)))})}(i))));return Object(r.createElement)(Bn,Object(P.a)({label:t,options:s,onChange:o},{value:a},c))}function vn(e){var t,n,a=e.label,i=e.noOptionLabel,c=e.categoriesList,s=e.selectedCategoryId,l=e.onChange,u=(t=c.map(function(e){return Object(o.a)({children:[],parent:null},e)}),(n=Object(D.groupBy)(t,"parent")).null&&n.null.length?t:function e(t){return t.map(function(t){var r=n[t.id];return Object(o.a)({},t,{children:r&&r.length?e(r):[]})})}(n[0]||[]));return Object(r.createElement)(bn,Object(P.a)({label:a,noOptionLabel:i,onChange:l},{tree:u,selectedId:s}))}var mn=1,yn=100;function gn(e){var t=e.categoriesList,n=e.selectedCategoryId,o=e.numberOfItems,a=e.order,i=e.orderBy,c=e.maxItems,s=void 0===c?yn:c,l=e.minItems,u=void 0===l?mn:l,d=e.onCategoryChange,f=e.onNumberOfItemsChange,p=e.onOrderChange,b=e.onOrderByChange;return[p&&b&&Object(r.createElement)(Bn,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(i,"/").concat(a),options:[{label:Object(S.__)("Newest to Oldest"),value:"date/desc"},{label:Object(S.__)("Oldest to Newest"),value:"date/asc"},{label:Object(S.__)("A → Z"),value:"title/asc"},{label:Object(S.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(h.a)(t,2),o=n[0],r=n[1];r!==a&&p(r),o!==i&&b(o)}}),d&&Object(r.createElement)(vn,{key:"query-controls-category-select",categoriesList:t,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:n,onChange:d}),f&&Object(r.createElement)(Ct,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:o,onChange:f,min:u,max:s,required:!0})]}var On=Object(j.withInstanceId)(function(e){var t=e.label,n=e.className,o=e.selected,a=e.help,i=e.instanceId,c=e.onChange,s=e.options,l=void 0===s?[]:s,u="inspector-radio-control-".concat(i),d=function(e){return c(e.target.value)};return!Object(D.isEmpty)(l)&&Object(r.createElement)(De,{label:t,id:u,help:a,className:p()(n,"components-radio-control")},l.map(function(e,t){return Object(r.createElement)("div",{key:"".concat(u,"-").concat(t),className:"components-radio-control__option"},Object(r.createElement)("input",{id:"".concat(u,"-").concat(t),className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:d,checked:e.value===o,"aria-describedby":a?"".concat(u,"__help"):void 0}),Object(r.createElement)("label",{htmlFor:"".concat(u,"-").concat(t)},e.label))}))}),kn=n(27),_n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Dn=function(){function e(e,t){for(var n=0;n div,\n\t\t\tbody > div > iframe {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\thtml.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio > div,\n\t\t\tbody.wp-has-aspect-ratio > div > iframe {\n\t\t\t\theight: 100%;\n\t\t\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t\t\t}\n\t\t\tbody > div > * {\n\t\t\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\t\t\tmargin-bottom: 0 !important;\n\t\t\t}\n\t\t"}}),this.props.styles&&this.props.styles.map(function(e,t){return Object(r.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})})),Object(r.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(r.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(r.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"\n\t\t\t( function() {\n\t\t\t\tvar observer;\n\n\t\t\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfunction sendResize() {\n\t\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t\t\twindow.parent.postMessage( {\n\t\t\t\t\t\taction: 'resize',\n\t\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t\t}, '*' );\n\t\t\t\t}\n\n\t\t\t\tobserver = new MutationObserver( sendResize );\n\t\t\t\tobserver.observe( document.body, {\n\t\t\t\t\tattributes: true,\n\t\t\t\t\tattributeOldValue: false,\n\t\t\t\t\tcharacterData: true,\n\t\t\t\t\tcharacterDataOldValue: false,\n\t\t\t\t\tchildList: true,\n\t\t\t\t\tsubtree: true\n\t\t\t\t} );\n\n\t\t\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t\t\t// the iframe root and interfere with our mechanism for\n\t\t\t\t// determining the unconstrained page bounds.\n\t\t\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\t\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t\t\t} );\n\n\t\t\t\tdocument.body.style.position = 'absolute';\n\t\t\t\tdocument.body.style.width = '100%';\n\t\t\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\t\t\tsendResize();\n\n\t\t\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\t\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\t} )();"}}),this.props.scripts&&this.props.scripts.map(function(e){return Object(r.createElement)("script",{key:e,src:e})}))),t=this.iframe.current.contentWindow.document;t.open(),t.write(""+Object(r.renderToString)(e)),t.close()}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(r.createElement)(Mt,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onLoad:this.trySandbox,onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),t}(r.Component),Vn=Fn=Object(j.withGlobalEvents)({message:"checkMessageForResize"})(Fn);var Bn=Object(j.withInstanceId)(function(e){var t=e.help,n=e.instanceId,o=e.label,a=e.multiple,i=void 0!==a&&a,c=e.onChange,s=e.options,l=void 0===s?[]:s,u=e.className,d=Object(T.a)(e,["help","instanceId","label","multiple","onChange","options","className"]),h="inspector-select-control-".concat(n);return!Object(D.isEmpty)(l)&&Object(r.createElement)(De,{label:o,id:h,help:t,className:u},Object(r.createElement)("select",Object(P.a)({id:h,className:"components-select-control__input",onChange:function(e){if(i){var t=Object(_.a)(e.target.options).filter(function(e){return e.selected}).map(function(e){return e.value});c(t)}else c(e.target.value)},"aria-describedby":t?"".concat(h,"__help"):void 0,multiple:i},d),l.map(function(e,t){return Object(r.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))});function Kn(){return Object(r.createElement)("span",{className:"components-spinner"})}var Wn=n(33),Un=n.n(Wn),$n=n(23);var Yn=function(e){function t(e){var n;return Object(v.a)(this,t),(n=Object(m.a)(this,Object(y.a)(t).call(this,e))).state={response:null},n}return Object(O.a)(t,e),Object(g.a)(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=Object(D.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){Object(D.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var n=e.block,r=e.attributes,a=void 0===r?null:r,i=e.urlQueryArgs,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object($n.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Object(o.a)({context:"edit"},null!==t?{attributes:t}:{},n))}(n,a,void 0===i?{}:i),s=this.currentFetchRequest=Un()({path:c}).then(function(e){t.isStillMounted&&s===t.currentFetchRequest&&e&&e.rendered&&t.setState({response:e.rendered})}).catch(function(e){t.isStillMounted&&s===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})});return s}}},{key:"render",value:function(){var e=this.state.response,t=this.props.className;if(!e)return Object(r.createElement)(hn,{className:t},Object(r.createElement)(Kn,null));if(e.error){var n=Object(S.sprintf)(Object(S.__)("Error loading block: %s"),e.errorMsg);return Object(r.createElement)(hn,{className:t},n)}return e.length?Object(r.createElement)(r.RawHTML,{key:"html",className:t},e):Object(r.createElement)(hn,{className:t},Object(S.__)("No results found."))}}]),t}(r.Component),qn=function(e){var t=e.tabId,n=e.onClick,o=e.children,a=e.selected,i=Object(T.a)(e,["tabId","onClick","children","selected"]);return Object(r.createElement)(I,Object(P.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),o)},Gn=function(e){function t(){var e;Object(v.a)(this,t);var n=(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).props,o=n.tabs,r=n.initialTabName;return e.handleClick=e.handleClick.bind(Object(k.a)(Object(k.a)(e))),e.onNavigate=e.onNavigate.bind(Object(k.a)(Object(k.a)(e))),e.state={selected:r||(o.length>0?o[0].name:null)},e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"handleClick",value:function(e){var t=this.props.onSelect,n=void 0===t?D.noop:t;this.setState({selected:e}),n(e)}},{key:"onNavigate",value:function(e,t){t.click()}},{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,o=n.activeClass,a=void 0===o?"is-active":o,i=n.className,c=n.instanceId,s=n.orientation,l=void 0===s?"horizontal":s,u=n.tabs,d=Object(D.find)(u,{name:t}),h=c+"-"+d.name;return Object(r.createElement)("div",{className:i},Object(r.createElement)(gt,{role:"tablist",orientation:l,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},u.map(function(n){return Object(r.createElement)(qn,{className:"".concat(n.className," ").concat(n.name===t?a:""),tabId:c+"-"+n.name,"aria-controls":c+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(D.partial)(e.handleClick,n.name)},n.title)})),d&&Object(r.createElement)("div",{"aria-labelledby":h,role:"tabpanel",id:h+"-view",className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(d)))}}]),t}(r.Component),Zn=Object(j.withInstanceId)(Gn);var Xn=Object(j.withInstanceId)(function(e){var t=e.label,n=e.value,o=e.help,a=e.instanceId,i=e.onChange,c=e.rows,s=void 0===c?4:c,l=e.className,u=Object(T.a)(e,["label","value","help","instanceId","onChange","rows","className"]),d="inspector-textarea-control-".concat(a);return Object(r.createElement)(De,{label:t,id:d,help:o,className:l},Object(r.createElement)("textarea",Object(P.a)({className:"components-textarea-control__input",id:d,rows:s,onChange:function(e){return i(e.target.value)},"aria-describedby":o?d+"__help":void 0,value:n},u)))}),Qn=function(e){function t(){var e;return Object(v.a)(this,t),(e=Object(m.a)(this,Object(y.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(t,e),Object(g.a)(t,[{key:"onChange",value:function(e){this.props.onChange&&this.props.onChange(e.target.checked)}},{key:"render",value:function(){var e,t,n=this.props,o=n.label,a=n.checked,i=n.help,c=n.instanceId,s=n.className,l="inspector-toggle-control-".concat(c);return i&&(e=l+"__help",t=Object(D.isFunction)(i)?i(a):i),Object(r.createElement)(De,{id:l,help:t,className:p()("components-toggle-control",s)},Object(r.createElement)(zt,{id:l,checked:a,onChange:this.onChange,"aria-describedby":e}),Object(r.createElement)("label",{htmlFor:l,className:"components-toggle-control__label"},o))}}]),t}(r.Component),Jn=Object(j.withInstanceId)(Qn),eo=function(e){return Object(r.createElement)("div",{className:e.className},e.children)};var to=function(e){var t=e.containerClassName,n=e.icon,o=e.title,a=e.shortcut,i=e.subscript,c=e.onClick,s=e.className,l=e.isActive,u=e.isDisabled,d=e.extraProps,h=e.children;return Object(r.createElement)(eo,{className:t},Object(r.createElement)(ee,Object(P.a)({icon:n,label:o,shortcut:a,"data-subscript":i,onClick:function(e){e.stopPropagation(),c()},className:p()("components-toolbar__control",s,{"is-active":l}),"aria-pressed":l,disabled:u},d)),h)},no=function(e){return Object(r.createElement)("div",{className:e.className},e.children)};var oo=function(e){var t=e.controls,n=void 0===t?[]:t,o=e.children,a=e.className,i=e.isCollapsed,c=e.icon,s=e.label,l=Object(T.a)(e,["controls","children","className","isCollapsed","icon","label"]);if(!(n&&n.length||o))return null;var u=n;return Array.isArray(u[0])||(u=[u]),i?Object(r.createElement)(kt,{icon:c,label:s,controls:u,className:p()("components-toolbar",a)}):Object(r.createElement)(no,Object(P.a)({className:p()("components-toolbar",a)},l),Object(D.flatMap)(u,function(e,t){return e.map(function(e,n){return Object(r.createElement)(to,Object(P.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e))})}),o)},ro=Object(j.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(k.a)(Object(k.a)(e))),e.focusNextRegion=e.focusRegion.bind(Object(k.a)(Object(k.a)(e)),1),e.focusPreviousRegion=e.focusRegion.bind(Object(k.a)(Object(k.a)(e)),-1),e.onClick=e.onClick.bind(Object(k.a)(Object(k.a)(e))),e.state={isFocusingRegions:!1},e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"bindContainer",value:function(e){this.container=e}},{key:"focusRegion",value:function(e){var t=Object(_.a)(this.container.querySelectorAll('[role="region"]'));if(t.length){var n=t[0],o=t.indexOf(document.activeElement);if(-1!==o){var r=o+e;n=t[r=(r=-1===r?t.length-1:r)===t.length?0:r]}n.focus(),this.setState({isFocusingRegions:!0})}}},{key:"onClick",value:function(){this.setState({isFocusingRegions:!1})}},{key:"render",value:function(){var t=p()("components-navigate-regions",{"is-focusing-regions":this.state.isFocusingRegions});return Object(r.createElement)("div",{ref:this.bindContainer,className:t,onClick:this.onClick},Object(r.createElement)(Re,{bindGlobal:!0,shortcuts:{"ctrl+`":this.focusNextRegion,"shift+alt+n":this.focusNextRegion,"ctrl+shift+`":this.focusPreviousRegion,"shift+alt+p":this.focusPreviousRegion}}),Object(r.createElement)(e,this.props))}}]),n}(r.Component)},"navigateRegions"),ao=function(e){return Object(j.createHigherOrderComponent)(function(t){return function(n){function o(){var e;return Object(v.a)(this,o),(e=Object(m.a)(this,Object(y.a)(o).apply(this,arguments))).nodeRef=e.props.node,e.state={fallbackStyles:void 0,grabStylesCompleted:!1},e.bindRef=e.bindRef.bind(Object(k.a)(Object(k.a)(e))),e}return Object(O.a)(o,n),Object(g.a)(o,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"componentDidMount",value:function(){this.grabFallbackStyles()}},{key:"componentDidUpdate",value:function(){this.grabFallbackStyles()}},{key:"grabFallbackStyles",value:function(){var t=this.state,n=t.grabStylesCompleted,o=t.fallbackStyles;if(this.nodeRef&&!n){var r=e(this.nodeRef,this.props);Object(D.isEqual)(r,o)||this.setState({fallbackStyles:r,grabStylesCompleted:!!Object(D.every)(r)})}}},{key:"render",value:function(){var e=Object(r.createElement)(t,Object(P.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(r.createElement)("div",{ref:this.bindRef}," ",e," ")}}]),o}(r.Component)},"withFallbackStyles")},io=n(24),co=16;function so(e){return Object(j.createHigherOrderComponent)(function(t){var n,o="core/with-filters/"+e;var a=function(a){function i(){var o;return Object(v.a)(this,i),o=Object(m.a)(this,Object(y.a)(i).apply(this,arguments)),void 0===n&&(n=Object(io.applyFilters)(e,t)),o}return Object(O.a)(i,a),Object(g.a)(i,[{key:"componentDidMount",value:function(){i.instances.push(this),1===i.instances.length&&(Object(io.addAction)("hookRemoved",o,c),Object(io.addAction)("hookAdded",o,c))}},{key:"componentWillUnmount",value:function(){i.instances=Object(D.without)(i.instances,this),0===i.instances.length&&(Object(io.removeAction)("hookRemoved",o),Object(io.removeAction)("hookAdded",o))}},{key:"render",value:function(){return Object(r.createElement)(n,this.props)}}]),i}(r.Component);a.instances=[];var i=Object(D.debounce)(function(){n=Object(io.applyFilters)(e,t),a.instances.forEach(function(e){e.forceUpdate()})},co);function c(t){t===e&&i()}return a},"withFilters")}var lo=n(65),uo=n.n(lo),ho=Object(j.createHigherOrderComponent)(function(e){return function(t){function n(){var e;return Object(v.a)(this,n),(e=Object(m.a)(this,Object(y.a)(n).apply(this,arguments))).createNotice=e.createNotice.bind(Object(k.a)(Object(k.a)(e))),e.createErrorNotice=e.createErrorNotice.bind(Object(k.a)(Object(k.a)(e))),e.removeNotice=e.removeNotice.bind(Object(k.a)(Object(k.a)(e))),e.removeAllNotices=e.removeAllNotices.bind(Object(k.a)(Object(k.a)(e))),e.state={noticeList:[]},e.noticeOperations={createNotice:e.createNotice,createErrorNotice:e.createErrorNotice,removeAllNotices:e.removeAllNotices,removeNotice:e.removeNotice},e}return Object(O.a)(n,t),Object(g.a)(n,[{key:"createNotice",value:function(e){var t=e.id?e:Object(o.a)({},e,{id:uo()()});this.setState(function(e){return{noticeList:[].concat(Object(_.a)(e.noticeList),[t])}})}},{key:"createErrorNotice",value:function(e){this.createNotice({status:"error",content:e})}},{key:"removeNotice",value:function(e){this.setState(function(t){return{noticeList:t.noticeList.filter(function(t){return t.id!==e})}})}},{key:"removeAllNotices",value:function(){this.setState({noticeList:[]})}},{key:"render",value:function(){return Object(r.createElement)(e,Object(P.a)({noticeList:this.state.noticeList,noticeOperations:this.noticeOperations,noticeUI:this.state.noticeList.length>0&&Object(r.createElement)(rn,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),n}(r.Component)});n.d(t,"Circle",function(){return a}),n.d(t,"G",function(){return i}),n.d(t,"Path",function(){return c}),n.d(t,"Polygon",function(){return s}),n.d(t,"Rect",function(){return l}),n.d(t,"SVG",function(){return u}),n.d(t,"Animate",function(){return b}),n.d(t,"Autocomplete",function(){return _e}),n.d(t,"BaseControl",function(){return De}),n.d(t,"Button",function(){return I}),n.d(t,"ButtonGroup",function(){return we}),n.d(t,"CheckboxControl",function(){return Se}),n.d(t,"ClipboardButton",function(){return Ce}),n.d(t,"ColorIndicator",function(){return Pe}),n.d(t,"ColorPalette",function(){return Ye}),n.d(t,"ColorPicker",function(){return $e}),n.d(t,"Dashicon",function(){return J}),n.d(t,"DateTimePicker",function(){return Je}),n.d(t,"DatePicker",function(){return Xe}),n.d(t,"TimePicker",function(){return Qe}),n.d(t,"Disabled",function(){return at}),n.d(t,"Draggable",function(){return ct}),n.d(t,"DropZone",function(){return bt}),n.d(t,"DropZoneProvider",function(){return ft}),n.d(t,"Dropdown",function(){return Ee}),n.d(t,"DropdownMenu",function(){return kt}),n.d(t,"ExternalLink",function(){return _t}),n.d(t,"FocalPointPicker",function(){return wt}),n.d(t,"FocusableIframe",function(){return Mt}),n.d(t,"FontSizePicker",function(){return Pt}),n.d(t,"FormFileUpload",function(){return Et}),n.d(t,"FormToggle",function(){return zt}),n.d(t,"FormTokenField",function(){return Vt}),n.d(t,"Icon",function(){return Bt}),n.d(t,"IconButton",function(){return ee}),n.d(t,"KeyboardShortcuts",function(){return Re}),n.d(t,"MenuGroup",function(){return Kt}),n.d(t,"MenuItem",function(){return Wt}),n.d(t,"MenuItemsChoice",function(){return Ut}),n.d(t,"Modal",function(){return nn}),n.d(t,"ScrollLock",function(){return te}),n.d(t,"NavigableMenu",function(){return gt}),n.d(t,"TabbableContainer",function(){return Ot}),n.d(t,"Notice",function(){return on}),n.d(t,"NoticeList",function(){return rn}),n.d(t,"Panel",function(){return cn}),n.d(t,"PanelBody",function(){return un}),n.d(t,"PanelHeader",function(){return an}),n.d(t,"PanelRow",function(){return dn}),n.d(t,"Placeholder",function(){return hn}),n.d(t,"Popover",function(){return ve}),n.d(t,"PositionedAtSelection",function(){return pn}),n.d(t,"QueryControls",function(){return gn}),n.d(t,"RadioControl",function(){return On}),n.d(t,"RangeControl",function(){return Ct}),n.d(t,"ResizableBox",function(){return Ln}),n.d(t,"ResponsiveWrapper",function(){return An}),n.d(t,"SandBox",function(){return Vn}),n.d(t,"SelectControl",function(){return Bn}),n.d(t,"Spinner",function(){return Kn}),n.d(t,"ServerSideRender",function(){return Yn}),n.d(t,"TabPanel",function(){return Zn}),n.d(t,"TextControl",function(){return Ve}),n.d(t,"TextareaControl",function(){return Xn}),n.d(t,"ToggleControl",function(){return Jn}),n.d(t,"Toolbar",function(){return oo}),n.d(t,"ToolbarButton",function(){return to}),n.d(t,"Tooltip",function(){return Q}),n.d(t,"TreeSelect",function(){return bn}),n.d(t,"IsolatedEventContainer",function(){return ne}),n.d(t,"createSlotFill",function(){return he}),n.d(t,"Slot",function(){return se}),n.d(t,"Fill",function(){return de}),n.d(t,"SlotFillProvider",function(){return ie}),n.d(t,"navigateRegions",function(){return ro}),n.d(t,"withConstrainedTabbing",function(){return U}),n.d(t,"withFallbackStyles",function(){return ao}),n.d(t,"withFilters",function(){return so}),n.d(t,"withFocusOutside",function(){return z}),n.d(t,"withFocusReturn",function(){return W}),n.d(t,"FocusReturnProvider",function(){return K}),n.d(t,"withNotices",function(){return ho}),n.d(t,"withSpokenMessages",function(){return ye})}]); \ No newline at end of file diff --git a/wp-includes/js/dist/compose.js b/wp-includes/js/dist/compose.js index 0d5024a799..221bf41dde 100644 --- a/wp-includes/js/dist/compose.js +++ b/wp-includes/js/dist/compose.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 316); +/******/ return __webpack_require__(__webpack_require__.s = 368); /******/ }) /************************************************************************/ /******/ ({ @@ -112,7 +112,7 @@ function _classCallCheck(instance, Constructor) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); @@ -206,7 +206,22 @@ function _extends() { /***/ }), -/***/ 29: +/***/ 3: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -229,22 +244,7 @@ function _typeof(obj) { /***/ }), -/***/ 3: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), - -/***/ 316: +/***/ 368: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -331,7 +331,7 @@ var getPrototypeOf = __webpack_require__(12); var inherits = __webpack_require__(13); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(40); +var external_this_wp_isShallowEqual_ = __webpack_require__(42); var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/pure/index.js @@ -861,7 +861,7 @@ function withState() { /***/ }), -/***/ 40: +/***/ 42: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); diff --git a/wp-includes/js/dist/compose.min.js b/wp-includes/js/dist/compose.min.js index 982b577f96..af8cbc2df0 100644 --- a/wp-includes/js/dist/compose.min.js +++ b/wp-includes/js/dist/compose.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.compose=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=316)}({0:function(t,e){!function(){t.exports=this.wp.element}()},10:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},11:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(29),o=n(3);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},12:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},13:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",function(){return o})},19:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return o(function(e){return function(n){function r(){var e;return Object(c.a)(this,r),(e=Object(s.a)(this,Object(f.a)(r).apply(this,arguments))).setState=e.setState.bind(Object(O.a)(Object(O.a)(e))),e.state=t,e}return Object(l.a)(r,n),Object(a.a)(r,[{key:"render",value:function(){return Object(i.createElement)(e,Object(d.a)({},this.props,this.state,{setState:this.setState}))}}]),r}(i.Component)},"withState")}n.d(e,"createHigherOrderComponent",function(){return o}),n.d(e,"ifCondition",function(){return u}),n.d(e,"pure",function(){return h}),n.d(e,"withGlobalEvents",function(){return j}),n.d(e,"withInstanceId",function(){return m}),n.d(e,"withSafeTimeout",function(){return v}),n.d(e,"withState",function(){return w}),n.d(e,"compose",function(){return r.flowRight})},40:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},9:function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return o(function(e){return function(n){function r(){var e;return Object(c.a)(this,r),(e=Object(s.a)(this,Object(f.a)(r).apply(this,arguments))).setState=e.setState.bind(Object(O.a)(Object(O.a)(e))),e.state=t,e}return Object(l.a)(r,n),Object(a.a)(r,[{key:"render",value:function(){return Object(i.createElement)(e,Object(d.a)({},this.props,this.state,{setState:this.setState}))}}]),r}(i.Component)},"withState")}n.d(e,"createHigherOrderComponent",function(){return o}),n.d(e,"ifCondition",function(){return u}),n.d(e,"pure",function(){return h}),n.d(e,"withGlobalEvents",function(){return j}),n.d(e,"withInstanceId",function(){return m}),n.d(e,"withSafeTimeout",function(){return v}),n.d(e,"withState",function(){return w}),n.d(e,"compose",function(){return r.flowRight})},42:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},9:function(t,e,n){"use strict";function r(t,e){for(var n=0;n= 0; + +// Save the old regeneratorRuntime in case it needs to be restored later. +var oldRuntime = hadRuntime && g.regeneratorRuntime; + +// Force reevalutation of runtime.js. +g.regeneratorRuntime = undefined; + +module.exports = __webpack_require__(55); + +if (hadRuntime) { + // Restore the original runtime. + g.regeneratorRuntime = oldRuntime; +} else { + // Remove the global property added by runtime.js. + try { + delete g.regeneratorRuntime; + } catch(e) { + g.regeneratorRuntime = undefined; + } +} + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +!(function(global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + runtime.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); + + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + Gp[toStringTagSymbol] = "Generator"; + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + + Gp.toString = function() { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { + return this || (typeof self === "object" && self); + })() || Function("return this")() +); + + +/***/ }), + +/***/ 59: /***/ (function(module, exports) { var g; @@ -2496,7 +3284,35 @@ module.exports = g; /***/ }), -/***/ 65: +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + +/***/ }), + +/***/ 71: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2506,7 +3322,7 @@ module.exports = g; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return applyMiddleware; }); /* unused harmony export compose */ /* unused harmony export __DO_NOT_USE__ActionTypes */ -/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69); +/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77); /** @@ -3133,7 +3949,7 @@ if (false) {} /***/ }), -/***/ 68: +/***/ 76: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3448,11 +4264,11 @@ module.exports = EquivalentKeyMap; /***/ }), -/***/ 69: +/***/ 77: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88); +/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99); /* global window */ @@ -3471,39 +4287,11 @@ if (typeof self !== 'undefined') { var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(root); /* harmony default export */ __webpack_exports__["a"] = (result); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51), __webpack_require__(121)(module))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(59), __webpack_require__(132)(module))) /***/ }), -/***/ 8: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 88: +/***/ 99: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/core-data.min.js b/wp-includes/js/dist/core-data.min.js index 561f27ca88..49fe4142de 100644 --- a/wp-includes/js/dist/core-data.min.js +++ b/wp-includes/js/dist/core-data.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(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,r),i.l=!0,i.exports}return 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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=311)}({121:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},15:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",function(){return n})},18:function(e,t,r){"use strict";var n=r(33);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=n[e];if(void 0===i)return r;var o=t(r[i],n);return o===r[i]?r:Object(a.a)({},r,Object(f.a)({},i,o))}}},v=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var h=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}};function b(e){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(e)}}var y=r(28),m=r(68),g=r.n(m),w=r(22);var E=h(function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=O.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new g.a,O.set(e,r);var i=function(e,t){var r=E(t),n=r.stableKey,i=r.page,o=r.perPage;if(!e.queries[n])return null;var a=e.queries[n];if(!a)return null;for(var u=-1===o?0:(i-1)*o,c=-1===o?a.length:Math.min(u+o,a.length),s=[],f=u;f1?t-1:0),n=1;n4&&void 0!==arguments[4]&&arguments[4];return i=n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({},b(e),{query:t})}(r,n):b(r),Object(a.a)({},i,{kind:e,name:t,invalidateCache:o})}function M(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function C(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function N(e,t,r){var n,i,o,a,u;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,z(e);case 2:if(n=c.sent,i=Object(d.find)(n,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return o=i.key||K,a=r[o],c.next=10,I({path:"".concat(i.baseURL).concat(a?"/"+a:""),method:a?"PUT":"POST",data:r});case 10:return u=c.sent,c.next=13,U(e,t,u,void 0,!0);case 13:return c.abrupt("return",u);case 14:case"end":return c.stop()}},S,this)}function D(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function q(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}var V=regeneratorRuntime.mark(Q),L=regeneratorRuntime.mark(Y),B=regeneratorRuntime.mark(z),K="id",W=[{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"}],F=[{name:"postType",loadEntities:Q},{name:"taxonomy",loadEntities:Y}];function Q(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},V,this)}function Y(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},L,this)}var H=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Object(d.find)(W,{kind:e,name:t}),o="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),a=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),u=n&&i.plural?Object(d.upperFirst)(Object(d.camelCase)(i.plural)):a;return"".concat(r).concat(o).concat(u)};function z(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_("getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(d.find)(F,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,A(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}},B,this)}var G=Object(d.flowRight)([l(function(e){return"query"in e}),v(function(e){return e.query?Object(a.a)({},e,E(e.query)):e}),p("stableKey")])(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,i=t.perPage,o=t.key,a=void 0===o?K:o;return"RECEIVE_ITEMS"!==r?e:function(e,t,r,n){for(var i=(r-1)*n,o=Math.max(e.length,i+t.length),a=new Array(o),u=0;u=i&&u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return Object(a.a)({},e,Object(d.keyBy)(t.items,t.key||K))}return e},queries:G});var J=Object(u.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return Object(a.a)({},e,Object(f.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:Object(a.a)({},e.byId,Object(d.keyBy)(t.users,"id")),queries:Object(a.a)({},e.queries,Object(f.a)({},t.queryID,Object(d.map)(t.users,function(e){return e.id})))}}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return Object(a.a)({},e,t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(e),Object(s.a)(t.entities))}return e}(e.config,t),n=e.reducer;if(!n||r!==e.config){var i=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(i).reduce(function(e,t){var r=Object(c.a)(t,2),n=r[0],i=r[1],o=Object(u.combineReducers)(i.reduce(function(e,t){return Object(a.a)({},e,Object(f.a)({},t.name,function(e){return Object(d.flowRight)([l(function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind}),v(function(t){return Object(a.a)({},t,{key:e.key||K})})])(X)}(t)))},{}));return e[n]=o,e},{}))}var o=n(e.data,t);return o===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:o,config:r}},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return Object(a.a)({},e,Object(f.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return Object(a.a)({},e,Object(f.a)({},t.key,t.isAllowed))}return e}}),Z=r(49),$=r.n(Z),ee=Object(u.createRegistrySelector)(function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}});function te(e){return re(e,"authors")}var re=Object(y.a)(function(e,t){var r=e.users.queries[t];return Object(d.map)(r,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function ne(e,t){return Object(d.filter)(e.entities.config,{kind:t})}function ie(e,t,r){return Object(d.find)(e.entities.config,{kind:t,name:r})}function oe(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"items",n])}function ae(e,t,r,n){var i=Object(d.get)(e.entities.data,[t,r]);return i?j(i,n):[]}function ue(e){return e.themeSupports}function ce(e,t){return e.embedPreviews[t]}function se(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function fe(e){return $()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(de(e,"create","media"),!0)}function de(e,t,r,n){var i=Object(d.compact)([t,r,n]).join("/");return Object(d.get)(e,["userPermissions",i])}var le=regeneratorRuntime.mark(ge),pe=regeneratorRuntime.mark(we),ve=regeneratorRuntime.mark(Ee),he=regeneratorRuntime.mark(Oe),be=regeneratorRuntime.mark(je),ye=regeneratorRuntime.mark(xe),me=regeneratorRuntime.mark(ke);function ge(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,T("authors",e);case 5:case"end":return t.stop()}},le,this)}function we(e,t,r){var n,i,o;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,z(e);case 2:if(n=a.sent,i=Object(d.find)(n,{kind:e,name:t})){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,I({path:"".concat(i.baseURL,"/").concat(r,"?context=edit")});case 8:return o=a.sent,a.next=11,U(e,t,o);case 11:case"end":return a.stop()}},pe,this)}function Ee(e,t){var r,n,i,o,u,c=arguments;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,z(e);case 3:if(n=s.sent,i=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return o=Object(w.addQueryArgs)(i.baseURL,Object(a.a)({},r,{context:"edit"})),s.next=10,I({path:o});case 10:return u=s.sent,s.next=13,U(e,t,Object.values(u),r);case 13:case"end":return s.stop()}},ve,this)}function Oe(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,M(e[0].theme_supports);case 5:case"end":return t.stop()}},he,this)}function je(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,I({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,C(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,C(e,!1);case 12:case"end":return r.stop()}},be,this,[[0,8]])}function xe(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return $()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(ke("create","media"),"t0",2);case 2:case"end":return e.stop()}},ye,this)}function ke(e,t,r){var n,i,o,a,u,c;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){s.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return i=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,I({path:i,method:r?"GET":"OPTIONS",parse:!1});case 8:o=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return a=Object(d.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(d.get)(o,["headers","Allow"],""),u=Object(d.compact)([e,t,r]).join("/"),c=Object(d.includes)(a,n),s.next=19,q(u,c);case 19:case"end":return s.stop()}},me,this,[[5,11]])}Ee.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Re=W.reduce(function(e,t){var r=t.kind,n=t.name;return e[H(r,n)]=function(e,t){return oe(e,r,n,t)},e[H(r,n,"get",!0)]=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a1?i-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(i,o){null!==o&&"object"===n(o)&&(i=i[1]),e.call(r,i,o,t)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&i(t.prototype,r),a&&i(t,a),e}();e.exports=a},69:function(e,t,r){"use strict";(function(e,n){var i,o=r(88);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(51),r(121)(e))},8:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(15);function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[e];if(void 0===o)return r;var i=t(r[o],n);return i===r[o]?r:Object(a.a)({},r,Object(f.a)({},o,i))}}},h=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var v=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(l.isObjectLike)(r)&&t.set(r,n)),n}};function y(e){return{type:"RECEIVE_ITEMS",items:Object(l.castArray)(e)}}var b=r(30),g=r(76),m=r.n(g),w=r(23);var E=v(function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=O.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new m.a,O.set(e,r);var o=function(e,t){var r=E(t),n=r.stableKey,o=r.page,i=r.perPage;if(!e.queries[n])return null;var a=e.queries[n];if(!a)return null;for(var u=-1===i?0:(o-1)*i,c=-1===i?a.length:Math.min(u+i,a.length),s=[],f=u;f1?t-1:0),n=1;n4&&void 0!==arguments[4]&&arguments[4];return o=n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({},y(e),{query:t})}(r,n):y(r),Object(a.a)({},o,{kind:e,name:t,invalidateCache:i})}function M(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function C(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function D(e,t,r){var n,o,i,a,u;return _.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,X(e);case 2:if(n=c.sent,o=Object(l.find)(n,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return i=o.key||K,a=r[i],c.next=10,I({path:"".concat(o.baseURL).concat(a?"/"+a:""),method:a?"PUT":"POST",data:r});case 10:return u=c.sent,c.next=13,U(e,t,u,void 0,!0);case 13:return c.abrupt("return",u);case 14:case"end":return c.stop()}},A,this)}function q(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function V(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}var F=_.a.mark(Q),B=_.a.mark(H),G=_.a.mark(X),K="id",W=[{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"}],Y=[{name:"postType",loadEntities:Q},{name:"taxonomy",loadEntities:H}];function Q(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(l.map)(e,function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},F,this)}function H(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(l.map)(e,function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},B,this)}var z=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Object(l.find)(W,{kind:e,name:t}),i="root"===e?"":Object(l.upperFirst)(Object(l.camelCase)(e)),a=Object(l.upperFirst)(Object(l.camelCase)(t))+(n?"s":""),u=n&&o.plural?Object(l.upperFirst)(Object(l.camelCase)(o.plural)):a;return"".concat(r).concat(i).concat(u)};function X(e){var t,r;return _.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,S("getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(l.find)(Y,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,N(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}},G,this)}var J=Object(l.flowRight)([d(function(e){return"query"in e}),h(function(e){return e.query?Object(a.a)({},e,E(e.query)):e}),p("stableKey")])(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,o=t.perPage,i=t.key,a=void 0===i?K:i;return"RECEIVE_ITEMS"!==r?e:function(e,t,r,n){for(var o=(r-1)*n,i=Math.max(e.length,o+t.length),a=new Array(i),u=0;u=o&&u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return Object(a.a)({},e,Object(l.keyBy)(t.items,t.key||K))}return e},queries:J});var $=Object(u.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return Object(a.a)({},e,Object(f.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:Object(a.a)({},e.byId,Object(l.keyBy)(t.users,"id")),queries:Object(a.a)({},e.queries,Object(f.a)({},t.queryID,Object(l.map)(t.users,function(e){return e.id})))}}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return Object(a.a)({},e,t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(e),Object(s.a)(t.entities))}return e}(e.config,t),n=e.reducer;if(!n||r!==e.config){var o=Object(l.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(o).reduce(function(e,t){var r=Object(c.a)(t,2),n=r[0],o=r[1],i=Object(u.combineReducers)(o.reduce(function(e,t){return Object(a.a)({},e,Object(f.a)({},t.name,function(e){return Object(l.flowRight)([d(function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind}),h(function(t){return Object(a.a)({},t,{key:e.key||K})})])(Z)}(t)))},{}));return e[n]=i,e},{}))}var i=n(e.data,t);return i===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:i,config:r}},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return Object(a.a)({},e,Object(f.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return Object(a.a)({},e,Object(f.a)({},t.key,t.isAllowed))}return e}}),ee=r(49),te=r.n(ee),re=Object(u.createRegistrySelector)(function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}});function ne(e){return oe(e,"authors")}var oe=Object(b.a)(function(e,t){var r=e.users.queries[t];return Object(l.map)(r,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function ie(e,t){return Object(l.filter)(e.entities.config,{kind:t})}function ae(e,t,r){return Object(l.find)(e.entities.config,{kind:t,name:r})}function ue(e,t,r,n){return Object(l.get)(e.entities.data,[t,r,"items",n])}function ce(e,t,r,n){var o=Object(l.get)(e.entities.data,[t,r]);return o?j(o,n):[]}function se(e){return e.themeSupports}function fe(e,t){return e.embedPreviews[t]}function le(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function de(e){return te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(l.defaultTo)(pe(e,"create","media"),!0)}function pe(e,t,r,n){var o=Object(l.compact)([t,r,n]).join("/");return Object(l.get)(e,["userPermissions",o])}var he=_.a.mark(Ee),ve=_.a.mark(Oe),ye=_.a.mark(je),be=_.a.mark(xe),ge=_.a.mark(ke),me=_.a.mark(_e),we=_.a.mark(Pe);function Ee(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,L("authors",e);case 5:case"end":return t.stop()}},he,this)}function Oe(e,t,r){var n,o,i;return _.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,X(e);case 2:if(n=a.sent,o=Object(l.find)(n,{kind:e,name:t})){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,I({path:"".concat(o.baseURL,"/").concat(r,"?context=edit")});case 8:return i=a.sent,a.next=11,U(e,t,i);case 11:case"end":return a.stop()}},ve,this)}function je(e,t){var r,n,o,i,u,c=arguments;return _.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,X(e);case 3:if(n=s.sent,o=Object(l.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(w.addQueryArgs)(o.baseURL,Object(a.a)({},r,{context:"edit"})),s.next=10,I({path:i});case 10:return u=s.sent,s.next=13,U(e,t,Object.values(u),r);case 13:case"end":return s.stop()}},ye,this)}function xe(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,M(e[0].theme_supports);case 5:case"end":return t.stop()}},be,this)}function ke(e){var t;return _.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,I({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,C(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,C(e,!1);case 12:case"end":return r.stop()}},ge,this,[[0,8]])}function _e(){return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Pe("create","media"),"t0",2);case 2:case"end":return e.stop()}},me,this)}function Pe(e,t,r){var n,o,i,a,u,c;return _.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){s.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return o=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,I({path:o,method:r?"GET":"OPTIONS",parse:!1});case 8:i=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return a=Object(l.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(l.get)(i,["headers","Allow"],""),u=Object(l.compact)([e,t,r]).join("/"),c=Object(l.includes)(a,n),s.next=19,V(u,c);case 19:case"end":return s.stop()}},we,this,[[5,11]])}je.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Re=W.reduce(function(e,t){var r=t.kind,n=t.name;return e[z(r,n)]=function(e,t){return ue(e,r,n,t)},e[z(r,n,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a1?o-1:0),a=1;a=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(55),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},55:function(e,t){!function(t){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof e,f=t.regeneratorRuntime;if(f)s&&(e.exports=f);else{(f=t.regeneratorRuntime=s?e.exports:{}).wrap=w;var l="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},y={};y[a]=function(){return this};var b=Object.getPrototypeOf,g=b&&b(b(T([])));g&&g!==n&&o.call(g,a)&&(y=g);var m=x.prototype=O.prototype=Object.create(y);j.prototype=m.constructor=x,x.constructor=j,x[c]=j.displayName="GeneratorFunction",f.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===j||"GeneratorFunction"===(t.displayName||t.name))},f.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(m),e},f.awrap=function(e){return{__await:e}},k(_.prototype),_.prototype[u]=function(){return this},f.AsyncIterator=_,f.async=function(e,t,r,n){var o=new _(w(e,t,r,n));return f.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},k(m),m[c]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},f.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=T,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(I),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function w(e,t,r,n){var o=t&&t.prototype instanceof O?t:O,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=E(e,t,r);if("normal"===c.type){if(n=r.done?h:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function E(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function O(){}function j(){}function x(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function _(e){var t;this._invoke=function(r,n){function i(){return new Promise(function(t,i){!function t(r,n,i,a){var u=E(e[r],e,n);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(s).then(function(e){c.value=e,i(c)},function(e){return t("throw",e,i,a)})}a(u.arg)}(r,n,t,i)})}return t=t?t.then(i,i):i()}}function P(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,P(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=E(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,t)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,r),a&&o(t,a),e}();e.exports=a},77:function(e,t,r){"use strict";(function(e,n){var o,i=r(99);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(i.a)(o);t.a=a}).call(this,r(59),r(132)(e))},99:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",function(){return n})}}); \ No newline at end of file diff --git a/wp-includes/js/dist/data.js b/wp-includes/js/dist/data.js index 6a51879ae0..44dc5053e5 100644 --- a/wp-includes/js/dist/data.js +++ b/wp-includes/js/dist/data.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["data"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 310); +/******/ return __webpack_require__(__webpack_require__.s = 363); /******/ }) /************************************************************************/ /******/ ({ @@ -105,6 +105,18 @@ function _classCallCheck(instance, Constructor) { } } +/***/ }), + +/***/ 100: +/***/ (function(module, exports) { + +module.exports = isPromise; + +function isPromise(obj) { + return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; +} + + /***/ }), /***/ 11: @@ -112,7 +124,7 @@ function _classCallCheck(instance, Constructor) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); @@ -138,37 +150,6 @@ function _getPrototypeOf(o) { return _getPrototypeOf(o); } -/***/ }), - -/***/ 121: -/***/ (function(module, exports) { - -module.exports = function(originalModule) { - if (!originalModule.webpackPolyfill) { - var module = Object.create(originalModule); - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - Object.defineProperty(module, "exports", { - enumerable: true - }); - module.webpackPolyfill = 1; - } - return module; -}; - - /***/ }), /***/ 13: @@ -203,6 +184,37 @@ function _inherits(subClass, superClass) { if (superClass) _setPrototypeOf(subClass, superClass); } +/***/ }), + +/***/ 132: +/***/ (function(module, exports) { + +module.exports = function(originalModule) { + if (!originalModule.webpackPolyfill) { + var module = Object.create(originalModule); + // module.parent = undefined by default + if (!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + Object.defineProperty(module, "exports", { + enumerable: true + }); + module.webpackPolyfill = 1; + } + return module; +}; + + /***/ }), /***/ 15: @@ -227,7 +239,65 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 174: +/***/ 17: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { + arr2[i] = arr[i]; + } + + return arr2; + } +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(34); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance"); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 19: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +/***/ }), + +/***/ 197: /***/ (function(module, exports) { function combineReducers( reducers ) { @@ -284,78 +354,6 @@ function combineReducers( reducers ) { module.exports = combineReducers; -/***/ }), - -/***/ 18: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - } - - return arr2; - } -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(33); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance"); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); - - - -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread(); -} - -/***/ }), - -/***/ 189: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["reduxRoutine"]; }()); - -/***/ }), - -/***/ 19: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); -} - -/***/ }), - -/***/ 190: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["priorityQueue"]; }()); - /***/ }), /***/ 2: @@ -365,13 +363,35 @@ function _extends() { /***/ }), -/***/ 25: +/***/ 224: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["reduxRoutine"]; }()); + +/***/ }), + +/***/ 225: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["priorityQueue"]; }()); + +/***/ }), + +/***/ 26: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(54); + + +/***/ }), + +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(34); +var arrayWithHoles = __webpack_require__(37); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(arr, i) { @@ -400,7 +420,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(35); +var nonIterableRest = __webpack_require__(38); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); @@ -413,7 +433,22 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 29: +/***/ 3: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -436,22 +471,18 @@ function _typeof(obj) { /***/ }), -/***/ 3: +/***/ 34: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } /***/ }), -/***/ 310: +/***/ 363: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -468,32 +499,38 @@ __webpack_require__.r(actions_namespaceObject); __webpack_require__.d(actions_namespaceObject, "startResolution", function() { return startResolution; }); __webpack_require__.d(actions_namespaceObject, "finishResolution", function() { return finishResolution; }); __webpack_require__.d(actions_namespaceObject, "invalidateResolution", function() { return invalidateResolution; }); +__webpack_require__.d(actions_namespaceObject, "invalidateResolutionForStore", function() { return invalidateResolutionForStore; }); +__webpack_require__.d(actions_namespaceObject, "invalidateResolutionForStoreSelector", function() { return invalidateResolutionForStoreSelector; }); var plugins_namespaceObject = {}; __webpack_require__.r(plugins_namespaceObject); __webpack_require__.d(plugins_namespaceObject, "controls", function() { return controls; }); __webpack_require__.d(plugins_namespaceObject, "persistence", function() { return plugins_persistence; }); // EXTERNAL MODULE: ./node_modules/turbo-combine-reducers/index.js -var turbo_combine_reducers = __webpack_require__(174); +var turbo_combine_reducers = __webpack_require__(197); var turbo_combine_reducers_default = /*#__PURE__*/__webpack_require__.n(turbo_combine_reducers); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(25); +var slicedToArray = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js +var regenerator = __webpack_require__(26); +var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(41); +var asyncToGenerator = __webpack_require__(44); // EXTERNAL MODULE: ./node_modules/redux/es/redux.js -var redux = __webpack_require__(65); +var redux = __webpack_require__(71); // EXTERNAL MODULE: ./node_modules/is-promise/index.js -var is_promise = __webpack_require__(89); +var is_promise = __webpack_require__(100); var is_promise_default = /*#__PURE__*/__webpack_require__.n(is_promise); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/promise-middleware.js @@ -526,7 +563,7 @@ var promise_middleware_promiseMiddleware = function promiseMiddleware() { /* harmony default export */ var promise_middleware = (promise_middleware_promiseMiddleware); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/resolvers-cache-middleware.js @@ -585,6 +622,7 @@ var resolvers_cache_middleware_createResolversCacheMiddleware = function createR + /** * External dependencies */ @@ -776,9 +814,9 @@ function mapResolvers(resolvers, selectors, fulfillment, store) { function _fulfillSelector() { _fulfillSelector = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee() { + regenerator_default.a.mark(function _callee() { var state; - return regeneratorRuntime.wrap(function _callee$(_context) { + return regenerator_default.a.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -900,7 +938,7 @@ function fulfillWithRegistry(_x, _x2, _x3) { function _fulfillWithRegistry() { _fulfillWithRegistry = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee2(registry, key, selectorName) { + regenerator_default.a.mark(function _callee2(registry, key, selectorName) { var namespace, resolver, _len6, @@ -909,7 +947,7 @@ function _fulfillWithRegistry() { action, _args2 = arguments; - return regeneratorRuntime.wrap(function _callee2$(_context2) { + return regenerator_default.a.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: @@ -948,13 +986,13 @@ function _fulfillWithRegistry() { return _fulfillWithRegistry.apply(this, arguments); } -// EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js -var equivalent_key_map = __webpack_require__(68); -var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map); - // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(15); +// EXTERNAL MODULE: ./node_modules/equivalent-key-map/equivalent-key-map.js +var equivalent_key_map = __webpack_require__(76); +var equivalent_key_map_default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map); + // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/store/utils.js @@ -994,6 +1032,9 @@ var utils_onSubKey = function onSubKey(actionProperty) { }; // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/store/reducer.js + + + /** * External dependencies */ @@ -1005,7 +1046,8 @@ var utils_onSubKey = function onSubKey(actionProperty) { /** - * Reducer function returning next state for selector resolution, object form: + * Reducer function returning next state for selector resolution of + * subkeys, object form: * * reducerKey -> selectorName -> EquivalentKeyMap * @@ -1015,7 +1057,7 @@ var utils_onSubKey = function onSubKey(actionProperty) { * @returns {Object} Next state. */ -var isResolved = Object(external_lodash_["flowRight"])([utils_onSubKey('reducerKey'), utils_onSubKey('selectorName')])(function () { +var subKeysIsResolved = Object(external_lodash_["flowRight"])([utils_onSubKey('reducerKey'), utils_onSubKey('selectorName')])(function () { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new equivalent_key_map_default.a(); var action = arguments.length > 1 ? arguments[1] : undefined; @@ -1041,7 +1083,38 @@ var isResolved = Object(external_lodash_["flowRight"])([utils_onSubKey('reducerK return state; }); -/* harmony default export */ var store_reducer = (isResolved); +/** + * Reducer function returning next state for selector resolution, object form: + * + * reducerKey -> selectorName -> EquivalentKeyMap + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Next state. + */ + +var reducer_isResolved = function isResolved() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var action = arguments.length > 1 ? arguments[1] : undefined; + + switch (action.type) { + case 'INVALIDATE_RESOLUTION_FOR_STORE': + return Object(external_lodash_["has"])(state, action.reducerKey) ? Object(external_lodash_["omit"])(state, [action.reducerKey]) : state; + + case 'INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR': + return Object(external_lodash_["has"])(state, [action.reducerKey, action.selectorName]) ? Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.reducerKey, Object(external_lodash_["omit"])(state[action.reducerKey], [action.selectorName]))) : state; + + case 'START_RESOLUTION': + case 'FINISH_RESOLUTION': + case 'INVALIDATE_RESOLUTION': + return subKeysIsResolved(state, action); + } + + return state; +}; + +/* harmony default export */ var store_reducer = (reducer_isResolved); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/store/selectors.js /** @@ -1188,6 +1261,39 @@ function invalidateResolution(reducerKey, selectorName, args) { args: args }; } +/** + * Returns an action object used in signalling that the resolution cache for a + * given reducerKey should be invalidated. + * + * @param {string} reducerKey Registered store reducer key. + * + * @return {Object} Action object. + */ + +function invalidateResolutionForStore(reducerKey) { + return { + type: 'INVALIDATE_RESOLUTION_FOR_STORE', + reducerKey: reducerKey + }; +} +/** + * Returns an action object used in signalling that the resolution cache for a + * given reducerKey and selectorName should be invalidated. + * + * @param {string} reducerKey Registered store reducer key. + * @param {string} selectorName Name of selector for which all resolvers should + * be invalidated. + * + * @return {Object} Action object. + */ + +function invalidateResolutionForStoreSelector(reducerKey, selectorName) { + return { + type: 'INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR', + reducerKey: reducerKey, + selectorName: selectorName + }; +} // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/store/index.js /** @@ -1398,7 +1504,7 @@ function createRegistry() { /* harmony default export */ var default_registry = (createRegistry()); // EXTERNAL MODULE: external {"this":["wp","reduxRoutine"]} -var external_this_wp_reduxRoutine_ = __webpack_require__(189); +var external_this_wp_reduxRoutine_ = __webpack_require__(224); var external_this_wp_reduxRoutine_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_reduxRoutine_); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/plugins/controls/index.js @@ -1751,13 +1857,13 @@ var assertThisInitialized = __webpack_require__(3); var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(40); +var external_this_wp_isShallowEqual_ = __webpack_require__(42); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); +var external_this_wp_compose_ = __webpack_require__(6); // EXTERNAL MODULE: external {"this":["wp","priorityQueue"]} -var external_this_wp_priorityQueue_ = __webpack_require__(190); +var external_this_wp_priorityQueue_ = __webpack_require__(225); // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/registry-provider/index.js /** @@ -2112,6 +2218,39 @@ var with_dispatch_withDispatch = function withDispatch(mapDispatchToProps) { /* harmony default export */ var with_dispatch = (with_dispatch_withDispatch); +// CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/components/with-registry/index.js + + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + +/** + * Higher-order component which renders the original component with the current + * registry context passed as its `registry` prop. + * + * @param {WPComponent} OriginalComponent Original component. + * + * @return {WPComponent} Enhanced component. + */ + +var withRegistry = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { + return function (props) { + return Object(external_this_wp_element_["createElement"])(RegistryConsumer, null, function (registry) { + return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, props, { + registry: registry + })); + }); + }; +}, 'withRegistry'); +/* harmony default export */ var with_registry = (withRegistry); + // CONCATENATED MODULE: ./node_modules/@wordpress/data/build-module/factory.js /** * Mark a selector as a registry selector. @@ -2146,6 +2285,7 @@ function createRegistryControl(registryControl) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "use", function() { return build_module_use; }); /* concated harmony reexport withSelect */__webpack_require__.d(__webpack_exports__, "withSelect", function() { return with_select; }); /* concated harmony reexport withDispatch */__webpack_require__.d(__webpack_exports__, "withDispatch", function() { return with_dispatch; }); +/* concated harmony reexport withRegistry */__webpack_require__.d(__webpack_exports__, "withRegistry", function() { return with_registry; }); /* concated harmony reexport RegistryProvider */__webpack_require__.d(__webpack_exports__, "RegistryProvider", function() { return registry_provider; }); /* concated harmony reexport RegistryConsumer */__webpack_require__.d(__webpack_exports__, "RegistryConsumer", function() { return RegistryConsumer; }); /* concated harmony reexport __experimentalAsyncModeProvider */__webpack_require__.d(__webpack_exports__, "__experimentalAsyncModeProvider", function() { return async_mode_provider; }); @@ -2171,6 +2311,7 @@ function createRegistryControl(registryControl) { + /** * The combineReducers helper function turns an object whose values are different * reducing functions into a single reducing function you can pass to registerReducer. @@ -2193,18 +2334,7 @@ var build_module_use = default_registry.use; /***/ }), -/***/ 33: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - -/***/ }), - -/***/ 34: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2215,7 +2345,7 @@ function _arrayWithHoles(arr) { /***/ }), -/***/ 35: +/***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2226,14 +2356,14 @@ function _nonIterableRest() { /***/ }), -/***/ 40: +/***/ 42: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["isShallowEqual"]; }()); /***/ }), -/***/ 41: +/***/ 44: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2276,7 +2406,779 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 51: +/***/ 54: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This method of obtaining a reference to the global object needs to be +// kept identical to the way it is obtained in runtime.js +var g = (function() { + return this || (typeof self === "object" && self); +})() || Function("return this")(); + +// Use `getOwnPropertyNames` because not all browsers support calling +// `hasOwnProperty` on the global `self` object in a worker. See #183. +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; + +// Save the old regeneratorRuntime in case it needs to be restored later. +var oldRuntime = hadRuntime && g.regeneratorRuntime; + +// Force reevalutation of runtime.js. +g.regeneratorRuntime = undefined; + +module.exports = __webpack_require__(55); + +if (hadRuntime) { + // Restore the original runtime. + g.regeneratorRuntime = oldRuntime; +} else { + // Remove the global property added by runtime.js. + try { + delete g.regeneratorRuntime; + } catch(e) { + g.regeneratorRuntime = undefined; + } +} + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +!(function(global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + runtime.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); + + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + Gp[toStringTagSymbol] = "Generator"; + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + + Gp.toString = function() { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { + return this || (typeof self === "object" && self); + })() || Function("return this")() +); + + +/***/ }), + +/***/ 59: /***/ (function(module, exports) { var g; @@ -2303,7 +3205,42 @@ module.exports = g; /***/ }), -/***/ 65: +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["compose"]; }()); + +/***/ }), + +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + +/***/ }), + +/***/ 71: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2313,7 +3250,7 @@ module.exports = g; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return applyMiddleware; }); /* unused harmony export compose */ /* unused harmony export __DO_NOT_USE__ActionTypes */ -/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69); +/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77); /** @@ -2940,7 +3877,7 @@ if (false) {} /***/ }), -/***/ 68: +/***/ 76: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3255,11 +4192,11 @@ module.exports = EquivalentKeyMap; /***/ }), -/***/ 69: +/***/ 77: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88); +/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99); /* global window */ @@ -3278,80 +4215,7 @@ if (typeof self !== 'undefined') { var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(root); /* harmony default export */ __webpack_exports__["a"] = (result); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51), __webpack_require__(121)(module))) - -/***/ }), - -/***/ 7: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - -/***/ }), - -/***/ 8: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 88: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return symbolObservablePonyfill; }); -function symbolObservablePonyfill(root) { - var result; - var Symbol = root.Symbol; - - if (typeof Symbol === 'function') { - if (Symbol.observable) { - result = Symbol.observable; - } else { - result = Symbol('observable'); - Symbol.observable = result; - } - } else { - result = '@@observable'; - } - - return result; -}; - - -/***/ }), - -/***/ 89: -/***/ (function(module, exports) { - -module.exports = isPromise; - -function isPromise(obj) { - return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; -} - +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(59), __webpack_require__(132)(module))) /***/ }), @@ -3376,6 +4240,32 @@ function _createClass(Constructor, protoProps, staticProps) { return Constructor; } +/***/ }), + +/***/ 99: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return symbolObservablePonyfill; }); +function symbolObservablePonyfill(root) { + var result; + var Symbol = root.Symbol; + + if (typeof Symbol === 'function') { + if (Symbol.observable) { + result = Symbol.observable; + } else { + result = Symbol('observable'); + Symbol.observable = result; + } + } else { + result = '@@observable'; + } + + return result; +}; + + /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/data.min.js b/wp-includes/js/dist/data.min.js index 9c63f2ae13..6e99cfa839 100644 --- a/wp-includes/js/dist/data.min.js +++ b/wp-includes/js/dist/data.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.data=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=310)}({0:function(t,e){!function(){t.exports=this.wp.element}()},10:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",function(){return n})},11:function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r(29),o=r(3);function i(t,e){return!e||"object"!==Object(n.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},12:function(t,e,r){"use strict";function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.d(e,"a",function(){return n})},121:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},13:function(t,e,r){"use strict";function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}r.d(e,"a",function(){return o})},15:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",function(){return n})},174:function(t,e){t.exports=function(t){var e,r=Object.keys(t);return e=function(){var t,e,n;for(t="return {",e=0;e3?u-3:0),a=3;a0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return r;var i=e(r[o],n);return i===r[o]?r:Object(s.a)({},r,Object(j.a)({},o,i))}}};function E(t,e,r,n){var o=Object(f.get)(t,[e,r]);if(o)return o.get(n)}function P(t,e,r){return void 0!==E(t,e,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function _(t,e,r){return!1===E(t,e,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function x(t,e,r){return!0===E(t,e,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function R(t,e){return t.hasOwnProperty(e)?t[e]:{}}function T(t,e,r){return{type:"START_RESOLUTION",reducerKey:t,selectorName:e,args:r}}function I(t,e,r){return{type:"FINISH_RESOLUTION",reducerKey:t,selectorName:e,args:r}}function A(t,e,r){return{type:"INVALIDATE_RESOLUTION",reducerKey:t,selectorName:e,args:r}}var k={reducer:Object(f.flowRight)([S("reducerKey"),S("selectorName")])(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new m.a,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===e.type,n=new m.a(t);return n.set(e.args,r),n;case"INVALIDATE_RESOLUTION":var o=new m.a(t);return o.delete(e.args),o}return t}),actions:o,selectors:n};function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={},r=[];function n(){r.forEach(function(t){return t()})}function o(t,r){if("function"!=typeof r.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof r.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof r.subscribe)throw new TypeError("config.subscribe must be a function");e[t]=r,r.subscribe(n)}var i,u={registerGenericStore:o,stores:e,namespaces:e,subscribe:function(t){return r.push(t),function(){r=Object(f.without)(r,t)}},select:function(t){var r=e[t];return r&&r.getSelectors()},dispatch:function(t){var r=e[t];return r&&r.getActions()},use:function(t,e){return u=Object(s.a)({},u,t(u,e))}};return u.registerStore=function(t,e){if(!e.reducer)throw new TypeError("Must specify store reducer");var r=g(t,e,u);return o(t,r),r.store},Object.entries(Object(s.a)({"core/data":k},t)).map(function(t){var e=Object(a.a)(t,2),r=e[0],n=e[1];return u.registerStore(r,n)}),i=u,Object(f.mapValues)(i,function(t,e){return"function"!=typeof t?t:function(){return u[e].apply(null,arguments)}})}var C,D,U=N(),M=r(189),L=r.n(M),V=function(t){return{registerStore:function(e,r){var n=t.registerStore(e,r);if(r.controls){var o=Object(f.mapValues)(r.controls,function(e){return e.isRegistryControl?e(t):e}),i=L()(o),u=Object(p.a)(i);Object.assign(n,u(function(){return n})(r.reducer)),t.namespaces[e].supportControls=!0}return n}}},K={getItem:function(t){return C&&C[t]?C[t]:null},setItem:function(t,e){C||K.clear(),C[t]=String(e)},clear:function(){C=Object.create(null)}},F=K;try{(D=window.localStorage).setItem("__wpDataTestLocalStorage",""),D.removeItem("__wpDataTestLocalStorage")}catch(t){D=F}var W=D,H="WP_DATA",Q=function(t){return function(e,r){return r.nextState===e?e:t(e,r)}};function q(t){var e,r=t.storage,n=void 0===r?W:r,o=t.storageKey,i=void 0===o?H:o;return{get:function(){if(void 0===e){var t=n.getItem(i);if(null===t)e={};else try{e=JSON.parse(t)}catch(t){e={}}}return e},set:function(t,r){e=Object(s.a)({},e,Object(j.a)({},t,r)),n.setItem(i,JSON.stringify(e))}}}var G=function(t,e){var r=q(e);function n(t,e,n){var o;if(Array.isArray(n)){var i=n.reduce(function(t,e){return Object.assign(t,Object(j.a)({},e,function(t,r){return r.nextState[e]}))},{});o=Q(c()(i))}else o=function(t,e){return e.nextState};var u=o(void 0,{nextState:t()});return function(n){var i=o(u,{nextState:t()});return i!==u&&(r.set(e,i),u=i),n}}return{registerStore:function(e,o){if(!o.persist)return t.registerStore(e,o);var i=r.get()[e];if(void 0!==i){var u=o.reducer(void 0,{type:"@@WP/PERSISTENCE_RESTORE"});u=Object(f.isPlainObject)(u)&&Object(f.isPlainObject)(i)?Object(f.merge)({},u,i):i,o=Object(s.a)({},o,{initialState:u})}var c=t.registerStore(e,o);return c.dispatch=Object(f.flow)([c.dispatch,n(c.getState,e,o.persist)]),c}}};G.__unstableMigrate=function(t){var e=q(t),r=e.get()["core/editor"];if(r&&r.preferences&&r.preferences.insertUsage){var n={preferences:{insertUsage:r.preferences.insertUsage}};e.set("core/editor",Object(s.a)({},r,{preferences:Object(f.omit)(r.preferences,["insertUsage"])})),e.set("core/block-editor",n)}};var X=G,z=r(19),B=r(10),J=r(9),Y=r(11),Z=r(12),$=r(13),tt=r(3),et=r(0),rt=r(40),nt=r(7),ot=r(190),it=Object(et.createContext)(U),ut=it.Consumer,ct=it.Provider,at=ut,st=ct,ft=Object(et.createContext)(!1),lt=ft.Consumer,pt=ft.Provider,dt=lt,ht=pt,yt=Object(ot.createQueue)(),bt=function(t){return Object(nt.createHigherOrderComponent)(function(e){var r={};function n(e){return t(e.registry.select,e.ownProps,e.registry)||r}var o=function(t){function r(t){var e;return Object(B.a)(this,r),(e=Object(Y.a)(this,Object(Z.a)(r).call(this,t))).onStoreChange=e.onStoreChange.bind(Object(tt.a)(Object(tt.a)(e))),e.subscribe(t.registry),e.mergeProps=n(t),e}return Object($.a)(r,t),Object(J.a)(r,[{key:"componentDidMount",value:function(){this.canRunSelection=!0,this.hasQueuedSelection&&(this.hasQueuedSelection=!1,this.onStoreChange())}},{key:"componentWillUnmount",value:function(){this.canRunSelection=!1,this.unsubscribe(),yt.flush(this)}},{key:"shouldComponentUpdate",value:function(t,e){var r=t.registry!==this.props.registry,o=t.isAsync!==this.props.isAsync;r&&(this.unsubscribe(),this.subscribe(t.registry)),o&&yt.flush(this);var i=r||!Object(rt.isShallowEqualObjects)(this.props.ownProps,t.ownProps);if(this.state===e&&!i&&!o)return!1;if(i||o){var u=n(t);Object(rt.isShallowEqualObjects)(this.mergeProps,u)||(this.mergeProps=u)}return!0}},{key:"onStoreChange",value:function(){if(this.canRunSelection){var t=n(this.props);Object(rt.isShallowEqualObjects)(this.mergeProps,t)||(this.mergeProps=t,this.setState({}))}else this.hasQueuedSelection=!0}},{key:"subscribe",value:function(t){var e=this;this.unsubscribe=t.subscribe(function(){e.props.isAsync?yt.add(e,e.onStoreChange):e.onStoreChange()})}},{key:"render",value:function(){return Object(et.createElement)(e,Object(z.a)({},this.props.ownProps,this.mergeProps))}}]),r}(et.Component);return function(t){return Object(et.createElement)(dt,null,function(e){return Object(et.createElement)(at,null,function(r){return Object(et.createElement)(o,{ownProps:t,registry:r,isAsync:e})})})}},"withSelect")},vt=function(t){return Object(nt.createHigherOrderComponent)(function(e){var r=function(r){function n(t){var e;return Object(B.a)(this,n),(e=Object(Y.a)(this,Object(Z.a)(n).apply(this,arguments))).proxyProps={},e.setProxyProps(t),e}return Object($.a)(n,r),Object(J.a)(n,[{key:"proxyDispatch",value:function(e){for(var r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),t.call(r,o,i,e)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(e.prototype,r),u&&o(e,u),t}();t.exports=u},69:function(t,e,r){"use strict";(function(t,n){var o,i=r(88);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:n;var u=Object(i.a)(o);e.a=u}).call(this,r(51),r(121)(t))},7:function(t,e){!function(){t.exports=this.wp.compose}()},8:function(t,e,r){"use strict";r.d(e,"a",function(){return o});var n=r(15);function o(t){for(var e=1;e3?u-3:0),a=3;a0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return r;var i=e(r[o],n);return i===r[o]?r:Object(s.a)({},r,Object(j.a)({},o,i))}}},x=Object(f.flowRight)([_("reducerKey"),_("selectorName")])(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new E.a,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===e.type,n=new E.a(t);return n.set(e.args,r),n;case"INVALIDATE_RESOLUTION":var o=new E.a(t);return o.delete(e.args),o}return t});function R(t,e,r,n){var o=Object(f.get)(t,[e,r]);if(o)return o.get(n)}function P(t,e,r){return void 0!==R(t,e,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function T(t,e,r){return!1===R(t,e,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function I(t,e,r){return!0===R(t,e,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function N(t,e){return t.hasOwnProperty(e)?t[e]:{}}function A(t,e,r){return{type:"START_RESOLUTION",reducerKey:t,selectorName:e,args:r}}function L(t,e,r){return{type:"FINISH_RESOLUTION",reducerKey:t,selectorName:e,args:r}}function k(t,e,r){return{type:"INVALIDATE_RESOLUTION",reducerKey:t,selectorName:e,args:r}}function C(t){return{type:"INVALIDATE_RESOLUTION_FOR_STORE",reducerKey:t}}function U(t,e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",reducerKey:t,selectorName:e}}var D={reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return Object(f.has)(t,e.reducerKey)?Object(f.omit)(t,[e.reducerKey]):t;case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(f.has)(t,[e.reducerKey,e.selectorName])?Object(s.a)({},t,Object(j.a)({},e.reducerKey,Object(f.omit)(t[e.reducerKey],[e.selectorName]))):t;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return x(t,e)}return t},actions:o,selectors:n};function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={},r=[];function n(){r.forEach(function(t){return t()})}function o(t,r){if("function"!=typeof r.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof r.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof r.subscribe)throw new TypeError("config.subscribe must be a function");e[t]=r,r.subscribe(n)}var i,u={registerGenericStore:o,stores:e,namespaces:e,subscribe:function(t){return r.push(t),function(){r=Object(f.without)(r,t)}},select:function(t){var r=e[t];return r&&r.getSelectors()},dispatch:function(t){var r=e[t];return r&&r.getActions()},use:function(t,e){return u=Object(s.a)({},u,t(u,e))}};return u.registerStore=function(t,e){if(!e.reducer)throw new TypeError("Must specify store reducer");var r=m(t,e,u);return o(t,r),r.store},Object.entries(Object(s.a)({"core/data":D},t)).map(function(t){var e=Object(a.a)(t,2),r=e[0],n=e[1];return u.registerStore(r,n)}),i=u,Object(f.mapValues)(i,function(t,e){return"function"!=typeof t?t:function(){return u[e].apply(null,arguments)}})}var M,V,K=F(),G=r(224),H=r.n(G),W=function(t){return{registerStore:function(e,r){var n=t.registerStore(e,r);if(r.controls){var o=Object(f.mapValues)(r.controls,function(e){return e.isRegistryControl?e(t):e}),i=H()(o),u=Object(d.a)(i);Object.assign(n,u(function(){return n})(r.reducer)),t.namespaces[e].supportControls=!0}return n}}},Q={getItem:function(t){return M&&M[t]?M[t]:null},setItem:function(t,e){M||Q.clear(),M[t]=String(e)},clear:function(){M=Object.create(null)}},Y=Q;try{(V=window.localStorage).setItem("__wpDataTestLocalStorage",""),V.removeItem("__wpDataTestLocalStorage")}catch(t){V=Y}var q=V,X="WP_DATA",z=function(t){return function(e,r){return r.nextState===e?e:t(e,r)}};function B(t){var e,r=t.storage,n=void 0===r?q:r,o=t.storageKey,i=void 0===o?X:o;return{get:function(){if(void 0===e){var t=n.getItem(i);if(null===t)e={};else try{e=JSON.parse(t)}catch(t){e={}}}return e},set:function(t,r){e=Object(s.a)({},e,Object(j.a)({},t,r)),n.setItem(i,JSON.stringify(e))}}}var J=function(t,e){var r=B(e);function n(t,e,n){var o;if(Array.isArray(n)){var i=n.reduce(function(t,e){return Object.assign(t,Object(j.a)({},e,function(t,r){return r.nextState[e]}))},{});o=z(c()(i))}else o=function(t,e){return e.nextState};var u=o(void 0,{nextState:t()});return function(n){var i=o(u,{nextState:t()});return i!==u&&(r.set(e,i),u=i),n}}return{registerStore:function(e,o){if(!o.persist)return t.registerStore(e,o);var i=r.get()[e];if(void 0!==i){var u=o.reducer(void 0,{type:"@@WP/PERSISTENCE_RESTORE"});u=Object(f.isPlainObject)(u)&&Object(f.isPlainObject)(i)?Object(f.merge)({},u,i):i,o=Object(s.a)({},o,{initialState:u})}var c=t.registerStore(e,o);return c.dispatch=Object(f.flow)([c.dispatch,n(c.getState,e,o.persist)]),c}}};J.__unstableMigrate=function(t){var e=B(t),r=e.get()["core/editor"];if(r&&r.preferences&&r.preferences.insertUsage){var n={preferences:{insertUsage:r.preferences.insertUsage}};e.set("core/editor",Object(s.a)({},r,{preferences:Object(f.omit)(r.preferences,["insertUsage"])})),e.set("core/block-editor",n)}};var Z=J,$=r(19),tt=r(10),et=r(9),rt=r(11),nt=r(12),ot=r(13),it=r(3),ut=r(0),ct=r(42),at=r(6),st=r(225),ft=Object(ut.createContext)(K),lt=ft.Consumer,pt=ft.Provider,ht=lt,dt=pt,yt=Object(ut.createContext)(!1),vt=yt.Consumer,bt=yt.Provider,gt=vt,Ot=bt,mt=Object(st.createQueue)(),wt=function(t){return Object(at.createHigherOrderComponent)(function(e){var r={};function n(e){return t(e.registry.select,e.ownProps,e.registry)||r}var o=function(t){function r(t){var e;return Object(tt.a)(this,r),(e=Object(rt.a)(this,Object(nt.a)(r).call(this,t))).onStoreChange=e.onStoreChange.bind(Object(it.a)(Object(it.a)(e))),e.subscribe(t.registry),e.mergeProps=n(t),e}return Object(ot.a)(r,t),Object(et.a)(r,[{key:"componentDidMount",value:function(){this.canRunSelection=!0,this.hasQueuedSelection&&(this.hasQueuedSelection=!1,this.onStoreChange())}},{key:"componentWillUnmount",value:function(){this.canRunSelection=!1,this.unsubscribe(),mt.flush(this)}},{key:"shouldComponentUpdate",value:function(t,e){var r=t.registry!==this.props.registry,o=t.isAsync!==this.props.isAsync;r&&(this.unsubscribe(),this.subscribe(t.registry)),o&&mt.flush(this);var i=r||!Object(ct.isShallowEqualObjects)(this.props.ownProps,t.ownProps);if(this.state===e&&!i&&!o)return!1;if(i||o){var u=n(t);Object(ct.isShallowEqualObjects)(this.mergeProps,u)||(this.mergeProps=u)}return!0}},{key:"onStoreChange",value:function(){if(this.canRunSelection){var t=n(this.props);Object(ct.isShallowEqualObjects)(this.mergeProps,t)||(this.mergeProps=t,this.setState({}))}else this.hasQueuedSelection=!0}},{key:"subscribe",value:function(t){var e=this;this.unsubscribe=t.subscribe(function(){e.props.isAsync?mt.add(e,e.onStoreChange):e.onStoreChange()})}},{key:"render",value:function(){return Object(ut.createElement)(e,Object($.a)({},this.props.ownProps,this.mergeProps))}}]),r}(ut.Component);return function(t){return Object(ut.createElement)(gt,null,function(e){return Object(ut.createElement)(ht,null,function(r){return Object(ut.createElement)(o,{ownProps:t,registry:r,isAsync:e})})})}},"withSelect")},jt=function(t){return Object(at.createHigherOrderComponent)(function(e){var r=function(r){function n(t){var e;return Object(tt.a)(this,n),(e=Object(rt.a)(this,Object(nt.a)(n).apply(this,arguments))).proxyProps={},e.setProxyProps(t),e}return Object(ot.a)(n,r),Object(et.a)(n,[{key:"proxyDispatch",value:function(e){for(var r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(55),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},55:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=m;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",y={},v={};v[u]=function(){return this};var b=Object.getPrototypeOf,g=b&&b(b(N([])));g&&g!==n&&o.call(g,u)&&(v=g);var O=E.prototype=j.prototype=Object.create(v);S.prototype=O.constructor=E,E.constructor=S,E[a]=S.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(O),t},f.awrap=function(t){return{__await:t}},_(x.prototype),x.prototype[c]=function(){return this},f.AsyncIterator=x,f.async=function(t,e,r,n){var o=new x(m(t,e,r,n));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},_(O),O[a]="Generator",O[u]=function(){return this},O.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=N,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(a&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}}}function m(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,i=Object.create(o.prototype),u=new I(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=R(u,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var a=w(t,e,r);if("normal"===a.type){if(n=r.done?d:p,a.arg===y)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n=d,r.method="throw",r.arg=a.arg)}}}(t,r,u),i}function w(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function j(){}function S(){}function E(){}function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function x(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,u){var c=w(t[r],t,n);if("throw"!==c.type){var a=c.arg,s=a.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(s).then(function(t){a.value=t,i(a)},function(t){return e("throw",t,i,u)})}u(c.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function R(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,R(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=w(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),t.call(r,o,i,e)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(e.prototype,r),u&&o(e,u),t}();t.exports=u},77:function(t,e,r){"use strict";(function(t,n){var o,i=r(99);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:n;var u=Object(i.a)(o);e.a=u}).call(this,r(59),r(132)(t))},9:function(t,e,r){"use strict";function n(t,e){for(var r=0;r96?M-87:M>64?M-29:M-48}function d(M){var z=0,b=M.split("."),p=b[0],O=b[1]||"",A=1,q=0,o=1;for(45===M.charCodeAt(0)&&(z=1,o=-1);z3){var z=O[e(M)];if(z)return z;t("Moment Timezone found "+M+" from the Intl api, but did not have that data loaded.")}}catch(M){}var b,p,A,q=function(){var M,z,b,p=(new Date).getFullYear()-2,O=new L(new Date(p,0,1)),A=[O];for(b=1;b<48;b++)(z=new L(new Date(p,b,1))).offset!==O.offset&&(M=a(O,z),A.push(M),A.push(new L(new Date(M.at+6e4)))),O=z;for(b=0;b<4;b++)A.push(new L(new Date(p+b,0,1))),A.push(new L(new Date(p+b,6,1)));return A}(),o=q.length,c=u(q),W=[];for(p=0;p0?W[0].zone.name:void 0}function e(M){return(M||"").toLowerCase().replace(/\//g,"_")}function r(M){var z,p,A,q;for("string"==typeof M&&(M=[M]),z=0;z= 2.6.0. You are using Moment.js "+M.version+". See momentjs.com"),n.prototype={_set:function(M){this.name=M.name,this.abbrs=M.abbrs,this.untils=M.untils,this.offsets=M.offsets,this.population=M.population},_index:function(M){var z,b=+M,p=this.untils;for(z=0;zp&&s.moveInvalidForward&&(z=p),A= 2.9.0. You are using Moment.js "+M.version+"."),M.defaultZone=z?H(z):null,M};var m=M.momentProperties;return"[object Array]"===Object.prototype.toString.call(m)?(m.push("_z"),m.push("_a")):m&&(m._z=null),M})},264:function(M,z,b){"use strict";b.r(z),b.d(z,"setSettings",function(){return o}),b.d(z,"__experimentalGetSettings",function(){return c}),b.d(z,"format",function(){return X}),b.d(z,"date",function(){return B}),b.d(z,"gmdate",function(){return n}),b.d(z,"dateI18n",function(){return L}),b.d(z,"isInTheFuture",function(){return f}),b.d(z,"getDate",function(){return a});var p=b(27),O=b.n(p),A=(b(175),b(265),"WP"),q={l10n:{locale:"en_US",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:" % s from now",past:"% s ago"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:""}};function o(M){q=M;var z=O.a.locale();O.a.updateLocale(M.l10n.locale,{parentLocale:z,months:M.l10n.months,monthsShort:M.l10n.monthsShort,weekdays:M.l10n.weekdays,weekdaysShort:M.l10n.weekdaysShort,meridiem:function(z,b,p){return z<12?p?M.l10n.meridiem.am:M.l10n.meridiem.AM:p?M.l10n.meridiem.pm:M.l10n.meridiem.PM},longDateFormat:{LT:M.formats.time,LTS:null,L:null,LL:M.formats.date,LLL:M.formats.datetime,LLLL:null},relativeTime:{future:M.l10n.relative.future,past:M.l10n.relative.past,s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}}),O.a.locale(z),W()}function c(){return q}function W(){O.a.tz.add(O.a.tz.pack({name:A,abbrs:[A],untils:[null],offsets:[60*-q.timezone.offset||0]}))}var d=60,R={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(M){var z=M.format("D");return M.format("Do").replace(z,"")},w:"d",z:function(M){return""+parseInt(M.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(M){return M.daysInMonth()},L:function(M){return M.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(M){var z=O()(M).utcOffset(60),b=parseInt(z.format("s"),10),p=parseInt(z.format("m"),10),A=parseInt(z.format("H"),10);return parseInt((b+60*p+3600*A)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(M){return M.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(M){var z=M.format("Z"),b="-"===z[0]?-1:1,p=z.substring(1).split(":");return b*(p[0]*d+p[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function X(M){var z,b,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,A=[],q=O()(p);for(z=0;z1&&void 0!==arguments[1]?arguments[1]:new Date,b=q.timezone.offset*d;return X(M,O()(z).utcOffset(b,!0))}function n(M){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return X(M,O()(z).utc())}function L(M){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:q.timezone.offset*d,p=O()(z).utcOffset(b,!0);return p.locale(q.l10n.locale),X(M,p)}function f(M){var z=O.a.tz(A);return O.a.tz(M,A).isAfter(z)}function a(M){return M?O.a.tz(M,A).toDate():O.a.tz(A).toDate()}W()},265:function(M,z,b){var p,O,A;//! moment-timezone-utils.js +!function(q,o){"use strict";M.exports?M.exports=o(b(29)):(O=[b(29)],void 0===(A="function"==typeof(p=o)?p.apply(z,O):p)||(M.exports=A))}(0,function(M){"use strict";var z,b={},p={},O={},A={};M&&"string"==typeof M.version||t("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var q=M.version.split("."),o=+q[0],c=+q[1];function W(M){return M>96?M-87:M>64?M-29:M-48}function d(M){var z=0,b=M.split("."),p=b[0],O=b[1]||"",A=1,q=0,o=1;for(45===M.charCodeAt(0)&&(z=1,o=-1);z3){var z=O[e(M)];if(z)return z;t("Moment Timezone found "+M+" from the Intl api, but did not have that data loaded.")}}catch(M){}var b,p,A,q=function(){var M,z,b,p=(new Date).getFullYear()-2,O=new L(new Date(p,0,1)),A=[O];for(b=1;b<48;b++)(z=new L(new Date(p,b,1))).offset!==O.offset&&(M=a(O,z),A.push(M),A.push(new L(new Date(M.at+6e4)))),O=z;for(b=0;b<4;b++)A.push(new L(new Date(p+b,0,1))),A.push(new L(new Date(p+b,6,1)));return A}(),o=q.length,c=u(q),W=[];for(p=0;p0?W[0].zone.name:void 0}function e(M){return(M||"").toLowerCase().replace(/\//g,"_")}function r(M){var z,p,A,q;for("string"==typeof M&&(M=[M]),z=0;z= 2.6.0. You are using Moment.js "+M.version+". See momentjs.com"),n.prototype={_set:function(M){this.name=M.name,this.abbrs=M.abbrs,this.untils=M.untils,this.offsets=M.offsets,this.population=M.population},_index:function(M){var z,b=+M,p=this.untils;for(z=0;zp&&s.moveInvalidForward&&(z=p),A= 2.9.0. You are using Moment.js "+M.version+"."),M.defaultZone=z?H(z):null,M};var m=M.momentProperties;return"[object Array]"===Object.prototype.toString.call(m)?(m.push("_z"),m.push("_a")):m&&(m._z=null),M})},29:function(M,z){!function(){M.exports=this.moment}()},335:function(M,z,b){"use strict";b.r(z),b.d(z,"setSettings",function(){return o}),b.d(z,"__experimentalGetSettings",function(){return c}),b.d(z,"format",function(){return X}),b.d(z,"date",function(){return B}),b.d(z,"gmdate",function(){return n}),b.d(z,"dateI18n",function(){return L}),b.d(z,"isInTheFuture",function(){return f}),b.d(z,"getDate",function(){return a});var p=b(29),O=b.n(p),A=(b(198),b(336),"WP"),q={l10n:{locale:"en_US",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:" % s from now",past:"% s ago"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:""}};function o(M){q=M;var z=O.a.locale();O.a.updateLocale(M.l10n.locale,{parentLocale:z,months:M.l10n.months,monthsShort:M.l10n.monthsShort,weekdays:M.l10n.weekdays,weekdaysShort:M.l10n.weekdaysShort,meridiem:function(z,b,p){return z<12?p?M.l10n.meridiem.am:M.l10n.meridiem.AM:p?M.l10n.meridiem.pm:M.l10n.meridiem.PM},longDateFormat:{LT:M.formats.time,LTS:null,L:null,LL:M.formats.date,LLL:M.formats.datetime,LLLL:null},relativeTime:{future:M.l10n.relative.future,past:M.l10n.relative.past,s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}}),O.a.locale(z),W()}function c(){return q}function W(){O.a.tz.add(O.a.tz.pack({name:A,abbrs:[A],untils:[null],offsets:[60*-q.timezone.offset||0]}))}var d=60,R={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(M){var z=M.format("D");return M.format("Do").replace(z,"")},w:"d",z:function(M){return""+parseInt(M.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(M){return M.daysInMonth()},L:function(M){return M.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(M){var z=O()(M).utcOffset(60),b=parseInt(z.format("s"),10),p=parseInt(z.format("m"),10),A=parseInt(z.format("H"),10);return parseInt((b+60*p+3600*A)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(M){return M.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(M){var z=M.format("Z"),b="-"===z[0]?-1:1,p=z.substring(1).split(":");return b*(p[0]*d+p[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function X(M){var z,b,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,A=[],q=O()(p);for(z=0;z1&&void 0!==arguments[1]?arguments[1]:new Date,b=q.timezone.offset*d;return X(M,O()(z).utcOffset(b,!0))}function n(M){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return X(M,O()(z).utc())}function L(M){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:q.timezone.offset*d,p=O()(z).utcOffset(b,!0);return p.locale(q.l10n.locale),X(M,p)}function f(M){var z=O.a.tz(A);return O.a.tz(M,A).isAfter(z)}function a(M){return M?O.a.tz(M,A).toDate():O.a.tz(A).toDate()}W()},336:function(M,z,b){var p,O,A;//! moment-timezone-utils.js //! version : 0.5.23 //! Copyright (c) JS Foundation and other contributors //! license : MIT @@ -18,4 +18,4 @@ this.wp=this.wp||{},this.wp.date=function(M){var z={};function b(p){if(z[p])retu //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone -!function(q,o){"use strict";M.exports?M.exports=o(b(266)):(O=[b(27)],void 0===(A="function"==typeof(p=o)?p.apply(z,O):p)||(M.exports=A))}(0,function(M){"use strict";if(!M.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",b=1e-6;function p(M,p){for(var O="",A=Math.abs(M),q=Math.floor(A),o=function(M,p){for(var O,A=".",q="";p>0;)p-=1,M*=60,O=Math.floor(M+b),A+=z[O],M-=O,O&&(q+=A,A="");return q}(A-q,Math.min(~~p,10));q>0;)O=z[q%60]+O,q=Math.floor(q/60);return M<0&&(O="-"+O),O&&o?O+o:(o||"-"!==O)&&(O||o)||"0"}function O(M){var z,b=[],O=0;for(z=0;zo.population?c.unshift(q):q.population===o.population&&p&&p[q.name]?c.unshift(q):c.push(q),d=!0);d||R.push([q])}for(O=0;Ob&&(O=z,z=b,b=O),O=0;Ob&&(q=Math.min(q,O+1)));return[A,q]}(M.untils,z,b),A=p.apply(M.untils,O);return A[A.length-1]=null,{name:M.name,abbrs:p.apply(M.abbrs,O),untils:A,offsets:p.apply(M.offsets,O),population:M.population}}return M.tz.pack=o,M.tz.packBase60=p,M.tz.createLinks=d,M.tz.filterYears=R,M.tz.filterLinkPack=function(M,z,b,p){var O,A,q=M.zones,c=[];for(O=0;O0;)p-=1,M*=60,O=Math.floor(M+b),A+=z[O],M-=O,O&&(q+=A,A="");return q}(A-q,Math.min(~~p,10));q>0;)O=z[q%60]+O,q=Math.floor(q/60);return M<0&&(O="-"+O),O&&o?O+o:(o||"-"!==O)&&(O||o)||"0"}function O(M){var z,b=[],O=0;for(z=0;zo.population?c.unshift(q):q.population===o.population&&p&&p[q.name]?c.unshift(q):c.push(q),d=!0);d||R.push([q])}for(O=0;Ob&&(O=z,z=b,b=O),O=0;Ob&&(q=Math.min(q,O+1)));return[A,q]}(M.untils,z,b),A=p.apply(M.untils,O);return A[A.length-1]=null,{name:M.name,abbrs:p.apply(M.abbrs,O),untils:A,offsets:p.apply(M.offsets,O),population:M.population}}return M.tz.pack=o,M.tz.packBase60=p,M.tz.createLinks=d,M.tz.filterYears=R,M.tz.filterLinkPack=function(M,z,b,p){var O,A,q=M.zones,c=[];for(O=0;O1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,u=t.plugin,i=t.link,a=t.hint,l=u?" from ".concat(u):"",f=n?"".concat(l," in ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",p=i?" See: ".concat(i):"",s=a?" Note: ".concat(a):"",b="".concat(e," is deprecated and will be removed").concat(f,".").concat(d).concat(p).concat(s);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.deprecated=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=339)}({24:function(e,t){!function(){e.exports=this.wp.hooks}()},339:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",function(){return o}),n.d(t,"default",function(){return c});var r=n(24),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,u=t.plugin,i=t.link,a=t.hint,l=u?" from ".concat(u):"",f=n?"".concat(l," in ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",p=i?" See: ".concat(i):"",s=a?" Note: ".concat(a):"",b="".concat(e," is deprecated and will be removed").concat(f,".").concat(d).concat(p).concat(s);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom-ready.js b/wp-includes/js/dist/dom-ready.js index 06c0215efb..941121347c 100644 --- a/wp-includes/js/dist/dom-ready.js +++ b/wp-includes/js/dist/dom-ready.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["domReady"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 269); +/******/ return __webpack_require__(__webpack_require__.s = 340); /******/ }) /************************************************************************/ /******/ ({ -/***/ 269: +/***/ 340: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -97,6 +97,15 @@ __webpack_require__.r(__webpack_exports__); * * @param {Function} callback A function to execute after the DOM is ready. * + * @example + * ```js + * import domReady from '@wordpress/dom-ready'; + * + * domReady( function() { + * //do something after DOM loads. + * } ); + * ``` + * * @return {void} */ var domReady = function domReady(callback) { diff --git a/wp-includes/js/dist/dom-ready.min.js b/wp-includes/js/dist/dom-ready.min.js index 8a35869fa1..9425bc2f94 100644 --- a/wp-includes/js/dist/dom-ready.min.js +++ b/wp-includes/js/dist/dom-ready.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.domReady=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=269)}({269:function(e,t,n){"use strict";n.r(t);t.default=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.domReady=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=340)}({340:function(e,t,n){"use strict";n.r(t);t.default=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom.js b/wp-includes/js/dist/dom.js index ca695ff58f..946158b5fc 100644 --- a/wp-includes/js/dist/dom.js +++ b/wp-includes/js/dist/dom.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 325); +/******/ return __webpack_require__(__webpack_require__.s = 379); /******/ }) /************************************************************************/ /******/ ({ -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -103,7 +103,7 @@ function _arrayWithoutHoles(arr) { } } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(33); +var iterableToArray = __webpack_require__(34); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -127,7 +127,18 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 325: +/***/ 34: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +/***/ }), + +/***/ 379: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -141,7 +152,7 @@ __webpack_require__.d(tabbable_namespaceObject, "isTabbableIndex", function() { __webpack_require__.d(tabbable_namespaceObject, "find", function() { return tabbable_find; }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/focusable.js @@ -224,11 +235,19 @@ function find(context) { }); } +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + // CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/tabbable.js +/** + * External dependencies + */ + /** * Internal dependencies */ + /** * Returns the tab index of the given element. In contrast with the tabIndex * property, this normalizes the default (0) to avoid browser inconsistencies, @@ -258,6 +277,47 @@ function getTabIndex(element) { function isTabbableIndex(element) { return getTabIndex(element) !== -1; } +/** + * Returns a stateful reducer function which constructs a filtered array of + * tabbable elements, where at most one radio input is selected for a given + * name, giving priority to checked input, falling back to the first + * encountered. + * + * @return {Function} Radio group collapse reducer. + */ + +function createStatefulCollapseRadioGroup() { + var CHOSEN_RADIO_BY_NAME = {}; + return function collapseRadioGroup(result, element) { + var nodeName = element.nodeName, + type = element.type, + checked = element.checked, + name = element.name; // For all non-radio tabbables, construct to array by concatenating. + + if (nodeName !== 'INPUT' || type !== 'radio' || !name) { + return result.concat(element); + } + + var hasChosen = CHOSEN_RADIO_BY_NAME.hasOwnProperty(name); // Omit by skipping concatenation if the radio element is not chosen. + + var isChosen = checked || !hasChosen; + + if (!isChosen) { + return result; + } // At this point, if there had been a chosen element, the current + // element is checked and should take priority. Retroactively remove + // the element which had previously been considered the chosen one. + + + if (hasChosen) { + var hadChosenElement = CHOSEN_RADIO_BY_NAME[name]; + result = Object(external_lodash_["without"])(result, hadChosenElement); + } + + CHOSEN_RADIO_BY_NAME[name] = element; + return result.concat(element); + }; +} /** * An array map callback, returning an object with the element value and its * array index location as properties. This is used to emulate a proper stable @@ -270,6 +330,7 @@ function isTabbableIndex(element) { * @return {Object} Mapped object with element, index. */ + function mapElementToObjectTabbable(element, index) { return { element: element, @@ -313,12 +374,9 @@ function compareObjectTabbables(a, b) { } function tabbable_find(context) { - return find(context).filter(isTabbableIndex).map(mapElementToObjectTabbable).sort(compareObjectTabbables).map(mapObjectTabbableToElement); + return find(context).filter(isTabbableIndex).map(mapElementToObjectTabbable).sort(compareObjectTabbables).map(mapObjectTabbableToElement).reduce(createStatefulCollapseRadioGroup(), []); } -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(2); - // CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/dom.js /** * External dependencies @@ -486,7 +544,13 @@ function isVerticalEdge(container, isReverse) { return true; } - var selection = window.getSelection(); + var selection = window.getSelection(); // Only consider the selection at the edge if the direction is towards the + // edge. + + if (!selection.isCollapsed && isSelectionForward(selection) === isReverse) { + return false; + } + var range = selection.rangeCount ? selection.getRangeAt(0) : null; if (!range) { @@ -499,8 +563,15 @@ function isVerticalEdge(container, isReverse) { return false; } - var buffer = rangeRect.height / 2; - var editableRect = container.getBoundingClientRect(); // Too low. + var editableRect = container.getBoundingClientRect(); // Calculate a buffer that is half the line height. In some browsers, the + // selection rectangle may not fill the entire height of the line, so we add + // half the line height to the selection rectangle to ensure that it is well + // over its line boundary. + + var _window$getComputedSt = window.getComputedStyle(container), + lineHeight = _window$getComputedSt.lineHeight; + + var buffer = parseInt(lineHeight, 10) / 2; // Too low. if (isReverse && rangeRect.top - buffer > editableRect.top) { return false; @@ -838,8 +909,8 @@ function getScrollContainer(node) { if (node.scrollHeight > node.clientHeight) { // ...except when overflow is defined to be hidden or visible - var _window$getComputedSt = window.getComputedStyle(node), - overflowY = _window$getComputedSt.overflowY; + var _window$getComputedSt2 = window.getComputedStyle(node), + overflowY = _window$getComputedSt2.overflowY; if (/(auto|scroll)/.test(overflowY)) { return node; @@ -990,6 +1061,11 @@ function wrap(newNode, referenceNode) { */ +/** + * Object grouping `focusable` and `tabbable` utils + * under the keys with the same name. + */ + var build_module_focus = { focusable: focusable_namespaceObject, tabbable: tabbable_namespaceObject @@ -997,17 +1073,6 @@ var build_module_focus = { -/***/ }), - -/***/ 33: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/dom.min.js b/wp-includes/js/dist/dom.min.js index 38681aacd1..268ee53dab 100644 --- a/wp-includes/js/dist/dom.min.js +++ b/wp-includes/js/dist/dom.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.dom=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=325)}({18:function(e,t,n){"use strict";var r=n(33);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||e.offsetHeight>0||e.getClientRects().length>0}function l(e){var t=e.querySelectorAll(a);return Object(i.a)(t).filter(function(e){return!!u(e)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=document.querySelector('img[usemap="#'+t.name+'"]');return!!n&&u(n)}(e))})}function c(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function d(e){return-1!==c(e)}function f(e,t){return{element:e,index:t}}function s(e){return e.element}function g(e,t){var n=c(e.element),r=c(t.element);return n===r?e.index-t.index:n-r}function p(e){return l(e).filter(d).map(f).sort(g).map(s)}var v=n(2),m=window.getComputedStyle,b=window.Node,h=b.TEXT_NODE,C=b.ELEMENT_NODE,N=b.DOCUMENT_POSITION_PRECEDING,E=b.DOCUMENT_POSITION_FOLLOWING;function S(e,t){if(Object(v.includes)(["INPUT","TEXTAREA"],e.tagName))return e.selectionStart===e.selectionEnd&&(t?0===e.selectionStart:e.value.length===e.selectionStart);if(!e.isContentEditable)return!0;var n=window.getSelection(),r=n.getRangeAt(0).cloneRange();n.isCollapsed||r.collapse(!function(e){var t=e.anchorNode,n=e.focusNode,r=e.anchorOffset,o=e.focusOffset,i=t.compareDocumentPosition(n);return!(i&N)&&(!!(i&E)||0!==i||r<=o)}(n));var o,i=r.startContainer;if(o=t?0:i.nodeValue?i.nodeValue.length:i.childNodes.length,r["".concat(t?"start":"end","Offset")]!==o)return!1;for(var a=t?"previous":"next";i!==e;){for(var u=i["".concat(a,"Sibling")];u&&u.nodeType===h&&""===u.data;)u=u["".concat(a,"Sibling")];if(u)return!1;i=i.parentNode}return!0}function y(e,t){if(Object(v.includes)(["INPUT","TEXTAREA"],e.tagName))return S(e,t);if(!e.isContentEditable)return!0;var n=window.getSelection(),r=n.rangeCount?n.getRangeAt(0):null;if(!r)return!1;var o=R(r);if(!o)return!1;var i=o.height/2,a=e.getBoundingClientRect();return!(t&&o.top-i>a.top)&&!(!t&&o.bottom+i3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var o=n.height/2,i=e.getBoundingClientRect(),a=n.left,u=t?i.bottom-o:i.top+o,l=O(document,a,u,e);if(!l||!e.contains(l.startContainer))return!r||l&&l.startContainer&&l.startContainer.contains(e)?void w(e,t):(e.scrollIntoView(t),void A(e,t,n,!1));if(l.startContainer.nodeType===h){var c=l.startContainer.parentNode,d=c.getBoundingClientRect(),f=t?"bottom":"top",s=parseInt(m(c).getPropertyValue("padding-".concat(f)),10)||0,g=t?d.bottom-s-o:d.top+s+o;u!==g&&(l=O(document,a,g,e))}var p=window.getSelection();p.removeAllRanges(),p.addRange(l),e.focus(),p.removeAllRanges(),p.addRange(l)}else w(e,t)}function P(e){try{var t=e.nodeName,n=e.selectionStart,r=e.contentEditable;return"INPUT"===t&&null!==n||"TEXTAREA"===t||"true"===r}catch(e){return!1}}function x(){if(P(document.activeElement))return!0;var e=window.getSelection(),t=e.rangeCount?e.getRangeAt(0):null;return t&&!t.collapsed}function j(e){if(Object(v.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=window.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,o=n.endContainer,i=n.startOffset,a=n.endOffset;if(r===e&&o===e&&0===i&&a===e.childNodes.length)return!0;var u=e.lastChild,l=u.nodeType===h?u.data.length:u.childNodes.length;return r===e.firstChild&&o===e.lastChild&&0===i&&a===l}function I(e){if(e){if(e.scrollHeight>e.clientHeight){var t=window.getComputedStyle(e).overflowY;if(/(auto|scroll)/.test(t))return e}return I(e.parentNode)}}function _(e){for(var t;(t=e.parentNode)&&t.nodeType!==C;);return t?"static"!==m(t).position?t:t.offsetParent:null}function B(e,t){F(t,e.parentNode),D(e)}function D(e){e.parentNode.removeChild(e)}function F(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function M(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function U(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function H(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}n.d(t,"focus",function(){return V}),n.d(t,"isHorizontalEdge",function(){return S}),n.d(t,"isVerticalEdge",function(){return y}),n.d(t,"getRectangleFromRange",function(){return R}),n.d(t,"computeCaretRect",function(){return T}),n.d(t,"placeCaretAtHorizontalEdge",function(){return w}),n.d(t,"placeCaretAtVerticalEdge",function(){return A}),n.d(t,"isTextField",function(){return P}),n.d(t,"documentHasSelection",function(){return x}),n.d(t,"isEntirelySelected",function(){return j}),n.d(t,"getScrollContainer",function(){return I}),n.d(t,"getOffsetParent",function(){return _}),n.d(t,"replace",function(){return B}),n.d(t,"remove",function(){return D}),n.d(t,"insertAfter",function(){return F}),n.d(t,"unwrap",function(){return M}),n.d(t,"replaceTag",function(){return U}),n.d(t,"wrap",function(){return H});var V={focusable:r,tabbable:o}},33:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.dom=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=379)}({17:function(e,t,n){"use strict";var r=n(34);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||e.offsetHeight>0||e.getClientRects().length>0}function c(e){var t=e.querySelectorAll(a);return Object(i.a)(t).filter(function(e){return!!u(e)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=document.querySelector('img[usemap="#'+t.name+'"]');return!!n&&u(n)}(e))})}var l=n(2);function d(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function f(e){return-1!==d(e)}function s(e,t){return{element:e,index:t}}function g(e){return e.element}function p(e,t){var n=d(e.element),r=d(t.element);return n===r?e.index-t.index:n-r}function v(e){return c(e).filter(f).map(s).sort(p).map(g).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!i&&u)return e;if(u){var c=t[a];e=Object(l.without)(e,c)}return t[a]=n,e.concat(n)}),[]);var t}var m=window.getComputedStyle,b=window.Node,h=b.TEXT_NODE,C=b.ELEMENT_NODE,N=b.DOCUMENT_POSITION_PRECEDING,E=b.DOCUMENT_POSITION_FOLLOWING;function w(e){var t=e.anchorNode,n=e.focusNode,r=e.anchorOffset,o=e.focusOffset,i=t.compareDocumentPosition(n);return!(i&N)&&(!!(i&E)||(0!==i||r<=o))}function y(e,t){if(Object(l.includes)(["INPUT","TEXTAREA"],e.tagName))return e.selectionStart===e.selectionEnd&&(t?0===e.selectionStart:e.value.length===e.selectionStart);if(!e.isContentEditable)return!0;var n=window.getSelection(),r=n.getRangeAt(0).cloneRange();n.isCollapsed||r.collapse(!w(n));var o,i=r.startContainer;if(o=t?0:i.nodeValue?i.nodeValue.length:i.childNodes.length,r["".concat(t?"start":"end","Offset")]!==o)return!1;for(var a=t?"previous":"next";i!==e;){for(var u=i["".concat(a,"Sibling")];u&&u.nodeType===h&&""===u.data;)u=u["".concat(a,"Sibling")];if(u)return!1;i=i.parentNode}return!0}function S(e,t){if(Object(l.includes)(["INPUT","TEXTAREA"],e.tagName))return y(e,t);if(!e.isContentEditable)return!0;var n=window.getSelection();if(!n.isCollapsed&&w(n)===t)return!1;var r=n.rangeCount?n.getRangeAt(0):null;if(!r)return!1;var o=T(r);if(!o)return!1;var i=e.getBoundingClientRect(),a=window.getComputedStyle(e).lineHeight,u=parseInt(a,10)/2;return!(t&&o.top-u>i.top)&&!(!t&&o.bottom+u3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var o=n.height/2,i=e.getBoundingClientRect(),a=n.left,u=t?i.bottom-o:i.top+o,c=A(document,a,u,e);if(!c||!e.contains(c.startContainer))return!r||c&&c.startContainer&&c.startContainer.contains(e)?void R(e,t):(e.scrollIntoView(t),void P(e,t,n,!1));if(c.startContainer.nodeType===h){var l=c.startContainer.parentNode,d=l.getBoundingClientRect(),f=t?"bottom":"top",s=parseInt(m(l).getPropertyValue("padding-".concat(f)),10)||0,g=t?d.bottom-s-o:d.top+s+o;u!==g&&(c=A(document,a,g,e))}var p=window.getSelection();p.removeAllRanges(),p.addRange(c),e.focus(),p.removeAllRanges(),p.addRange(c)}else R(e,t)}function I(e){try{var t=e.nodeName,n=e.selectionStart,r=e.contentEditable;return"INPUT"===t&&null!==n||"TEXTAREA"===t||"true"===r}catch(e){return!1}}function j(){if(I(document.activeElement))return!0;var e=window.getSelection(),t=e.rangeCount?e.getRangeAt(0):null;return t&&!t.collapsed}function x(e){if(Object(l.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=window.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,o=n.endContainer,i=n.startOffset,a=n.endOffset;if(r===e&&o===e&&0===i&&a===e.childNodes.length)return!0;var u=e.lastChild,c=u.nodeType===h?u.data.length:u.childNodes.length;return r===e.firstChild&&o===e.lastChild&&0===i&&a===c}function _(e){if(e){if(e.scrollHeight>e.clientHeight){var t=window.getComputedStyle(e).overflowY;if(/(auto|scroll)/.test(t))return e}return _(e.parentNode)}}function U(e){for(var t;(t=e.parentNode)&&t.nodeType!==C;);return t?"static"!==m(t).position?t:t.offsetParent:null}function B(e,t){F(t,e.parentNode),D(e)}function D(e){e.parentNode.removeChild(e)}function F(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function H(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function M(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function V(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}n.d(t,"focus",function(){return X}),n.d(t,"isHorizontalEdge",function(){return y}),n.d(t,"isVerticalEdge",function(){return S}),n.d(t,"getRectangleFromRange",function(){return T}),n.d(t,"computeCaretRect",function(){return O}),n.d(t,"placeCaretAtHorizontalEdge",function(){return R}),n.d(t,"placeCaretAtVerticalEdge",function(){return P}),n.d(t,"isTextField",function(){return I}),n.d(t,"documentHasSelection",function(){return j}),n.d(t,"isEntirelySelected",function(){return x}),n.d(t,"getScrollContainer",function(){return _}),n.d(t,"getOffsetParent",function(){return U}),n.d(t,"replace",function(){return B}),n.d(t,"remove",function(){return D}),n.d(t,"insertAfter",function(){return F}),n.d(t,"unwrap",function(){return H}),n.d(t,"replaceTag",function(){return M}),n.d(t,"wrap",function(){return V});var X={focusable:r,tabbable:o}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-post.js b/wp-includes/js/dist/edit-post.js index 75c2279951..85cb06edbe 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["editPost"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 307); +/******/ return __webpack_require__(__webpack_require__.s = 360); /******/ }) /************************************************************************/ /******/ ({ @@ -119,7 +119,7 @@ function _classCallCheck(instance, Constructor) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); @@ -147,13 +147,6 @@ function _getPrototypeOf(o) { /***/ }), -/***/ 122: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["notices"]; }()); - -/***/ }), - /***/ 13: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -188,6 +181,13 @@ function _inherits(subClass, superClass) { /***/ }), +/***/ 133: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["notices"]; }()); + +/***/ }), + /***/ 14: /***/ (function(module, exports) { @@ -276,13 +276,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), /***/ 17: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["keycodes"]; }()); - -/***/ }), - -/***/ 18: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -298,7 +291,7 @@ function _arrayWithoutHoles(arr) { } } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(33); +var iterableToArray = __webpack_require__(34); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -315,6 +308,13 @@ function _toConsumableArray(arr) { /***/ }), +/***/ 18: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["keycodes"]; }()); + +/***/ }), + /***/ 19: /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -340,13 +340,6 @@ function _extends() { /***/ }), -/***/ 191: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blockLibrary"]; }()); - -/***/ }), - /***/ 2: /***/ (function(module, exports) { @@ -401,24 +394,38 @@ function _objectWithoutProperties(source, excluded) { /***/ 22: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["url"]; }()); +(function() { module.exports = this["wp"]["editor"]; }()); + +/***/ }), + +/***/ 226: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blockLibrary"]; }()); /***/ }), /***/ 23: /***/ (function(module, exports) { +(function() { module.exports = this["wp"]["url"]; }()); + +/***/ }), + +/***/ 24: +/***/ (function(module, exports) { + (function() { module.exports = this["wp"]["hooks"]; }()); /***/ }), -/***/ 25: +/***/ 28: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(34); +var arrayWithHoles = __webpack_require__(37); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(arr, i) { @@ -447,7 +454,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(35); +var nonIterableRest = __webpack_require__(38); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); @@ -460,7 +467,22 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 28: +/***/ 3: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -742,7 +764,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 29: +/***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -765,22 +787,25 @@ function _typeof(obj) { /***/ }), -/***/ 3: +/***/ 33: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 34: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } /***/ }), -/***/ 307: +/***/ 360: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -800,6 +825,8 @@ __webpack_require__.d(actions_namespaceObject, "removeEditorPanel", function() { __webpack_require__.d(actions_namespaceObject, "toggleFeature", function() { return toggleFeature; }); __webpack_require__.d(actions_namespaceObject, "switchEditorMode", function() { return switchEditorMode; }); __webpack_require__.d(actions_namespaceObject, "togglePinnedPluginItem", function() { return togglePinnedPluginItem; }); +__webpack_require__.d(actions_namespaceObject, "hideBlockTypes", function() { return actions_hideBlockTypes; }); +__webpack_require__.d(actions_namespaceObject, "showBlockTypes", function() { return actions_showBlockTypes; }); __webpack_require__.d(actions_namespaceObject, "setAvailableMetaBoxesPerLocation", function() { return setAvailableMetaBoxesPerLocation; }); __webpack_require__.d(actions_namespaceObject, "requestMetaBoxUpdates", function() { return requestMetaBoxUpdates; }); __webpack_require__.d(actions_namespaceObject, "metaBoxUpdatesSuccess", function() { return metaBoxUpdatesSuccess; }); @@ -830,31 +857,31 @@ __webpack_require__.d(selectors_namespaceObject, "isSavingMetaBoxes", function() var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(81); +var external_this_wp_coreData_ = __webpack_require__(72); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(58); +var external_this_wp_blockEditor_ = __webpack_require__(8); // EXTERNAL MODULE: external {"this":["wp","editor"]} -var external_this_wp_editor_ = __webpack_require__(6); +var external_this_wp_editor_ = __webpack_require__(22); // EXTERNAL MODULE: external {"this":["wp","nux"]} -var external_this_wp_nux_ = __webpack_require__(52); +var external_this_wp_nux_ = __webpack_require__(60); // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(37); +var external_this_wp_viewport_ = __webpack_require__(40); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(122); +var external_this_wp_notices_ = __webpack_require__(133); // EXTERNAL MODULE: external {"this":["wp","blockLibrary"]} -var external_this_wp_blockLibrary_ = __webpack_require__(191); +var external_this_wp_blockLibrary_ = __webpack_require__(226); // EXTERNAL MODULE: external {"this":["wp","data"]} var external_this_wp_data_ = __webpack_require__(5); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(23); +var external_this_wp_hooks_ = __webpack_require__(24); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js var classCallCheck = __webpack_require__(10); @@ -1198,7 +1225,7 @@ var external_this_wp_blocks_ = __webpack_require__(14); var external_this_wp_components_ = __webpack_require__(4); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); +var external_this_wp_compose_ = __webpack_require__(6); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js @@ -1278,7 +1305,7 @@ var withMultipleValidation = Object(external_this_wp_compose_["createHigherOrder } }, Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ key: "block-edit" - }, props))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["Warning"], { + }, props))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { key: "multiple-use-warning", actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { key: "find-original", @@ -1335,10 +1362,10 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post // EXTERNAL MODULE: external {"this":["wp","plugins"]} -var external_this_wp_plugins_ = __webpack_require__(55); +var external_this_wp_plugins_ = __webpack_require__(63); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(22); +var external_this_wp_url_ = __webpack_require__(23); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js @@ -1379,8 +1406,40 @@ function CopyContentMenuItem(_ref) { hasCopied: false }))(CopyContentMenuItem)); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/manage-blocks-menu-item/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +function ManageBlocksMenuItem(_ref) { + var onSelect = _ref.onSelect, + openModal = _ref.openModal; + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + onClick: Object(external_lodash_["flow"])([onSelect, function () { + return openModal('edit-post/manage-blocks'); + }]) + }, Object(external_this_wp_i18n_["__"])('Block Manager')); +} +/* harmony default export */ var manage_blocks_menu_item = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/edit-post'), + openModal = _dispatch.openModal; + + return { + openModal: openModal + }; +})(ManageBlocksMenuItem)); + // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(17); +var external_this_wp_keycodes_ = __webpack_require__(18); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js @@ -1461,11 +1520,14 @@ ToolsMoreMenuGroup.Slot = function (_ref) { + Object(external_this_wp_plugins_["registerPlugin"])('edit-post', { render: function render() { return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(tools_more_menu_group, null, function (_ref) { var onClose = _ref.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(manage_blocks_menu_item, { + onSelect: onClose + }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { role: "menuitem", href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', { post_type: 'wp_block' @@ -1478,13 +1540,13 @@ Object(external_this_wp_plugins_["registerPlugin"])('edit-post', { }); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/defaults.js var PREFERENCES_DEFAULTS = { @@ -1498,7 +1560,8 @@ var PREFERENCES_DEFAULTS = { features: { fixedToolbar: false }, - pinnedPluginItems: {} + pinnedPluginItems: {}, + hiddenBlockTypes: [] }; // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js @@ -1527,6 +1590,24 @@ var PREFERENCES_DEFAULTS = { */ var DEFAULT_ACTIVE_GENERAL_SIDEBAR = 'edit-post/document'; +/** + * Higher-order reducer creator which provides the given initial state for the + * original reducer. + * + * @param {*} initialState Initial state to provide to reducer. + * + * @return {Function} Higher-order reducer. + */ + +var createWithInitialState = function createWithInitialState(initialState) { + return function (reducer) { + return function () { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState; + var action = arguments.length > 1 ? arguments[1] : undefined; + return reducer(state, action); + }; + }; +}; /** * Reducer returning the user preferences. * @@ -1547,11 +1628,9 @@ var DEFAULT_ACTIVE_GENERAL_SIDEBAR = 'edit-post/document'; * @return {Object} Updated state. */ -var preferences = Object(external_this_wp_data_["combineReducers"])({ - isGeneralSidebarDismissed: function isGeneralSidebarDismissed() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var action = arguments.length > 1 ? arguments[1] : undefined; +var preferences = Object(external_lodash_["flow"])([external_this_wp_data_["combineReducers"], createWithInitialState(PREFERENCES_DEFAULTS)])({ + isGeneralSidebarDismissed: function isGeneralSidebarDismissed(state, action) { switch (action.type) { case 'OPEN_GENERAL_SIDEBAR': case 'CLOSE_GENERAL_SIDEBAR': @@ -1560,10 +1639,7 @@ var preferences = Object(external_this_wp_data_["combineReducers"])({ return state; }, - panels: function panels() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PREFERENCES_DEFAULTS.panels; - var action = arguments.length > 1 ? arguments[1] : undefined; - + panels: function panels(state, action) { switch (action.type) { case 'TOGGLE_PANEL_ENABLED': { @@ -1585,34 +1661,36 @@ var preferences = Object(external_this_wp_data_["combineReducers"])({ return state; }, - features: function features() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PREFERENCES_DEFAULTS.features; - var action = arguments.length > 1 ? arguments[1] : undefined; - + features: function features(state, action) { if (action.type === 'TOGGLE_FEATURE') { return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.feature, !state[action.feature])); } return state; }, - editorMode: function editorMode() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PREFERENCES_DEFAULTS.editorMode; - var action = arguments.length > 1 ? arguments[1] : undefined; - + editorMode: function editorMode(state, action) { if (action.type === 'SWITCH_MODE') { return action.mode; } return state; }, - pinnedPluginItems: function pinnedPluginItems() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PREFERENCES_DEFAULTS.pinnedPluginItems; - var action = arguments.length > 1 ? arguments[1] : undefined; - + pinnedPluginItems: function pinnedPluginItems(state, action) { if (action.type === 'TOGGLE_PINNED_PLUGIN_ITEM') { return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, action.pluginName, !Object(external_lodash_["get"])(state, [action.pluginName], true))); } + return state; + }, + hiddenBlockTypes: function hiddenBlockTypes(state, action) { + switch (action.type) { + case 'SHOW_BLOCK_TYPES': + return external_lodash_["without"].apply(void 0, [state].concat(Object(toConsumableArray["a" /* default */])(action.blockNames))); + + case 'HIDE_BLOCK_TYPES': + return Object(external_lodash_["union"])(state, action.blockNames); + } + return state; } }); @@ -1760,20 +1838,24 @@ var reducer_metaBoxes = Object(external_this_wp_data_["combineReducers"])({ })); // EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(64); +var refx = __webpack_require__(70); var refx_default = /*#__PURE__*/__webpack_require__.n(refx); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(25); +var slicedToArray = __webpack_require__(28); // EXTERNAL MODULE: external {"this":["wp","a11y"]} -var external_this_wp_a11y_ = __webpack_require__(44); +var external_this_wp_a11y_ = __webpack_require__(48); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(31); +var external_this_wp_apiFetch_ = __webpack_require__(33); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js +/** + * External dependencies + */ + /** * Returns an action object used in signalling that the user opened an editor sidebar. * @@ -1781,6 +1863,7 @@ var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(exter * * @return {Object} Action object. */ + function actions_openGeneralSidebar(name) { return { type: 'OPEN_GENERAL_SIDEBAR', @@ -1934,6 +2017,36 @@ function togglePinnedPluginItem(pluginName) { pluginName: pluginName }; } +/** + * Returns an action object used in signalling that block types by the given + * name(s) should be hidden. + * + * @param {string[]} blockNames Names of block types to hide. + * + * @return {Object} Action object. + */ + +function actions_hideBlockTypes(blockNames) { + return { + type: 'HIDE_BLOCK_TYPES', + blockNames: Object(external_lodash_["castArray"])(blockNames) + }; +} +/** + * Returns an action object used in signalling that block types by the given + * name(s) should be shown. + * + * @param {string[]} blockNames Names of block types to show. + * + * @return {Object} Action object. + */ + +function actions_showBlockTypes(blockNames) { + return { + type: 'SHOW_BLOCK_TYPES', + blockNames: Object(external_lodash_["castArray"])(blockNames) + }; +} /** * Returns an action object used in signaling * what Meta boxes are available in which location. @@ -1973,7 +2086,7 @@ function metaBoxUpdatesSuccess() { } // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(28); +var rememo = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js /** @@ -2554,7 +2667,7 @@ store_store.dispatch({ /* harmony default export */ var build_module_store = (store_store); // EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(38); +var memize = __webpack_require__(41); var memize_default = /*#__PURE__*/__webpack_require__.n(memize); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/prevent-event-discovery.js @@ -3083,6 +3196,7 @@ function FullscreenModeClose(_ref) { + /** * Internal dependencies */ @@ -3099,21 +3213,21 @@ function HeaderToolbar(_ref) { Object(external_this_wp_i18n_["__"])('Document and block tools') : /* translators: accessibility text for the editor toolbar when Top Toolbar is off */ Object(external_this_wp_i18n_["__"])('Document tools'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["NavigableToolbar"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["NavigableToolbar"], { className: "edit-post-header-toolbar", "aria-label": toolbarAriaLabel - }, Object(external_this_wp_element_["createElement"])(fullscreen_mode_close, null), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["Inserter"], { + }, Object(external_this_wp_element_["createElement"])(fullscreen_mode_close, null), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Inserter"], { disabled: !showInserter, position: "bottom right" }), Object(external_this_wp_element_["createElement"])(external_this_wp_nux_["DotTip"], { tipId: "core/editor.inserter" }, Object(external_this_wp_i18n_["__"])('Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!'))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryUndo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorHistoryRedo"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["TableOfContents"], { hasOutlineItemsDisabled: isTextModeEnabled - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockNavigationDropdown"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockNavigationDropdown"], { isDisabled: isTextModeEnabled }), hasFixedToolbar && isLargeViewport && Object(external_this_wp_element_["createElement"])("div", { className: "edit-post-header-toolbar__block-toolbar" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockToolbar"], null))); + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockToolbar"], null))); } /* harmony default export */ var header_toolbar = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { @@ -3417,7 +3531,7 @@ function BlockInspectorButton(_ref) { var label = areAdvancedSettingsOpened ? Object(external_this_wp_i18n_["__"])('Hide Block Settings') : Object(external_this_wp_i18n_["__"])('Show Block Settings'); return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", + className: "editor-block-settings-menu__control block-editor-block-settings-menu__control", onClick: Object(external_lodash_["flow"])(areAdvancedSettingsOpened ? closeSidebar : openEditorSidebar, speakMessage, onClick), icon: "admin-generic", label: small ? label : undefined, @@ -3489,6 +3603,7 @@ PluginBlockSettingsMenuGroup.Slot = Object(external_this_wp_data_["withSelect"]) * WordPress dependencies */ + /** * Internal dependencies */ @@ -3497,14 +3612,14 @@ PluginBlockSettingsMenuGroup.Slot = Object(external_this_wp_data_["withSelect"]) function VisualEditor() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockSelectionClearer"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockSelectionClearer"], { className: "edit-post-visual-editor editor-styles-wrapper" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["VisualEditorGlobalKeyboardShortcuts"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["CopyHandler"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MultiSelectScrollIntoView"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["WritingFlow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["ObserveTyping"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTitle"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockList"], null))), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["_BlockSettingsMenuFirstItem"], null, function (_ref) { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["VisualEditorGlobalKeyboardShortcuts"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["CopyHandler"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MultiSelectScrollIntoView"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["WritingFlow"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ObserveTyping"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PostTitle"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockList"], null))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["_BlockSettingsMenuFirstItem"], null, function (_ref) { var onClose = _ref.onClose; return Object(external_this_wp_element_["createElement"])(block_inspector_button, { onClick: onClose }); - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["_BlockSettingsMenuPluginsExtension"], null, function (_ref2) { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["_BlockSettingsMenuPluginsExtension"], null, function (_ref2) { var clientIds = _ref2.clientIds, onClose = _ref2.onClose; return Object(external_this_wp_element_["createElement"])(plugin_block_settings_menu_group.Slot, { @@ -3856,6 +3971,274 @@ function KeyboardShortcutHelpModal(_ref4) { }; })])(KeyboardShortcutHelpModal)); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/checklist.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +function BlockTypesChecklist(_ref) { + var blockTypes = _ref.blockTypes, + value = _ref.value, + onItemChange = _ref.onItemChange; + return Object(external_this_wp_element_["createElement"])("ul", { + className: "edit-post-manage-blocks-modal__checklist" + }, blockTypes.map(function (blockType) { + return Object(external_this_wp_element_["createElement"])("li", { + key: blockType.name, + className: "edit-post-manage-blocks-modal__checklist-item" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], { + label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, blockType.title, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { + icon: blockType.icon + })), + checked: value.includes(blockType.name), + onChange: Object(external_lodash_["partial"])(onItemChange, blockType.name) + })); + })); +} + +/* harmony default export */ var checklist = (BlockTypesChecklist); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/category.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + + +function BlockManagerCategory(_ref) { + var instanceId = _ref.instanceId, + category = _ref.category, + blockTypes = _ref.blockTypes, + hiddenBlockTypes = _ref.hiddenBlockTypes, + toggleVisible = _ref.toggleVisible, + toggleAllVisible = _ref.toggleAllVisible; + + if (!blockTypes.length) { + return null; + } + + var checkedBlockNames = external_lodash_["without"].apply(void 0, [Object(external_lodash_["map"])(blockTypes, 'name')].concat(Object(toConsumableArray["a" /* default */])(hiddenBlockTypes))); + var titleId = 'edit-post-manage-blocks-modal__category-title-' + instanceId; + var isAllChecked = checkedBlockNames.length === blockTypes.length; + var ariaChecked; + + if (isAllChecked) { + ariaChecked = 'true'; + } else if (checkedBlockNames.length > 0) { + ariaChecked = 'mixed'; + } else { + ariaChecked = 'false'; + } + + return Object(external_this_wp_element_["createElement"])("div", { + role: "group", + "aria-labelledby": titleId, + className: "edit-post-manage-blocks-modal__category" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CheckboxControl"], { + checked: isAllChecked, + onChange: toggleAllVisible, + className: "edit-post-manage-blocks-modal__category-title", + "aria-checked": ariaChecked, + label: Object(external_this_wp_element_["createElement"])("span", { + id: titleId + }, category.title) + }), Object(external_this_wp_element_["createElement"])(checklist, { + blockTypes: blockTypes, + value: checkedBlockNames, + onItemChange: toggleVisible + })); +} + +/* harmony default export */ var manage_blocks_modal_category = (Object(external_this_wp_compose_["compose"])([external_this_wp_compose_["withInstanceId"], Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/edit-post'), + getPreference = _select.getPreference; + + return { + hiddenBlockTypes: getPreference('hiddenBlockTypes') + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { + var _dispatch = dispatch('core/edit-post'), + showBlockTypes = _dispatch.showBlockTypes, + hideBlockTypes = _dispatch.hideBlockTypes; + + return { + toggleVisible: function toggleVisible(blockName, nextIsChecked) { + if (nextIsChecked) { + showBlockTypes(blockName); + } else { + hideBlockTypes(blockName); + } + }, + toggleAllVisible: function toggleAllVisible(nextIsChecked) { + var blockNames = Object(external_lodash_["map"])(ownProps.blockTypes, 'name'); + + if (nextIsChecked) { + showBlockTypes(blockNames); + } else { + hideBlockTypes(blockNames); + } + } + }; +})])(BlockManagerCategory)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/manager.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +function BlockManager(_ref) { + var search = _ref.search, + setState = _ref.setState, + blockTypes = _ref.blockTypes, + categories = _ref.categories, + hasBlockSupport = _ref.hasBlockSupport, + isMatchingSearchTerm = _ref.isMatchingSearchTerm; + // Filtering occurs here (as opposed to `withSelect`) to avoid wasted + // wasted renders by consequence of `Array#filter` producing a new + // value reference on each call. + blockTypes = blockTypes.filter(function (blockType) { + return hasBlockSupport(blockType, 'inserter', true) && (!search || isMatchingSearchTerm(blockType, search)); + }); + return Object(external_this_wp_element_["createElement"])("div", { + className: "edit-post-manage-blocks-modal__content" + }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { + type: "search", + label: Object(external_this_wp_i18n_["__"])('Search for a block'), + value: search, + onChange: function onChange(nextSearch) { + return setState({ + search: nextSearch + }); + }, + className: "edit-post-manage-blocks-modal__search" + }), Object(external_this_wp_element_["createElement"])("div", { + tabIndex: "0", + role: "region", + "aria-label": Object(external_this_wp_i18n_["__"])('Available block types'), + className: "edit-post-manage-blocks-modal__results" + }, blockTypes.length === 0 && Object(external_this_wp_element_["createElement"])("p", { + className: "edit-post-manage-blocks-modal__no-results" + }, Object(external_this_wp_i18n_["__"])('No blocks found.')), categories.map(function (category) { + return Object(external_this_wp_element_["createElement"])(manage_blocks_modal_category, { + key: category.slug, + category: category, + blockTypes: Object(external_lodash_["filter"])(blockTypes, { + category: category.slug + }) + }); + }))); +} + +/* harmony default export */ var manager = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_compose_["withState"])({ + search: '' +}), Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/blocks'), + getBlockTypes = _select.getBlockTypes, + getCategories = _select.getCategories, + hasBlockSupport = _select.hasBlockSupport, + isMatchingSearchTerm = _select.isMatchingSearchTerm; + + return { + blockTypes: getBlockTypes(), + categories: getCategories(), + hasBlockSupport: hasBlockSupport, + isMatchingSearchTerm: isMatchingSearchTerm + }; +})])(BlockManager)); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/manage-blocks-modal/index.js + + +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +/** + * Unique identifier for Manage Blocks modal. + * + * @type {string} + */ + +var manage_blocks_modal_MODAL_NAME = 'edit-post/manage-blocks'; +function ManageBlocksModal(_ref) { + var isActive = _ref.isActive, + closeModal = _ref.closeModal; + + if (!isActive) { + return null; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { + className: "edit-post-manage-blocks-modal", + title: Object(external_this_wp_i18n_["__"])('Block Manager'), + closeLabel: Object(external_this_wp_i18n_["__"])('Close'), + onRequestClose: closeModal + }, Object(external_this_wp_element_["createElement"])(manager, null)); +} +/* harmony default export */ var manage_blocks_modal = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { + var _select = select('core/edit-post'), + isModalActive = _select.isModalActive; + + return { + isActive: isModalActive(manage_blocks_modal_MODAL_NAME) + }; +}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { + var _dispatch = dispatch('core/edit-post'), + closeModal = _dispatch.closeModal; + + return { + closeModal: closeModal + }; +})])(ManageBlocksModal)); + // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/options-modal/section.js @@ -4537,34 +4920,49 @@ var sidebar_createSlotFill = Object(external_this_wp_components_["createSlotFill */ -var sidebar_Sidebar = function Sidebar(_ref) { +function Sidebar(_ref) { var children = _ref.children, - label = _ref.label; + label = _ref.label, + className = _ref.className; + return Object(external_this_wp_element_["createElement"])("div", { + className: classnames_default()('edit-post-sidebar', className), + role: "region", + "aria-label": label, + tabIndex: "-1" + }, children); +} + +Sidebar = Object(external_this_wp_components_["withFocusReturn"])({ + onFocusReturn: function onFocusReturn() { + var button = document.querySelector('.edit-post-header__settings [aria-label="Settings"]'); + + if (button) { + button.focus(); + return false; + } + } +})(Sidebar); + +function AnimatedSidebarFill(props) { return Object(external_this_wp_element_["createElement"])(Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Animate"], { type: "slide-in", options: { origin: 'left' } - }, function (_ref2) { - var className = _ref2.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('edit-post-sidebar', className), - role: "region", - "aria-label": label, - tabIndex: "-1" - }, children); + }, function () { + return Object(external_this_wp_element_["createElement"])(Sidebar, props); })); -}; +} -var WrappedSidebar = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var name = _ref3.name; +var WrappedSidebar = Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { + var name = _ref2.name; return { isActive: select('core/edit-post').getActiveGeneralSidebarName() === name }; -}), Object(external_this_wp_compose_["ifCondition"])(function (_ref4) { - var isActive = _ref4.isActive; +}), Object(external_this_wp_compose_["ifCondition"])(function (_ref3) { + var isActive = _ref3.isActive; return isActive; -}), external_this_wp_components_["withFocusReturn"])(sidebar_Sidebar); +}))(AnimatedSidebarFill); WrappedSidebar.Slot = sidebar_Slot; /* harmony default export */ var sidebar = (WrappedSidebar); @@ -4855,6 +5253,49 @@ function PostPendingStatus() { var plugin_post_status_info_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPostStatusInfo'), plugin_post_status_info_Fill = plugin_post_status_info_createSlotFill.Fill, plugin_post_status_info_Slot = plugin_post_status_info_createSlotFill.Slot; +/** + * Renders a row in the Status & Visibility panel of the Document sidebar. + * It should be noted that this is named and implemented around the function it serves + * and not its location, which may change in future iterations. + * + * @param {Object} props Component properties. + * @param {string} [props.className] An optional class name added to the row. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo; + * + * function MyPluginPostStatusInfo() { + * return wp.element.createElement( + * PluginPostStatusInfo, + * { + * className: 'my-plugin-post-status-info', + * }, + * __( 'My post status info' ) + * ) + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginPostStatusInfo } = wp.editPost; + * + * const MyPluginPostStatusInfo = () => ( + * + * { __( 'My post status info' ) } + * + * ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + @@ -5454,7 +5895,7 @@ var settings_sidebar_SettingsSidebar = function SettingsSidebar(_ref) { location: "side" })), sidebarName === 'edit-post/block' && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { className: "edit-post-settings-sidebar__panel-block" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["BlockInspector"], null)))); + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockInspector"], null)))); }; /* harmony default export */ var settings_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { @@ -5482,6 +5923,54 @@ var settings_sidebar_SettingsSidebar = function SettingsSidebar(_ref) { var plugin_post_publish_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPostPublishPanel'), plugin_post_publish_panel_Fill = plugin_post_publish_panel_createSlotFill.Fill, plugin_post_publish_panel_Slot = plugin_post_publish_panel_createSlotFill.Slot; +/** + * Renders provided content to the post-publish panel in the publish flow + * (side panel that opens after a user publishes the post). + * + * @param {Object} props Component properties. + * @param {string} [props.className] An optional class name added to the panel. + * @param {string} [props.title] Title displayed at the top of the panel. + * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel; + * + * function MyPluginPostPublishPanel() { + * return wp.element.createElement( + * PluginPostPublishPanel, + * { + * className: 'my-plugin-post-publish-panel', + * title: __( 'My panel title' ), + * initialOpen: true, + * }, + * __( 'My panel content' ) + * ); + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginPostPublishPanel } = wp.editPost; + * + * const MyPluginPostPublishPanel = () => ( + * + * { __( 'My panel content' ) } + * + * ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + var plugin_post_publish_panel_PluginPostPublishPanel = function PluginPostPublishPanel(_ref) { var children = _ref.children, @@ -5510,6 +5999,54 @@ plugin_post_publish_panel_PluginPostPublishPanel.Slot = plugin_post_publish_pane var plugin_pre_publish_panel_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('PluginPrePublishPanel'), plugin_pre_publish_panel_Fill = plugin_pre_publish_panel_createSlotFill.Fill, plugin_pre_publish_panel_Slot = plugin_pre_publish_panel_createSlotFill.Slot; +/** + * Renders provided content to the pre-publish side panel in the publish flow + * (side panel that opens when a user first pushes "Publish" from the main editor). + * + * @param {Object} props Component props. + * @param {string} [props.className] An optional class name added to the panel. + * @param {string} [props.title] Title displayed at the top of the panel. + * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel; + * + * function MyPluginPrePublishPanel() { + * return wp.element.createElement( + * PluginPrePublishPanel, + * { + * className: 'my-plugin-pre-publish-panel', + * title: __( 'My panel title' ), + * initialOpen: true, + * }, + * __( 'My panel content' ) + * ); + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginPrePublishPanel } = wp.editPost; + * + * const MyPluginPrePublishPanel = () => ( + * + * { __( 'My panel content' ) } + * + * ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + var plugin_pre_publish_panel_PluginPrePublishPanel = function PluginPrePublishPanel(_ref) { var children = _ref.children, @@ -5624,6 +6161,7 @@ function (_Component) { + /** * Internal dependencies */ @@ -5642,6 +6180,7 @@ function (_Component) { + function Layout(_ref) { var mode = _ref.mode, editorSidebarOpened = _ref.editorSidebarOpened, @@ -5666,7 +6205,7 @@ function Layout(_ref) { 'aria-label': Object(external_this_wp_i18n_["__"])('Editor publish'), tabIndex: -1 }; - return Object(external_this_wp_element_["createElement"])("div", { + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FocusReturnProvider"], { className: className }, Object(external_this_wp_element_["createElement"])(fullscreen_mode, null), Object(external_this_wp_element_["createElement"])(browser_url, null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["UnsavedChangesWarning"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["AutosaveMonitor"], null), Object(external_this_wp_element_["createElement"])(header, null), Object(external_this_wp_element_["createElement"])("div", { className: "edit-post-layout__content", @@ -5680,7 +6219,7 @@ function Layout(_ref) { className: "is-pinned" }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorNotices"], { dismissible: true - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["PreserveScrollInReorder"], null), Object(external_this_wp_element_["createElement"])(components_keyboard_shortcuts, null), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal, null), Object(external_this_wp_element_["createElement"])(options_modal, null), (mode === 'text' || !isRichEditingEnabled) && Object(external_this_wp_element_["createElement"])(text_editor, null), isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])(visual_editor, null), Object(external_this_wp_element_["createElement"])("div", { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PreserveScrollInReorder"], null), Object(external_this_wp_element_["createElement"])(components_keyboard_shortcuts, null), Object(external_this_wp_element_["createElement"])(keyboard_shortcut_help_modal, null), Object(external_this_wp_element_["createElement"])(manage_blocks_modal, null), Object(external_this_wp_element_["createElement"])(options_modal, null), (mode === 'text' || !isRichEditingEnabled) && Object(external_this_wp_element_["createElement"])(text_editor, null), isRichEditingEnabled && mode === 'visual' && Object(external_this_wp_element_["createElement"])(visual_editor, null), Object(external_this_wp_element_["createElement"])("div", { className: "edit-post-layout__metaboxes" }, Object(external_this_wp_element_["createElement"])(meta_boxes, { location: "normal" @@ -5740,10 +6279,12 @@ function Layout(_ref) { + /** * External dependencies */ + /** * WordPress dependencies */ @@ -5778,11 +6319,21 @@ function (_Component) { Object(createClass["a" /* default */])(Editor, [{ key: "getEditorSettings", - value: function getEditorSettings(settings, hasFixedToolbar, focusMode) { - return Object(objectSpread["a" /* default */])({}, settings, { + value: function getEditorSettings(settings, hasFixedToolbar, focusMode, hiddenBlockTypes, blockTypes) { + settings = Object(objectSpread["a" /* default */])({}, settings, { hasFixedToolbar: hasFixedToolbar, focusMode: focusMode - }); + }); // Omit hidden block types if exists and non-empty. + + if (Object(external_lodash_["size"])(hiddenBlockTypes) > 0) { + // Defer to passed setting for `allowedBlockTypes` if provided as + // anything other than `true` (where `true` is equivalent to allow + // all block types). + var defaultAllowedBlockTypes = true === settings.allowedBlockTypes ? Object(external_lodash_["map"])(blockTypes, 'name') : settings.allowedBlockTypes || []; + settings.allowedBlockTypes = external_lodash_["without"].apply(void 0, [defaultAllowedBlockTypes].concat(Object(toConsumableArray["a" /* default */])(hiddenBlockTypes))); + } + + return settings; } }, { key: "render", @@ -5794,17 +6345,15 @@ function (_Component) { post = _this$props.post, initialEdits = _this$props.initialEdits, onError = _this$props.onError, - props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["settings", "hasFixedToolbar", "focusMode", "post", "initialEdits", "onError"]); + hiddenBlockTypes = _this$props.hiddenBlockTypes, + blockTypes = _this$props.blockTypes, + props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["settings", "hasFixedToolbar", "focusMode", "post", "initialEdits", "onError", "hiddenBlockTypes", "blockTypes"]); if (!post) { return null; } - var editorSettings = Object(objectSpread["a" /* default */])({}, settings, { - hasFixedToolbar: hasFixedToolbar, - focusMode: focusMode - }); - + var editorSettings = this.getEditorSettings(settings, hasFixedToolbar, focusMode, hiddenBlockTypes, blockTypes); return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["StrictMode"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["EditorProvider"], Object(esm_extends["a" /* default */])({ settings: editorSettings, post: post, @@ -5823,10 +6372,23 @@ function (_Component) { /* harmony default export */ var editor = (Object(external_this_wp_data_["withSelect"])(function (select, _ref) { var postId = _ref.postId, postType = _ref.postType; + + var _select = select('core/edit-post'), + isFeatureActive = _select.isFeatureActive, + getPreference = _select.getPreference; + + var _select2 = select('core'), + getEntityRecord = _select2.getEntityRecord; + + var _select3 = select('core/blocks'), + getBlockTypes = _select3.getBlockTypes; + return { - hasFixedToolbar: select('core/edit-post').isFeatureActive('fixedToolbar'), - focusMode: select('core/edit-post').isFeatureActive('focusMode'), - post: select('core').getEntityRecord('postType', postType, postId) + hasFixedToolbar: isFeatureActive('fixedToolbar'), + focusMode: isFeatureActive('focusMode'), + post: getEntityRecord('postType', postType, postId), + hiddenBlockTypes: getPreference('hiddenBlockTypes'), + blockTypes: getBlockTypes() }; })(editor_Editor)); @@ -5868,6 +6430,60 @@ var plugin_block_settings_menu_item_isEverySelectedBlockAllowed = function isEve var shouldRenderItem = function shouldRenderItem(selectedBlockNames, allowedBlockNames) { return !Array.isArray(allowedBlockNames) || plugin_block_settings_menu_item_isEverySelectedBlockAllowed(selectedBlockNames, allowedBlockNames); }; +/** + * Renders a new item in the block settings menu. + * + * @param {Object} props Component props. + * @param {Array} [props.allowedBlockNames] An array containing a list of block names for which the item should be shown. If not present, it'll be rendered for any block. If multiple blocks are selected, it'll be shown if and only if all of them are in the whitelist. + * @param {string|Element} [props.icon] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element. + * @param {string} props.label The menu item text. + * @param {Function} props.onClick Callback function to be executed when the user click the menu item. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginBlockSettingsMenuItem = wp.editPost.PluginBlockSettingsMenuItem; + * + * function doOnClick(){ + * // To be called when the user clicks the menu item. + * } + * + * function MyPluginBlockSettingsMenuItem() { + * return wp.element.createElement( + * PluginBlockSettingsMenuItem, + * { + * allowedBlockNames: [ 'core/paragraph' ], + * icon: 'dashicon-name', + * label: __( 'Menu item text' ), + * onClick: doOnClick, + * } + * ); + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * import { __ } from wp.i18n; + * import { PluginBlockSettingsMenuItem } from wp.editPost; + * + * const doOnClick = ( ) => { + * // To be called when the user clicks the menu item. + * }; + * + * const MyPluginBlockSettingsMenuItem = () => ( + * + * ); + * ``` + * + * @return {WPElement} The WPElement to be rendered. + */ + var plugin_block_settings_menu_item_PluginBlockSettingsMenuItem = function PluginBlockSettingsMenuItem(_ref) { var allowedBlocks = _ref.allowedBlocks, @@ -5929,6 +6545,61 @@ var plugin_more_menu_item_PluginMoreMenuItem = function PluginMoreMenuItem(_ref) })); }); }; +/** + * Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided. + * The text within the component appears as the menu item label. + * + * @param {Object} props Component properties. + * @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor. + * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label. + * @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item. + * @param {...*} [props.other] Any additional props are passed through to the underlying [MenuItem](/packages/components/src/menu-item/README.md) component. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem; + * + * function onButtonClick() { + * alert( 'Button clicked.' ); + * } + * + * function MyButtonMoreMenuItem() { + * return wp.element.createElement( + * PluginMoreMenuItem, + * { + * icon: 'smiley', + * onClick: onButtonClick + * }, + * __( 'My button title' ) + * ) + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginMoreMenuItem } = wp.editPost; + * + * function onButtonClick() { + * alert( 'Button clicked.' ); + * } + * + * const MyButtonMoreMenuItem = () => ( + * + * { __( 'My button title' ) } + * + * ); + * ``` + * + * @return {WPElement} The element to be rendered. + */ + /* harmony default export */ var plugin_more_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { return { @@ -5955,13 +6626,6 @@ var plugin_more_menu_item_PluginMoreMenuItem = function PluginMoreMenuItem(_ref) -/** - * Renders the plugin sidebar component. - * - * @param {Object} props Element props. - * - * @return {WPElement} Plugin sidebar component. - */ function PluginSidebar(props) { var children = props.children, @@ -5996,6 +6660,71 @@ function PluginSidebar(props) { className: className }, children))); } +/** + * Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar. + * If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API: + * + * ```js + * wp.data.dispatch( 'core/edit-post' ).openGeneralSidebar( 'plugin-name/sidebar-name' ); + * ``` + * + * @see PluginSidebarMoreMenuItem + * + * @param {Object} props Element props. + * @param {string} props.name A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin. + * @param {string} [props.className] An optional class name added to the sidebar body. + * @param {string} props.title Title displayed at the top of the sidebar. + * @param {boolean} [props.isPinnable=true] Whether to allow to pin sidebar to toolbar. + * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var el = wp.element.createElement; + * var PanelBody = wp.components.PanelBody; + * var PluginSidebar = wp.editPost.PluginSidebar; + * + * function MyPluginSidebar() { + * return el( + * PluginSidebar, + * { + * name: 'my-sidebar', + * title: 'My sidebar title', + * icon: 'smiley', + * }, + * el( + * PanelBody, + * {}, + * __( 'My sidebar content' ) + * ) + * ); + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PanelBody } = wp.components; + * const { PluginSidebar } = wp.editPost; + * + * const MyPluginSidebar = () => ( + * + * + * { __( 'My sidebar content' ) } + * + * + * ); + * ``` + * + * @return {WPElement} Plugin sidebar component. + */ + /* harmony default export */ var plugin_sidebar = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { return { @@ -6063,6 +6792,52 @@ var plugin_sidebar_more_menu_item_PluginSidebarMoreMenuItem = function PluginSid onClick: onClick }, children); }; +/** + * Renders a menu item in `Plugins` group in `More Menu` drop down, + * and can be used to activate the corresponding `PluginSidebar` component. + * The text within the component appears as the menu item label. + * + * @param {Object} props Component props. + * @param {string} props.target A string identifying the target sidebar you wish to be activated by this menu item. Must be the same as the `name` prop you have given to that sidebar. + * @param {string|Element} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label. + * + * @example ES5 + * ```js + * // Using ES5 syntax + * var __ = wp.i18n.__; + * var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem; + * + * function MySidebarMoreMenuItem() { + * return wp.element.createElement( + * PluginSidebarMoreMenuItem, + * { + * target: 'my-sidebar', + * icon: 'smiley', + * }, + * __( 'My sidebar title' ) + * ) + * } + * ``` + * + * @example ESNext + * ```jsx + * // Using ESNext syntax + * const { __ } = wp.i18n; + * const { PluginSidebarMoreMenuItem } = wp.editPost; + * + * const MySidebarMoreMenuItem = () => ( + * + * { __( 'My sidebar title' ) } + * + * ); + * ``` + * + * @return {WPElement} The element to be rendered. + */ + /* harmony default export */ var plugin_sidebar_more_menu_item = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_plugins_["withPluginContext"])(function (context, ownProps) { return { @@ -6199,25 +6974,7 @@ function initializeEditor(id, postType, postId, settings, initialEdits) { /***/ }), -/***/ 31: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), - -/***/ 33: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - -/***/ }), - -/***/ 34: +/***/ 37: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6228,7 +6985,7 @@ function _arrayWithHoles(arr) { /***/ }), -/***/ 35: +/***/ 38: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6239,14 +6996,21 @@ function _nonIterableRest() { /***/ }), -/***/ 37: +/***/ 4: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 40: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), -/***/ 38: +/***/ 41: /***/ (function(module, exports, __webpack_require__) { module.exports = function memize( fn, options ) { @@ -6364,14 +7128,7 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 4: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["components"]; }()); - -/***/ }), - -/***/ 44: +/***/ 48: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); @@ -6385,35 +7142,56 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 52: +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["compose"]; }()); + +/***/ }), + +/***/ 60: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["nux"]; }()); /***/ }), -/***/ 55: +/***/ 63: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["plugins"]; }()); /***/ }), -/***/ 58: -/***/ (function(module, exports) { +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["blockEditor"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} /***/ }), -/***/ 6: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["editor"]; }()); - -/***/ }), - -/***/ 64: +/***/ 70: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6469,45 +7247,17 @@ module.exports = refx; /***/ }), -/***/ 7: +/***/ 72: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["compose"]; }()); +(function() { module.exports = this["wp"]["coreData"]; }()); /***/ }), /***/ 8: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); -/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); - }); - } - - return target; -} - -/***/ }), - -/***/ 81: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["coreData"]; }()); +(function() { module.exports = this["wp"]["blockEditor"]; }()); /***/ }), diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index 81285d9034..05340453b0 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -1,4 +1,4 @@ -this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=307)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return o})},11:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n(29),i=n(3);function r(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeof t?Object(i.a)(e):t}},12:function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return o})},122:function(e,t){!function(){e.exports=this.wp.notices}()},13:function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(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&&o(e,t)}n.d(t,"a",function(){return i})},14:function(e,t){!function(){e.exports=this.wp.blocks}()},15:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return o})},16:function(e,t,n){var o; +this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=360)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return o})},11:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var o=n(32),r=n(3);function i(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeof t?Object(r.a)(e):t}},12:function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return o})},13:function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(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&&o(e,t)}n.d(t,"a",function(){return r})},133:function(e,t){!function(){e.exports=this.wp.notices}()},14:function(e,t){!function(){e.exports=this.wp.blocks}()},15:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return o})},16:function(e,t,n){var o; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -9,4 +9,4 @@ this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o]) Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",function(){return o})},22:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t){!function(){e.exports=this.wp.hooks}()},25:function(e,t,n){"use strict";var o=n(34);var i=n(35);function r(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var c,a=e[Symbol.iterator]();!(o=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(i)throw r}}return n}(e,t)||Object(i.a)()}n.d(t,"a",function(){return r})},28:function(e,t,n){"use strict";var o,i;function r(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o0&&this.buildAndSetGalleryFrame(),this.frame.open()}},{key:"render",value:function(){return this.props.render({open:this.openModal})}}]),t}(r.Component);Object(d.addFilter)("editor.MediaUpload","core/edit-post/components/media-upload/replace-media-upload",function(){return _});var S=n(19),P=n(21),k=n(14),w=n(4),C=n(7),x=Object(C.compose)(Object(u.withSelect)(function(e,t){if(Object(k.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(h.find)(n,function(e){var n=e.name;return t.name===n});return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}}),Object(u.withDispatch)(function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}})),M=Object(C.createHigherOrderComponent)(function(e){return x(function(t){var n=t.originalBlockClientId,o=t.selectFirst,i=Object(P.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(r.createElement)(e,i);var a=Object(k.getBlockType)(i.name),l=function(e){var t=Object(k.findTransform)(Object(k.getBlockTransforms)("to",e),function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length});if(!t)return null;return Object(k.getBlockType)(t.blocks[0])}(i.name);return[Object(r.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(r.createElement)(e,Object(S.a)({key:"block-edit"},i))),Object(r.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(r.createElement)(w.Button,{key:"find-original",isLarge:!0,onClick:o},Object(g.__)("Find original")),Object(r.createElement)(w.Button,{key:"remove",isLarge:!0,onClick:function(){return i.onReplace([])}},Object(g.__)("Remove")),l&&Object(r.createElement)(w.Button,{key:"transform",isLarge:!0,onClick:function(){return i.onReplace(Object(k.createBlock)(l.name,i.attributes))}},Object(g.__)("Transform into:")," ",l.title)]},Object(r.createElement)("strong",null,a.title,": "),Object(g.__)("This block can only be used once."))]})},"withMultipleValidation");Object(d.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",M);var T=n(55),A=n(22);var N=Object(C.compose)(Object(u.withSelect)(function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}}),Object(C.withState)({hasCopied:!1}))(function(e){var t=e.editedPostContent,n=e.hasCopied,o=e.setState;return Object(r.createElement)(w.ClipboardButton,{text:t,className:"components-menu-item__button",onCopy:function(){return o({hasCopied:!0})},onFinishCopy:function(){return o({hasCopied:!1})}},n?Object(g.__)("Copied!"):Object(g.__)("Copy All Content"))}),B=n(17);var I=Object(u.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal,n=e.onSelect;return Object(r.createElement)(w.MenuItem,{onClick:function(){n(),t("edit-post/keyboard-shortcut-help")},shortcut:B.displayShortcut.access("h")},Object(g.__)("Keyboard Shortcuts"))}),L=Object(w.createSlotFill)("ToolsMoreMenuGroup"),D=L.Fill,F=L.Slot;D.Slot=function(e){var t=e.fillProps;return Object(r.createElement)(F,{fillProps:t},function(e){return!Object(h.isEmpty)(e)&&Object(r.createElement)(w.MenuGroup,{label:Object(g.__)("Tools")},e)})};var R=D;Object(T.registerPlugin)("edit-post",{render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(R,null,function(e){var t=e.onClose;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(w.MenuItem,{role:"menuitem",href:Object(A.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(g.__)("Manage All Reusable Blocks")),Object(r.createElement)(I,{onSelect:t}),Object(r.createElement)(N,null))}))}});var G=n(18),U=n(15),V=n(8),H={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1},pinnedPluginItems:{}},W="edit-post/document",q=Object(u.combineReducers)({isGeneralSidebarDismissed:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H.panels,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_PANEL_ENABLED":var n=t.panelName;return Object(V.a)({},e,Object(U.a)({},n,Object(V.a)({},e[n],{enabled:!Object(h.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,i=!0===e[o]||Object(h.get)(e,[o,"opened"],!1);return Object(V.a)({},e,Object(U.a)({},o,Object(V.a)({},e[o],{opened:!i})))}return e},features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H.features,t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_FEATURE"===t.type?Object(V.a)({},e,Object(U.a)({},t.feature,!e[t.feature])):e},editorMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H.editorMode,t=arguments.length>1?arguments[1]:void 0;return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H.pinnedPluginItems,t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?Object(V.a)({},e,Object(U.a)({},t.pluginName,!Object(h.get)(e,[t.pluginName],!0))):e}});var z=Object(u.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations: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_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),K=Object(u.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:z,preferences:q,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(h.includes)(e,t.panelName))return[].concat(Object(G.a)(e),[t.panelName])}return e}}),Q=n(64),X=n.n(Q),J=n(25),Y=n(44),$=n(31),Z=n.n($);function ee(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function te(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function ne(e){return{type:"OPEN_MODAL",name:e}}function oe(){return{type:"CLOSE_MODAL"}}function ie(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function re(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function ce(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ae(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function le(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function se(e){return{type:"REMOVE_PANEL",panelName:e}}function ue(e){return{type:"TOGGLE_FEATURE",feature:e}}function de(e){return{type:"SWITCH_MODE",mode:e}}function be(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function pe(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function me(){return{type:"REQUEST_META_BOX_UPDATES"}}function Oe(){return{type:"META_BOX_UPDATES_SUCCESS"}}var fe=n(28);function je(e){return ye(e,"editorMode","visual")}function he(e){var t=Ee(e);return Object(h.includes)(["edit-post/document","edit-post/block"],t)}function ge(e){return!!Ee(e)&&!he(e)}function Ee(e){return ye(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function ve(e){return e.preferences}function ye(e,t,n){var o=ve(e)[t];return void 0===o?n:o}function _e(e){return e.publishSidebarActive}function Se(e,t){return Object(h.includes)(e.removedPanels,t)}function Pe(e,t){var n=ye(e,"panels");return!Se(e,t)&&Object(h.get)(n,[t,"enabled"],!0)}function ke(e,t){var n=ye(e,"panels");return!0===n[t]||Object(h.get)(n,[t,"opened"],!1)}function we(e,t){return e.activeModal===t}function Ce(e,t){return!!e.preferences.features[t]}function xe(e,t){var n=ye(e,"pinnedPluginItems",{});return Object(h.get)(n,[t],!0)}var Me=Object(fe.a)(function(e){return Object.keys(e.metaBoxes.locations).filter(function(t){return Ae(e,t)})},function(e){return[e.metaBoxes.locations]});function Te(e,t){return Ae(e,t)&&Object(h.some)(Ne(e,t),function(t){var n=t.id;return Pe(e,"meta-box-".concat(n))})}function Ae(e,t){var n=Ne(e,t);return!!n&&0!==n.length}function Ne(e,t){return e.metaBoxes.locations[t]}var Be=Object(fe.a)(function(e){return Object(h.flatten)(Object(h.values)(e.metaBoxes.locations))},function(e){return[e.metaBoxes.locations]});function Ie(e){return Me(e).length>0}function Le(e){return e.metaBoxes.isSaving}var De=function(e,t){var n=e();return function(){var o=e();o!==n&&(n=o,t(o))}},Fe={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout(function(){var e=Object(u.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)});var n=Object(u.select)("core/editor").isSavingPost(),o=Object(u.select)("core/editor").isAutosavingPost(),i=Object(u.select)("core/editor").isPreviewingPost();Object(u.subscribe)(function(){var e=Object(u.select)("core/editor").isSavingPost(),r=Object(u.select)("core/editor").isAutosavingPost(),c=Object(u.select)("core/editor").isPreviewingPost(),a=Object(u.select)("core/edit-post").hasMetaBoxes()&&(n&&!e&&!o||o&&i&&!c);n=e,o=r,i=c,a&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})})},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var n=t.getState(),o=Object(u.select)("core/editor").getCurrentPost(n),i=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],["post_author",o.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(G.a)(Me(n).map(function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))}))),c=Object(h.reduce)(r,function(e,t){var n=!0,o=!1,i=void 0;try{for(var r,c=t[Symbol.iterator]();!(n=(r=c.next()).done);n=!0){var a=Object(J.a)(r.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return e},new window.FormData);i.forEach(function(e){var t=Object(J.a)(e,2),n=t[0],o=t[1];return c.append(n,o)}),Z()({url:window._wpMetaBoxUrl,method:"POST",body:c,parse:!1}).then(function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})})},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(u.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(g.__)("Visual editor selected"):Object(g.__)("Code editor selected");Object(Y.speak)(t,"assertive")},INIT:function(e,t){Object(u.subscribe)(De(function(){return!!Object(u.select)("core/block-editor").getBlockSelectionStart()},function(e){Object(u.select)("core/edit-post").isEditorSidebarOpened()&&(e?t.dispatch(ee("edit-post/block")):t.dispatch(ee("edit-post/document")))}));var n,o=function(){return Object(u.select)("core/viewport").isViewportMatch("< medium")},i=(n=null,function(e){e?(n=Ee(t.getState()))&&t.dispatch({type:"CLOSE_GENERAL_SIDEBAR"}):n&&!Ee(t.getState())&&t.dispatch(ee(n))});i(o()),Object(u.subscribe)(De(o,i));Object(u.subscribe)(De(function(){return Object(u.select)("core/editor").getCurrentPost().link},function(e){if(e){var t=document.querySelector("#wp-admin-bar-view a");t&&t.setAttribute("href",e)}}))}};var Re=function(e){var t,n=[X()(Fe)],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map(function(e){return e(i)}),o=h.flowRight.apply(void 0,Object(G.a)(t))(e.dispatch),e.dispatch=o,e},Ge=Object(u.registerStore)("core/edit-post",{reducer:K,actions:o,selectors:i,persist:["preferences"]});Re(Ge),Ge.dispatch({type:"INIT"});var Ue=n(38),Ve=n.n(Ue),He={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},We=n(16),qe=n.n(We);var ze=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(O.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(f.a)(t,e),Object(p.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,i=t.postType,r=this.state.historyId;"trash"!==o?n===e.postId&&n===r||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,i)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(A.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(A.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState(function(){return{historyId:e}})}},{key:"render",value:function(){return null}}]),t}(r.Component),Ke=Object(u.withSelect)(function(e){var t=(0,e("core/editor").getCurrentPost)();return{postId:t.id,postStatus:t.status,postType:t.type}})(ze),Qe={toggleEditorMode:{raw:B.rawShortcut.secondary("m"),display:B.displayShortcut.secondary("m")},toggleSidebar:{raw:B.rawShortcut.primaryShift(","),display:B.displayShortcut.primaryShift(","),ariaLabel:B.shortcutAriaLabel.primaryShift(",")}},Xe=[{value:"visual",label:Object(g.__)("Visual Editor")},{value:"text",label:Object(g.__)("Code Editor")}];var Je=Object(C.compose)([Object(u.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),Object(C.ifCondition)(function(e){return e.isRichEditingEnabled}),Object(u.withDispatch)(function(e,t){return{onSwitch:function(n){e("core/edit-post").switchEditorMode(n),t.onSelect(n)}}})])(function(e){var t=e.onSwitch,n=e.mode,o=Xe.map(function(e){return e.value!==n?Object(V.a)({},e,{shortcut:Qe.toggleEditorMode.display}):e});return Object(r.createElement)(w.MenuGroup,{label:Object(g.__)("Editor")},Object(r.createElement)(w.MenuItemsChoice,{choices:o,value:n,onSelect:t}))}),Ye=Object(w.createSlotFill)("PluginsMoreMenuGroup"),$e=Ye.Fill,Ze=Ye.Slot;$e.Slot=function(e){var t=e.fillProps;return Object(r.createElement)(Ze,{fillProps:t},function(e){return!Object(h.isEmpty)(e)&&Object(r.createElement)(w.MenuGroup,{label:Object(g.__)("Plugins")},e)})};var et=$e;var tt=Object(u.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal,n=e.onSelect;return Object(r.createElement)(w.MenuItem,{onClick:function(){n(),t("edit-post/options")}},Object(g.__)("Options"))});var nt=Object(C.compose)([Object(u.withSelect)(function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}}),Object(u.withDispatch)(function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature),t.onToggle()}}}),w.withSpokenMessages])(function(e){var t=e.onToggle,n=e.isActive,o=e.label,i=e.info,c=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(r.createElement)(w.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(h.flow)(t,function(){l(n?a||Object(g.__)("Feature deactivated"):c||Object(g.__)("Feature activated"))}),role:"menuitemcheckbox",label:o,info:i},o)});var ot=Object(l.ifViewportMatches)("medium")(function(e){var t=e.onClose;return Object(r.createElement)(w.MenuGroup,{label:Object(g._x)("View","noun")},Object(r.createElement)(nt,{feature:"fixedToolbar",label:Object(g.__)("Top Toolbar"),info:Object(g.__)("Access all block and document tools in a single place"),onToggle:t,messageActivated:Object(g.__)("Top toolbar activated"),messageDeactivated:Object(g.__)("Top toolbar deactivated")}),Object(r.createElement)(nt,{feature:"focusMode",label:Object(g.__)("Spotlight Mode"),info:Object(g.__)("Focus on one block at a time"),onToggle:t,messageActivated:Object(g.__)("Spotlight mode activated"),messageDeactivated:Object(g.__)("Spotlight mode deactivated")}),Object(r.createElement)(nt,{feature:"fullscreenMode",label:Object(g.__)("Fullscreen Mode"),info:Object(g.__)("Work without distraction"),onToggle:t,messageActivated:Object(g.__)("Fullscreen mode activated"),messageDeactivated:Object(g.__)("Fullscreen mode deactivated")}))}),it=Object(g.__)("Show more tools & options"),rt=Object(g.__)("Hide more tools & options"),ct=function(){return Object(r.createElement)(w.Dropdown,{className:"edit-post-more-menu",contentClassName:"edit-post-more-menu__content",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(r.createElement)(w.IconButton,{icon:"ellipsis",label:t?rt:it,labelPosition:"bottom",onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onClose;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ot,{onClose:t}),Object(r.createElement)(Je,{onSelect:t}),Object(r.createElement)(et.Slot,{fillProps:{onClose:t}}),Object(r.createElement)(R.Slot,{fillProps:{onClose:t}}),Object(r.createElement)(w.MenuGroup,null,Object(r.createElement)(tt,{onSelect:t})))}})};var at=Object(u.withSelect)(function(e){var t=e("core/editor").getCurrentPostType,n=e("core/edit-post").isFeatureActive,o=e("core").getPostType;return{isActive:n("fullscreenMode"),postType:o(t())}})(function(e){var t=e.isActive,n=e.postType;return t&&n?Object(r.createElement)(w.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(r.createElement)(w.IconButton,{icon:"arrow-left-alt2",href:Object(A.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(h.get)(n,["labels","view_items"],Object(g.__)("Back"))})):null});var lt=Object(C.compose)([Object(u.withSelect)(function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}}),Object(l.withViewportMatch)({isLargeViewport:"medium"})])(function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.showInserter,i=e.isTextModeEnabled,l=t?Object(g.__)("Document and block tools"):Object(g.__)("Document tools");return Object(r.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":l},Object(r.createElement)(at,null),Object(r.createElement)("div",null,Object(r.createElement)(c.Inserter,{disabled:!o,position:"bottom right"}),Object(r.createElement)(a.DotTip,{tipId:"core/editor.inserter"},Object(g.__)("Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!"))),Object(r.createElement)(c.EditorHistoryUndo,null),Object(r.createElement)(c.EditorHistoryRedo,null),Object(r.createElement)(c.TableOfContents,{hasOutlineItemsDisabled:i}),Object(r.createElement)(c.BlockNavigationDropdown,{isDisabled:i}),t&&n&&Object(r.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(r.createElement)(c.BlockToolbar,null)))}),st=Object(w.createSlotFill)("PinnedPlugins"),ut=st.Fill,dt=st.Slot;ut.Slot=function(e){return Object(r.createElement)(dt,e,function(e){return!Object(h.isEmpty)(e)&&Object(r.createElement)("div",{className:"edit-post-pinned-plugins"},e)})};var bt=ut;var pt=Object(C.compose)(Object(u.withSelect)(function(e){return{hasPublishAction:Object(h.get)(e("core/editor").getCurrentPost(),["_links","wp:action-publish"],!1),isBeingScheduled:e("core/editor").isEditedPostBeingScheduled(),isPending:e("core/editor").isCurrentPostPending(),isPublished:e("core/editor").isCurrentPostPublished(),isPublishSidebarEnabled:e("core/editor").isPublishSidebarEnabled(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isScheduled:e("core/editor").isCurrentPostScheduled()}}),Object(u.withDispatch)(function(e){return{togglePublishSidebar:e("core/edit-post").togglePublishSidebar}}),Object(l.withViewportMatch)({isLessThanMediumViewport:"< medium"}))(function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,i=e.hasPublishAction,a=e.isBeingScheduled,l=e.isLessThanMediumViewport,s=e.isPending,u=e.isPublished,d=e.isPublishSidebarEnabled,b=e.isPublishSidebarOpened,p=e.isScheduled,m=e.togglePublishSidebar;return t=u||p&&a||s&&!i&&!l?"button":l?"toggle":d?"toggle":"button",Object(r.createElement)(c.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})});var mt=Object(C.compose)(Object(u.withSelect)(function(e){return{hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isSaving:e("core/edit-post").isSavingMetaBoxes()}}),Object(u.withDispatch)(function(e,t,n){var o=(0,n.select)("core/block-editor").getBlockSelectionStart,i=e("core/edit-post"),r=i.openGeneralSidebar;return{openGeneralSidebar:function(){return r(o()?"edit-post/block":"edit-post/document")},closeGeneralSidebar:i.closeGeneralSidebar}}))(function(e){var t=e.closeGeneralSidebar,n=e.hasActiveMetaboxes,o=e.isEditorSidebarOpened,i=e.isPublishSidebarOpened,l=e.isSaving,s=e.openGeneralSidebar,u=o?t:s;return Object(r.createElement)("div",{role:"region","aria-label":Object(g.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(r.createElement)(lt,null),Object(r.createElement)("div",{className:"edit-post-header__settings"},!i&&Object(r.createElement)(c.PostSavedState,{forceIsDirty:n,forceIsSaving:l}),Object(r.createElement)(c.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:l?null:void 0}),Object(r.createElement)(pt,{forceIsDirty:n,forceIsSaving:l}),Object(r.createElement)("div",null,Object(r.createElement)(w.IconButton,{icon:"admin-generic",label:Object(g.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:Qe.toggleSidebar}),Object(r.createElement)(a.DotTip,{tipId:"core/editor.settings"},Object(g.__)("You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed."))),Object(r.createElement)(bt.Slot,null),Object(r.createElement)(ct,null)))});var Ot=Object(C.compose)(Object(u.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(u.withDispatch)(function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}}))(function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(r.createElement)("div",{className:"edit-post-text-editor"},n&&Object(r.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(r.createElement)("h2",null,Object(g.__)("Editing Code")),Object(r.createElement)(w.IconButton,{onClick:t,icon:"no-alt",shortcut:B.displayShortcut.secondary("m")},Object(g.__)("Exit Code Editor")),Object(r.createElement)(c.TextEditorGlobalKeyboardShortcuts,null)),Object(r.createElement)("div",{className:"edit-post-text-editor__body"},Object(r.createElement)(c.PostTitle,null),Object(r.createElement)(c.PostTextEditor,null)))});var ft=Object(C.compose)(Object(u.withSelect)(function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),Object(u.withDispatch)(function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}}),w.withSpokenMessages)(function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,i=e.onClick,c=void 0===i?h.noop:i,a=e.small,l=void 0!==a&&a,s=e.speak,u=t?Object(g.__)("Hide Block Settings"):Object(g.__)("Show Block Settings");return Object(r.createElement)(w.MenuItem,{className:"editor-block-settings-menu__control",onClick:Object(h.flow)(t?n:o,function(){s(t?Object(g.__)("Block settings closed"):Object(g.__)("Additional settings are now available in the Editor block settings sidebar"))},c),icon:"admin-generic",label:l?u:void 0,shortcut:Qe.toggleSidebar},!l&&u)}),jt=Object(w.createSlotFill)("PluginBlockSettingsMenuGroup"),ht=jt.Fill,gt=jt.Slot;ht.Slot=Object(u.withSelect)(function(e,t){var n=t.fillProps.clientIds;return{selectedBlocks:e("core/block-editor").getBlocksByClientId(n)}})(function(e){var t=e.fillProps,n=e.selectedBlocks;return n=Object(h.map)(n,function(e){return e.name}),Object(r.createElement)(gt,{fillProps:Object(V.a)({},t,{selectedBlocks:n})},function(e){return!Object(h.isEmpty)(e)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-block-settings-menu__separator"}),e)})});var Et=ht;var vt=function(){return Object(r.createElement)(c.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(r.createElement)(c.VisualEditorGlobalKeyboardShortcuts,null),Object(r.createElement)(c.CopyHandler,null),Object(r.createElement)(c.MultiSelectScrollIntoView,null),Object(r.createElement)(c.WritingFlow,null,Object(r.createElement)(c.ObserveTyping,null,Object(r.createElement)(c.PostTitle,null),Object(r.createElement)(c.BlockList,null))),Object(r.createElement)(c._BlockSettingsMenuFirstItem,null,function(e){var t=e.onClose;return Object(r.createElement)(ft,{onClick:t})}),Object(r.createElement)(c._BlockSettingsMenuPluginsExtension,null,function(e){var t=e.clientIds,n=e.onClose;return Object(r.createElement)(Et.Slot,{fillProps:{clientIds:t,onClose:n}})}))},yt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(O.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(j.a)(Object(j.a)(e))),e.toggleSidebar=e.toggleSidebar.bind(Object(j.a)(Object(j.a)(e))),e}return Object(f.a)(t,e),Object(p.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isRichEditingEnabled&&n("visual"===t?"text":"visual")}},{key:"toggleSidebar",value:function(e){e.preventDefault();var t=this.props,n=t.isEditorSidebarOpen,o=t.closeSidebar,i=t.openSidebar;n?o():i()}},{key:"render",value:function(){var e;return Object(r.createElement)(w.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(U.a)(e,Qe.toggleEditorMode.raw,this.toggleMode),Object(U.a)(e,Qe.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(r.Component),_t=Object(C.compose)([Object(u.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}}),Object(u.withDispatch)(function(e,t,n){var o=n.select;return{switchMode:function(t){e("core/edit-post").switchEditorMode(t)},openSidebar:function(){var t=(0,o("core/block-editor").getBlockSelectionStart)()?"edit-post/block":"edit-post/document";e("core/edit-post").openGeneralSidebar(t)},closeSidebar:e("core/edit-post").closeGeneralSidebar}})])(yt),St=B.displayShortcutList.primary,Pt=B.displayShortcutList.primaryShift,kt=B.displayShortcutList.primaryAlt,wt=B.displayShortcutList.secondary,Ct=B.displayShortcutList.access,xt=B.displayShortcutList.ctrl,Mt=B.displayShortcutList.alt,Tt=B.displayShortcutList.ctrlShift,At=B.displayShortcutList.shiftAlt,Nt=[{title:Object(g.__)("Global shortcuts"),shortcuts:[{keyCombination:Ct("h"),description:Object(g.__)("Display this help.")},{keyCombination:St("s"),description:Object(g.__)("Save your changes.")},{keyCombination:St("z"),description:Object(g.__)("Undo your last changes.")},{keyCombination:Pt("z"),description:Object(g.__)("Redo your last undo.")},{keyCombination:Pt(","),description:Object(g.__)("Show or hide the settings sidebar."),ariaLabel:B.shortcutAriaLabel.primaryShift(",")},{keyCombination:Ct("o"),description:Object(g.__)("Open the block navigation menu.")},{keyCombination:xt("`"),description:Object(g.__)("Navigate to the next part of the editor."),ariaLabel:B.shortcutAriaLabel.ctrl("`")},{keyCombination:Tt("`"),description:Object(g.__)("Navigate to the previous part of the editor."),ariaLabel:B.shortcutAriaLabel.ctrlShift("`")},{keyCombination:At("n"),description:Object(g.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:At("p"),description:Object(g.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:Mt("F10"),description:Object(g.__)("Navigate to the nearest toolbar.")},{keyCombination:wt("m"),description:Object(g.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(g.__)("Selection shortcuts"),shortcuts:[{keyCombination:St("a"),description:Object(g.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(g.__)("Clear selection."),ariaLabel:Object(g.__)("Escape")}]},{title:Object(g.__)("Block shortcuts"),shortcuts:[{keyCombination:Pt("d"),description:Object(g.__)("Duplicate the selected block(s).")},{keyCombination:Ct("z"),description:Object(g.__)("Remove the selected block(s).")},{keyCombination:kt("t"),description:Object(g.__)("Insert a new block before the selected block(s).")},{keyCombination:kt("y"),description:Object(g.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(g.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(g.__)("Forward-slash")}]},{title:Object(g.__)("Text formatting"),shortcuts:[{keyCombination:St("b"),description:Object(g.__)("Make the selected text bold.")},{keyCombination:St("i"),description:Object(g.__)("Make the selected text italic.")},{keyCombination:St("u"),description:Object(g.__)("Underline the selected text.")},{keyCombination:St("k"),description:Object(g.__)("Convert the selected text into a link.")},{keyCombination:Pt("k"),description:Object(g.__)("Remove a link.")},{keyCombination:Ct("d"),description:Object(g.__)("Add a strikethrough to the selected text.")},{keyCombination:Ct("x"),description:Object(g.__)("Display the selected text in a monospaced font.")}]}],Bt="edit-post/keyboard-shortcut-help",It=function(e){var t=e.shortcuts;return Object(r.createElement)("dl",{className:"edit-post-keyboard-shortcut-help__shortcut-list"},t.map(function(e,t){var n=e.keyCombination,o=e.description,i=e.ariaLabel;return Object(r.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(r.createElement)("dt",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(r.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help__shortcut-key-combination","aria-label":i},function(e){return e.map(function(e,t){return"+"===e?Object(r.createElement)(r.Fragment,{key:t},e):Object(r.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)})}(Object(h.castArray)(n)))),Object(r.createElement)("dd",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o))}))},Lt=function(e){var t=e.title,n=e.shortcuts;return Object(r.createElement)("section",{className:"edit-post-keyboard-shortcut-help__section"},Object(r.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(r.createElement)(It,{shortcuts:n}))};var Dt=Object(C.compose)([Object(u.withSelect)(function(e){return{isModalActive:e("core/edit-post").isModalActive(Bt)}}),Object(u.withDispatch)(function(e,t){var n=t.isModalActive,o=e("core/edit-post"),i=o.openModal,r=o.closeModal;return{toggleModal:function(){return n?r():i(Bt)}}})])(function(e){var t=e.isModalActive,n=e.toggleModal;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(w.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(U.a)({},B.rawShortcut.access("h"),n)}),t&&Object(r.createElement)(w.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(g.__)("Keyboard Shortcuts"),closeLabel:Object(g.__)("Close"),onRequestClose:n},Nt.map(function(e,t){return Object(r.createElement)(Lt,Object(S.a)({key:t},e))})))}),Ft=function(e){var t=e.title,n=e.children;return Object(r.createElement)("section",{className:"edit-post-options-modal__section"},Object(r.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var Rt=function(e){var t=e.label,n=e.isChecked,o=e.onChange;return Object(r.createElement)(w.CheckboxControl,{className:"edit-post-options-modal__option",label:t,checked:n,onChange:o})},Gt=function(e){function t(e){var n,o=e.isChecked;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(O.a)(t).apply(this,arguments))).toggleCustomFields=n.toggleCustomFields.bind(Object(j.a)(Object(j.a)(n))),n.state={isChecked:o},n}return Object(f.a)(t,e),Object(p.a)(t,[{key:"toggleCustomFields",value:function(){document.getElementById("toggle-custom-fields-form").submit(),this.setState({isChecked:!this.props.isChecked})}},{key:"render",value:function(){var e=this.props.label,t=this.state.isChecked;return Object(r.createElement)(Rt,{label:e,isChecked:t,onChange:this.toggleCustomFields})}}]),t}(r.Component),Ut=Object(u.withSelect)(function(e){return{isChecked:!!e("core/editor").getEditorSettings().enableCustomFields}})(Gt),Vt=Object(C.compose)(Object(u.withSelect)(function(e,t){var n=t.panelName,o=e("core/edit-post"),i=o.isEditorPanelEnabled;return{isRemoved:(0,o.isEditorPanelRemoved)(n),isChecked:i(n)}}),Object(C.ifCondition)(function(e){return!e.isRemoved}),Object(u.withDispatch)(function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}}))(Rt),Ht=Object(C.compose)(Object(u.withSelect)(function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}}),Object(u.withDispatch)(function(e){var t=e("core/editor"),n=t.enablePublishSidebar,o=t.disablePublishSidebar;return{onChange:function(e){return e?n():o()}}}),Object(l.ifViewportMatches)("medium"))(Rt),Wt=function(e){function t(e){var n,o=e.isChecked;return Object(b.a)(this,t),(n=Object(m.a)(this,Object(O.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(f.a)(t,e),Object(p.a)(t,[{key:"componentWillUnmount",value:function(){this.state.isChecked!==this.props.isChecked&&this.props.onChange(this.state.isChecked)}},{key:"render",value:function(){var e=this;return Object(r.createElement)(Rt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(r.Component),qt=Object(C.compose)(Object(u.withSelect)(function(e){return{isChecked:e("core/nux").areTipsEnabled()}}),Object(u.withDispatch)(function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}}))(Wt);var zt=Object(u.withSelect)(function(e){var t=e("core/editor").getEditorSettings,n=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}})(function(e){var t=e.areCustomFieldsRegistered,n=e.metaBoxes,o=Object(P.a)(e,["areCustomFieldsRegistered","metaBoxes"]),i=Object(h.filter)(n,function(e){return"postcustom"!==e.id});return t||0!==i.length?Object(r.createElement)(Ft,o,t&&Object(r.createElement)(Ut,{label:Object(g.__)("Custom Fields")}),Object(h.map)(i,function(e){var t=e.id,n=e.title;return Object(r.createElement)(Vt,{key:t,label:n,panelName:"meta-box-".concat(t)})})):null});var Kt=Object(C.compose)(Object(u.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(h.get)(n,["viewable"],!1)}}),Object(u.withDispatch)(function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}}))(function(e){var t=e.isModalActive,n=e.isViewable,o=e.closeModal;return t?Object(r.createElement)(w.Modal,{className:"edit-post-options-modal",title:Object(g.__)("Options"),closeLabel:Object(g.__)("Close"),onRequestClose:o},Object(r.createElement)(Ft,{title:Object(g.__)("General")},Object(r.createElement)(Ht,{label:Object(g.__)("Enable Pre-publish Checks")}),Object(r.createElement)(qt,{label:Object(g.__)("Enable Tips")})),Object(r.createElement)(Ft,{title:Object(g.__)("Document Panels")},n&&Object(r.createElement)(Vt,{label:Object(g.__)("Permalink"),panelName:"post-link"}),Object(r.createElement)(c.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(r.createElement)(Vt,{label:Object(h.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(r.createElement)(c.PostFeaturedImageCheck,null,Object(r.createElement)(Vt,{label:Object(g.__)("Featured Image"),panelName:"featured-image"})),Object(r.createElement)(c.PostExcerptCheck,null,Object(r.createElement)(Vt,{label:Object(g.__)("Excerpt"),panelName:"post-excerpt"})),Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(r.createElement)(Vt,{label:Object(g.__)("Discussion"),panelName:"discussion-panel"})),Object(r.createElement)(c.PageAttributesCheck,null,Object(r.createElement)(Vt,{label:Object(g.__)("Page Attributes"),panelName:"page-attributes"}))),Object(r.createElement)(zt,{title:Object(g.__)("Advanced Panels")})):null}),Qt=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(O.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(j.a)(Object(j.a)(e))),e}return Object(f.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){this.form=document.querySelector(".metabox-location-"+this.props.location),this.form&&this.container.appendChild(this.form)}},{key:"componentWillUnmount",value:function(){this.form&&document.querySelector("#metaboxes").appendChild(this.form)}},{key:"bindContainerNode",value:function(e){this.container=e}},{key:"render",value:function(){var e=this.props,t=e.location,n=e.isSaving,o=qe()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(r.createElement)("div",{className:o},n&&Object(r.createElement)(w.Spinner,null),Object(r.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(r.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(r.Component),Xt=Object(u.withSelect)(function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}})(Qt),Jt=function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(O.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){this.updateDOM()}},{key:"componentDidUpdate",value:function(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}},{key:"updateDOM",value:function(){var e=this.props,t=e.id,n=e.isVisible,o=document.getElementById(t);o&&(n?o.classList.remove("is-hidden"):o.classList.add("is-hidden"))}},{key:"render",value:function(){return null}}]),t}(r.Component),Yt=Object(u.withSelect)(function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}})(Jt);var $t=Object(u.withSelect)(function(e,t){var n=t.location,o=e("core/edit-post"),i=o.isMetaBoxLocationVisible;return{metaBoxes:(0,o.getMetaBoxesPerLocation)(n),isVisible:i(n)}})(function(e){var t=e.location,n=e.isVisible,o=e.metaBoxes;return Object(r.createElement)(r.Fragment,null,Object(h.map)(o,function(e){var t=e.id;return Object(r.createElement)(Yt,{key:t,id:t})}),n&&Object(r.createElement)(Xt,{location:t}))}),Zt=Object(w.createSlotFill)("Sidebar"),en=Zt.Fill,tn=Zt.Slot,nn=Object(C.compose)(Object(u.withSelect)(function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}}),Object(C.ifCondition)(function(e){return e.isActive}),w.withFocusReturn)(function(e){var t=e.children,n=e.label;return Object(r.createElement)(en,null,Object(r.createElement)(w.Animate,{type:"slide-in",options:{origin:"left"}},function(e){var o=e.className;return Object(r.createElement)("div",{className:qe()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}))});nn.Slot=tn;var on=nn,rn=Object(C.compose)(Object(u.withSelect)(function(e){return{title:e("core/editor").getEditedPostAttribute("title")}}),Object(u.withDispatch)(function(e){return{closeSidebar:e("core/edit-post").closeGeneralSidebar}}))(function(e){var t=e.children,n=e.className,o=e.closeLabel,i=e.closeSidebar,c=e.title;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(r.createElement)("span",{className:"edit-post-sidebar-header__title"},c||Object(g.__)("(no title)")),Object(r.createElement)(w.IconButton,{onClick:i,icon:"no-alt",label:o})),Object(r.createElement)("div",{className:qe()("components-panel__header edit-post-sidebar-header",n)},t,Object(r.createElement)(w.IconButton,{onClick:i,icon:"no-alt",label:o,shortcut:Qe.toggleSidebar})))}),cn=Object(u.withDispatch)(function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/block-editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}})(function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,i=Object(g.__)("Block"),c="edit-post/document"===o?[Object(g.__)("Document (selected)"),"is-active"]:[Object(g.__)("Document"),""],a=Object(J.a)(c,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(g.__)("Block (selected)"),"is-active"]:[Object(g.__)("Block"),""],d=Object(J.a)(u,2),b=d[0],p=d[1];return Object(r.createElement)(rn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(g.__)("Close settings")},Object(r.createElement)("ul",null,Object(r.createElement)("li",null,Object(r.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(g.__)("Document")},Object(g.__)("Document"))),Object(r.createElement)("li",null,Object(r.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":i},i))))});var an=function(){return Object(r.createElement)(c.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(r.createElement)(w.PanelRow,{className:"edit-post-post-visibility"},Object(r.createElement)("span",null,Object(g.__)("Visibility")),!t&&Object(r.createElement)("span",null,Object(r.createElement)(c.PostVisibilityLabel,null)),t&&Object(r.createElement)(w.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(r.createElement)(w.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(r.createElement)(c.PostVisibilityLabel,null))},renderContent:function(){return Object(r.createElement)(c.PostVisibility,null)}}))}})};function ln(){return Object(r.createElement)(c.PostTrashCheck,null,Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PostTrash,null)))}var sn=Object(C.withInstanceId)(function(e){var t=e.instanceId;return Object(r.createElement)(c.PostScheduleCheck,null,Object(r.createElement)(w.PanelRow,{className:"edit-post-post-schedule"},Object(r.createElement)("label",{htmlFor:"edit-post-post-schedule__toggle-".concat(t),id:"edit-post-post-schedule__heading-".concat(t)},Object(g.__)("Publish")),Object(r.createElement)(w.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var n=e.onToggle,o=e.isOpen;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("label",{className:"edit-post-post-schedule__label",htmlFor:"edit-post-post-schedule__toggle-".concat(t)},Object(r.createElement)(c.PostScheduleLabel,null)," ",Object(g.__)("Click to change")),Object(r.createElement)(w.Button,{id:"edit-post-post-schedule__toggle-".concat(t),type:"button",className:"edit-post-post-schedule__toggle",onClick:n,"aria-expanded":o,"aria-live":"polite",isLink:!0},Object(r.createElement)(c.PostScheduleLabel,null)))},renderContent:function(){return Object(r.createElement)(c.PostSchedule,null)}})))});var un=function(){return Object(r.createElement)(c.PostStickyCheck,null,Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PostSticky,null)))};var dn=function(){return Object(r.createElement)(c.PostAuthorCheck,null,Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PostAuthor,null)))};var bn=function(){return Object(r.createElement)(c.PostFormatCheck,null,Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PostFormat,null)))};var pn=function(){return Object(r.createElement)(c.PostPendingStatusCheck,null,Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PostPendingStatus,null)))},mn=Object(w.createSlotFill)("PluginPostStatusInfo"),On=mn.Fill,fn=mn.Slot,jn=function(e){var t=e.children,n=e.className;return Object(r.createElement)(On,null,Object(r.createElement)(w.PanelRow,{className:n},t))};jn.Slot=fn;var hn=jn;var gn=Object(C.compose)([Object(u.withSelect)(function(e){return{isOpened:e("core/edit-post").isEditorPanelOpened("post-status")}}),Object(u.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-status")}}})])(function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(r.createElement)(w.PanelBody,{className:"edit-post-post-status",title:Object(g.__)("Status & Visibility"),opened:t,onToggle:n},Object(r.createElement)(hn.Slot,null,function(e){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(an,null),Object(r.createElement)(sn,null),Object(r.createElement)(bn,null),Object(r.createElement)(un,null),Object(r.createElement)(pn,null),Object(r.createElement)(dn,null),e,Object(r.createElement)(ln,null))}))});var En=function(){return Object(r.createElement)(c.PostLastRevisionCheck,null,Object(r.createElement)(w.PanelBody,{className:"edit-post-last-revision__panel"},Object(r.createElement)(c.PostLastRevision,null)))};var vn=Object(C.compose)(Object(u.withSelect)(function(e,t){var n=Object(h.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isEnabled:!!n&&e("core/edit-post").isEditorPanelEnabled(o),isOpened:!!n&&e("core/edit-post").isEditorPanelOpened(o)}}),Object(u.withDispatch)(function(e,t){return{onTogglePanel:function(){e("core/edit-post").toggleEditorPanelOpened(t.panelName)}}}))(function(e){var t=e.isEnabled,n=e.taxonomy,o=e.isOpened,i=e.onTogglePanel,c=e.children;if(!t)return null;var a=Object(h.get)(n,["labels","menu_name"]);return a?Object(r.createElement)(w.PanelBody,{title:a,opened:o,onToggle:i},c):null});var yn=function(){return Object(r.createElement)(c.PostTaxonomiesCheck,null,Object(r.createElement)(c.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(r.createElement)(vn,{taxonomy:t},e)}}))};var _n=Object(u.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),i=o.isEditorPanelEnabled,r=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:i("featured-image"),isOpened:r("featured-image")}}),Sn=Object(u.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(h.partial)(t,"featured-image")}}),Pn=Object(C.compose)(_n,Sn)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,i=e.onTogglePanel;return t?Object(r.createElement)(c.PostFeaturedImageCheck,null,Object(r.createElement)(w.PanelBody,{title:Object(h.get)(o,["labels","featured_image"],Object(g.__)("Featured Image")),opened:n,onToggle:i},Object(r.createElement)(c.PostFeaturedImage,null))):null});var kn=Object(C.compose)([Object(u.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}}),Object(u.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-excerpt")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(r.createElement)(c.PostExcerptCheck,null,Object(r.createElement)(w.PanelBody,{title:Object(g.__)("Excerpt"),opened:n,onToggle:o},Object(r.createElement)(c.PostExcerpt,null))):null});var wn=Object(C.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,i=t.getCurrentPost,r=t.isCurrentPostPublished,c=t.getPermalinkParts,a=t.getEditedPostAttribute,l=e("core/edit-post"),s=l.isEditorPanelEnabled,u=l.isEditorPanelOpened,d=e("core").getPostType,b=i(),p=b.link,m=b.id,O=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:r(),isOpened:u("post-link"),permalinkParts:c(),isEnabled:s("post-link"),isViewable:Object(h.get)(O,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m}}),Object(C.ifCondition)(function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,i=e.isViewable,r=e.permalinkParts;return t&&!n&&o&&i&&r}),Object(u.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened,n=e("core/editor").editPost;return{onTogglePanel:function(){return t("post-link")},editPermalink:function(e){n({slug:e})}}}),Object(C.withState)({forceEmptyField:!1})])(function(e){var t,n,o,i=e.isOpened,a=e.onTogglePanel,l=e.isEditable,s=e.postLink,u=e.permalinkParts,d=e.editPermalink,b=e.forceEmptyField,p=e.setState,m=e.postTitle,O=e.postSlug,f=e.postID,j=u.prefix,h=u.suffix,E=Object(A.safeDecodeURIComponent)(O)||Object(c.cleanForSlug)(m)||f;return l&&(t=j&&Object(r.createElement)("span",{className:"edit-post-post-link__link-prefix"},j),n=E&&Object(r.createElement)("span",{className:"edit-post-post-link__link-post-name"},E),o=h&&Object(r.createElement)("span",{className:"edit-post-post-link__link-suffix"},h)),Object(r.createElement)(w.PanelBody,{title:Object(g.__)("Permalink"),opened:i,onToggle:a},l&&Object(r.createElement)("div",{className:"editor-post-link"},Object(r.createElement)(w.TextControl,{label:Object(g.__)("URL Slug"),value:b?"":E,onChange:function(e){d(e),e?b&&p({forceEmptyField:!1}):b||p({forceEmptyField:!0})},onBlur:function(e){d(Object(c.cleanForSlug)(e.target.value)),b&&p({forceEmptyField:!1})}}),Object(r.createElement)("p",null,Object(g.__)("The last part of the URL. "),Object(r.createElement)(w.ExternalLink,{href:"https://codex.wordpress.org/Posts_Add_New_Screen"},Object(g.__)("Read about permalinks")))),Object(r.createElement)("p",{className:"edit-post-post-link__preview-label"},Object(g.__)("Preview")),Object(r.createElement)(w.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(r.createElement)(r.Fragment,null,t,n,o):s))});var Cn=Object(C.compose)([Object(u.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}}),Object(u.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("discussion-panel")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(r.createElement)(w.PanelBody,{title:Object(g.__)("Discussion"),opened:n,onToggle:o},Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:"comments"},Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PostComments,null))),Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PostPingbacks,null))))):null});var xn=Object(u.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,i=n.isEditorPanelOpened,r=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:i("page-attributes"),postType:r(t("type"))}}),Mn=Object(u.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(h.partial)(t,"page-attributes")}}),Tn=Object(C.compose)(xn,Mn)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,i=e.postType;return t&&i?Object(r.createElement)(c.PageAttributesCheck,null,Object(r.createElement)(w.PanelBody,{title:Object(h.get)(i,["labels","attributes"],Object(g.__)("Page Attributes")),opened:n,onToggle:o},Object(r.createElement)(c.PageTemplate,null),Object(r.createElement)(c.PageAttributesParent,null),Object(r.createElement)(w.PanelRow,null,Object(r.createElement)(c.PageAttributesOrder,null)))):null}),An=Object(C.compose)(Object(u.withSelect)(function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}}),Object(C.ifCondition)(function(e){return e.isEditorSidebarOpened}))(function(e){var t=e.sidebarName;return Object(r.createElement)(on,{name:t,label:Object(g.__)("Editor settings")},Object(r.createElement)(cn,{sidebarName:t}),Object(r.createElement)(w.Panel,null,"edit-post/document"===t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(gn,null),Object(r.createElement)(En,null),Object(r.createElement)(wn,null),Object(r.createElement)(yn,null),Object(r.createElement)(Pn,null),Object(r.createElement)(kn,null),Object(r.createElement)(Cn,null),Object(r.createElement)(Tn,null),Object(r.createElement)($t,{location:"side"})),"edit-post/block"===t&&Object(r.createElement)(w.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(r.createElement)(c.BlockInspector,null))))}),Nn=Object(w.createSlotFill)("PluginPostPublishPanel"),Bn=Nn.Fill,In=Nn.Slot,Ln=function(e){var t=e.children,n=e.className,o=e.title,i=e.initialOpen,c=void 0!==i&&i;return Object(r.createElement)(Bn,null,Object(r.createElement)(w.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};Ln.Slot=In;var Dn=Ln,Fn=Object(w.createSlotFill)("PluginPrePublishPanel"),Rn=Fn.Fill,Gn=Fn.Slot,Un=function(e){var t=e.children,n=e.className,o=e.title,i=e.initialOpen,c=void 0!==i&&i;return Object(r.createElement)(Rn,null,Object(r.createElement)(w.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};Un.Slot=Gn;var Vn=Un,Hn=function(e){function t(){return Object(b.a)(this,t),Object(m.a)(this,Object(O.a)(t).apply(this,arguments))}return Object(f.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(r.Component),Wn=Object(u.withSelect)(function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}})(Hn);var qn=Object(C.compose)(Object(u.withSelect)(function(e){return{mode:e("core/edit-post").getEditorMode(),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(u.withDispatch)(function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}}),w.navigateRegions,Object(l.withViewportMatch)({isMobileViewport:"< small"}))(function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,i=e.publishSidebarOpened,a=e.hasFixedToolbar,l=e.closePublishSidebar,s=e.togglePublishSidebar,u=e.hasActiveMetaboxes,d=e.isSaving,b=e.isMobileViewport,p=e.isRichEditingEnabled,m=n||o||i,O=qe()("edit-post-layout",{"is-sidebar-opened":m,"has-fixed-toolbar":a}),f={role:"region","aria-label":Object(g.__)("Editor publish"),tabIndex:-1};return Object(r.createElement)("div",{className:O},Object(r.createElement)(Wn,null),Object(r.createElement)(Ke,null),Object(r.createElement)(c.UnsavedChangesWarning,null),Object(r.createElement)(c.AutosaveMonitor,null),Object(r.createElement)(mt,null),Object(r.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(g.__)("Editor content"),tabIndex:"-1"},Object(r.createElement)(c.EditorNotices,{dismissible:!1,className:"is-pinned"}),Object(r.createElement)(c.EditorNotices,{dismissible:!0}),Object(r.createElement)(c.PreserveScrollInReorder,null),Object(r.createElement)(_t,null),Object(r.createElement)(Dt,null),Object(r.createElement)(Kt,null),("text"===t||!p)&&Object(r.createElement)(Ot,null),p&&"visual"===t&&Object(r.createElement)(vt,null),Object(r.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(r.createElement)($t,{location:"normal"})),Object(r.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(r.createElement)($t,{location:"advanced"}))),i?Object(r.createElement)(c.PostPublishPanel,Object(S.a)({},f,{onClose:l,forceIsDirty:u,forceIsSaving:d,PrePublishExtension:Vn.Slot,PostPublishExtension:Dn.Slot})):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",Object(S.a)({className:"edit-post-toggle-publish-panel"},f),Object(r.createElement)(w.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:s,"aria-expanded":!1},Object(g.__)("Open publish panel"))),Object(r.createElement)(An,null),Object(r.createElement)(on.Slot,null),b&&m&&Object(r.createElement)(w.ScrollLock,null)),Object(r.createElement)(w.Popover.Slot,null),Object(r.createElement)(T.PluginArea,null))}),zn=function(e){function t(){var e;return Object(b.a)(this,t),(e=Object(m.a)(this,Object(O.a)(t).apply(this,arguments))).getEditorSettings=Ve()(e.getEditorSettings,{maxSize:1}),e}return Object(f.a)(t,e),Object(p.a)(t,[{key:"getEditorSettings",value:function(e,t,n){return Object(V.a)({},e,{hasFixedToolbar:t,focusMode:n})}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,i=e.post,a=e.initialEdits,l=e.onError,s=Object(P.a)(e,["settings","hasFixedToolbar","focusMode","post","initialEdits","onError"]);if(!i)return null;var u=Object(V.a)({},t,{hasFixedToolbar:n,focusMode:o});return Object(r.createElement)(r.StrictMode,null,Object(r.createElement)(c.EditorProvider,Object(S.a)({settings:u,post:i,initialEdits:a},s),Object(r.createElement)(c.ErrorBoundary,{onError:l},Object(r.createElement)(qn,null),Object(r.createElement)(w.KeyboardShortcuts,{shortcuts:He})),Object(r.createElement)(c.PostLockedModal,null)))}}]),t}(r.Component),Kn=Object(u.withSelect)(function(e,t){var n=t.postId,o=t.postType;return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),focusMode:e("core/edit-post").isFeatureActive("focusMode"),post:e("core").getEntityRecord("postType",o,n)}})(zn),Qn=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(h.difference)(n,o).length);var n,o},Xn=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,i=e.onClick,c=e.small,a=e.role;return Object(r.createElement)(Et,null,function(e){var l=e.selectedBlocks,s=e.onClose;return Qn(l,t)?Object(r.createElement)(w.IconButton,{className:"editor-block-settings-menu__control",onClick:Object(C.compose)(i,s),icon:n||"admin-plugins",label:c?o:void 0,role:a},!c&&o):null})},Jn=Object(C.compose)(Object(T.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.onClick,n=void 0===t?h.noop:t,o=Object(P.a)(e,["onClick"]);return Object(r.createElement)(et,null,function(e){return Object(r.createElement)(w.MenuItem,Object(S.a)({},o,{onClick:Object(C.compose)(n,e.onClose)}))})});var Yn=Object(C.compose)(Object(T.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}}),Object(u.withSelect)(function(e,t){var n=t.sidebarName,o=e("core/edit-post"),i=o.getActiveGeneralSidebarName,r=o.isPluginItemPinned;return{isActive:i()===n,isPinned:r(n)}}),Object(u.withDispatch)(function(e,t){var n=t.isActive,o=t.sidebarName,i=e("core/edit-post"),r=i.closeGeneralSidebar,c=i.openGeneralSidebar,a=i.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?r():c(o)}}}))(function(e){var t=e.children,n=e.className,o=e.icon,i=e.isActive,c=e.isPinnable,a=void 0===c||c,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(r.createElement)(r.Fragment,null,a&&Object(r.createElement)(bt,null,l&&Object(r.createElement)(w.IconButton,{icon:o,label:u,onClick:b,isToggled:i,"aria-expanded":i})),Object(r.createElement)(on,{name:s,label:Object(g.__)("Editor plugins")},Object(r.createElement)(rn,{closeLabel:Object(g.__)("Close plugin")},Object(r.createElement)("strong",null,u),a&&Object(r.createElement)(w.IconButton,{icon:l?"star-filled":"star-empty",label:l?Object(g.__)("Unpin from toolbar"):Object(g.__)("Pin to toolbar"),onClick:d,isToggled:l,"aria-expanded":l})),Object(r.createElement)(w.Panel,{className:n},t)))}),$n=Object(C.compose)(Object(T.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}}),Object(u.withSelect)(function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}}),Object(u.withDispatch)(function(e,t){var n=t.isSelected,o=t.sidebarName,i=e("core/edit-post"),r=i.closeGeneralSidebar,c=i.openGeneralSidebar;return{onClick:n?r:function(){return c(o)}}}))(function(e){var t=e.children,n=e.icon,o=e.isSelected,i=e.onClick;return Object(r.createElement)(Jn,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:i},t)});function Zn(e,t,n,o,i){Object(r.unmountComponentAtNode)(n);var c=Zn.bind(null,e,t,n,o,i);Object(r.render)(Object(r.createElement)(Kn,{settings:o,onError:c,postId:t,postType:e,initialEdits:i,recovery:!0}),n)}function eo(e,t,n,o,i){var c=document.getElementById(e),a=Zn.bind(null,t,n,c,o,i);Object(s.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),Object(u.dispatch)("core/nux").triggerGuide(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"]),Object(r.render)(Object(r.createElement)(Kn,{settings:o,onError:a,postId:n,postType:t,initialEdits:i}),c)}n.d(t,"reinitializeEditor",function(){return Zn}),n.d(t,"initializeEditor",function(){return eo}),n.d(t,"PluginBlockSettingsMenuItem",function(){return Xn}),n.d(t,"PluginMoreMenuItem",function(){return Jn}),n.d(t,"PluginPostPublishPanel",function(){return Dn}),n.d(t,"PluginPostStatusInfo",function(){return hn}),n.d(t,"PluginPrePublishPanel",function(){return Vn}),n.d(t,"PluginSidebar",function(){return Yn}),n.d(t,"PluginSidebarMoreMenuItem",function(){return $n})},31:function(e,t){!function(){e.exports=this.wp.apiFetch}()},33:function(e,t,n){"use strict";function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return o})},34:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},35:function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return o})},37:function(e,t){!function(){e.exports=this.wp.viewport}()},38:function(e,t,n){e.exports=function(e,t){var n,o,i,r=0;function c(){var t,c,a=o,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",function(){return o})},22:function(e,t){!function(){e.exports=this.wp.editor}()},226:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t){!function(){e.exports=this.wp.hooks}()},28:function(e,t,n){"use strict";var o=n(37);var r=n(38);function i(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(o=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}(e,t)||Object(r.a)()}n.d(t,"a",function(){return i})},3:function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return o})},30:function(e,t,n){"use strict";var o,r;function i(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o0&&this.buildAndSetGalleryFrame(),this.frame.open()}},{key:"render",value:function(){return this.props.render({open:this.openModal})}}]),t}(i.Component);Object(b.addFilter)("editor.MediaUpload","core/edit-post/components/media-upload/replace-media-upload",function(){return S});var k=n(19),P=n(21),w=n(14),C=n(4),T=n(6),x=Object(T.compose)(Object(d.withSelect)(function(e,t){if(Object(w.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(g.find)(n,function(e){var n=e.name;return t.name===n});return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}}),Object(d.withDispatch)(function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}})),M=Object(T.createHigherOrderComponent)(function(e){return x(function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(P.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(i.createElement)(e,r);var a=Object(w.getBlockType)(r.name),l=function(e){var t=Object(w.findTransform)(Object(w.getBlockTransforms)("to",e),function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length});if(!t)return null;return Object(w.getBlockType)(t.blocks[0])}(r.name);return[Object(i.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(i.createElement)(e,Object(k.a)({key:"block-edit"},r))),Object(i.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(i.createElement)(C.Button,{key:"find-original",isLarge:!0,onClick:o},Object(E.__)("Find original")),Object(i.createElement)(C.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(E.__)("Remove")),l&&Object(i.createElement)(C.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(w.createBlock)(l.name,r.attributes))}},Object(E.__)("Transform into:")," ",l.title)]},Object(i.createElement)("strong",null,a.title,": "),Object(E.__)("This block can only be used once."))]})},"withMultipleValidation");Object(b.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",M);var B=n(63),N=n(23);var A=Object(T.compose)(Object(d.withSelect)(function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}}),Object(T.withState)({hasCopied:!1}))(function(e){var t=e.editedPostContent,n=e.hasCopied,o=e.setState;return Object(i.createElement)(C.ClipboardButton,{text:t,className:"components-menu-item__button",onCopy:function(){return o({hasCopied:!0})},onFinishCopy:function(){return o({hasCopied:!1})}},n?Object(E.__)("Copied!"):Object(E.__)("Copy All Content"))});var I=Object(d.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.onSelect,n=e.openModal;return Object(i.createElement)(C.MenuItem,{onClick:Object(g.flow)([t,function(){return n("edit-post/manage-blocks")}])},Object(E.__)("Block Manager"))}),L=n(18);var D=Object(d.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal,n=e.onSelect;return Object(i.createElement)(C.MenuItem,{onClick:function(){n(),t("edit-post/keyboard-shortcut-help")},shortcut:L.displayShortcut.access("h")},Object(E.__)("Keyboard Shortcuts"))}),F=Object(C.createSlotFill)("ToolsMoreMenuGroup"),R=F.Fill,G=F.Slot;R.Slot=function(e){var t=e.fillProps;return Object(i.createElement)(G,{fillProps:t},function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)(C.MenuGroup,{label:Object(E.__)("Tools")},e)})};var U=R;Object(B.registerPlugin)("edit-post",{render:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(U,null,function(e){var t=e.onClose;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(I,{onSelect:t}),Object(i.createElement)(C.MenuItem,{role:"menuitem",href:Object(N.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(E.__)("Manage All Reusable Blocks")),Object(i.createElement)(D,{onSelect:t}),Object(i.createElement)(A,null))}))}});var V,H=n(17),W=n(15),q=n(7),K="edit-post/document",z=Object(g.flow)([d.combineReducers,(V={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1},pinnedPluginItems:{},hiddenBlockTypes:[]},function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,n=arguments.length>1?arguments[1]:void 0;return e(t,n)}})])({isGeneralSidebarDismissed:function(e,t){switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var n=t.panelName;return Object(q.a)({},e,Object(W.a)({},n,Object(q.a)({},e[n],{enabled:!Object(g.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(g.get)(e,[o,"opened"],!1);return Object(q.a)({},e,Object(W.a)({},o,Object(q.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(q.a)({},e,Object(W.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?Object(q.a)({},e,Object(W.a)({},t.pluginName,!Object(g.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return g.without.apply(void 0,[e].concat(Object(H.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(g.union)(e,t.blockNames)}return e}});var Q=Object(d.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations: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_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),X=Object(d.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:Q,preferences:z,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(g.includes)(e,t.panelName))return[].concat(Object(H.a)(e),[t.panelName])}return e}}),Y=n(70),J=n.n(Y),$=n(28),Z=n(48),ee=n(33),te=n.n(ee);function ne(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function oe(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function re(e){return{type:"OPEN_MODAL",name:e}}function ie(){return{type:"CLOSE_MODAL"}}function ce(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ae(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function le(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function se(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ue(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function de(e){return{type:"REMOVE_PANEL",panelName:e}}function be(e){return{type:"TOGGLE_FEATURE",feature:e}}function pe(e){return{type:"SWITCH_MODE",mode:e}}function me(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function Oe(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(g.castArray)(e)}}function fe(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(g.castArray)(e)}}function je(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function he(){return{type:"REQUEST_META_BOX_UPDATES"}}function ge(){return{type:"META_BOX_UPDATES_SUCCESS"}}var Ee=n(30);function ve(e){return Pe(e,"editorMode","visual")}function ye(e){var t=Se(e);return Object(g.includes)(["edit-post/document","edit-post/block"],t)}function _e(e){return!!Se(e)&&!ye(e)}function Se(e){return Pe(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function ke(e){return e.preferences}function Pe(e,t,n){var o=ke(e)[t];return void 0===o?n:o}function we(e){return e.publishSidebarActive}function Ce(e,t){return Object(g.includes)(e.removedPanels,t)}function Te(e,t){var n=Pe(e,"panels");return!Ce(e,t)&&Object(g.get)(n,[t,"enabled"],!0)}function xe(e,t){var n=Pe(e,"panels");return!0===n[t]||Object(g.get)(n,[t,"opened"],!1)}function Me(e,t){return e.activeModal===t}function Be(e,t){return!!e.preferences.features[t]}function Ne(e,t){var n=Pe(e,"pinnedPluginItems",{});return Object(g.get)(n,[t],!0)}var Ae=Object(Ee.a)(function(e){return Object.keys(e.metaBoxes.locations).filter(function(t){return Le(e,t)})},function(e){return[e.metaBoxes.locations]});function Ie(e,t){return Le(e,t)&&Object(g.some)(De(e,t),function(t){var n=t.id;return Te(e,"meta-box-".concat(n))})}function Le(e,t){var n=De(e,t);return!!n&&0!==n.length}function De(e,t){return e.metaBoxes.locations[t]}var Fe=Object(Ee.a)(function(e){return Object(g.flatten)(Object(g.values)(e.metaBoxes.locations))},function(e){return[e.metaBoxes.locations]});function Re(e){return Ae(e).length>0}function Ge(e){return e.metaBoxes.isSaving}var Ue=function(e,t){var n=e();return function(){var o=e();o!==n&&(n=o,t(o))}},Ve={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout(function(){var e=Object(d.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)});var n=Object(d.select)("core/editor").isSavingPost(),o=Object(d.select)("core/editor").isAutosavingPost(),r=Object(d.select)("core/editor").isPreviewingPost();Object(d.subscribe)(function(){var e=Object(d.select)("core/editor").isSavingPost(),i=Object(d.select)("core/editor").isAutosavingPost(),c=Object(d.select)("core/editor").isPreviewingPost(),a=Object(d.select)("core/edit-post").hasMetaBoxes()&&(n&&!e&&!o||o&&r&&!c);n=e,o=i,r=c,a&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})})},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var n=t.getState(),o=Object(d.select)("core/editor").getCurrentPost(n),r=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],["post_author",o.author]].filter(Boolean),i=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(H.a)(Ae(n).map(function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))}))),c=Object(g.reduce)(i,function(e,t){var n=!0,o=!1,r=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=Object($.a)(i.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw r}}return e},new window.FormData);r.forEach(function(e){var t=Object($.a)(e,2),n=t[0],o=t[1];return c.append(n,o)}),te()({url:window._wpMetaBoxUrl,method:"POST",body:c,parse:!1}).then(function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})})},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(d.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(Z.speak)(t,"assertive")},INIT:function(e,t){Object(d.subscribe)(Ue(function(){return!!Object(d.select)("core/block-editor").getBlockSelectionStart()},function(e){Object(d.select)("core/edit-post").isEditorSidebarOpened()&&(e?t.dispatch(ne("edit-post/block")):t.dispatch(ne("edit-post/document")))}));var n,o=function(){return Object(d.select)("core/viewport").isViewportMatch("< medium")},r=(n=null,function(e){e?(n=Se(t.getState()))&&t.dispatch({type:"CLOSE_GENERAL_SIDEBAR"}):n&&!Se(t.getState())&&t.dispatch(ne(n))});r(o()),Object(d.subscribe)(Ue(o,r));Object(d.subscribe)(Ue(function(){return Object(d.select)("core/editor").getCurrentPost().link},function(e){if(e){var t=document.querySelector("#wp-admin-bar-view a");t&&t.setAttribute("href",e)}}))}};var He=function(e){var t,n=[J()(Ve)],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map(function(e){return e(r)}),o=g.flowRight.apply(void 0,Object(H.a)(t))(e.dispatch),e.dispatch=o,e},We=Object(d.registerStore)("core/edit-post",{reducer:X,actions:o,selectors:r,persist:["preferences"]});He(We),We.dispatch({type:"INIT"});var qe=n(41),Ke=n.n(qe),ze={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},Qe=n(16),Xe=n.n(Qe);var Ye=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(j.a)(t,e),Object(m.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,i=this.state.historyId;"trash"!==o?n===e.postId&&n===i||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(N.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(N.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState(function(){return{historyId:e}})}},{key:"render",value:function(){return null}}]),t}(i.Component),Je=Object(d.withSelect)(function(e){var t=(0,e("core/editor").getCurrentPost)();return{postId:t.id,postStatus:t.status,postType:t.type}})(Ye),$e={toggleEditorMode:{raw:L.rawShortcut.secondary("m"),display:L.displayShortcut.secondary("m")},toggleSidebar:{raw:L.rawShortcut.primaryShift(","),display:L.displayShortcut.primaryShift(","),ariaLabel:L.shortcutAriaLabel.primaryShift(",")}},Ze=[{value:"visual",label:Object(E.__)("Visual Editor")},{value:"text",label:Object(E.__)("Code Editor")}];var et=Object(T.compose)([Object(d.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),Object(T.ifCondition)(function(e){return e.isRichEditingEnabled}),Object(d.withDispatch)(function(e,t){return{onSwitch:function(n){e("core/edit-post").switchEditorMode(n),t.onSelect(n)}}})])(function(e){var t=e.onSwitch,n=e.mode,o=Ze.map(function(e){return e.value!==n?Object(q.a)({},e,{shortcut:$e.toggleEditorMode.display}):e});return Object(i.createElement)(C.MenuGroup,{label:Object(E.__)("Editor")},Object(i.createElement)(C.MenuItemsChoice,{choices:o,value:n,onSelect:t}))}),tt=Object(C.createSlotFill)("PluginsMoreMenuGroup"),nt=tt.Fill,ot=tt.Slot;nt.Slot=function(e){var t=e.fillProps;return Object(i.createElement)(ot,{fillProps:t},function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)(C.MenuGroup,{label:Object(E.__)("Plugins")},e)})};var rt=nt;var it=Object(d.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal,n=e.onSelect;return Object(i.createElement)(C.MenuItem,{onClick:function(){n(),t("edit-post/options")}},Object(E.__)("Options"))});var ct=Object(T.compose)([Object(d.withSelect)(function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}}),Object(d.withDispatch)(function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature),t.onToggle()}}}),C.withSpokenMessages])(function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,c=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(i.createElement)(C.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(g.flow)(t,function(){l(n?a||Object(E.__)("Feature deactivated"):c||Object(E.__)("Feature activated"))}),role:"menuitemcheckbox",label:o,info:r},o)});var at=Object(s.ifViewportMatches)("medium")(function(e){var t=e.onClose;return Object(i.createElement)(C.MenuGroup,{label:Object(E._x)("View","noun")},Object(i.createElement)(ct,{feature:"fixedToolbar",label:Object(E.__)("Top Toolbar"),info:Object(E.__)("Access all block and document tools in a single place"),onToggle:t,messageActivated:Object(E.__)("Top toolbar activated"),messageDeactivated:Object(E.__)("Top toolbar deactivated")}),Object(i.createElement)(ct,{feature:"focusMode",label:Object(E.__)("Spotlight Mode"),info:Object(E.__)("Focus on one block at a time"),onToggle:t,messageActivated:Object(E.__)("Spotlight mode activated"),messageDeactivated:Object(E.__)("Spotlight mode deactivated")}),Object(i.createElement)(ct,{feature:"fullscreenMode",label:Object(E.__)("Fullscreen Mode"),info:Object(E.__)("Work without distraction"),onToggle:t,messageActivated:Object(E.__)("Fullscreen mode activated"),messageDeactivated:Object(E.__)("Fullscreen mode deactivated")}))}),lt=Object(E.__)("Show more tools & options"),st=Object(E.__)("Hide more tools & options"),ut=function(){return Object(i.createElement)(C.Dropdown,{className:"edit-post-more-menu",contentClassName:"edit-post-more-menu__content",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(i.createElement)(C.IconButton,{icon:"ellipsis",label:t?st:lt,labelPosition:"bottom",onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onClose;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(at,{onClose:t}),Object(i.createElement)(et,{onSelect:t}),Object(i.createElement)(rt.Slot,{fillProps:{onClose:t}}),Object(i.createElement)(U.Slot,{fillProps:{onClose:t}}),Object(i.createElement)(C.MenuGroup,null,Object(i.createElement)(it,{onSelect:t})))}})};var dt=Object(d.withSelect)(function(e){var t=e("core/editor").getCurrentPostType,n=e("core/edit-post").isFeatureActive,o=e("core").getPostType;return{isActive:n("fullscreenMode"),postType:o(t())}})(function(e){var t=e.isActive,n=e.postType;return t&&n?Object(i.createElement)(C.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(i.createElement)(C.IconButton,{icon:"arrow-left-alt2",href:Object(N.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(g.get)(n,["labels","view_items"],Object(E.__)("Back"))})):null});var bt=Object(T.compose)([Object(d.withSelect)(function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}}),Object(s.withViewportMatch)({isLargeViewport:"medium"})])(function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.showInserter,r=e.isTextModeEnabled,s=t?Object(E.__)("Document and block tools"):Object(E.__)("Document tools");return Object(i.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":s},Object(i.createElement)(dt,null),Object(i.createElement)("div",null,Object(i.createElement)(c.Inserter,{disabled:!o,position:"bottom right"}),Object(i.createElement)(l.DotTip,{tipId:"core/editor.inserter"},Object(E.__)("Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!"))),Object(i.createElement)(a.EditorHistoryUndo,null),Object(i.createElement)(a.EditorHistoryRedo,null),Object(i.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:r}),Object(i.createElement)(c.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(i.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(i.createElement)(c.BlockToolbar,null)))}),pt=Object(C.createSlotFill)("PinnedPlugins"),mt=pt.Fill,Ot=pt.Slot;mt.Slot=function(e){return Object(i.createElement)(Ot,e,function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)("div",{className:"edit-post-pinned-plugins"},e)})};var ft=mt;var jt=Object(T.compose)(Object(d.withSelect)(function(e){return{hasPublishAction:Object(g.get)(e("core/editor").getCurrentPost(),["_links","wp:action-publish"],!1),isBeingScheduled:e("core/editor").isEditedPostBeingScheduled(),isPending:e("core/editor").isCurrentPostPending(),isPublished:e("core/editor").isCurrentPostPublished(),isPublishSidebarEnabled:e("core/editor").isPublishSidebarEnabled(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isScheduled:e("core/editor").isCurrentPostScheduled()}}),Object(d.withDispatch)(function(e){return{togglePublishSidebar:e("core/edit-post").togglePublishSidebar}}),Object(s.withViewportMatch)({isLessThanMediumViewport:"< medium"}))(function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,r=e.hasPublishAction,c=e.isBeingScheduled,l=e.isLessThanMediumViewport,s=e.isPending,u=e.isPublished,d=e.isPublishSidebarEnabled,b=e.isPublishSidebarOpened,p=e.isScheduled,m=e.togglePublishSidebar;return t=u||p&&c||s&&!r&&!l?"button":l?"toggle":d?"toggle":"button",Object(i.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})});var ht=Object(T.compose)(Object(d.withSelect)(function(e){return{hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isSaving:e("core/edit-post").isSavingMetaBoxes()}}),Object(d.withDispatch)(function(e,t,n){var o=(0,n.select)("core/block-editor").getBlockSelectionStart,r=e("core/edit-post"),i=r.openGeneralSidebar;return{openGeneralSidebar:function(){return i(o()?"edit-post/block":"edit-post/document")},closeGeneralSidebar:r.closeGeneralSidebar}}))(function(e){var t=e.closeGeneralSidebar,n=e.hasActiveMetaboxes,o=e.isEditorSidebarOpened,r=e.isPublishSidebarOpened,c=e.isSaving,s=e.openGeneralSidebar,u=o?t:s;return Object(i.createElement)("div",{role:"region","aria-label":Object(E.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(i.createElement)(bt,null),Object(i.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(i.createElement)(a.PostSavedState,{forceIsDirty:n,forceIsSaving:c}),Object(i.createElement)(a.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:c?null:void 0}),Object(i.createElement)(jt,{forceIsDirty:n,forceIsSaving:c}),Object(i.createElement)("div",null,Object(i.createElement)(C.IconButton,{icon:"admin-generic",label:Object(E.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:$e.toggleSidebar}),Object(i.createElement)(l.DotTip,{tipId:"core/editor.settings"},Object(E.__)("You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed."))),Object(i.createElement)(ft.Slot,null),Object(i.createElement)(ut,null)))});var gt=Object(T.compose)(Object(d.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(d.withDispatch)(function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}}))(function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(i.createElement)("div",{className:"edit-post-text-editor"},n&&Object(i.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(i.createElement)("h2",null,Object(E.__)("Editing Code")),Object(i.createElement)(C.IconButton,{onClick:t,icon:"no-alt",shortcut:L.displayShortcut.secondary("m")},Object(E.__)("Exit Code Editor")),Object(i.createElement)(a.TextEditorGlobalKeyboardShortcuts,null)),Object(i.createElement)("div",{className:"edit-post-text-editor__body"},Object(i.createElement)(a.PostTitle,null),Object(i.createElement)(a.PostTextEditor,null)))});var Et=Object(T.compose)(Object(d.withSelect)(function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),Object(d.withDispatch)(function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}}),C.withSpokenMessages)(function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,c=void 0===r?g.noop:r,a=e.small,l=void 0!==a&&a,s=e.speak,u=t?Object(E.__)("Hide Block Settings"):Object(E.__)("Show Block Settings");return Object(i.createElement)(C.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(g.flow)(t?n:o,function(){s(t?Object(E.__)("Block settings closed"):Object(E.__)("Additional settings are now available in the Editor block settings sidebar"))},c),icon:"admin-generic",label:l?u:void 0,shortcut:$e.toggleSidebar},!l&&u)}),vt=Object(C.createSlotFill)("PluginBlockSettingsMenuGroup"),yt=vt.Fill,_t=vt.Slot;yt.Slot=Object(d.withSelect)(function(e,t){var n=t.fillProps.clientIds;return{selectedBlocks:e("core/block-editor").getBlocksByClientId(n)}})(function(e){var t=e.fillProps,n=e.selectedBlocks;return n=Object(g.map)(n,function(e){return e.name}),Object(i.createElement)(_t,{fillProps:Object(q.a)({},t,{selectedBlocks:n})},function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"editor-block-settings-menu__separator"}),e)})});var St=yt;var kt=function(){return Object(i.createElement)(c.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(i.createElement)(a.VisualEditorGlobalKeyboardShortcuts,null),Object(i.createElement)(c.CopyHandler,null),Object(i.createElement)(c.MultiSelectScrollIntoView,null),Object(i.createElement)(c.WritingFlow,null,Object(i.createElement)(c.ObserveTyping,null,Object(i.createElement)(a.PostTitle,null),Object(i.createElement)(c.BlockList,null))),Object(i.createElement)(c._BlockSettingsMenuFirstItem,null,function(e){var t=e.onClose;return Object(i.createElement)(Et,{onClick:t})}),Object(i.createElement)(c._BlockSettingsMenuPluginsExtension,null,function(e){var t=e.clientIds,n=e.onClose;return Object(i.createElement)(St.Slot,{fillProps:{clientIds:t,onClose:n}})}))},Pt=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(h.a)(Object(h.a)(e))),e.toggleSidebar=e.toggleSidebar.bind(Object(h.a)(Object(h.a)(e))),e}return Object(j.a)(t,e),Object(m.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isRichEditingEnabled&&n("visual"===t?"text":"visual")}},{key:"toggleSidebar",value:function(e){e.preventDefault();var t=this.props,n=t.isEditorSidebarOpen,o=t.closeSidebar,r=t.openSidebar;n?o():r()}},{key:"render",value:function(){var e;return Object(i.createElement)(C.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(W.a)(e,$e.toggleEditorMode.raw,this.toggleMode),Object(W.a)(e,$e.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(i.Component),wt=Object(T.compose)([Object(d.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}}),Object(d.withDispatch)(function(e,t,n){var o=n.select;return{switchMode:function(t){e("core/edit-post").switchEditorMode(t)},openSidebar:function(){var t=(0,o("core/block-editor").getBlockSelectionStart)()?"edit-post/block":"edit-post/document";e("core/edit-post").openGeneralSidebar(t)},closeSidebar:e("core/edit-post").closeGeneralSidebar}})])(Pt),Ct=L.displayShortcutList.primary,Tt=L.displayShortcutList.primaryShift,xt=L.displayShortcutList.primaryAlt,Mt=L.displayShortcutList.secondary,Bt=L.displayShortcutList.access,Nt=L.displayShortcutList.ctrl,At=L.displayShortcutList.alt,It=L.displayShortcutList.ctrlShift,Lt=L.displayShortcutList.shiftAlt,Dt=[{title:Object(E.__)("Global shortcuts"),shortcuts:[{keyCombination:Bt("h"),description:Object(E.__)("Display this help.")},{keyCombination:Ct("s"),description:Object(E.__)("Save your changes.")},{keyCombination:Ct("z"),description:Object(E.__)("Undo your last changes.")},{keyCombination:Tt("z"),description:Object(E.__)("Redo your last undo.")},{keyCombination:Tt(","),description:Object(E.__)("Show or hide the settings sidebar."),ariaLabel:L.shortcutAriaLabel.primaryShift(",")},{keyCombination:Bt("o"),description:Object(E.__)("Open the block navigation menu.")},{keyCombination:Nt("`"),description:Object(E.__)("Navigate to the next part of the editor."),ariaLabel:L.shortcutAriaLabel.ctrl("`")},{keyCombination:It("`"),description:Object(E.__)("Navigate to the previous part of the editor."),ariaLabel:L.shortcutAriaLabel.ctrlShift("`")},{keyCombination:Lt("n"),description:Object(E.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:Lt("p"),description:Object(E.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:At("F10"),description:Object(E.__)("Navigate to the nearest toolbar.")},{keyCombination:Mt("m"),description:Object(E.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(E.__)("Selection shortcuts"),shortcuts:[{keyCombination:Ct("a"),description:Object(E.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(E.__)("Clear selection."),ariaLabel:Object(E.__)("Escape")}]},{title:Object(E.__)("Block shortcuts"),shortcuts:[{keyCombination:Tt("d"),description:Object(E.__)("Duplicate the selected block(s).")},{keyCombination:Bt("z"),description:Object(E.__)("Remove the selected block(s).")},{keyCombination:xt("t"),description:Object(E.__)("Insert a new block before the selected block(s).")},{keyCombination:xt("y"),description:Object(E.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(E.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(E.__)("Forward-slash")}]},{title:Object(E.__)("Text formatting"),shortcuts:[{keyCombination:Ct("b"),description:Object(E.__)("Make the selected text bold.")},{keyCombination:Ct("i"),description:Object(E.__)("Make the selected text italic.")},{keyCombination:Ct("u"),description:Object(E.__)("Underline the selected text.")},{keyCombination:Ct("k"),description:Object(E.__)("Convert the selected text into a link.")},{keyCombination:Tt("k"),description:Object(E.__)("Remove a link.")},{keyCombination:Bt("d"),description:Object(E.__)("Add a strikethrough to the selected text.")},{keyCombination:Bt("x"),description:Object(E.__)("Display the selected text in a monospaced font.")}]}],Ft="edit-post/keyboard-shortcut-help",Rt=function(e){var t=e.shortcuts;return Object(i.createElement)("dl",{className:"edit-post-keyboard-shortcut-help__shortcut-list"},t.map(function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(i.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(i.createElement)("dt",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(i.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help__shortcut-key-combination","aria-label":r},function(e){return e.map(function(e,t){return"+"===e?Object(i.createElement)(i.Fragment,{key:t},e):Object(i.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)})}(Object(g.castArray)(n)))),Object(i.createElement)("dd",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o))}))},Gt=function(e){var t=e.title,n=e.shortcuts;return Object(i.createElement)("section",{className:"edit-post-keyboard-shortcut-help__section"},Object(i.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(i.createElement)(Rt,{shortcuts:n}))};var Ut=Object(T.compose)([Object(d.withSelect)(function(e){return{isModalActive:e("core/edit-post").isModalActive(Ft)}}),Object(d.withDispatch)(function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,i=o.closeModal;return{toggleModal:function(){return n?i():r(Ft)}}})])(function(e){var t=e.isModalActive,n=e.toggleModal;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(C.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(W.a)({},L.rawShortcut.access("h"),n)}),t&&Object(i.createElement)(C.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(E.__)("Keyboard Shortcuts"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Dt.map(function(e,t){return Object(i.createElement)(Gt,Object(k.a)({key:t},e))})))});var Vt=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(i.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map(function(e){return Object(i.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(i.createElement)(C.CheckboxControl,{label:Object(i.createElement)(i.Fragment,null,e.title,Object(i.createElement)(c.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(g.partial)(o,e.name)}))}))};var Ht=Object(T.compose)([T.withInstanceId,Object(d.withSelect)(function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}}),Object(d.withDispatch)(function(e,t){var n=e("core/edit-post"),o=n.showBlockTypes,r=n.hideBlockTypes;return{toggleVisible:function(e,t){t?o(e):r(e)},toggleAllVisible:function(e){var n=Object(g.map)(t.blockTypes,"name");e?o(n):r(n)}}})])(function(e){var t=e.instanceId,n=e.category,o=e.blockTypes,r=e.hiddenBlockTypes,c=e.toggleVisible,a=e.toggleAllVisible;if(!o.length)return null;var l,s=g.without.apply(void 0,[Object(g.map)(o,"name")].concat(Object(H.a)(r))),u="edit-post-manage-blocks-modal__category-title-"+t,d=s.length===o.length;return l=d?"true":s.length>0?"mixed":"false",Object(i.createElement)("div",{role:"group","aria-labelledby":u,className:"edit-post-manage-blocks-modal__category"},Object(i.createElement)(C.CheckboxControl,{checked:d,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":l,label:Object(i.createElement)("span",{id:u},n.title)}),Object(i.createElement)(Vt,{blockTypes:o,value:s,onItemChange:c}))});var Wt=Object(T.compose)([Object(T.withState)({search:""}),Object(d.withSelect)(function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,i=t.isMatchingSearchTerm;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:i}})])(function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,c=e.hasBlockSupport,a=e.isMatchingSearchTerm;return o=o.filter(function(e){return c(e,"inserter",!0)&&(!t||a(e,t))}),Object(i.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(i.createElement)(C.TextControl,{type:"search",label:Object(E.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),Object(i.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(E.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(i.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(E.__)("No blocks found.")),r.map(function(e){return Object(i.createElement)(Ht,{key:e.slug,category:e,blockTypes:Object(g.filter)(o,{category:e.slug})})})))});var qt=Object(T.compose)([Object(d.withSelect)(function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}}),Object(d.withDispatch)(function(e){return{closeModal:e("core/edit-post").closeModal}})])(function(e){var t=e.isActive,n=e.closeModal;return t?Object(i.createElement)(C.Modal,{className:"edit-post-manage-blocks-modal",title:Object(E.__)("Block Manager"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Object(i.createElement)(Wt,null)):null}),Kt=function(e){var t=e.title,n=e.children;return Object(i.createElement)("section",{className:"edit-post-options-modal__section"},Object(i.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var zt=function(e){var t=e.label,n=e.isChecked,o=e.onChange;return Object(i.createElement)(C.CheckboxControl,{className:"edit-post-options-modal__option",label:t,checked:n,onChange:o})},Qt=function(e){function t(e){var n,o=e.isChecked;return Object(p.a)(this,t),(n=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).toggleCustomFields=n.toggleCustomFields.bind(Object(h.a)(Object(h.a)(n))),n.state={isChecked:o},n}return Object(j.a)(t,e),Object(m.a)(t,[{key:"toggleCustomFields",value:function(){document.getElementById("toggle-custom-fields-form").submit(),this.setState({isChecked:!this.props.isChecked})}},{key:"render",value:function(){var e=this.props.label,t=this.state.isChecked;return Object(i.createElement)(zt,{label:e,isChecked:t,onChange:this.toggleCustomFields})}}]),t}(i.Component),Xt=Object(d.withSelect)(function(e){return{isChecked:!!e("core/editor").getEditorSettings().enableCustomFields}})(Qt),Yt=Object(T.compose)(Object(d.withSelect)(function(e,t){var n=t.panelName,o=e("core/edit-post"),r=o.isEditorPanelEnabled;return{isRemoved:(0,o.isEditorPanelRemoved)(n),isChecked:r(n)}}),Object(T.ifCondition)(function(e){return!e.isRemoved}),Object(d.withDispatch)(function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}}))(zt),Jt=Object(T.compose)(Object(d.withSelect)(function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}}),Object(d.withDispatch)(function(e){var t=e("core/editor"),n=t.enablePublishSidebar,o=t.disablePublishSidebar;return{onChange:function(e){return e?n():o()}}}),Object(s.ifViewportMatches)("medium"))(zt),$t=function(e){function t(e){var n,o=e.isChecked;return Object(p.a)(this,t),(n=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(j.a)(t,e),Object(m.a)(t,[{key:"componentWillUnmount",value:function(){this.state.isChecked!==this.props.isChecked&&this.props.onChange(this.state.isChecked)}},{key:"render",value:function(){var e=this;return Object(i.createElement)(zt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(i.Component),Zt=Object(T.compose)(Object(d.withSelect)(function(e){return{isChecked:e("core/nux").areTipsEnabled()}}),Object(d.withDispatch)(function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}}))($t);var en=Object(d.withSelect)(function(e){var t=e("core/editor").getEditorSettings,n=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}})(function(e){var t=e.areCustomFieldsRegistered,n=e.metaBoxes,o=Object(P.a)(e,["areCustomFieldsRegistered","metaBoxes"]),r=Object(g.filter)(n,function(e){return"postcustom"!==e.id});return t||0!==r.length?Object(i.createElement)(Kt,o,t&&Object(i.createElement)(Xt,{label:Object(E.__)("Custom Fields")}),Object(g.map)(r,function(e){var t=e.id,n=e.title;return Object(i.createElement)(Yt,{key:t,label:n,panelName:"meta-box-".concat(t)})})):null});var tn=Object(T.compose)(Object(d.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(g.get)(n,["viewable"],!1)}}),Object(d.withDispatch)(function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}}))(function(e){var t=e.isModalActive,n=e.isViewable,o=e.closeModal;return t?Object(i.createElement)(C.Modal,{className:"edit-post-options-modal",title:Object(E.__)("Options"),closeLabel:Object(E.__)("Close"),onRequestClose:o},Object(i.createElement)(Kt,{title:Object(E.__)("General")},Object(i.createElement)(Jt,{label:Object(E.__)("Enable Pre-publish Checks")}),Object(i.createElement)(Zt,{label:Object(E.__)("Enable Tips")})),Object(i.createElement)(Kt,{title:Object(E.__)("Document Panels")},n&&Object(i.createElement)(Yt,{label:Object(E.__)("Permalink"),panelName:"post-link"}),Object(i.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(i.createElement)(Yt,{label:Object(g.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(i.createElement)(a.PostFeaturedImageCheck,null,Object(i.createElement)(Yt,{label:Object(E.__)("Featured Image"),panelName:"featured-image"})),Object(i.createElement)(a.PostExcerptCheck,null,Object(i.createElement)(Yt,{label:Object(E.__)("Excerpt"),panelName:"post-excerpt"})),Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(i.createElement)(Yt,{label:Object(E.__)("Discussion"),panelName:"discussion-panel"})),Object(i.createElement)(a.PageAttributesCheck,null,Object(i.createElement)(Yt,{label:Object(E.__)("Page Attributes"),panelName:"page-attributes"}))),Object(i.createElement)(en,{title:Object(E.__)("Advanced Panels")})):null}),nn=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(h.a)(Object(h.a)(e))),e}return Object(j.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){this.form=document.querySelector(".metabox-location-"+this.props.location),this.form&&this.container.appendChild(this.form)}},{key:"componentWillUnmount",value:function(){this.form&&document.querySelector("#metaboxes").appendChild(this.form)}},{key:"bindContainerNode",value:function(e){this.container=e}},{key:"render",value:function(){var e=this.props,t=e.location,n=e.isSaving,o=Xe()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(i.createElement)("div",{className:o},n&&Object(i.createElement)(C.Spinner,null),Object(i.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(i.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(i.Component),on=Object(d.withSelect)(function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}})(nn),rn=function(e){function t(){return Object(p.a)(this,t),Object(O.a)(this,Object(f.a)(t).apply(this,arguments))}return Object(j.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){this.updateDOM()}},{key:"componentDidUpdate",value:function(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}},{key:"updateDOM",value:function(){var e=this.props,t=e.id,n=e.isVisible,o=document.getElementById(t);o&&(n?o.classList.remove("is-hidden"):o.classList.add("is-hidden"))}},{key:"render",value:function(){return null}}]),t}(i.Component),cn=Object(d.withSelect)(function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}})(rn);var an=Object(d.withSelect)(function(e,t){var n=t.location,o=e("core/edit-post"),r=o.isMetaBoxLocationVisible;return{metaBoxes:(0,o.getMetaBoxesPerLocation)(n),isVisible:r(n)}})(function(e){var t=e.location,n=e.isVisible,o=e.metaBoxes;return Object(i.createElement)(i.Fragment,null,Object(g.map)(o,function(e){var t=e.id;return Object(i.createElement)(cn,{key:t,id:t})}),n&&Object(i.createElement)(on,{location:t}))}),ln=Object(C.createSlotFill)("Sidebar"),sn=ln.Fill,un=ln.Slot;function dn(e){var t=e.children,n=e.label,o=e.className;return Object(i.createElement)("div",{className:Xe()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}dn=Object(C.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(dn);var bn=Object(T.compose)(Object(d.withSelect)(function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}}),Object(T.ifCondition)(function(e){return e.isActive}))(function(e){return Object(i.createElement)(sn,null,Object(i.createElement)(C.Animate,{type:"slide-in",options:{origin:"left"}},function(){return Object(i.createElement)(dn,e)}))});bn.Slot=un;var pn=bn,mn=Object(T.compose)(Object(d.withSelect)(function(e){return{title:e("core/editor").getEditedPostAttribute("title")}}),Object(d.withDispatch)(function(e){return{closeSidebar:e("core/edit-post").closeGeneralSidebar}}))(function(e){var t=e.children,n=e.className,o=e.closeLabel,r=e.closeSidebar,c=e.title;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(i.createElement)("span",{className:"edit-post-sidebar-header__title"},c||Object(E.__)("(no title)")),Object(i.createElement)(C.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(i.createElement)("div",{className:Xe()("components-panel__header edit-post-sidebar-header",n)},t,Object(i.createElement)(C.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:$e.toggleSidebar})))}),On=Object(d.withDispatch)(function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/block-editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}})(function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,r=Object(E.__)("Block"),c="edit-post/document"===o?[Object(E.__)("Document (selected)"),"is-active"]:[Object(E.__)("Document"),""],a=Object($.a)(c,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(E.__)("Block (selected)"),"is-active"]:[Object(E.__)("Block"),""],d=Object($.a)(u,2),b=d[0],p=d[1];return Object(i.createElement)(mn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(E.__)("Close settings")},Object(i.createElement)("ul",null,Object(i.createElement)("li",null,Object(i.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(E.__)("Document")},Object(E.__)("Document"))),Object(i.createElement)("li",null,Object(i.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))});var fn=function(){return Object(i.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(i.createElement)(C.PanelRow,{className:"edit-post-post-visibility"},Object(i.createElement)("span",null,Object(E.__)("Visibility")),!t&&Object(i.createElement)("span",null,Object(i.createElement)(a.PostVisibilityLabel,null)),t&&Object(i.createElement)(C.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(i.createElement)(C.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(i.createElement)(a.PostVisibilityLabel,null))},renderContent:function(){return Object(i.createElement)(a.PostVisibility,null)}}))}})};function jn(){return Object(i.createElement)(a.PostTrashCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostTrash,null)))}var hn=Object(T.withInstanceId)(function(e){var t=e.instanceId;return Object(i.createElement)(a.PostScheduleCheck,null,Object(i.createElement)(C.PanelRow,{className:"edit-post-post-schedule"},Object(i.createElement)("label",{htmlFor:"edit-post-post-schedule__toggle-".concat(t),id:"edit-post-post-schedule__heading-".concat(t)},Object(E.__)("Publish")),Object(i.createElement)(C.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var n=e.onToggle,o=e.isOpen;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("label",{className:"edit-post-post-schedule__label",htmlFor:"edit-post-post-schedule__toggle-".concat(t)},Object(i.createElement)(a.PostScheduleLabel,null)," ",Object(E.__)("Click to change")),Object(i.createElement)(C.Button,{id:"edit-post-post-schedule__toggle-".concat(t),type:"button",className:"edit-post-post-schedule__toggle",onClick:n,"aria-expanded":o,"aria-live":"polite",isLink:!0},Object(i.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(i.createElement)(a.PostSchedule,null)}})))});var gn=function(){return Object(i.createElement)(a.PostStickyCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostSticky,null)))};var En=function(){return Object(i.createElement)(a.PostAuthorCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostAuthor,null)))};var vn=function(){return Object(i.createElement)(a.PostFormatCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostFormat,null)))};var yn=function(){return Object(i.createElement)(a.PostPendingStatusCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostPendingStatus,null)))},_n=Object(C.createSlotFill)("PluginPostStatusInfo"),Sn=_n.Fill,kn=_n.Slot,Pn=function(e){var t=e.children,n=e.className;return Object(i.createElement)(Sn,null,Object(i.createElement)(C.PanelRow,{className:n},t))};Pn.Slot=kn;var wn=Pn;var Cn=Object(T.compose)([Object(d.withSelect)(function(e){return{isOpened:e("core/edit-post").isEditorPanelOpened("post-status")}}),Object(d.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-status")}}})])(function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(i.createElement)(C.PanelBody,{className:"edit-post-post-status",title:Object(E.__)("Status & Visibility"),opened:t,onToggle:n},Object(i.createElement)(wn.Slot,null,function(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(fn,null),Object(i.createElement)(hn,null),Object(i.createElement)(vn,null),Object(i.createElement)(gn,null),Object(i.createElement)(yn,null),Object(i.createElement)(En,null),e,Object(i.createElement)(jn,null))}))});var Tn=function(){return Object(i.createElement)(a.PostLastRevisionCheck,null,Object(i.createElement)(C.PanelBody,{className:"edit-post-last-revision__panel"},Object(i.createElement)(a.PostLastRevision,null)))};var xn=Object(T.compose)(Object(d.withSelect)(function(e,t){var n=Object(g.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isEnabled:!!n&&e("core/edit-post").isEditorPanelEnabled(o),isOpened:!!n&&e("core/edit-post").isEditorPanelOpened(o)}}),Object(d.withDispatch)(function(e,t){return{onTogglePanel:function(){e("core/edit-post").toggleEditorPanelOpened(t.panelName)}}}))(function(e){var t=e.isEnabled,n=e.taxonomy,o=e.isOpened,r=e.onTogglePanel,c=e.children;if(!t)return null;var a=Object(g.get)(n,["labels","menu_name"]);return a?Object(i.createElement)(C.PanelBody,{title:a,opened:o,onToggle:r},c):null});var Mn=function(){return Object(i.createElement)(a.PostTaxonomiesCheck,null,Object(i.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(i.createElement)(xn,{taxonomy:t},e)}}))};var Bn=Object(d.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,i=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:i("featured-image")}}),Nn=Object(d.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(g.partial)(t,"featured-image")}}),An=Object(T.compose)(Bn,Nn)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(i.createElement)(a.PostFeaturedImageCheck,null,Object(i.createElement)(C.PanelBody,{title:Object(g.get)(o,["labels","featured_image"],Object(E.__)("Featured Image")),opened:n,onToggle:r},Object(i.createElement)(a.PostFeaturedImage,null))):null});var In=Object(T.compose)([Object(d.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}}),Object(d.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-excerpt")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(i.createElement)(a.PostExcerptCheck,null,Object(i.createElement)(C.PanelBody,{title:Object(E.__)("Excerpt"),opened:n,onToggle:o},Object(i.createElement)(a.PostExcerpt,null))):null});var Ln=Object(T.compose)([Object(d.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,i=t.isCurrentPostPublished,c=t.getPermalinkParts,a=t.getEditedPostAttribute,l=e("core/edit-post"),s=l.isEditorPanelEnabled,u=l.isEditorPanelOpened,d=e("core").getPostType,b=r(),p=b.link,m=b.id,O=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:i(),isOpened:u("post-link"),permalinkParts:c(),isEnabled:s("post-link"),isViewable:Object(g.get)(O,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m}}),Object(T.ifCondition)(function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,i=e.permalinkParts;return t&&!n&&o&&r&&i}),Object(d.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened,n=e("core/editor").editPost;return{onTogglePanel:function(){return t("post-link")},editPermalink:function(e){n({slug:e})}}}),Object(T.withState)({forceEmptyField:!1})])(function(e){var t,n,o,r=e.isOpened,c=e.onTogglePanel,l=e.isEditable,s=e.postLink,u=e.permalinkParts,d=e.editPermalink,b=e.forceEmptyField,p=e.setState,m=e.postTitle,O=e.postSlug,f=e.postID,j=u.prefix,h=u.suffix,g=Object(N.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||f;return l&&(t=j&&Object(i.createElement)("span",{className:"edit-post-post-link__link-prefix"},j),n=g&&Object(i.createElement)("span",{className:"edit-post-post-link__link-post-name"},g),o=h&&Object(i.createElement)("span",{className:"edit-post-post-link__link-suffix"},h)),Object(i.createElement)(C.PanelBody,{title:Object(E.__)("Permalink"),opened:r,onToggle:c},l&&Object(i.createElement)("div",{className:"editor-post-link"},Object(i.createElement)(C.TextControl,{label:Object(E.__)("URL Slug"),value:b?"":g,onChange:function(e){d(e),e?b&&p({forceEmptyField:!1}):b||p({forceEmptyField:!0})},onBlur:function(e){d(Object(a.cleanForSlug)(e.target.value)),b&&p({forceEmptyField:!1})}}),Object(i.createElement)("p",null,Object(E.__)("The last part of the URL. "),Object(i.createElement)(C.ExternalLink,{href:"https://codex.wordpress.org/Posts_Add_New_Screen"},Object(E.__)("Read about permalinks")))),Object(i.createElement)("p",{className:"edit-post-post-link__preview-label"},Object(E.__)("Preview")),Object(i.createElement)(C.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(i.createElement)(i.Fragment,null,t,n,o):s))});var Dn=Object(T.compose)([Object(d.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}}),Object(d.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("discussion-panel")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(i.createElement)(C.PanelBody,{title:Object(E.__)("Discussion"),opened:n,onToggle:o},Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostComments,null))),Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostPingbacks,null))))):null});var Fn=Object(d.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,i=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:i(t("type"))}}),Rn=Object(d.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(g.partial)(t,"page-attributes")}}),Gn=Object(T.compose)(Fn,Rn)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(i.createElement)(a.PageAttributesCheck,null,Object(i.createElement)(C.PanelBody,{title:Object(g.get)(r,["labels","attributes"],Object(E.__)("Page Attributes")),opened:n,onToggle:o},Object(i.createElement)(a.PageTemplate,null),Object(i.createElement)(a.PageAttributesParent,null),Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PageAttributesOrder,null)))):null}),Un=Object(T.compose)(Object(d.withSelect)(function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}}),Object(T.ifCondition)(function(e){return e.isEditorSidebarOpened}))(function(e){var t=e.sidebarName;return Object(i.createElement)(pn,{name:t,label:Object(E.__)("Editor settings")},Object(i.createElement)(On,{sidebarName:t}),Object(i.createElement)(C.Panel,null,"edit-post/document"===t&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Cn,null),Object(i.createElement)(Tn,null),Object(i.createElement)(Ln,null),Object(i.createElement)(Mn,null),Object(i.createElement)(An,null),Object(i.createElement)(In,null),Object(i.createElement)(Dn,null),Object(i.createElement)(Gn,null),Object(i.createElement)(an,{location:"side"})),"edit-post/block"===t&&Object(i.createElement)(C.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(i.createElement)(c.BlockInspector,null))))}),Vn=Object(C.createSlotFill)("PluginPostPublishPanel"),Hn=Vn.Fill,Wn=Vn.Slot,qn=function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,c=void 0!==r&&r;return Object(i.createElement)(Hn,null,Object(i.createElement)(C.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};qn.Slot=Wn;var Kn=qn,zn=Object(C.createSlotFill)("PluginPrePublishPanel"),Qn=zn.Fill,Xn=zn.Slot,Yn=function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,c=void 0!==r&&r;return Object(i.createElement)(Qn,null,Object(i.createElement)(C.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};Yn.Slot=Xn;var Jn=Yn,$n=function(e){function t(){return Object(p.a)(this,t),Object(O.a)(this,Object(f.a)(t).apply(this,arguments))}return Object(j.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(i.Component),Zn=Object(d.withSelect)(function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}})($n);var eo=Object(T.compose)(Object(d.withSelect)(function(e){return{mode:e("core/edit-post").getEditorMode(),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(d.withDispatch)(function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}}),C.navigateRegions,Object(s.withViewportMatch)({isMobileViewport:"< small"}))(function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,l=e.hasFixedToolbar,s=e.closePublishSidebar,u=e.togglePublishSidebar,d=e.hasActiveMetaboxes,b=e.isSaving,p=e.isMobileViewport,m=e.isRichEditingEnabled,O=n||o||r,f=Xe()("edit-post-layout",{"is-sidebar-opened":O,"has-fixed-toolbar":l}),j={role:"region","aria-label":Object(E.__)("Editor publish"),tabIndex:-1};return Object(i.createElement)(C.FocusReturnProvider,{className:f},Object(i.createElement)(Zn,null),Object(i.createElement)(Je,null),Object(i.createElement)(a.UnsavedChangesWarning,null),Object(i.createElement)(a.AutosaveMonitor,null),Object(i.createElement)(ht,null),Object(i.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(E.__)("Editor content"),tabIndex:"-1"},Object(i.createElement)(a.EditorNotices,{dismissible:!1,className:"is-pinned"}),Object(i.createElement)(a.EditorNotices,{dismissible:!0}),Object(i.createElement)(c.PreserveScrollInReorder,null),Object(i.createElement)(wt,null),Object(i.createElement)(Ut,null),Object(i.createElement)(qt,null),Object(i.createElement)(tn,null),("text"===t||!m)&&Object(i.createElement)(gt,null),m&&"visual"===t&&Object(i.createElement)(kt,null),Object(i.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(i.createElement)(an,{location:"normal"})),Object(i.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(i.createElement)(an,{location:"advanced"}))),r?Object(i.createElement)(a.PostPublishPanel,Object(k.a)({},j,{onClose:s,forceIsDirty:d,forceIsSaving:b,PrePublishExtension:Jn.Slot,PostPublishExtension:Kn.Slot})):Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",Object(k.a)({className:"edit-post-toggle-publish-panel"},j),Object(i.createElement)(C.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:u,"aria-expanded":!1},Object(E.__)("Open publish panel"))),Object(i.createElement)(Un,null),Object(i.createElement)(pn.Slot,null),p&&O&&Object(i.createElement)(C.ScrollLock,null)),Object(i.createElement)(C.Popover.Slot,null),Object(i.createElement)(B.PluginArea,null))}),to=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).getEditorSettings=Ke()(e.getEditorSettings,{maxSize:1}),e}return Object(j.a)(t,e),Object(m.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r){if(e=Object(q.a)({},e,{hasFixedToolbar:t,focusMode:n}),Object(g.size)(o)>0){var i=!0===e.allowedBlockTypes?Object(g.map)(r,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=g.without.apply(void 0,[i].concat(Object(H.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,c=e.initialEdits,l=e.onError,s=e.hiddenBlockTypes,u=e.blockTypes,d=Object(P.a)(e,["settings","hasFixedToolbar","focusMode","post","initialEdits","onError","hiddenBlockTypes","blockTypes"]);if(!r)return null;var b=this.getEditorSettings(t,n,o,s,u);return Object(i.createElement)(i.StrictMode,null,Object(i.createElement)(a.EditorProvider,Object(k.a)({settings:b,post:r,initialEdits:c},d),Object(i.createElement)(a.ErrorBoundary,{onError:l},Object(i.createElement)(eo,null),Object(i.createElement)(C.KeyboardShortcuts,{shortcuts:ze})),Object(i.createElement)(a.PostLockedModal,null)))}}]),t}(i.Component),no=Object(d.withSelect)(function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),i=r.isFeatureActive,c=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{hasFixedToolbar:i("fixedToolbar"),focusMode:i("focusMode"),post:a("postType",o,n),hiddenBlockTypes:c("hiddenBlockTypes"),blockTypes:l()}})(to),oo=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(g.difference)(n,o).length);var n,o},ro=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,c=e.small,a=e.role;return Object(i.createElement)(St,null,function(e){var l=e.selectedBlocks,s=e.onClose;return oo(l,t)?Object(i.createElement)(C.IconButton,{className:"editor-block-settings-menu__control",onClick:Object(T.compose)(r,s),icon:n||"admin-plugins",label:c?o:void 0,role:a},!c&&o):null})},io=Object(T.compose)(Object(B.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.onClick,n=void 0===t?g.noop:t,o=Object(P.a)(e,["onClick"]);return Object(i.createElement)(rt,null,function(e){return Object(i.createElement)(C.MenuItem,Object(k.a)({},o,{onClick:Object(T.compose)(n,e.onClose)}))})});var co=Object(T.compose)(Object(B.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}}),Object(d.withSelect)(function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,i=o.isPluginItemPinned;return{isActive:r()===n,isPinned:i(n)}}),Object(d.withDispatch)(function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),i=r.closeGeneralSidebar,c=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?i():c(o)}}}))(function(e){var t=e.children,n=e.className,o=e.icon,r=e.isActive,c=e.isPinnable,a=void 0===c||c,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(i.createElement)(i.Fragment,null,a&&Object(i.createElement)(ft,null,l&&Object(i.createElement)(C.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(i.createElement)(pn,{name:s,label:Object(E.__)("Editor plugins")},Object(i.createElement)(mn,{closeLabel:Object(E.__)("Close plugin")},Object(i.createElement)("strong",null,u),a&&Object(i.createElement)(C.IconButton,{icon:l?"star-filled":"star-empty",label:l?Object(E.__)("Unpin from toolbar"):Object(E.__)("Pin to toolbar"),onClick:d,isToggled:l,"aria-expanded":l})),Object(i.createElement)(C.Panel,{className:n},t)))}),ao=Object(T.compose)(Object(B.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}}),Object(d.withSelect)(function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}}),Object(d.withDispatch)(function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),i=r.closeGeneralSidebar,c=r.openGeneralSidebar;return{onClick:n?i:function(){return c(o)}}}))(function(e){var t=e.children,n=e.icon,o=e.isSelected,r=e.onClick;return Object(i.createElement)(io,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)});function lo(e,t,n,o,r){Object(i.unmountComponentAtNode)(n);var c=lo.bind(null,e,t,n,o,r);Object(i.render)(Object(i.createElement)(no,{settings:o,onError:c,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function so(e,t,n,o,r){var c=document.getElementById(e),a=lo.bind(null,t,n,c,o,r);Object(u.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),Object(d.dispatch)("core/nux").triggerGuide(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"]),Object(i.render)(Object(i.createElement)(no,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),c)}n.d(t,"reinitializeEditor",function(){return lo}),n.d(t,"initializeEditor",function(){return so}),n.d(t,"PluginBlockSettingsMenuItem",function(){return ro}),n.d(t,"PluginMoreMenuItem",function(){return io}),n.d(t,"PluginPostPublishPanel",function(){return Kn}),n.d(t,"PluginPostStatusInfo",function(){return wn}),n.d(t,"PluginPrePublishPanel",function(){return Jn}),n.d(t,"PluginSidebar",function(){return co}),n.d(t,"PluginSidebarMoreMenuItem",function(){return ao})},37:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},38:function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return o})},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t){!function(){e.exports=this.wp.viewport}()},41:function(e,t,n){e.exports=function(e,t){var n,o,r,i=0;function c(){var t,c,a=o,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c= 0) continue; - target[key] = source[key]; - } - - return target; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; -} - -/***/ }), -/* 22 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["url"]; }()); - -/***/ }), -/* 23 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["hooks"]; }()); - -/***/ }), -/* 24 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["dom"]; }()); - -/***/ }), -/* 25 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js -var arrayWithHoles = __webpack_require__(34); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js -var nonIterableRest = __webpack_require__(35); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); - - - -function _slicedToArray(arr, i) { - return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); -} - -/***/ }), -/* 26 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["React"]; }()); - -/***/ }), -/* 27 */, -/* 28 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - - -var LEAF_KEY, hasWeakMap; - -/** - * Arbitrary value used as key for referencing cache object in WeakMap tree. - * - * @type {Object} - */ -LEAF_KEY = {}; - -/** - * Whether environment supports WeakMap. - * - * @type {boolean} - */ -hasWeakMap = typeof WeakMap !== 'undefined'; - -/** - * Returns the first argument as the sole entry in an array. - * - * @param {*} value Value to return. - * - * @return {Array} Value returned as entry in array. - */ -function arrayOf( value ) { - return [ value ]; -} - -/** - * Returns true if the value passed is object-like, or false otherwise. A value - * is object-like if it can support property assignment, e.g. object or array. - * - * @param {*} value Value to test. - * - * @return {boolean} Whether value is object-like. - */ -function isObjectLike( value ) { - return !! value && 'object' === typeof value; -} - -/** - * Creates and returns a new cache object. - * - * @return {Object} Cache object. - */ -function createCache() { - var cache = { - clear: function() { - cache.head = null; - }, - }; - - return cache; -} - -/** - * Returns true if entries within the two arrays are strictly equal by - * reference from a starting index. - * - * @param {Array} a First array. - * @param {Array} b Second array. - * @param {number} fromIndex Index from which to start comparison. - * - * @return {boolean} Whether arrays are shallowly equal. - */ -function isShallowEqual( a, b, fromIndex ) { - var i; - - if ( a.length !== b.length ) { - return false; - } - - for ( i = fromIndex; i < a.length; i++ ) { - if ( a[ i ] !== b[ i ] ) { - return false; - } - } - - return true; -} - -/** - * Returns a memoized selector function. The getDependants function argument is - * called before the memoized selector and is expected to return an immutable - * reference or array of references on which the selector depends for computing - * its own return value. The memoize cache is preserved only as long as those - * dependant references remain the same. If getDependants returns a different - * reference(s), the cache is cleared and the selector value regenerated. - * - * @param {Function} selector Selector function. - * @param {Function} getDependants Dependant getter returning an immutable - * reference or array of reference used in - * cache bust consideration. - * - * @return {Function} Memoized selector. - */ -/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { - var rootCache, getCache; - - // Use object source as dependant if getter not provided - if ( ! getDependants ) { - getDependants = arrayOf; - } - - /** - * Returns the root cache. If WeakMap is supported, this is assigned to the - * root WeakMap cache set, otherwise it is a shared instance of the default - * cache object. - * - * @return {(WeakMap|Object)} Root cache object. - */ - function getRootCache() { - return rootCache; - } - - /** - * Returns the cache for a given dependants array. When possible, a WeakMap - * will be used to create a unique cache for each set of dependants. This - * is feasible due to the nature of WeakMap in allowing garbage collection - * to occur on entries where the key object is no longer referenced. Since - * WeakMap requires the key to be an object, this is only possible when the - * dependant is object-like. The root cache is created as a hierarchy where - * each top-level key is the first entry in a dependants set, the value a - * WeakMap where each key is the next dependant, and so on. This continues - * so long as the dependants are object-like. If no dependants are object- - * like, then the cache is shared across all invocations. - * - * @see isObjectLike - * - * @param {Array} dependants Selector dependants. - * - * @return {Object} Cache object. - */ - function getWeakMapCache( dependants ) { - var caches = rootCache, - isUniqueByDependants = true, - i, dependant, map, cache; - - for ( i = 0; i < dependants.length; i++ ) { - dependant = dependants[ i ]; - - // Can only compose WeakMap from object-like key. - if ( ! isObjectLike( dependant ) ) { - isUniqueByDependants = false; - break; - } - - // Does current segment of cache already have a WeakMap? - if ( caches.has( dependant ) ) { - // Traverse into nested WeakMap. - caches = caches.get( dependant ); - } else { - // Create, set, and traverse into a new one. - map = new WeakMap(); - caches.set( dependant, map ); - caches = map; - } - } - - // We use an arbitrary (but consistent) object as key for the last item - // in the WeakMap to serve as our running cache. - if ( ! caches.has( LEAF_KEY ) ) { - cache = createCache(); - cache.isUniqueByDependants = isUniqueByDependants; - caches.set( LEAF_KEY, cache ); - } - - return caches.get( LEAF_KEY ); - } - - // Assign cache handler by availability of WeakMap - getCache = hasWeakMap ? getWeakMapCache : getRootCache; - - /** - * Resets root memoization cache. - */ - function clear() { - rootCache = hasWeakMap ? new WeakMap() : createCache(); - } - - // eslint-disable-next-line jsdoc/check-param-names - /** - * The augmented selector call, considering first whether dependants have - * changed before passing it to underlying memoize function. - * - * @param {Object} source Source object for derivation. - * @param {...*} extraArgs Additional arguments to pass to selector. - * - * @return {*} Selector result. - */ - function callSelector( /* source, ...extraArgs */ ) { - var len = arguments.length, - cache, node, i, args, dependants; - - // Create copy of arguments (avoid leaking deoptimization). - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - dependants = getDependants.apply( null, args ); - cache = getCache( dependants ); - - // If not guaranteed uniqueness by dependants (primitive type or lack - // of WeakMap support), shallow compare against last dependants and, if - // references have changed, destroy cache to recalculate result. - if ( ! cache.isUniqueByDependants ) { - if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { - cache.clear(); - } - - cache.lastDependants = dependants; - } - - node = cache.head; - while ( node ) { - // Check whether node arguments match arguments - if ( ! isShallowEqual( node.args, args, 1 ) ) { - node = node.next; - continue; - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== cache.head ) { - // Adjust siblings to point to each other. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = cache.head; - node.prev = null; - cache.head.prev = node; - cache.head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - node = { - // Generate the result from original function - val: selector.apply( null, args ), - }; - - // Avoid including the source object in the cache. - args[ 0 ] = null; - node.args = args; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( cache.head ) { - cache.head.prev = node; - node.next = cache.head; - } - - cache.head = node; - - return node.val; - } - - callSelector.getDependants = getDependants; - callSelector.clear = clear; - clear(); - - return callSelector; -}); - - -/***/ }), -/* 29 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); -function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); } - -function _typeof(obj) { - if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { - _typeof = function _typeof(obj) { - return _typeof2(obj); - }; - } else { - _typeof = function _typeof(obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj); - }; - } - - return _typeof(obj); -} - -/***/ }), -/* 30 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(110)(); -} - - -/***/ }), -/* 31 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - -/***/ }), -/* 32 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blob"]; }()); - -/***/ }), -/* 33 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} - -/***/ }), -/* 34 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -/***/ }), -/* 35 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} - -/***/ }), -/* 36 */, -/* 37 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["viewport"]; }()); - -/***/ }), -/* 38 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = function memize( fn, options ) { - var size = 0, - maxSize, head, tail; - - if ( options && options.maxSize ) { - maxSize = options.maxSize; - } - - function memoized( /* ...args */ ) { - var node = head, - len = arguments.length, - args, i; - - searchCache: while ( node ) { - // Perform a shallow equality test to confirm that whether the node - // under test is a candidate for the arguments passed. Two arrays - // are shallowly equal if their length matches and each entry is - // strictly equal between the two sets. Avoid abstracting to a - // function which could incur an arguments leaking deoptimization. - - // Check whether node arguments match arguments length - if ( node.args.length !== arguments.length ) { - node = node.next; - continue; - } - - // Check whether node arguments match arguments values - for ( i = 0; i < len; i++ ) { - if ( node.args[ i ] !== arguments[ i ] ) { - node = node.next; - continue searchCache; - } - } - - // At this point we can assume we've found a match - - // Surface matched node to head if not already - if ( node !== head ) { - // As tail, shift to previous. Must only shift if not also - // head, since if both head and tail, there is no previous. - if ( node === tail ) { - tail = node.prev; - } - - // Adjust siblings to point to each other. If node was tail, - // this also handles new tail's empty `next` assignment. - node.prev.next = node.next; - if ( node.next ) { - node.next.prev = node.prev; - } - - node.next = head; - node.prev = null; - head.prev = node; - head = node; - } - - // Return immediately - return node.val; - } - - // No cached value found. Continue to insertion phase: - - // Create a copy of arguments (avoid leaking deoptimization) - args = new Array( len ); - for ( i = 0; i < len; i++ ) { - args[ i ] = arguments[ i ]; - } - - node = { - args: args, - - // Generate the result from original function - val: fn.apply( null, args ) - }; - - // Don't need to check whether node is already head, since it would - // have been returned above already if it was - - // Shift existing head down list - if ( head ) { - head.prev = node; - node.next = head; - } else { - // If no head, follows that there's no tail (at initial or reset) - tail = node; - } - - // Trim tail if we're reached max size and are pending cache insertion - if ( size === maxSize ) { - tail = tail.prev; - tail.next = null; - } else { - size++; - } - - head = node; - - return node.val; - } - - memoized.clear = function() { - head = null; - tail = null; - size = 0; - }; - - if ( false ) {} - - return memoized; -}; - - -/***/ }), -/* 39 */, -/* 40 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["isShallowEqual"]; }()); - -/***/ }), -/* 41 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} - -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; -} - -/***/ }), -/* 42 */, -/* 43 */, -/* 44 */, -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1 -// https://github.com/bgrins/TinyColor -// Brian Grinstead, MIT License - -(function(Math) { - -var trimLeft = /^\s+/, - trimRight = /\s+$/, - tinyCounter = 0, - mathRound = Math.round, - mathMin = Math.min, - mathMax = Math.max, - mathRandom = Math.random; - -function tinycolor (color, opts) { - - color = (color) ? color : ''; - opts = opts || { }; - - // If input is already a tinycolor, return itself - if (color instanceof tinycolor) { - return color; - } - // If we are called as a function, call using new instead - if (!(this instanceof tinycolor)) { - return new tinycolor(color, opts); - } - - var rgb = inputToRGB(color); - this._originalInput = color, - this._r = rgb.r, - this._g = rgb.g, - this._b = rgb.b, - this._a = rgb.a, - this._roundA = mathRound(100*this._a) / 100, - this._format = opts.format || rgb.format; - this._gradientType = opts.gradientType; - - // Don't let the range of [0,255] come back in [0,1]. - // Potentially lose a little bit of precision here, but will fix issues where - // .5 gets interpreted as half of the total, instead of half of 1 - // If it was supposed to be 128, this was already taken care of by `inputToRgb` - if (this._r < 1) { this._r = mathRound(this._r); } - if (this._g < 1) { this._g = mathRound(this._g); } - if (this._b < 1) { this._b = mathRound(this._b); } - - this._ok = rgb.ok; - this._tc_id = tinyCounter++; -} - -tinycolor.prototype = { - isDark: function() { - return this.getBrightness() < 128; - }, - isLight: function() { - return !this.isDark(); - }, - isValid: function() { - return this._ok; - }, - getOriginalInput: function() { - return this._originalInput; - }, - getFormat: function() { - return this._format; - }, - getAlpha: function() { - return this._a; - }, - getBrightness: function() { - //http://www.w3.org/TR/AERT#color-contrast - var rgb = this.toRgb(); - return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000; - }, - getLuminance: function() { - //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef - var rgb = this.toRgb(); - var RsRGB, GsRGB, BsRGB, R, G, B; - RsRGB = rgb.r/255; - GsRGB = rgb.g/255; - BsRGB = rgb.b/255; - - if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);} - if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);} - if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);} - return (0.2126 * R) + (0.7152 * G) + (0.0722 * B); - }, - setAlpha: function(value) { - this._a = boundAlpha(value); - this._roundA = mathRound(100*this._a) / 100; - return this; - }, - toHsv: function() { - var hsv = rgbToHsv(this._r, this._g, this._b); - return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a }; - }, - toHsvString: function() { - var hsv = rgbToHsv(this._r, this._g, this._b); - var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100); - return (this._a == 1) ? - "hsv(" + h + ", " + s + "%, " + v + "%)" : - "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")"; - }, - toHsl: function() { - var hsl = rgbToHsl(this._r, this._g, this._b); - return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a }; - }, - toHslString: function() { - var hsl = rgbToHsl(this._r, this._g, this._b); - var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100); - return (this._a == 1) ? - "hsl(" + h + ", " + s + "%, " + l + "%)" : - "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")"; - }, - toHex: function(allow3Char) { - return rgbToHex(this._r, this._g, this._b, allow3Char); - }, - toHexString: function(allow3Char) { - return '#' + this.toHex(allow3Char); - }, - toHex8: function(allow4Char) { - return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char); - }, - toHex8String: function(allow4Char) { - return '#' + this.toHex8(allow4Char); - }, - toRgb: function() { - return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a }; - }, - toRgbString: function() { - return (this._a == 1) ? - "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : - "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")"; - }, - toPercentageRgb: function() { - return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a }; - }, - toPercentageRgbString: function() { - return (this._a == 1) ? - "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" : - "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")"; - }, - toName: function() { - if (this._a === 0) { - return "transparent"; - } - - if (this._a < 1) { - return false; - } - - return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false; - }, - toFilter: function(secondColor) { - var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a); - var secondHex8String = hex8String; - var gradientType = this._gradientType ? "GradientType = 1, " : ""; - - if (secondColor) { - var s = tinycolor(secondColor); - secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a); - } - - return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"; - }, - toString: function(format) { - var formatSet = !!format; - format = format || this._format; - - var formattedString = false; - var hasAlpha = this._a < 1 && this._a >= 0; - var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name"); - - if (needsAlphaFormat) { - // Special case for "transparent", all other non-alpha formats - // will return rgba when there is transparency. - if (format === "name" && this._a === 0) { - return this.toName(); - } - return this.toRgbString(); - } - if (format === "rgb") { - formattedString = this.toRgbString(); - } - if (format === "prgb") { - formattedString = this.toPercentageRgbString(); - } - if (format === "hex" || format === "hex6") { - formattedString = this.toHexString(); - } - if (format === "hex3") { - formattedString = this.toHexString(true); - } - if (format === "hex4") { - formattedString = this.toHex8String(true); - } - if (format === "hex8") { - formattedString = this.toHex8String(); - } - if (format === "name") { - formattedString = this.toName(); - } - if (format === "hsl") { - formattedString = this.toHslString(); - } - if (format === "hsv") { - formattedString = this.toHsvString(); - } - - return formattedString || this.toHexString(); - }, - clone: function() { - return tinycolor(this.toString()); - }, - - _applyModification: function(fn, args) { - var color = fn.apply(null, [this].concat([].slice.call(args))); - this._r = color._r; - this._g = color._g; - this._b = color._b; - this.setAlpha(color._a); - return this; - }, - lighten: function() { - return this._applyModification(lighten, arguments); - }, - brighten: function() { - return this._applyModification(brighten, arguments); - }, - darken: function() { - return this._applyModification(darken, arguments); - }, - desaturate: function() { - return this._applyModification(desaturate, arguments); - }, - saturate: function() { - return this._applyModification(saturate, arguments); - }, - greyscale: function() { - return this._applyModification(greyscale, arguments); - }, - spin: function() { - return this._applyModification(spin, arguments); - }, - - _applyCombination: function(fn, args) { - return fn.apply(null, [this].concat([].slice.call(args))); - }, - analogous: function() { - return this._applyCombination(analogous, arguments); - }, - complement: function() { - return this._applyCombination(complement, arguments); - }, - monochromatic: function() { - return this._applyCombination(monochromatic, arguments); - }, - splitcomplement: function() { - return this._applyCombination(splitcomplement, arguments); - }, - triad: function() { - return this._applyCombination(triad, arguments); - }, - tetrad: function() { - return this._applyCombination(tetrad, arguments); - } -}; - -// If input is an object, force 1 into "1.0" to handle ratios properly -// String input requires "1.0" as input, so 1 will be treated as 1 -tinycolor.fromRatio = function(color, opts) { - if (typeof color == "object") { - var newColor = {}; - for (var i in color) { - if (color.hasOwnProperty(i)) { - if (i === "a") { - newColor[i] = color[i]; - } - else { - newColor[i] = convertToPercentage(color[i]); - } - } - } - color = newColor; - } - - return tinycolor(color, opts); -}; - -// Given a string or object, convert that input to RGB -// Possible string inputs: -// -// "red" -// "#f00" or "f00" -// "#ff0000" or "ff0000" -// "#ff000000" or "ff000000" -// "rgb 255 0 0" or "rgb (255, 0, 0)" -// "rgb 1.0 0 0" or "rgb (1, 0, 0)" -// "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1" -// "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1" -// "hsl(0, 100%, 50%)" or "hsl 0 100% 50%" -// "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1" -// "hsv(0, 100%, 100%)" or "hsv 0 100% 100%" -// -function inputToRGB(color) { - - var rgb = { r: 0, g: 0, b: 0 }; - var a = 1; - var s = null; - var v = null; - var l = null; - var ok = false; - var format = false; - - if (typeof color == "string") { - color = stringInputToObject(color); - } - - if (typeof color == "object") { - if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) { - rgb = rgbToRgb(color.r, color.g, color.b); - ok = true; - format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; - } - else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) { - s = convertToPercentage(color.s); - v = convertToPercentage(color.v); - rgb = hsvToRgb(color.h, s, v); - ok = true; - format = "hsv"; - } - else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) { - s = convertToPercentage(color.s); - l = convertToPercentage(color.l); - rgb = hslToRgb(color.h, s, l); - ok = true; - format = "hsl"; - } - - if (color.hasOwnProperty("a")) { - a = color.a; - } - } - - a = boundAlpha(a); - - return { - ok: ok, - format: color.format || format, - r: mathMin(255, mathMax(rgb.r, 0)), - g: mathMin(255, mathMax(rgb.g, 0)), - b: mathMin(255, mathMax(rgb.b, 0)), - a: a - }; -} - - -// Conversion Functions -// -------------------- - -// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from: -// - -// `rgbToRgb` -// Handle bounds / percentage checking to conform to CSS color spec -// -// *Assumes:* r, g, b in [0, 255] or [0, 1] -// *Returns:* { r, g, b } in [0, 255] -function rgbToRgb(r, g, b){ - return { - r: bound01(r, 255) * 255, - g: bound01(g, 255) * 255, - b: bound01(b, 255) * 255 - }; -} - -// `rgbToHsl` -// Converts an RGB color value to HSL. -// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1] -// *Returns:* { h, s, l } in [0,1] -function rgbToHsl(r, g, b) { - - r = bound01(r, 255); - g = bound01(g, 255); - b = bound01(b, 255); - - var max = mathMax(r, g, b), min = mathMin(r, g, b); - var h, s, l = (max + min) / 2; - - if(max == min) { - h = s = 0; // achromatic - } - else { - var d = max - min; - s = l > 0.5 ? d / (2 - max - min) : d / (max + min); - switch(max) { - case r: h = (g - b) / d + (g < b ? 6 : 0); break; - case g: h = (b - r) / d + 2; break; - case b: h = (r - g) / d + 4; break; - } - - h /= 6; - } - - return { h: h, s: s, l: l }; -} - -// `hslToRgb` -// Converts an HSL color value to RGB. -// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] -// *Returns:* { r, g, b } in the set [0, 255] -function hslToRgb(h, s, l) { - var r, g, b; - - h = bound01(h, 360); - s = bound01(s, 100); - l = bound01(l, 100); - - function hue2rgb(p, q, t) { - if(t < 0) t += 1; - if(t > 1) t -= 1; - if(t < 1/6) return p + (q - p) * 6 * t; - if(t < 1/2) return q; - if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; - return p; - } - - if(s === 0) { - r = g = b = l; // achromatic - } - else { - var q = l < 0.5 ? l * (1 + s) : l + s - l * s; - var p = 2 * l - q; - r = hue2rgb(p, q, h + 1/3); - g = hue2rgb(p, q, h); - b = hue2rgb(p, q, h - 1/3); - } - - return { r: r * 255, g: g * 255, b: b * 255 }; -} - -// `rgbToHsv` -// Converts an RGB color value to HSV -// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] -// *Returns:* { h, s, v } in [0,1] -function rgbToHsv(r, g, b) { - - r = bound01(r, 255); - g = bound01(g, 255); - b = bound01(b, 255); - - var max = mathMax(r, g, b), min = mathMin(r, g, b); - var h, s, v = max; - - var d = max - min; - s = max === 0 ? 0 : d / max; - - if(max == min) { - h = 0; // achromatic - } - else { - switch(max) { - case r: h = (g - b) / d + (g < b ? 6 : 0); break; - case g: h = (b - r) / d + 2; break; - case b: h = (r - g) / d + 4; break; - } - h /= 6; - } - return { h: h, s: s, v: v }; -} - -// `hsvToRgb` -// Converts an HSV color value to RGB. -// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] -// *Returns:* { r, g, b } in the set [0, 255] - function hsvToRgb(h, s, v) { - - h = bound01(h, 360) * 6; - s = bound01(s, 100); - v = bound01(v, 100); - - var i = Math.floor(h), - f = h - i, - p = v * (1 - s), - q = v * (1 - f * s), - t = v * (1 - (1 - f) * s), - mod = i % 6, - r = [v, q, p, p, t, v][mod], - g = [t, v, v, q, p, p][mod], - b = [p, p, t, v, v, q][mod]; - - return { r: r * 255, g: g * 255, b: b * 255 }; -} - -// `rgbToHex` -// Converts an RGB color to hex -// Assumes r, g, and b are contained in the set [0, 255] -// Returns a 3 or 6 character hex -function rgbToHex(r, g, b, allow3Char) { - - var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ]; - - // Return a 3 character hex if possible - if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) { - return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0); - } - - return hex.join(""); -} - -// `rgbaToHex` -// Converts an RGBA color plus alpha transparency to hex -// Assumes r, g, b are contained in the set [0, 255] and -// a in [0, 1]. Returns a 4 or 8 character rgba hex -function rgbaToHex(r, g, b, a, allow4Char) { - - var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)), - pad2(convertDecimalToHex(a)) - ]; - - // Return a 4 character hex if possible - if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) { - return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); - } - - return hex.join(""); -} - -// `rgbaToArgbHex` -// Converts an RGBA color to an ARGB Hex8 string -// Rarely used, but required for "toFilter()" -function rgbaToArgbHex(r, g, b, a) { - - var hex = [ - pad2(convertDecimalToHex(a)), - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ]; - - return hex.join(""); -} - -// `equals` -// Can be called with any tinycolor input -tinycolor.equals = function (color1, color2) { - if (!color1 || !color2) { return false; } - return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString(); -}; - -tinycolor.random = function() { - return tinycolor.fromRatio({ - r: mathRandom(), - g: mathRandom(), - b: mathRandom() - }); -}; - - -// Modification Functions -// ---------------------- -// Thanks to less.js for some of the basics here -// - -function desaturate(color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.s -= amount / 100; - hsl.s = clamp01(hsl.s); - return tinycolor(hsl); -} - -function saturate(color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.s += amount / 100; - hsl.s = clamp01(hsl.s); - return tinycolor(hsl); -} - -function greyscale(color) { - return tinycolor(color).desaturate(100); -} - -function lighten (color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.l += amount / 100; - hsl.l = clamp01(hsl.l); - return tinycolor(hsl); -} - -function brighten(color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var rgb = tinycolor(color).toRgb(); - rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100)))); - rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100)))); - rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100)))); - return tinycolor(rgb); -} - -function darken (color, amount) { - amount = (amount === 0) ? 0 : (amount || 10); - var hsl = tinycolor(color).toHsl(); - hsl.l -= amount / 100; - hsl.l = clamp01(hsl.l); - return tinycolor(hsl); -} - -// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue. -// Values outside of this range will be wrapped into this range. -function spin(color, amount) { - var hsl = tinycolor(color).toHsl(); - var hue = (hsl.h + amount) % 360; - hsl.h = hue < 0 ? 360 + hue : hue; - return tinycolor(hsl); -} - -// Combination Functions -// --------------------- -// Thanks to jQuery xColor for some of the ideas behind these -// - -function complement(color) { - var hsl = tinycolor(color).toHsl(); - hsl.h = (hsl.h + 180) % 360; - return tinycolor(hsl); -} - -function triad(color) { - var hsl = tinycolor(color).toHsl(); - var h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) - ]; -} - -function tetrad(color) { - var hsl = tinycolor(color).toHsl(); - var h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) - ]; -} - -function splitcomplement(color) { - var hsl = tinycolor(color).toHsl(); - var h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}), - tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l}) - ]; -} - -function analogous(color, results, slices) { - results = results || 6; - slices = slices || 30; - - var hsl = tinycolor(color).toHsl(); - var part = 360 / slices; - var ret = [tinycolor(color)]; - - for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) { - hsl.h = (hsl.h + part) % 360; - ret.push(tinycolor(hsl)); - } - return ret; -} - -function monochromatic(color, results) { - results = results || 6; - var hsv = tinycolor(color).toHsv(); - var h = hsv.h, s = hsv.s, v = hsv.v; - var ret = []; - var modification = 1 / results; - - while (results--) { - ret.push(tinycolor({ h: h, s: s, v: v})); - v = (v + modification) % 1; - } - - return ret; -} - -// Utility Functions -// --------------------- - -tinycolor.mix = function(color1, color2, amount) { - amount = (amount === 0) ? 0 : (amount || 50); - - var rgb1 = tinycolor(color1).toRgb(); - var rgb2 = tinycolor(color2).toRgb(); - - var p = amount / 100; - - var rgba = { - r: ((rgb2.r - rgb1.r) * p) + rgb1.r, - g: ((rgb2.g - rgb1.g) * p) + rgb1.g, - b: ((rgb2.b - rgb1.b) * p) + rgb1.b, - a: ((rgb2.a - rgb1.a) * p) + rgb1.a - }; - - return tinycolor(rgba); -}; - - -// Readability Functions -// --------------------- -// false -// tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false -tinycolor.isReadable = function(color1, color2, wcag2) { - var readability = tinycolor.readability(color1, color2); - var wcag2Parms, out; - - out = false; - - wcag2Parms = validateWCAG2Parms(wcag2); - switch (wcag2Parms.level + wcag2Parms.size) { - case "AAsmall": - case "AAAlarge": - out = readability >= 4.5; - break; - case "AAlarge": - out = readability >= 3; - break; - case "AAAsmall": - out = readability >= 7; - break; - } - return out; - -}; - -// `mostReadable` -// Given a base color and a list of possible foreground or background -// colors for that base, returns the most readable color. -// Optionally returns Black or White if the most readable color is unreadable. -// *Example* -// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255" -// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff" -// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3" -// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff" -tinycolor.mostReadable = function(baseColor, colorList, args) { - var bestColor = null; - var bestScore = 0; - var readability; - var includeFallbackColors, level, size ; - args = args || {}; - includeFallbackColors = args.includeFallbackColors ; - level = args.level; - size = args.size; - - for (var i= 0; i < colorList.length ; i++) { - readability = tinycolor.readability(baseColor, colorList[i]); - if (readability > bestScore) { - bestScore = readability; - bestColor = tinycolor(colorList[i]); - } - } - - if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) { - return bestColor; - } - else { - args.includeFallbackColors=false; - return tinycolor.mostReadable(baseColor,["#fff", "#000"],args); - } -}; - - -// Big List of Colors -// ------------------ -// -var names = tinycolor.names = { - aliceblue: "f0f8ff", - antiquewhite: "faebd7", - aqua: "0ff", - aquamarine: "7fffd4", - azure: "f0ffff", - beige: "f5f5dc", - bisque: "ffe4c4", - black: "000", - blanchedalmond: "ffebcd", - blue: "00f", - blueviolet: "8a2be2", - brown: "a52a2a", - burlywood: "deb887", - burntsienna: "ea7e5d", - cadetblue: "5f9ea0", - chartreuse: "7fff00", - chocolate: "d2691e", - coral: "ff7f50", - cornflowerblue: "6495ed", - cornsilk: "fff8dc", - crimson: "dc143c", - cyan: "0ff", - darkblue: "00008b", - darkcyan: "008b8b", - darkgoldenrod: "b8860b", - darkgray: "a9a9a9", - darkgreen: "006400", - darkgrey: "a9a9a9", - darkkhaki: "bdb76b", - darkmagenta: "8b008b", - darkolivegreen: "556b2f", - darkorange: "ff8c00", - darkorchid: "9932cc", - darkred: "8b0000", - darksalmon: "e9967a", - darkseagreen: "8fbc8f", - darkslateblue: "483d8b", - darkslategray: "2f4f4f", - darkslategrey: "2f4f4f", - darkturquoise: "00ced1", - darkviolet: "9400d3", - deeppink: "ff1493", - deepskyblue: "00bfff", - dimgray: "696969", - dimgrey: "696969", - dodgerblue: "1e90ff", - firebrick: "b22222", - floralwhite: "fffaf0", - forestgreen: "228b22", - fuchsia: "f0f", - gainsboro: "dcdcdc", - ghostwhite: "f8f8ff", - gold: "ffd700", - goldenrod: "daa520", - gray: "808080", - green: "008000", - greenyellow: "adff2f", - grey: "808080", - honeydew: "f0fff0", - hotpink: "ff69b4", - indianred: "cd5c5c", - indigo: "4b0082", - ivory: "fffff0", - khaki: "f0e68c", - lavender: "e6e6fa", - lavenderblush: "fff0f5", - lawngreen: "7cfc00", - lemonchiffon: "fffacd", - lightblue: "add8e6", - lightcoral: "f08080", - lightcyan: "e0ffff", - lightgoldenrodyellow: "fafad2", - lightgray: "d3d3d3", - lightgreen: "90ee90", - lightgrey: "d3d3d3", - lightpink: "ffb6c1", - lightsalmon: "ffa07a", - lightseagreen: "20b2aa", - lightskyblue: "87cefa", - lightslategray: "789", - lightslategrey: "789", - lightsteelblue: "b0c4de", - lightyellow: "ffffe0", - lime: "0f0", - limegreen: "32cd32", - linen: "faf0e6", - magenta: "f0f", - maroon: "800000", - mediumaquamarine: "66cdaa", - mediumblue: "0000cd", - mediumorchid: "ba55d3", - mediumpurple: "9370db", - mediumseagreen: "3cb371", - mediumslateblue: "7b68ee", - mediumspringgreen: "00fa9a", - mediumturquoise: "48d1cc", - mediumvioletred: "c71585", - midnightblue: "191970", - mintcream: "f5fffa", - mistyrose: "ffe4e1", - moccasin: "ffe4b5", - navajowhite: "ffdead", - navy: "000080", - oldlace: "fdf5e6", - olive: "808000", - olivedrab: "6b8e23", - orange: "ffa500", - orangered: "ff4500", - orchid: "da70d6", - palegoldenrod: "eee8aa", - palegreen: "98fb98", - paleturquoise: "afeeee", - palevioletred: "db7093", - papayawhip: "ffefd5", - peachpuff: "ffdab9", - peru: "cd853f", - pink: "ffc0cb", - plum: "dda0dd", - powderblue: "b0e0e6", - purple: "800080", - rebeccapurple: "663399", - red: "f00", - rosybrown: "bc8f8f", - royalblue: "4169e1", - saddlebrown: "8b4513", - salmon: "fa8072", - sandybrown: "f4a460", - seagreen: "2e8b57", - seashell: "fff5ee", - sienna: "a0522d", - silver: "c0c0c0", - skyblue: "87ceeb", - slateblue: "6a5acd", - slategray: "708090", - slategrey: "708090", - snow: "fffafa", - springgreen: "00ff7f", - steelblue: "4682b4", - tan: "d2b48c", - teal: "008080", - thistle: "d8bfd8", - tomato: "ff6347", - turquoise: "40e0d0", - violet: "ee82ee", - wheat: "f5deb3", - white: "fff", - whitesmoke: "f5f5f5", - yellow: "ff0", - yellowgreen: "9acd32" -}; - -// Make it easy to access colors via `hexNames[hex]` -var hexNames = tinycolor.hexNames = flip(names); - - -// Utilities -// --------- - -// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }` -function flip(o) { - var flipped = { }; - for (var i in o) { - if (o.hasOwnProperty(i)) { - flipped[o[i]] = i; - } - } - return flipped; -} - -// Return a valid alpha value [0,1] with all invalid values being set to 1 -function boundAlpha(a) { - a = parseFloat(a); - - if (isNaN(a) || a < 0 || a > 1) { - a = 1; - } - - return a; -} - -// Take input from [0, n] and return it as [0, 1] -function bound01(n, max) { - if (isOnePointZero(n)) { n = "100%"; } - - var processPercent = isPercentage(n); - n = mathMin(max, mathMax(0, parseFloat(n))); - - // Automatically convert percentage into number - if (processPercent) { - n = parseInt(n * max, 10) / 100; - } - - // Handle floating point rounding errors - if ((Math.abs(n - max) < 0.000001)) { - return 1; - } - - // Convert into [0, 1] range if it isn't already - return (n % max) / parseFloat(max); -} - -// Force a number between 0 and 1 -function clamp01(val) { - return mathMin(1, mathMax(0, val)); -} - -// Parse a base-16 hex value into a base-10 integer -function parseIntFromHex(val) { - return parseInt(val, 16); -} - -// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1 -// -function isOnePointZero(n) { - return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1; -} - -// Check to see if string passed in is a percentage -function isPercentage(n) { - return typeof n === "string" && n.indexOf('%') != -1; -} - -// Force a hex value to have 2 characters -function pad2(c) { - return c.length == 1 ? '0' + c : '' + c; -} - -// Replace a decimal with it's percentage value -function convertToPercentage(n) { - if (n <= 1) { - n = (n * 100) + "%"; - } - - return n; -} - -// Converts a decimal to a hex value -function convertDecimalToHex(d) { - return Math.round(parseFloat(d) * 255).toString(16); -} -// Converts a hex value to a decimal -function convertHexToDecimal(h) { - return (parseIntFromHex(h) / 255); -} - -var matchers = (function() { - - // - var CSS_INTEGER = "[-\\+]?\\d+%?"; - - // - var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; - - // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome. - var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; - - // Actual matching. - // Parentheses and commas are optional, but not required. - // Whitespace can take the place of commas or opening paren - var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; - var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"; - - return { - CSS_UNIT: new RegExp(CSS_UNIT), - rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), - rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), - hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), - hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), - hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), - hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), - hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ - }; -})(); - -// `isValidCSSUnit` -// Take in a single string / number and check to see if it looks like a CSS unit -// (see `matchers` above for definition). -function isValidCSSUnit(color) { - return !!matchers.CSS_UNIT.exec(color); -} - -// `stringInputToObject` -// Permissive string parsing. Take in a number of formats, and output an object -// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` -function stringInputToObject(color) { - - color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase(); - var named = false; - if (names[color]) { - color = names[color]; - named = true; - } - else if (color == 'transparent') { - return { r: 0, g: 0, b: 0, a: 0, format: "name" }; - } - - // Try to match string input using regular expressions. - // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360] - // Just return an object and let the conversion functions handle that. - // This way the result will be the same whether the tinycolor is initialized with string or object. - var match; - if ((match = matchers.rgb.exec(color))) { - return { r: match[1], g: match[2], b: match[3] }; - } - if ((match = matchers.rgba.exec(color))) { - return { r: match[1], g: match[2], b: match[3], a: match[4] }; - } - if ((match = matchers.hsl.exec(color))) { - return { h: match[1], s: match[2], l: match[3] }; - } - if ((match = matchers.hsla.exec(color))) { - return { h: match[1], s: match[2], l: match[3], a: match[4] }; - } - if ((match = matchers.hsv.exec(color))) { - return { h: match[1], s: match[2], v: match[3] }; - } - if ((match = matchers.hsva.exec(color))) { - return { h: match[1], s: match[2], v: match[3], a: match[4] }; - } - if ((match = matchers.hex8.exec(color))) { - return { - r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - a: convertHexToDecimal(match[4]), - format: named ? "name" : "hex8" - }; - } - if ((match = matchers.hex6.exec(color))) { - return { - r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - format: named ? "name" : "hex" - }; - } - if ((match = matchers.hex4.exec(color))) { - return { - r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - a: convertHexToDecimal(match[4] + '' + match[4]), - format: named ? "name" : "hex8" - }; - } - if ((match = matchers.hex3.exec(color))) { - return { - r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - format: named ? "name" : "hex" - }; - } - - return false; -} - -function validateWCAG2Parms(parms) { - // return valid WCAG2 parms for isReadable. - // If input parms are invalid, return {"level":"AA", "size":"small"} - var level, size; - parms = parms || {"level":"AA", "size":"small"}; - level = (parms.level || "AA").toUpperCase(); - size = (parms.size || "small").toLowerCase(); - if (level !== "AA" && level !== "AAA") { - level = "AA"; - } - if (size !== "small" && size !== "large") { - size = "small"; - } - return {"level":level, "size":size}; -} - -// Node: Export function -if ( true && module.exports) { - module.exports = tinycolor; -} -// AMD/requirejs: Define the module -else if (true) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); -} -// Browser: Expose to window -else {} - -})(Math); - - -/***/ }), -/* 46 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["date"]; }()); - -/***/ }), -/* 47 */, -/* 48 */, -/* 49 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["deprecated"]; }()); - -/***/ }), -/* 50 */, -/* 51 */ -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || new Function("return this")(); -} catch (e) { - // This works if the window reference is available - if (typeof window === "object") g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), -/* 52 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["nux"]; }()); - -/***/ }), -/* 53 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["htmlEntities"]; }()); - -/***/ }), -/* 54 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(270); - - -/***/ }), -/* 55 */, -/* 56 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -exports.__esModule = true; -var TextareaAutosize_1 = __webpack_require__(271); -exports["default"] = TextareaAutosize_1["default"]; - - -/***/ }), -/* 57 */, -/* 58 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blockEditor"]; }()); - -/***/ }), -/* 59 */, -/* 60 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["autop"]; }()); - -/***/ }), -/* 61 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = __webpack_require__(119); - -/***/ }), -/* 62 */, -/* 63 */, -/* 64 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function flattenIntoMap( map, effects ) { - var i; - if ( Array.isArray( effects ) ) { - for ( i = 0; i < effects.length; i++ ) { - flattenIntoMap( map, effects[ i ] ); - } - } else { - for ( i in effects ) { - map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); - } - } -} - -function refx( effects ) { - var map = {}, - middleware; - - flattenIntoMap( map, effects ); - - middleware = function( store ) { - return function( next ) { - return function( action ) { - var handlers = map[ action.type ], - result = next( action ), - i, handlerAction; - - if ( handlers ) { - for ( i = 0; i < handlers.length; i++ ) { - handlerAction = handlers[ i ]( action, store ); - if ( handlerAction ) { - store.dispatch( handlerAction ); - } - } - } - - return result; - }; - }; - }; - - middleware.effects = map; - - return middleware; -} - -module.exports = refx; - - -/***/ }), -/* 65 */, -/* 66 */, -/* 67 */, -/* 68 */, -/* 69 */, -/* 70 */, -/* 71 */, -/* 72 */, -/* 73 */, -/* 74 */, -/* 75 */, -/* 76 */, -/* 77 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -var punycode = __webpack_require__(101); -var util = __webpack_require__(103); - -exports.parse = urlParse; -exports.resolve = urlResolve; -exports.resolveObject = urlResolveObject; -exports.format = urlFormat; - -exports.Url = Url; - -function Url() { - this.protocol = null; - this.slashes = null; - this.auth = null; - this.host = null; - this.port = null; - this.hostname = null; - this.hash = null; - this.search = null; - this.query = null; - this.pathname = null; - this.path = null; - this.href = null; -} - -// Reference: RFC 3986, RFC 1808, RFC 2396 - -// define these here so at least they only have to be -// compiled once on the first module load. -var protocolPattern = /^([a-z0-9.+-]+:)/i, - portPattern = /:[0-9]*$/, - - // Special case for a simple path URL - simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, - - // RFC 2396: characters reserved for delimiting URLs. - // We actually just auto-escape these. - delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], - - // RFC 2396: characters not allowed for various reasons. - unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), - - // Allowed by RFCs, but cause of XSS attacks. Always escape these. - autoEscape = ['\''].concat(unwise), - // Characters that are never ever allowed in a hostname. - // Note that any invalid chars are also handled, but these - // are the ones that are *expected* to be seen, so we fast-path - // them. - nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), - hostEndingChars = ['/', '?', '#'], - hostnameMaxLen = 255, - hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, - hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, - // protocols that can allow "unsafe" and "unwise" chars. - unsafeProtocol = { - 'javascript': true, - 'javascript:': true - }, - // protocols that never have a hostname. - hostlessProtocol = { - 'javascript': true, - 'javascript:': true - }, - // protocols that always contain a // bit. - slashedProtocol = { - 'http': true, - 'https': true, - 'ftp': true, - 'gopher': true, - 'file': true, - 'http:': true, - 'https:': true, - 'ftp:': true, - 'gopher:': true, - 'file:': true - }, - querystring = __webpack_require__(104); - -function urlParse(url, parseQueryString, slashesDenoteHost) { - if (url && util.isObject(url) && url instanceof Url) return url; - - var u = new Url; - u.parse(url, parseQueryString, slashesDenoteHost); - return u; -} - -Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { - if (!util.isString(url)) { - throw new TypeError("Parameter 'url' must be a string, not " + typeof url); - } - - // Copy chrome, IE, opera backslash-handling behavior. - // Back slashes before the query string get converted to forward slashes - // See: https://code.google.com/p/chromium/issues/detail?id=25916 - var queryIndex = url.indexOf('?'), - splitter = - (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', - uSplit = url.split(splitter), - slashRegex = /\\/g; - uSplit[0] = uSplit[0].replace(slashRegex, '/'); - url = uSplit.join(splitter); - - var rest = url; - - // trim before proceeding. - // This is to support parse stuff like " http://foo.com \n" - rest = rest.trim(); - - if (!slashesDenoteHost && url.split('#').length === 1) { - // Try fast path regexp - var simplePath = simplePathPattern.exec(rest); - if (simplePath) { - this.path = rest; - this.href = rest; - this.pathname = simplePath[1]; - if (simplePath[2]) { - this.search = simplePath[2]; - if (parseQueryString) { - this.query = querystring.parse(this.search.substr(1)); - } else { - this.query = this.search.substr(1); - } - } else if (parseQueryString) { - this.search = ''; - this.query = {}; - } - return this; - } - } - - var proto = protocolPattern.exec(rest); - if (proto) { - proto = proto[0]; - var lowerProto = proto.toLowerCase(); - this.protocol = lowerProto; - rest = rest.substr(proto.length); - } - - // figure out if it's got a host - // user@server is *always* interpreted as a hostname, and url - // resolution will treat //foo/bar as host=foo,path=bar because that's - // how the browser resolves relative URLs. - if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { - var slashes = rest.substr(0, 2) === '//'; - if (slashes && !(proto && hostlessProtocol[proto])) { - rest = rest.substr(2); - this.slashes = true; - } - } - - if (!hostlessProtocol[proto] && - (slashes || (proto && !slashedProtocol[proto]))) { - - // there's a hostname. - // the first instance of /, ?, ;, or # ends the host. - // - // If there is an @ in the hostname, then non-host chars *are* allowed - // to the left of the last @ sign, unless some host-ending character - // comes *before* the @-sign. - // URLs are obnoxious. - // - // ex: - // http://a@b@c/ => user:a@b host:c - // http://a@b?@c => user:a host:c path:/?@c - - // v0.12 TODO(isaacs): This is not quite how Chrome does things. - // Review our test case against browsers more comprehensively. - - // find the first instance of any hostEndingChars - var hostEnd = -1; - for (var i = 0; i < hostEndingChars.length; i++) { - var hec = rest.indexOf(hostEndingChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) - hostEnd = hec; - } - - // at this point, either we have an explicit point where the - // auth portion cannot go past, or the last @ char is the decider. - var auth, atSign; - if (hostEnd === -1) { - // atSign can be anywhere. - atSign = rest.lastIndexOf('@'); - } else { - // atSign must be in auth portion. - // http://a@b/c@d => host:b auth:a path:/c@d - atSign = rest.lastIndexOf('@', hostEnd); - } - - // Now we have a portion which is definitely the auth. - // Pull that off. - if (atSign !== -1) { - auth = rest.slice(0, atSign); - rest = rest.slice(atSign + 1); - this.auth = decodeURIComponent(auth); - } - - // the host is the remaining to the left of the first non-host char - hostEnd = -1; - for (var i = 0; i < nonHostChars.length; i++) { - var hec = rest.indexOf(nonHostChars[i]); - if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) - hostEnd = hec; - } - // if we still have not hit it, then the entire thing is a host. - if (hostEnd === -1) - hostEnd = rest.length; - - this.host = rest.slice(0, hostEnd); - rest = rest.slice(hostEnd); - - // pull out port. - this.parseHost(); - - // we've indicated that there is a hostname, - // so even if it's empty, it has to be present. - this.hostname = this.hostname || ''; - - // if hostname begins with [ and ends with ] - // assume that it's an IPv6 address. - var ipv6Hostname = this.hostname[0] === '[' && - this.hostname[this.hostname.length - 1] === ']'; - - // validate a little. - if (!ipv6Hostname) { - var hostparts = this.hostname.split(/\./); - for (var i = 0, l = hostparts.length; i < l; i++) { - var part = hostparts[i]; - if (!part) continue; - if (!part.match(hostnamePartPattern)) { - var newpart = ''; - for (var j = 0, k = part.length; j < k; j++) { - if (part.charCodeAt(j) > 127) { - // we replace non-ASCII char with a temporary placeholder - // we need this to make sure size of hostname is not - // broken by replacing non-ASCII by nothing - newpart += 'x'; - } else { - newpart += part[j]; - } - } - // we test again with ASCII char only - if (!newpart.match(hostnamePartPattern)) { - var validParts = hostparts.slice(0, i); - var notHost = hostparts.slice(i + 1); - var bit = part.match(hostnamePartStart); - if (bit) { - validParts.push(bit[1]); - notHost.unshift(bit[2]); - } - if (notHost.length) { - rest = '/' + notHost.join('.') + rest; - } - this.hostname = validParts.join('.'); - break; - } - } - } - } - - if (this.hostname.length > hostnameMaxLen) { - this.hostname = ''; - } else { - // hostnames are always lower case. - this.hostname = this.hostname.toLowerCase(); - } - - if (!ipv6Hostname) { - // IDNA Support: Returns a punycoded representation of "domain". - // It only converts parts of the domain name that - // have non-ASCII characters, i.e. it doesn't matter if - // you call it with a domain that already is ASCII-only. - this.hostname = punycode.toASCII(this.hostname); - } - - var p = this.port ? ':' + this.port : ''; - var h = this.hostname || ''; - this.host = h + p; - this.href += this.host; - - // strip [ and ] from the hostname - // the host field still retains them, though - if (ipv6Hostname) { - this.hostname = this.hostname.substr(1, this.hostname.length - 2); - if (rest[0] !== '/') { - rest = '/' + rest; - } - } - } - - // now rest is set to the post-host stuff. - // chop off any delim chars. - if (!unsafeProtocol[lowerProto]) { - - // First, make 100% sure that any "autoEscape" chars get - // escaped, even if encodeURIComponent doesn't think they - // need to be. - for (var i = 0, l = autoEscape.length; i < l; i++) { - var ae = autoEscape[i]; - if (rest.indexOf(ae) === -1) - continue; - var esc = encodeURIComponent(ae); - if (esc === ae) { - esc = escape(ae); - } - rest = rest.split(ae).join(esc); - } - } - - - // chop off from the tail first. - var hash = rest.indexOf('#'); - if (hash !== -1) { - // got a fragment string. - this.hash = rest.substr(hash); - rest = rest.slice(0, hash); - } - var qm = rest.indexOf('?'); - if (qm !== -1) { - this.search = rest.substr(qm); - this.query = rest.substr(qm + 1); - if (parseQueryString) { - this.query = querystring.parse(this.query); - } - rest = rest.slice(0, qm); - } else if (parseQueryString) { - // no query string, but parseQueryString still requested - this.search = ''; - this.query = {}; - } - if (rest) this.pathname = rest; - if (slashedProtocol[lowerProto] && - this.hostname && !this.pathname) { - this.pathname = '/'; - } - - //to support http.request - if (this.pathname || this.search) { - var p = this.pathname || ''; - var s = this.search || ''; - this.path = p + s; - } - - // finally, reconstruct the href based on what has been validated. - this.href = this.format(); - return this; -}; - -// format a parsed object into a url string -function urlFormat(obj) { - // ensure it's an object, and not a string url. - // If it's an obj, this is a no-op. - // this way, you can call url_format() on strings - // to clean up potentially wonky urls. - if (util.isString(obj)) obj = urlParse(obj); - if (!(obj instanceof Url)) return Url.prototype.format.call(obj); - return obj.format(); -} - -Url.prototype.format = function() { - var auth = this.auth || ''; - if (auth) { - auth = encodeURIComponent(auth); - auth = auth.replace(/%3A/i, ':'); - auth += '@'; - } - - var protocol = this.protocol || '', - pathname = this.pathname || '', - hash = this.hash || '', - host = false, - query = ''; - - if (this.host) { - host = auth + this.host; - } else if (this.hostname) { - host = auth + (this.hostname.indexOf(':') === -1 ? - this.hostname : - '[' + this.hostname + ']'); - if (this.port) { - host += ':' + this.port; - } - } - - if (this.query && - util.isObject(this.query) && - Object.keys(this.query).length) { - query = querystring.stringify(this.query); - } - - var search = this.search || (query && ('?' + query)) || ''; - - if (protocol && protocol.substr(-1) !== ':') protocol += ':'; - - // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. - // unless they had them to begin with. - if (this.slashes || - (!protocol || slashedProtocol[protocol]) && host !== false) { - host = '//' + (host || ''); - if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname; - } else if (!host) { - host = ''; - } - - if (hash && hash.charAt(0) !== '#') hash = '#' + hash; - if (search && search.charAt(0) !== '?') search = '?' + search; - - pathname = pathname.replace(/[?#]/g, function(match) { - return encodeURIComponent(match); - }); - search = search.replace('#', '%23'); - - return protocol + host + pathname + search + hash; -}; - -function urlResolve(source, relative) { - return urlParse(source, false, true).resolve(relative); -} - -Url.prototype.resolve = function(relative) { - return this.resolveObject(urlParse(relative, false, true)).format(); -}; - -function urlResolveObject(source, relative) { - if (!source) return relative; - return urlParse(source, false, true).resolveObject(relative); -} - -Url.prototype.resolveObject = function(relative) { - if (util.isString(relative)) { - var rel = new Url(); - rel.parse(relative, false, true); - relative = rel; - } - - var result = new Url(); - var tkeys = Object.keys(this); - for (var tk = 0; tk < tkeys.length; tk++) { - var tkey = tkeys[tk]; - result[tkey] = this[tkey]; - } - - // hash is always overridden, no matter what. - // even href="" will remove it. - result.hash = relative.hash; - - // if the relative url is empty, then there's nothing left to do here. - if (relative.href === '') { - result.href = result.format(); - return result; - } - - // hrefs like //foo/bar always cut to the protocol. - if (relative.slashes && !relative.protocol) { - // take everything except the protocol from relative - var rkeys = Object.keys(relative); - for (var rk = 0; rk < rkeys.length; rk++) { - var rkey = rkeys[rk]; - if (rkey !== 'protocol') - result[rkey] = relative[rkey]; - } - - //urlParse appends trailing / to urls like http://www.example.com - if (slashedProtocol[result.protocol] && - result.hostname && !result.pathname) { - result.path = result.pathname = '/'; - } - - result.href = result.format(); - return result; - } - - if (relative.protocol && relative.protocol !== result.protocol) { - // if it's a known url protocol, then changing - // the protocol does weird things - // first, if it's not file:, then we MUST have a host, - // and if there was a path - // to begin with, then we MUST have a path. - // if it is file:, then the host is dropped, - // because that's known to be hostless. - // anything else is assumed to be absolute. - if (!slashedProtocol[relative.protocol]) { - var keys = Object.keys(relative); - for (var v = 0; v < keys.length; v++) { - var k = keys[v]; - result[k] = relative[k]; - } - result.href = result.format(); - return result; - } - - result.protocol = relative.protocol; - if (!relative.host && !hostlessProtocol[relative.protocol]) { - var relPath = (relative.pathname || '').split('/'); - while (relPath.length && !(relative.host = relPath.shift())); - if (!relative.host) relative.host = ''; - if (!relative.hostname) relative.hostname = ''; - if (relPath[0] !== '') relPath.unshift(''); - if (relPath.length < 2) relPath.unshift(''); - result.pathname = relPath.join('/'); - } else { - result.pathname = relative.pathname; - } - result.search = relative.search; - result.query = relative.query; - result.host = relative.host || ''; - result.auth = relative.auth; - result.hostname = relative.hostname || relative.host; - result.port = relative.port; - // to support http.request - if (result.pathname || result.search) { - var p = result.pathname || ''; - var s = result.search || ''; - result.path = p + s; - } - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; - } - - var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), - isRelAbs = ( - relative.host || - relative.pathname && relative.pathname.charAt(0) === '/' - ), - mustEndAbs = (isRelAbs || isSourceAbs || - (result.host && relative.pathname)), - removeAllDots = mustEndAbs, - srcPath = result.pathname && result.pathname.split('/') || [], - relPath = relative.pathname && relative.pathname.split('/') || [], - psychotic = result.protocol && !slashedProtocol[result.protocol]; - - // if the url is a non-slashed url, then relative - // links like ../.. should be able - // to crawl up to the hostname, as well. This is strange. - // result.protocol has already been set by now. - // Later on, put the first path part into the host field. - if (psychotic) { - result.hostname = ''; - result.port = null; - if (result.host) { - if (srcPath[0] === '') srcPath[0] = result.host; - else srcPath.unshift(result.host); - } - result.host = ''; - if (relative.protocol) { - relative.hostname = null; - relative.port = null; - if (relative.host) { - if (relPath[0] === '') relPath[0] = relative.host; - else relPath.unshift(relative.host); - } - relative.host = null; - } - mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); - } - - if (isRelAbs) { - // it's absolute. - result.host = (relative.host || relative.host === '') ? - relative.host : result.host; - result.hostname = (relative.hostname || relative.hostname === '') ? - relative.hostname : result.hostname; - result.search = relative.search; - result.query = relative.query; - srcPath = relPath; - // fall through to the dot-handling below. - } else if (relPath.length) { - // it's relative - // throw away the existing file, and take the new path instead. - if (!srcPath) srcPath = []; - srcPath.pop(); - srcPath = srcPath.concat(relPath); - result.search = relative.search; - result.query = relative.query; - } else if (!util.isNullOrUndefined(relative.search)) { - // just pull out the search. - // like href='?foo'. - // Put this after the other two cases because it simplifies the booleans - if (psychotic) { - result.hostname = result.host = srcPath.shift(); - //occationaly the auth can get stuck only in host - //this especially happens in cases like - //url.resolveObject('mailto:local1@domain1', 'local2@domain2') - var authInHost = result.host && result.host.indexOf('@') > 0 ? - result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.host = result.hostname = authInHost.shift(); - } - } - result.search = relative.search; - result.query = relative.query; - //to support http.request - if (!util.isNull(result.pathname) || !util.isNull(result.search)) { - result.path = (result.pathname ? result.pathname : '') + - (result.search ? result.search : ''); - } - result.href = result.format(); - return result; - } - - if (!srcPath.length) { - // no path at all. easy. - // we've already handled the other stuff above. - result.pathname = null; - //to support http.request - if (result.search) { - result.path = '/' + result.search; - } else { - result.path = null; - } - result.href = result.format(); - return result; - } - - // if a url ENDs in . or .., then it must get a trailing slash. - // however, if it ends in anything else non-slashy, - // then it must NOT get a trailing slash. - var last = srcPath.slice(-1)[0]; - var hasTrailingSlash = ( - (result.host || relative.host || srcPath.length > 1) && - (last === '.' || last === '..') || last === ''); - - // strip single dots, resolve double dots to parent dir - // if the path tries to go above the root, `up` ends up > 0 - var up = 0; - for (var i = srcPath.length; i >= 0; i--) { - last = srcPath[i]; - if (last === '.') { - srcPath.splice(i, 1); - } else if (last === '..') { - srcPath.splice(i, 1); - up++; - } else if (up) { - srcPath.splice(i, 1); - up--; - } - } - - // if the path is allowed to go above the root, restore leading ..s - if (!mustEndAbs && !removeAllDots) { - for (; up--; up) { - srcPath.unshift('..'); - } - } - - if (mustEndAbs && srcPath[0] !== '' && - (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { - srcPath.unshift(''); - } - - if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { - srcPath.push(''); - } - - var isAbsolute = srcPath[0] === '' || - (srcPath[0] && srcPath[0].charAt(0) === '/'); - - // put the host back - if (psychotic) { - result.hostname = result.host = isAbsolute ? '' : - srcPath.length ? srcPath.shift() : ''; - //occationaly the auth can get stuck only in host - //this especially happens in cases like - //url.resolveObject('mailto:local1@domain1', 'local2@domain2') - var authInHost = result.host && result.host.indexOf('@') > 0 ? - result.host.split('@') : false; - if (authInHost) { - result.auth = authInHost.shift(); - result.host = result.hostname = authInHost.shift(); - } - } - - mustEndAbs = mustEndAbs || (result.host && srcPath.length); - - if (mustEndAbs && !isAbsolute) { - srcPath.unshift(''); - } - - if (!srcPath.length) { - result.pathname = null; - result.path = null; - } else { - result.pathname = srcPath.join('/'); - } - - //to support request.http - if (!util.isNull(result.pathname) || !util.isNull(result.search)) { - result.path = (result.pathname ? result.pathname : '') + - (result.search ? result.search : ''); - } - result.auth = relative.auth || result.auth; - result.slashes = result.slashes || relative.slashes; - result.href = result.format(); - return result; -}; - -Url.prototype.parseHost = function() { - var host = this.host; - var port = portPattern.exec(host); - if (port) { - port = port[0]; - if (port !== ':') { - this.port = port.substr(1); - } - host = host.substr(0, host.length - port.length); - } - if (host) this.hostname = host; -}; - - -/***/ }), -/* 78 */, -/* 79 */, -/* 80 */, -/* 81 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["coreData"]; }()); - -/***/ }), -/* 82 */, -/* 83 */, -/* 84 */, -/* 85 */, -/* 86 */, -/* 87 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -/** - * Redux dispatch multiple actions - */ - -function multi(_ref) { - var dispatch = _ref.dispatch; - - return function (next) { - return function (action) { - return Array.isArray(action) ? action.filter(Boolean).map(dispatch) : next(action); - }; - }; -} - -/** - * Exports - */ - -exports.default = multi; - -/***/ }), -/* 88 */, -/* 89 */, -/* 90 */, -/* 91 */, -/* 92 */, -/* 93 */, -/* 94 */, -/* 95 */, -/* 96 */, -/* 97 */, -/* 98 */, -/* 99 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["wordcount"]; }()); - -/***/ }), -/* 100 */ +/***/ 109: /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -3261,7 +143,583 @@ if (typeof Object.create === 'function') { /***/ }), -/* 101 */ + +/***/ 11: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); +/* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); + + +function _possibleConstructorReturn(self, call) { + if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { + return call; + } + + return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); +} + +/***/ }), + +/***/ 111: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +exports.__esModule = true; +var React = __webpack_require__(27); +var PropTypes = __webpack_require__(31); +var autosize = __webpack_require__(112); +var _getLineHeight = __webpack_require__(113); +var getLineHeight = _getLineHeight; +var UPDATE = 'autosize:update'; +var DESTROY = 'autosize:destroy'; +var RESIZED = 'autosize:resized'; +/** + * A light replacement for built-in textarea component + * which automaticaly adjusts its height to match the content + */ +var TextareaAutosize = /** @class */ (function (_super) { + __extends(TextareaAutosize, _super); + function TextareaAutosize() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + lineHeight: null + }; + _this.dispatchEvent = function (EVENT_TYPE) { + var event = document.createEvent('Event'); + event.initEvent(EVENT_TYPE, true, false); + _this.textarea.dispatchEvent(event); + }; + _this.updateLineHeight = function () { + _this.setState({ + lineHeight: getLineHeight(_this.textarea) + }); + }; + _this.onChange = function (e) { + var onChange = _this.props.onChange; + _this.currentValue = e.currentTarget.value; + onChange && onChange(e); + }; + _this.saveDOMNodeRef = function (ref) { + var innerRef = _this.props.innerRef; + if (innerRef) { + innerRef(ref); + } + _this.textarea = ref; + }; + _this.getLocals = function () { + var _a = _this, _b = _a.props, onResize = _b.onResize, maxRows = _b.maxRows, onChange = _b.onChange, style = _b.style, innerRef = _b.innerRef, props = __rest(_b, ["onResize", "maxRows", "onChange", "style", "innerRef"]), lineHeight = _a.state.lineHeight, saveDOMNodeRef = _a.saveDOMNodeRef; + var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null; + return __assign({}, props, { saveDOMNodeRef: saveDOMNodeRef, style: maxHeight ? __assign({}, style, { maxHeight: maxHeight }) : style, onChange: _this.onChange }); + }; + return _this; + } + TextareaAutosize.prototype.componentDidMount = function () { + var _this = this; + var _a = this.props, onResize = _a.onResize, maxRows = _a.maxRows; + if (typeof maxRows === 'number') { + this.updateLineHeight(); + } + /* + the defer is needed to: + - force "autosize" to activate the scrollbar when this.props.maxRows is passed + - support StyledComponents (see #71) + */ + setTimeout(function () { return autosize(_this.textarea); }); + if (onResize) { + this.textarea.addEventListener(RESIZED, onResize); + } + }; + TextareaAutosize.prototype.componentWillUnmount = function () { + var onResize = this.props.onResize; + if (onResize) { + this.textarea.removeEventListener(RESIZED, onResize); + } + this.dispatchEvent(DESTROY); + }; + TextareaAutosize.prototype.render = function () { + var _a = this.getLocals(), children = _a.children, saveDOMNodeRef = _a.saveDOMNodeRef, locals = __rest(_a, ["children", "saveDOMNodeRef"]); + return (React.createElement("textarea", __assign({}, locals, { ref: saveDOMNodeRef }), children)); + }; + TextareaAutosize.prototype.componentDidUpdate = function (prevProps) { + if (this.props.value !== this.currentValue || this.props.rows !== prevProps.rows) { + this.dispatchEvent(UPDATE); + } + }; + TextareaAutosize.defaultProps = { + rows: 1 + }; + TextareaAutosize.propTypes = { + rows: PropTypes.number, + maxRows: PropTypes.number, + onResize: PropTypes.func, + innerRef: PropTypes.func + }; + return TextareaAutosize; +}(React.Component)); +exports["default"] = TextareaAutosize; + + +/***/ }), + +/***/ 112: +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + autosize 4.0.2 + license: MIT + http://www.jacklmoore.com/autosize +*/ +(function (global, factory) { + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { var mod; } +})(this, function (module, exports) { + 'use strict'; + + var map = typeof Map === "function" ? new Map() : function () { + var keys = []; + var values = []; + + return { + has: function has(key) { + return keys.indexOf(key) > -1; + }, + get: function get(key) { + return values[keys.indexOf(key)]; + }, + set: function set(key, value) { + if (keys.indexOf(key) === -1) { + keys.push(key); + values.push(value); + } + }, + delete: function _delete(key) { + var index = keys.indexOf(key); + if (index > -1) { + keys.splice(index, 1); + values.splice(index, 1); + } + } + }; + }(); + + var createEvent = function createEvent(name) { + return new Event(name, { bubbles: true }); + }; + try { + new Event('test'); + } catch (e) { + // IE does not support `new Event()` + createEvent = function createEvent(name) { + var evt = document.createEvent('Event'); + evt.initEvent(name, true, false); + return evt; + }; + } + + function assign(ta) { + if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return; + + var heightOffset = null; + var clientWidth = null; + var cachedHeight = null; + + function init() { + var style = window.getComputedStyle(ta, null); + + if (style.resize === 'vertical') { + ta.style.resize = 'none'; + } else if (style.resize === 'both') { + ta.style.resize = 'horizontal'; + } + + if (style.boxSizing === 'content-box') { + heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom)); + } else { + heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); + } + // Fix when a textarea is not on document body and heightOffset is Not a Number + if (isNaN(heightOffset)) { + heightOffset = 0; + } + + update(); + } + + function changeOverflow(value) { + { + // Chrome/Safari-specific fix: + // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space + // made available by removing the scrollbar. The following forces the necessary text reflow. + var width = ta.style.width; + ta.style.width = '0px'; + // Force reflow: + /* jshint ignore:start */ + ta.offsetWidth; + /* jshint ignore:end */ + ta.style.width = width; + } + + ta.style.overflowY = value; + } + + function getParentOverflows(el) { + var arr = []; + + while (el && el.parentNode && el.parentNode instanceof Element) { + if (el.parentNode.scrollTop) { + arr.push({ + node: el.parentNode, + scrollTop: el.parentNode.scrollTop + }); + } + el = el.parentNode; + } + + return arr; + } + + function resize() { + if (ta.scrollHeight === 0) { + // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM. + return; + } + + var overflows = getParentOverflows(ta); + var docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240) + + ta.style.height = ''; + ta.style.height = ta.scrollHeight + heightOffset + 'px'; + + // used to check if an update is actually necessary on window.resize + clientWidth = ta.clientWidth; + + // prevents scroll-position jumping + overflows.forEach(function (el) { + el.node.scrollTop = el.scrollTop; + }); + + if (docTop) { + document.documentElement.scrollTop = docTop; + } + } + + function update() { + resize(); + + var styleHeight = Math.round(parseFloat(ta.style.height)); + var computed = window.getComputedStyle(ta, null); + + // Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box + var actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight; + + // The actual height not matching the style height (set via the resize method) indicates that + // the max-height has been exceeded, in which case the overflow should be allowed. + if (actualHeight < styleHeight) { + if (computed.overflowY === 'hidden') { + changeOverflow('scroll'); + resize(); + actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; + } + } else { + // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands. + if (computed.overflowY !== 'hidden') { + changeOverflow('hidden'); + resize(); + actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; + } + } + + if (cachedHeight !== actualHeight) { + cachedHeight = actualHeight; + var evt = createEvent('autosize:resized'); + try { + ta.dispatchEvent(evt); + } catch (err) { + // Firefox will throw an error on dispatchEvent for a detached element + // https://bugzilla.mozilla.org/show_bug.cgi?id=889376 + } + } + } + + var pageResize = function pageResize() { + if (ta.clientWidth !== clientWidth) { + update(); + } + }; + + var destroy = function (style) { + window.removeEventListener('resize', pageResize, false); + ta.removeEventListener('input', update, false); + ta.removeEventListener('keyup', update, false); + ta.removeEventListener('autosize:destroy', destroy, false); + ta.removeEventListener('autosize:update', update, false); + + Object.keys(style).forEach(function (key) { + ta.style[key] = style[key]; + }); + + map.delete(ta); + }.bind(ta, { + height: ta.style.height, + resize: ta.style.resize, + overflowY: ta.style.overflowY, + overflowX: ta.style.overflowX, + wordWrap: ta.style.wordWrap + }); + + ta.addEventListener('autosize:destroy', destroy, false); + + // IE9 does not fire onpropertychange or oninput for deletions, + // so binding to onkeyup to catch most of those events. + // There is no way that I know of to detect something like 'cut' in IE9. + if ('onpropertychange' in ta && 'oninput' in ta) { + ta.addEventListener('keyup', update, false); + } + + window.addEventListener('resize', pageResize, false); + ta.addEventListener('input', update, false); + ta.addEventListener('autosize:update', update, false); + ta.style.overflowX = 'hidden'; + ta.style.wordWrap = 'break-word'; + + map.set(ta, { + destroy: destroy, + update: update + }); + + init(); + } + + function destroy(ta) { + var methods = map.get(ta); + if (methods) { + methods.destroy(); + } + } + + function update(ta) { + var methods = map.get(ta); + if (methods) { + methods.update(); + } + } + + var autosize = null; + + // Do nothing in Node.js environment and IE8 (or lower) + if (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') { + autosize = function autosize(el) { + return el; + }; + autosize.destroy = function (el) { + return el; + }; + autosize.update = function (el) { + return el; + }; + } else { + autosize = function autosize(el, options) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], function (x) { + return assign(x, options); + }); + } + return el; + }; + autosize.destroy = function (el) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], destroy); + } + return el; + }; + autosize.update = function (el) { + if (el) { + Array.prototype.forEach.call(el.length ? el : [el], update); + } + return el; + }; + } + + exports.default = autosize; + module.exports = exports['default']; +}); + +/***/ }), + +/***/ 113: +/***/ (function(module, exports, __webpack_require__) { + +// Load in dependencies +var computedStyle = __webpack_require__(114); + +/** + * Calculate the `line-height` of a given node + * @param {HTMLElement} node Element to calculate line height of. Must be in the DOM. + * @returns {Number} `line-height` of the element in pixels + */ +function lineHeight(node) { + // Grab the line-height via style + var lnHeightStr = computedStyle(node, 'line-height'); + var lnHeight = parseFloat(lnHeightStr, 10); + + // If the lineHeight did not contain a unit (i.e. it was numeric), convert it to ems (e.g. '2.3' === '2.3em') + if (lnHeightStr === lnHeight + '') { + // Save the old lineHeight style and update the em unit to the element + var _lnHeightStyle = node.style.lineHeight; + node.style.lineHeight = lnHeightStr + 'em'; + + // Calculate the em based height + lnHeightStr = computedStyle(node, 'line-height'); + lnHeight = parseFloat(lnHeightStr, 10); + + // Revert the lineHeight style + if (_lnHeightStyle) { + node.style.lineHeight = _lnHeightStyle; + } else { + delete node.style.lineHeight; + } + } + + // If the lineHeight is in `pt`, convert it to pixels (4px for 3pt) + // DEV: `em` units are converted to `pt` in IE6 + // Conversion ratio from https://developer.mozilla.org/en-US/docs/Web/CSS/length + if (lnHeightStr.indexOf('pt') !== -1) { + lnHeight *= 4; + lnHeight /= 3; + // Otherwise, if the lineHeight is in `mm`, convert it to pixels (96px for 25.4mm) + } else if (lnHeightStr.indexOf('mm') !== -1) { + lnHeight *= 96; + lnHeight /= 25.4; + // Otherwise, if the lineHeight is in `cm`, convert it to pixels (96px for 2.54cm) + } else if (lnHeightStr.indexOf('cm') !== -1) { + lnHeight *= 96; + lnHeight /= 2.54; + // Otherwise, if the lineHeight is in `in`, convert it to pixels (96px for 1in) + } else if (lnHeightStr.indexOf('in') !== -1) { + lnHeight *= 96; + // Otherwise, if the lineHeight is in `pc`, convert it to pixels (12pt for 1pc) + } else if (lnHeightStr.indexOf('pc') !== -1) { + lnHeight *= 16; + } + + // Continue our computation + lnHeight = Math.round(lnHeight); + + // If the line-height is "normal", calculate by font-size + if (lnHeightStr === 'normal') { + // Create a temporary node + var nodeName = node.nodeName; + var _node = document.createElement(nodeName); + _node.innerHTML = ' '; + + // If we have a text area, reset it to only 1 row + // https://github.com/twolfson/line-height/issues/4 + if (nodeName.toUpperCase() === 'TEXTAREA') { + _node.setAttribute('rows', '1'); + } + + // Set the font-size of the element + var fontSizeStr = computedStyle(node, 'font-size'); + _node.style.fontSize = fontSizeStr; + + // Remove default padding/border which can affect offset height + // https://github.com/twolfson/line-height/issues/4 + // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight + _node.style.padding = '0px'; + _node.style.border = '0px'; + + // Append it to the body + var body = document.body; + body.appendChild(_node); + + // Assume the line height of the element is the height + var height = _node.offsetHeight; + lnHeight = height; + + // Remove our child from the DOM + body.removeChild(_node); + } + + // Return the calculated height + return lnHeight; +} + +// Export lineHeight +module.exports = lineHeight; + + +/***/ }), + +/***/ 114: +/***/ (function(module, exports) { + +// This code has been refactored for 140 bytes +// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js +var computedStyle = function (el, prop, getComputedStyle) { + getComputedStyle = window.getComputedStyle; + + // In one fell swoop + return ( + // If we have getComputedStyle + getComputedStyle ? + // Query it + // TODO: From CSS-Query notes, we might need (node, null) for FF + getComputedStyle(el) : + + // Otherwise, we are in IE and use currentStyle + el.currentStyle + )[ + // Switch to camelCase for CSSOM + // DEV: Grabbed from jQuery + // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194 + // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597 + prop.replace(/-(\w)/gi, function (word, letter) { + return letter.toUpperCase(); + }) + ]; +}; + +module.exports = computedStyle; + + +/***/ }), + +/***/ 117: /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */ @@ -3784,10 +1242,11 @@ if (typeof Object.create === 'function') { }(this)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102)(module), __webpack_require__(51))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(118)(module), __webpack_require__(59))) /***/ }), -/* 102 */ + +/***/ 118: /***/ (function(module, exports) { module.exports = function(module) { @@ -3815,7 +1274,8 @@ module.exports = function(module) { /***/ }), -/* 103 */ + +/***/ 119: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3838,18 +1298,34 @@ module.exports = { /***/ }), -/* 104 */ + +/***/ 12: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + +/***/ }), + +/***/ 120: /***/ (function(module, exports, __webpack_require__) { "use strict"; -exports.decode = exports.parse = __webpack_require__(105); -exports.encode = exports.stringify = __webpack_require__(106); +exports.decode = exports.parse = __webpack_require__(121); +exports.encode = exports.stringify = __webpack_require__(122); /***/ }), -/* 105 */ + +/***/ 121: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3940,7 +1416,8 @@ var isArray = Array.isArray || function (xs) { /***/ }), -/* 106 */ + +/***/ 122: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4032,2605 +1509,259 @@ var objectKeys = Object.keys || function (obj) { /***/ }), -/* 107 */, -/* 108 */, -/* 109 */, -/* 110 */ -/***/ (function(module, exports, __webpack_require__) { -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = __webpack_require__(111); - -function emptyFunction() {} - -module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } - var err = 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' - ); - err.name = 'Invariant Violation'; - throw err; - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), -/* 111 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), -/* 112 */, -/* 113 */, -/* 114 */, -/* 115 */, -/* 116 */, -/* 117 */, -/* 118 */, -/* 119 */ -/***/ (function(module, exports, __webpack_require__) { +/***/ 13: +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; -var util = __webpack_require__(120); - -function scrollIntoView(elem, container, config) { - config = config || {}; - // document 归一化到 window - if (container.nodeType === 9) { - container = util.getWindow(container); - } - - var allowHorizontalScroll = config.allowHorizontalScroll; - var onlyScrollIfNeeded = config.onlyScrollIfNeeded; - var alignWithTop = config.alignWithTop; - var alignWithLeft = config.alignWithLeft; - var offsetTop = config.offsetTop || 0; - var offsetLeft = config.offsetLeft || 0; - var offsetBottom = config.offsetBottom || 0; - var offsetRight = config.offsetRight || 0; - - allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll; - - var isWin = util.isWindow(container); - var elemOffset = util.offset(elem); - var eh = util.outerHeight(elem); - var ew = util.outerWidth(elem); - var containerOffset = undefined; - var ch = undefined; - var cw = undefined; - var containerScroll = undefined; - var diffTop = undefined; - var diffBottom = undefined; - var win = undefined; - var winScroll = undefined; - var ww = undefined; - var wh = undefined; - - if (isWin) { - win = container; - wh = util.height(win); - ww = util.width(win); - winScroll = { - left: util.scrollLeft(win), - top: util.scrollTop(win) - }; - // elem 相对 container 可视视窗的距离 - diffTop = { - left: elemOffset.left - winScroll.left - offsetLeft, - top: elemOffset.top - winScroll.top - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight, - top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom - }; - containerScroll = winScroll; - } else { - containerOffset = util.offset(container); - ch = container.clientHeight; - cw = container.clientWidth; - containerScroll = { - left: container.scrollLeft, - top: container.scrollTop - }; - // elem 相对 container 可视视窗的距离 - // 注意边框, offset 是边框到根节点 - diffTop = { - left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft, - top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop - }; - diffBottom = { - left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight, - top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom - }; - } - - if (diffTop.top < 0 || diffBottom.top > 0) { - // 强制向上 - if (alignWithTop === true) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else if (alignWithTop === false) { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } else { - // 自动调整 - if (diffTop.top < 0) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithTop = alignWithTop === undefined ? true : !!alignWithTop; - if (alignWithTop) { - util.scrollTop(container, containerScroll.top + diffTop.top); - } else { - util.scrollTop(container, containerScroll.top + diffBottom.top); - } - } - } - - if (allowHorizontalScroll) { - if (diffTop.left < 0 || diffBottom.left > 0) { - // 强制向上 - if (alignWithLeft === true) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else if (alignWithLeft === false) { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } else { - // 自动调整 - if (diffTop.left < 0) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } else { - if (!onlyScrollIfNeeded) { - alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft; - if (alignWithLeft) { - util.scrollLeft(container, containerScroll.left + diffTop.left); - } else { - util.scrollLeft(container, containerScroll.left + diffBottom.left); - } - } - } - } + return _setPrototypeOf(o, p); } +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; }); -module.exports = scrollIntoView; +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); +} /***/ }), -/* 120 */ -/***/ (function(module, exports, __webpack_require__) { -"use strict"; - - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - -var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; - -function getClientPosition(elem) { - var box = undefined; - var x = undefined; - var y = undefined; - var doc = elem.ownerDocument; - var body = doc.body; - var docElem = doc && doc.documentElement; - // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式 - box = elem.getBoundingClientRect(); - - // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop - // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确 - // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin - - x = box.left; - y = box.top; - - // In IE, most of the time, 2 extra pixels are added to the top and left - // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and - // IE6 standards mode, this border can be overridden by setting the - // document element's border to zero -- thus, we cannot rely on the - // offset always being 2 pixels. - - // In quirks mode, the offset can be determined by querying the body's - // clientLeft/clientTop, but in standards mode, it is found by querying - // the document element's clientLeft/clientTop. Since we already called - // getClientBoundingRect we have already forced a reflow, so it is not - // too expensive just to query them all. - - // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的 - // 窗口边框标准是设 documentElement ,quirks 时设置 body - // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去 - // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置 - // 标准 ie 下 docElem.clientTop 就是 border-top - // ie7 html 即窗口边框改变不了。永远为 2 - // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0 - - x -= docElem.clientLeft || body.clientLeft || 0; - y -= docElem.clientTop || body.clientTop || 0; - - return { - left: x, - top: y - }; -} - -function getScroll(w, top) { - var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; - var method = 'scroll' + (top ? 'Top' : 'Left'); - if (typeof ret !== 'number') { - var d = w.document; - // ie6,7,8 standard mode - ret = d.documentElement[method]; - if (typeof ret !== 'number') { - // quirks mode - ret = d.body[method]; - } - } - return ret; -} - -function getScrollLeft(w) { - return getScroll(w); -} - -function getScrollTop(w) { - return getScroll(w, true); -} - -function getOffset(el) { - var pos = getClientPosition(el); - var doc = el.ownerDocument; - var w = doc.defaultView || doc.parentWindow; - pos.left += getScrollLeft(w); - pos.top += getScrollTop(w); - return pos; -} -function _getComputedStyle(elem, name, computedStyle_) { - var val = ''; - var d = elem.ownerDocument; - var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); - - // https://github.com/kissyteam/kissy/issues/61 - if (computedStyle) { - val = computedStyle.getPropertyValue(name) || computedStyle[name]; - } - - return val; -} - -var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i'); -var RE_POS = /^(top|right|bottom|left)$/; -var CURRENT_STYLE = 'currentStyle'; -var RUNTIME_STYLE = 'runtimeStyle'; -var LEFT = 'left'; -var PX = 'px'; - -function _getComputedStyleIE(elem, name) { - // currentStyle maybe null - // http://msdn.microsoft.com/en-us/library/ms535231.aspx - var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; - - // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值 - // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19 - // 在 ie 下不对,需要直接用 offset 方式 - // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了 - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // exclude left right for relativity - if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) { - // Remember the original values - var style = elem.style; - var left = style[LEFT]; - var rsLeft = elem[RUNTIME_STYLE][LEFT]; - - // prevent flashing of content - elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; - - // Put in the new values to get a computed value out - style[LEFT] = name === 'fontSize' ? '1em' : ret || 0; - ret = style.pixelLeft + PX; - - // Revert the changed values - style[LEFT] = left; - - elem[RUNTIME_STYLE][LEFT] = rsLeft; - } - return ret === '' ? 'auto' : ret; -} - -var getComputedStyleX = undefined; -if (typeof window !== 'undefined') { - getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE; -} - -function each(arr, fn) { - for (var i = 0; i < arr.length; i++) { - fn(arr[i]); - } -} - -function isBorderBoxFn(elem) { - return getComputedStyleX(elem, 'boxSizing') === 'border-box'; -} - -var BOX_MODELS = ['margin', 'border', 'padding']; -var CONTENT_INDEX = -1; -var PADDING_INDEX = 2; -var BORDER_INDEX = 1; -var MARGIN_INDEX = 0; - -function swap(elem, options, callback) { - var old = {}; - var style = elem.style; - var name = undefined; - - // Remember the old values, and insert the new ones - for (name in options) { - if (options.hasOwnProperty(name)) { - old[name] = style[name]; - style[name] = options[name]; - } - } - - callback.call(elem); - - // Revert the old values - for (name in options) { - if (options.hasOwnProperty(name)) { - style[name] = old[name]; - } - } -} - -function getPBMWidth(elem, props, which) { - var value = 0; - var prop = undefined; - var j = undefined; - var i = undefined; - for (j = 0; j < props.length; j++) { - prop = props[j]; - if (prop) { - for (i = 0; i < which.length; i++) { - var cssProp = undefined; - if (prop === 'border') { - cssProp = prop + which[i] + 'Width'; - } else { - cssProp = prop + which[i]; - } - value += parseFloat(getComputedStyleX(elem, cssProp)) || 0; - } - } - } - return value; -} - -/** - * A crude way of determining if an object is a window - * @member util - */ -function isWindow(obj) { - // must use == for ie8 - /* eslint eqeqeq:0 */ - return obj != null && obj == obj.window; -} - -var domUtils = {}; - -each(['Width', 'Height'], function (name) { - domUtils['doc' + name] = function (refWin) { - var d = refWin.document; - return Math.max( - // firefox chrome documentElement.scrollHeight< body.scrollHeight - // ie standard mode : documentElement.scrollHeight> body.scrollHeight - d.documentElement['scroll' + name], - // quirks : documentElement.scrollHeight 最大等于可视窗口多一点? - d.body['scroll' + name], domUtils['viewport' + name](d)); - }; - - domUtils['viewport' + name] = function (win) { - // pc browser includes scrollbar in window.innerWidth - var prop = 'client' + name; - var doc = win.document; - var body = doc.body; - var documentElement = doc.documentElement; - var documentElementProp = documentElement[prop]; - // 标准模式取 documentElement - // backcompat 取 body - return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp; - }; -}); - -/* - 得到元素的大小信息 - @param elem - @param name - @param {String} [extra] 'padding' : (css width) + padding - 'border' : (css width) + padding + border - 'margin' : (css width) + padding + border + margin - */ -function getWH(elem, name, extra) { - if (isWindow(elem)) { - return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem); - } else if (elem.nodeType === 9) { - return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem); - } - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight; - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem, computedStyle); - var cssBoxValue = 0; - if (borderBoxValue == null || borderBoxValue <= 0) { - borderBoxValue = undefined; - // Fall back to computed then un computed css if necessary - cssBoxValue = getComputedStyleX(elem, name); - if (cssBoxValue == null || Number(cssBoxValue) < 0) { - cssBoxValue = elem.style[name] || 0; - } - // Normalize '', auto, and prepare for extra - cssBoxValue = parseFloat(cssBoxValue) || 0; - } - if (extra === undefined) { - extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX; - } - var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox; - var val = borderBoxValue || cssBoxValue; - if (extra === CONTENT_INDEX) { - if (borderBoxValueOrIsBorderBox) { - return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle); - } - return cssBoxValue; - } - if (borderBoxValueOrIsBorderBox) { - var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle); - return val + (extra === BORDER_INDEX ? 0 : padding); - } - return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle); -} - -var cssShow = { - position: 'absolute', - visibility: 'hidden', - display: 'block' -}; - -// fix #119 : https://github.com/kissyteam/kissy/issues/119 -function getWHIgnoreDisplay(elem) { - var val = undefined; - var args = arguments; - // in case elem is window - // elem.offsetWidth === undefined - if (elem.offsetWidth !== 0) { - val = getWH.apply(undefined, args); - } else { - swap(elem, cssShow, function () { - val = getWH.apply(undefined, args); - }); - } - return val; -} - -function css(el, name, v) { - var value = v; - if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') { - for (var i in name) { - if (name.hasOwnProperty(i)) { - css(el, i, name[i]); - } - } - return undefined; - } - if (typeof value !== 'undefined') { - if (typeof value === 'number') { - value += 'px'; - } - el.style[name] = value; - return undefined; - } - return getComputedStyleX(el, name); -} - -each(['width', 'height'], function (name) { - var first = name.charAt(0).toUpperCase() + name.slice(1); - domUtils['outer' + first] = function (el, includeMargin) { - return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX); - }; - var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom']; - - domUtils[name] = function (elem, val) { - if (val !== undefined) { - if (elem) { - var computedStyle = getComputedStyleX(elem); - var isBorderBox = isBorderBoxFn(elem); - if (isBorderBox) { - val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle); - } - return css(elem, name, val); - } - return undefined; - } - return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX); - }; -}); - -// 设置 elem 相对 elem.ownerDocument 的坐标 -function setOffset(elem, offset) { - // set position first, in-case top/left are set even on static elem - if (css(elem, 'position') === 'static') { - elem.style.position = 'relative'; - } - - var old = getOffset(elem); - var ret = {}; - var current = undefined; - var key = undefined; - - for (key in offset) { - if (offset.hasOwnProperty(key)) { - current = parseFloat(css(elem, key)) || 0; - ret[key] = current + offset[key] - old[key]; - } - } - css(elem, ret); -} - -module.exports = _extends({ - getWindow: function getWindow(node) { - var doc = node.ownerDocument || node; - return doc.defaultView || doc.parentWindow; - }, - offset: function offset(el, value) { - if (typeof value !== 'undefined') { - setOffset(el, value); - } else { - return getOffset(el); - } - }, - - isWindow: isWindow, - each: each, - css: css, - clone: function clone(obj) { - var ret = {}; - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret[i] = obj[i]; - } - } - var overflow = obj.overflow; - if (overflow) { - for (var i in obj) { - if (obj.hasOwnProperty(i)) { - ret.overflow[i] = obj.overflow[i]; - } - } - } - return ret; - }, - scrollLeft: function scrollLeft(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollLeft(w); - } - window.scrollTo(v, getScrollTop(w)); - } else { - if (v === undefined) { - return w.scrollLeft; - } - w.scrollLeft = v; - } - }, - scrollTop: function scrollTop(w, v) { - if (isWindow(w)) { - if (v === undefined) { - return getScrollTop(w); - } - window.scrollTo(getScrollLeft(w), v); - } else { - if (v === undefined) { - return w.scrollTop; - } - w.scrollTop = v; - } - }, - - viewportWidth: 0, - viewportHeight: 0 -}, domUtils); - -/***/ }), -/* 121 */, -/* 122 */ +/***/ 133: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); /***/ }), -/* 123 */, -/* 124 */, -/* 125 */ + +/***/ 14: /***/ (function(module, exports) { -(function() { module.exports = this["wp"]["tokenList"]; }()); +(function() { module.exports = this["wp"]["blocks"]; }()); /***/ }), -/* 126 */, -/* 127 */, -/* 128 */, -/* 129 */, -/* 130 */, -/* 131 */, -/* 132 */, -/* 133 */, -/* 134 */, -/* 135 */, -/* 136 */, -/* 137 */, -/* 138 */, -/* 139 */, -/* 140 */, -/* 141 */, -/* 142 */, -/* 143 */, -/* 144 */, -/* 145 */, -/* 146 */, -/* 147 */, -/* 148 */, -/* 149 */, -/* 150 */, -/* 151 */, -/* 152 */, -/* 153 */, -/* 154 */, -/* 155 */, -/* 156 */, -/* 157 */, -/* 158 */, -/* 159 */, -/* 160 */, -/* 161 */, -/* 162 */, -/* 163 */, -/* 164 */, -/* 165 */, -/* 166 */, -/* 167 */, -/* 168 */, -/* 169 */, -/* 170 */, -/* 171 */, -/* 172 */, -/* 173 */, -/* 174 */, -/* 175 */, -/* 176 */, -/* 177 */, -/* 178 */, -/* 179 */, -/* 180 */, -/* 181 */, -/* 182 */, -/* 183 */, -/* 184 */, -/* 185 */, -/* 186 */, -/* 187 */, -/* 188 */, -/* 189 */, -/* 190 */, -/* 191 */, -/* 192 */ + +/***/ 15: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +/***/ }), + +/***/ 16: /***/ (function(module, exports, __webpack_require__) { -/*! - - diff v3.5.0 - -Software License Agreement (BSD License) - -Copyright (c) 2009-2015, Kevin Decker - -All rights reserved. - -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. - -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. - -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -@license +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames */ -(function webpackUniversalModuleDefinition(root, factory) { - if(true) - module.exports = factory(); - else {} -})(this, function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; +/* global define */ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { +(function () { + 'use strict'; -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; + var hasOwn = {}.hasOwnProperty; -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; + function classNames () { + var classes = []; -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; -/******/ // Flag the module as loaded -/******/ module.loaded = true; + var argType = typeof arg; -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } + return classes.join(' '); + } -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.canonicalize = exports.convertChangesToXML = exports.convertChangesToDMP = exports.merge = exports.parsePatch = exports.applyPatches = exports.applyPatch = exports.createPatch = exports.createTwoFilesPatch = exports.structuredPatch = exports.diffArrays = exports.diffJson = exports.diffCss = exports.diffSentences = exports.diffTrimmedLines = exports.diffLines = exports.diffWordsWithSpace = exports.diffWords = exports.diffChars = exports.Diff = undefined; - - /*istanbul ignore end*/var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_character = __webpack_require__(2) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_word = __webpack_require__(3) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_sentence = __webpack_require__(6) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_css = __webpack_require__(7) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_json = __webpack_require__(8) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_array = __webpack_require__(9) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_apply = __webpack_require__(10) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_merge = __webpack_require__(13) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_dmp = __webpack_require__(16) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_xml = __webpack_require__(17) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /* See LICENSE file for terms of use */ - - /* - * Text diff implementation. - * - * This library supports the following APIS: - * JsDiff.diffChars: Character by character diff - * JsDiff.diffWords: Word (as defined by \b regex) diff which ignores whitespace - * JsDiff.diffLines: Line based diff - * - * JsDiff.diffCss: Diff targeted at CSS content - * - * These methods are based on the implementation proposed in - * "An O(ND) Difference Algorithm and its Variations" (Myers, 1986). - * http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927 - */ - exports. /*istanbul ignore end*/Diff = _base2['default']; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffChars = _character.diffChars; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWords = _word.diffWords; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = _word.diffWordsWithSpace; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffLines = _line.diffLines; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = _line.diffTrimmedLines; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffSentences = _sentence.diffSentences; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffCss = _css.diffCss; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffJson = _json.diffJson; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffArrays = _array.diffArrays; - /*istanbul ignore start*/exports. /*istanbul ignore end*/structuredPatch = _create.structuredPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = _create.createTwoFilesPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = _create.createPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatch = _apply.applyPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = _apply.applyPatches; - /*istanbul ignore start*/exports. /*istanbul ignore end*/parsePatch = _parse.parsePatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = _merge.merge; - /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToDMP = _dmp.convertChangesToDMP; - /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToXML = _xml.convertChangesToXML; - /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = _json.canonicalize; - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJEaWZmIiwiZGlmZkNoYXJzIiwiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImRpZmZTZW50ZW5jZXMiLCJkaWZmQ3NzIiwiZGlmZkpzb24iLCJkaWZmQXJyYXlzIiwic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwiYXBwbHlQYXRjaCIsImFwcGx5UGF0Y2hlcyIsInBhcnNlUGF0Y2giLCJtZXJnZSIsImNvbnZlcnRDaGFuZ2VzVG9ETVAiLCJjb252ZXJ0Q2hhbmdlc1RvWE1MIiwiY2Fub25pY2FsaXplIl0sIm1hcHBpbmdzIjoiOzs7Ozt1QkFnQkE7Ozs7dUJBQ0E7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBRUE7O0FBQ0E7O0FBRUE7O0FBRUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBRUE7O0FBQ0E7Ozs7QUFqQ0E7O0FBRUE7Ozs7Ozs7Ozs7Ozs7O2dDQWtDRUEsSTt5REFFQUMsUzt5REFDQUMsUzt5REFDQUMsa0I7eURBQ0FDLFM7eURBQ0FDLGdCO3lEQUNBQyxhO3lEQUVBQyxPO3lEQUNBQyxRO3lEQUVBQyxVO3lEQUVBQyxlO3lEQUNBQyxtQjt5REFDQUMsVzt5REFDQUMsVTt5REFDQUMsWTt5REFDQUMsVTt5REFDQUMsSzt5REFDQUMsbUI7eURBQ0FDLG1CO3lEQUNBQyxZIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogU2VlIExJQ0VOU0UgZmlsZSBmb3IgdGVybXMgb2YgdXNlICovXG5cbi8qXG4gKiBUZXh0IGRpZmYgaW1wbGVtZW50YXRpb24uXG4gKlxuICogVGhpcyBsaWJyYXJ5IHN1cHBvcnRzIHRoZSBmb2xsb3dpbmcgQVBJUzpcbiAqIEpzRGlmZi5kaWZmQ2hhcnM6IENoYXJhY3RlciBieSBjaGFyYWN0ZXIgZGlmZlxuICogSnNEaWZmLmRpZmZXb3JkczogV29yZCAoYXMgZGVmaW5lZCBieSBcXGIgcmVnZXgpIGRpZmYgd2hpY2ggaWdub3JlcyB3aGl0ZXNwYWNlXG4gKiBKc0RpZmYuZGlmZkxpbmVzOiBMaW5lIGJhc2VkIGRpZmZcbiAqXG4gKiBKc0RpZmYuZGlmZkNzczogRGlmZiB0YXJnZXRlZCBhdCBDU1MgY29udGVudFxuICpcbiAqIFRoZXNlIG1ldGhvZHMgYXJlIGJhc2VkIG9uIHRoZSBpbXBsZW1lbnRhdGlvbiBwcm9wb3NlZCBpblxuICogXCJBbiBPKE5EKSBEaWZmZXJlbmNlIEFsZ29yaXRobSBhbmQgaXRzIFZhcmlhdGlvbnNcIiAoTXllcnMsIDE5ODYpLlxuICogaHR0cDovL2NpdGVzZWVyeC5pc3QucHN1LmVkdS92aWV3ZG9jL3N1bW1hcnk/ZG9pPTEwLjEuMS40LjY5MjdcbiAqL1xuaW1wb3J0IERpZmYgZnJvbSAnLi9kaWZmL2Jhc2UnO1xuaW1wb3J0IHtkaWZmQ2hhcnN9IGZyb20gJy4vZGlmZi9jaGFyYWN0ZXInO1xuaW1wb3J0IHtkaWZmV29yZHMsIGRpZmZXb3Jkc1dpdGhTcGFjZX0gZnJvbSAnLi9kaWZmL3dvcmQnO1xuaW1wb3J0IHtkaWZmTGluZXMsIGRpZmZUcmltbWVkTGluZXN9IGZyb20gJy4vZGlmZi9saW5lJztcbmltcG9ydCB7ZGlmZlNlbnRlbmNlc30gZnJvbSAnLi9kaWZmL3NlbnRlbmNlJztcblxuaW1wb3J0IHtkaWZmQ3NzfSBmcm9tICcuL2RpZmYvY3NzJztcbmltcG9ydCB7ZGlmZkpzb24sIGNhbm9uaWNhbGl6ZX0gZnJvbSAnLi9kaWZmL2pzb24nO1xuXG5pbXBvcnQge2RpZmZBcnJheXN9IGZyb20gJy4vZGlmZi9hcnJheSc7XG5cbmltcG9ydCB7YXBwbHlQYXRjaCwgYXBwbHlQYXRjaGVzfSBmcm9tICcuL3BhdGNoL2FwcGx5JztcbmltcG9ydCB7cGFyc2VQYXRjaH0gZnJvbSAnLi9wYXRjaC9wYXJzZSc7XG5pbXBvcnQge21lcmdlfSBmcm9tICcuL3BhdGNoL21lcmdlJztcbmltcG9ydCB7c3RydWN0dXJlZFBhdGNoLCBjcmVhdGVUd29GaWxlc1BhdGNoLCBjcmVhdGVQYXRjaH0gZnJvbSAnLi9wYXRjaC9jcmVhdGUnO1xuXG5pbXBvcnQge2NvbnZlcnRDaGFuZ2VzVG9ETVB9IGZyb20gJy4vY29udmVydC9kbXAnO1xuaW1wb3J0IHtjb252ZXJ0Q2hhbmdlc1RvWE1MfSBmcm9tICcuL2NvbnZlcnQveG1sJztcblxuZXhwb3J0IHtcbiAgRGlmZixcblxuICBkaWZmQ2hhcnMsXG4gIGRpZmZXb3JkcyxcbiAgZGlmZldvcmRzV2l0aFNwYWNlLFxuICBkaWZmTGluZXMsXG4gIGRpZmZUcmltbWVkTGluZXMsXG4gIGRpZmZTZW50ZW5jZXMsXG5cbiAgZGlmZkNzcyxcbiAgZGlmZkpzb24sXG5cbiAgZGlmZkFycmF5cyxcblxuICBzdHJ1Y3R1cmVkUGF0Y2gsXG4gIGNyZWF0ZVR3b0ZpbGVzUGF0Y2gsXG4gIGNyZWF0ZVBhdGNoLFxuICBhcHBseVBhdGNoLFxuICBhcHBseVBhdGNoZXMsXG4gIHBhcnNlUGF0Y2gsXG4gIG1lcmdlLFxuICBjb252ZXJ0Q2hhbmdlc1RvRE1QLFxuICBjb252ZXJ0Q2hhbmdlc1RvWE1MLFxuICBjYW5vbmljYWxpemVcbn07XG4iXX0= + if ( true && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return classNames; + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} +}()); /***/ }), -/* 1 */ + +/***/ 17: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { + arr2[i] = arr[i]; + } + + return arr2; + } +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(34); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance"); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; }); + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 18: /***/ (function(module, exports) { - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports['default'] = /*istanbul ignore end*/Diff; - function Diff() {} - - Diff.prototype = { - /*istanbul ignore start*/ /*istanbul ignore end*/diff: function diff(oldString, newString) { - /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - - var callback = options.callback; - if (typeof options === 'function') { - callback = options; - options = {}; - } - this.options = options; - - var self = this; - - function done(value) { - if (callback) { - setTimeout(function () { - callback(undefined, value); - }, 0); - return true; - } else { - return value; - } - } - - // Allow subclasses to massage the input prior to running - oldString = this.castInput(oldString); - newString = this.castInput(newString); - - oldString = this.removeEmpty(this.tokenize(oldString)); - newString = this.removeEmpty(this.tokenize(newString)); - - var newLen = newString.length, - oldLen = oldString.length; - var editLength = 1; - var maxEditLength = newLen + oldLen; - var bestPath = [{ newPos: -1, components: [] }]; - - // Seed editLength = 0, i.e. the content starts with the same values - var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0); - if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) { - // Identity per the equality and tokenizer - return done([{ value: this.join(newString), count: newString.length }]); - } - - // Main worker method. checks all permutations of a given edit length for acceptance. - function execEditLength() { - for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { - var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - var addPath = bestPath[diagonalPath - 1], - removePath = bestPath[diagonalPath + 1], - _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; - if (addPath) { - // No one else is going to attempt to use this value, clear it - bestPath[diagonalPath - 1] = undefined; - } - - var canAdd = addPath && addPath.newPos + 1 < newLen, - canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen; - if (!canAdd && !canRemove) { - // If this path is a terminal then prune - bestPath[diagonalPath] = undefined; - continue; - } - - // Select the diagonal that we want to branch from. We select the prior - // path whose position in the new string is the farthest from the origin - // and does not pass the bounds of the diff graph - if (!canAdd || canRemove && addPath.newPos < removePath.newPos) { - basePath = clonePath(removePath); - self.pushComponent(basePath.components, undefined, true); - } else { - basePath = addPath; // No need to clone, we've pulled it from the list - basePath.newPos++; - self.pushComponent(basePath.components, true, undefined); - } - - _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); - - // If we have hit the end of both strings, then we are done - if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) { - return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken)); - } else { - // Otherwise track this path as a potential candidate and continue. - bestPath[diagonalPath] = basePath; - } - } - - editLength++; - } - - // Performs the length of edit iteration. Is a bit fugly as this has to support the - // sync and async mode which is never fun. Loops over execEditLength until a value - // is produced. - if (callback) { - (function exec() { - setTimeout(function () { - // This should not happen, but we want to be safe. - /* istanbul ignore next */ - if (editLength > maxEditLength) { - return callback(); - } - - if (!execEditLength()) { - exec(); - } - }, 0); - })(); - } else { - while (editLength <= maxEditLength) { - var ret = execEditLength(); - if (ret) { - return ret; - } - } - } - }, - /*istanbul ignore start*/ /*istanbul ignore end*/pushComponent: function pushComponent(components, added, removed) { - var last = components[components.length - 1]; - if (last && last.added === added && last.removed === removed) { - // We need to clone here as the component clone operation is just - // as shallow array clone - components[components.length - 1] = { count: last.count + 1, added: added, removed: removed }; - } else { - components.push({ count: 1, added: added, removed: removed }); - } - }, - /*istanbul ignore start*/ /*istanbul ignore end*/extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) { - var newLen = newString.length, - oldLen = oldString.length, - newPos = basePath.newPos, - oldPos = newPos - diagonalPath, - commonCount = 0; - while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) { - newPos++; - oldPos++; - commonCount++; - } - - if (commonCount) { - basePath.components.push({ count: commonCount }); - } - - basePath.newPos = newPos; - return oldPos; - }, - /*istanbul ignore start*/ /*istanbul ignore end*/equals: function equals(left, right) { - if (this.options.comparator) { - return this.options.comparator(left, right); - } else { - return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase(); - } - }, - /*istanbul ignore start*/ /*istanbul ignore end*/removeEmpty: function removeEmpty(array) { - var ret = []; - for (var i = 0; i < array.length; i++) { - if (array[i]) { - ret.push(array[i]); - } - } - return ret; - }, - /*istanbul ignore start*/ /*istanbul ignore end*/castInput: function castInput(value) { - return value; - }, - /*istanbul ignore start*/ /*istanbul ignore end*/tokenize: function tokenize(value) { - return value.split(''); - }, - /*istanbul ignore start*/ /*istanbul ignore end*/join: function join(chars) { - return chars.join(''); - } - }; - - function buildValues(diff, components, newString, oldString, useLongestToken) { - var componentPos = 0, - componentLen = components.length, - newPos = 0, - oldPos = 0; - - for (; componentPos < componentLen; componentPos++) { - var component = components[componentPos]; - if (!component.removed) { - if (!component.added && useLongestToken) { - var value = newString.slice(newPos, newPos + component.count); - value = value.map(function (value, i) { - var oldValue = oldString[oldPos + i]; - return oldValue.length > value.length ? oldValue : value; - }); - - component.value = diff.join(value); - } else { - component.value = diff.join(newString.slice(newPos, newPos + component.count)); - } - newPos += component.count; - - // Common case - if (!component.added) { - oldPos += component.count; - } - } else { - component.value = diff.join(oldString.slice(oldPos, oldPos + component.count)); - oldPos += component.count; - - // Reverse add and remove so removes are output first to match common convention - // The diffing algorithm is tied to add then remove output and this is the simplest - // route to get the desired output with minimal overhead. - if (componentPos && components[componentPos - 1].added) { - var tmp = components[componentPos - 1]; - components[componentPos - 1] = components[componentPos]; - components[componentPos] = tmp; - } - } - } - - // Special case handle for when one terminal is ignored (i.e. whitespace). - // For this case we merge the terminal into the prior string and drop the change. - // This is only available for string mode. - var lastComponent = components[componentLen - 1]; - if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) { - components[componentLen - 2].value += lastComponent.value; - components.pop(); - } - - return components; - } - - function clonePath(path) { - return { newPos: path.newPos, components: path.components.slice(0) }; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXMiOlsiRGlmZiIsInByb3RvdHlwZSIsImRpZmYiLCJvbGRTdHJpbmciLCJuZXdTdHJpbmciLCJvcHRpb25zIiwiY2FsbGJhY2siLCJzZWxmIiwiZG9uZSIsInZhbHVlIiwic2V0VGltZW91dCIsInVuZGVmaW5lZCIsImNhc3RJbnB1dCIsInJlbW92ZUVtcHR5IiwidG9rZW5pemUiLCJuZXdMZW4iLCJsZW5ndGgiLCJvbGRMZW4iLCJlZGl0TGVuZ3RoIiwibWF4RWRpdExlbmd0aCIsImJlc3RQYXRoIiwibmV3UG9zIiwiY29tcG9uZW50cyIsIm9sZFBvcyIsImV4dHJhY3RDb21tb24iLCJqb2luIiwiY291bnQiLCJleGVjRWRpdExlbmd0aCIsImRpYWdvbmFsUGF0aCIsImJhc2VQYXRoIiwiYWRkUGF0aCIsInJlbW92ZVBhdGgiLCJjYW5BZGQiLCJjYW5SZW1vdmUiLCJjbG9uZVBhdGgiLCJwdXNoQ29tcG9uZW50IiwiYnVpbGRWYWx1ZXMiLCJ1c2VMb25nZXN0VG9rZW4iLCJleGVjIiwicmV0IiwiYWRkZWQiLCJyZW1vdmVkIiwibGFzdCIsInB1c2giLCJjb21tb25Db3VudCIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsImNvbXBhcmF0b3IiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJhcnJheSIsImkiLCJzcGxpdCIsImNoYXJzIiwiY29tcG9uZW50UG9zIiwiY29tcG9uZW50TGVuIiwiY29tcG9uZW50Iiwic2xpY2UiLCJtYXAiLCJvbGRWYWx1ZSIsInRtcCIsImxhc3RDb21wb25lbnQiLCJwb3AiLCJwYXRoIl0sIm1hcHBpbmdzIjoiOzs7NENBQXdCQSxJO0FBQVQsU0FBU0EsSUFBVCxHQUFnQixDQUFFOztBQUVqQ0EsS0FBS0MsU0FBTCxHQUFpQjtBQUFBLG1EQUNmQyxJQURlLGdCQUNWQyxTQURVLEVBQ0NDLFNBREQsRUFDMEI7QUFBQSx3REFBZEMsT0FBYyx1RUFBSixFQUFJOztBQUN2QyxRQUFJQyxXQUFXRCxRQUFRQyxRQUF2QjtBQUNBLFFBQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsaUJBQVdELE9BQVg7QUFDQUEsZ0JBQVUsRUFBVjtBQUNEO0FBQ0QsU0FBS0EsT0FBTCxHQUFlQSxPQUFmOztBQUVBLFFBQUlFLE9BQU8sSUFBWDs7QUFFQSxhQUFTQyxJQUFULENBQWNDLEtBQWQsRUFBcUI7QUFDbkIsVUFBSUgsUUFBSixFQUFjO0FBQ1pJLG1CQUFXLFlBQVc7QUFBRUosbUJBQVNLLFNBQVQsRUFBb0JGLEtBQXBCO0FBQTZCLFNBQXJELEVBQXVELENBQXZEO0FBQ0EsZUFBTyxJQUFQO0FBQ0QsT0FIRCxNQUdPO0FBQ0wsZUFBT0EsS0FBUDtBQUNEO0FBQ0Y7O0FBRUQ7QUFDQU4sZ0JBQVksS0FBS1MsU0FBTCxDQUFlVCxTQUFmLENBQVo7QUFDQUMsZ0JBQVksS0FBS1EsU0FBTCxDQUFlUixTQUFmLENBQVo7O0FBRUFELGdCQUFZLEtBQUtVLFdBQUwsQ0FBaUIsS0FBS0MsUUFBTCxDQUFjWCxTQUFkLENBQWpCLENBQVo7QUFDQUMsZ0JBQVksS0FBS1MsV0FBTCxDQUFpQixLQUFLQyxRQUFMLENBQWNWLFNBQWQsQ0FBakIsQ0FBWjs7QUFFQSxRQUFJVyxTQUFTWCxVQUFVWSxNQUF2QjtBQUFBLFFBQStCQyxTQUFTZCxVQUFVYSxNQUFsRDtBQUNBLFFBQUlFLGFBQWEsQ0FBakI7QUFDQSxRQUFJQyxnQkFBZ0JKLFNBQVNFLE1BQTdCO0FBQ0EsUUFBSUcsV0FBVyxDQUFDLEVBQUVDLFFBQVEsQ0FBQyxDQUFYLEVBQWNDLFlBQVksRUFBMUIsRUFBRCxDQUFmOztBQUVBO0FBQ0EsUUFBSUMsU0FBUyxLQUFLQyxhQUFMLENBQW1CSixTQUFTLENBQVQsQ0FBbkIsRUFBZ0NoQixTQUFoQyxFQUEyQ0QsU0FBM0MsRUFBc0QsQ0FBdEQsQ0FBYjtBQUNBLFFBQUlpQixTQUFTLENBQVQsRUFBWUMsTUFBWixHQUFxQixDQUFyQixJQUEwQk4sTUFBMUIsSUFBb0NRLFNBQVMsQ0FBVCxJQUFjTixNQUF0RCxFQUE4RDtBQUM1RDtBQUNBLGFBQU9ULEtBQUssQ0FBQyxFQUFDQyxPQUFPLEtBQUtnQixJQUFMLENBQVVyQixTQUFWLENBQVIsRUFBOEJzQixPQUFPdEIsVUFBVVksTUFBL0MsRUFBRCxDQUFMLENBQVA7QUFDRDs7QUFFRDtBQUNBLGFBQVNXLGNBQVQsR0FBMEI7QUFDeEIsV0FBSyxJQUFJQyxlQUFlLENBQUMsQ0FBRCxHQUFLVixVQUE3QixFQUF5Q1UsZ0JBQWdCVixVQUF6RCxFQUFxRVUsZ0JBQWdCLENBQXJGLEVBQXdGO0FBQ3RGLFlBQUlDLDBDQUFKO0FBQ0EsWUFBSUMsVUFBVVYsU0FBU1EsZUFBZSxDQUF4QixDQUFkO0FBQUEsWUFDSUcsYUFBYVgsU0FBU1EsZUFBZSxDQUF4QixDQURqQjtBQUFBLFlBRUlMLFVBQVMsQ0FBQ1EsYUFBYUEsV0FBV1YsTUFBeEIsR0FBaUMsQ0FBbEMsSUFBdUNPLFlBRnBEO0FBR0EsWUFBSUUsT0FBSixFQUFhO0FBQ1g7QUFDQVYsbUJBQVNRLGVBQWUsQ0FBeEIsSUFBNkJqQixTQUE3QjtBQUNEOztBQUVELFlBQUlxQixTQUFTRixXQUFXQSxRQUFRVCxNQUFSLEdBQWlCLENBQWpCLEdBQXFCTixNQUE3QztBQUFBLFlBQ0lrQixZQUFZRixjQUFjLEtBQUtSLE9BQW5CLElBQTZCQSxVQUFTTixNQUR0RDtBQUVBLFlBQUksQ0FBQ2UsTUFBRCxJQUFXLENBQUNDLFNBQWhCLEVBQTJCO0FBQ3pCO0FBQ0FiLG1CQUFTUSxZQUFULElBQXlCakIsU0FBekI7QUFDQTtBQUNEOztBQUVEO0FBQ0E7QUFDQTtBQUNBLFlBQUksQ0FBQ3FCLE1BQUQsSUFBWUMsYUFBYUgsUUFBUVQsTUFBUixHQUFpQlUsV0FBV1YsTUFBekQsRUFBa0U7QUFDaEVRLHFCQUFXSyxVQUFVSCxVQUFWLENBQVg7QUFDQXhCLGVBQUs0QixhQUFMLENBQW1CTixTQUFTUCxVQUE1QixFQUF3Q1gsU0FBeEMsRUFBbUQsSUFBbkQ7QUFDRCxTQUhELE1BR087QUFDTGtCLHFCQUFXQyxPQUFYLENBREssQ0FDaUI7QUFDdEJELG1CQUFTUixNQUFUO0FBQ0FkLGVBQUs0QixhQUFMLENBQW1CTixTQUFTUCxVQUE1QixFQUF3QyxJQUF4QyxFQUE4Q1gsU0FBOUM7QUFDRDs7QUFFRFksa0JBQVNoQixLQUFLaUIsYUFBTCxDQUFtQkssUUFBbkIsRUFBNkJ6QixTQUE3QixFQUF3Q0QsU0FBeEMsRUFBbUR5QixZQUFuRCxDQUFUOztBQUVBO0FBQ0EsWUFBSUMsU0FBU1IsTUFBVCxHQUFrQixDQUFsQixJQUF1Qk4sTUFBdkIsSUFBaUNRLFVBQVMsQ0FBVCxJQUFjTixNQUFuRCxFQUEyRDtBQUN6RCxpQkFBT1QsS0FBSzRCLFlBQVk3QixJQUFaLEVBQWtCc0IsU0FBU1AsVUFBM0IsRUFBdUNsQixTQUF2QyxFQUFrREQsU0FBbEQsRUFBNkRJLEtBQUs4QixlQUFsRSxDQUFMLENBQVA7QUFDRCxTQUZELE1BRU87QUFDTDtBQUNBakIsbUJBQVNRLFlBQVQsSUFBeUJDLFFBQXpCO0FBQ0Q7QUFDRjs7QUFFRFg7QUFDRDs7QUFFRDtBQUNBO0FBQ0E7QUFDQSxRQUFJWixRQUFKLEVBQWM7QUFDWCxnQkFBU2dDLElBQVQsR0FBZ0I7QUFDZjVCLG1CQUFXLFlBQVc7QUFDcEI7QUFDQTtBQUNBLGNBQUlRLGFBQWFDLGFBQWpCLEVBQWdDO0FBQzlCLG1CQUFPYixVQUFQO0FBQ0Q7O0FBRUQsY0FBSSxDQUFDcUIsZ0JBQUwsRUFBdUI7QUFDckJXO0FBQ0Q7QUFDRixTQVZELEVBVUcsQ0FWSDtBQVdELE9BWkEsR0FBRDtBQWFELEtBZEQsTUFjTztBQUNMLGFBQU9wQixjQUFjQyxhQUFyQixFQUFvQztBQUNsQyxZQUFJb0IsTUFBTVosZ0JBQVY7QUFDQSxZQUFJWSxHQUFKLEVBQVM7QUFDUCxpQkFBT0EsR0FBUDtBQUNEO0FBQ0Y7QUFDRjtBQUNGLEdBOUdjO0FBQUEsbURBZ0hmSixhQWhIZSx5QkFnSERiLFVBaEhDLEVBZ0hXa0IsS0FoSFgsRUFnSGtCQyxPQWhIbEIsRUFnSDJCO0FBQ3hDLFFBQUlDLE9BQU9wQixXQUFXQSxXQUFXTixNQUFYLEdBQW9CLENBQS9CLENBQVg7QUFDQSxRQUFJMEIsUUFBUUEsS0FBS0YsS0FBTCxLQUFlQSxLQUF2QixJQUFnQ0UsS0FBS0QsT0FBTCxLQUFpQkEsT0FBckQsRUFBOEQ7QUFDNUQ7QUFDQTtBQUNBbkIsaUJBQVdBLFdBQVdOLE1BQVgsR0FBb0IsQ0FBL0IsSUFBb0MsRUFBQ1UsT0FBT2dCLEtBQUtoQixLQUFMLEdBQWEsQ0FBckIsRUFBd0JjLE9BQU9BLEtBQS9CLEVBQXNDQyxTQUFTQSxPQUEvQyxFQUFwQztBQUNELEtBSkQsTUFJTztBQUNMbkIsaUJBQVdxQixJQUFYLENBQWdCLEVBQUNqQixPQUFPLENBQVIsRUFBV2MsT0FBT0EsS0FBbEIsRUFBeUJDLFNBQVNBLE9BQWxDLEVBQWhCO0FBQ0Q7QUFDRixHQXpIYztBQUFBLG1EQTBIZmpCLGFBMUhlLHlCQTBIREssUUExSEMsRUEwSFN6QixTQTFIVCxFQTBIb0JELFNBMUhwQixFQTBIK0J5QixZQTFIL0IsRUEwSDZDO0FBQzFELFFBQUliLFNBQVNYLFVBQVVZLE1BQXZCO0FBQUEsUUFDSUMsU0FBU2QsVUFBVWEsTUFEdkI7QUFBQSxRQUVJSyxTQUFTUSxTQUFTUixNQUZ0QjtBQUFBLFFBR0lFLFNBQVNGLFNBQVNPLFlBSHRCO0FBQUEsUUFLSWdCLGNBQWMsQ0FMbEI7QUFNQSxXQUFPdkIsU0FBUyxDQUFULEdBQWFOLE1BQWIsSUFBdUJRLFNBQVMsQ0FBVCxHQUFhTixNQUFwQyxJQUE4QyxLQUFLNEIsTUFBTCxDQUFZekMsVUFBVWlCLFNBQVMsQ0FBbkIsQ0FBWixFQUFtQ2xCLFVBQVVvQixTQUFTLENBQW5CLENBQW5DLENBQXJELEVBQWdIO0FBQzlHRjtBQUNBRTtBQUNBcUI7QUFDRDs7QUFFRCxRQUFJQSxXQUFKLEVBQWlCO0FBQ2ZmLGVBQVNQLFVBQVQsQ0FBb0JxQixJQUFwQixDQUF5QixFQUFDakIsT0FBT2tCLFdBQVIsRUFBekI7QUFDRDs7QUFFRGYsYUFBU1IsTUFBVCxHQUFrQkEsTUFBbEI7QUFDQSxXQUFPRSxNQUFQO0FBQ0QsR0E3SWM7QUFBQSxtREErSWZzQixNQS9JZSxrQkErSVJDLElBL0lRLEVBK0lGQyxLQS9JRSxFQStJSztBQUNsQixRQUFJLEtBQUsxQyxPQUFMLENBQWEyQyxVQUFqQixFQUE2QjtBQUMzQixhQUFPLEtBQUszQyxPQUFMLENBQWEyQyxVQUFiLENBQXdCRixJQUF4QixFQUE4QkMsS0FBOUIsQ0FBUDtBQUNELEtBRkQsTUFFTztBQUNMLGFBQU9ELFNBQVNDLEtBQVQsSUFDRCxLQUFLMUMsT0FBTCxDQUFhNEMsVUFBYixJQUEyQkgsS0FBS0ksV0FBTCxPQUF1QkgsTUFBTUcsV0FBTixFQUR4RDtBQUVEO0FBQ0YsR0F0SmM7QUFBQSxtREF1SmZyQyxXQXZKZSx1QkF1SkhzQyxLQXZKRyxFQXVKSTtBQUNqQixRQUFJWixNQUFNLEVBQVY7QUFDQSxTQUFLLElBQUlhLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsTUFBTW5DLE1BQTFCLEVBQWtDb0MsR0FBbEMsRUFBdUM7QUFDckMsVUFBSUQsTUFBTUMsQ0FBTixDQUFKLEVBQWM7QUFDWmIsWUFBSUksSUFBSixDQUFTUSxNQUFNQyxDQUFOLENBQVQ7QUFDRDtBQUNGO0FBQ0QsV0FBT2IsR0FBUDtBQUNELEdBL0pjO0FBQUEsbURBZ0tmM0IsU0FoS2UscUJBZ0tMSCxLQWhLSyxFQWdLRTtBQUNmLFdBQU9BLEtBQVA7QUFDRCxHQWxLYztBQUFBLG1EQW1LZkssUUFuS2Usb0JBbUtOTCxLQW5LTSxFQW1LQztBQUNkLFdBQU9BLE1BQU00QyxLQUFOLENBQVksRUFBWixDQUFQO0FBQ0QsR0FyS2M7QUFBQSxtREFzS2Y1QixJQXRLZSxnQkFzS1Y2QixLQXRLVSxFQXNLSDtBQUNWLFdBQU9BLE1BQU03QixJQUFOLENBQVcsRUFBWCxDQUFQO0FBQ0Q7QUF4S2MsQ0FBakI7O0FBMktBLFNBQVNXLFdBQVQsQ0FBcUJsQyxJQUFyQixFQUEyQm9CLFVBQTNCLEVBQXVDbEIsU0FBdkMsRUFBa0RELFNBQWxELEVBQTZEa0MsZUFBN0QsRUFBOEU7QUFDNUUsTUFBSWtCLGVBQWUsQ0FBbkI7QUFBQSxNQUNJQyxlQUFlbEMsV0FBV04sTUFEOUI7QUFBQSxNQUVJSyxTQUFTLENBRmI7QUFBQSxNQUdJRSxTQUFTLENBSGI7O0FBS0EsU0FBT2dDLGVBQWVDLFlBQXRCLEVBQW9DRCxjQUFwQyxFQUFvRDtBQUNsRCxRQUFJRSxZQUFZbkMsV0FBV2lDLFlBQVgsQ0FBaEI7QUFDQSxRQUFJLENBQUNFLFVBQVVoQixPQUFmLEVBQXdCO0FBQ3RCLFVBQUksQ0FBQ2dCLFVBQVVqQixLQUFYLElBQW9CSCxlQUF4QixFQUF5QztBQUN2QyxZQUFJNUIsUUFBUUwsVUFBVXNELEtBQVYsQ0FBZ0JyQyxNQUFoQixFQUF3QkEsU0FBU29DLFVBQVUvQixLQUEzQyxDQUFaO0FBQ0FqQixnQkFBUUEsTUFBTWtELEdBQU4sQ0FBVSxVQUFTbEQsS0FBVCxFQUFnQjJDLENBQWhCLEVBQW1CO0FBQ25DLGNBQUlRLFdBQVd6RCxVQUFVb0IsU0FBUzZCLENBQW5CLENBQWY7QUFDQSxpQkFBT1EsU0FBUzVDLE1BQVQsR0FBa0JQLE1BQU1PLE1BQXhCLEdBQWlDNEMsUUFBakMsR0FBNENuRCxLQUFuRDtBQUNELFNBSE8sQ0FBUjs7QUFLQWdELGtCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVWhCLEtBQVYsQ0FBbEI7QUFDRCxPQVJELE1BUU87QUFDTGdELGtCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVXJCLFVBQVVzRCxLQUFWLENBQWdCckMsTUFBaEIsRUFBd0JBLFNBQVNvQyxVQUFVL0IsS0FBM0MsQ0FBVixDQUFsQjtBQUNEO0FBQ0RMLGdCQUFVb0MsVUFBVS9CLEtBQXBCOztBQUVBO0FBQ0EsVUFBSSxDQUFDK0IsVUFBVWpCLEtBQWYsRUFBc0I7QUFDcEJqQixrQkFBVWtDLFVBQVUvQixLQUFwQjtBQUNEO0FBQ0YsS0FsQkQsTUFrQk87QUFDTCtCLGdCQUFVaEQsS0FBVixHQUFrQlAsS0FBS3VCLElBQUwsQ0FBVXRCLFVBQVV1RCxLQUFWLENBQWdCbkMsTUFBaEIsRUFBd0JBLFNBQVNrQyxVQUFVL0IsS0FBM0MsQ0FBVixDQUFsQjtBQUNBSCxnQkFBVWtDLFVBQVUvQixLQUFwQjs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxVQUFJNkIsZ0JBQWdCakMsV0FBV2lDLGVBQWUsQ0FBMUIsRUFBNkJmLEtBQWpELEVBQXdEO0FBQ3RELFlBQUlxQixNQUFNdkMsV0FBV2lDLGVBQWUsQ0FBMUIsQ0FBVjtBQUNBakMsbUJBQVdpQyxlQUFlLENBQTFCLElBQStCakMsV0FBV2lDLFlBQVgsQ0FBL0I7QUFDQWpDLG1CQUFXaUMsWUFBWCxJQUEyQk0sR0FBM0I7QUFDRDtBQUNGO0FBQ0Y7O0FBRUQ7QUFDQTtBQUNBO0FBQ0EsTUFBSUMsZ0JBQWdCeEMsV0FBV2tDLGVBQWUsQ0FBMUIsQ0FBcEI7QUFDQSxNQUFJQSxlQUFlLENBQWYsSUFDRyxPQUFPTSxjQUFjckQsS0FBckIsS0FBK0IsUUFEbEMsS0FFSXFELGNBQWN0QixLQUFkLElBQXVCc0IsY0FBY3JCLE9BRnpDLEtBR0d2QyxLQUFLMkMsTUFBTCxDQUFZLEVBQVosRUFBZ0JpQixjQUFjckQsS0FBOUIsQ0FIUCxFQUc2QztBQUMzQ2EsZUFBV2tDLGVBQWUsQ0FBMUIsRUFBNkIvQyxLQUE3QixJQUFzQ3FELGNBQWNyRCxLQUFwRDtBQUNBYSxlQUFXeUMsR0FBWDtBQUNEOztBQUVELFNBQU96QyxVQUFQO0FBQ0Q7O0FBRUQsU0FBU1ksU0FBVCxDQUFtQjhCLElBQW5CLEVBQXlCO0FBQ3ZCLFNBQU8sRUFBRTNDLFFBQVEyQyxLQUFLM0MsTUFBZixFQUF1QkMsWUFBWTBDLEtBQUsxQyxVQUFMLENBQWdCb0MsS0FBaEIsQ0FBc0IsQ0FBdEIsQ0FBbkMsRUFBUDtBQUNEIiwiZmlsZSI6ImJhc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBEaWZmKCkge31cblxuRGlmZi5wcm90b3R5cGUgPSB7XG4gIGRpZmYob2xkU3RyaW5nLCBuZXdTdHJpbmcsIG9wdGlvbnMgPSB7fSkge1xuICAgIGxldCBjYWxsYmFjayA9IG9wdGlvbnMuY2FsbGJhY2s7XG4gICAgaWYgKHR5cGVvZiBvcHRpb25zID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBjYWxsYmFjayA9IG9wdGlvbnM7XG4gICAgICBvcHRpb25zID0ge307XG4gICAgfVxuICAgIHRoaXMub3B0aW9ucyA9IG9wdGlvbnM7XG5cbiAgICBsZXQgc2VsZiA9IHRoaXM7XG5cbiAgICBmdW5jdGlvbiBkb25lKHZhbHVlKSB7XG4gICAgICBpZiAoY2FsbGJhY2spIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHsgY2FsbGJhY2sodW5kZWZpbmVkLCB2YWx1ZSk7IH0sIDApO1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAvLyBBbGxvdyBzdWJjbGFzc2VzIHRvIG1hc3NhZ2UgdGhlIGlucHV0IHByaW9yIHRvIHJ1bm5pbmdcbiAgICBvbGRTdHJpbmcgPSB0aGlzLmNhc3RJbnB1dChvbGRTdHJpbmcpO1xuICAgIG5ld1N0cmluZyA9IHRoaXMuY2FzdElucHV0KG5ld1N0cmluZyk7XG5cbiAgICBvbGRTdHJpbmcgPSB0aGlzLnJlbW92ZUVtcHR5KHRoaXMudG9rZW5pemUob2xkU3RyaW5nKSk7XG4gICAgbmV3U3RyaW5nID0gdGhpcy5yZW1vdmVFbXB0eSh0aGlzLnRva2VuaXplKG5ld1N0cmluZykpO1xuXG4gICAgbGV0IG5ld0xlbiA9IG5ld1N0cmluZy5sZW5ndGgsIG9sZExlbiA9IG9sZFN0cmluZy5sZW5ndGg7XG4gICAgbGV0IGVkaXRMZW5ndGggPSAxO1xuICAgIGxldCBtYXhFZGl0TGVuZ3RoID0gbmV3TGVuICsgb2xkTGVuO1xuICAgIGxldCBiZXN0UGF0aCA9IFt7IG5ld1BvczogLTEsIGNvbXBvbmVudHM6IFtdIH1dO1xuXG4gICAgLy8gU2VlZCBlZGl0TGVuZ3RoID0gMCwgaS5lLiB0aGUgY29udGVudCBzdGFydHMgd2l0aCB0aGUgc2FtZSB2YWx1ZXNcbiAgICBsZXQgb2xkUG9zID0gdGhpcy5leHRyYWN0Q29tbW9uKGJlc3RQYXRoWzBdLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgMCk7XG4gICAgaWYgKGJlc3RQYXRoWzBdLm5ld1BvcyArIDEgPj0gbmV3TGVuICYmIG9sZFBvcyArIDEgPj0gb2xkTGVuKSB7XG4gICAgICAvLyBJZGVudGl0eSBwZXIgdGhlIGVxdWFsaXR5IGFuZCB0b2tlbml6ZXJcbiAgICAgIHJldHVybiBkb25lKFt7dmFsdWU6IHRoaXMuam9pbihuZXdTdHJpbmcpLCBjb3VudDogbmV3U3RyaW5nLmxlbmd0aH1dKTtcbiAgICB9XG5cbiAgICAvLyBNYWluIHdvcmtlciBtZXRob2QuIGNoZWNrcyBhbGwgcGVybXV0YXRpb25zIG9mIGEgZ2l2ZW4gZWRpdCBsZW5ndGggZm9yIGFjY2VwdGFuY2UuXG4gICAgZnVuY3Rpb24gZXhlY0VkaXRMZW5ndGgoKSB7XG4gICAgICBmb3IgKGxldCBkaWFnb25hbFBhdGggPSAtMSAqIGVkaXRMZW5ndGg7IGRpYWdvbmFsUGF0aCA8PSBlZGl0TGVuZ3RoOyBkaWFnb25hbFBhdGggKz0gMikge1xuICAgICAgICBsZXQgYmFzZVBhdGg7XG4gICAgICAgIGxldCBhZGRQYXRoID0gYmVzdFBhdGhbZGlhZ29uYWxQYXRoIC0gMV0sXG4gICAgICAgICAgICByZW1vdmVQYXRoID0gYmVzdFBhdGhbZGlhZ29uYWxQYXRoICsgMV0sXG4gICAgICAgICAgICBvbGRQb3MgPSAocmVtb3ZlUGF0aCA/IHJlbW92ZVBhdGgubmV3UG9zIDogMCkgLSBkaWFnb25hbFBhdGg7XG4gICAgICAgIGlmIChhZGRQYXRoKSB7XG4gICAgICAgICAgLy8gTm8gb25lIGVsc2UgaXMgZ29pbmcgdG8gYXR0ZW1wdCB0byB1c2UgdGhpcyB2YWx1ZSwgY2xlYXIgaXRcbiAgICAgICAgICBiZXN0UGF0aFtkaWFnb25hbFBhdGggLSAxXSA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBjYW5BZGQgPSBhZGRQYXRoICYmIGFkZFBhdGgubmV3UG9zICsgMSA8IG5ld0xlbixcbiAgICAgICAgICAgIGNhblJlbW92ZSA9IHJlbW92ZVBhdGggJiYgMCA8PSBvbGRQb3MgJiYgb2xkUG9zIDwgb2xkTGVuO1xuICAgICAgICBpZiAoIWNhbkFkZCAmJiAhY2FuUmVtb3ZlKSB7XG4gICAgICAgICAgLy8gSWYgdGhpcyBwYXRoIGlzIGEgdGVybWluYWwgdGhlbiBwcnVuZVxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aF0gPSB1bmRlZmluZWQ7XG4gICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBTZWxlY3QgdGhlIGRpYWdvbmFsIHRoYXQgd2Ugd2FudCB0byBicmFuY2ggZnJvbS4gV2Ugc2VsZWN0IHRoZSBwcmlvclxuICAgICAgICAvLyBwYXRoIHdob3NlIHBvc2l0aW9uIGluIHRoZSBuZXcgc3RyaW5nIGlzIHRoZSBmYXJ0aGVzdCBmcm9tIHRoZSBvcmlnaW5cbiAgICAgICAgLy8gYW5kIGRvZXMgbm90IHBhc3MgdGhlIGJvdW5kcyBvZiB0aGUgZGlmZiBncmFwaFxuICAgICAgICBpZiAoIWNhbkFkZCB8fCAoY2FuUmVtb3ZlICYmIGFkZFBhdGgubmV3UG9zIDwgcmVtb3ZlUGF0aC5uZXdQb3MpKSB7XG4gICAgICAgICAgYmFzZVBhdGggPSBjbG9uZVBhdGgocmVtb3ZlUGF0aCk7XG4gICAgICAgICAgc2VsZi5wdXNoQ29tcG9uZW50KGJhc2VQYXRoLmNvbXBvbmVudHMsIHVuZGVmaW5lZCwgdHJ1ZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgYmFzZVBhdGggPSBhZGRQYXRoOyAgIC8vIE5vIG5lZWQgdG8gY2xvbmUsIHdlJ3ZlIHB1bGxlZCBpdCBmcm9tIHRoZSBsaXN0XG4gICAgICAgICAgYmFzZVBhdGgubmV3UG9zKys7XG4gICAgICAgICAgc2VsZi5wdXNoQ29tcG9uZW50KGJhc2VQYXRoLmNvbXBvbmVudHMsIHRydWUsIHVuZGVmaW5lZCk7XG4gICAgICAgIH1cblxuICAgICAgICBvbGRQb3MgPSBzZWxmLmV4dHJhY3RDb21tb24oYmFzZVBhdGgsIG5ld1N0cmluZywgb2xkU3RyaW5nLCBkaWFnb25hbFBhdGgpO1xuXG4gICAgICAgIC8vIElmIHdlIGhhdmUgaGl0IHRoZSBlbmQgb2YgYm90aCBzdHJpbmdzLCB0aGVuIHdlIGFyZSBkb25lXG4gICAgICAgIGlmIChiYXNlUGF0aC5uZXdQb3MgKyAxID49IG5ld0xlbiAmJiBvbGRQb3MgKyAxID49IG9sZExlbikge1xuICAgICAgICAgIHJldHVybiBkb25lKGJ1aWxkVmFsdWVzKHNlbGYsIGJhc2VQYXRoLmNvbXBvbmVudHMsIG5ld1N0cmluZywgb2xkU3RyaW5nLCBzZWxmLnVzZUxvbmdlc3RUb2tlbikpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIE90aGVyd2lzZSB0cmFjayB0aGlzIHBhdGggYXMgYSBwb3RlbnRpYWwgY2FuZGlkYXRlIGFuZCBjb250aW51ZS5cbiAgICAgICAgICBiZXN0UGF0aFtkaWFnb25hbFBhdGhdID0gYmFzZVBhdGg7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgZWRpdExlbmd0aCsrO1xuICAgIH1cblxuICAgIC8vIFBlcmZvcm1zIHRoZSBsZW5ndGggb2YgZWRpdCBpdGVyYXRpb24uIElzIGEgYml0IGZ1Z2x5IGFzIHRoaXMgaGFzIHRvIHN1cHBvcnQgdGhlXG4gICAgLy8gc3luYyBhbmQgYXN5bmMgbW9kZSB3aGljaCBpcyBuZXZlciBmdW4uIExvb3BzIG92ZXIgZXhlY0VkaXRMZW5ndGggdW50aWwgYSB2YWx1ZVxuICAgIC8vIGlzIHByb2R1Y2VkLlxuICAgIGlmIChjYWxsYmFjaykge1xuICAgICAgKGZ1bmN0aW9uIGV4ZWMoKSB7XG4gICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7XG4gICAgICAgICAgLy8gVGhpcyBzaG91bGQgbm90IGhhcHBlbiwgYnV0IHdlIHdhbnQgdG8gYmUgc2FmZS5cbiAgICAgICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgICAgIGlmIChlZGl0TGVuZ3RoID4gbWF4RWRpdExlbmd0aCkge1xuICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKCFleGVjRWRpdExlbmd0aCgpKSB7XG4gICAgICAgICAgICBleGVjKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LCAwKTtcbiAgICAgIH0oKSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHdoaWxlIChlZGl0TGVuZ3RoIDw9IG1heEVkaXRMZW5ndGgpIHtcbiAgICAgICAgbGV0IHJldCA9IGV4ZWNFZGl0TGVuZ3RoKCk7XG4gICAgICAgIGlmIChyZXQpIHtcbiAgICAgICAgICByZXR1cm4gcmV0O1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9LFxuXG4gIHB1c2hDb21wb25lbnQoY29tcG9uZW50cywgYWRkZWQsIHJlbW92ZWQpIHtcbiAgICBsZXQgbGFzdCA9IGNvbXBvbmVudHNbY29tcG9uZW50cy5sZW5ndGggLSAxXTtcbiAgICBpZiAobGFzdCAmJiBsYXN0LmFkZGVkID09PSBhZGRlZCAmJiBsYXN0LnJlbW92ZWQgPT09IHJlbW92ZWQpIHtcbiAgICAgIC8vIFdlIG5lZWQgdG8gY2xvbmUgaGVyZSBhcyB0aGUgY29tcG9uZW50IGNsb25lIG9wZXJhdGlvbiBpcyBqdXN0XG4gICAgICAvLyBhcyBzaGFsbG93IGFycmF5IGNsb25lXG4gICAgICBjb21wb25lbnRzW2NvbXBvbmVudHMubGVuZ3RoIC0gMV0gPSB7Y291bnQ6IGxhc3QuY291bnQgKyAxLCBhZGRlZDogYWRkZWQsIHJlbW92ZWQ6IHJlbW92ZWQgfTtcbiAgICB9IGVsc2Uge1xuICAgICAgY29tcG9uZW50cy5wdXNoKHtjb3VudDogMSwgYWRkZWQ6IGFkZGVkLCByZW1vdmVkOiByZW1vdmVkIH0pO1xuICAgIH1cbiAgfSxcbiAgZXh0cmFjdENvbW1vbihiYXNlUGF0aCwgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIGRpYWdvbmFsUGF0aCkge1xuICAgIGxldCBuZXdMZW4gPSBuZXdTdHJpbmcubGVuZ3RoLFxuICAgICAgICBvbGRMZW4gPSBvbGRTdHJpbmcubGVuZ3RoLFxuICAgICAgICBuZXdQb3MgPSBiYXNlUGF0aC5uZXdQb3MsXG4gICAgICAgIG9sZFBvcyA9IG5ld1BvcyAtIGRpYWdvbmFsUGF0aCxcblxuICAgICAgICBjb21tb25Db3VudCA9IDA7XG4gICAgd2hpbGUgKG5ld1BvcyArIDEgPCBuZXdMZW4gJiYgb2xkUG9zICsgMSA8IG9sZExlbiAmJiB0aGlzLmVxdWFscyhuZXdTdHJpbmdbbmV3UG9zICsgMV0sIG9sZFN0cmluZ1tvbGRQb3MgKyAxXSkpIHtcbiAgICAgIG5ld1BvcysrO1xuICAgICAgb2xkUG9zKys7XG4gICAgICBjb21tb25Db3VudCsrO1xuICAgIH1cblxuICAgIGlmIChjb21tb25Db3VudCkge1xuICAgICAgYmFzZVBhdGguY29tcG9uZW50cy5wdXNoKHtjb3VudDogY29tbW9uQ291bnR9KTtcbiAgICB9XG5cbiAgICBiYXNlUGF0aC5uZXdQb3MgPSBuZXdQb3M7XG4gICAgcmV0dXJuIG9sZFBvcztcbiAgfSxcblxuICBlcXVhbHMobGVmdCwgcmlnaHQpIHtcbiAgICBpZiAodGhpcy5vcHRpb25zLmNvbXBhcmF0b3IpIHtcbiAgICAgIHJldHVybiB0aGlzLm9wdGlvbnMuY29tcGFyYXRvcihsZWZ0LCByaWdodCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBsZWZ0ID09PSByaWdodFxuICAgICAgICB8fCAodGhpcy5vcHRpb25zLmlnbm9yZUNhc2UgJiYgbGVmdC50b0xvd2VyQ2FzZSgpID09PSByaWdodC50b0xvd2VyQ2FzZSgpKTtcbiAgICB9XG4gIH0sXG4gIHJlbW92ZUVtcHR5KGFycmF5KSB7XG4gICAgbGV0IHJldCA9IFtdO1xuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgYXJyYXkubGVuZ3RoOyBpKyspIHtcbiAgICAgIGlmIChhcnJheVtpXSkge1xuICAgICAgICByZXQucHVzaChhcnJheVtpXSk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiByZXQ7XG4gIH0sXG4gIGNhc3RJbnB1dCh2YWx1ZSkge1xuICAgIHJldHVybiB2YWx1ZTtcbiAgfSxcbiAgdG9rZW5pemUodmFsdWUpIHtcbiAgICByZXR1cm4gdmFsdWUuc3BsaXQoJycpO1xuICB9LFxuICBqb2luKGNoYXJzKSB7XG4gICAgcmV0dXJuIGNoYXJzLmpvaW4oJycpO1xuICB9XG59O1xuXG5mdW5jdGlvbiBidWlsZFZhbHVlcyhkaWZmLCBjb21wb25lbnRzLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgdXNlTG9uZ2VzdFRva2VuKSB7XG4gIGxldCBjb21wb25lbnRQb3MgPSAwLFxuICAgICAgY29tcG9uZW50TGVuID0gY29tcG9uZW50cy5sZW5ndGgsXG4gICAgICBuZXdQb3MgPSAwLFxuICAgICAgb2xkUG9zID0gMDtcblxuICBmb3IgKDsgY29tcG9uZW50UG9zIDwgY29tcG9uZW50TGVuOyBjb21wb25lbnRQb3MrKykge1xuICAgIGxldCBjb21wb25lbnQgPSBjb21wb25lbnRzW2NvbXBvbmVudFBvc107XG4gICAgaWYgKCFjb21wb25lbnQucmVtb3ZlZCkge1xuICAgICAgaWYgKCFjb21wb25lbnQuYWRkZWQgJiYgdXNlTG9uZ2VzdFRva2VuKSB7XG4gICAgICAgIGxldCB2YWx1ZSA9IG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCk7XG4gICAgICAgIHZhbHVlID0gdmFsdWUubWFwKGZ1bmN0aW9uKHZhbHVlLCBpKSB7XG4gICAgICAgICAgbGV0IG9sZFZhbHVlID0gb2xkU3RyaW5nW29sZFBvcyArIGldO1xuICAgICAgICAgIHJldHVybiBvbGRWYWx1ZS5sZW5ndGggPiB2YWx1ZS5sZW5ndGggPyBvbGRWYWx1ZSA6IHZhbHVlO1xuICAgICAgICB9KTtcblxuICAgICAgICBjb21wb25lbnQudmFsdWUgPSBkaWZmLmpvaW4odmFsdWUpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29tcG9uZW50LnZhbHVlID0gZGlmZi5qb2luKG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCkpO1xuICAgICAgfVxuICAgICAgbmV3UG9zICs9IGNvbXBvbmVudC5jb3VudDtcblxuICAgICAgLy8gQ29tbW9uIGNhc2VcbiAgICAgIGlmICghY29tcG9uZW50LmFkZGVkKSB7XG4gICAgICAgIG9sZFBvcyArPSBjb21wb25lbnQuY291bnQ7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGNvbXBvbmVudC52YWx1ZSA9IGRpZmYuam9pbihvbGRTdHJpbmcuc2xpY2Uob2xkUG9zLCBvbGRQb3MgKyBjb21wb25lbnQuY291bnQpKTtcbiAgICAgIG9sZFBvcyArPSBjb21wb25lbnQuY291bnQ7XG5cbiAgICAgIC8vIFJldmVyc2UgYWRkIGFuZCByZW1vdmUgc28gcmVtb3ZlcyBhcmUgb3V0cHV0IGZpcnN0IHRvIG1hdGNoIGNvbW1vbiBjb252ZW50aW9uXG4gICAgICAvLyBUaGUgZGlmZmluZyBhbGdvcml0aG0gaXMgdGllZCB0byBhZGQgdGhlbiByZW1vdmUgb3V0cHV0IGFuZCB0aGlzIGlzIHRoZSBzaW1wbGVzdFxuICAgICAgLy8gcm91dGUgdG8gZ2V0IHRoZSBkZXNpcmVkIG91dHB1dCB3aXRoIG1pbmltYWwgb3ZlcmhlYWQuXG4gICAgICBpZiAoY29tcG9uZW50UG9zICYmIGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV0uYWRkZWQpIHtcbiAgICAgICAgbGV0IHRtcCA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV07XG4gICAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50UG9zIC0gMV0gPSBjb21wb25lbnRzW2NvbXBvbmVudFBvc107XG4gICAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50UG9zXSA9IHRtcDtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyBTcGVjaWFsIGNhc2UgaGFuZGxlIGZvciB3aGVuIG9uZSB0ZXJtaW5hbCBpcyBpZ25vcmVkIChpLmUuIHdoaXRlc3BhY2UpLlxuICAvLyBGb3IgdGhpcyBjYXNlIHdlIG1lcmdlIHRoZSB0ZXJtaW5hbCBpbnRvIHRoZSBwcmlvciBzdHJpbmcgYW5kIGRyb3AgdGhlIGNoYW5nZS5cbiAgLy8gVGhpcyBpcyBvbmx5IGF2YWlsYWJsZSBmb3Igc3RyaW5nIG1vZGUuXG4gIGxldCBsYXN0Q29tcG9uZW50ID0gY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAxXTtcbiAgaWYgKGNvbXBvbmVudExlbiA+IDFcbiAgICAgICYmIHR5cGVvZiBsYXN0Q29tcG9uZW50LnZhbHVlID09PSAnc3RyaW5nJ1xuICAgICAgJiYgKGxhc3RDb21wb25lbnQuYWRkZWQgfHwgbGFzdENvbXBvbmVudC5yZW1vdmVkKVxuICAgICAgJiYgZGlmZi5lcXVhbHMoJycsIGxhc3RDb21wb25lbnQudmFsdWUpKSB7XG4gICAgY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAyXS52YWx1ZSArPSBsYXN0Q29tcG9uZW50LnZhbHVlO1xuICAgIGNvbXBvbmVudHMucG9wKCk7XG4gIH1cblxuICByZXR1cm4gY29tcG9uZW50cztcbn1cblxuZnVuY3Rpb24gY2xvbmVQYXRoKHBhdGgpIHtcbiAgcmV0dXJuIHsgbmV3UG9zOiBwYXRoLm5ld1BvcywgY29tcG9uZW50czogcGF0aC5jb21wb25lbnRzLnNsaWNlKDApIH07XG59XG4iXX0= - +(function() { module.exports = this["wp"]["keycodes"]; }()); /***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - /*istanbul ignore start*/'use strict'; +/***/ 19: +/***/ (function(module, __webpack_exports__, __webpack_require__) { - exports.__esModule = true; - exports.characterDiff = undefined; - exports. /*istanbul ignore end*/diffChars = diffChars; +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var characterDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/characterDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - function diffChars(oldStr, newStr, options) { - return characterDiff.diff(oldStr, newStr, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2NoYXJhY3Rlci5qcyJdLCJuYW1lcyI6WyJkaWZmQ2hhcnMiLCJjaGFyYWN0ZXJEaWZmIiwib2xkU3RyIiwibmV3U3RyIiwib3B0aW9ucyIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBR2dCQSxTLEdBQUFBLFM7O0FBSGhCOzs7Ozs7dUJBRU8sSUFBTUMseUZBQWdCLHdFQUF0QjtBQUNBLFNBQVNELFNBQVQsQ0FBbUJFLE1BQW5CLEVBQTJCQyxNQUEzQixFQUFtQ0MsT0FBbkMsRUFBNEM7QUFBRSxTQUFPSCxjQUFjSSxJQUFkLENBQW1CSCxNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNDLE9BQW5DLENBQVA7QUFBcUQiLCJmaWxlIjoiY2hhcmFjdGVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcblxuZXhwb3J0IGNvbnN0IGNoYXJhY3RlckRpZmYgPSBuZXcgRGlmZigpO1xuZXhwb3J0IGZ1bmN0aW9uIGRpZmZDaGFycyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykgeyByZXR1cm4gY2hhcmFjdGVyRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTsgfVxuIl19 + return target; + }; + return _extends.apply(this, arguments); +} /***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.wordDiff = undefined; - exports. /*istanbul ignore end*/diffWords = diffWords; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = diffWordsWithSpace; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/ // Based on https://en.wikipedia.org/wiki/Latin_script_in_Unicode - // - // Ranges and exceptions: - // Latin-1 Supplement, 0080–00FF - // - U+00D7 × Multiplication sign - // - U+00F7 ÷ Division sign - // Latin Extended-A, 0100–017F - // Latin Extended-B, 0180–024F - // IPA Extensions, 0250–02AF - // Spacing Modifier Letters, 02B0–02FF - // - U+02C7 ˇ ˇ Caron - // - U+02D8 ˘ ˘ Breve - // - U+02D9 ˙ ˙ Dot Above - // - U+02DA ˚ ˚ Ring Above - // - U+02DB ˛ ˛ Ogonek - // - U+02DC ˜ ˜ Small Tilde - // - U+02DD ˝ ˝ Double Acute Accent - // Latin Extended Additional, 1E00–1EFF - var extendedWordChars = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/; - - var reWhitespace = /\S/; - - var wordDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/wordDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - wordDiff.equals = function (left, right) { - if (this.options.ignoreCase) { - left = left.toLowerCase(); - right = right.toLowerCase(); - } - return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right); - }; - wordDiff.tokenize = function (value) { - var tokens = value.split(/(\s+|\b)/); - - // Join the boundary splits that we do not consider to be boundaries. This is primarily the extended Latin character set. - for (var i = 0; i < tokens.length - 1; i++) { - // If we have an empty string in the next field and we have only word chars before and after, merge - if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) { - tokens[i] += tokens[i + 2]; - tokens.splice(i + 1, 2); - i--; - } - } - - return tokens; - }; - - function diffWords(oldStr, newStr, options) { - options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(options, { ignoreWhitespace: true }); - return wordDiff.diff(oldStr, newStr, options); - } - - function diffWordsWithSpace(oldStr, newStr, options) { - return wordDiff.diff(oldStr, newStr, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3dvcmQuanMiXSwibmFtZXMiOlsiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZXh0ZW5kZWRXb3JkQ2hhcnMiLCJyZVdoaXRlc3BhY2UiLCJ3b3JkRGlmZiIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsIm9wdGlvbnMiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJpZ25vcmVXaGl0ZXNwYWNlIiwidGVzdCIsInRva2VuaXplIiwidmFsdWUiLCJ0b2tlbnMiLCJzcGxpdCIsImkiLCJsZW5ndGgiLCJzcGxpY2UiLCJvbGRTdHIiLCJuZXdTdHIiLCJkaWZmIl0sIm1hcHBpbmdzIjoiOzs7O2dDQW1EZ0JBLFMsR0FBQUEsUzt5REFLQUMsa0IsR0FBQUEsa0I7O0FBeERoQjs7Ozt1QkFDQTs7Ozt3QkFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxJQUFNQyxvQkFBb0IsK0RBQTFCOztBQUVBLElBQU1DLGVBQWUsSUFBckI7O0FBRU8sSUFBTUMsK0VBQVcsd0VBQWpCO0FBQ1BBLFNBQVNDLE1BQVQsR0FBa0IsVUFBU0MsSUFBVCxFQUFlQyxLQUFmLEVBQXNCO0FBQ3RDLE1BQUksS0FBS0MsT0FBTCxDQUFhQyxVQUFqQixFQUE2QjtBQUMzQkgsV0FBT0EsS0FBS0ksV0FBTCxFQUFQO0FBQ0FILFlBQVFBLE1BQU1HLFdBQU4sRUFBUjtBQUNEO0FBQ0QsU0FBT0osU0FBU0MsS0FBVCxJQUFtQixLQUFLQyxPQUFMLENBQWFHLGdCQUFiLElBQWlDLENBQUNSLGFBQWFTLElBQWIsQ0FBa0JOLElBQWxCLENBQWxDLElBQTZELENBQUNILGFBQWFTLElBQWIsQ0FBa0JMLEtBQWxCLENBQXhGO0FBQ0QsQ0FORDtBQU9BSCxTQUFTUyxRQUFULEdBQW9CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDbEMsTUFBSUMsU0FBU0QsTUFBTUUsS0FBTixDQUFZLFVBQVosQ0FBYjs7QUFFQTtBQUNBLE9BQUssSUFBSUMsSUFBSSxDQUFiLEVBQWdCQSxJQUFJRixPQUFPRyxNQUFQLEdBQWdCLENBQXBDLEVBQXVDRCxHQUF2QyxFQUE0QztBQUMxQztBQUNBLFFBQUksQ0FBQ0YsT0FBT0UsSUFBSSxDQUFYLENBQUQsSUFBa0JGLE9BQU9FLElBQUksQ0FBWCxDQUFsQixJQUNLZixrQkFBa0JVLElBQWxCLENBQXVCRyxPQUFPRSxDQUFQLENBQXZCLENBREwsSUFFS2Ysa0JBQWtCVSxJQUFsQixDQUF1QkcsT0FBT0UsSUFBSSxDQUFYLENBQXZCLENBRlQsRUFFZ0Q7QUFDOUNGLGFBQU9FLENBQVAsS0FBYUYsT0FBT0UsSUFBSSxDQUFYLENBQWI7QUFDQUYsYUFBT0ksTUFBUCxDQUFjRixJQUFJLENBQWxCLEVBQXFCLENBQXJCO0FBQ0FBO0FBQ0Q7QUFDRjs7QUFFRCxTQUFPRixNQUFQO0FBQ0QsQ0FoQkQ7O0FBa0JPLFNBQVNmLFNBQVQsQ0FBbUJvQixNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNiLE9BQW5DLEVBQTRDO0FBQ2pEQSxZQUFVLDhFQUFnQkEsT0FBaEIsRUFBeUIsRUFBQ0csa0JBQWtCLElBQW5CLEVBQXpCLENBQVY7QUFDQSxTQUFPUCxTQUFTa0IsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUNEOztBQUVNLFNBQVNQLGtCQUFULENBQTRCbUIsTUFBNUIsRUFBb0NDLE1BQXBDLEVBQTRDYixPQUE1QyxFQUFxRDtBQUMxRCxTQUFPSixTQUFTa0IsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUNEIiwiZmlsZSI6IndvcmQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgRGlmZiBmcm9tICcuL2Jhc2UnO1xuaW1wb3J0IHtnZW5lcmF0ZU9wdGlvbnN9IGZyb20gJy4uL3V0aWwvcGFyYW1zJztcblxuLy8gQmFzZWQgb24gaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTGF0aW5fc2NyaXB0X2luX1VuaWNvZGVcbi8vXG4vLyBSYW5nZXMgYW5kIGV4Y2VwdGlvbnM6XG4vLyBMYXRpbi0xIFN1cHBsZW1lbnQsIDAwODDigJMwMEZGXG4vLyAgLSBVKzAwRDcgIMOXIE11bHRpcGxpY2F0aW9uIHNpZ25cbi8vICAtIFUrMDBGNyAgw7cgRGl2aXNpb24gc2lnblxuLy8gTGF0aW4gRXh0ZW5kZWQtQSwgMDEwMOKAkzAxN0Zcbi8vIExhdGluIEV4dGVuZGVkLUIsIDAxODDigJMwMjRGXG4vLyBJUEEgRXh0ZW5zaW9ucywgMDI1MOKAkzAyQUZcbi8vIFNwYWNpbmcgTW9kaWZpZXIgTGV0dGVycywgMDJCMOKAkzAyRkZcbi8vICAtIFUrMDJDNyAgy4cgJiM3MTE7ICBDYXJvblxuLy8gIC0gVSswMkQ4ICDLmCAmIzcyODsgIEJyZXZlXG4vLyAgLSBVKzAyRDkgIMuZICYjNzI5OyAgRG90IEFib3ZlXG4vLyAgLSBVKzAyREEgIMuaICYjNzMwOyAgUmluZyBBYm92ZVxuLy8gIC0gVSswMkRCICDLmyAmIzczMTsgIE9nb25la1xuLy8gIC0gVSswMkRDICDLnCAmIzczMjsgIFNtYWxsIFRpbGRlXG4vLyAgLSBVKzAyREQgIMudICYjNzMzOyAgRG91YmxlIEFjdXRlIEFjY2VudFxuLy8gTGF0aW4gRXh0ZW5kZWQgQWRkaXRpb25hbCwgMUUwMOKAkzFFRkZcbmNvbnN0IGV4dGVuZGVkV29yZENoYXJzID0gL15bYS16QS1aXFx1e0MwfS1cXHV7RkZ9XFx1e0Q4fS1cXHV7RjZ9XFx1e0Y4fS1cXHV7MkM2fVxcdXsyQzh9LVxcdXsyRDd9XFx1ezJERX0tXFx1ezJGRn1cXHV7MUUwMH0tXFx1ezFFRkZ9XSskL3U7XG5cbmNvbnN0IHJlV2hpdGVzcGFjZSA9IC9cXFMvO1xuXG5leHBvcnQgY29uc3Qgd29yZERpZmYgPSBuZXcgRGlmZigpO1xud29yZERpZmYuZXF1YWxzID0gZnVuY3Rpb24obGVmdCwgcmlnaHQpIHtcbiAgaWYgKHRoaXMub3B0aW9ucy5pZ25vcmVDYXNlKSB7XG4gICAgbGVmdCA9IGxlZnQudG9Mb3dlckNhc2UoKTtcbiAgICByaWdodCA9IHJpZ2h0LnRvTG93ZXJDYXNlKCk7XG4gIH1cbiAgcmV0dXJuIGxlZnQgPT09IHJpZ2h0IHx8ICh0aGlzLm9wdGlvbnMuaWdub3JlV2hpdGVzcGFjZSAmJiAhcmVXaGl0ZXNwYWNlLnRlc3QobGVmdCkgJiYgIXJlV2hpdGVzcGFjZS50ZXN0KHJpZ2h0KSk7XG59O1xud29yZERpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICBsZXQgdG9rZW5zID0gdmFsdWUuc3BsaXQoLyhcXHMrfFxcYikvKTtcblxuICAvLyBKb2luIHRoZSBib3VuZGFyeSBzcGxpdHMgdGhhdCB3ZSBkbyBub3QgY29uc2lkZXIgdG8gYmUgYm91bmRhcmllcy4gVGhpcyBpcyBwcmltYXJpbHkgdGhlIGV4dGVuZGVkIExhdGluIGNoYXJhY3RlciBzZXQuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgdG9rZW5zLmxlbmd0aCAtIDE7IGkrKykge1xuICAgIC8vIElmIHdlIGhhdmUgYW4gZW1wdHkgc3RyaW5nIGluIHRoZSBuZXh0IGZpZWxkIGFuZCB3ZSBoYXZlIG9ubHkgd29yZCBjaGFycyBiZWZvcmUgYW5kIGFmdGVyLCBtZXJnZVxuICAgIGlmICghdG9rZW5zW2kgKyAxXSAmJiB0b2tlbnNbaSArIDJdXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaV0pXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaSArIDJdKSkge1xuICAgICAgdG9rZW5zW2ldICs9IHRva2Vuc1tpICsgMl07XG4gICAgICB0b2tlbnMuc3BsaWNlKGkgKyAxLCAyKTtcbiAgICAgIGktLTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gdG9rZW5zO1xufTtcblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3JkcyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICBvcHRpb25zID0gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiB3b3JkRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3Jkc1dpdGhTcGFjZShvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICByZXR1cm4gd29yZERpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucyk7XG59XG4iXX0= - - -/***/ }), -/* 4 */ +/***/ 2: /***/ (function(module, exports) { - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/generateOptions = generateOptions; - function generateOptions(options, defaults) { - if (typeof options === 'function') { - defaults.callback = options; - } else if (options) { - for (var name in options) { - /* istanbul ignore else */ - if (options.hasOwnProperty(name)) { - defaults[name] = options[name]; - } - } - } - return defaults; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcmFtcy5qcyJdLCJuYW1lcyI6WyJnZW5lcmF0ZU9wdGlvbnMiLCJvcHRpb25zIiwiZGVmYXVsdHMiLCJjYWxsYmFjayIsIm5hbWUiLCJoYXNPd25Qcm9wZXJ0eSJdLCJtYXBwaW5ncyI6Ijs7O2dDQUFnQkEsZSxHQUFBQSxlO0FBQVQsU0FBU0EsZUFBVCxDQUF5QkMsT0FBekIsRUFBa0NDLFFBQWxDLEVBQTRDO0FBQ2pELE1BQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsYUFBU0MsUUFBVCxHQUFvQkYsT0FBcEI7QUFDRCxHQUZELE1BRU8sSUFBSUEsT0FBSixFQUFhO0FBQ2xCLFNBQUssSUFBSUcsSUFBVCxJQUFpQkgsT0FBakIsRUFBMEI7QUFDeEI7QUFDQSxVQUFJQSxRQUFRSSxjQUFSLENBQXVCRCxJQUF2QixDQUFKLEVBQWtDO0FBQ2hDRixpQkFBU0UsSUFBVCxJQUFpQkgsUUFBUUcsSUFBUixDQUFqQjtBQUNEO0FBQ0Y7QUFDRjtBQUNELFNBQU9GLFFBQVA7QUFDRCIsImZpbGUiOiJwYXJhbXMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIGRlZmF1bHRzKSB7XG4gIGlmICh0eXBlb2Ygb3B0aW9ucyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIGRlZmF1bHRzLmNhbGxiYWNrID0gb3B0aW9ucztcbiAgfSBlbHNlIGlmIChvcHRpb25zKSB7XG4gICAgZm9yIChsZXQgbmFtZSBpbiBvcHRpb25zKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9wdGlvbnMuaGFzT3duUHJvcGVydHkobmFtZSkpIHtcbiAgICAgICAgZGVmYXVsdHNbbmFtZV0gPSBvcHRpb25zW25hbWVdO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gZGVmYXVsdHM7XG59XG4iXX0= - +(function() { module.exports = this["lodash"]; }()); /***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.lineDiff = undefined; - exports. /*istanbul ignore end*/diffLines = diffLines; - /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = diffTrimmedLines; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var lineDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/lineDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - lineDiff.tokenize = function (value) { - var retLines = [], - linesAndNewlines = value.split(/(\n|\r\n)/); - - // Ignore the final empty token that occurs if the string ends with a new line - if (!linesAndNewlines[linesAndNewlines.length - 1]) { - linesAndNewlines.pop(); - } - - // Merge the content and line separators into single tokens - for (var i = 0; i < linesAndNewlines.length; i++) { - var line = linesAndNewlines[i]; - - if (i % 2 && !this.options.newlineIsToken) { - retLines[retLines.length - 1] += line; - } else { - if (this.options.ignoreWhitespace) { - line = line.trim(); - } - retLines.push(line); - } - } - - return retLines; - }; - - function diffLines(oldStr, newStr, callback) { - return lineDiff.diff(oldStr, newStr, callback); - } - function diffTrimmedLines(oldStr, newStr, callback) { - var options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(callback, { ignoreWhitespace: true }); - return lineDiff.diff(oldStr, newStr, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2xpbmUuanMiXSwibmFtZXMiOlsiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImxpbmVEaWZmIiwidG9rZW5pemUiLCJ2YWx1ZSIsInJldExpbmVzIiwibGluZXNBbmROZXdsaW5lcyIsInNwbGl0IiwibGVuZ3RoIiwicG9wIiwiaSIsImxpbmUiLCJvcHRpb25zIiwibmV3bGluZUlzVG9rZW4iLCJpZ25vcmVXaGl0ZXNwYWNlIiwidHJpbSIsInB1c2giLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBOEJnQkEsUyxHQUFBQSxTO3lEQUNBQyxnQixHQUFBQSxnQjs7QUEvQmhCOzs7O3VCQUNBOzs7O3VCQUVPLElBQU1DLCtFQUFXLHdFQUFqQjtBQUNQQSxTQUFTQyxRQUFULEdBQW9CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDbEMsTUFBSUMsV0FBVyxFQUFmO0FBQUEsTUFDSUMsbUJBQW1CRixNQUFNRyxLQUFOLENBQVksV0FBWixDQUR2Qjs7QUFHQTtBQUNBLE1BQUksQ0FBQ0QsaUJBQWlCQSxpQkFBaUJFLE1BQWpCLEdBQTBCLENBQTNDLENBQUwsRUFBb0Q7QUFDbERGLHFCQUFpQkcsR0FBakI7QUFDRDs7QUFFRDtBQUNBLE9BQUssSUFBSUMsSUFBSSxDQUFiLEVBQWdCQSxJQUFJSixpQkFBaUJFLE1BQXJDLEVBQTZDRSxHQUE3QyxFQUFrRDtBQUNoRCxRQUFJQyxPQUFPTCxpQkFBaUJJLENBQWpCLENBQVg7O0FBRUEsUUFBSUEsSUFBSSxDQUFKLElBQVMsQ0FBQyxLQUFLRSxPQUFMLENBQWFDLGNBQTNCLEVBQTJDO0FBQ3pDUixlQUFTQSxTQUFTRyxNQUFULEdBQWtCLENBQTNCLEtBQWlDRyxJQUFqQztBQUNELEtBRkQsTUFFTztBQUNMLFVBQUksS0FBS0MsT0FBTCxDQUFhRSxnQkFBakIsRUFBbUM7QUFDakNILGVBQU9BLEtBQUtJLElBQUwsRUFBUDtBQUNEO0FBQ0RWLGVBQVNXLElBQVQsQ0FBY0wsSUFBZDtBQUNEO0FBQ0Y7O0FBRUQsU0FBT04sUUFBUDtBQUNELENBeEJEOztBQTBCTyxTQUFTTCxTQUFULENBQW1CaUIsTUFBbkIsRUFBMkJDLE1BQTNCLEVBQW1DQyxRQUFuQyxFQUE2QztBQUFFLFNBQU9qQixTQUFTa0IsSUFBVCxDQUFjSCxNQUFkLEVBQXNCQyxNQUF0QixFQUE4QkMsUUFBOUIsQ0FBUDtBQUFpRDtBQUNoRyxTQUFTbEIsZ0JBQVQsQ0FBMEJnQixNQUExQixFQUFrQ0MsTUFBbEMsRUFBMENDLFFBQTFDLEVBQW9EO0FBQ3pELE1BQUlQLFVBQVUsOEVBQWdCTyxRQUFoQixFQUEwQixFQUFDTCxrQkFBa0IsSUFBbkIsRUFBMUIsQ0FBZDtBQUNBLFNBQU9aLFNBQVNrQixJQUFULENBQWNILE1BQWQsRUFBc0JDLE1BQXRCLEVBQThCTixPQUE5QixDQUFQO0FBQ0QiLCJmaWxlIjoibGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5pbXBvcnQge2dlbmVyYXRlT3B0aW9uc30gZnJvbSAnLi4vdXRpbC9wYXJhbXMnO1xuXG5leHBvcnQgY29uc3QgbGluZURpZmYgPSBuZXcgRGlmZigpO1xubGluZURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICBsZXQgcmV0TGluZXMgPSBbXSxcbiAgICAgIGxpbmVzQW5kTmV3bGluZXMgPSB2YWx1ZS5zcGxpdCgvKFxcbnxcXHJcXG4pLyk7XG5cbiAgLy8gSWdub3JlIHRoZSBmaW5hbCBlbXB0eSB0b2tlbiB0aGF0IG9jY3VycyBpZiB0aGUgc3RyaW5nIGVuZHMgd2l0aCBhIG5ldyBsaW5lXG4gIGlmICghbGluZXNBbmROZXdsaW5lc1tsaW5lc0FuZE5ld2xpbmVzLmxlbmd0aCAtIDFdKSB7XG4gICAgbGluZXNBbmROZXdsaW5lcy5wb3AoKTtcbiAgfVxuXG4gIC8vIE1lcmdlIHRoZSBjb250ZW50IGFuZCBsaW5lIHNlcGFyYXRvcnMgaW50byBzaW5nbGUgdG9rZW5zXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgbGluZXNBbmROZXdsaW5lcy5sZW5ndGg7IGkrKykge1xuICAgIGxldCBsaW5lID0gbGluZXNBbmROZXdsaW5lc1tpXTtcblxuICAgIGlmIChpICUgMiAmJiAhdGhpcy5vcHRpb25zLm5ld2xpbmVJc1Rva2VuKSB7XG4gICAgICByZXRMaW5lc1tyZXRMaW5lcy5sZW5ndGggLSAxXSArPSBsaW5lO1xuICAgIH0gZWxzZSB7XG4gICAgICBpZiAodGhpcy5vcHRpb25zLmlnbm9yZVdoaXRlc3BhY2UpIHtcbiAgICAgICAgbGluZSA9IGxpbmUudHJpbSgpO1xuICAgICAgfVxuICAgICAgcmV0TGluZXMucHVzaChsaW5lKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gcmV0TGluZXM7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkxpbmVzKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjaykgeyByZXR1cm4gbGluZURpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG5leHBvcnQgZnVuY3Rpb24gZGlmZlRyaW1tZWRMaW5lcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHtcbiAgbGV0IG9wdGlvbnMgPSBnZW5lcmF0ZU9wdGlvbnMoY2FsbGJhY2ssIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiBsaW5lRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cbiJdfQ== - - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.sentenceDiff = undefined; - exports. /*istanbul ignore end*/diffSentences = diffSentences; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var sentenceDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/sentenceDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - sentenceDiff.tokenize = function (value) { - return value.split(/(\S.+?[.!?])(?=\s+|$)/); - }; - - function diffSentences(oldStr, newStr, callback) { - return sentenceDiff.diff(oldStr, newStr, callback); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3NlbnRlbmNlLmpzIl0sIm5hbWVzIjpbImRpZmZTZW50ZW5jZXMiLCJzZW50ZW5jZURpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic3BsaXQiLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBUWdCQSxhLEdBQUFBLGE7O0FBUmhCOzs7Ozs7dUJBR08sSUFBTUMsdUZBQWUsd0VBQXJCO0FBQ1BBLGFBQWFDLFFBQWIsR0FBd0IsVUFBU0MsS0FBVCxFQUFnQjtBQUN0QyxTQUFPQSxNQUFNQyxLQUFOLENBQVksdUJBQVosQ0FBUDtBQUNELENBRkQ7O0FBSU8sU0FBU0osYUFBVCxDQUF1QkssTUFBdkIsRUFBK0JDLE1BQS9CLEVBQXVDQyxRQUF2QyxFQUFpRDtBQUFFLFNBQU9OLGFBQWFPLElBQWIsQ0FBa0JILE1BQWxCLEVBQTBCQyxNQUExQixFQUFrQ0MsUUFBbEMsQ0FBUDtBQUFxRCIsImZpbGUiOiJzZW50ZW5jZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cblxuZXhwb3J0IGNvbnN0IHNlbnRlbmNlRGlmZiA9IG5ldyBEaWZmKCk7XG5zZW50ZW5jZURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhcXFMuKz9bLiE/XSkoPz1cXHMrfCQpLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZlNlbnRlbmNlcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIHNlbnRlbmNlRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjayk7IH1cbiJdfQ== - - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.cssDiff = undefined; - exports. /*istanbul ignore end*/diffCss = diffCss; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var cssDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/cssDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - cssDiff.tokenize = function (value) { - return value.split(/([{}:;,]|\s+)/); - }; - - function diffCss(oldStr, newStr, callback) { - return cssDiff.diff(oldStr, newStr, callback); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Nzcy5qcyJdLCJuYW1lcyI6WyJkaWZmQ3NzIiwiY3NzRGlmZiIsInRva2VuaXplIiwidmFsdWUiLCJzcGxpdCIsIm9sZFN0ciIsIm5ld1N0ciIsImNhbGxiYWNrIiwiZGlmZiJdLCJtYXBwaW5ncyI6Ijs7OztnQ0FPZ0JBLE8sR0FBQUEsTzs7QUFQaEI7Ozs7Ozt1QkFFTyxJQUFNQyw2RUFBVSx3RUFBaEI7QUFDUEEsUUFBUUMsUUFBUixHQUFtQixVQUFTQyxLQUFULEVBQWdCO0FBQ2pDLFNBQU9BLE1BQU1DLEtBQU4sQ0FBWSxlQUFaLENBQVA7QUFDRCxDQUZEOztBQUlPLFNBQVNKLE9BQVQsQ0FBaUJLLE1BQWpCLEVBQXlCQyxNQUF6QixFQUFpQ0MsUUFBakMsRUFBMkM7QUFBRSxTQUFPTixRQUFRTyxJQUFSLENBQWFILE1BQWIsRUFBcUJDLE1BQXJCLEVBQTZCQyxRQUE3QixDQUFQO0FBQWdEIiwiZmlsZSI6ImNzcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cbmV4cG9ydCBjb25zdCBjc3NEaWZmID0gbmV3IERpZmYoKTtcbmNzc0RpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhbe306OyxdfFxccyspLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkNzcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIGNzc0RpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG4iXX0= - - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.jsonDiff = undefined; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - - exports. /*istanbul ignore end*/diffJson = diffJson; - /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = canonicalize; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - /*istanbul ignore end*/var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var objectPrototypeToString = Object.prototype.toString; - - var jsonDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/jsonDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - // Discriminate between two lines of pretty-printed, serialized JSON where one of them has a - // dangling comma and the other doesn't. Turns out including the dangling comma yields the nicest output: - jsonDiff.useLongestToken = true; - - jsonDiff.tokenize = /*istanbul ignore start*/_line.lineDiff /*istanbul ignore end*/.tokenize; - jsonDiff.castInput = function (value) { - /*istanbul ignore start*/var _options = /*istanbul ignore end*/this.options, - undefinedReplacement = _options.undefinedReplacement, - _options$stringifyRep = _options.stringifyReplacer, - stringifyReplacer = _options$stringifyRep === undefined ? function (k, v) /*istanbul ignore start*/{ - return (/*istanbul ignore end*/typeof v === 'undefined' ? undefinedReplacement : v - ); - } : _options$stringifyRep; - - - return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' '); - }; - jsonDiff.equals = function (left, right) { - return (/*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/.prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, '$1'), right.replace(/,([\r\n])/g, '$1')) - ); - }; - - function diffJson(oldObj, newObj, options) { - return jsonDiff.diff(oldObj, newObj, options); - } - - // This function handles the presence of circular references by bailing out when encountering an - // object that is already on the "stack" of items being processed. Accepts an optional replacer - function canonicalize(obj, stack, replacementStack, replacer, key) { - stack = stack || []; - replacementStack = replacementStack || []; - - if (replacer) { - obj = replacer(key, obj); - } - - var i = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - - for (i = 0; i < stack.length; i += 1) { - if (stack[i] === obj) { - return replacementStack[i]; - } - } - - var canonicalizedObj = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - - if ('[object Array]' === objectPrototypeToString.call(obj)) { - stack.push(obj); - canonicalizedObj = new Array(obj.length); - replacementStack.push(canonicalizedObj); - for (i = 0; i < obj.length; i += 1) { - canonicalizedObj[i] = canonicalize(obj[i], stack, replacementStack, replacer, key); - } - stack.pop(); - replacementStack.pop(); - return canonicalizedObj; - } - - if (obj && obj.toJSON) { - obj = obj.toJSON(); - } - - if ( /*istanbul ignore start*/(typeof /*istanbul ignore end*/obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj !== null) { - stack.push(obj); - canonicalizedObj = {}; - replacementStack.push(canonicalizedObj); - var sortedKeys = [], - _key = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - for (_key in obj) { - /* istanbul ignore else */ - if (obj.hasOwnProperty(_key)) { - sortedKeys.push(_key); - } - } - sortedKeys.sort(); - for (i = 0; i < sortedKeys.length; i += 1) { - _key = sortedKeys[i]; - canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key); - } - stack.pop(); - replacementStack.pop(); - } else { - canonicalizedObj = obj; - } - return canonicalizedObj; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2pzb24uanMiXSwibmFtZXMiOlsiZGlmZkpzb24iLCJjYW5vbmljYWxpemUiLCJvYmplY3RQcm90b3R5cGVUb1N0cmluZyIsIk9iamVjdCIsInByb3RvdHlwZSIsInRvU3RyaW5nIiwianNvbkRpZmYiLCJ1c2VMb25nZXN0VG9rZW4iLCJ0b2tlbml6ZSIsImNhc3RJbnB1dCIsInZhbHVlIiwib3B0aW9ucyIsInVuZGVmaW5lZFJlcGxhY2VtZW50Iiwic3RyaW5naWZ5UmVwbGFjZXIiLCJrIiwidiIsIkpTT04iLCJzdHJpbmdpZnkiLCJlcXVhbHMiLCJsZWZ0IiwicmlnaHQiLCJjYWxsIiwicmVwbGFjZSIsIm9sZE9iaiIsIm5ld09iaiIsImRpZmYiLCJvYmoiLCJzdGFjayIsInJlcGxhY2VtZW50U3RhY2siLCJyZXBsYWNlciIsImtleSIsImkiLCJsZW5ndGgiLCJjYW5vbmljYWxpemVkT2JqIiwicHVzaCIsIkFycmF5IiwicG9wIiwidG9KU09OIiwic29ydGVkS2V5cyIsImhhc093blByb3BlcnR5Iiwic29ydCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztnQ0FxQmdCQSxRLEdBQUFBLFE7eURBSUFDLFksR0FBQUEsWTs7QUF6QmhCOzs7O3VCQUNBOzs7O3VCQUVBLElBQU1DLDBCQUEwQkMsT0FBT0MsU0FBUCxDQUFpQkMsUUFBakQ7O0FBR08sSUFBTUMsK0VBQVcsd0VBQWpCO0FBQ1A7QUFDQTtBQUNBQSxTQUFTQyxlQUFULEdBQTJCLElBQTNCOztBQUVBRCxTQUFTRSxRQUFULEdBQW9CLGdFQUFTQSxRQUE3QjtBQUNBRixTQUFTRyxTQUFULEdBQXFCLFVBQVNDLEtBQVQsRUFBZ0I7QUFBQSxpRUFDK0UsS0FBS0MsT0FEcEY7QUFBQSxNQUM1QkMsb0JBRDRCLFlBQzVCQSxvQkFENEI7QUFBQSx1Q0FDTkMsaUJBRE07QUFBQSxNQUNOQSxpQkFETSx5Q0FDYyxVQUFDQyxDQUFELEVBQUlDLENBQUo7QUFBQSxtQ0FBVSxPQUFPQSxDQUFQLEtBQWEsV0FBYixHQUEyQkgsb0JBQTNCLEdBQWtERztBQUE1RDtBQUFBLEdBRGQ7OztBQUduQyxTQUFPLE9BQU9MLEtBQVAsS0FBaUIsUUFBakIsR0FBNEJBLEtBQTVCLEdBQW9DTSxLQUFLQyxTQUFMLENBQWVoQixhQUFhUyxLQUFiLEVBQW9CLElBQXBCLEVBQTBCLElBQTFCLEVBQWdDRyxpQkFBaEMsQ0FBZixFQUFtRUEsaUJBQW5FLEVBQXNGLElBQXRGLENBQTNDO0FBQ0QsQ0FKRDtBQUtBUCxTQUFTWSxNQUFULEdBQWtCLFVBQVNDLElBQVQsRUFBZUMsS0FBZixFQUFzQjtBQUN0QyxTQUFPLG9FQUFLaEIsU0FBTCxDQUFlYyxNQUFmLENBQXNCRyxJQUF0QixDQUEyQmYsUUFBM0IsRUFBcUNhLEtBQUtHLE9BQUwsQ0FBYSxZQUFiLEVBQTJCLElBQTNCLENBQXJDLEVBQXVFRixNQUFNRSxPQUFOLENBQWMsWUFBZCxFQUE0QixJQUE1QixDQUF2RTtBQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTdEIsUUFBVCxDQUFrQnVCLE1BQWxCLEVBQTBCQyxNQUExQixFQUFrQ2IsT0FBbEMsRUFBMkM7QUFBRSxTQUFPTCxTQUFTbUIsSUFBVCxDQUFjRixNQUFkLEVBQXNCQyxNQUF0QixFQUE4QmIsT0FBOUIsQ0FBUDtBQUFnRDs7QUFFcEc7QUFDQTtBQUNPLFNBQVNWLFlBQVQsQ0FBc0J5QixHQUF0QixFQUEyQkMsS0FBM0IsRUFBa0NDLGdCQUFsQyxFQUFvREMsUUFBcEQsRUFBOERDLEdBQTlELEVBQW1FO0FBQ3hFSCxVQUFRQSxTQUFTLEVBQWpCO0FBQ0FDLHFCQUFtQkEsb0JBQW9CLEVBQXZDOztBQUVBLE1BQUlDLFFBQUosRUFBYztBQUNaSCxVQUFNRyxTQUFTQyxHQUFULEVBQWNKLEdBQWQsQ0FBTjtBQUNEOztBQUVELE1BQUlLLG1DQUFKOztBQUVBLE9BQUtBLElBQUksQ0FBVCxFQUFZQSxJQUFJSixNQUFNSyxNQUF0QixFQUE4QkQsS0FBSyxDQUFuQyxFQUFzQztBQUNwQyxRQUFJSixNQUFNSSxDQUFOLE1BQWFMLEdBQWpCLEVBQXNCO0FBQ3BCLGFBQU9FLGlCQUFpQkcsQ0FBakIsQ0FBUDtBQUNEO0FBQ0Y7O0FBRUQsTUFBSUUsa0RBQUo7O0FBRUEsTUFBSSxxQkFBcUIvQix3QkFBd0JtQixJQUF4QixDQUE2QkssR0FBN0IsQ0FBekIsRUFBNEQ7QUFDMURDLFVBQU1PLElBQU4sQ0FBV1IsR0FBWDtBQUNBTyx1QkFBbUIsSUFBSUUsS0FBSixDQUFVVCxJQUFJTSxNQUFkLENBQW5CO0FBQ0FKLHFCQUFpQk0sSUFBakIsQ0FBc0JELGdCQUF0QjtBQUNBLFNBQUtGLElBQUksQ0FBVCxFQUFZQSxJQUFJTCxJQUFJTSxNQUFwQixFQUE0QkQsS0FBSyxDQUFqQyxFQUFvQztBQUNsQ0UsdUJBQWlCRixDQUFqQixJQUFzQjlCLGFBQWF5QixJQUFJSyxDQUFKLENBQWIsRUFBcUJKLEtBQXJCLEVBQTRCQyxnQkFBNUIsRUFBOENDLFFBQTlDLEVBQXdEQyxHQUF4RCxDQUF0QjtBQUNEO0FBQ0RILFVBQU1TLEdBQU47QUFDQVIscUJBQWlCUSxHQUFqQjtBQUNBLFdBQU9ILGdCQUFQO0FBQ0Q7O0FBRUQsTUFBSVAsT0FBT0EsSUFBSVcsTUFBZixFQUF1QjtBQUNyQlgsVUFBTUEsSUFBSVcsTUFBSixFQUFOO0FBQ0Q7O0FBRUQsTUFBSSx5REFBT1gsR0FBUCx5Q0FBT0EsR0FBUCxPQUFlLFFBQWYsSUFBMkJBLFFBQVEsSUFBdkMsRUFBNkM7QUFDM0NDLFVBQU1PLElBQU4sQ0FBV1IsR0FBWDtBQUNBTyx1QkFBbUIsRUFBbkI7QUFDQUwscUJBQWlCTSxJQUFqQixDQUFzQkQsZ0JBQXRCO0FBQ0EsUUFBSUssYUFBYSxFQUFqQjtBQUFBLFFBQ0lSLHNDQURKO0FBRUEsU0FBS0EsSUFBTCxJQUFZSixHQUFaLEVBQWlCO0FBQ2Y7QUFDQSxVQUFJQSxJQUFJYSxjQUFKLENBQW1CVCxJQUFuQixDQUFKLEVBQTZCO0FBQzNCUSxtQkFBV0osSUFBWCxDQUFnQkosSUFBaEI7QUFDRDtBQUNGO0FBQ0RRLGVBQVdFLElBQVg7QUFDQSxTQUFLVCxJQUFJLENBQVQsRUFBWUEsSUFBSU8sV0FBV04sTUFBM0IsRUFBbUNELEtBQUssQ0FBeEMsRUFBMkM7QUFDekNELGFBQU1RLFdBQVdQLENBQVgsQ0FBTjtBQUNBRSx1QkFBaUJILElBQWpCLElBQXdCN0IsYUFBYXlCLElBQUlJLElBQUosQ0FBYixFQUF1QkgsS0FBdkIsRUFBOEJDLGdCQUE5QixFQUFnREMsUUFBaEQsRUFBMERDLElBQTFELENBQXhCO0FBQ0Q7QUFDREgsVUFBTVMsR0FBTjtBQUNBUixxQkFBaUJRLEdBQWpCO0FBQ0QsR0FuQkQsTUFtQk87QUFDTEgsdUJBQW1CUCxHQUFuQjtBQUNEO0FBQ0QsU0FBT08sZ0JBQVA7QUFDRCIsImZpbGUiOiJqc29uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcbmltcG9ydCB7bGluZURpZmZ9IGZyb20gJy4vbGluZSc7XG5cbmNvbnN0IG9iamVjdFByb3RvdHlwZVRvU3RyaW5nID0gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZztcblxuXG5leHBvcnQgY29uc3QganNvbkRpZmYgPSBuZXcgRGlmZigpO1xuLy8gRGlzY3JpbWluYXRlIGJldHdlZW4gdHdvIGxpbmVzIG9mIHByZXR0eS1wcmludGVkLCBzZXJpYWxpemVkIEpTT04gd2hlcmUgb25lIG9mIHRoZW0gaGFzIGFcbi8vIGRhbmdsaW5nIGNvbW1hIGFuZCB0aGUgb3RoZXIgZG9lc24ndC4gVHVybnMgb3V0IGluY2x1ZGluZyB0aGUgZGFuZ2xpbmcgY29tbWEgeWllbGRzIHRoZSBuaWNlc3Qgb3V0cHV0OlxuanNvbkRpZmYudXNlTG9uZ2VzdFRva2VuID0gdHJ1ZTtcblxuanNvbkRpZmYudG9rZW5pemUgPSBsaW5lRGlmZi50b2tlbml6ZTtcbmpzb25EaWZmLmNhc3RJbnB1dCA9IGZ1bmN0aW9uKHZhbHVlKSB7XG4gIGNvbnN0IHt1bmRlZmluZWRSZXBsYWNlbWVudCwgc3RyaW5naWZ5UmVwbGFjZXIgPSAoaywgdikgPT4gdHlwZW9mIHYgPT09ICd1bmRlZmluZWQnID8gdW5kZWZpbmVkUmVwbGFjZW1lbnQgOiB2fSA9IHRoaXMub3B0aW9ucztcblxuICByZXR1cm4gdHlwZW9mIHZhbHVlID09PSAnc3RyaW5nJyA/IHZhbHVlIDogSlNPTi5zdHJpbmdpZnkoY2Fub25pY2FsaXplKHZhbHVlLCBudWxsLCBudWxsLCBzdHJpbmdpZnlSZXBsYWNlciksIHN0cmluZ2lmeVJlcGxhY2VyLCAnICAnKTtcbn07XG5qc29uRGlmZi5lcXVhbHMgPSBmdW5jdGlvbihsZWZ0LCByaWdodCkge1xuICByZXR1cm4gRGlmZi5wcm90b3R5cGUuZXF1YWxzLmNhbGwoanNvbkRpZmYsIGxlZnQucmVwbGFjZSgvLChbXFxyXFxuXSkvZywgJyQxJyksIHJpZ2h0LnJlcGxhY2UoLywoW1xcclxcbl0pL2csICckMScpKTtcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBkaWZmSnNvbihvbGRPYmosIG5ld09iaiwgb3B0aW9ucykgeyByZXR1cm4ganNvbkRpZmYuZGlmZihvbGRPYmosIG5ld09iaiwgb3B0aW9ucyk7IH1cblxuLy8gVGhpcyBmdW5jdGlvbiBoYW5kbGVzIHRoZSBwcmVzZW5jZSBvZiBjaXJjdWxhciByZWZlcmVuY2VzIGJ5IGJhaWxpbmcgb3V0IHdoZW4gZW5jb3VudGVyaW5nIGFuXG4vLyBvYmplY3QgdGhhdCBpcyBhbHJlYWR5IG9uIHRoZSBcInN0YWNrXCIgb2YgaXRlbXMgYmVpbmcgcHJvY2Vzc2VkLiBBY2NlcHRzIGFuIG9wdGlvbmFsIHJlcGxhY2VyXG5leHBvcnQgZnVuY3Rpb24gY2Fub25pY2FsaXplKG9iaiwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpIHtcbiAgc3RhY2sgPSBzdGFjayB8fCBbXTtcbiAgcmVwbGFjZW1lbnRTdGFjayA9IHJlcGxhY2VtZW50U3RhY2sgfHwgW107XG5cbiAgaWYgKHJlcGxhY2VyKSB7XG4gICAgb2JqID0gcmVwbGFjZXIoa2V5LCBvYmopO1xuICB9XG5cbiAgbGV0IGk7XG5cbiAgZm9yIChpID0gMDsgaSA8IHN0YWNrLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgaWYgKHN0YWNrW2ldID09PSBvYmopIHtcbiAgICAgIHJldHVybiByZXBsYWNlbWVudFN0YWNrW2ldO1xuICAgIH1cbiAgfVxuXG4gIGxldCBjYW5vbmljYWxpemVkT2JqO1xuXG4gIGlmICgnW29iamVjdCBBcnJheV0nID09PSBvYmplY3RQcm90b3R5cGVUb1N0cmluZy5jYWxsKG9iaikpIHtcbiAgICBzdGFjay5wdXNoKG9iaik7XG4gICAgY2Fub25pY2FsaXplZE9iaiA9IG5ldyBBcnJheShvYmoubGVuZ3RoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnB1c2goY2Fub25pY2FsaXplZE9iaik7XG4gICAgZm9yIChpID0gMDsgaSA8IG9iai5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgY2Fub25pY2FsaXplZE9ialtpXSA9IGNhbm9uaWNhbGl6ZShvYmpbaV0sIHN0YWNrLCByZXBsYWNlbWVudFN0YWNrLCByZXBsYWNlciwga2V5KTtcbiAgICB9XG4gICAgc3RhY2sucG9wKCk7XG4gICAgcmVwbGFjZW1lbnRTdGFjay5wb3AoKTtcbiAgICByZXR1cm4gY2Fub25pY2FsaXplZE9iajtcbiAgfVxuXG4gIGlmIChvYmogJiYgb2JqLnRvSlNPTikge1xuICAgIG9iaiA9IG9iai50b0pTT04oKTtcbiAgfVxuXG4gIGlmICh0eXBlb2Ygb2JqID09PSAnb2JqZWN0JyAmJiBvYmogIT09IG51bGwpIHtcbiAgICBzdGFjay5wdXNoKG9iaik7XG4gICAgY2Fub25pY2FsaXplZE9iaiA9IHt9O1xuICAgIHJlcGxhY2VtZW50U3RhY2sucHVzaChjYW5vbmljYWxpemVkT2JqKTtcbiAgICBsZXQgc29ydGVkS2V5cyA9IFtdLFxuICAgICAgICBrZXk7XG4gICAgZm9yIChrZXkgaW4gb2JqKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgIHNvcnRlZEtleXMucHVzaChrZXkpO1xuICAgICAgfVxuICAgIH1cbiAgICBzb3J0ZWRLZXlzLnNvcnQoKTtcbiAgICBmb3IgKGkgPSAwOyBpIDwgc29ydGVkS2V5cy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAga2V5ID0gc29ydGVkS2V5c1tpXTtcbiAgICAgIGNhbm9uaWNhbGl6ZWRPYmpba2V5XSA9IGNhbm9uaWNhbGl6ZShvYmpba2V5XSwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpO1xuICAgIH1cbiAgICBzdGFjay5wb3AoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnBvcCgpO1xuICB9IGVsc2Uge1xuICAgIGNhbm9uaWNhbGl6ZWRPYmogPSBvYmo7XG4gIH1cbiAgcmV0dXJuIGNhbm9uaWNhbGl6ZWRPYmo7XG59XG4iXX0= - - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports.arrayDiff = undefined; - exports. /*istanbul ignore end*/diffArrays = diffArrays; - - var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/var arrayDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/(); - arrayDiff.tokenize = function (value) { - return value.slice(); - }; - arrayDiff.join = arrayDiff.removeEmpty = function (value) { - return value; - }; - - function diffArrays(oldArr, newArr, callback) { - return arrayDiff.diff(oldArr, newArr, callback); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2FycmF5LmpzIl0sIm5hbWVzIjpbImRpZmZBcnJheXMiLCJhcnJheURpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic2xpY2UiLCJqb2luIiwicmVtb3ZlRW1wdHkiLCJvbGRBcnIiLCJuZXdBcnIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBVWdCQSxVLEdBQUFBLFU7O0FBVmhCOzs7Ozs7dUJBRU8sSUFBTUMsaUZBQVksd0VBQWxCO0FBQ1BBLFVBQVVDLFFBQVYsR0FBcUIsVUFBU0MsS0FBVCxFQUFnQjtBQUNuQyxTQUFPQSxNQUFNQyxLQUFOLEVBQVA7QUFDRCxDQUZEO0FBR0FILFVBQVVJLElBQVYsR0FBaUJKLFVBQVVLLFdBQVYsR0FBd0IsVUFBU0gsS0FBVCxFQUFnQjtBQUN2RCxTQUFPQSxLQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTSCxVQUFULENBQW9CTyxNQUFwQixFQUE0QkMsTUFBNUIsRUFBb0NDLFFBQXBDLEVBQThDO0FBQUUsU0FBT1IsVUFBVVMsSUFBVixDQUFlSCxNQUFmLEVBQXVCQyxNQUF2QixFQUErQkMsUUFBL0IsQ0FBUDtBQUFrRCIsImZpbGUiOiJhcnJheS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cbmV4cG9ydCBjb25zdCBhcnJheURpZmYgPSBuZXcgRGlmZigpO1xuYXJyYXlEaWZmLnRva2VuaXplID0gZnVuY3Rpb24odmFsdWUpIHtcbiAgcmV0dXJuIHZhbHVlLnNsaWNlKCk7XG59O1xuYXJyYXlEaWZmLmpvaW4gPSBhcnJheURpZmYucmVtb3ZlRW1wdHkgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWU7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkFycmF5cyhvbGRBcnIsIG5ld0FyciwgY2FsbGJhY2spIHsgcmV0dXJuIGFycmF5RGlmZi5kaWZmKG9sZEFyciwgbmV3QXJyLCBjYWxsYmFjayk7IH1cbiJdfQ== - - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/applyPatch = applyPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = applyPatches; - - var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_distanceIterator = __webpack_require__(12) /*istanbul ignore end*/; - - /*istanbul ignore start*/var _distanceIterator2 = _interopRequireDefault(_distanceIterator); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } - - /*istanbul ignore end*/function applyPatch(source, uniDiff) { - /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - - if (typeof uniDiff === 'string') { - uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff); - } - - if (Array.isArray(uniDiff)) { - if (uniDiff.length > 1) { - throw new Error('applyPatch only works with a single input.'); - } - - uniDiff = uniDiff[0]; - } - - // Apply the diff to the input - var lines = source.split(/\r\n|[\n\v\f\r\x85]/), - delimiters = source.match(/\r\n|[\n\v\f\r\x85]/g) || [], - hunks = uniDiff.hunks, - compareLine = options.compareLine || function (lineNumber, line, operation, patchContent) /*istanbul ignore start*/{ - return (/*istanbul ignore end*/line === patchContent - ); - }, - errorCount = 0, - fuzzFactor = options.fuzzFactor || 0, - minLine = 0, - offset = 0, - removeEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/, - addEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - - /** - * Checks if the hunk exactly fits on the provided location - */ - function hunkFits(hunk, toPos) { - for (var j = 0; j < hunk.lines.length; j++) { - var line = hunk.lines[j], - operation = line.length > 0 ? line[0] : ' ', - content = line.length > 0 ? line.substr(1) : line; - - if (operation === ' ' || operation === '-') { - // Context sanity check - if (!compareLine(toPos + 1, lines[toPos], operation, content)) { - errorCount++; - - if (errorCount > fuzzFactor) { - return false; - } - } - toPos++; - } - } - - return true; - } - - // Search best fit offsets for each hunk based on the previous ones - for (var i = 0; i < hunks.length; i++) { - var hunk = hunks[i], - maxLine = lines.length - hunk.oldLines, - localOffset = 0, - toPos = offset + hunk.oldStart - 1; - - var iterator = /*istanbul ignore start*/(0, _distanceIterator2['default']) /*istanbul ignore end*/(toPos, minLine, maxLine); - - for (; localOffset !== undefined; localOffset = iterator()) { - if (hunkFits(hunk, toPos + localOffset)) { - hunk.offset = offset += localOffset; - break; - } - } - - if (localOffset === undefined) { - return false; - } - - // Set lower text limit to end of the current hunk, so next ones don't try - // to fit over already patched text - minLine = hunk.offset + hunk.oldStart + hunk.oldLines; - } - - // Apply patch hunks - var diffOffset = 0; - for (var _i = 0; _i < hunks.length; _i++) { - var _hunk = hunks[_i], - _toPos = _hunk.oldStart + _hunk.offset + diffOffset - 1; - diffOffset += _hunk.newLines - _hunk.oldLines; - - if (_toPos < 0) { - // Creating a new file - _toPos = 0; - } - - for (var j = 0; j < _hunk.lines.length; j++) { - var line = _hunk.lines[j], - operation = line.length > 0 ? line[0] : ' ', - content = line.length > 0 ? line.substr(1) : line, - delimiter = _hunk.linedelimiters[j]; - - if (operation === ' ') { - _toPos++; - } else if (operation === '-') { - lines.splice(_toPos, 1); - delimiters.splice(_toPos, 1); - /* istanbul ignore else */ - } else if (operation === '+') { - lines.splice(_toPos, 0, content); - delimiters.splice(_toPos, 0, delimiter); - _toPos++; - } else if (operation === '\\') { - var previousOperation = _hunk.lines[j - 1] ? _hunk.lines[j - 1][0] : null; - if (previousOperation === '+') { - removeEOFNL = true; - } else if (previousOperation === '-') { - addEOFNL = true; - } - } - } - } - - // Handle EOFNL insertion/removal - if (removeEOFNL) { - while (!lines[lines.length - 1]) { - lines.pop(); - delimiters.pop(); - } - } else if (addEOFNL) { - lines.push(''); - delimiters.push('\n'); - } - for (var _k = 0; _k < lines.length - 1; _k++) { - lines[_k] = lines[_k] + delimiters[_k]; - } - return lines.join(''); - } - - // Wrapper that supports multiple file patches via callbacks. - function applyPatches(uniDiff, options) { - if (typeof uniDiff === 'string') { - uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff); - } - - var currentIndex = 0; - function processIndex() { - var index = uniDiff[currentIndex++]; - if (!index) { - return options.complete(); - } - - options.loadFile(index, function (err, data) { - if (err) { - return options.complete(err); - } - - var updatedContent = applyPatch(data, index, options); - options.patched(index, updatedContent, function (err) { - if (err) { - return options.complete(err); - } - - processIndex(); - }); - }); - } - processIndex(); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9hcHBseS5qcyJdLCJuYW1lcyI6WyJhcHBseVBhdGNoIiwiYXBwbHlQYXRjaGVzIiwic291cmNlIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJBcnJheSIsImlzQXJyYXkiLCJsZW5ndGgiLCJFcnJvciIsImxpbmVzIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJodW5rcyIsImNvbXBhcmVMaW5lIiwibGluZU51bWJlciIsImxpbmUiLCJvcGVyYXRpb24iLCJwYXRjaENvbnRlbnQiLCJlcnJvckNvdW50IiwiZnV6ekZhY3RvciIsIm1pbkxpbmUiLCJvZmZzZXQiLCJyZW1vdmVFT0ZOTCIsImFkZEVPRk5MIiwiaHVua0ZpdHMiLCJodW5rIiwidG9Qb3MiLCJqIiwiY29udGVudCIsInN1YnN0ciIsImkiLCJtYXhMaW5lIiwib2xkTGluZXMiLCJsb2NhbE9mZnNldCIsIm9sZFN0YXJ0IiwiaXRlcmF0b3IiLCJ1bmRlZmluZWQiLCJkaWZmT2Zmc2V0IiwibmV3TGluZXMiLCJkZWxpbWl0ZXIiLCJsaW5lZGVsaW1pdGVycyIsInNwbGljZSIsInByZXZpb3VzT3BlcmF0aW9uIiwicG9wIiwicHVzaCIsIl9rIiwiam9pbiIsImN1cnJlbnRJbmRleCIsInByb2Nlc3NJbmRleCIsImluZGV4IiwiY29tcGxldGUiLCJsb2FkRmlsZSIsImVyciIsImRhdGEiLCJ1cGRhdGVkQ29udGVudCIsInBhdGNoZWQiXSwibWFwcGluZ3MiOiI7OztnQ0FHZ0JBLFUsR0FBQUEsVTt5REFvSUFDLFksR0FBQUEsWTs7QUF2SWhCOztBQUNBOzs7Ozs7dUJBRU8sU0FBU0QsVUFBVCxDQUFvQkUsTUFBcEIsRUFBNEJDLE9BQTVCLEVBQW1EO0FBQUEsc0RBQWRDLE9BQWMsdUVBQUosRUFBSTs7QUFDeEQsTUFBSSxPQUFPRCxPQUFQLEtBQW1CLFFBQXZCLEVBQWlDO0FBQy9CQSxjQUFVLHdFQUFXQSxPQUFYLENBQVY7QUFDRDs7QUFFRCxNQUFJRSxNQUFNQyxPQUFOLENBQWNILE9BQWQsQ0FBSixFQUE0QjtBQUMxQixRQUFJQSxRQUFRSSxNQUFSLEdBQWlCLENBQXJCLEVBQXdCO0FBQ3RCLFlBQU0sSUFBSUMsS0FBSixDQUFVLDRDQUFWLENBQU47QUFDRDs7QUFFREwsY0FBVUEsUUFBUSxDQUFSLENBQVY7QUFDRDs7QUFFRDtBQUNBLE1BQUlNLFFBQVFQLE9BQU9RLEtBQVAsQ0FBYSxxQkFBYixDQUFaO0FBQUEsTUFDSUMsYUFBYVQsT0FBT1UsS0FBUCxDQUFhLHNCQUFiLEtBQXdDLEVBRHpEO0FBQUEsTUFFSUMsUUFBUVYsUUFBUVUsS0FGcEI7QUFBQSxNQUlJQyxjQUFjVixRQUFRVSxXQUFSLElBQXdCLFVBQUNDLFVBQUQsRUFBYUMsSUFBYixFQUFtQkMsU0FBbkIsRUFBOEJDLFlBQTlCO0FBQUEsbUNBQStDRixTQUFTRTtBQUF4RDtBQUFBLEdBSjFDO0FBQUEsTUFLSUMsYUFBYSxDQUxqQjtBQUFBLE1BTUlDLGFBQWFoQixRQUFRZ0IsVUFBUixJQUFzQixDQU52QztBQUFBLE1BT0lDLFVBQVUsQ0FQZDtBQUFBLE1BUUlDLFNBQVMsQ0FSYjtBQUFBLE1BVUlDLDZDQVZKO0FBQUEsTUFXSUMsMENBWEo7O0FBYUE7OztBQUdBLFdBQVNDLFFBQVQsQ0FBa0JDLElBQWxCLEVBQXdCQyxLQUF4QixFQUErQjtBQUM3QixTQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUYsS0FBS2pCLEtBQUwsQ0FBV0YsTUFBL0IsRUFBdUNxQixHQUF2QyxFQUE0QztBQUMxQyxVQUFJWixPQUFPVSxLQUFLakIsS0FBTCxDQUFXbUIsQ0FBWCxDQUFYO0FBQUEsVUFDSVgsWUFBYUQsS0FBS1QsTUFBTCxHQUFjLENBQWQsR0FBa0JTLEtBQUssQ0FBTCxDQUFsQixHQUE0QixHQUQ3QztBQUFBLFVBRUlhLFVBQVdiLEtBQUtULE1BQUwsR0FBYyxDQUFkLEdBQWtCUyxLQUFLYyxNQUFMLENBQVksQ0FBWixDQUFsQixHQUFtQ2QsSUFGbEQ7O0FBSUEsVUFBSUMsY0FBYyxHQUFkLElBQXFCQSxjQUFjLEdBQXZDLEVBQTRDO0FBQzFDO0FBQ0EsWUFBSSxDQUFDSCxZQUFZYSxRQUFRLENBQXBCLEVBQXVCbEIsTUFBTWtCLEtBQU4sQ0FBdkIsRUFBcUNWLFNBQXJDLEVBQWdEWSxPQUFoRCxDQUFMLEVBQStEO0FBQzdEVjs7QUFFQSxjQUFJQSxhQUFhQyxVQUFqQixFQUE2QjtBQUMzQixtQkFBTyxLQUFQO0FBQ0Q7QUFDRjtBQUNETztBQUNEO0FBQ0Y7O0FBRUQsV0FBTyxJQUFQO0FBQ0Q7O0FBRUQ7QUFDQSxPQUFLLElBQUlJLElBQUksQ0FBYixFQUFnQkEsSUFBSWxCLE1BQU1OLE1BQTFCLEVBQWtDd0IsR0FBbEMsRUFBdUM7QUFDckMsUUFBSUwsT0FBT2IsTUFBTWtCLENBQU4sQ0FBWDtBQUFBLFFBQ0lDLFVBQVV2QixNQUFNRixNQUFOLEdBQWVtQixLQUFLTyxRQURsQztBQUFBLFFBRUlDLGNBQWMsQ0FGbEI7QUFBQSxRQUdJUCxRQUFRTCxTQUFTSSxLQUFLUyxRQUFkLEdBQXlCLENBSHJDOztBQUtBLFFBQUlDLFdBQVcsb0ZBQWlCVCxLQUFqQixFQUF3Qk4sT0FBeEIsRUFBaUNXLE9BQWpDLENBQWY7O0FBRUEsV0FBT0UsZ0JBQWdCRyxTQUF2QixFQUFrQ0gsY0FBY0UsVUFBaEQsRUFBNEQ7QUFDMUQsVUFBSVgsU0FBU0MsSUFBVCxFQUFlQyxRQUFRTyxXQUF2QixDQUFKLEVBQXlDO0FBQ3ZDUixhQUFLSixNQUFMLEdBQWNBLFVBQVVZLFdBQXhCO0FBQ0E7QUFDRDtBQUNGOztBQUVELFFBQUlBLGdCQUFnQkcsU0FBcEIsRUFBK0I7QUFDN0IsYUFBTyxLQUFQO0FBQ0Q7O0FBRUQ7QUFDQTtBQUNBaEIsY0FBVUssS0FBS0osTUFBTCxHQUFjSSxLQUFLUyxRQUFuQixHQUE4QlQsS0FBS08sUUFBN0M7QUFDRDs7QUFFRDtBQUNBLE1BQUlLLGFBQWEsQ0FBakI7QUFDQSxPQUFLLElBQUlQLEtBQUksQ0FBYixFQUFnQkEsS0FBSWxCLE1BQU1OLE1BQTFCLEVBQWtDd0IsSUFBbEMsRUFBdUM7QUFDckMsUUFBSUwsUUFBT2IsTUFBTWtCLEVBQU4sQ0FBWDtBQUFBLFFBQ0lKLFNBQVFELE1BQUtTLFFBQUwsR0FBZ0JULE1BQUtKLE1BQXJCLEdBQThCZ0IsVUFBOUIsR0FBMkMsQ0FEdkQ7QUFFQUEsa0JBQWNaLE1BQUthLFFBQUwsR0FBZ0JiLE1BQUtPLFFBQW5DOztBQUVBLFFBQUlOLFNBQVEsQ0FBWixFQUFlO0FBQUU7QUFDZkEsZUFBUSxDQUFSO0FBQ0Q7O0FBRUQsU0FBSyxJQUFJQyxJQUFJLENBQWIsRUFBZ0JBLElBQUlGLE1BQUtqQixLQUFMLENBQVdGLE1BQS9CLEVBQXVDcUIsR0FBdkMsRUFBNEM7QUFDMUMsVUFBSVosT0FBT1UsTUFBS2pCLEtBQUwsQ0FBV21CLENBQVgsQ0FBWDtBQUFBLFVBQ0lYLFlBQWFELEtBQUtULE1BQUwsR0FBYyxDQUFkLEdBQWtCUyxLQUFLLENBQUwsQ0FBbEIsR0FBNEIsR0FEN0M7QUFBQSxVQUVJYSxVQUFXYixLQUFLVCxNQUFMLEdBQWMsQ0FBZCxHQUFrQlMsS0FBS2MsTUFBTCxDQUFZLENBQVosQ0FBbEIsR0FBbUNkLElBRmxEO0FBQUEsVUFHSXdCLFlBQVlkLE1BQUtlLGNBQUwsQ0FBb0JiLENBQXBCLENBSGhCOztBQUtBLFVBQUlYLGNBQWMsR0FBbEIsRUFBdUI7QUFDckJVO0FBQ0QsT0FGRCxNQUVPLElBQUlWLGNBQWMsR0FBbEIsRUFBdUI7QUFDNUJSLGNBQU1pQyxNQUFOLENBQWFmLE1BQWIsRUFBb0IsQ0FBcEI7QUFDQWhCLG1CQUFXK0IsTUFBWCxDQUFrQmYsTUFBbEIsRUFBeUIsQ0FBekI7QUFDRjtBQUNDLE9BSk0sTUFJQSxJQUFJVixjQUFjLEdBQWxCLEVBQXVCO0FBQzVCUixjQUFNaUMsTUFBTixDQUFhZixNQUFiLEVBQW9CLENBQXBCLEVBQXVCRSxPQUF2QjtBQUNBbEIsbUJBQVcrQixNQUFYLENBQWtCZixNQUFsQixFQUF5QixDQUF6QixFQUE0QmEsU0FBNUI7QUFDQWI7QUFDRCxPQUpNLE1BSUEsSUFBSVYsY0FBYyxJQUFsQixFQUF3QjtBQUM3QixZQUFJMEIsb0JBQW9CakIsTUFBS2pCLEtBQUwsQ0FBV21CLElBQUksQ0FBZixJQUFvQkYsTUFBS2pCLEtBQUwsQ0FBV21CLElBQUksQ0FBZixFQUFrQixDQUFsQixDQUFwQixHQUEyQyxJQUFuRTtBQUNBLFlBQUllLHNCQUFzQixHQUExQixFQUErQjtBQUM3QnBCLHdCQUFjLElBQWQ7QUFDRCxTQUZELE1BRU8sSUFBSW9CLHNCQUFzQixHQUExQixFQUErQjtBQUNwQ25CLHFCQUFXLElBQVg7QUFDRDtBQUNGO0FBQ0Y7QUFDRjs7QUFFRDtBQUNBLE1BQUlELFdBQUosRUFBaUI7QUFDZixXQUFPLENBQUNkLE1BQU1BLE1BQU1GLE1BQU4sR0FBZSxDQUFyQixDQUFSLEVBQWlDO0FBQy9CRSxZQUFNbUMsR0FBTjtBQUNBakMsaUJBQVdpQyxHQUFYO0FBQ0Q7QUFDRixHQUxELE1BS08sSUFBSXBCLFFBQUosRUFBYztBQUNuQmYsVUFBTW9DLElBQU4sQ0FBVyxFQUFYO0FBQ0FsQyxlQUFXa0MsSUFBWCxDQUFnQixJQUFoQjtBQUNEO0FBQ0QsT0FBSyxJQUFJQyxLQUFLLENBQWQsRUFBaUJBLEtBQUtyQyxNQUFNRixNQUFOLEdBQWUsQ0FBckMsRUFBd0N1QyxJQUF4QyxFQUE4QztBQUM1Q3JDLFVBQU1xQyxFQUFOLElBQVlyQyxNQUFNcUMsRUFBTixJQUFZbkMsV0FBV21DLEVBQVgsQ0FBeEI7QUFDRDtBQUNELFNBQU9yQyxNQUFNc0MsSUFBTixDQUFXLEVBQVgsQ0FBUDtBQUNEOztBQUVEO0FBQ08sU0FBUzlDLFlBQVQsQ0FBc0JFLE9BQXRCLEVBQStCQyxPQUEvQixFQUF3QztBQUM3QyxNQUFJLE9BQU9ELE9BQVAsS0FBbUIsUUFBdkIsRUFBaUM7QUFDL0JBLGNBQVUsd0VBQVdBLE9BQVgsQ0FBVjtBQUNEOztBQUVELE1BQUk2QyxlQUFlLENBQW5CO0FBQ0EsV0FBU0MsWUFBVCxHQUF3QjtBQUN0QixRQUFJQyxRQUFRL0MsUUFBUTZDLGNBQVIsQ0FBWjtBQUNBLFFBQUksQ0FBQ0UsS0FBTCxFQUFZO0FBQ1YsYUFBTzlDLFFBQVErQyxRQUFSLEVBQVA7QUFDRDs7QUFFRC9DLFlBQVFnRCxRQUFSLENBQWlCRixLQUFqQixFQUF3QixVQUFTRyxHQUFULEVBQWNDLElBQWQsRUFBb0I7QUFDMUMsVUFBSUQsR0FBSixFQUFTO0FBQ1AsZUFBT2pELFFBQVErQyxRQUFSLENBQWlCRSxHQUFqQixDQUFQO0FBQ0Q7O0FBRUQsVUFBSUUsaUJBQWlCdkQsV0FBV3NELElBQVgsRUFBaUJKLEtBQWpCLEVBQXdCOUMsT0FBeEIsQ0FBckI7QUFDQUEsY0FBUW9ELE9BQVIsQ0FBZ0JOLEtBQWhCLEVBQXVCSyxjQUF2QixFQUF1QyxVQUFTRixHQUFULEVBQWM7QUFDbkQsWUFBSUEsR0FBSixFQUFTO0FBQ1AsaUJBQU9qRCxRQUFRK0MsUUFBUixDQUFpQkUsR0FBakIsQ0FBUDtBQUNEOztBQUVESjtBQUNELE9BTkQ7QUFPRCxLQWJEO0FBY0Q7QUFDREE7QUFDRCIsImZpbGUiOiJhcHBseS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7cGFyc2VQYXRjaH0gZnJvbSAnLi9wYXJzZSc7XG5pbXBvcnQgZGlzdGFuY2VJdGVyYXRvciBmcm9tICcuLi91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yJztcblxuZXhwb3J0IGZ1bmN0aW9uIGFwcGx5UGF0Y2goc291cmNlLCB1bmlEaWZmLCBvcHRpb25zID0ge30pIHtcbiAgaWYgKHR5cGVvZiB1bmlEaWZmID09PSAnc3RyaW5nJykge1xuICAgIHVuaURpZmYgPSBwYXJzZVBhdGNoKHVuaURpZmYpO1xuICB9XG5cbiAgaWYgKEFycmF5LmlzQXJyYXkodW5pRGlmZikpIHtcbiAgICBpZiAodW5pRGlmZi5sZW5ndGggPiAxKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ2FwcGx5UGF0Y2ggb25seSB3b3JrcyB3aXRoIGEgc2luZ2xlIGlucHV0LicpO1xuICAgIH1cblxuICAgIHVuaURpZmYgPSB1bmlEaWZmWzBdO1xuICB9XG5cbiAgLy8gQXBwbHkgdGhlIGRpZmYgdG8gdGhlIGlucHV0XG4gIGxldCBsaW5lcyA9IHNvdXJjZS5zcGxpdCgvXFxyXFxufFtcXG5cXHZcXGZcXHJcXHg4NV0vKSxcbiAgICAgIGRlbGltaXRlcnMgPSBzb3VyY2UubWF0Y2goL1xcclxcbnxbXFxuXFx2XFxmXFxyXFx4ODVdL2cpIHx8IFtdLFxuICAgICAgaHVua3MgPSB1bmlEaWZmLmh1bmtzLFxuXG4gICAgICBjb21wYXJlTGluZSA9IG9wdGlvbnMuY29tcGFyZUxpbmUgfHwgKChsaW5lTnVtYmVyLCBsaW5lLCBvcGVyYXRpb24sIHBhdGNoQ29udGVudCkgPT4gbGluZSA9PT0gcGF0Y2hDb250ZW50KSxcbiAgICAgIGVycm9yQ291bnQgPSAwLFxuICAgICAgZnV6ekZhY3RvciA9IG9wdGlvbnMuZnV6ekZhY3RvciB8fCAwLFxuICAgICAgbWluTGluZSA9IDAsXG4gICAgICBvZmZzZXQgPSAwLFxuXG4gICAgICByZW1vdmVFT0ZOTCxcbiAgICAgIGFkZEVPRk5MO1xuXG4gIC8qKlxuICAgKiBDaGVja3MgaWYgdGhlIGh1bmsgZXhhY3RseSBmaXRzIG9uIHRoZSBwcm92aWRlZCBsb2NhdGlvblxuICAgKi9cbiAgZnVuY3Rpb24gaHVua0ZpdHMoaHVuaywgdG9Qb3MpIHtcbiAgICBmb3IgKGxldCBqID0gMDsgaiA8IGh1bmsubGluZXMubGVuZ3RoOyBqKyspIHtcbiAgICAgIGxldCBsaW5lID0gaHVuay5saW5lc1tqXSxcbiAgICAgICAgICBvcGVyYXRpb24gPSAobGluZS5sZW5ndGggPiAwID8gbGluZVswXSA6ICcgJyksXG4gICAgICAgICAgY29udGVudCA9IChsaW5lLmxlbmd0aCA+IDAgPyBsaW5lLnN1YnN0cigxKSA6IGxpbmUpO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnLScpIHtcbiAgICAgICAgLy8gQ29udGV4dCBzYW5pdHkgY2hlY2tcbiAgICAgICAgaWYgKCFjb21wYXJlTGluZSh0b1BvcyArIDEsIGxpbmVzW3RvUG9zXSwgb3BlcmF0aW9uLCBjb250ZW50KSkge1xuICAgICAgICAgIGVycm9yQ291bnQrKztcblxuICAgICAgICAgIGlmIChlcnJvckNvdW50ID4gZnV6ekZhY3Rvcikge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0b1BvcysrO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0cnVlO1xuICB9XG5cbiAgLy8gU2VhcmNoIGJlc3QgZml0IG9mZnNldHMgZm9yIGVhY2ggaHVuayBiYXNlZCBvbiB0aGUgcHJldmlvdXMgb25lc1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGh1bmtzLmxlbmd0aDsgaSsrKSB7XG4gICAgbGV0IGh1bmsgPSBodW5rc1tpXSxcbiAgICAgICAgbWF4TGluZSA9IGxpbmVzLmxlbmd0aCAtIGh1bmsub2xkTGluZXMsXG4gICAgICAgIGxvY2FsT2Zmc2V0ID0gMCxcbiAgICAgICAgdG9Qb3MgPSBvZmZzZXQgKyBodW5rLm9sZFN0YXJ0IC0gMTtcblxuICAgIGxldCBpdGVyYXRvciA9IGRpc3RhbmNlSXRlcmF0b3IodG9Qb3MsIG1pbkxpbmUsIG1heExpbmUpO1xuXG4gICAgZm9yICg7IGxvY2FsT2Zmc2V0ICE9PSB1bmRlZmluZWQ7IGxvY2FsT2Zmc2V0ID0gaXRlcmF0b3IoKSkge1xuICAgICAgaWYgKGh1bmtGaXRzKGh1bmssIHRvUG9zICsgbG9jYWxPZmZzZXQpKSB7XG4gICAgICAgIGh1bmsub2Zmc2V0ID0gb2Zmc2V0ICs9IGxvY2FsT2Zmc2V0O1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAobG9jYWxPZmZzZXQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIC8vIFNldCBsb3dlciB0ZXh0IGxpbWl0IHRvIGVuZCBvZiB0aGUgY3VycmVudCBodW5rLCBzbyBuZXh0IG9uZXMgZG9uJ3QgdHJ5XG4gICAgLy8gdG8gZml0IG92ZXIgYWxyZWFkeSBwYXRjaGVkIHRleHRcbiAgICBtaW5MaW5lID0gaHVuay5vZmZzZXQgKyBodW5rLm9sZFN0YXJ0ICsgaHVuay5vbGRMaW5lcztcbiAgfVxuXG4gIC8vIEFwcGx5IHBhdGNoIGh1bmtzXG4gIGxldCBkaWZmT2Zmc2V0ID0gMDtcbiAgZm9yIChsZXQgaSA9IDA7IGkgPCBodW5rcy5sZW5ndGg7IGkrKykge1xuICAgIGxldCBodW5rID0gaHVua3NbaV0sXG4gICAgICAgIHRvUG9zID0gaHVuay5vbGRTdGFydCArIGh1bmsub2Zmc2V0ICsgZGlmZk9mZnNldCAtIDE7XG4gICAgZGlmZk9mZnNldCArPSBodW5rLm5ld0xpbmVzIC0gaHVuay5vbGRMaW5lcztcblxuICAgIGlmICh0b1BvcyA8IDApIHsgLy8gQ3JlYXRpbmcgYSBuZXcgZmlsZVxuICAgICAgdG9Qb3MgPSAwO1xuICAgIH1cblxuICAgIGZvciAobGV0IGogPSAwOyBqIDwgaHVuay5saW5lcy5sZW5ndGg7IGorKykge1xuICAgICAgbGV0IGxpbmUgPSBodW5rLmxpbmVzW2pdLFxuICAgICAgICAgIG9wZXJhdGlvbiA9IChsaW5lLmxlbmd0aCA+IDAgPyBsaW5lWzBdIDogJyAnKSxcbiAgICAgICAgICBjb250ZW50ID0gKGxpbmUubGVuZ3RoID4gMCA/IGxpbmUuc3Vic3RyKDEpIDogbGluZSksXG4gICAgICAgICAgZGVsaW1pdGVyID0gaHVuay5saW5lZGVsaW1pdGVyc1tqXTtcblxuICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJyAnKSB7XG4gICAgICAgIHRvUG9zKys7XG4gICAgICB9IGVsc2UgaWYgKG9wZXJhdGlvbiA9PT0gJy0nKSB7XG4gICAgICAgIGxpbmVzLnNwbGljZSh0b1BvcywgMSk7XG4gICAgICAgIGRlbGltaXRlcnMuc3BsaWNlKHRvUG9zLCAxKTtcbiAgICAgIC8qIGlzdGFuYnVsIGlnbm9yZSBlbHNlICovXG4gICAgICB9IGVsc2UgaWYgKG9wZXJhdGlvbiA9PT0gJysnKSB7XG4gICAgICAgIGxpbmVzLnNwbGljZSh0b1BvcywgMCwgY29udGVudCk7XG4gICAgICAgIGRlbGltaXRlcnMuc3BsaWNlKHRvUG9zLCAwLCBkZWxpbWl0ZXIpO1xuICAgICAgICB0b1BvcysrO1xuICAgICAgfSBlbHNlIGlmIChvcGVyYXRpb24gPT09ICdcXFxcJykge1xuICAgICAgICBsZXQgcHJldmlvdXNPcGVyYXRpb24gPSBodW5rLmxpbmVzW2ogLSAxXSA/IGh1bmsubGluZXNbaiAtIDFdWzBdIDogbnVsbDtcbiAgICAgICAgaWYgKHByZXZpb3VzT3BlcmF0aW9uID09PSAnKycpIHtcbiAgICAgICAgICByZW1vdmVFT0ZOTCA9IHRydWU7XG4gICAgICAgIH0gZWxzZSBpZiAocHJldmlvdXNPcGVyYXRpb24gPT09ICctJykge1xuICAgICAgICAgIGFkZEVPRk5MID0gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vIEhhbmRsZSBFT0ZOTCBpbnNlcnRpb24vcmVtb3ZhbFxuICBpZiAocmVtb3ZlRU9GTkwpIHtcbiAgICB3aGlsZSAoIWxpbmVzW2xpbmVzLmxlbmd0aCAtIDFdKSB7XG4gICAgICBsaW5lcy5wb3AoKTtcbiAgICAgIGRlbGltaXRlcnMucG9wKCk7XG4gICAgfVxuICB9IGVsc2UgaWYgKGFkZEVPRk5MKSB7XG4gICAgbGluZXMucHVzaCgnJyk7XG4gICAgZGVsaW1pdGVycy5wdXNoKCdcXG4nKTtcbiAgfVxuICBmb3IgKGxldCBfayA9IDA7IF9rIDwgbGluZXMubGVuZ3RoIC0gMTsgX2srKykge1xuICAgIGxpbmVzW19rXSA9IGxpbmVzW19rXSArIGRlbGltaXRlcnNbX2tdO1xuICB9XG4gIHJldHVybiBsaW5lcy5qb2luKCcnKTtcbn1cblxuLy8gV3JhcHBlciB0aGF0IHN1cHBvcnRzIG11bHRpcGxlIGZpbGUgcGF0Y2hlcyB2aWEgY2FsbGJhY2tzLlxuZXhwb3J0IGZ1bmN0aW9uIGFwcGx5UGF0Y2hlcyh1bmlEaWZmLCBvcHRpb25zKSB7XG4gIGlmICh0eXBlb2YgdW5pRGlmZiA9PT0gJ3N0cmluZycpIHtcbiAgICB1bmlEaWZmID0gcGFyc2VQYXRjaCh1bmlEaWZmKTtcbiAgfVxuXG4gIGxldCBjdXJyZW50SW5kZXggPSAwO1xuICBmdW5jdGlvbiBwcm9jZXNzSW5kZXgoKSB7XG4gICAgbGV0IGluZGV4ID0gdW5pRGlmZltjdXJyZW50SW5kZXgrK107XG4gICAgaWYgKCFpbmRleCkge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoKTtcbiAgICB9XG5cbiAgICBvcHRpb25zLmxvYWRGaWxlKGluZGV4LCBmdW5jdGlvbihlcnIsIGRhdGEpIHtcbiAgICAgIGlmIChlcnIpIHtcbiAgICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoZXJyKTtcbiAgICAgIH1cblxuICAgICAgbGV0IHVwZGF0ZWRDb250ZW50ID0gYXBwbHlQYXRjaChkYXRhLCBpbmRleCwgb3B0aW9ucyk7XG4gICAgICBvcHRpb25zLnBhdGNoZWQoaW5kZXgsIHVwZGF0ZWRDb250ZW50LCBmdW5jdGlvbihlcnIpIHtcbiAgICAgICAgaWYgKGVycikge1xuICAgICAgICAgIHJldHVybiBvcHRpb25zLmNvbXBsZXRlKGVycik7XG4gICAgICAgIH1cblxuICAgICAgICBwcm9jZXNzSW5kZXgoKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9XG4gIHByb2Nlc3NJbmRleCgpO1xufVxuIl19 - - -/***/ }), -/* 11 */ +/***/ 20: /***/ (function(module, exports) { - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/parsePatch = parsePatch; - function parsePatch(uniDiff) { - /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var diffstr = uniDiff.split(/\r\n|[\n\v\f\r\x85]/), - delimiters = uniDiff.match(/\r\n|[\n\v\f\r\x85]/g) || [], - list = [], - i = 0; - - function parseIndex() { - var index = {}; - list.push(index); - - // Parse diff metadata - while (i < diffstr.length) { - var line = diffstr[i]; - - // File header found, end parsing diff metadata - if (/^(\-\-\-|\+\+\+|@@)\s/.test(line)) { - break; - } - - // Diff index - var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line); - if (header) { - index.index = header[1]; - } - - i++; - } - - // Parse file headers if they are defined. Unified diff requires them, but - // there's no technical issues to have an isolated hunk without file header - parseFileHeader(index); - parseFileHeader(index); - - // Parse hunks - index.hunks = []; - - while (i < diffstr.length) { - var _line = diffstr[i]; - - if (/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(_line)) { - break; - } else if (/^@@/.test(_line)) { - index.hunks.push(parseHunk()); - } else if (_line && options.strict) { - // Ignore unexpected content unless in strict mode - throw new Error('Unknown line ' + (i + 1) + ' ' + JSON.stringify(_line)); - } else { - i++; - } - } - } - - // Parses the --- and +++ headers, if none are found, no lines - // are consumed. - function parseFileHeader(index) { - var fileHeader = /^(---|\+\+\+)\s+(.*)$/.exec(diffstr[i]); - if (fileHeader) { - var keyPrefix = fileHeader[1] === '---' ? 'old' : 'new'; - var data = fileHeader[2].split('\t', 2); - var fileName = data[0].replace(/\\\\/g, '\\'); - if (/^".*"$/.test(fileName)) { - fileName = fileName.substr(1, fileName.length - 2); - } - index[keyPrefix + 'FileName'] = fileName; - index[keyPrefix + 'Header'] = (data[1] || '').trim(); - - i++; - } - } - - // Parses a hunk - // This assumes that we are at the start of a hunk. - function parseHunk() { - var chunkHeaderIndex = i, - chunkHeaderLine = diffstr[i++], - chunkHeader = chunkHeaderLine.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/); - - var hunk = { - oldStart: +chunkHeader[1], - oldLines: +chunkHeader[2] || 1, - newStart: +chunkHeader[3], - newLines: +chunkHeader[4] || 1, - lines: [], - linedelimiters: [] - }; - - var addCount = 0, - removeCount = 0; - for (; i < diffstr.length; i++) { - // Lines starting with '---' could be mistaken for the "remove line" operation - // But they could be the header for the next file. Therefore prune such cases out. - if (diffstr[i].indexOf('--- ') === 0 && i + 2 < diffstr.length && diffstr[i + 1].indexOf('+++ ') === 0 && diffstr[i + 2].indexOf('@@') === 0) { - break; - } - var operation = diffstr[i].length == 0 && i != diffstr.length - 1 ? ' ' : diffstr[i][0]; - - if (operation === '+' || operation === '-' || operation === ' ' || operation === '\\') { - hunk.lines.push(diffstr[i]); - hunk.linedelimiters.push(delimiters[i] || '\n'); - - if (operation === '+') { - addCount++; - } else if (operation === '-') { - removeCount++; - } else if (operation === ' ') { - addCount++; - removeCount++; - } - } else { - break; - } - } - - // Handle the empty block count case - if (!addCount && hunk.newLines === 1) { - hunk.newLines = 0; - } - if (!removeCount && hunk.oldLines === 1) { - hunk.oldLines = 0; - } - - // Perform optional sanity checking - if (options.strict) { - if (addCount !== hunk.newLines) { - throw new Error('Added line count did not match for hunk at line ' + (chunkHeaderIndex + 1)); - } - if (removeCount !== hunk.oldLines) { - throw new Error('Removed line count did not match for hunk at line ' + (chunkHeaderIndex + 1)); - } - } - - return hunk; - } - - while (i < diffstr.length) { - parseIndex(); - } - - return list; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9wYXJzZS5qcyJdLCJuYW1lcyI6WyJwYXJzZVBhdGNoIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJkaWZmc3RyIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJsaXN0IiwiaSIsInBhcnNlSW5kZXgiLCJpbmRleCIsInB1c2giLCJsZW5ndGgiLCJsaW5lIiwidGVzdCIsImhlYWRlciIsImV4ZWMiLCJwYXJzZUZpbGVIZWFkZXIiLCJodW5rcyIsInBhcnNlSHVuayIsInN0cmljdCIsIkVycm9yIiwiSlNPTiIsInN0cmluZ2lmeSIsImZpbGVIZWFkZXIiLCJrZXlQcmVmaXgiLCJkYXRhIiwiZmlsZU5hbWUiLCJyZXBsYWNlIiwic3Vic3RyIiwidHJpbSIsImNodW5rSGVhZGVySW5kZXgiLCJjaHVua0hlYWRlckxpbmUiLCJjaHVua0hlYWRlciIsImh1bmsiLCJvbGRTdGFydCIsIm9sZExpbmVzIiwibmV3U3RhcnQiLCJuZXdMaW5lcyIsImxpbmVzIiwibGluZWRlbGltaXRlcnMiLCJhZGRDb3VudCIsInJlbW92ZUNvdW50IiwiaW5kZXhPZiIsIm9wZXJhdGlvbiJdLCJtYXBwaW5ncyI6Ijs7O2dDQUFnQkEsVSxHQUFBQSxVO0FBQVQsU0FBU0EsVUFBVCxDQUFvQkMsT0FBcEIsRUFBMkM7QUFBQSxzREFBZEMsT0FBYyx1RUFBSixFQUFJOztBQUNoRCxNQUFJQyxVQUFVRixRQUFRRyxLQUFSLENBQWMscUJBQWQsQ0FBZDtBQUFBLE1BQ0lDLGFBQWFKLFFBQVFLLEtBQVIsQ0FBYyxzQkFBZCxLQUF5QyxFQUQxRDtBQUFBLE1BRUlDLE9BQU8sRUFGWDtBQUFBLE1BR0lDLElBQUksQ0FIUjs7QUFLQSxXQUFTQyxVQUFULEdBQXNCO0FBQ3BCLFFBQUlDLFFBQVEsRUFBWjtBQUNBSCxTQUFLSSxJQUFMLENBQVVELEtBQVY7O0FBRUE7QUFDQSxXQUFPRixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6QixVQUFJQyxPQUFPVixRQUFRSyxDQUFSLENBQVg7O0FBRUE7QUFDQSxVQUFJLHdCQUF3Qk0sSUFBeEIsQ0FBNkJELElBQTdCLENBQUosRUFBd0M7QUFDdEM7QUFDRDs7QUFFRDtBQUNBLFVBQUlFLFNBQVUsMENBQUQsQ0FBNkNDLElBQTdDLENBQWtESCxJQUFsRCxDQUFiO0FBQ0EsVUFBSUUsTUFBSixFQUFZO0FBQ1ZMLGNBQU1BLEtBQU4sR0FBY0ssT0FBTyxDQUFQLENBQWQ7QUFDRDs7QUFFRFA7QUFDRDs7QUFFRDtBQUNBO0FBQ0FTLG9CQUFnQlAsS0FBaEI7QUFDQU8sb0JBQWdCUCxLQUFoQjs7QUFFQTtBQUNBQSxVQUFNUSxLQUFOLEdBQWMsRUFBZDs7QUFFQSxXQUFPVixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6QixVQUFJQyxRQUFPVixRQUFRSyxDQUFSLENBQVg7O0FBRUEsVUFBSSxpQ0FBaUNNLElBQWpDLENBQXNDRCxLQUF0QyxDQUFKLEVBQWlEO0FBQy9DO0FBQ0QsT0FGRCxNQUVPLElBQUksTUFBTUMsSUFBTixDQUFXRCxLQUFYLENBQUosRUFBc0I7QUFDM0JILGNBQU1RLEtBQU4sQ0FBWVAsSUFBWixDQUFpQlEsV0FBakI7QUFDRCxPQUZNLE1BRUEsSUFBSU4sU0FBUVgsUUFBUWtCLE1BQXBCLEVBQTRCO0FBQ2pDO0FBQ0EsY0FBTSxJQUFJQyxLQUFKLENBQVUsbUJBQW1CYixJQUFJLENBQXZCLElBQTRCLEdBQTVCLEdBQWtDYyxLQUFLQyxTQUFMLENBQWVWLEtBQWYsQ0FBNUMsQ0FBTjtBQUNELE9BSE0sTUFHQTtBQUNMTDtBQUNEO0FBQ0Y7QUFDRjs7QUFFRDtBQUNBO0FBQ0EsV0FBU1MsZUFBVCxDQUF5QlAsS0FBekIsRUFBZ0M7QUFDOUIsUUFBTWMsYUFBYyx1QkFBRCxDQUEwQlIsSUFBMUIsQ0FBK0JiLFFBQVFLLENBQVIsQ0FBL0IsQ0FBbkI7QUFDQSxRQUFJZ0IsVUFBSixFQUFnQjtBQUNkLFVBQUlDLFlBQVlELFdBQVcsQ0FBWCxNQUFrQixLQUFsQixHQUEwQixLQUExQixHQUFrQyxLQUFsRDtBQUNBLFVBQU1FLE9BQU9GLFdBQVcsQ0FBWCxFQUFjcEIsS0FBZCxDQUFvQixJQUFwQixFQUEwQixDQUExQixDQUFiO0FBQ0EsVUFBSXVCLFdBQVdELEtBQUssQ0FBTCxFQUFRRSxPQUFSLENBQWdCLE9BQWhCLEVBQXlCLElBQXpCLENBQWY7QUFDQSxVQUFJLFNBQVNkLElBQVQsQ0FBY2EsUUFBZCxDQUFKLEVBQTZCO0FBQzNCQSxtQkFBV0EsU0FBU0UsTUFBVCxDQUFnQixDQUFoQixFQUFtQkYsU0FBU2YsTUFBVCxHQUFrQixDQUFyQyxDQUFYO0FBQ0Q7QUFDREYsWUFBTWUsWUFBWSxVQUFsQixJQUFnQ0UsUUFBaEM7QUFDQWpCLFlBQU1lLFlBQVksUUFBbEIsSUFBOEIsQ0FBQ0MsS0FBSyxDQUFMLEtBQVcsRUFBWixFQUFnQkksSUFBaEIsRUFBOUI7O0FBRUF0QjtBQUNEO0FBQ0Y7O0FBRUQ7QUFDQTtBQUNBLFdBQVNXLFNBQVQsR0FBcUI7QUFDbkIsUUFBSVksbUJBQW1CdkIsQ0FBdkI7QUFBQSxRQUNJd0Isa0JBQWtCN0IsUUFBUUssR0FBUixDQUR0QjtBQUFBLFFBRUl5QixjQUFjRCxnQkFBZ0I1QixLQUFoQixDQUFzQiw0Q0FBdEIsQ0FGbEI7O0FBSUEsUUFBSThCLE9BQU87QUFDVEMsZ0JBQVUsQ0FBQ0YsWUFBWSxDQUFaLENBREY7QUFFVEcsZ0JBQVUsQ0FBQ0gsWUFBWSxDQUFaLENBQUQsSUFBbUIsQ0FGcEI7QUFHVEksZ0JBQVUsQ0FBQ0osWUFBWSxDQUFaLENBSEY7QUFJVEssZ0JBQVUsQ0FBQ0wsWUFBWSxDQUFaLENBQUQsSUFBbUIsQ0FKcEI7QUFLVE0sYUFBTyxFQUxFO0FBTVRDLHNCQUFnQjtBQU5QLEtBQVg7O0FBU0EsUUFBSUMsV0FBVyxDQUFmO0FBQUEsUUFDSUMsY0FBYyxDQURsQjtBQUVBLFdBQU9sQyxJQUFJTCxRQUFRUyxNQUFuQixFQUEyQkosR0FBM0IsRUFBZ0M7QUFDOUI7QUFDQTtBQUNBLFVBQUlMLFFBQVFLLENBQVIsRUFBV21DLE9BQVgsQ0FBbUIsTUFBbkIsTUFBK0IsQ0FBL0IsSUFDTW5DLElBQUksQ0FBSixHQUFRTCxRQUFRUyxNQUR0QixJQUVLVCxRQUFRSyxJQUFJLENBQVosRUFBZW1DLE9BQWYsQ0FBdUIsTUFBdkIsTUFBbUMsQ0FGeEMsSUFHS3hDLFFBQVFLLElBQUksQ0FBWixFQUFlbUMsT0FBZixDQUF1QixJQUF2QixNQUFpQyxDQUgxQyxFQUc2QztBQUN6QztBQUNIO0FBQ0QsVUFBSUMsWUFBYXpDLFFBQVFLLENBQVIsRUFBV0ksTUFBWCxJQUFxQixDQUFyQixJQUEwQkosS0FBTUwsUUFBUVMsTUFBUixHQUFpQixDQUFsRCxHQUF3RCxHQUF4RCxHQUE4RFQsUUFBUUssQ0FBUixFQUFXLENBQVgsQ0FBOUU7O0FBRUEsVUFBSW9DLGNBQWMsR0FBZCxJQUFxQkEsY0FBYyxHQUFuQyxJQUEwQ0EsY0FBYyxHQUF4RCxJQUErREEsY0FBYyxJQUFqRixFQUF1RjtBQUNyRlYsYUFBS0ssS0FBTCxDQUFXNUIsSUFBWCxDQUFnQlIsUUFBUUssQ0FBUixDQUFoQjtBQUNBMEIsYUFBS00sY0FBTCxDQUFvQjdCLElBQXBCLENBQXlCTixXQUFXRyxDQUFYLEtBQWlCLElBQTFDOztBQUVBLFlBQUlvQyxjQUFjLEdBQWxCLEVBQXVCO0FBQ3JCSDtBQUNELFNBRkQsTUFFTyxJQUFJRyxjQUFjLEdBQWxCLEVBQXVCO0FBQzVCRjtBQUNELFNBRk0sTUFFQSxJQUFJRSxjQUFjLEdBQWxCLEVBQXVCO0FBQzVCSDtBQUNBQztBQUNEO0FBQ0YsT0FaRCxNQVlPO0FBQ0w7QUFDRDtBQUNGOztBQUVEO0FBQ0EsUUFBSSxDQUFDRCxRQUFELElBQWFQLEtBQUtJLFFBQUwsS0FBa0IsQ0FBbkMsRUFBc0M7QUFDcENKLFdBQUtJLFFBQUwsR0FBZ0IsQ0FBaEI7QUFDRDtBQUNELFFBQUksQ0FBQ0ksV0FBRCxJQUFnQlIsS0FBS0UsUUFBTCxLQUFrQixDQUF0QyxFQUF5QztBQUN2Q0YsV0FBS0UsUUFBTCxHQUFnQixDQUFoQjtBQUNEOztBQUVEO0FBQ0EsUUFBSWxDLFFBQVFrQixNQUFaLEVBQW9CO0FBQ2xCLFVBQUlxQixhQUFhUCxLQUFLSSxRQUF0QixFQUFnQztBQUM5QixjQUFNLElBQUlqQixLQUFKLENBQVUsc0RBQXNEVSxtQkFBbUIsQ0FBekUsQ0FBVixDQUFOO0FBQ0Q7QUFDRCxVQUFJVyxnQkFBZ0JSLEtBQUtFLFFBQXpCLEVBQW1DO0FBQ2pDLGNBQU0sSUFBSWYsS0FBSixDQUFVLHdEQUF3RFUsbUJBQW1CLENBQTNFLENBQVYsQ0FBTjtBQUNEO0FBQ0Y7O0FBRUQsV0FBT0csSUFBUDtBQUNEOztBQUVELFNBQU8xQixJQUFJTCxRQUFRUyxNQUFuQixFQUEyQjtBQUN6Qkg7QUFDRDs7QUFFRCxTQUFPRixJQUFQO0FBQ0QiLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gcGFyc2VQYXRjaCh1bmlEaWZmLCBvcHRpb25zID0ge30pIHtcbiAgbGV0IGRpZmZzdHIgPSB1bmlEaWZmLnNwbGl0KC9cXHJcXG58W1xcblxcdlxcZlxcclxceDg1XS8pLFxuICAgICAgZGVsaW1pdGVycyA9IHVuaURpZmYubWF0Y2goL1xcclxcbnxbXFxuXFx2XFxmXFxyXFx4ODVdL2cpIHx8IFtdLFxuICAgICAgbGlzdCA9IFtdLFxuICAgICAgaSA9IDA7XG5cbiAgZnVuY3Rpb24gcGFyc2VJbmRleCgpIHtcbiAgICBsZXQgaW5kZXggPSB7fTtcbiAgICBsaXN0LnB1c2goaW5kZXgpO1xuXG4gICAgLy8gUGFyc2UgZGlmZiBtZXRhZGF0YVxuICAgIHdoaWxlIChpIDwgZGlmZnN0ci5sZW5ndGgpIHtcbiAgICAgIGxldCBsaW5lID0gZGlmZnN0cltpXTtcblxuICAgICAgLy8gRmlsZSBoZWFkZXIgZm91bmQsIGVuZCBwYXJzaW5nIGRpZmYgbWV0YWRhdGFcbiAgICAgIGlmICgvXihcXC1cXC1cXC18XFwrXFwrXFwrfEBAKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH1cblxuICAgICAgLy8gRGlmZiBpbmRleFxuICAgICAgbGV0IGhlYWRlciA9ICgvXig/OkluZGV4OnxkaWZmKD86IC1yIFxcdyspKylcXHMrKC4rPylcXHMqJC8pLmV4ZWMobGluZSk7XG4gICAgICBpZiAoaGVhZGVyKSB7XG4gICAgICAgIGluZGV4LmluZGV4ID0gaGVhZGVyWzFdO1xuICAgICAgfVxuXG4gICAgICBpKys7XG4gICAgfVxuXG4gICAgLy8gUGFyc2UgZmlsZSBoZWFkZXJzIGlmIHRoZXkgYXJlIGRlZmluZWQuIFVuaWZpZWQgZGlmZiByZXF1aXJlcyB0aGVtLCBidXRcbiAgICAvLyB0aGVyZSdzIG5vIHRlY2huaWNhbCBpc3N1ZXMgdG8gaGF2ZSBhbiBpc29sYXRlZCBodW5rIHdpdGhvdXQgZmlsZSBoZWFkZXJcbiAgICBwYXJzZUZpbGVIZWFkZXIoaW5kZXgpO1xuICAgIHBhcnNlRmlsZUhlYWRlcihpbmRleCk7XG5cbiAgICAvLyBQYXJzZSBodW5rc1xuICAgIGluZGV4Lmh1bmtzID0gW107XG5cbiAgICB3aGlsZSAoaSA8IGRpZmZzdHIubGVuZ3RoKSB7XG4gICAgICBsZXQgbGluZSA9IGRpZmZzdHJbaV07XG5cbiAgICAgIGlmICgvXihJbmRleDp8ZGlmZnxcXC1cXC1cXC18XFwrXFwrXFwrKVxccy8udGVzdChsaW5lKSkge1xuICAgICAgICBicmVhaztcbiAgICAgIH0gZWxzZSBpZiAoL15AQC8udGVzdChsaW5lKSkge1xuICAgICAgICBpbmRleC5odW5rcy5wdXNoKHBhcnNlSHVuaygpKTtcbiAgICAgIH0gZWxzZSBpZiAobGluZSAmJiBvcHRpb25zLnN0cmljdCkge1xuICAgICAgICAvLyBJZ25vcmUgdW5leHBlY3RlZCBjb250ZW50IHVubGVzcyBpbiBzdHJpY3QgbW9kZVxuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1Vua25vd24gbGluZSAnICsgKGkgKyAxKSArICcgJyArIEpTT04uc3RyaW5naWZ5KGxpbmUpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGkrKztcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAvLyBQYXJzZXMgdGhlIC0tLSBhbmQgKysrIGhlYWRlcnMsIGlmIG5vbmUgYXJlIGZvdW5kLCBubyBsaW5lc1xuICAvLyBhcmUgY29uc3VtZWQuXG4gIGZ1bmN0aW9uIHBhcnNlRmlsZUhlYWRlcihpbmRleCkge1xuICAgIGNvbnN0IGZpbGVIZWFkZXIgPSAoL14oLS0tfFxcK1xcK1xcKylcXHMrKC4qKSQvKS5leGVjKGRpZmZzdHJbaV0pO1xuICAgIGlmIChmaWxlSGVhZGVyKSB7XG4gICAgICBsZXQga2V5UHJlZml4ID0gZmlsZUhlYWRlclsxXSA9PT0gJy0tLScgPyAnb2xkJyA6ICduZXcnO1xuICAgICAgY29uc3QgZGF0YSA9IGZpbGVIZWFkZXJbMl0uc3BsaXQoJ1xcdCcsIDIpO1xuICAgICAgbGV0IGZpbGVOYW1lID0gZGF0YVswXS5yZXBsYWNlKC9cXFxcXFxcXC9nLCAnXFxcXCcpO1xuICAgICAgaWYgKC9eXCIuKlwiJC8udGVzdChmaWxlTmFtZSkpIHtcbiAgICAgICAgZmlsZU5hbWUgPSBmaWxlTmFtZS5zdWJzdHIoMSwgZmlsZU5hbWUubGVuZ3RoIC0gMik7XG4gICAgICB9XG4gICAgICBpbmRleFtrZXlQcmVmaXggKyAnRmlsZU5hbWUnXSA9IGZpbGVOYW1lO1xuICAgICAgaW5kZXhba2V5UHJlZml4ICsgJ0hlYWRlciddID0gKGRhdGFbMV0gfHwgJycpLnRyaW0oKTtcblxuICAgICAgaSsrO1xuICAgIH1cbiAgfVxuXG4gIC8vIFBhcnNlcyBhIGh1bmtcbiAgLy8gVGhpcyBhc3N1bWVzIHRoYXQgd2UgYXJlIGF0IHRoZSBzdGFydCBvZiBhIGh1bmsuXG4gIGZ1bmN0aW9uIHBhcnNlSHVuaygpIHtcbiAgICBsZXQgY2h1bmtIZWFkZXJJbmRleCA9IGksXG4gICAgICAgIGNodW5rSGVhZGVyTGluZSA9IGRpZmZzdHJbaSsrXSxcbiAgICAgICAgY2h1bmtIZWFkZXIgPSBjaHVua0hlYWRlckxpbmUuc3BsaXQoL0BAIC0oXFxkKykoPzosKFxcZCspKT8gXFwrKFxcZCspKD86LChcXGQrKSk/IEBALyk7XG5cbiAgICBsZXQgaHVuayA9IHtcbiAgICAgIG9sZFN0YXJ0OiArY2h1bmtIZWFkZXJbMV0sXG4gICAgICBvbGRMaW5lczogK2NodW5rSGVhZGVyWzJdIHx8IDEsXG4gICAgICBuZXdTdGFydDogK2NodW5rSGVhZGVyWzNdLFxuICAgICAgbmV3TGluZXM6ICtjaHVua0hlYWRlcls0XSB8fCAxLFxuICAgICAgbGluZXM6IFtdLFxuICAgICAgbGluZWRlbGltaXRlcnM6IFtdXG4gICAgfTtcblxuICAgIGxldCBhZGRDb3VudCA9IDAsXG4gICAgICAgIHJlbW92ZUNvdW50ID0gMDtcbiAgICBmb3IgKDsgaSA8IGRpZmZzdHIubGVuZ3RoOyBpKyspIHtcbiAgICAgIC8vIExpbmVzIHN0YXJ0aW5nIHdpdGggJy0tLScgY291bGQgYmUgbWlzdGFrZW4gZm9yIHRoZSBcInJlbW92ZSBsaW5lXCIgb3BlcmF0aW9uXG4gICAgICAvLyBCdXQgdGhleSBjb3VsZCBiZSB0aGUgaGVhZGVyIGZvciB0aGUgbmV4dCBmaWxlLiBUaGVyZWZvcmUgcHJ1bmUgc3VjaCBjYXNlcyBvdXQuXG4gICAgICBpZiAoZGlmZnN0cltpXS5pbmRleE9mKCctLS0gJykgPT09IDBcbiAgICAgICAgICAgICYmIChpICsgMiA8IGRpZmZzdHIubGVuZ3RoKVxuICAgICAgICAgICAgJiYgZGlmZnN0cltpICsgMV0uaW5kZXhPZignKysrICcpID09PSAwXG4gICAgICAgICAgICAmJiBkaWZmc3RyW2kgKyAyXS5pbmRleE9mKCdAQCcpID09PSAwKSB7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICB9XG4gICAgICBsZXQgb3BlcmF0aW9uID0gKGRpZmZzdHJbaV0ubGVuZ3RoID09IDAgJiYgaSAhPSAoZGlmZnN0ci5sZW5ndGggLSAxKSkgPyAnICcgOiBkaWZmc3RyW2ldWzBdO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnKycgfHwgb3BlcmF0aW9uID09PSAnLScgfHwgb3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnXFxcXCcpIHtcbiAgICAgICAgaHVuay5saW5lcy5wdXNoKGRpZmZzdHJbaV0pO1xuICAgICAgICBodW5rLmxpbmVkZWxpbWl0ZXJzLnB1c2goZGVsaW1pdGVyc1tpXSB8fCAnXFxuJyk7XG5cbiAgICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJysnKSB7XG4gICAgICAgICAgYWRkQ291bnQrKztcbiAgICAgICAgfSBlbHNlIGlmIChvcGVyYXRpb24gPT09ICctJykge1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH0gZWxzZSBpZiAob3BlcmF0aW9uID09PSAnICcpIHtcbiAgICAgICAgICBhZGRDb3VudCsrO1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIEhhbmRsZSB0aGUgZW1wdHkgYmxvY2sgY291bnQgY2FzZVxuICAgIGlmICghYWRkQ291bnQgJiYgaHVuay5uZXdMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5uZXdMaW5lcyA9IDA7XG4gICAgfVxuICAgIGlmICghcmVtb3ZlQ291bnQgJiYgaHVuay5vbGRMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5vbGRMaW5lcyA9IDA7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybSBvcHRpb25hbCBzYW5pdHkgY2hlY2tpbmdcbiAgICBpZiAob3B0aW9ucy5zdHJpY3QpIHtcbiAgICAgIGlmIChhZGRDb3VudCAhPT0gaHVuay5uZXdMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0FkZGVkIGxpbmUgY291bnQgZGlkIG5vdCBtYXRjaCBmb3IgaHVuayBhdCBsaW5lICcgKyAoY2h1bmtIZWFkZXJJbmRleCArIDEpKTtcbiAgICAgIH1cbiAgICAgIGlmIChyZW1vdmVDb3VudCAhPT0gaHVuay5vbGRMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1JlbW92ZWQgbGluZSBjb3VudCBkaWQgbm90IG1hdGNoIGZvciBodW5rIGF0IGxpbmUgJyArIChjaHVua0hlYWRlckluZGV4ICsgMSkpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBodW5rO1xuICB9XG5cbiAgd2hpbGUgKGkgPCBkaWZmc3RyLmxlbmd0aCkge1xuICAgIHBhcnNlSW5kZXgoKTtcbiAgfVxuXG4gIHJldHVybiBsaXN0O1xufVxuIl19 - +(function() { module.exports = this["wp"]["richText"]; }()); /***/ }), -/* 12 */ -/***/ (function(module, exports) { - /*istanbul ignore start*/"use strict"; +/***/ 21: +/***/ (function(module, __webpack_exports__, __webpack_require__) { - exports.__esModule = true; +"use strict"; - exports["default"] = /*istanbul ignore end*/function (start, minLine, maxLine) { - var wantForward = true, - backwardExhausted = false, - forwardExhausted = false, - localOffset = 1; +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; - return function iterator() { - if (wantForward && !forwardExhausted) { - if (backwardExhausted) { - localOffset++; - } else { - wantForward = false; - } + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } - // Check if trying to fit beyond text length, and if not, check it fits - // after offset location (or desired location on first iteration) - if (start + localOffset <= maxLine) { - return localOffset; - } + return target; +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); - forwardExhausted = true; - } +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = _objectWithoutPropertiesLoose(source, excluded); + var key, i; - if (!backwardExhausted) { - if (!forwardExhausted) { - wantForward = true; - } + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - // Check if trying to fit before text beginning, and if not, check it fits - // before offset location - if (minLine <= start - localOffset) { - return -localOffset++; - } - - backwardExhausted = true; - return iterator(); - } - - // We tried to fit hunk before text beginning and beyond text length, then - // hunk can't fit on the text. Return undefined - }; - }; - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yLmpzIl0sIm5hbWVzIjpbInN0YXJ0IiwibWluTGluZSIsIm1heExpbmUiLCJ3YW50Rm9yd2FyZCIsImJhY2t3YXJkRXhoYXVzdGVkIiwiZm9yd2FyZEV4aGF1c3RlZCIsImxvY2FsT2Zmc2V0IiwiaXRlcmF0b3IiXSwibWFwcGluZ3MiOiI7Ozs7NENBR2UsVUFBU0EsS0FBVCxFQUFnQkMsT0FBaEIsRUFBeUJDLE9BQXpCLEVBQWtDO0FBQy9DLE1BQUlDLGNBQWMsSUFBbEI7QUFBQSxNQUNJQyxvQkFBb0IsS0FEeEI7QUFBQSxNQUVJQyxtQkFBbUIsS0FGdkI7QUFBQSxNQUdJQyxjQUFjLENBSGxCOztBQUtBLFNBQU8sU0FBU0MsUUFBVCxHQUFvQjtBQUN6QixRQUFJSixlQUFlLENBQUNFLGdCQUFwQixFQUFzQztBQUNwQyxVQUFJRCxpQkFBSixFQUF1QjtBQUNyQkU7QUFDRCxPQUZELE1BRU87QUFDTEgsc0JBQWMsS0FBZDtBQUNEOztBQUVEO0FBQ0E7QUFDQSxVQUFJSCxRQUFRTSxXQUFSLElBQXVCSixPQUEzQixFQUFvQztBQUNsQyxlQUFPSSxXQUFQO0FBQ0Q7O0FBRURELHlCQUFtQixJQUFuQjtBQUNEOztBQUVELFFBQUksQ0FBQ0QsaUJBQUwsRUFBd0I7QUFDdEIsVUFBSSxDQUFDQyxnQkFBTCxFQUF1QjtBQUNyQkYsc0JBQWMsSUFBZDtBQUNEOztBQUVEO0FBQ0E7QUFDQSxVQUFJRixXQUFXRCxRQUFRTSxXQUF2QixFQUFvQztBQUNsQyxlQUFPLENBQUNBLGFBQVI7QUFDRDs7QUFFREYsMEJBQW9CLElBQXBCO0FBQ0EsYUFBT0csVUFBUDtBQUNEOztBQUVEO0FBQ0E7QUFDRCxHQWxDRDtBQW1DRCxDIiwiZmlsZSI6ImRpc3RhbmNlLWl0ZXJhdG9yLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gSXRlcmF0b3IgdGhhdCB0cmF2ZXJzZXMgaW4gdGhlIHJhbmdlIG9mIFttaW4sIG1heF0sIHN0ZXBwaW5nXG4vLyBieSBkaXN0YW5jZSBmcm9tIGEgZ2l2ZW4gc3RhcnQgcG9zaXRpb24uIEkuZS4gZm9yIFswLCA0XSwgd2l0aFxuLy8gc3RhcnQgb2YgMiwgdGhpcyB3aWxsIGl0ZXJhdGUgMiwgMywgMSwgNCwgMC5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKHN0YXJ0LCBtaW5MaW5lLCBtYXhMaW5lKSB7XG4gIGxldCB3YW50Rm9yd2FyZCA9IHRydWUsXG4gICAgICBiYWNrd2FyZEV4aGF1c3RlZCA9IGZhbHNlLFxuICAgICAgZm9yd2FyZEV4aGF1c3RlZCA9IGZhbHNlLFxuICAgICAgbG9jYWxPZmZzZXQgPSAxO1xuXG4gIHJldHVybiBmdW5jdGlvbiBpdGVyYXRvcigpIHtcbiAgICBpZiAod2FudEZvcndhcmQgJiYgIWZvcndhcmRFeGhhdXN0ZWQpIHtcbiAgICAgIGlmIChiYWNrd2FyZEV4aGF1c3RlZCkge1xuICAgICAgICBsb2NhbE9mZnNldCsrO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgd2FudEZvcndhcmQgPSBmYWxzZTtcbiAgICAgIH1cblxuICAgICAgLy8gQ2hlY2sgaWYgdHJ5aW5nIHRvIGZpdCBiZXlvbmQgdGV4dCBsZW5ndGgsIGFuZCBpZiBub3QsIGNoZWNrIGl0IGZpdHNcbiAgICAgIC8vIGFmdGVyIG9mZnNldCBsb2NhdGlvbiAob3IgZGVzaXJlZCBsb2NhdGlvbiBvbiBmaXJzdCBpdGVyYXRpb24pXG4gICAgICBpZiAoc3RhcnQgKyBsb2NhbE9mZnNldCA8PSBtYXhMaW5lKSB7XG4gICAgICAgIHJldHVybiBsb2NhbE9mZnNldDtcbiAgICAgIH1cblxuICAgICAgZm9yd2FyZEV4aGF1c3RlZCA9IHRydWU7XG4gICAgfVxuXG4gICAgaWYgKCFiYWNrd2FyZEV4aGF1c3RlZCkge1xuICAgICAgaWYgKCFmb3J3YXJkRXhoYXVzdGVkKSB7XG4gICAgICAgIHdhbnRGb3J3YXJkID0gdHJ1ZTtcbiAgICAgIH1cblxuICAgICAgLy8gQ2hlY2sgaWYgdHJ5aW5nIHRvIGZpdCBiZWZvcmUgdGV4dCBiZWdpbm5pbmcsIGFuZCBpZiBub3QsIGNoZWNrIGl0IGZpdHNcbiAgICAgIC8vIGJlZm9yZSBvZmZzZXQgbG9jYXRpb25cbiAgICAgIGlmIChtaW5MaW5lIDw9IHN0YXJ0IC0gbG9jYWxPZmZzZXQpIHtcbiAgICAgICAgcmV0dXJuIC1sb2NhbE9mZnNldCsrO1xuICAgICAgfVxuXG4gICAgICBiYWNrd2FyZEV4aGF1c3RlZCA9IHRydWU7XG4gICAgICByZXR1cm4gaXRlcmF0b3IoKTtcbiAgICB9XG5cbiAgICAvLyBXZSB0cmllZCB0byBmaXQgaHVuayBiZWZvcmUgdGV4dCBiZWdpbm5pbmcgYW5kIGJleW9uZCB0ZXh0IGxlbmd0aCwgdGhlblxuICAgIC8vIGh1bmsgY2FuJ3QgZml0IG9uIHRoZSB0ZXh0LiBSZXR1cm4gdW5kZWZpbmVkXG4gIH07XG59XG4iXX0= + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + return target; +} /***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/calcLineCount = calcLineCount; - /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = merge; - - var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/; - - var /*istanbul ignore start*/_array = __webpack_require__(15) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - - /*istanbul ignore end*/function calcLineCount(hunk) { - /*istanbul ignore start*/var _calcOldNewLineCount = /*istanbul ignore end*/calcOldNewLineCount(hunk.lines), - oldLines = _calcOldNewLineCount.oldLines, - newLines = _calcOldNewLineCount.newLines; - - if (oldLines !== undefined) { - hunk.oldLines = oldLines; - } else { - delete hunk.oldLines; - } - - if (newLines !== undefined) { - hunk.newLines = newLines; - } else { - delete hunk.newLines; - } - } - - function merge(mine, theirs, base) { - mine = loadPatch(mine, base); - theirs = loadPatch(theirs, base); - - var ret = {}; - - // For index we just let it pass through as it doesn't have any necessary meaning. - // Leaving sanity checks on this to the API consumer that may know more about the - // meaning in their own context. - if (mine.index || theirs.index) { - ret.index = mine.index || theirs.index; - } - - if (mine.newFileName || theirs.newFileName) { - if (!fileNameChanged(mine)) { - // No header or no change in ours, use theirs (and ours if theirs does not exist) - ret.oldFileName = theirs.oldFileName || mine.oldFileName; - ret.newFileName = theirs.newFileName || mine.newFileName; - ret.oldHeader = theirs.oldHeader || mine.oldHeader; - ret.newHeader = theirs.newHeader || mine.newHeader; - } else if (!fileNameChanged(theirs)) { - // No header or no change in theirs, use ours - ret.oldFileName = mine.oldFileName; - ret.newFileName = mine.newFileName; - ret.oldHeader = mine.oldHeader; - ret.newHeader = mine.newHeader; - } else { - // Both changed... figure it out - ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName); - ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName); - ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader); - ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader); - } - } - - ret.hunks = []; - - var mineIndex = 0, - theirsIndex = 0, - mineOffset = 0, - theirsOffset = 0; - - while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) { - var mineCurrent = mine.hunks[mineIndex] || { oldStart: Infinity }, - theirsCurrent = theirs.hunks[theirsIndex] || { oldStart: Infinity }; - - if (hunkBefore(mineCurrent, theirsCurrent)) { - // This patch does not overlap with any of the others, yay. - ret.hunks.push(cloneHunk(mineCurrent, mineOffset)); - mineIndex++; - theirsOffset += mineCurrent.newLines - mineCurrent.oldLines; - } else if (hunkBefore(theirsCurrent, mineCurrent)) { - // This patch does not overlap with any of the others, yay. - ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset)); - theirsIndex++; - mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines; - } else { - // Overlap, merge as best we can - var mergedHunk = { - oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart), - oldLines: 0, - newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset), - newLines: 0, - lines: [] - }; - mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines); - theirsIndex++; - mineIndex++; - - ret.hunks.push(mergedHunk); - } - } - - return ret; - } - - function loadPatch(param, base) { - if (typeof param === 'string') { - if (/^@@/m.test(param) || /^Index:/m.test(param)) { - return (/*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(param)[0] - ); - } - - if (!base) { - throw new Error('Must provide a base reference or pass in a patch'); - } - return (/*istanbul ignore start*/(0, _create.structuredPatch) /*istanbul ignore end*/(undefined, undefined, base, param) - ); - } - - return param; - } - - function fileNameChanged(patch) { - return patch.newFileName && patch.newFileName !== patch.oldFileName; - } - - function selectField(index, mine, theirs) { - if (mine === theirs) { - return mine; - } else { - index.conflict = true; - return { mine: mine, theirs: theirs }; - } - } - - function hunkBefore(test, check) { - return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart; - } - - function cloneHunk(hunk, offset) { - return { - oldStart: hunk.oldStart, oldLines: hunk.oldLines, - newStart: hunk.newStart + offset, newLines: hunk.newLines, - lines: hunk.lines - }; - } - - function mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) { - // This will generally result in a conflicted hunk, but there are cases where the context - // is the only overlap where we can successfully merge the content here. - var mine = { offset: mineOffset, lines: mineLines, index: 0 }, - their = { offset: theirOffset, lines: theirLines, index: 0 }; - - // Handle any leading content - insertLeading(hunk, mine, their); - insertLeading(hunk, their, mine); - - // Now in the overlap content. Scan through and select the best changes from each. - while (mine.index < mine.lines.length && their.index < their.lines.length) { - var mineCurrent = mine.lines[mine.index], - theirCurrent = their.lines[their.index]; - - if ((mineCurrent[0] === '-' || mineCurrent[0] === '+') && (theirCurrent[0] === '-' || theirCurrent[0] === '+')) { - // Both modified ... - mutualChange(hunk, mine, their); - } else if (mineCurrent[0] === '+' && theirCurrent[0] === ' ') { - /*istanbul ignore start*/var _hunk$lines; - - /*istanbul ignore end*/ // Mine inserted - /*istanbul ignore start*/(_hunk$lines = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(mine))); - } else if (theirCurrent[0] === '+' && mineCurrent[0] === ' ') { - /*istanbul ignore start*/var _hunk$lines2; - - /*istanbul ignore end*/ // Theirs inserted - /*istanbul ignore start*/(_hunk$lines2 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(their))); - } else if (mineCurrent[0] === '-' && theirCurrent[0] === ' ') { - // Mine removed or edited - removal(hunk, mine, their); - } else if (theirCurrent[0] === '-' && mineCurrent[0] === ' ') { - // Their removed or edited - removal(hunk, their, mine, true); - } else if (mineCurrent === theirCurrent) { - // Context identity - hunk.lines.push(mineCurrent); - mine.index++; - their.index++; - } else { - // Context mismatch - conflict(hunk, collectChange(mine), collectChange(their)); - } - } - - // Now push anything that may be remaining - insertTrailing(hunk, mine); - insertTrailing(hunk, their); - - calcLineCount(hunk); - } - - function mutualChange(hunk, mine, their) { - var myChanges = collectChange(mine), - theirChanges = collectChange(their); - - if (allRemoves(myChanges) && allRemoves(theirChanges)) { - // Special case for remove changes that are supersets of one another - if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)) { - /*istanbul ignore start*/var _hunk$lines3; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines3 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges)); - return; - } else if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)) { - /*istanbul ignore start*/var _hunk$lines4; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines4 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines4 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges)); - return; - } - } else if ( /*istanbul ignore start*/(0, _array.arrayEqual) /*istanbul ignore end*/(myChanges, theirChanges)) { - /*istanbul ignore start*/var _hunk$lines5; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines5 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines5 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges)); - return; - } - - conflict(hunk, myChanges, theirChanges); - } - - function removal(hunk, mine, their, swap) { - var myChanges = collectChange(mine), - theirChanges = collectContext(their, myChanges); - if (theirChanges.merged) { - /*istanbul ignore start*/var _hunk$lines6; - - /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines6 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines6 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges.merged)); - } else { - conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges); - } - } - - function conflict(hunk, mine, their) { - hunk.conflict = true; - hunk.lines.push({ - conflict: true, - mine: mine, - theirs: their - }); - } - - function insertLeading(hunk, insert, their) { - while (insert.offset < their.offset && insert.index < insert.lines.length) { - var line = insert.lines[insert.index++]; - hunk.lines.push(line); - insert.offset++; - } - } - function insertTrailing(hunk, insert) { - while (insert.index < insert.lines.length) { - var line = insert.lines[insert.index++]; - hunk.lines.push(line); - } - } - - function collectChange(state) { - var ret = [], - operation = state.lines[state.index][0]; - while (state.index < state.lines.length) { - var line = state.lines[state.index]; - - // Group additions that are immediately after subtractions and treat them as one "atomic" modify change. - if (operation === '-' && line[0] === '+') { - operation = '+'; - } - - if (operation === line[0]) { - ret.push(line); - state.index++; - } else { - break; - } - } - - return ret; - } - function collectContext(state, matchChanges) { - var changes = [], - merged = [], - matchIndex = 0, - contextChanges = false, - conflicted = false; - while (matchIndex < matchChanges.length && state.index < state.lines.length) { - var change = state.lines[state.index], - match = matchChanges[matchIndex]; - - // Once we've hit our add, then we are done - if (match[0] === '+') { - break; - } - - contextChanges = contextChanges || change[0] !== ' '; - - merged.push(match); - matchIndex++; - - // Consume any additions in the other block as a conflict to attempt - // to pull in the remaining context after this - if (change[0] === '+') { - conflicted = true; - - while (change[0] === '+') { - changes.push(change); - change = state.lines[++state.index]; - } - } - - if (match.substr(1) === change.substr(1)) { - changes.push(change); - state.index++; - } else { - conflicted = true; - } - } - - if ((matchChanges[matchIndex] || '')[0] === '+' && contextChanges) { - conflicted = true; - } - - if (conflicted) { - return changes; - } - - while (matchIndex < matchChanges.length) { - merged.push(matchChanges[matchIndex++]); - } - - return { - merged: merged, - changes: changes - }; - } - - function allRemoves(changes) { - return changes.reduce(function (prev, change) { - return prev && change[0] === '-'; - }, true); - } - function skipRemoveSuperset(state, removeChanges, delta) { - for (var i = 0; i < delta; i++) { - var changeContent = removeChanges[removeChanges.length - delta + i].substr(1); - if (state.lines[state.index + i] !== ' ' + changeContent) { - return false; - } - } - - state.index += delta; - return true; - } - - function calcOldNewLineCount(lines) { - var oldLines = 0; - var newLines = 0; - - lines.forEach(function (line) { - if (typeof line !== 'string') { - var myCount = calcOldNewLineCount(line.mine); - var theirCount = calcOldNewLineCount(line.theirs); - - if (oldLines !== undefined) { - if (myCount.oldLines === theirCount.oldLines) { - oldLines += myCount.oldLines; - } else { - oldLines = undefined; - } - } - - if (newLines !== undefined) { - if (myCount.newLines === theirCount.newLines) { - newLines += myCount.newLines; - } else { - newLines = undefined; - } - } - } else { - if (newLines !== undefined && (line[0] === '+' || line[0] === ' ')) { - newLines++; - } - if (oldLines !== undefined && (line[0] === '-' || line[0] === ' ')) { - oldLines++; - } - } - }); - - return { oldLines: oldLines, newLines: newLines }; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9tZXJnZS5qcyJdLCJuYW1lcyI6WyJjYWxjTGluZUNvdW50IiwibWVyZ2UiLCJodW5rIiwiY2FsY09sZE5ld0xpbmVDb3VudCIsImxpbmVzIiwib2xkTGluZXMiLCJuZXdMaW5lcyIsInVuZGVmaW5lZCIsIm1pbmUiLCJ0aGVpcnMiLCJiYXNlIiwibG9hZFBhdGNoIiwicmV0IiwiaW5kZXgiLCJuZXdGaWxlTmFtZSIsImZpbGVOYW1lQ2hhbmdlZCIsIm9sZEZpbGVOYW1lIiwib2xkSGVhZGVyIiwibmV3SGVhZGVyIiwic2VsZWN0RmllbGQiLCJodW5rcyIsIm1pbmVJbmRleCIsInRoZWlyc0luZGV4IiwibWluZU9mZnNldCIsInRoZWlyc09mZnNldCIsImxlbmd0aCIsIm1pbmVDdXJyZW50Iiwib2xkU3RhcnQiLCJJbmZpbml0eSIsInRoZWlyc0N1cnJlbnQiLCJodW5rQmVmb3JlIiwicHVzaCIsImNsb25lSHVuayIsIm1lcmdlZEh1bmsiLCJNYXRoIiwibWluIiwibmV3U3RhcnQiLCJtZXJnZUxpbmVzIiwicGFyYW0iLCJ0ZXN0IiwiRXJyb3IiLCJwYXRjaCIsImNvbmZsaWN0IiwiY2hlY2siLCJvZmZzZXQiLCJtaW5lTGluZXMiLCJ0aGVpck9mZnNldCIsInRoZWlyTGluZXMiLCJ0aGVpciIsImluc2VydExlYWRpbmciLCJ0aGVpckN1cnJlbnQiLCJtdXR1YWxDaGFuZ2UiLCJjb2xsZWN0Q2hhbmdlIiwicmVtb3ZhbCIsImluc2VydFRyYWlsaW5nIiwibXlDaGFuZ2VzIiwidGhlaXJDaGFuZ2VzIiwiYWxsUmVtb3ZlcyIsInNraXBSZW1vdmVTdXBlcnNldCIsInN3YXAiLCJjb2xsZWN0Q29udGV4dCIsIm1lcmdlZCIsImluc2VydCIsImxpbmUiLCJzdGF0ZSIsIm9wZXJhdGlvbiIsIm1hdGNoQ2hhbmdlcyIsImNoYW5nZXMiLCJtYXRjaEluZGV4IiwiY29udGV4dENoYW5nZXMiLCJjb25mbGljdGVkIiwiY2hhbmdlIiwibWF0Y2giLCJzdWJzdHIiLCJyZWR1Y2UiLCJwcmV2IiwicmVtb3ZlQ2hhbmdlcyIsImRlbHRhIiwiaSIsImNoYW5nZUNvbnRlbnQiLCJmb3JFYWNoIiwibXlDb3VudCIsInRoZWlyQ291bnQiXSwibWFwcGluZ3MiOiI7OztnQ0FLZ0JBLGEsR0FBQUEsYTt5REFnQkFDLEssR0FBQUEsSzs7QUFyQmhCOztBQUNBOztBQUVBOzs7O3VCQUVPLFNBQVNELGFBQVQsQ0FBdUJFLElBQXZCLEVBQTZCO0FBQUEsNkVBQ0xDLG9CQUFvQkQsS0FBS0UsS0FBekIsQ0FESztBQUFBLE1BQzNCQyxRQUQyQix3QkFDM0JBLFFBRDJCO0FBQUEsTUFDakJDLFFBRGlCLHdCQUNqQkEsUUFEaUI7O0FBR2xDLE1BQUlELGFBQWFFLFNBQWpCLEVBQTRCO0FBQzFCTCxTQUFLRyxRQUFMLEdBQWdCQSxRQUFoQjtBQUNELEdBRkQsTUFFTztBQUNMLFdBQU9ILEtBQUtHLFFBQVo7QUFDRDs7QUFFRCxNQUFJQyxhQUFhQyxTQUFqQixFQUE0QjtBQUMxQkwsU0FBS0ksUUFBTCxHQUFnQkEsUUFBaEI7QUFDRCxHQUZELE1BRU87QUFDTCxXQUFPSixLQUFLSSxRQUFaO0FBQ0Q7QUFDRjs7QUFFTSxTQUFTTCxLQUFULENBQWVPLElBQWYsRUFBcUJDLE1BQXJCLEVBQTZCQyxJQUE3QixFQUFtQztBQUN4Q0YsU0FBT0csVUFBVUgsSUFBVixFQUFnQkUsSUFBaEIsQ0FBUDtBQUNBRCxXQUFTRSxVQUFVRixNQUFWLEVBQWtCQyxJQUFsQixDQUFUOztBQUVBLE1BQUlFLE1BQU0sRUFBVjs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxNQUFJSixLQUFLSyxLQUFMLElBQWNKLE9BQU9JLEtBQXpCLEVBQWdDO0FBQzlCRCxRQUFJQyxLQUFKLEdBQVlMLEtBQUtLLEtBQUwsSUFBY0osT0FBT0ksS0FBakM7QUFDRDs7QUFFRCxNQUFJTCxLQUFLTSxXQUFMLElBQW9CTCxPQUFPSyxXQUEvQixFQUE0QztBQUMxQyxRQUFJLENBQUNDLGdCQUFnQlAsSUFBaEIsQ0FBTCxFQUE0QjtBQUMxQjtBQUNBSSxVQUFJSSxXQUFKLEdBQWtCUCxPQUFPTyxXQUFQLElBQXNCUixLQUFLUSxXQUE3QztBQUNBSixVQUFJRSxXQUFKLEdBQWtCTCxPQUFPSyxXQUFQLElBQXNCTixLQUFLTSxXQUE3QztBQUNBRixVQUFJSyxTQUFKLEdBQWdCUixPQUFPUSxTQUFQLElBQW9CVCxLQUFLUyxTQUF6QztBQUNBTCxVQUFJTSxTQUFKLEdBQWdCVCxPQUFPUyxTQUFQLElBQW9CVixLQUFLVSxTQUF6QztBQUNELEtBTkQsTUFNTyxJQUFJLENBQUNILGdCQUFnQk4sTUFBaEIsQ0FBTCxFQUE4QjtBQUNuQztBQUNBRyxVQUFJSSxXQUFKLEdBQWtCUixLQUFLUSxXQUF2QjtBQUNBSixVQUFJRSxXQUFKLEdBQWtCTixLQUFLTSxXQUF2QjtBQUNBRixVQUFJSyxTQUFKLEdBQWdCVCxLQUFLUyxTQUFyQjtBQUNBTCxVQUFJTSxTQUFKLEdBQWdCVixLQUFLVSxTQUFyQjtBQUNELEtBTk0sTUFNQTtBQUNMO0FBQ0FOLFVBQUlJLFdBQUosR0FBa0JHLFlBQVlQLEdBQVosRUFBaUJKLEtBQUtRLFdBQXRCLEVBQW1DUCxPQUFPTyxXQUExQyxDQUFsQjtBQUNBSixVQUFJRSxXQUFKLEdBQWtCSyxZQUFZUCxHQUFaLEVBQWlCSixLQUFLTSxXQUF0QixFQUFtQ0wsT0FBT0ssV0FBMUMsQ0FBbEI7QUFDQUYsVUFBSUssU0FBSixHQUFnQkUsWUFBWVAsR0FBWixFQUFpQkosS0FBS1MsU0FBdEIsRUFBaUNSLE9BQU9RLFNBQXhDLENBQWhCO0FBQ0FMLFVBQUlNLFNBQUosR0FBZ0JDLFlBQVlQLEdBQVosRUFBaUJKLEtBQUtVLFNBQXRCLEVBQWlDVCxPQUFPUyxTQUF4QyxDQUFoQjtBQUNEO0FBQ0Y7O0FBRUROLE1BQUlRLEtBQUosR0FBWSxFQUFaOztBQUVBLE1BQUlDLFlBQVksQ0FBaEI7QUFBQSxNQUNJQyxjQUFjLENBRGxCO0FBQUEsTUFFSUMsYUFBYSxDQUZqQjtBQUFBLE1BR0lDLGVBQWUsQ0FIbkI7O0FBS0EsU0FBT0gsWUFBWWIsS0FBS1ksS0FBTCxDQUFXSyxNQUF2QixJQUFpQ0gsY0FBY2IsT0FBT1csS0FBUCxDQUFhSyxNQUFuRSxFQUEyRTtBQUN6RSxRQUFJQyxjQUFjbEIsS0FBS1ksS0FBTCxDQUFXQyxTQUFYLEtBQXlCLEVBQUNNLFVBQVVDLFFBQVgsRUFBM0M7QUFBQSxRQUNJQyxnQkFBZ0JwQixPQUFPVyxLQUFQLENBQWFFLFdBQWIsS0FBNkIsRUFBQ0ssVUFBVUMsUUFBWCxFQURqRDs7QUFHQSxRQUFJRSxXQUFXSixXQUFYLEVBQXdCRyxhQUF4QixDQUFKLEVBQTRDO0FBQzFDO0FBQ0FqQixVQUFJUSxLQUFKLENBQVVXLElBQVYsQ0FBZUMsVUFBVU4sV0FBVixFQUF1QkgsVUFBdkIsQ0FBZjtBQUNBRjtBQUNBRyxzQkFBZ0JFLFlBQVlwQixRQUFaLEdBQXVCb0IsWUFBWXJCLFFBQW5EO0FBQ0QsS0FMRCxNQUtPLElBQUl5QixXQUFXRCxhQUFYLEVBQTBCSCxXQUExQixDQUFKLEVBQTRDO0FBQ2pEO0FBQ0FkLFVBQUlRLEtBQUosQ0FBVVcsSUFBVixDQUFlQyxVQUFVSCxhQUFWLEVBQXlCTCxZQUF6QixDQUFmO0FBQ0FGO0FBQ0FDLG9CQUFjTSxjQUFjdkIsUUFBZCxHQUF5QnVCLGNBQWN4QixRQUFyRDtBQUNELEtBTE0sTUFLQTtBQUNMO0FBQ0EsVUFBSTRCLGFBQWE7QUFDZk4sa0JBQVVPLEtBQUtDLEdBQUwsQ0FBU1QsWUFBWUMsUUFBckIsRUFBK0JFLGNBQWNGLFFBQTdDLENBREs7QUFFZnRCLGtCQUFVLENBRks7QUFHZitCLGtCQUFVRixLQUFLQyxHQUFMLENBQVNULFlBQVlVLFFBQVosR0FBdUJiLFVBQWhDLEVBQTRDTSxjQUFjRixRQUFkLEdBQXlCSCxZQUFyRSxDQUhLO0FBSWZsQixrQkFBVSxDQUpLO0FBS2ZGLGVBQU87QUFMUSxPQUFqQjtBQU9BaUMsaUJBQVdKLFVBQVgsRUFBdUJQLFlBQVlDLFFBQW5DLEVBQTZDRCxZQUFZdEIsS0FBekQsRUFBZ0V5QixjQUFjRixRQUE5RSxFQUF3RkUsY0FBY3pCLEtBQXRHO0FBQ0FrQjtBQUNBRDs7QUFFQVQsVUFBSVEsS0FBSixDQUFVVyxJQUFWLENBQWVFLFVBQWY7QUFDRDtBQUNGOztBQUVELFNBQU9yQixHQUFQO0FBQ0Q7O0FBRUQsU0FBU0QsU0FBVCxDQUFtQjJCLEtBQW5CLEVBQTBCNUIsSUFBMUIsRUFBZ0M7QUFDOUIsTUFBSSxPQUFPNEIsS0FBUCxLQUFpQixRQUFyQixFQUErQjtBQUM3QixRQUFJLE9BQU9DLElBQVAsQ0FBWUQsS0FBWixLQUF1QixXQUFXQyxJQUFYLENBQWdCRCxLQUFoQixDQUEzQixFQUFvRDtBQUNsRCxhQUFPLHlFQUFXQSxLQUFYLEVBQWtCLENBQWxCO0FBQVA7QUFDRDs7QUFFRCxRQUFJLENBQUM1QixJQUFMLEVBQVc7QUFDVCxZQUFNLElBQUk4QixLQUFKLENBQVUsa0RBQVYsQ0FBTjtBQUNEO0FBQ0QsV0FBTywrRUFBZ0JqQyxTQUFoQixFQUEyQkEsU0FBM0IsRUFBc0NHLElBQXRDLEVBQTRDNEIsS0FBNUM7QUFBUDtBQUNEOztBQUVELFNBQU9BLEtBQVA7QUFDRDs7QUFFRCxTQUFTdkIsZUFBVCxDQUF5QjBCLEtBQXpCLEVBQWdDO0FBQzlCLFNBQU9BLE1BQU0zQixXQUFOLElBQXFCMkIsTUFBTTNCLFdBQU4sS0FBc0IyQixNQUFNekIsV0FBeEQ7QUFDRDs7QUFFRCxTQUFTRyxXQUFULENBQXFCTixLQUFyQixFQUE0QkwsSUFBNUIsRUFBa0NDLE1BQWxDLEVBQTBDO0FBQ3hDLE1BQUlELFNBQVNDLE1BQWIsRUFBcUI7QUFDbkIsV0FBT0QsSUFBUDtBQUNELEdBRkQsTUFFTztBQUNMSyxVQUFNNkIsUUFBTixHQUFpQixJQUFqQjtBQUNBLFdBQU8sRUFBQ2xDLFVBQUQsRUFBT0MsY0FBUCxFQUFQO0FBQ0Q7QUFDRjs7QUFFRCxTQUFTcUIsVUFBVCxDQUFvQlMsSUFBcEIsRUFBMEJJLEtBQTFCLEVBQWlDO0FBQy9CLFNBQU9KLEtBQUtaLFFBQUwsR0FBZ0JnQixNQUFNaEIsUUFBdEIsSUFDRFksS0FBS1osUUFBTCxHQUFnQlksS0FBS2xDLFFBQXRCLEdBQWtDc0MsTUFBTWhCLFFBRDdDO0FBRUQ7O0FBRUQsU0FBU0ssU0FBVCxDQUFtQjlCLElBQW5CLEVBQXlCMEMsTUFBekIsRUFBaUM7QUFDL0IsU0FBTztBQUNMakIsY0FBVXpCLEtBQUt5QixRQURWLEVBQ29CdEIsVUFBVUgsS0FBS0csUUFEbkM7QUFFTCtCLGNBQVVsQyxLQUFLa0MsUUFBTCxHQUFnQlEsTUFGckIsRUFFNkJ0QyxVQUFVSixLQUFLSSxRQUY1QztBQUdMRixXQUFPRixLQUFLRTtBQUhQLEdBQVA7QUFLRDs7QUFFRCxTQUFTaUMsVUFBVCxDQUFvQm5DLElBQXBCLEVBQTBCcUIsVUFBMUIsRUFBc0NzQixTQUF0QyxFQUFpREMsV0FBakQsRUFBOERDLFVBQTlELEVBQTBFO0FBQ3hFO0FBQ0E7QUFDQSxNQUFJdkMsT0FBTyxFQUFDb0MsUUFBUXJCLFVBQVQsRUFBcUJuQixPQUFPeUMsU0FBNUIsRUFBdUNoQyxPQUFPLENBQTlDLEVBQVg7QUFBQSxNQUNJbUMsUUFBUSxFQUFDSixRQUFRRSxXQUFULEVBQXNCMUMsT0FBTzJDLFVBQTdCLEVBQXlDbEMsT0FBTyxDQUFoRCxFQURaOztBQUdBO0FBQ0FvQyxnQkFBYy9DLElBQWQsRUFBb0JNLElBQXBCLEVBQTBCd0MsS0FBMUI7QUFDQUMsZ0JBQWMvQyxJQUFkLEVBQW9COEMsS0FBcEIsRUFBMkJ4QyxJQUEzQjs7QUFFQTtBQUNBLFNBQU9BLEtBQUtLLEtBQUwsR0FBYUwsS0FBS0osS0FBTCxDQUFXcUIsTUFBeEIsSUFBa0N1QixNQUFNbkMsS0FBTixHQUFjbUMsTUFBTTVDLEtBQU4sQ0FBWXFCLE1BQW5FLEVBQTJFO0FBQ3pFLFFBQUlDLGNBQWNsQixLQUFLSixLQUFMLENBQVdJLEtBQUtLLEtBQWhCLENBQWxCO0FBQUEsUUFDSXFDLGVBQWVGLE1BQU01QyxLQUFOLENBQVk0QyxNQUFNbkMsS0FBbEIsQ0FEbkI7O0FBR0EsUUFBSSxDQUFDYSxZQUFZLENBQVosTUFBbUIsR0FBbkIsSUFBMEJBLFlBQVksQ0FBWixNQUFtQixHQUE5QyxNQUNJd0IsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCQSxhQUFhLENBQWIsTUFBb0IsR0FEbkQsQ0FBSixFQUM2RDtBQUMzRDtBQUNBQyxtQkFBYWpELElBQWIsRUFBbUJNLElBQW5CLEVBQXlCd0MsS0FBekI7QUFDRCxLQUpELE1BSU8sSUFBSXRCLFlBQVksQ0FBWixNQUFtQixHQUFuQixJQUEwQndCLGFBQWEsQ0FBYixNQUFvQixHQUFsRCxFQUF1RDtBQUFBOztBQUFBLDhCQUM1RDtBQUNBLDBFQUFLOUMsS0FBTCxFQUFXMkIsSUFBWCw0TEFBb0JxQixjQUFjNUMsSUFBZCxDQUFwQjtBQUNELEtBSE0sTUFHQSxJQUFJMEMsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCeEIsWUFBWSxDQUFaLE1BQW1CLEdBQWxELEVBQXVEO0FBQUE7O0FBQUEsOEJBQzVEO0FBQ0EsMkVBQUt0QixLQUFMLEVBQVcyQixJQUFYLDZMQUFvQnFCLGNBQWNKLEtBQWQsQ0FBcEI7QUFDRCxLQUhNLE1BR0EsSUFBSXRCLFlBQVksQ0FBWixNQUFtQixHQUFuQixJQUEwQndCLGFBQWEsQ0FBYixNQUFvQixHQUFsRCxFQUF1RDtBQUM1RDtBQUNBRyxjQUFRbkQsSUFBUixFQUFjTSxJQUFkLEVBQW9Cd0MsS0FBcEI7QUFDRCxLQUhNLE1BR0EsSUFBSUUsYUFBYSxDQUFiLE1BQW9CLEdBQXBCLElBQTJCeEIsWUFBWSxDQUFaLE1BQW1CLEdBQWxELEVBQXVEO0FBQzVEO0FBQ0EyQixjQUFRbkQsSUFBUixFQUFjOEMsS0FBZCxFQUFxQnhDLElBQXJCLEVBQTJCLElBQTNCO0FBQ0QsS0FITSxNQUdBLElBQUlrQixnQkFBZ0J3QixZQUFwQixFQUFrQztBQUN2QztBQUNBaEQsV0FBS0UsS0FBTCxDQUFXMkIsSUFBWCxDQUFnQkwsV0FBaEI7QUFDQWxCLFdBQUtLLEtBQUw7QUFDQW1DLFlBQU1uQyxLQUFOO0FBQ0QsS0FMTSxNQUtBO0FBQ0w7QUFDQTZCLGVBQVN4QyxJQUFULEVBQWVrRCxjQUFjNUMsSUFBZCxDQUFmLEVBQW9DNEMsY0FBY0osS0FBZCxDQUFwQztBQUNEO0FBQ0Y7O0FBRUQ7QUFDQU0saUJBQWVwRCxJQUFmLEVBQXFCTSxJQUFyQjtBQUNBOEMsaUJBQWVwRCxJQUFmLEVBQXFCOEMsS0FBckI7O0FBRUFoRCxnQkFBY0UsSUFBZDtBQUNEOztBQUVELFNBQVNpRCxZQUFULENBQXNCakQsSUFBdEIsRUFBNEJNLElBQTVCLEVBQWtDd0MsS0FBbEMsRUFBeUM7QUFDdkMsTUFBSU8sWUFBWUgsY0FBYzVDLElBQWQsQ0FBaEI7QUFBQSxNQUNJZ0QsZUFBZUosY0FBY0osS0FBZCxDQURuQjs7QUFHQSxNQUFJUyxXQUFXRixTQUFYLEtBQXlCRSxXQUFXRCxZQUFYLENBQTdCLEVBQXVEO0FBQ3JEO0FBQ0EsUUFBSSw4RUFBZ0JELFNBQWhCLEVBQTJCQyxZQUEzQixLQUNHRSxtQkFBbUJWLEtBQW5CLEVBQTBCTyxTQUExQixFQUFxQ0EsVUFBVTlCLE1BQVYsR0FBbUIrQixhQUFhL0IsTUFBckUsQ0FEUCxFQUNxRjtBQUFBOztBQUFBLDZCQUNuRixzRUFBS3JCLEtBQUwsRUFBVzJCLElBQVgsNkxBQW9Cd0IsU0FBcEI7QUFDQTtBQUNELEtBSkQsTUFJTyxJQUFJLDhFQUFnQkMsWUFBaEIsRUFBOEJELFNBQTlCLEtBQ0pHLG1CQUFtQmxELElBQW5CLEVBQXlCZ0QsWUFBekIsRUFBdUNBLGFBQWEvQixNQUFiLEdBQXNCOEIsVUFBVTlCLE1BQXZFLENBREEsRUFDZ0Y7QUFBQTs7QUFBQSw2QkFDckYsc0VBQUtyQixLQUFMLEVBQVcyQixJQUFYLDZMQUFvQnlCLFlBQXBCO0FBQ0E7QUFDRDtBQUNGLEdBWEQsTUFXTyxJQUFJLHlFQUFXRCxTQUFYLEVBQXNCQyxZQUF0QixDQUFKLEVBQXlDO0FBQUE7O0FBQUEsMkJBQzlDLHNFQUFLcEQsS0FBTCxFQUFXMkIsSUFBWCw2TEFBb0J3QixTQUFwQjtBQUNBO0FBQ0Q7O0FBRURiLFdBQVN4QyxJQUFULEVBQWVxRCxTQUFmLEVBQTBCQyxZQUExQjtBQUNEOztBQUVELFNBQVNILE9BQVQsQ0FBaUJuRCxJQUFqQixFQUF1Qk0sSUFBdkIsRUFBNkJ3QyxLQUE3QixFQUFvQ1csSUFBcEMsRUFBMEM7QUFDeEMsTUFBSUosWUFBWUgsY0FBYzVDLElBQWQsQ0FBaEI7QUFBQSxNQUNJZ0QsZUFBZUksZUFBZVosS0FBZixFQUFzQk8sU0FBdEIsQ0FEbkI7QUFFQSxNQUFJQyxhQUFhSyxNQUFqQixFQUF5QjtBQUFBOztBQUFBLDJCQUN2QixzRUFBS3pELEtBQUwsRUFBVzJCLElBQVgsNkxBQW9CeUIsYUFBYUssTUFBakM7QUFDRCxHQUZELE1BRU87QUFDTG5CLGFBQVN4QyxJQUFULEVBQWV5RCxPQUFPSCxZQUFQLEdBQXNCRCxTQUFyQyxFQUFnREksT0FBT0osU0FBUCxHQUFtQkMsWUFBbkU7QUFDRDtBQUNGOztBQUVELFNBQVNkLFFBQVQsQ0FBa0J4QyxJQUFsQixFQUF3Qk0sSUFBeEIsRUFBOEJ3QyxLQUE5QixFQUFxQztBQUNuQzlDLE9BQUt3QyxRQUFMLEdBQWdCLElBQWhCO0FBQ0F4QyxPQUFLRSxLQUFMLENBQVcyQixJQUFYLENBQWdCO0FBQ2RXLGNBQVUsSUFESTtBQUVkbEMsVUFBTUEsSUFGUTtBQUdkQyxZQUFRdUM7QUFITSxHQUFoQjtBQUtEOztBQUVELFNBQVNDLGFBQVQsQ0FBdUIvQyxJQUF2QixFQUE2QjRELE1BQTdCLEVBQXFDZCxLQUFyQyxFQUE0QztBQUMxQyxTQUFPYyxPQUFPbEIsTUFBUCxHQUFnQkksTUFBTUosTUFBdEIsSUFBZ0NrQixPQUFPakQsS0FBUCxHQUFlaUQsT0FBTzFELEtBQVAsQ0FBYXFCLE1BQW5FLEVBQTJFO0FBQ3pFLFFBQUlzQyxPQUFPRCxPQUFPMUQsS0FBUCxDQUFhMEQsT0FBT2pELEtBQVAsRUFBYixDQUFYO0FBQ0FYLFNBQUtFLEtBQUwsQ0FBVzJCLElBQVgsQ0FBZ0JnQyxJQUFoQjtBQUNBRCxXQUFPbEIsTUFBUDtBQUNEO0FBQ0Y7QUFDRCxTQUFTVSxjQUFULENBQXdCcEQsSUFBeEIsRUFBOEI0RCxNQUE5QixFQUFzQztBQUNwQyxTQUFPQSxPQUFPakQsS0FBUCxHQUFlaUQsT0FBTzFELEtBQVAsQ0FBYXFCLE1BQW5DLEVBQTJDO0FBQ3pDLFFBQUlzQyxPQUFPRCxPQUFPMUQsS0FBUCxDQUFhMEQsT0FBT2pELEtBQVAsRUFBYixDQUFYO0FBQ0FYLFNBQUtFLEtBQUwsQ0FBVzJCLElBQVgsQ0FBZ0JnQyxJQUFoQjtBQUNEO0FBQ0Y7O0FBRUQsU0FBU1gsYUFBVCxDQUF1QlksS0FBdkIsRUFBOEI7QUFDNUIsTUFBSXBELE1BQU0sRUFBVjtBQUFBLE1BQ0lxRCxZQUFZRCxNQUFNNUQsS0FBTixDQUFZNEQsTUFBTW5ELEtBQWxCLEVBQXlCLENBQXpCLENBRGhCO0FBRUEsU0FBT21ELE1BQU1uRCxLQUFOLEdBQWNtRCxNQUFNNUQsS0FBTixDQUFZcUIsTUFBakMsRUFBeUM7QUFDdkMsUUFBSXNDLE9BQU9DLE1BQU01RCxLQUFOLENBQVk0RCxNQUFNbkQsS0FBbEIsQ0FBWDs7QUFFQTtBQUNBLFFBQUlvRCxjQUFjLEdBQWQsSUFBcUJGLEtBQUssQ0FBTCxNQUFZLEdBQXJDLEVBQTBDO0FBQ3hDRSxrQkFBWSxHQUFaO0FBQ0Q7O0FBRUQsUUFBSUEsY0FBY0YsS0FBSyxDQUFMLENBQWxCLEVBQTJCO0FBQ3pCbkQsVUFBSW1CLElBQUosQ0FBU2dDLElBQVQ7QUFDQUMsWUFBTW5ELEtBQU47QUFDRCxLQUhELE1BR087QUFDTDtBQUNEO0FBQ0Y7O0FBRUQsU0FBT0QsR0FBUDtBQUNEO0FBQ0QsU0FBU2dELGNBQVQsQ0FBd0JJLEtBQXhCLEVBQStCRSxZQUEvQixFQUE2QztBQUMzQyxNQUFJQyxVQUFVLEVBQWQ7QUFBQSxNQUNJTixTQUFTLEVBRGI7QUFBQSxNQUVJTyxhQUFhLENBRmpCO0FBQUEsTUFHSUMsaUJBQWlCLEtBSHJCO0FBQUEsTUFJSUMsYUFBYSxLQUpqQjtBQUtBLFNBQU9GLGFBQWFGLGFBQWF6QyxNQUExQixJQUNFdUMsTUFBTW5ELEtBQU4sR0FBY21ELE1BQU01RCxLQUFOLENBQVlxQixNQURuQyxFQUMyQztBQUN6QyxRQUFJOEMsU0FBU1AsTUFBTTVELEtBQU4sQ0FBWTRELE1BQU1uRCxLQUFsQixDQUFiO0FBQUEsUUFDSTJELFFBQVFOLGFBQWFFLFVBQWIsQ0FEWjs7QUFHQTtBQUNBLFFBQUlJLE1BQU0sQ0FBTixNQUFhLEdBQWpCLEVBQXNCO0FBQ3BCO0FBQ0Q7O0FBRURILHFCQUFpQkEsa0JBQWtCRSxPQUFPLENBQVAsTUFBYyxHQUFqRDs7QUFFQVYsV0FBTzlCLElBQVAsQ0FBWXlDLEtBQVo7QUFDQUo7O0FBRUE7QUFDQTtBQUNBLFFBQUlHLE9BQU8sQ0FBUCxNQUFjLEdBQWxCLEVBQXVCO0FBQ3JCRCxtQkFBYSxJQUFiOztBQUVBLGFBQU9DLE9BQU8sQ0FBUCxNQUFjLEdBQXJCLEVBQTBCO0FBQ3hCSixnQkFBUXBDLElBQVIsQ0FBYXdDLE1BQWI7QUFDQUEsaUJBQVNQLE1BQU01RCxLQUFOLENBQVksRUFBRTRELE1BQU1uRCxLQUFwQixDQUFUO0FBQ0Q7QUFDRjs7QUFFRCxRQUFJMkQsTUFBTUMsTUFBTixDQUFhLENBQWIsTUFBb0JGLE9BQU9FLE1BQVAsQ0FBYyxDQUFkLENBQXhCLEVBQTBDO0FBQ3hDTixjQUFRcEMsSUFBUixDQUFhd0MsTUFBYjtBQUNBUCxZQUFNbkQsS0FBTjtBQUNELEtBSEQsTUFHTztBQUNMeUQsbUJBQWEsSUFBYjtBQUNEO0FBQ0Y7O0FBRUQsTUFBSSxDQUFDSixhQUFhRSxVQUFiLEtBQTRCLEVBQTdCLEVBQWlDLENBQWpDLE1BQXdDLEdBQXhDLElBQ0dDLGNBRFAsRUFDdUI7QUFDckJDLGlCQUFhLElBQWI7QUFDRDs7QUFFRCxNQUFJQSxVQUFKLEVBQWdCO0FBQ2QsV0FBT0gsT0FBUDtBQUNEOztBQUVELFNBQU9DLGFBQWFGLGFBQWF6QyxNQUFqQyxFQUF5QztBQUN2Q29DLFdBQU85QixJQUFQLENBQVltQyxhQUFhRSxZQUFiLENBQVo7QUFDRDs7QUFFRCxTQUFPO0FBQ0xQLGtCQURLO0FBRUxNO0FBRkssR0FBUDtBQUlEOztBQUVELFNBQVNWLFVBQVQsQ0FBb0JVLE9BQXBCLEVBQTZCO0FBQzNCLFNBQU9BLFFBQVFPLE1BQVIsQ0FBZSxVQUFTQyxJQUFULEVBQWVKLE1BQWYsRUFBdUI7QUFDM0MsV0FBT0ksUUFBUUosT0FBTyxDQUFQLE1BQWMsR0FBN0I7QUFDRCxHQUZNLEVBRUosSUFGSSxDQUFQO0FBR0Q7QUFDRCxTQUFTYixrQkFBVCxDQUE0Qk0sS0FBNUIsRUFBbUNZLGFBQW5DLEVBQWtEQyxLQUFsRCxFQUF5RDtBQUN2RCxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsS0FBcEIsRUFBMkJDLEdBQTNCLEVBQWdDO0FBQzlCLFFBQUlDLGdCQUFnQkgsY0FBY0EsY0FBY25ELE1BQWQsR0FBdUJvRCxLQUF2QixHQUErQkMsQ0FBN0MsRUFBZ0RMLE1BQWhELENBQXVELENBQXZELENBQXBCO0FBQ0EsUUFBSVQsTUFBTTVELEtBQU4sQ0FBWTRELE1BQU1uRCxLQUFOLEdBQWNpRSxDQUExQixNQUFpQyxNQUFNQyxhQUEzQyxFQUEwRDtBQUN4RCxhQUFPLEtBQVA7QUFDRDtBQUNGOztBQUVEZixRQUFNbkQsS0FBTixJQUFlZ0UsS0FBZjtBQUNBLFNBQU8sSUFBUDtBQUNEOztBQUVELFNBQVMxRSxtQkFBVCxDQUE2QkMsS0FBN0IsRUFBb0M7QUFDbEMsTUFBSUMsV0FBVyxDQUFmO0FBQ0EsTUFBSUMsV0FBVyxDQUFmOztBQUVBRixRQUFNNEUsT0FBTixDQUFjLFVBQVNqQixJQUFULEVBQWU7QUFDM0IsUUFBSSxPQUFPQSxJQUFQLEtBQWdCLFFBQXBCLEVBQThCO0FBQzVCLFVBQUlrQixVQUFVOUUsb0JBQW9CNEQsS0FBS3ZELElBQXpCLENBQWQ7QUFDQSxVQUFJMEUsYUFBYS9FLG9CQUFvQjRELEtBQUt0RCxNQUF6QixDQUFqQjs7QUFFQSxVQUFJSixhQUFhRSxTQUFqQixFQUE0QjtBQUMxQixZQUFJMEUsUUFBUTVFLFFBQVIsS0FBcUI2RSxXQUFXN0UsUUFBcEMsRUFBOEM7QUFDNUNBLHNCQUFZNEUsUUFBUTVFLFFBQXBCO0FBQ0QsU0FGRCxNQUVPO0FBQ0xBLHFCQUFXRSxTQUFYO0FBQ0Q7QUFDRjs7QUFFRCxVQUFJRCxhQUFhQyxTQUFqQixFQUE0QjtBQUMxQixZQUFJMEUsUUFBUTNFLFFBQVIsS0FBcUI0RSxXQUFXNUUsUUFBcEMsRUFBOEM7QUFDNUNBLHNCQUFZMkUsUUFBUTNFLFFBQXBCO0FBQ0QsU0FGRCxNQUVPO0FBQ0xBLHFCQUFXQyxTQUFYO0FBQ0Q7QUFDRjtBQUNGLEtBbkJELE1BbUJPO0FBQ0wsVUFBSUQsYUFBYUMsU0FBYixLQUEyQndELEtBQUssQ0FBTCxNQUFZLEdBQVosSUFBbUJBLEtBQUssQ0FBTCxNQUFZLEdBQTFELENBQUosRUFBb0U7QUFDbEV6RDtBQUNEO0FBQ0QsVUFBSUQsYUFBYUUsU0FBYixLQUEyQndELEtBQUssQ0FBTCxNQUFZLEdBQVosSUFBbUJBLEtBQUssQ0FBTCxNQUFZLEdBQTFELENBQUosRUFBb0U7QUFDbEUxRDtBQUNEO0FBQ0Y7QUFDRixHQTVCRDs7QUE4QkEsU0FBTyxFQUFDQSxrQkFBRCxFQUFXQyxrQkFBWCxFQUFQO0FBQ0QiLCJmaWxlIjoibWVyZ2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge3N0cnVjdHVyZWRQYXRjaH0gZnJvbSAnLi9jcmVhdGUnO1xuaW1wb3J0IHtwYXJzZVBhdGNofSBmcm9tICcuL3BhcnNlJztcblxuaW1wb3J0IHthcnJheUVxdWFsLCBhcnJheVN0YXJ0c1dpdGh9IGZyb20gJy4uL3V0aWwvYXJyYXknO1xuXG5leHBvcnQgZnVuY3Rpb24gY2FsY0xpbmVDb3VudChodW5rKSB7XG4gIGNvbnN0IHtvbGRMaW5lcywgbmV3TGluZXN9ID0gY2FsY09sZE5ld0xpbmVDb3VudChodW5rLmxpbmVzKTtcblxuICBpZiAob2xkTGluZXMgIT09IHVuZGVmaW5lZCkge1xuICAgIGh1bmsub2xkTGluZXMgPSBvbGRMaW5lcztcbiAgfSBlbHNlIHtcbiAgICBkZWxldGUgaHVuay5vbGRMaW5lcztcbiAgfVxuXG4gIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgaHVuay5uZXdMaW5lcyA9IG5ld0xpbmVzO1xuICB9IGVsc2Uge1xuICAgIGRlbGV0ZSBodW5rLm5ld0xpbmVzO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBtZXJnZShtaW5lLCB0aGVpcnMsIGJhc2UpIHtcbiAgbWluZSA9IGxvYWRQYXRjaChtaW5lLCBiYXNlKTtcbiAgdGhlaXJzID0gbG9hZFBhdGNoKHRoZWlycywgYmFzZSk7XG5cbiAgbGV0IHJldCA9IHt9O1xuXG4gIC8vIEZvciBpbmRleCB3ZSBqdXN0IGxldCBpdCBwYXNzIHRocm91Z2ggYXMgaXQgZG9lc24ndCBoYXZlIGFueSBuZWNlc3NhcnkgbWVhbmluZy5cbiAgLy8gTGVhdmluZyBzYW5pdHkgY2hlY2tzIG9uIHRoaXMgdG8gdGhlIEFQSSBjb25zdW1lciB0aGF0IG1heSBrbm93IG1vcmUgYWJvdXQgdGhlXG4gIC8vIG1lYW5pbmcgaW4gdGhlaXIgb3duIGNvbnRleHQuXG4gIGlmIChtaW5lLmluZGV4IHx8IHRoZWlycy5pbmRleCkge1xuICAgIHJldC5pbmRleCA9IG1pbmUuaW5kZXggfHwgdGhlaXJzLmluZGV4O1xuICB9XG5cbiAgaWYgKG1pbmUubmV3RmlsZU5hbWUgfHwgdGhlaXJzLm5ld0ZpbGVOYW1lKSB7XG4gICAgaWYgKCFmaWxlTmFtZUNoYW5nZWQobWluZSkpIHtcbiAgICAgIC8vIE5vIGhlYWRlciBvciBubyBjaGFuZ2UgaW4gb3VycywgdXNlIHRoZWlycyAoYW5kIG91cnMgaWYgdGhlaXJzIGRvZXMgbm90IGV4aXN0KVxuICAgICAgcmV0Lm9sZEZpbGVOYW1lID0gdGhlaXJzLm9sZEZpbGVOYW1lIHx8IG1pbmUub2xkRmlsZU5hbWU7XG4gICAgICByZXQubmV3RmlsZU5hbWUgPSB0aGVpcnMubmV3RmlsZU5hbWUgfHwgbWluZS5uZXdGaWxlTmFtZTtcbiAgICAgIHJldC5vbGRIZWFkZXIgPSB0aGVpcnMub2xkSGVhZGVyIHx8IG1pbmUub2xkSGVhZGVyO1xuICAgICAgcmV0Lm5ld0hlYWRlciA9IHRoZWlycy5uZXdIZWFkZXIgfHwgbWluZS5uZXdIZWFkZXI7XG4gICAgfSBlbHNlIGlmICghZmlsZU5hbWVDaGFuZ2VkKHRoZWlycykpIHtcbiAgICAgIC8vIE5vIGhlYWRlciBvciBubyBjaGFuZ2UgaW4gdGhlaXJzLCB1c2Ugb3Vyc1xuICAgICAgcmV0Lm9sZEZpbGVOYW1lID0gbWluZS5vbGRGaWxlTmFtZTtcbiAgICAgIHJldC5uZXdGaWxlTmFtZSA9IG1pbmUubmV3RmlsZU5hbWU7XG4gICAgICByZXQub2xkSGVhZGVyID0gbWluZS5vbGRIZWFkZXI7XG4gICAgICByZXQubmV3SGVhZGVyID0gbWluZS5uZXdIZWFkZXI7XG4gICAgfSBlbHNlIHtcbiAgICAgIC8vIEJvdGggY2hhbmdlZC4uLiBmaWd1cmUgaXQgb3V0XG4gICAgICByZXQub2xkRmlsZU5hbWUgPSBzZWxlY3RGaWVsZChyZXQsIG1pbmUub2xkRmlsZU5hbWUsIHRoZWlycy5vbGRGaWxlTmFtZSk7XG4gICAgICByZXQubmV3RmlsZU5hbWUgPSBzZWxlY3RGaWVsZChyZXQsIG1pbmUubmV3RmlsZU5hbWUsIHRoZWlycy5uZXdGaWxlTmFtZSk7XG4gICAgICByZXQub2xkSGVhZGVyID0gc2VsZWN0RmllbGQocmV0LCBtaW5lLm9sZEhlYWRlciwgdGhlaXJzLm9sZEhlYWRlcik7XG4gICAgICByZXQubmV3SGVhZGVyID0gc2VsZWN0RmllbGQocmV0LCBtaW5lLm5ld0hlYWRlciwgdGhlaXJzLm5ld0hlYWRlcik7XG4gICAgfVxuICB9XG5cbiAgcmV0Lmh1bmtzID0gW107XG5cbiAgbGV0IG1pbmVJbmRleCA9IDAsXG4gICAgICB0aGVpcnNJbmRleCA9IDAsXG4gICAgICBtaW5lT2Zmc2V0ID0gMCxcbiAgICAgIHRoZWlyc09mZnNldCA9IDA7XG5cbiAgd2hpbGUgKG1pbmVJbmRleCA8IG1pbmUuaHVua3MubGVuZ3RoIHx8IHRoZWlyc0luZGV4IDwgdGhlaXJzLmh1bmtzLmxlbmd0aCkge1xuICAgIGxldCBtaW5lQ3VycmVudCA9IG1pbmUuaHVua3NbbWluZUluZGV4XSB8fCB7b2xkU3RhcnQ6IEluZmluaXR5fSxcbiAgICAgICAgdGhlaXJzQ3VycmVudCA9IHRoZWlycy5odW5rc1t0aGVpcnNJbmRleF0gfHwge29sZFN0YXJ0OiBJbmZpbml0eX07XG5cbiAgICBpZiAoaHVua0JlZm9yZShtaW5lQ3VycmVudCwgdGhlaXJzQ3VycmVudCkpIHtcbiAgICAgIC8vIFRoaXMgcGF0Y2ggZG9lcyBub3Qgb3ZlcmxhcCB3aXRoIGFueSBvZiB0aGUgb3RoZXJzLCB5YXkuXG4gICAgICByZXQuaHVua3MucHVzaChjbG9uZUh1bmsobWluZUN1cnJlbnQsIG1pbmVPZmZzZXQpKTtcbiAgICAgIG1pbmVJbmRleCsrO1xuICAgICAgdGhlaXJzT2Zmc2V0ICs9IG1pbmVDdXJyZW50Lm5ld0xpbmVzIC0gbWluZUN1cnJlbnQub2xkTGluZXM7XG4gICAgfSBlbHNlIGlmIChodW5rQmVmb3JlKHRoZWlyc0N1cnJlbnQsIG1pbmVDdXJyZW50KSkge1xuICAgICAgLy8gVGhpcyBwYXRjaCBkb2VzIG5vdCBvdmVybGFwIHdpdGggYW55IG9mIHRoZSBvdGhlcnMsIHlheS5cbiAgICAgIHJldC5odW5rcy5wdXNoKGNsb25lSHVuayh0aGVpcnNDdXJyZW50LCB0aGVpcnNPZmZzZXQpKTtcbiAgICAgIHRoZWlyc0luZGV4Kys7XG4gICAgICBtaW5lT2Zmc2V0ICs9IHRoZWlyc0N1cnJlbnQubmV3TGluZXMgLSB0aGVpcnNDdXJyZW50Lm9sZExpbmVzO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBPdmVybGFwLCBtZXJnZSBhcyBiZXN0IHdlIGNhblxuICAgICAgbGV0IG1lcmdlZEh1bmsgPSB7XG4gICAgICAgIG9sZFN0YXJ0OiBNYXRoLm1pbihtaW5lQ3VycmVudC5vbGRTdGFydCwgdGhlaXJzQ3VycmVudC5vbGRTdGFydCksXG4gICAgICAgIG9sZExpbmVzOiAwLFxuICAgICAgICBuZXdTdGFydDogTWF0aC5taW4obWluZUN1cnJlbnQubmV3U3RhcnQgKyBtaW5lT2Zmc2V0LCB0aGVpcnNDdXJyZW50Lm9sZFN0YXJ0ICsgdGhlaXJzT2Zmc2V0KSxcbiAgICAgICAgbmV3TGluZXM6IDAsXG4gICAgICAgIGxpbmVzOiBbXVxuICAgICAgfTtcbiAgICAgIG1lcmdlTGluZXMobWVyZ2VkSHVuaywgbWluZUN1cnJlbnQub2xkU3RhcnQsIG1pbmVDdXJyZW50LmxpbmVzLCB0aGVpcnNDdXJyZW50Lm9sZFN0YXJ0LCB0aGVpcnNDdXJyZW50LmxpbmVzKTtcbiAgICAgIHRoZWlyc0luZGV4Kys7XG4gICAgICBtaW5lSW5kZXgrKztcblxuICAgICAgcmV0Lmh1bmtzLnB1c2gobWVyZ2VkSHVuayk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHJldDtcbn1cblxuZnVuY3Rpb24gbG9hZFBhdGNoKHBhcmFtLCBiYXNlKSB7XG4gIGlmICh0eXBlb2YgcGFyYW0gPT09ICdzdHJpbmcnKSB7XG4gICAgaWYgKC9eQEAvbS50ZXN0KHBhcmFtKSB8fCAoL15JbmRleDovbS50ZXN0KHBhcmFtKSkpIHtcbiAgICAgIHJldHVybiBwYXJzZVBhdGNoKHBhcmFtKVswXTtcbiAgICB9XG5cbiAgICBpZiAoIWJhc2UpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignTXVzdCBwcm92aWRlIGEgYmFzZSByZWZlcmVuY2Ugb3IgcGFzcyBpbiBhIHBhdGNoJyk7XG4gICAgfVxuICAgIHJldHVybiBzdHJ1Y3R1cmVkUGF0Y2godW5kZWZpbmVkLCB1bmRlZmluZWQsIGJhc2UsIHBhcmFtKTtcbiAgfVxuXG4gIHJldHVybiBwYXJhbTtcbn1cblxuZnVuY3Rpb24gZmlsZU5hbWVDaGFuZ2VkKHBhdGNoKSB7XG4gIHJldHVybiBwYXRjaC5uZXdGaWxlTmFtZSAmJiBwYXRjaC5uZXdGaWxlTmFtZSAhPT0gcGF0Y2gub2xkRmlsZU5hbWU7XG59XG5cbmZ1bmN0aW9uIHNlbGVjdEZpZWxkKGluZGV4LCBtaW5lLCB0aGVpcnMpIHtcbiAgaWYgKG1pbmUgPT09IHRoZWlycykge1xuICAgIHJldHVybiBtaW5lO1xuICB9IGVsc2Uge1xuICAgIGluZGV4LmNvbmZsaWN0ID0gdHJ1ZTtcbiAgICByZXR1cm4ge21pbmUsIHRoZWlyc307XG4gIH1cbn1cblxuZnVuY3Rpb24gaHVua0JlZm9yZSh0ZXN0LCBjaGVjaykge1xuICByZXR1cm4gdGVzdC5vbGRTdGFydCA8IGNoZWNrLm9sZFN0YXJ0XG4gICAgJiYgKHRlc3Qub2xkU3RhcnQgKyB0ZXN0Lm9sZExpbmVzKSA8IGNoZWNrLm9sZFN0YXJ0O1xufVxuXG5mdW5jdGlvbiBjbG9uZUh1bmsoaHVuaywgb2Zmc2V0KSB7XG4gIHJldHVybiB7XG4gICAgb2xkU3RhcnQ6IGh1bmsub2xkU3RhcnQsIG9sZExpbmVzOiBodW5rLm9sZExpbmVzLFxuICAgIG5ld1N0YXJ0OiBodW5rLm5ld1N0YXJ0ICsgb2Zmc2V0LCBuZXdMaW5lczogaHVuay5uZXdMaW5lcyxcbiAgICBsaW5lczogaHVuay5saW5lc1xuICB9O1xufVxuXG5mdW5jdGlvbiBtZXJnZUxpbmVzKGh1bmssIG1pbmVPZmZzZXQsIG1pbmVMaW5lcywgdGhlaXJPZmZzZXQsIHRoZWlyTGluZXMpIHtcbiAgLy8gVGhpcyB3aWxsIGdlbmVyYWxseSByZXN1bHQgaW4gYSBjb25mbGljdGVkIGh1bmssIGJ1dCB0aGVyZSBhcmUgY2FzZXMgd2hlcmUgdGhlIGNvbnRleHRcbiAgLy8gaXMgdGhlIG9ubHkgb3ZlcmxhcCB3aGVyZSB3ZSBjYW4gc3VjY2Vzc2Z1bGx5IG1lcmdlIHRoZSBjb250ZW50IGhlcmUuXG4gIGxldCBtaW5lID0ge29mZnNldDogbWluZU9mZnNldCwgbGluZXM6IG1pbmVMaW5lcywgaW5kZXg6IDB9LFxuICAgICAgdGhlaXIgPSB7b2Zmc2V0OiB0aGVpck9mZnNldCwgbGluZXM6IHRoZWlyTGluZXMsIGluZGV4OiAwfTtcblxuICAvLyBIYW5kbGUgYW55IGxlYWRpbmcgY29udGVudFxuICBpbnNlcnRMZWFkaW5nKGh1bmssIG1pbmUsIHRoZWlyKTtcbiAgaW5zZXJ0TGVhZGluZyhodW5rLCB0aGVpciwgbWluZSk7XG5cbiAgLy8gTm93IGluIHRoZSBvdmVybGFwIGNvbnRlbnQuIFNjYW4gdGhyb3VnaCBhbmQgc2VsZWN0IHRoZSBiZXN0IGNoYW5nZXMgZnJvbSBlYWNoLlxuICB3aGlsZSAobWluZS5pbmRleCA8IG1pbmUubGluZXMubGVuZ3RoICYmIHRoZWlyLmluZGV4IDwgdGhlaXIubGluZXMubGVuZ3RoKSB7XG4gICAgbGV0IG1pbmVDdXJyZW50ID0gbWluZS5saW5lc1ttaW5lLmluZGV4XSxcbiAgICAgICAgdGhlaXJDdXJyZW50ID0gdGhlaXIubGluZXNbdGhlaXIuaW5kZXhdO1xuXG4gICAgaWYgKChtaW5lQ3VycmVudFswXSA9PT0gJy0nIHx8IG1pbmVDdXJyZW50WzBdID09PSAnKycpXG4gICAgICAgICYmICh0aGVpckN1cnJlbnRbMF0gPT09ICctJyB8fCB0aGVpckN1cnJlbnRbMF0gPT09ICcrJykpIHtcbiAgICAgIC8vIEJvdGggbW9kaWZpZWQgLi4uXG4gICAgICBtdXR1YWxDaGFuZ2UoaHVuaywgbWluZSwgdGhlaXIpO1xuICAgIH0gZWxzZSBpZiAobWluZUN1cnJlbnRbMF0gPT09ICcrJyAmJiB0aGVpckN1cnJlbnRbMF0gPT09ICcgJykge1xuICAgICAgLy8gTWluZSBpbnNlcnRlZFxuICAgICAgaHVuay5saW5lcy5wdXNoKC4uLiBjb2xsZWN0Q2hhbmdlKG1pbmUpKTtcbiAgICB9IGVsc2UgaWYgKHRoZWlyQ3VycmVudFswXSA9PT0gJysnICYmIG1pbmVDdXJyZW50WzBdID09PSAnICcpIHtcbiAgICAgIC8vIFRoZWlycyBpbnNlcnRlZFxuICAgICAgaHVuay5saW5lcy5wdXNoKC4uLiBjb2xsZWN0Q2hhbmdlKHRoZWlyKSk7XG4gICAgfSBlbHNlIGlmIChtaW5lQ3VycmVudFswXSA9PT0gJy0nICYmIHRoZWlyQ3VycmVudFswXSA9PT0gJyAnKSB7XG4gICAgICAvLyBNaW5lIHJlbW92ZWQgb3IgZWRpdGVkXG4gICAgICByZW1vdmFsKGh1bmssIG1pbmUsIHRoZWlyKTtcbiAgICB9IGVsc2UgaWYgKHRoZWlyQ3VycmVudFswXSA9PT0gJy0nICYmIG1pbmVDdXJyZW50WzBdID09PSAnICcpIHtcbiAgICAgIC8vIFRoZWlyIHJlbW92ZWQgb3IgZWRpdGVkXG4gICAgICByZW1vdmFsKGh1bmssIHRoZWlyLCBtaW5lLCB0cnVlKTtcbiAgICB9IGVsc2UgaWYgKG1pbmVDdXJyZW50ID09PSB0aGVpckN1cnJlbnQpIHtcbiAgICAgIC8vIENvbnRleHQgaWRlbnRpdHlcbiAgICAgIGh1bmsubGluZXMucHVzaChtaW5lQ3VycmVudCk7XG4gICAgICBtaW5lLmluZGV4Kys7XG4gICAgICB0aGVpci5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBDb250ZXh0IG1pc21hdGNoXG4gICAgICBjb25mbGljdChodW5rLCBjb2xsZWN0Q2hhbmdlKG1pbmUpLCBjb2xsZWN0Q2hhbmdlKHRoZWlyKSk7XG4gICAgfVxuICB9XG5cbiAgLy8gTm93IHB1c2ggYW55dGhpbmcgdGhhdCBtYXkgYmUgcmVtYWluaW5nXG4gIGluc2VydFRyYWlsaW5nKGh1bmssIG1pbmUpO1xuICBpbnNlcnRUcmFpbGluZyhodW5rLCB0aGVpcik7XG5cbiAgY2FsY0xpbmVDb3VudChodW5rKTtcbn1cblxuZnVuY3Rpb24gbXV0dWFsQ2hhbmdlKGh1bmssIG1pbmUsIHRoZWlyKSB7XG4gIGxldCBteUNoYW5nZXMgPSBjb2xsZWN0Q2hhbmdlKG1pbmUpLFxuICAgICAgdGhlaXJDaGFuZ2VzID0gY29sbGVjdENoYW5nZSh0aGVpcik7XG5cbiAgaWYgKGFsbFJlbW92ZXMobXlDaGFuZ2VzKSAmJiBhbGxSZW1vdmVzKHRoZWlyQ2hhbmdlcykpIHtcbiAgICAvLyBTcGVjaWFsIGNhc2UgZm9yIHJlbW92ZSBjaGFuZ2VzIHRoYXQgYXJlIHN1cGVyc2V0cyBvZiBvbmUgYW5vdGhlclxuICAgIGlmIChhcnJheVN0YXJ0c1dpdGgobXlDaGFuZ2VzLCB0aGVpckNoYW5nZXMpXG4gICAgICAgICYmIHNraXBSZW1vdmVTdXBlcnNldCh0aGVpciwgbXlDaGFuZ2VzLCBteUNoYW5nZXMubGVuZ3RoIC0gdGhlaXJDaGFuZ2VzLmxlbmd0aCkpIHtcbiAgICAgIGh1bmsubGluZXMucHVzaCguLi4gbXlDaGFuZ2VzKTtcbiAgICAgIHJldHVybjtcbiAgICB9IGVsc2UgaWYgKGFycmF5U3RhcnRzV2l0aCh0aGVpckNoYW5nZXMsIG15Q2hhbmdlcylcbiAgICAgICAgJiYgc2tpcFJlbW92ZVN1cGVyc2V0KG1pbmUsIHRoZWlyQ2hhbmdlcywgdGhlaXJDaGFuZ2VzLmxlbmd0aCAtIG15Q2hhbmdlcy5sZW5ndGgpKSB7XG4gICAgICBodW5rLmxpbmVzLnB1c2goLi4uIHRoZWlyQ2hhbmdlcyk7XG4gICAgICByZXR1cm47XG4gICAgfVxuICB9IGVsc2UgaWYgKGFycmF5RXF1YWwobXlDaGFuZ2VzLCB0aGVpckNoYW5nZXMpKSB7XG4gICAgaHVuay5saW5lcy5wdXNoKC4uLiBteUNoYW5nZXMpO1xuICAgIHJldHVybjtcbiAgfVxuXG4gIGNvbmZsaWN0KGh1bmssIG15Q2hhbmdlcywgdGhlaXJDaGFuZ2VzKTtcbn1cblxuZnVuY3Rpb24gcmVtb3ZhbChodW5rLCBtaW5lLCB0aGVpciwgc3dhcCkge1xuICBsZXQgbXlDaGFuZ2VzID0gY29sbGVjdENoYW5nZShtaW5lKSxcbiAgICAgIHRoZWlyQ2hhbmdlcyA9IGNvbGxlY3RDb250ZXh0KHRoZWlyLCBteUNoYW5nZXMpO1xuICBpZiAodGhlaXJDaGFuZ2VzLm1lcmdlZCkge1xuICAgIGh1bmsubGluZXMucHVzaCguLi4gdGhlaXJDaGFuZ2VzLm1lcmdlZCk7XG4gIH0gZWxzZSB7XG4gICAgY29uZmxpY3QoaHVuaywgc3dhcCA/IHRoZWlyQ2hhbmdlcyA6IG15Q2hhbmdlcywgc3dhcCA/IG15Q2hhbmdlcyA6IHRoZWlyQ2hhbmdlcyk7XG4gIH1cbn1cblxuZnVuY3Rpb24gY29uZmxpY3QoaHVuaywgbWluZSwgdGhlaXIpIHtcbiAgaHVuay5jb25mbGljdCA9IHRydWU7XG4gIGh1bmsubGluZXMucHVzaCh7XG4gICAgY29uZmxpY3Q6IHRydWUsXG4gICAgbWluZTogbWluZSxcbiAgICB0aGVpcnM6IHRoZWlyXG4gIH0pO1xufVxuXG5mdW5jdGlvbiBpbnNlcnRMZWFkaW5nKGh1bmssIGluc2VydCwgdGhlaXIpIHtcbiAgd2hpbGUgKGluc2VydC5vZmZzZXQgPCB0aGVpci5vZmZzZXQgJiYgaW5zZXJ0LmluZGV4IDwgaW5zZXJ0LmxpbmVzLmxlbmd0aCkge1xuICAgIGxldCBsaW5lID0gaW5zZXJ0LmxpbmVzW2luc2VydC5pbmRleCsrXTtcbiAgICBodW5rLmxpbmVzLnB1c2gobGluZSk7XG4gICAgaW5zZXJ0Lm9mZnNldCsrO1xuICB9XG59XG5mdW5jdGlvbiBpbnNlcnRUcmFpbGluZyhodW5rLCBpbnNlcnQpIHtcbiAgd2hpbGUgKGluc2VydC5pbmRleCA8IGluc2VydC5saW5lcy5sZW5ndGgpIHtcbiAgICBsZXQgbGluZSA9IGluc2VydC5saW5lc1tpbnNlcnQuaW5kZXgrK107XG4gICAgaHVuay5saW5lcy5wdXNoKGxpbmUpO1xuICB9XG59XG5cbmZ1bmN0aW9uIGNvbGxlY3RDaGFuZ2Uoc3RhdGUpIHtcbiAgbGV0IHJldCA9IFtdLFxuICAgICAgb3BlcmF0aW9uID0gc3RhdGUubGluZXNbc3RhdGUuaW5kZXhdWzBdO1xuICB3aGlsZSAoc3RhdGUuaW5kZXggPCBzdGF0ZS5saW5lcy5sZW5ndGgpIHtcbiAgICBsZXQgbGluZSA9IHN0YXRlLmxpbmVzW3N0YXRlLmluZGV4XTtcblxuICAgIC8vIEdyb3VwIGFkZGl0aW9ucyB0aGF0IGFyZSBpbW1lZGlhdGVseSBhZnRlciBzdWJ0cmFjdGlvbnMgYW5kIHRyZWF0IHRoZW0gYXMgb25lIFwiYXRvbWljXCIgbW9kaWZ5IGNoYW5nZS5cbiAgICBpZiAob3BlcmF0aW9uID09PSAnLScgJiYgbGluZVswXSA9PT0gJysnKSB7XG4gICAgICBvcGVyYXRpb24gPSAnKyc7XG4gICAgfVxuXG4gICAgaWYgKG9wZXJhdGlvbiA9PT0gbGluZVswXSkge1xuICAgICAgcmV0LnB1c2gobGluZSk7XG4gICAgICBzdGF0ZS5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICBicmVhaztcbiAgICB9XG4gIH1cblxuICByZXR1cm4gcmV0O1xufVxuZnVuY3Rpb24gY29sbGVjdENvbnRleHQoc3RhdGUsIG1hdGNoQ2hhbmdlcykge1xuICBsZXQgY2hhbmdlcyA9IFtdLFxuICAgICAgbWVyZ2VkID0gW10sXG4gICAgICBtYXRjaEluZGV4ID0gMCxcbiAgICAgIGNvbnRleHRDaGFuZ2VzID0gZmFsc2UsXG4gICAgICBjb25mbGljdGVkID0gZmFsc2U7XG4gIHdoaWxlIChtYXRjaEluZGV4IDwgbWF0Y2hDaGFuZ2VzLmxlbmd0aFxuICAgICAgICAmJiBzdGF0ZS5pbmRleCA8IHN0YXRlLmxpbmVzLmxlbmd0aCkge1xuICAgIGxldCBjaGFuZ2UgPSBzdGF0ZS5saW5lc1tzdGF0ZS5pbmRleF0sXG4gICAgICAgIG1hdGNoID0gbWF0Y2hDaGFuZ2VzW21hdGNoSW5kZXhdO1xuXG4gICAgLy8gT25jZSB3ZSd2ZSBoaXQgb3VyIGFkZCwgdGhlbiB3ZSBhcmUgZG9uZVxuICAgIGlmIChtYXRjaFswXSA9PT0gJysnKSB7XG4gICAgICBicmVhaztcbiAgICB9XG5cbiAgICBjb250ZXh0Q2hhbmdlcyA9IGNvbnRleHRDaGFuZ2VzIHx8IGNoYW5nZVswXSAhPT0gJyAnO1xuXG4gICAgbWVyZ2VkLnB1c2gobWF0Y2gpO1xuICAgIG1hdGNoSW5kZXgrKztcblxuICAgIC8vIENvbnN1bWUgYW55IGFkZGl0aW9ucyBpbiB0aGUgb3RoZXIgYmxvY2sgYXMgYSBjb25mbGljdCB0byBhdHRlbXB0XG4gICAgLy8gdG8gcHVsbCBpbiB0aGUgcmVtYWluaW5nIGNvbnRleHQgYWZ0ZXIgdGhpc1xuICAgIGlmIChjaGFuZ2VbMF0gPT09ICcrJykge1xuICAgICAgY29uZmxpY3RlZCA9IHRydWU7XG5cbiAgICAgIHdoaWxlIChjaGFuZ2VbMF0gPT09ICcrJykge1xuICAgICAgICBjaGFuZ2VzLnB1c2goY2hhbmdlKTtcbiAgICAgICAgY2hhbmdlID0gc3RhdGUubGluZXNbKytzdGF0ZS5pbmRleF07XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKG1hdGNoLnN1YnN0cigxKSA9PT0gY2hhbmdlLnN1YnN0cigxKSkge1xuICAgICAgY2hhbmdlcy5wdXNoKGNoYW5nZSk7XG4gICAgICBzdGF0ZS5pbmRleCsrO1xuICAgIH0gZWxzZSB7XG4gICAgICBjb25mbGljdGVkID0gdHJ1ZTtcbiAgICB9XG4gIH1cblxuICBpZiAoKG1hdGNoQ2hhbmdlc1ttYXRjaEluZGV4XSB8fCAnJylbMF0gPT09ICcrJ1xuICAgICAgJiYgY29udGV4dENoYW5nZXMpIHtcbiAgICBjb25mbGljdGVkID0gdHJ1ZTtcbiAgfVxuXG4gIGlmIChjb25mbGljdGVkKSB7XG4gICAgcmV0dXJuIGNoYW5nZXM7XG4gIH1cblxuICB3aGlsZSAobWF0Y2hJbmRleCA8IG1hdGNoQ2hhbmdlcy5sZW5ndGgpIHtcbiAgICBtZXJnZWQucHVzaChtYXRjaENoYW5nZXNbbWF0Y2hJbmRleCsrXSk7XG4gIH1cblxuICByZXR1cm4ge1xuICAgIG1lcmdlZCxcbiAgICBjaGFuZ2VzXG4gIH07XG59XG5cbmZ1bmN0aW9uIGFsbFJlbW92ZXMoY2hhbmdlcykge1xuICByZXR1cm4gY2hhbmdlcy5yZWR1Y2UoZnVuY3Rpb24ocHJldiwgY2hhbmdlKSB7XG4gICAgcmV0dXJuIHByZXYgJiYgY2hhbmdlWzBdID09PSAnLSc7XG4gIH0sIHRydWUpO1xufVxuZnVuY3Rpb24gc2tpcFJlbW92ZVN1cGVyc2V0KHN0YXRlLCByZW1vdmVDaGFuZ2VzLCBkZWx0YSkge1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGRlbHRhOyBpKyspIHtcbiAgICBsZXQgY2hhbmdlQ29udGVudCA9IHJlbW92ZUNoYW5nZXNbcmVtb3ZlQ2hhbmdlcy5sZW5ndGggLSBkZWx0YSArIGldLnN1YnN0cigxKTtcbiAgICBpZiAoc3RhdGUubGluZXNbc3RhdGUuaW5kZXggKyBpXSAhPT0gJyAnICsgY2hhbmdlQ29udGVudCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfVxuXG4gIHN0YXRlLmluZGV4ICs9IGRlbHRhO1xuICByZXR1cm4gdHJ1ZTtcbn1cblxuZnVuY3Rpb24gY2FsY09sZE5ld0xpbmVDb3VudChsaW5lcykge1xuICBsZXQgb2xkTGluZXMgPSAwO1xuICBsZXQgbmV3TGluZXMgPSAwO1xuXG4gIGxpbmVzLmZvckVhY2goZnVuY3Rpb24obGluZSkge1xuICAgIGlmICh0eXBlb2YgbGluZSAhPT0gJ3N0cmluZycpIHtcbiAgICAgIGxldCBteUNvdW50ID0gY2FsY09sZE5ld0xpbmVDb3VudChsaW5lLm1pbmUpO1xuICAgICAgbGV0IHRoZWlyQ291bnQgPSBjYWxjT2xkTmV3TGluZUNvdW50KGxpbmUudGhlaXJzKTtcblxuICAgICAgaWYgKG9sZExpbmVzICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgaWYgKG15Q291bnQub2xkTGluZXMgPT09IHRoZWlyQ291bnQub2xkTGluZXMpIHtcbiAgICAgICAgICBvbGRMaW5lcyArPSBteUNvdW50Lm9sZExpbmVzO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG9sZExpbmVzID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGlmIChteUNvdW50Lm5ld0xpbmVzID09PSB0aGVpckNvdW50Lm5ld0xpbmVzKSB7XG4gICAgICAgICAgbmV3TGluZXMgKz0gbXlDb3VudC5uZXdMaW5lcztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBuZXdMaW5lcyA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAobmV3TGluZXMgIT09IHVuZGVmaW5lZCAmJiAobGluZVswXSA9PT0gJysnIHx8IGxpbmVbMF0gPT09ICcgJykpIHtcbiAgICAgICAgbmV3TGluZXMrKztcbiAgICAgIH1cbiAgICAgIGlmIChvbGRMaW5lcyAhPT0gdW5kZWZpbmVkICYmIChsaW5lWzBdID09PSAnLScgfHwgbGluZVswXSA9PT0gJyAnKSkge1xuICAgICAgICBvbGRMaW5lcysrO1xuICAgICAgfVxuICAgIH1cbiAgfSk7XG5cbiAgcmV0dXJuIHtvbGRMaW5lcywgbmV3TGluZXN9O1xufVxuIl19 - - -/***/ }), -/* 14 */ -/***/ (function(module, exports, __webpack_require__) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/structuredPatch = structuredPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = createTwoFilesPatch; - /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = createPatch; - - var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/; - - /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - - /*istanbul ignore end*/function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) { - if (!options) { - options = {}; - } - if (typeof options.context === 'undefined') { - options.context = 4; - } - - var diff = /*istanbul ignore start*/(0, _line.diffLines) /*istanbul ignore end*/(oldStr, newStr, options); - diff.push({ value: '', lines: [] }); // Append an empty value to make cleanup easier - - function contextLines(lines) { - return lines.map(function (entry) { - return ' ' + entry; - }); - } - - var hunks = []; - var oldRangeStart = 0, - newRangeStart = 0, - curRange = [], - oldLine = 1, - newLine = 1; - - /*istanbul ignore start*/var _loop = function _loop( /*istanbul ignore end*/i) { - var current = diff[i], - lines = current.lines || current.value.replace(/\n$/, '').split('\n'); - current.lines = lines; - - if (current.added || current.removed) { - /*istanbul ignore start*/var _curRange; - - /*istanbul ignore end*/ // If we have previous context, start with that - if (!oldRangeStart) { - var prev = diff[i - 1]; - oldRangeStart = oldLine; - newRangeStart = newLine; - - if (prev) { - curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : []; - oldRangeStart -= curRange.length; - newRangeStart -= curRange.length; - } - } - - // Output our changes - /*istanbul ignore start*/(_curRange = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/lines.map(function (entry) { - return (current.added ? '+' : '-') + entry; - }))); - - // Track the updated file position - if (current.added) { - newLine += lines.length; - } else { - oldLine += lines.length; - } - } else { - // Identical context lines. Track line changes - if (oldRangeStart) { - // Close out any changes that have been output (or join overlapping) - if (lines.length <= options.context * 2 && i < diff.length - 2) { - /*istanbul ignore start*/var _curRange2; - - /*istanbul ignore end*/ // Overlapping - /*istanbul ignore start*/(_curRange2 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines))); - } else { - /*istanbul ignore start*/var _curRange3; - - /*istanbul ignore end*/ // end the range and output - var contextSize = Math.min(lines.length, options.context); - /*istanbul ignore start*/(_curRange3 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines.slice(0, contextSize)))); - - var hunk = { - oldStart: oldRangeStart, - oldLines: oldLine - oldRangeStart + contextSize, - newStart: newRangeStart, - newLines: newLine - newRangeStart + contextSize, - lines: curRange - }; - if (i >= diff.length - 2 && lines.length <= options.context) { - // EOF is inside this hunk - var oldEOFNewline = /\n$/.test(oldStr); - var newEOFNewline = /\n$/.test(newStr); - if (lines.length == 0 && !oldEOFNewline) { - // special case: old has no eol and no trailing context; no-nl can end up before adds - curRange.splice(hunk.oldLines, 0, '\\ No newline at end of file'); - } else if (!oldEOFNewline || !newEOFNewline) { - curRange.push('\\ No newline at end of file'); - } - } - hunks.push(hunk); - - oldRangeStart = 0; - newRangeStart = 0; - curRange = []; - } - } - oldLine += lines.length; - newLine += lines.length; - } - }; - - for (var i = 0; i < diff.length; i++) { - /*istanbul ignore start*/_loop( /*istanbul ignore end*/i); - } - - return { - oldFileName: oldFileName, newFileName: newFileName, - oldHeader: oldHeader, newHeader: newHeader, - hunks: hunks - }; - } - - function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) { - var diff = structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options); - - var ret = []; - if (oldFileName == newFileName) { - ret.push('Index: ' + oldFileName); - } - ret.push('==================================================================='); - ret.push('--- ' + diff.oldFileName + (typeof diff.oldHeader === 'undefined' ? '' : '\t' + diff.oldHeader)); - ret.push('+++ ' + diff.newFileName + (typeof diff.newHeader === 'undefined' ? '' : '\t' + diff.newHeader)); - - for (var i = 0; i < diff.hunks.length; i++) { - var hunk = diff.hunks[i]; - ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines + ' +' + hunk.newStart + ',' + hunk.newLines + ' @@'); - ret.push.apply(ret, hunk.lines); - } - - return ret.join('\n') + '\n'; - } - - function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) { - return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options); - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9jcmVhdGUuanMiXSwibmFtZXMiOlsic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwib2xkRmlsZU5hbWUiLCJuZXdGaWxlTmFtZSIsIm9sZFN0ciIsIm5ld1N0ciIsIm9sZEhlYWRlciIsIm5ld0hlYWRlciIsIm9wdGlvbnMiLCJjb250ZXh0IiwiZGlmZiIsInB1c2giLCJ2YWx1ZSIsImxpbmVzIiwiY29udGV4dExpbmVzIiwibWFwIiwiZW50cnkiLCJodW5rcyIsIm9sZFJhbmdlU3RhcnQiLCJuZXdSYW5nZVN0YXJ0IiwiY3VyUmFuZ2UiLCJvbGRMaW5lIiwibmV3TGluZSIsImkiLCJjdXJyZW50IiwicmVwbGFjZSIsInNwbGl0IiwiYWRkZWQiLCJyZW1vdmVkIiwicHJldiIsInNsaWNlIiwibGVuZ3RoIiwiY29udGV4dFNpemUiLCJNYXRoIiwibWluIiwiaHVuayIsIm9sZFN0YXJ0Iiwib2xkTGluZXMiLCJuZXdTdGFydCIsIm5ld0xpbmVzIiwib2xkRU9GTmV3bGluZSIsInRlc3QiLCJuZXdFT0ZOZXdsaW5lIiwic3BsaWNlIiwicmV0IiwiYXBwbHkiLCJqb2luIiwiZmlsZU5hbWUiXSwibWFwcGluZ3MiOiI7OztnQ0FFZ0JBLGUsR0FBQUEsZTt5REFpR0FDLG1CLEdBQUFBLG1CO3lEQXdCQUMsVyxHQUFBQSxXOztBQTNIaEI7Ozs7dUJBRU8sU0FBU0YsZUFBVCxDQUF5QkcsV0FBekIsRUFBc0NDLFdBQXRDLEVBQW1EQyxNQUFuRCxFQUEyREMsTUFBM0QsRUFBbUVDLFNBQW5FLEVBQThFQyxTQUE5RSxFQUF5RkMsT0FBekYsRUFBa0c7QUFDdkcsTUFBSSxDQUFDQSxPQUFMLEVBQWM7QUFDWkEsY0FBVSxFQUFWO0FBQ0Q7QUFDRCxNQUFJLE9BQU9BLFFBQVFDLE9BQWYsS0FBMkIsV0FBL0IsRUFBNEM7QUFDMUNELFlBQVFDLE9BQVIsR0FBa0IsQ0FBbEI7QUFDRDs7QUFFRCxNQUFNQyxPQUFPLHNFQUFVTixNQUFWLEVBQWtCQyxNQUFsQixFQUEwQkcsT0FBMUIsQ0FBYjtBQUNBRSxPQUFLQyxJQUFMLENBQVUsRUFBQ0MsT0FBTyxFQUFSLEVBQVlDLE9BQU8sRUFBbkIsRUFBVixFQVR1RyxDQVNsRTs7QUFFckMsV0FBU0MsWUFBVCxDQUFzQkQsS0FBdEIsRUFBNkI7QUFDM0IsV0FBT0EsTUFBTUUsR0FBTixDQUFVLFVBQVNDLEtBQVQsRUFBZ0I7QUFBRSxhQUFPLE1BQU1BLEtBQWI7QUFBcUIsS0FBakQsQ0FBUDtBQUNEOztBQUVELE1BQUlDLFFBQVEsRUFBWjtBQUNBLE1BQUlDLGdCQUFnQixDQUFwQjtBQUFBLE1BQXVCQyxnQkFBZ0IsQ0FBdkM7QUFBQSxNQUEwQ0MsV0FBVyxFQUFyRDtBQUFBLE1BQ0lDLFVBQVUsQ0FEZDtBQUFBLE1BQ2lCQyxVQUFVLENBRDNCOztBQWhCdUcsOEVBa0I5RkMsQ0FsQjhGO0FBbUJyRyxRQUFNQyxVQUFVZCxLQUFLYSxDQUFMLENBQWhCO0FBQUEsUUFDTVYsUUFBUVcsUUFBUVgsS0FBUixJQUFpQlcsUUFBUVosS0FBUixDQUFjYSxPQUFkLENBQXNCLEtBQXRCLEVBQTZCLEVBQTdCLEVBQWlDQyxLQUFqQyxDQUF1QyxJQUF2QyxDQUQvQjtBQUVBRixZQUFRWCxLQUFSLEdBQWdCQSxLQUFoQjs7QUFFQSxRQUFJVyxRQUFRRyxLQUFSLElBQWlCSCxRQUFRSSxPQUE3QixFQUFzQztBQUFBOztBQUFBLDhCQUNwQztBQUNBLFVBQUksQ0FBQ1YsYUFBTCxFQUFvQjtBQUNsQixZQUFNVyxPQUFPbkIsS0FBS2EsSUFBSSxDQUFULENBQWI7QUFDQUwsd0JBQWdCRyxPQUFoQjtBQUNBRix3QkFBZ0JHLE9BQWhCOztBQUVBLFlBQUlPLElBQUosRUFBVTtBQUNSVCxxQkFBV1osUUFBUUMsT0FBUixHQUFrQixDQUFsQixHQUFzQkssYUFBYWUsS0FBS2hCLEtBQUwsQ0FBV2lCLEtBQVgsQ0FBaUIsQ0FBQ3RCLFFBQVFDLE9BQTFCLENBQWIsQ0FBdEIsR0FBeUUsRUFBcEY7QUFDQVMsMkJBQWlCRSxTQUFTVyxNQUExQjtBQUNBWiwyQkFBaUJDLFNBQVNXLE1BQTFCO0FBQ0Q7QUFDRjs7QUFFRDtBQUNBLDZFQUFTcEIsSUFBVCwwTEFBa0JFLE1BQU1FLEdBQU4sQ0FBVSxVQUFTQyxLQUFULEVBQWdCO0FBQzFDLGVBQU8sQ0FBQ1EsUUFBUUcsS0FBUixHQUFnQixHQUFoQixHQUFzQixHQUF2QixJQUE4QlgsS0FBckM7QUFDRCxPQUZpQixDQUFsQjs7QUFJQTtBQUNBLFVBQUlRLFFBQVFHLEtBQVosRUFBbUI7QUFDakJMLG1CQUFXVCxNQUFNa0IsTUFBakI7QUFDRCxPQUZELE1BRU87QUFDTFYsbUJBQVdSLE1BQU1rQixNQUFqQjtBQUNEO0FBQ0YsS0F6QkQsTUF5Qk87QUFDTDtBQUNBLFVBQUliLGFBQUosRUFBbUI7QUFDakI7QUFDQSxZQUFJTCxNQUFNa0IsTUFBTixJQUFnQnZCLFFBQVFDLE9BQVIsR0FBa0IsQ0FBbEMsSUFBdUNjLElBQUliLEtBQUtxQixNQUFMLEdBQWMsQ0FBN0QsRUFBZ0U7QUFBQTs7QUFBQSxrQ0FDOUQ7QUFDQSxrRkFBU3BCLElBQVQsMkxBQWtCRyxhQUFhRCxLQUFiLENBQWxCO0FBQ0QsU0FIRCxNQUdPO0FBQUE7O0FBQUEsa0NBQ0w7QUFDQSxjQUFJbUIsY0FBY0MsS0FBS0MsR0FBTCxDQUFTckIsTUFBTWtCLE1BQWYsRUFBdUJ2QixRQUFRQyxPQUEvQixDQUFsQjtBQUNBLGtGQUFTRSxJQUFULDJMQUFrQkcsYUFBYUQsTUFBTWlCLEtBQU4sQ0FBWSxDQUFaLEVBQWVFLFdBQWYsQ0FBYixDQUFsQjs7QUFFQSxjQUFJRyxPQUFPO0FBQ1RDLHNCQUFVbEIsYUFERDtBQUVUbUIsc0JBQVdoQixVQUFVSCxhQUFWLEdBQTBCYyxXQUY1QjtBQUdUTSxzQkFBVW5CLGFBSEQ7QUFJVG9CLHNCQUFXakIsVUFBVUgsYUFBVixHQUEwQmEsV0FKNUI7QUFLVG5CLG1CQUFPTztBQUxFLFdBQVg7QUFPQSxjQUFJRyxLQUFLYixLQUFLcUIsTUFBTCxHQUFjLENBQW5CLElBQXdCbEIsTUFBTWtCLE1BQU4sSUFBZ0J2QixRQUFRQyxPQUFwRCxFQUE2RDtBQUMzRDtBQUNBLGdCQUFJK0IsZ0JBQWlCLE1BQU1DLElBQU4sQ0FBV3JDLE1BQVgsQ0FBckI7QUFDQSxnQkFBSXNDLGdCQUFpQixNQUFNRCxJQUFOLENBQVdwQyxNQUFYLENBQXJCO0FBQ0EsZ0JBQUlRLE1BQU1rQixNQUFOLElBQWdCLENBQWhCLElBQXFCLENBQUNTLGFBQTFCLEVBQXlDO0FBQ3ZDO0FBQ0FwQix1QkFBU3VCLE1BQVQsQ0FBZ0JSLEtBQUtFLFFBQXJCLEVBQStCLENBQS9CLEVBQWtDLDhCQUFsQztBQUNELGFBSEQsTUFHTyxJQUFJLENBQUNHLGFBQUQsSUFBa0IsQ0FBQ0UsYUFBdkIsRUFBc0M7QUFDM0N0Qix1QkFBU1QsSUFBVCxDQUFjLDhCQUFkO0FBQ0Q7QUFDRjtBQUNETSxnQkFBTU4sSUFBTixDQUFXd0IsSUFBWDs7QUFFQWpCLDBCQUFnQixDQUFoQjtBQUNBQywwQkFBZ0IsQ0FBaEI7QUFDQUMscUJBQVcsRUFBWDtBQUNEO0FBQ0Y7QUFDREMsaUJBQVdSLE1BQU1rQixNQUFqQjtBQUNBVCxpQkFBV1QsTUFBTWtCLE1BQWpCO0FBQ0Q7QUF2Rm9HOztBQWtCdkcsT0FBSyxJQUFJUixJQUFJLENBQWIsRUFBZ0JBLElBQUliLEtBQUtxQixNQUF6QixFQUFpQ1IsR0FBakMsRUFBc0M7QUFBQSwyREFBN0JBLENBQTZCO0FBc0VyQzs7QUFFRCxTQUFPO0FBQ0xyQixpQkFBYUEsV0FEUixFQUNxQkMsYUFBYUEsV0FEbEM7QUFFTEcsZUFBV0EsU0FGTixFQUVpQkMsV0FBV0EsU0FGNUI7QUFHTFUsV0FBT0E7QUFIRixHQUFQO0FBS0Q7O0FBRU0sU0FBU2pCLG1CQUFULENBQTZCRSxXQUE3QixFQUEwQ0MsV0FBMUMsRUFBdURDLE1BQXZELEVBQStEQyxNQUEvRCxFQUF1RUMsU0FBdkUsRUFBa0ZDLFNBQWxGLEVBQTZGQyxPQUE3RixFQUFzRztBQUMzRyxNQUFNRSxPQUFPWCxnQkFBZ0JHLFdBQWhCLEVBQTZCQyxXQUE3QixFQUEwQ0MsTUFBMUMsRUFBa0RDLE1BQWxELEVBQTBEQyxTQUExRCxFQUFxRUMsU0FBckUsRUFBZ0ZDLE9BQWhGLENBQWI7O0FBRUEsTUFBTW9DLE1BQU0sRUFBWjtBQUNBLE1BQUkxQyxlQUFlQyxXQUFuQixFQUFnQztBQUM5QnlDLFFBQUlqQyxJQUFKLENBQVMsWUFBWVQsV0FBckI7QUFDRDtBQUNEMEMsTUFBSWpDLElBQUosQ0FBUyxxRUFBVDtBQUNBaUMsTUFBSWpDLElBQUosQ0FBUyxTQUFTRCxLQUFLUixXQUFkLElBQTZCLE9BQU9RLEtBQUtKLFNBQVosS0FBMEIsV0FBMUIsR0FBd0MsRUFBeEMsR0FBNkMsT0FBT0ksS0FBS0osU0FBdEYsQ0FBVDtBQUNBc0MsTUFBSWpDLElBQUosQ0FBUyxTQUFTRCxLQUFLUCxXQUFkLElBQTZCLE9BQU9PLEtBQUtILFNBQVosS0FBMEIsV0FBMUIsR0FBd0MsRUFBeEMsR0FBNkMsT0FBT0csS0FBS0gsU0FBdEYsQ0FBVDs7QUFFQSxPQUFLLElBQUlnQixJQUFJLENBQWIsRUFBZ0JBLElBQUliLEtBQUtPLEtBQUwsQ0FBV2MsTUFBL0IsRUFBdUNSLEdBQXZDLEVBQTRDO0FBQzFDLFFBQU1ZLE9BQU96QixLQUFLTyxLQUFMLENBQVdNLENBQVgsQ0FBYjtBQUNBcUIsUUFBSWpDLElBQUosQ0FDRSxTQUFTd0IsS0FBS0MsUUFBZCxHQUF5QixHQUF6QixHQUErQkQsS0FBS0UsUUFBcEMsR0FDRSxJQURGLEdBQ1NGLEtBQUtHLFFBRGQsR0FDeUIsR0FEekIsR0FDK0JILEtBQUtJLFFBRHBDLEdBRUUsS0FISjtBQUtBSyxRQUFJakMsSUFBSixDQUFTa0MsS0FBVCxDQUFlRCxHQUFmLEVBQW9CVCxLQUFLdEIsS0FBekI7QUFDRDs7QUFFRCxTQUFPK0IsSUFBSUUsSUFBSixDQUFTLElBQVQsSUFBaUIsSUFBeEI7QUFDRDs7QUFFTSxTQUFTN0MsV0FBVCxDQUFxQjhDLFFBQXJCLEVBQStCM0MsTUFBL0IsRUFBdUNDLE1BQXZDLEVBQStDQyxTQUEvQyxFQUEwREMsU0FBMUQsRUFBcUVDLE9BQXJFLEVBQThFO0FBQ25GLFNBQU9SLG9CQUFvQitDLFFBQXBCLEVBQThCQSxRQUE5QixFQUF3QzNDLE1BQXhDLEVBQWdEQyxNQUFoRCxFQUF3REMsU0FBeEQsRUFBbUVDLFNBQW5FLEVBQThFQyxPQUE5RSxDQUFQO0FBQ0QiLCJmaWxlIjoiY3JlYXRlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtkaWZmTGluZXN9IGZyb20gJy4uL2RpZmYvbGluZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiBzdHJ1Y3R1cmVkUGF0Y2gob2xkRmlsZU5hbWUsIG5ld0ZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgaWYgKCFvcHRpb25zKSB7XG4gICAgb3B0aW9ucyA9IHt9O1xuICB9XG4gIGlmICh0eXBlb2Ygb3B0aW9ucy5jb250ZXh0ID09PSAndW5kZWZpbmVkJykge1xuICAgIG9wdGlvbnMuY29udGV4dCA9IDQ7XG4gIH1cblxuICBjb25zdCBkaWZmID0gZGlmZkxpbmVzKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbiAgZGlmZi5wdXNoKHt2YWx1ZTogJycsIGxpbmVzOiBbXX0pOyAgIC8vIEFwcGVuZCBhbiBlbXB0eSB2YWx1ZSB0byBtYWtlIGNsZWFudXAgZWFzaWVyXG5cbiAgZnVuY3Rpb24gY29udGV4dExpbmVzKGxpbmVzKSB7XG4gICAgcmV0dXJuIGxpbmVzLm1hcChmdW5jdGlvbihlbnRyeSkgeyByZXR1cm4gJyAnICsgZW50cnk7IH0pO1xuICB9XG5cbiAgbGV0IGh1bmtzID0gW107XG4gIGxldCBvbGRSYW5nZVN0YXJ0ID0gMCwgbmV3UmFuZ2VTdGFydCA9IDAsIGN1clJhbmdlID0gW10sXG4gICAgICBvbGRMaW5lID0gMSwgbmV3TGluZSA9IDE7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgZGlmZi5sZW5ndGg7IGkrKykge1xuICAgIGNvbnN0IGN1cnJlbnQgPSBkaWZmW2ldLFxuICAgICAgICAgIGxpbmVzID0gY3VycmVudC5saW5lcyB8fCBjdXJyZW50LnZhbHVlLnJlcGxhY2UoL1xcbiQvLCAnJykuc3BsaXQoJ1xcbicpO1xuICAgIGN1cnJlbnQubGluZXMgPSBsaW5lcztcblxuICAgIGlmIChjdXJyZW50LmFkZGVkIHx8IGN1cnJlbnQucmVtb3ZlZCkge1xuICAgICAgLy8gSWYgd2UgaGF2ZSBwcmV2aW91cyBjb250ZXh0LCBzdGFydCB3aXRoIHRoYXRcbiAgICAgIGlmICghb2xkUmFuZ2VTdGFydCkge1xuICAgICAgICBjb25zdCBwcmV2ID0gZGlmZltpIC0gMV07XG4gICAgICAgIG9sZFJhbmdlU3RhcnQgPSBvbGRMaW5lO1xuICAgICAgICBuZXdSYW5nZVN0YXJ0ID0gbmV3TGluZTtcblxuICAgICAgICBpZiAocHJldikge1xuICAgICAgICAgIGN1clJhbmdlID0gb3B0aW9ucy5jb250ZXh0ID4gMCA/IGNvbnRleHRMaW5lcyhwcmV2LmxpbmVzLnNsaWNlKC1vcHRpb25zLmNvbnRleHQpKSA6IFtdO1xuICAgICAgICAgIG9sZFJhbmdlU3RhcnQgLT0gY3VyUmFuZ2UubGVuZ3RoO1xuICAgICAgICAgIG5ld1JhbmdlU3RhcnQgLT0gY3VyUmFuZ2UubGVuZ3RoO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC8vIE91dHB1dCBvdXIgY2hhbmdlc1xuICAgICAgY3VyUmFuZ2UucHVzaCguLi4gbGluZXMubWFwKGZ1bmN0aW9uKGVudHJ5KSB7XG4gICAgICAgIHJldHVybiAoY3VycmVudC5hZGRlZCA/ICcrJyA6ICctJykgKyBlbnRyeTtcbiAgICAgIH0pKTtcblxuICAgICAgLy8gVHJhY2sgdGhlIHVwZGF0ZWQgZmlsZSBwb3NpdGlvblxuICAgICAgaWYgKGN1cnJlbnQuYWRkZWQpIHtcbiAgICAgICAgbmV3TGluZSArPSBsaW5lcy5sZW5ndGg7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBvbGRMaW5lICs9IGxpbmVzLmxlbmd0aDtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgLy8gSWRlbnRpY2FsIGNvbnRleHQgbGluZXMuIFRyYWNrIGxpbmUgY2hhbmdlc1xuICAgICAgaWYgKG9sZFJhbmdlU3RhcnQpIHtcbiAgICAgICAgLy8gQ2xvc2Ugb3V0IGFueSBjaGFuZ2VzIHRoYXQgaGF2ZSBiZWVuIG91dHB1dCAob3Igam9pbiBvdmVybGFwcGluZylcbiAgICAgICAgaWYgKGxpbmVzLmxlbmd0aCA8PSBvcHRpb25zLmNvbnRleHQgKiAyICYmIGkgPCBkaWZmLmxlbmd0aCAtIDIpIHtcbiAgICAgICAgICAvLyBPdmVybGFwcGluZ1xuICAgICAgICAgIGN1clJhbmdlLnB1c2goLi4uIGNvbnRleHRMaW5lcyhsaW5lcykpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIGVuZCB0aGUgcmFuZ2UgYW5kIG91dHB1dFxuICAgICAgICAgIGxldCBjb250ZXh0U2l6ZSA9IE1hdGgubWluKGxpbmVzLmxlbmd0aCwgb3B0aW9ucy5jb250ZXh0KTtcbiAgICAgICAgICBjdXJSYW5nZS5wdXNoKC4uLiBjb250ZXh0TGluZXMobGluZXMuc2xpY2UoMCwgY29udGV4dFNpemUpKSk7XG5cbiAgICAgICAgICBsZXQgaHVuayA9IHtcbiAgICAgICAgICAgIG9sZFN0YXJ0OiBvbGRSYW5nZVN0YXJ0LFxuICAgICAgICAgICAgb2xkTGluZXM6IChvbGRMaW5lIC0gb2xkUmFuZ2VTdGFydCArIGNvbnRleHRTaXplKSxcbiAgICAgICAgICAgIG5ld1N0YXJ0OiBuZXdSYW5nZVN0YXJ0LFxuICAgICAgICAgICAgbmV3TGluZXM6IChuZXdMaW5lIC0gbmV3UmFuZ2VTdGFydCArIGNvbnRleHRTaXplKSxcbiAgICAgICAgICAgIGxpbmVzOiBjdXJSYW5nZVxuICAgICAgICAgIH07XG4gICAgICAgICAgaWYgKGkgPj0gZGlmZi5sZW5ndGggLSAyICYmIGxpbmVzLmxlbmd0aCA8PSBvcHRpb25zLmNvbnRleHQpIHtcbiAgICAgICAgICAgIC8vIEVPRiBpcyBpbnNpZGUgdGhpcyBodW5rXG4gICAgICAgICAgICBsZXQgb2xkRU9GTmV3bGluZSA9ICgvXFxuJC8udGVzdChvbGRTdHIpKTtcbiAgICAgICAgICAgIGxldCBuZXdFT0ZOZXdsaW5lID0gKC9cXG4kLy50ZXN0KG5ld1N0cikpO1xuICAgICAgICAgICAgaWYgKGxpbmVzLmxlbmd0aCA9PSAwICYmICFvbGRFT0ZOZXdsaW5lKSB7XG4gICAgICAgICAgICAgIC8vIHNwZWNpYWwgY2FzZTogb2xkIGhhcyBubyBlb2wgYW5kIG5vIHRyYWlsaW5nIGNvbnRleHQ7IG5vLW5sIGNhbiBlbmQgdXAgYmVmb3JlIGFkZHNcbiAgICAgICAgICAgICAgY3VyUmFuZ2Uuc3BsaWNlKGh1bmsub2xkTGluZXMsIDAsICdcXFxcIE5vIG5ld2xpbmUgYXQgZW5kIG9mIGZpbGUnKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIW9sZEVPRk5ld2xpbmUgfHwgIW5ld0VPRk5ld2xpbmUpIHtcbiAgICAgICAgICAgICAgY3VyUmFuZ2UucHVzaCgnXFxcXCBObyBuZXdsaW5lIGF0IGVuZCBvZiBmaWxlJyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICAgIGh1bmtzLnB1c2goaHVuayk7XG5cbiAgICAgICAgICBvbGRSYW5nZVN0YXJ0ID0gMDtcbiAgICAgICAgICBuZXdSYW5nZVN0YXJ0ID0gMDtcbiAgICAgICAgICBjdXJSYW5nZSA9IFtdO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICBvbGRMaW5lICs9IGxpbmVzLmxlbmd0aDtcbiAgICAgIG5ld0xpbmUgKz0gbGluZXMubGVuZ3RoO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiB7XG4gICAgb2xkRmlsZU5hbWU6IG9sZEZpbGVOYW1lLCBuZXdGaWxlTmFtZTogbmV3RmlsZU5hbWUsXG4gICAgb2xkSGVhZGVyOiBvbGRIZWFkZXIsIG5ld0hlYWRlcjogbmV3SGVhZGVyLFxuICAgIGh1bmtzOiBodW5rc1xuICB9O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlVHdvRmlsZXNQYXRjaChvbGRGaWxlTmFtZSwgbmV3RmlsZU5hbWUsIG9sZFN0ciwgbmV3U3RyLCBvbGRIZWFkZXIsIG5ld0hlYWRlciwgb3B0aW9ucykge1xuICBjb25zdCBkaWZmID0gc3RydWN0dXJlZFBhdGNoKG9sZEZpbGVOYW1lLCBuZXdGaWxlTmFtZSwgb2xkU3RyLCBuZXdTdHIsIG9sZEhlYWRlciwgbmV3SGVhZGVyLCBvcHRpb25zKTtcblxuICBjb25zdCByZXQgPSBbXTtcbiAgaWYgKG9sZEZpbGVOYW1lID09IG5ld0ZpbGVOYW1lKSB7XG4gICAgcmV0LnB1c2goJ0luZGV4OiAnICsgb2xkRmlsZU5hbWUpO1xuICB9XG4gIHJldC5wdXNoKCc9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Jyk7XG4gIHJldC5wdXNoKCctLS0gJyArIGRpZmYub2xkRmlsZU5hbWUgKyAodHlwZW9mIGRpZmYub2xkSGVhZGVyID09PSAndW5kZWZpbmVkJyA/ICcnIDogJ1xcdCcgKyBkaWZmLm9sZEhlYWRlcikpO1xuICByZXQucHVzaCgnKysrICcgKyBkaWZmLm5ld0ZpbGVOYW1lICsgKHR5cGVvZiBkaWZmLm5ld0hlYWRlciA9PT0gJ3VuZGVmaW5lZCcgPyAnJyA6ICdcXHQnICsgZGlmZi5uZXdIZWFkZXIpKTtcblxuICBmb3IgKGxldCBpID0gMDsgaSA8IGRpZmYuaHVua3MubGVuZ3RoOyBpKyspIHtcbiAgICBjb25zdCBodW5rID0gZGlmZi5odW5rc1tpXTtcbiAgICByZXQucHVzaChcbiAgICAgICdAQCAtJyArIGh1bmsub2xkU3RhcnQgKyAnLCcgKyBodW5rLm9sZExpbmVzXG4gICAgICArICcgKycgKyBodW5rLm5ld1N0YXJ0ICsgJywnICsgaHVuay5uZXdMaW5lc1xuICAgICAgKyAnIEBAJ1xuICAgICk7XG4gICAgcmV0LnB1c2guYXBwbHkocmV0LCBodW5rLmxpbmVzKTtcbiAgfVxuXG4gIHJldHVybiByZXQuam9pbignXFxuJykgKyAnXFxuJztcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVBhdGNoKGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgcmV0dXJuIGNyZWF0ZVR3b0ZpbGVzUGF0Y2goZmlsZU5hbWUsIGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpO1xufVxuIl19 - - -/***/ }), -/* 15 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/"use strict"; - - exports.__esModule = true; - exports. /*istanbul ignore end*/arrayEqual = arrayEqual; - /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayStartsWith = arrayStartsWith; - function arrayEqual(a, b) { - if (a.length !== b.length) { - return false; - } - - return arrayStartsWith(a, b); - } - - function arrayStartsWith(array, start) { - if (start.length > array.length) { - return false; - } - - for (var i = 0; i < start.length; i++) { - if (start[i] !== array[i]) { - return false; - } - } - - return true; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2FycmF5LmpzIl0sIm5hbWVzIjpbImFycmF5RXF1YWwiLCJhcnJheVN0YXJ0c1dpdGgiLCJhIiwiYiIsImxlbmd0aCIsImFycmF5Iiwic3RhcnQiLCJpIl0sIm1hcHBpbmdzIjoiOzs7Z0NBQWdCQSxVLEdBQUFBLFU7eURBUUFDLGUsR0FBQUEsZTtBQVJULFNBQVNELFVBQVQsQ0FBb0JFLENBQXBCLEVBQXVCQyxDQUF2QixFQUEwQjtBQUMvQixNQUFJRCxFQUFFRSxNQUFGLEtBQWFELEVBQUVDLE1BQW5CLEVBQTJCO0FBQ3pCLFdBQU8sS0FBUDtBQUNEOztBQUVELFNBQU9ILGdCQUFnQkMsQ0FBaEIsRUFBbUJDLENBQW5CLENBQVA7QUFDRDs7QUFFTSxTQUFTRixlQUFULENBQXlCSSxLQUF6QixFQUFnQ0MsS0FBaEMsRUFBdUM7QUFDNUMsTUFBSUEsTUFBTUYsTUFBTixHQUFlQyxNQUFNRCxNQUF6QixFQUFpQztBQUMvQixXQUFPLEtBQVA7QUFDRDs7QUFFRCxPQUFLLElBQUlHLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsTUFBTUYsTUFBMUIsRUFBa0NHLEdBQWxDLEVBQXVDO0FBQ3JDLFFBQUlELE1BQU1DLENBQU4sTUFBYUYsTUFBTUUsQ0FBTixDQUFqQixFQUEyQjtBQUN6QixhQUFPLEtBQVA7QUFDRDtBQUNGOztBQUVELFNBQU8sSUFBUDtBQUNEIiwiZmlsZSI6ImFycmF5LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGFycmF5RXF1YWwoYSwgYikge1xuICBpZiAoYS5sZW5ndGggIT09IGIubGVuZ3RoKSB7XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG5cbiAgcmV0dXJuIGFycmF5U3RhcnRzV2l0aChhLCBiKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGFycmF5U3RhcnRzV2l0aChhcnJheSwgc3RhcnQpIHtcbiAgaWYgKHN0YXJ0Lmxlbmd0aCA+IGFycmF5Lmxlbmd0aCkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgc3RhcnQubGVuZ3RoOyBpKyspIHtcbiAgICBpZiAoc3RhcnRbaV0gIT09IGFycmF5W2ldKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHRydWU7XG59XG4iXX0= - - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/"use strict"; - - exports.__esModule = true; - exports. /*istanbul ignore end*/convertChangesToDMP = convertChangesToDMP; - // See: http://code.google.com/p/google-diff-match-patch/wiki/API - function convertChangesToDMP(changes) { - var ret = [], - change = /*istanbul ignore start*/void 0 /*istanbul ignore end*/, - operation = /*istanbul ignore start*/void 0 /*istanbul ignore end*/; - for (var i = 0; i < changes.length; i++) { - change = changes[i]; - if (change.added) { - operation = 1; - } else if (change.removed) { - operation = -1; - } else { - operation = 0; - } - - ret.push([operation, change.value]); - } - return ret; - } - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0L2RtcC5qcyJdLCJuYW1lcyI6WyJjb252ZXJ0Q2hhbmdlc1RvRE1QIiwiY2hhbmdlcyIsInJldCIsImNoYW5nZSIsIm9wZXJhdGlvbiIsImkiLCJsZW5ndGgiLCJhZGRlZCIsInJlbW92ZWQiLCJwdXNoIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7OztnQ0FDZ0JBLG1CLEdBQUFBLG1CO0FBRGhCO0FBQ08sU0FBU0EsbUJBQVQsQ0FBNkJDLE9BQTdCLEVBQXNDO0FBQzNDLE1BQUlDLE1BQU0sRUFBVjtBQUFBLE1BQ0lDLHdDQURKO0FBQUEsTUFFSUMsMkNBRko7QUFHQSxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUosUUFBUUssTUFBNUIsRUFBb0NELEdBQXBDLEVBQXlDO0FBQ3ZDRixhQUFTRixRQUFRSSxDQUFSLENBQVQ7QUFDQSxRQUFJRixPQUFPSSxLQUFYLEVBQWtCO0FBQ2hCSCxrQkFBWSxDQUFaO0FBQ0QsS0FGRCxNQUVPLElBQUlELE9BQU9LLE9BQVgsRUFBb0I7QUFDekJKLGtCQUFZLENBQUMsQ0FBYjtBQUNELEtBRk0sTUFFQTtBQUNMQSxrQkFBWSxDQUFaO0FBQ0Q7O0FBRURGLFFBQUlPLElBQUosQ0FBUyxDQUFDTCxTQUFELEVBQVlELE9BQU9PLEtBQW5CLENBQVQ7QUFDRDtBQUNELFNBQU9SLEdBQVA7QUFDRCIsImZpbGUiOiJkbXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBTZWU6IGh0dHA6Ly9jb2RlLmdvb2dsZS5jb20vcC9nb29nbGUtZGlmZi1tYXRjaC1wYXRjaC93aWtpL0FQSVxuZXhwb3J0IGZ1bmN0aW9uIGNvbnZlcnRDaGFuZ2VzVG9ETVAoY2hhbmdlcykge1xuICBsZXQgcmV0ID0gW10sXG4gICAgICBjaGFuZ2UsXG4gICAgICBvcGVyYXRpb247XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgY2hhbmdlcy5sZW5ndGg7IGkrKykge1xuICAgIGNoYW5nZSA9IGNoYW5nZXNbaV07XG4gICAgaWYgKGNoYW5nZS5hZGRlZCkge1xuICAgICAgb3BlcmF0aW9uID0gMTtcbiAgICB9IGVsc2UgaWYgKGNoYW5nZS5yZW1vdmVkKSB7XG4gICAgICBvcGVyYXRpb24gPSAtMTtcbiAgICB9IGVsc2Uge1xuICAgICAgb3BlcmF0aW9uID0gMDtcbiAgICB9XG5cbiAgICByZXQucHVzaChbb3BlcmF0aW9uLCBjaGFuZ2UudmFsdWVdKTtcbiAgfVxuICByZXR1cm4gcmV0O1xufVxuIl19 - - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - - /*istanbul ignore start*/'use strict'; - - exports.__esModule = true; - exports. /*istanbul ignore end*/convertChangesToXML = convertChangesToXML; - function convertChangesToXML(changes) { - var ret = []; - for (var i = 0; i < changes.length; i++) { - var change = changes[i]; - if (change.added) { - ret.push(''); - } else if (change.removed) { - ret.push(''); - } - - ret.push(escapeHTML(change.value)); - - if (change.added) { - ret.push(''); - } else if (change.removed) { - ret.push(''); - } - } - return ret.join(''); - } - - function escapeHTML(s) { - var n = s; - n = n.replace(/&/g, '&'); - n = n.replace(//g, '>'); - n = n.replace(/"/g, '"'); - - return n; - } - - -/***/ }) -/******/ ]) -}); -; - -/***/ }), -/* 193 */ +/***/ 227: /***/ (function(module, exports) { var traverse = module.exports = function (obj) { @@ -6950,83 +2081,442 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { /***/ }), -/* 194 */, -/* 195 */, -/* 196 */, -/* 197 */, -/* 198 */, -/* 199 */, -/* 200 */, -/* 201 */, -/* 202 */, -/* 203 */, -/* 204 */, -/* 205 */, -/* 206 */, -/* 207 */, -/* 208 */, -/* 209 */, -/* 210 */, -/* 211 */, -/* 212 */, -/* 213 */, -/* 214 */, -/* 215 */, -/* 216 */, -/* 217 */, -/* 218 */, -/* 219 */, -/* 220 */, -/* 221 */, -/* 222 */, -/* 223 */, -/* 224 */, -/* 225 */, -/* 226 */, -/* 227 */, -/* 228 */, -/* 229 */, -/* 230 */, -/* 231 */, -/* 232 */, -/* 233 */, -/* 234 */, -/* 235 */, -/* 236 */, -/* 237 */, -/* 238 */, -/* 239 */, -/* 240 */, -/* 241 */, -/* 242 */, -/* 243 */, -/* 244 */, -/* 245 */, -/* 246 */, -/* 247 */, -/* 248 */, -/* 249 */, -/* 250 */, -/* 251 */, -/* 252 */, -/* 253 */, -/* 254 */, -/* 255 */, -/* 256 */, -/* 257 */, -/* 258 */, -/* 259 */, -/* 260 */, -/* 261 */, -/* 262 */, -/* 263 */, -/* 264 */, -/* 265 */, -/* 266 */, -/* 267 */, -/* 268 */, -/* 269 */, -/* 270 */ + +/***/ 23: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["url"]; }()); + +/***/ }), + +/***/ 24: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["hooks"]; }()); + +/***/ }), + +/***/ 26: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(54); + + +/***/ }), + +/***/ 27: +/***/ (function(module, exports) { + +(function() { module.exports = this["React"]; }()); + +/***/ }), + +/***/ 28: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +var arrayWithHoles = __webpack_require__(37); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +var nonIterableRest = __webpack_require__(38); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; }); + + + +function _slicedToArray(arr, i) { + return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])(); +} + +/***/ }), + +/***/ 3: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 30: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + + +var LEAF_KEY, hasWeakMap; + +/** + * Arbitrary value used as key for referencing cache object in WeakMap tree. + * + * @type {Object} + */ +LEAF_KEY = {}; + +/** + * Whether environment supports WeakMap. + * + * @type {boolean} + */ +hasWeakMap = typeof WeakMap !== 'undefined'; + +/** + * Returns the first argument as the sole entry in an array. + * + * @param {*} value Value to return. + * + * @return {Array} Value returned as entry in array. + */ +function arrayOf( value ) { + return [ value ]; +} + +/** + * Returns true if the value passed is object-like, or false otherwise. A value + * is object-like if it can support property assignment, e.g. object or array. + * + * @param {*} value Value to test. + * + * @return {boolean} Whether value is object-like. + */ +function isObjectLike( value ) { + return !! value && 'object' === typeof value; +} + +/** + * Creates and returns a new cache object. + * + * @return {Object} Cache object. + */ +function createCache() { + var cache = { + clear: function() { + cache.head = null; + }, + }; + + return cache; +} + +/** + * Returns true if entries within the two arrays are strictly equal by + * reference from a starting index. + * + * @param {Array} a First array. + * @param {Array} b Second array. + * @param {number} fromIndex Index from which to start comparison. + * + * @return {boolean} Whether arrays are shallowly equal. + */ +function isShallowEqual( a, b, fromIndex ) { + var i; + + if ( a.length !== b.length ) { + return false; + } + + for ( i = fromIndex; i < a.length; i++ ) { + if ( a[ i ] !== b[ i ] ) { + return false; + } + } + + return true; +} + +/** + * Returns a memoized selector function. The getDependants function argument is + * called before the memoized selector and is expected to return an immutable + * reference or array of references on which the selector depends for computing + * its own return value. The memoize cache is preserved only as long as those + * dependant references remain the same. If getDependants returns a different + * reference(s), the cache is cleared and the selector value regenerated. + * + * @param {Function} selector Selector function. + * @param {Function} getDependants Dependant getter returning an immutable + * reference or array of reference used in + * cache bust consideration. + * + * @return {Function} Memoized selector. + */ +/* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) { + var rootCache, getCache; + + // Use object source as dependant if getter not provided + if ( ! getDependants ) { + getDependants = arrayOf; + } + + /** + * Returns the root cache. If WeakMap is supported, this is assigned to the + * root WeakMap cache set, otherwise it is a shared instance of the default + * cache object. + * + * @return {(WeakMap|Object)} Root cache object. + */ + function getRootCache() { + return rootCache; + } + + /** + * Returns the cache for a given dependants array. When possible, a WeakMap + * will be used to create a unique cache for each set of dependants. This + * is feasible due to the nature of WeakMap in allowing garbage collection + * to occur on entries where the key object is no longer referenced. Since + * WeakMap requires the key to be an object, this is only possible when the + * dependant is object-like. The root cache is created as a hierarchy where + * each top-level key is the first entry in a dependants set, the value a + * WeakMap where each key is the next dependant, and so on. This continues + * so long as the dependants are object-like. If no dependants are object- + * like, then the cache is shared across all invocations. + * + * @see isObjectLike + * + * @param {Array} dependants Selector dependants. + * + * @return {Object} Cache object. + */ + function getWeakMapCache( dependants ) { + var caches = rootCache, + isUniqueByDependants = true, + i, dependant, map, cache; + + for ( i = 0; i < dependants.length; i++ ) { + dependant = dependants[ i ]; + + // Can only compose WeakMap from object-like key. + if ( ! isObjectLike( dependant ) ) { + isUniqueByDependants = false; + break; + } + + // Does current segment of cache already have a WeakMap? + if ( caches.has( dependant ) ) { + // Traverse into nested WeakMap. + caches = caches.get( dependant ); + } else { + // Create, set, and traverse into a new one. + map = new WeakMap(); + caches.set( dependant, map ); + caches = map; + } + } + + // We use an arbitrary (but consistent) object as key for the last item + // in the WeakMap to serve as our running cache. + if ( ! caches.has( LEAF_KEY ) ) { + cache = createCache(); + cache.isUniqueByDependants = isUniqueByDependants; + caches.set( LEAF_KEY, cache ); + } + + return caches.get( LEAF_KEY ); + } + + // Assign cache handler by availability of WeakMap + getCache = hasWeakMap ? getWeakMapCache : getRootCache; + + /** + * Resets root memoization cache. + */ + function clear() { + rootCache = hasWeakMap ? new WeakMap() : createCache(); + } + + // eslint-disable-next-line jsdoc/check-param-names + /** + * The augmented selector call, considering first whether dependants have + * changed before passing it to underlying memoize function. + * + * @param {Object} source Source object for derivation. + * @param {...*} extraArgs Additional arguments to pass to selector. + * + * @return {*} Selector result. + */ + function callSelector( /* source, ...extraArgs */ ) { + var len = arguments.length, + cache, node, i, args, dependants; + + // Create copy of arguments (avoid leaking deoptimization). + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + dependants = getDependants.apply( null, args ); + cache = getCache( dependants ); + + // If not guaranteed uniqueness by dependants (primitive type or lack + // of WeakMap support), shallow compare against last dependants and, if + // references have changed, destroy cache to recalculate result. + if ( ! cache.isUniqueByDependants ) { + if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) { + cache.clear(); + } + + cache.lastDependants = dependants; + } + + node = cache.head; + while ( node ) { + // Check whether node arguments match arguments + if ( ! isShallowEqual( node.args, args, 1 ) ) { + node = node.next; + continue; + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== cache.head ) { + // Adjust siblings to point to each other. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = cache.head; + node.prev = null; + cache.head.prev = node; + cache.head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + node = { + // Generate the result from original function + val: selector.apply( null, args ), + }; + + // Avoid including the source object in the cache. + args[ 0 ] = null; + node.args = args; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( cache.head ) { + cache.head.prev = node; + node.next = cache.head; + } + + cache.head = node; + + return node.val; + } + + callSelector.getDependants = getDependants; + callSelector.clear = clear; + clear(); + + return callSelector; +}); + + +/***/ }), + +/***/ 31: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(89)(); +} + + +/***/ }), + +/***/ 32: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); +function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); } + +function _typeof(obj) { + if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") { + _typeof = function _typeof(obj) { + return _typeof2(obj); + }; + } else { + _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj); + }; + } + + return _typeof(obj); +} + +/***/ }), + +/***/ 33: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 34: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +/***/ }), + +/***/ 341: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7191,588 +2681,15 @@ function separateState(state) { } /***/ }), -/* 271 */ -/***/ (function(module, exports, __webpack_require__) { -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) - t[p[i]] = s[p[i]]; - return t; -}; -exports.__esModule = true; -var React = __webpack_require__(26); -var PropTypes = __webpack_require__(30); -var autosize = __webpack_require__(272); -var _getLineHeight = __webpack_require__(273); -var getLineHeight = _getLineHeight; -var UPDATE = 'autosize:update'; -var DESTROY = 'autosize:destroy'; -var RESIZED = 'autosize:resized'; -/** - * A light replacement for built-in textarea component - * which automaticaly adjusts its height to match the content - */ -var TextareaAutosize = /** @class */ (function (_super) { - __extends(TextareaAutosize, _super); - function TextareaAutosize() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - lineHeight: null - }; - _this.dispatchEvent = function (EVENT_TYPE) { - var event = document.createEvent('Event'); - event.initEvent(EVENT_TYPE, true, false); - _this.textarea.dispatchEvent(event); - }; - _this.updateLineHeight = function () { - _this.setState({ - lineHeight: getLineHeight(_this.textarea) - }); - }; - _this.onChange = function (e) { - var onChange = _this.props.onChange; - _this.currentValue = e.currentTarget.value; - onChange && onChange(e); - }; - _this.saveDOMNodeRef = function (ref) { - var innerRef = _this.props.innerRef; - if (innerRef) { - innerRef(ref); - } - _this.textarea = ref; - }; - _this.getLocals = function () { - var _a = _this, _b = _a.props, onResize = _b.onResize, maxRows = _b.maxRows, onChange = _b.onChange, style = _b.style, innerRef = _b.innerRef, props = __rest(_b, ["onResize", "maxRows", "onChange", "style", "innerRef"]), lineHeight = _a.state.lineHeight, saveDOMNodeRef = _a.saveDOMNodeRef; - var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null; - return __assign({}, props, { saveDOMNodeRef: saveDOMNodeRef, style: maxHeight ? __assign({}, style, { maxHeight: maxHeight }) : style, onChange: _this.onChange }); - }; - return _this; - } - TextareaAutosize.prototype.componentDidMount = function () { - var _this = this; - var _a = this.props, onResize = _a.onResize, maxRows = _a.maxRows; - if (typeof maxRows === 'number') { - this.updateLineHeight(); - } - /* - the defer is needed to: - - force "autosize" to activate the scrollbar when this.props.maxRows is passed - - support StyledComponents (see #71) - */ - setTimeout(function () { return autosize(_this.textarea); }); - if (onResize) { - this.textarea.addEventListener(RESIZED, onResize); - } - }; - TextareaAutosize.prototype.componentWillUnmount = function () { - var onResize = this.props.onResize; - if (onResize) { - this.textarea.removeEventListener(RESIZED, onResize); - } - this.dispatchEvent(DESTROY); - }; - TextareaAutosize.prototype.render = function () { - var _a = this.getLocals(), children = _a.children, saveDOMNodeRef = _a.saveDOMNodeRef, locals = __rest(_a, ["children", "saveDOMNodeRef"]); - return (React.createElement("textarea", __assign({}, locals, { ref: saveDOMNodeRef }), children)); - }; - TextareaAutosize.prototype.componentDidUpdate = function (prevProps) { - if (this.props.value !== this.currentValue || this.props.rows !== prevProps.rows) { - this.dispatchEvent(UPDATE); - } - }; - TextareaAutosize.defaultProps = { - rows: 1 - }; - TextareaAutosize.propTypes = { - rows: PropTypes.number, - maxRows: PropTypes.number, - onResize: PropTypes.func, - innerRef: PropTypes.func - }; - return TextareaAutosize; -}(React.Component)); -exports["default"] = TextareaAutosize; - - -/***/ }), -/* 272 */ -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - autosize 4.0.2 - license: MIT - http://www.jacklmoore.com/autosize -*/ -(function (global, factory) { - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { var mod; } -})(this, function (module, exports) { - 'use strict'; - - var map = typeof Map === "function" ? new Map() : function () { - var keys = []; - var values = []; - - return { - has: function has(key) { - return keys.indexOf(key) > -1; - }, - get: function get(key) { - return values[keys.indexOf(key)]; - }, - set: function set(key, value) { - if (keys.indexOf(key) === -1) { - keys.push(key); - values.push(value); - } - }, - delete: function _delete(key) { - var index = keys.indexOf(key); - if (index > -1) { - keys.splice(index, 1); - values.splice(index, 1); - } - } - }; - }(); - - var createEvent = function createEvent(name) { - return new Event(name, { bubbles: true }); - }; - try { - new Event('test'); - } catch (e) { - // IE does not support `new Event()` - createEvent = function createEvent(name) { - var evt = document.createEvent('Event'); - evt.initEvent(name, true, false); - return evt; - }; - } - - function assign(ta) { - if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return; - - var heightOffset = null; - var clientWidth = null; - var cachedHeight = null; - - function init() { - var style = window.getComputedStyle(ta, null); - - if (style.resize === 'vertical') { - ta.style.resize = 'none'; - } else if (style.resize === 'both') { - ta.style.resize = 'horizontal'; - } - - if (style.boxSizing === 'content-box') { - heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom)); - } else { - heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); - } - // Fix when a textarea is not on document body and heightOffset is Not a Number - if (isNaN(heightOffset)) { - heightOffset = 0; - } - - update(); - } - - function changeOverflow(value) { - { - // Chrome/Safari-specific fix: - // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space - // made available by removing the scrollbar. The following forces the necessary text reflow. - var width = ta.style.width; - ta.style.width = '0px'; - // Force reflow: - /* jshint ignore:start */ - ta.offsetWidth; - /* jshint ignore:end */ - ta.style.width = width; - } - - ta.style.overflowY = value; - } - - function getParentOverflows(el) { - var arr = []; - - while (el && el.parentNode && el.parentNode instanceof Element) { - if (el.parentNode.scrollTop) { - arr.push({ - node: el.parentNode, - scrollTop: el.parentNode.scrollTop - }); - } - el = el.parentNode; - } - - return arr; - } - - function resize() { - if (ta.scrollHeight === 0) { - // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM. - return; - } - - var overflows = getParentOverflows(ta); - var docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240) - - ta.style.height = ''; - ta.style.height = ta.scrollHeight + heightOffset + 'px'; - - // used to check if an update is actually necessary on window.resize - clientWidth = ta.clientWidth; - - // prevents scroll-position jumping - overflows.forEach(function (el) { - el.node.scrollTop = el.scrollTop; - }); - - if (docTop) { - document.documentElement.scrollTop = docTop; - } - } - - function update() { - resize(); - - var styleHeight = Math.round(parseFloat(ta.style.height)); - var computed = window.getComputedStyle(ta, null); - - // Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box - var actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight; - - // The actual height not matching the style height (set via the resize method) indicates that - // the max-height has been exceeded, in which case the overflow should be allowed. - if (actualHeight < styleHeight) { - if (computed.overflowY === 'hidden') { - changeOverflow('scroll'); - resize(); - actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; - } - } else { - // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands. - if (computed.overflowY !== 'hidden') { - changeOverflow('hidden'); - resize(); - actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; - } - } - - if (cachedHeight !== actualHeight) { - cachedHeight = actualHeight; - var evt = createEvent('autosize:resized'); - try { - ta.dispatchEvent(evt); - } catch (err) { - // Firefox will throw an error on dispatchEvent for a detached element - // https://bugzilla.mozilla.org/show_bug.cgi?id=889376 - } - } - } - - var pageResize = function pageResize() { - if (ta.clientWidth !== clientWidth) { - update(); - } - }; - - var destroy = function (style) { - window.removeEventListener('resize', pageResize, false); - ta.removeEventListener('input', update, false); - ta.removeEventListener('keyup', update, false); - ta.removeEventListener('autosize:destroy', destroy, false); - ta.removeEventListener('autosize:update', update, false); - - Object.keys(style).forEach(function (key) { - ta.style[key] = style[key]; - }); - - map.delete(ta); - }.bind(ta, { - height: ta.style.height, - resize: ta.style.resize, - overflowY: ta.style.overflowY, - overflowX: ta.style.overflowX, - wordWrap: ta.style.wordWrap - }); - - ta.addEventListener('autosize:destroy', destroy, false); - - // IE9 does not fire onpropertychange or oninput for deletions, - // so binding to onkeyup to catch most of those events. - // There is no way that I know of to detect something like 'cut' in IE9. - if ('onpropertychange' in ta && 'oninput' in ta) { - ta.addEventListener('keyup', update, false); - } - - window.addEventListener('resize', pageResize, false); - ta.addEventListener('input', update, false); - ta.addEventListener('autosize:update', update, false); - ta.style.overflowX = 'hidden'; - ta.style.wordWrap = 'break-word'; - - map.set(ta, { - destroy: destroy, - update: update - }); - - init(); - } - - function destroy(ta) { - var methods = map.get(ta); - if (methods) { - methods.destroy(); - } - } - - function update(ta) { - var methods = map.get(ta); - if (methods) { - methods.update(); - } - } - - var autosize = null; - - // Do nothing in Node.js environment and IE8 (or lower) - if (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') { - autosize = function autosize(el) { - return el; - }; - autosize.destroy = function (el) { - return el; - }; - autosize.update = function (el) { - return el; - }; - } else { - autosize = function autosize(el, options) { - if (el) { - Array.prototype.forEach.call(el.length ? el : [el], function (x) { - return assign(x, options); - }); - } - return el; - }; - autosize.destroy = function (el) { - if (el) { - Array.prototype.forEach.call(el.length ? el : [el], destroy); - } - return el; - }; - autosize.update = function (el) { - if (el) { - Array.prototype.forEach.call(el.length ? el : [el], update); - } - return el; - }; - } - - exports.default = autosize; - module.exports = exports['default']; -}); - -/***/ }), -/* 273 */ -/***/ (function(module, exports, __webpack_require__) { - -// Load in dependencies -var computedStyle = __webpack_require__(274); - -/** - * Calculate the `line-height` of a given node - * @param {HTMLElement} node Element to calculate line height of. Must be in the DOM. - * @returns {Number} `line-height` of the element in pixels - */ -function lineHeight(node) { - // Grab the line-height via style - var lnHeightStr = computedStyle(node, 'line-height'); - var lnHeight = parseFloat(lnHeightStr, 10); - - // If the lineHeight did not contain a unit (i.e. it was numeric), convert it to ems (e.g. '2.3' === '2.3em') - if (lnHeightStr === lnHeight + '') { - // Save the old lineHeight style and update the em unit to the element - var _lnHeightStyle = node.style.lineHeight; - node.style.lineHeight = lnHeightStr + 'em'; - - // Calculate the em based height - lnHeightStr = computedStyle(node, 'line-height'); - lnHeight = parseFloat(lnHeightStr, 10); - - // Revert the lineHeight style - if (_lnHeightStyle) { - node.style.lineHeight = _lnHeightStyle; - } else { - delete node.style.lineHeight; - } - } - - // If the lineHeight is in `pt`, convert it to pixels (4px for 3pt) - // DEV: `em` units are converted to `pt` in IE6 - // Conversion ratio from https://developer.mozilla.org/en-US/docs/Web/CSS/length - if (lnHeightStr.indexOf('pt') !== -1) { - lnHeight *= 4; - lnHeight /= 3; - // Otherwise, if the lineHeight is in `mm`, convert it to pixels (96px for 25.4mm) - } else if (lnHeightStr.indexOf('mm') !== -1) { - lnHeight *= 96; - lnHeight /= 25.4; - // Otherwise, if the lineHeight is in `cm`, convert it to pixels (96px for 2.54cm) - } else if (lnHeightStr.indexOf('cm') !== -1) { - lnHeight *= 96; - lnHeight /= 2.54; - // Otherwise, if the lineHeight is in `in`, convert it to pixels (96px for 1in) - } else if (lnHeightStr.indexOf('in') !== -1) { - lnHeight *= 96; - // Otherwise, if the lineHeight is in `pc`, convert it to pixels (12pt for 1pc) - } else if (lnHeightStr.indexOf('pc') !== -1) { - lnHeight *= 16; - } - - // Continue our computation - lnHeight = Math.round(lnHeight); - - // If the line-height is "normal", calculate by font-size - if (lnHeightStr === 'normal') { - // Create a temporary node - var nodeName = node.nodeName; - var _node = document.createElement(nodeName); - _node.innerHTML = ' '; - - // If we have a text area, reset it to only 1 row - // https://github.com/twolfson/line-height/issues/4 - if (nodeName.toUpperCase() === 'TEXTAREA') { - _node.setAttribute('rows', '1'); - } - - // Set the font-size of the element - var fontSizeStr = computedStyle(node, 'font-size'); - _node.style.fontSize = fontSizeStr; - - // Remove default padding/border which can affect offset height - // https://github.com/twolfson/line-height/issues/4 - // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight - _node.style.padding = '0px'; - _node.style.border = '0px'; - - // Append it to the body - var body = document.body; - body.appendChild(_node); - - // Assume the line height of the element is the height - var height = _node.offsetHeight; - lnHeight = height; - - // Remove our child from the DOM - body.removeChild(_node); - } - - // Return the calculated height - return lnHeight; -} - -// Export lineHeight -module.exports = lineHeight; - - -/***/ }), -/* 274 */ +/***/ 35: /***/ (function(module, exports) { -// This code has been refactored for 140 bytes -// You can see the original here: https://github.com/twolfson/computedStyle/blob/04cd1da2e30fa45844f95f5cb1ac898e9b9ef050/lib/computedStyle.js -var computedStyle = function (el, prop, getComputedStyle) { - getComputedStyle = window.getComputedStyle; - - // In one fell swoop - return ( - // If we have getComputedStyle - getComputedStyle ? - // Query it - // TODO: From CSS-Query notes, we might need (node, null) for FF - getComputedStyle(el) : - - // Otherwise, we are in IE and use currentStyle - el.currentStyle - )[ - // Switch to camelCase for CSSOM - // DEV: Grabbed from jQuery - // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194 - // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597 - prop.replace(/-(\w)/gi, function (word, letter) { - return letter.toUpperCase(); - }) - ]; -}; - -module.exports = computedStyle; - +(function() { module.exports = this["wp"]["blob"]; }()); /***/ }), -/* 275 */, -/* 276 */, -/* 277 */, -/* 278 */, -/* 279 */, -/* 280 */, -/* 281 */, -/* 282 */, -/* 283 */, -/* 284 */, -/* 285 */, -/* 286 */, -/* 287 */, -/* 288 */, -/* 289 */, -/* 290 */, -/* 291 */, -/* 292 */, -/* 293 */, -/* 294 */, -/* 295 */, -/* 296 */, -/* 297 */, -/* 298 */, -/* 299 */, -/* 300 */, -/* 301 */, -/* 302 */, -/* 303 */, -/* 304 */ + +/***/ 358: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -7814,32 +2731,32 @@ __webpack_require__.d(actions_namespaceObject, "resetBlocks", function() { retur __webpack_require__.d(actions_namespaceObject, "receiveBlocks", function() { return receiveBlocks; }); __webpack_require__.d(actions_namespaceObject, "updateBlock", function() { return updateBlock; }); __webpack_require__.d(actions_namespaceObject, "updateBlockAttributes", function() { return updateBlockAttributes; }); -__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return actions_selectBlock; }); +__webpack_require__.d(actions_namespaceObject, "selectBlock", function() { return selectBlock; }); __webpack_require__.d(actions_namespaceObject, "startMultiSelect", function() { return startMultiSelect; }); __webpack_require__.d(actions_namespaceObject, "stopMultiSelect", function() { return stopMultiSelect; }); -__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return actions_multiSelect; }); +__webpack_require__.d(actions_namespaceObject, "multiSelect", function() { return multiSelect; }); __webpack_require__.d(actions_namespaceObject, "clearSelectedBlock", function() { return clearSelectedBlock; }); __webpack_require__.d(actions_namespaceObject, "toggleSelection", function() { return toggleSelection; }); -__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return actions_replaceBlocks; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return actions_moveBlocksDown; }); -__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return actions_moveBlocksUp; }); +__webpack_require__.d(actions_namespaceObject, "replaceBlocks", function() { return replaceBlocks; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksDown", function() { return moveBlocksDown; }); +__webpack_require__.d(actions_namespaceObject, "moveBlocksUp", function() { return moveBlocksUp; }); __webpack_require__.d(actions_namespaceObject, "moveBlockToPosition", function() { return moveBlockToPosition; }); -__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return actions_insertBlock; }); -__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return actions_insertBlocks; }); -__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return actions_showInsertionPoint; }); -__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return actions_hideInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "insertBlock", function() { return insertBlock; }); +__webpack_require__.d(actions_namespaceObject, "insertBlocks", function() { return insertBlocks; }); +__webpack_require__.d(actions_namespaceObject, "showInsertionPoint", function() { return showInsertionPoint; }); +__webpack_require__.d(actions_namespaceObject, "hideInsertionPoint", function() { return hideInsertionPoint; }); __webpack_require__.d(actions_namespaceObject, "setTemplateValidity", function() { return setTemplateValidity; }); __webpack_require__.d(actions_namespaceObject, "synchronizeTemplate", function() { return synchronizeTemplate; }); __webpack_require__.d(actions_namespaceObject, "mergeBlocks", function() { return mergeBlocks; }); -__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return actions_removeBlocks; }); +__webpack_require__.d(actions_namespaceObject, "removeBlocks", function() { return removeBlocks; }); __webpack_require__.d(actions_namespaceObject, "removeBlock", function() { return removeBlock; }); __webpack_require__.d(actions_namespaceObject, "toggleBlockMode", function() { return toggleBlockMode; }); __webpack_require__.d(actions_namespaceObject, "startTyping", function() { return startTyping; }); __webpack_require__.d(actions_namespaceObject, "stopTyping", function() { return stopTyping; }); __webpack_require__.d(actions_namespaceObject, "enterFormattedText", function() { return enterFormattedText; }); __webpack_require__.d(actions_namespaceObject, "exitFormattedText", function() { return exitFormattedText; }); -__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return actions_insertDefaultBlock; }); -__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return actions_updateBlockListSettings; }); +__webpack_require__.d(actions_namespaceObject, "insertDefaultBlock", function() { return insertDefaultBlock; }); +__webpack_require__.d(actions_namespaceObject, "updateBlockListSettings", function() { return updateBlockListSettings; }); var selectors_namespaceObject = {}; __webpack_require__.r(selectors_namespaceObject); __webpack_require__.d(selectors_namespaceObject, "hasEditorUndo", function() { return hasEditorUndo; }); @@ -7901,103 +2818,103 @@ __webpack_require__.d(selectors_namespaceObject, "__unstableIsEditorReady", func __webpack_require__.d(selectors_namespaceObject, "getEditorSettings", function() { return selectors_getEditorSettings; }); __webpack_require__.d(selectors_namespaceObject, "getBlockDependantsCacheBust", function() { return getBlockDependantsCacheBust; }); __webpack_require__.d(selectors_namespaceObject, "getBlockName", function() { return selectors_getBlockName; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockValid", function() { return selectors_isBlockValid; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockValid", function() { return isBlockValid; }); __webpack_require__.d(selectors_namespaceObject, "getBlockAttributes", function() { return getBlockAttributes; }); -__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return selectors_getBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getBlock", function() { return getBlock; }); __webpack_require__.d(selectors_namespaceObject, "getBlocks", function() { return selectors_getBlocks; }); -__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return selectors_unstableGetBlockWithoutInnerBlocks; }); +__webpack_require__.d(selectors_namespaceObject, "__unstableGetBlockWithoutInnerBlocks", function() { return __unstableGetBlockWithoutInnerBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsOfDescendants", function() { return getClientIdsOfDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getClientIdsWithDescendants", function() { return getClientIdsWithDescendants; }); __webpack_require__.d(selectors_namespaceObject, "getGlobalBlockCount", function() { return getGlobalBlockCount; }); -__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return selectors_getBlocksByClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockCount", function() { return selectors_getBlockCount; }); +__webpack_require__.d(selectors_namespaceObject, "getBlocksByClientId", function() { return getBlocksByClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockCount", function() { return getBlockCount; }); __webpack_require__.d(selectors_namespaceObject, "getBlockSelectionStart", function() { return getBlockSelectionStart; }); __webpack_require__.d(selectors_namespaceObject, "getBlockSelectionEnd", function() { return getBlockSelectionEnd; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockCount", function() { return selectors_getSelectedBlockCount; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlockCount", function() { return getSelectedBlockCount; }); __webpack_require__.d(selectors_namespaceObject, "hasSelectedBlock", function() { return hasSelectedBlock; }); __webpack_require__.d(selectors_namespaceObject, "getSelectedBlockClientId", function() { return selectors_getSelectedBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlock", function() { return selectors_getSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockRootClientId", function() { return selectors_getBlockRootClientId; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlock", function() { return getSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockRootClientId", function() { return getBlockRootClientId; }); __webpack_require__.d(selectors_namespaceObject, "getBlockHierarchyRootClientId", function() { return getBlockHierarchyRootClientId; }); __webpack_require__.d(selectors_namespaceObject, "getAdjacentBlockClientId", function() { return getAdjacentBlockClientId; }); __webpack_require__.d(selectors_namespaceObject, "getPreviousBlockClientId", function() { return getPreviousBlockClientId; }); __webpack_require__.d(selectors_namespaceObject, "getNextBlockClientId", function() { return getNextBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getSelectedBlocksInitialCaretPosition", function() { return selectors_getSelectedBlocksInitialCaretPosition; }); -__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlockClientIds", function() { return selectors_getMultiSelectedBlockClientIds; }); +__webpack_require__.d(selectors_namespaceObject, "getSelectedBlocksInitialCaretPosition", function() { return getSelectedBlocksInitialCaretPosition; }); +__webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlockClientIds", function() { return getMultiSelectedBlockClientIds; }); __webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocks", function() { return getMultiSelectedBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getFirstMultiSelectedBlockClientId", function() { return getFirstMultiSelectedBlockClientId; }); __webpack_require__.d(selectors_namespaceObject, "getLastMultiSelectedBlockClientId", function() { return getLastMultiSelectedBlockClientId; }); -__webpack_require__.d(selectors_namespaceObject, "isFirstMultiSelectedBlock", function() { return selectors_isFirstMultiSelectedBlock; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockMultiSelected", function() { return selectors_isBlockMultiSelected; }); -__webpack_require__.d(selectors_namespaceObject, "isAncestorMultiSelected", function() { return selectors_isAncestorMultiSelected; }); +__webpack_require__.d(selectors_namespaceObject, "isFirstMultiSelectedBlock", function() { return isFirstMultiSelectedBlock; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockMultiSelected", function() { return isBlockMultiSelected; }); +__webpack_require__.d(selectors_namespaceObject, "isAncestorMultiSelected", function() { return isAncestorMultiSelected; }); __webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksStartClientId", function() { return getMultiSelectedBlocksStartClientId; }); __webpack_require__.d(selectors_namespaceObject, "getMultiSelectedBlocksEndClientId", function() { return getMultiSelectedBlocksEndClientId; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockOrder", function() { return selectors_getBlockOrder; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockIndex", function() { return selectors_getBlockIndex; }); -__webpack_require__.d(selectors_namespaceObject, "isBlockSelected", function() { return selectors_isBlockSelected; }); -__webpack_require__.d(selectors_namespaceObject, "hasSelectedInnerBlock", function() { return selectors_hasSelectedInnerBlock; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockOrder", function() { return getBlockOrder; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockIndex", function() { return getBlockIndex; }); +__webpack_require__.d(selectors_namespaceObject, "isBlockSelected", function() { return isBlockSelected; }); +__webpack_require__.d(selectors_namespaceObject, "hasSelectedInnerBlock", function() { return hasSelectedInnerBlock; }); __webpack_require__.d(selectors_namespaceObject, "isBlockWithinSelection", function() { return isBlockWithinSelection; }); -__webpack_require__.d(selectors_namespaceObject, "hasMultiSelection", function() { return selectors_hasMultiSelection; }); -__webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function() { return selectors_isMultiSelecting; }); -__webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return selectors_isSelectionEnabled; }); -__webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; }); +__webpack_require__.d(selectors_namespaceObject, "hasMultiSelection", function() { return hasMultiSelection; }); +__webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function() { return isMultiSelecting; }); +__webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return isSelectionEnabled; }); +__webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return getBlockMode; }); __webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; }); __webpack_require__.d(selectors_namespaceObject, "isCaretWithinFormattedText", function() { return selectors_isCaretWithinFormattedText; }); __webpack_require__.d(selectors_namespaceObject, "getBlockInsertionPoint", function() { return getBlockInsertionPoint; }); __webpack_require__.d(selectors_namespaceObject, "isBlockInsertionPointVisible", function() { return isBlockInsertionPointVisible; }); __webpack_require__.d(selectors_namespaceObject, "isValidTemplate", function() { return isValidTemplate; }); __webpack_require__.d(selectors_namespaceObject, "getTemplate", function() { return getTemplate; }); -__webpack_require__.d(selectors_namespaceObject, "getTemplateLock", function() { return selectors_getTemplateLock; }); -__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return selectors_canInsertBlockType; }); +__webpack_require__.d(selectors_namespaceObject, "getTemplateLock", function() { return getTemplateLock; }); +__webpack_require__.d(selectors_namespaceObject, "canInsertBlockType", function() { return canInsertBlockType; }); __webpack_require__.d(selectors_namespaceObject, "getInserterItems", function() { return selectors_getInserterItems; }); __webpack_require__.d(selectors_namespaceObject, "hasInserterItems", function() { return hasInserterItems; }); __webpack_require__.d(selectors_namespaceObject, "getBlockListSettings", function() { return getBlockListSettings; }); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} -var external_this_wp_blockEditor_ = __webpack_require__(58); +var external_this_wp_blockEditor_ = __webpack_require__(8); // EXTERNAL MODULE: external {"this":["wp","blocks"]} var external_this_wp_blocks_ = __webpack_require__(14); // EXTERNAL MODULE: external {"this":["wp","coreData"]} -var external_this_wp_coreData_ = __webpack_require__(81); +var external_this_wp_coreData_ = __webpack_require__(72); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(122); +var external_this_wp_notices_ = __webpack_require__(133); // EXTERNAL MODULE: external {"this":["wp","nux"]} -var external_this_wp_nux_ = __webpack_require__(52); +var external_this_wp_nux_ = __webpack_require__(60); // EXTERNAL MODULE: external {"this":["wp","richText"]} var external_this_wp_richText_ = __webpack_require__(20); // EXTERNAL MODULE: external {"this":["wp","viewport"]} -var external_this_wp_viewport_ = __webpack_require__(37); +var external_this_wp_viewport_ = __webpack_require__(40); // EXTERNAL MODULE: external {"this":["wp","data"]} var external_this_wp_data_ = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(25); +var slicedToArray = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(15); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js -var esm_typeof = __webpack_require__(29); +var esm_typeof = __webpack_require__(32); // EXTERNAL MODULE: ./node_modules/redux-optimist/index.js -var redux_optimist = __webpack_require__(54); +var redux_optimist = __webpack_require__(62); var redux_optimist_default = /*#__PURE__*/__webpack_require__.n(redux_optimist); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(22); +var external_this_wp_url_ = __webpack_require__(23); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/defaults.js @@ -8019,13 +2936,14 @@ var INITIAL_EDITS_DEFAULTS = {}; /** * The default post editor settings * - * richEditingEnabled boolean Whether rich editing is enabled or not - * enableCustomFields boolean Whether the WordPress custom fields are enabled or not - * autosaveInterval number Autosave Interval - * availableTemplates array? The available post templates - * disablePostFormats boolean Whether or not the post formats are disabled - * allowedMimeTypes array? List of allowed mime types and file extensions - * maxUploadFileSize number Maximum upload file size + * allowedBlockTypes boolean|Array Allowed block types + * richEditingEnabled boolean Whether rich editing is enabled or not + * enableCustomFields boolean Whether the WordPress custom fields are enabled or not + * autosaveInterval number Autosave Interval + * availableTemplates array? The available post templates + * disablePostFormats boolean Whether or not the post formats are disabled + * allowedMimeTypes array? List of allowed mime types and file extensions + * maxUploadFileSize number Maximum upload file size */ var EDITOR_SETTINGS_DEFAULTS = Object(objectSpread["a" /* default */])({}, external_this_wp_blockEditor_["SETTINGS_DEFAULTS"], { @@ -8110,7 +3028,7 @@ var with_change_detection_withChangeDetection = function withChangeDetection() { /* harmony default export */ var with_change_detection = (with_change_detection_withChangeDetection); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); +var toConsumableArray = __webpack_require__(17); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/with-history/index.js @@ -8555,7 +3473,7 @@ function currentPost() { * @return {boolean} Updated state. */ -function reducer_isTyping() { +function isTyping() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var action = arguments.length > 1 ? arguments[1] : undefined; @@ -8578,7 +3496,7 @@ function reducer_isTyping() { * @return {boolean} Updated state. */ -function reducer_isCaretWithinFormattedText() { +function isCaretWithinFormattedText() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var action = arguments.length > 1 ? arguments[1] : undefined; @@ -9191,15 +4109,19 @@ function reducer_editorSettings() { }))); // EXTERNAL MODULE: ./node_modules/refx/refx.js -var refx = __webpack_require__(64); +var refx = __webpack_require__(70); var refx_default = /*#__PURE__*/__webpack_require__.n(refx); // EXTERNAL MODULE: ./node_modules/redux-multi/lib/index.js -var lib = __webpack_require__(87); +var lib = __webpack_require__(97); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js +var regenerator = __webpack_require__(26); +var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); + // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(31); +var external_this_wp_apiFetch_ = __webpack_require__(33); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/controls.js @@ -9291,7 +4213,7 @@ function controls_dispatch(storeKey, actionName) { args: args }; } -/* harmony default export */ var store_controls = ({ +/* harmony default export */ var controls = ({ API_FETCH: function API_FETCH(_ref) { var request = _ref.request; return external_this_wp_apiFetch_default()(request); @@ -9480,18 +4402,19 @@ function getNotificationArgumentsForTrashFail(data) { + var _marked = /*#__PURE__*/ -regeneratorRuntime.mark(savePost), +regenerator_default.a.mark(savePost), _marked2 = /*#__PURE__*/ -regeneratorRuntime.mark(refreshPost), +regenerator_default.a.mark(refreshPost), _marked3 = /*#__PURE__*/ -regeneratorRuntime.mark(trashPost), +regenerator_default.a.mark(trashPost), _marked4 = /*#__PURE__*/ -regeneratorRuntime.mark(actions_autosave); +regenerator_default.a.mark(actions_autosave); /** * External dependencies @@ -9726,7 +4649,7 @@ function savePost() { notifySuccessArgs, notifyFailArgs, _args = arguments; - return regeneratorRuntime.wrap(function savePost$(_context) { + return regenerator_default.a.wrap(function savePost$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -9927,7 +4850,7 @@ function savePost() { function refreshPost() { var post, postTypeSlug, postType, newPost; - return regeneratorRuntime.wrap(function refreshPost$(_context2) { + return regenerator_default.a.wrap(function refreshPost$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: @@ -9971,7 +4894,7 @@ function refreshPost() { function trashPost() { var postTypeSlug, postType, post; - return regeneratorRuntime.wrap(function trashPost$(_context3) { + return regenerator_default.a.wrap(function trashPost$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: @@ -10033,7 +4956,7 @@ function trashPost() { */ function actions_autosave(options) { - return regeneratorRuntime.wrap(function autosave$(_context4) { + return regenerator_default.a.wrap(function autosave$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: @@ -10297,13 +5220,13 @@ function updateEditorSettings(settings) { var actions_getBlockEditorAction = function getBlockEditorAction(name) { return ( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee() { + regenerator_default.a.mark(function _callee() { var _len, args, _key, _args5 = arguments; - return regeneratorRuntime.wrap(function _callee$(_context5) { + return regenerator_default.a.wrap(function _callee$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: @@ -10328,44 +5251,44 @@ var resetBlocks = actions_getBlockEditorAction('resetBlocks'); var receiveBlocks = actions_getBlockEditorAction('receiveBlocks'); var updateBlock = actions_getBlockEditorAction('updateBlock'); var updateBlockAttributes = actions_getBlockEditorAction('updateBlockAttributes'); -var actions_selectBlock = actions_getBlockEditorAction('selectBlock'); +var selectBlock = actions_getBlockEditorAction('selectBlock'); var startMultiSelect = actions_getBlockEditorAction('startMultiSelect'); var stopMultiSelect = actions_getBlockEditorAction('stopMultiSelect'); -var actions_multiSelect = actions_getBlockEditorAction('multiSelect'); +var multiSelect = actions_getBlockEditorAction('multiSelect'); var clearSelectedBlock = actions_getBlockEditorAction('clearSelectedBlock'); var toggleSelection = actions_getBlockEditorAction('toggleSelection'); -var actions_replaceBlocks = actions_getBlockEditorAction('replaceBlocks'); -var actions_moveBlocksDown = actions_getBlockEditorAction('moveBlocksDown'); -var actions_moveBlocksUp = actions_getBlockEditorAction('moveBlocksUp'); +var replaceBlocks = actions_getBlockEditorAction('replaceBlocks'); +var moveBlocksDown = actions_getBlockEditorAction('moveBlocksDown'); +var moveBlocksUp = actions_getBlockEditorAction('moveBlocksUp'); var moveBlockToPosition = actions_getBlockEditorAction('moveBlockToPosition'); -var actions_insertBlock = actions_getBlockEditorAction('insertBlock'); -var actions_insertBlocks = actions_getBlockEditorAction('insertBlocks'); -var actions_showInsertionPoint = actions_getBlockEditorAction('showInsertionPoint'); -var actions_hideInsertionPoint = actions_getBlockEditorAction('hideInsertionPoint'); +var insertBlock = actions_getBlockEditorAction('insertBlock'); +var insertBlocks = actions_getBlockEditorAction('insertBlocks'); +var showInsertionPoint = actions_getBlockEditorAction('showInsertionPoint'); +var hideInsertionPoint = actions_getBlockEditorAction('hideInsertionPoint'); var setTemplateValidity = actions_getBlockEditorAction('setTemplateValidity'); var synchronizeTemplate = actions_getBlockEditorAction('synchronizeTemplate'); var mergeBlocks = actions_getBlockEditorAction('mergeBlocks'); -var actions_removeBlocks = actions_getBlockEditorAction('removeBlocks'); +var removeBlocks = actions_getBlockEditorAction('removeBlocks'); var removeBlock = actions_getBlockEditorAction('removeBlock'); var toggleBlockMode = actions_getBlockEditorAction('toggleBlockMode'); var startTyping = actions_getBlockEditorAction('startTyping'); var stopTyping = actions_getBlockEditorAction('stopTyping'); var enterFormattedText = actions_getBlockEditorAction('enterFormattedText'); var exitFormattedText = actions_getBlockEditorAction('exitFormattedText'); -var actions_insertDefaultBlock = actions_getBlockEditorAction('insertDefaultBlock'); -var actions_updateBlockListSettings = actions_getBlockEditorAction('updateBlockListSettings'); +var insertDefaultBlock = actions_getBlockEditorAction('insertDefaultBlock'); +var updateBlockListSettings = actions_getBlockEditorAction('updateBlockListSettings'); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(41); +var asyncToGenerator = __webpack_require__(44); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(28); +var rememo = __webpack_require__(30); // EXTERNAL MODULE: external {"this":["wp","date"]} -var external_this_wp_date_ = __webpack_require__(46); +var external_this_wp_date_ = __webpack_require__(50); // EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(60); +var external_this_wp_autop_ = __webpack_require__(66); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/selectors.js @@ -11437,54 +6360,54 @@ function getBlockEditorSelector(name) { var getBlockDependantsCacheBust = getBlockEditorSelector('getBlockDependantsCacheBust'); var selectors_getBlockName = getBlockEditorSelector('getBlockName'); -var selectors_isBlockValid = getBlockEditorSelector('isBlockValid'); +var isBlockValid = getBlockEditorSelector('isBlockValid'); var getBlockAttributes = getBlockEditorSelector('getBlockAttributes'); -var selectors_getBlock = getBlockEditorSelector('getBlock'); +var getBlock = getBlockEditorSelector('getBlock'); var selectors_getBlocks = getBlockEditorSelector('getBlocks'); -var selectors_unstableGetBlockWithoutInnerBlocks = getBlockEditorSelector('__unstableGetBlockWithoutInnerBlocks'); +var __unstableGetBlockWithoutInnerBlocks = getBlockEditorSelector('__unstableGetBlockWithoutInnerBlocks'); var getClientIdsOfDescendants = getBlockEditorSelector('getClientIdsOfDescendants'); var getClientIdsWithDescendants = getBlockEditorSelector('getClientIdsWithDescendants'); var getGlobalBlockCount = getBlockEditorSelector('getGlobalBlockCount'); -var selectors_getBlocksByClientId = getBlockEditorSelector('getBlocksByClientId'); -var selectors_getBlockCount = getBlockEditorSelector('getBlockCount'); +var getBlocksByClientId = getBlockEditorSelector('getBlocksByClientId'); +var getBlockCount = getBlockEditorSelector('getBlockCount'); var getBlockSelectionStart = getBlockEditorSelector('getBlockSelectionStart'); var getBlockSelectionEnd = getBlockEditorSelector('getBlockSelectionEnd'); -var selectors_getSelectedBlockCount = getBlockEditorSelector('getSelectedBlockCount'); +var getSelectedBlockCount = getBlockEditorSelector('getSelectedBlockCount'); var hasSelectedBlock = getBlockEditorSelector('hasSelectedBlock'); var selectors_getSelectedBlockClientId = getBlockEditorSelector('getSelectedBlockClientId'); -var selectors_getSelectedBlock = getBlockEditorSelector('getSelectedBlock'); -var selectors_getBlockRootClientId = getBlockEditorSelector('getBlockRootClientId'); +var getSelectedBlock = getBlockEditorSelector('getSelectedBlock'); +var getBlockRootClientId = getBlockEditorSelector('getBlockRootClientId'); var getBlockHierarchyRootClientId = getBlockEditorSelector('getBlockHierarchyRootClientId'); var getAdjacentBlockClientId = getBlockEditorSelector('getAdjacentBlockClientId'); var getPreviousBlockClientId = getBlockEditorSelector('getPreviousBlockClientId'); var getNextBlockClientId = getBlockEditorSelector('getNextBlockClientId'); -var selectors_getSelectedBlocksInitialCaretPosition = getBlockEditorSelector('getSelectedBlocksInitialCaretPosition'); -var selectors_getMultiSelectedBlockClientIds = getBlockEditorSelector('getMultiSelectedBlockClientIds'); +var getSelectedBlocksInitialCaretPosition = getBlockEditorSelector('getSelectedBlocksInitialCaretPosition'); +var getMultiSelectedBlockClientIds = getBlockEditorSelector('getMultiSelectedBlockClientIds'); var getMultiSelectedBlocks = getBlockEditorSelector('getMultiSelectedBlocks'); var getFirstMultiSelectedBlockClientId = getBlockEditorSelector('getFirstMultiSelectedBlockClientId'); var getLastMultiSelectedBlockClientId = getBlockEditorSelector('getLastMultiSelectedBlockClientId'); -var selectors_isFirstMultiSelectedBlock = getBlockEditorSelector('isFirstMultiSelectedBlock'); -var selectors_isBlockMultiSelected = getBlockEditorSelector('isBlockMultiSelected'); -var selectors_isAncestorMultiSelected = getBlockEditorSelector('isAncestorMultiSelected'); +var isFirstMultiSelectedBlock = getBlockEditorSelector('isFirstMultiSelectedBlock'); +var isBlockMultiSelected = getBlockEditorSelector('isBlockMultiSelected'); +var isAncestorMultiSelected = getBlockEditorSelector('isAncestorMultiSelected'); var getMultiSelectedBlocksStartClientId = getBlockEditorSelector('getMultiSelectedBlocksStartClientId'); var getMultiSelectedBlocksEndClientId = getBlockEditorSelector('getMultiSelectedBlocksEndClientId'); -var selectors_getBlockOrder = getBlockEditorSelector('getBlockOrder'); -var selectors_getBlockIndex = getBlockEditorSelector('getBlockIndex'); -var selectors_isBlockSelected = getBlockEditorSelector('isBlockSelected'); -var selectors_hasSelectedInnerBlock = getBlockEditorSelector('hasSelectedInnerBlock'); +var getBlockOrder = getBlockEditorSelector('getBlockOrder'); +var getBlockIndex = getBlockEditorSelector('getBlockIndex'); +var isBlockSelected = getBlockEditorSelector('isBlockSelected'); +var hasSelectedInnerBlock = getBlockEditorSelector('hasSelectedInnerBlock'); var isBlockWithinSelection = getBlockEditorSelector('isBlockWithinSelection'); -var selectors_hasMultiSelection = getBlockEditorSelector('hasMultiSelection'); -var selectors_isMultiSelecting = getBlockEditorSelector('isMultiSelecting'); -var selectors_isSelectionEnabled = getBlockEditorSelector('isSelectionEnabled'); -var selectors_getBlockMode = getBlockEditorSelector('getBlockMode'); +var hasMultiSelection = getBlockEditorSelector('hasMultiSelection'); +var isMultiSelecting = getBlockEditorSelector('isMultiSelecting'); +var isSelectionEnabled = getBlockEditorSelector('isSelectionEnabled'); +var getBlockMode = getBlockEditorSelector('getBlockMode'); var selectors_isTyping = getBlockEditorSelector('isTyping'); var selectors_isCaretWithinFormattedText = getBlockEditorSelector('isCaretWithinFormattedText'); var getBlockInsertionPoint = getBlockEditorSelector('getBlockInsertionPoint'); var isBlockInsertionPointVisible = getBlockEditorSelector('isBlockInsertionPointVisible'); var isValidTemplate = getBlockEditorSelector('isValidTemplate'); var getTemplate = getBlockEditorSelector('getTemplate'); -var selectors_getTemplateLock = getBlockEditorSelector('getTemplateLock'); -var selectors_canInsertBlockType = getBlockEditorSelector('canInsertBlockType'); +var getTemplateLock = getBlockEditorSelector('getTemplateLock'); +var canInsertBlockType = getBlockEditorSelector('canInsertBlockType'); var selectors_getInserterItems = getBlockEditorSelector('getInserterItems'); var hasInserterItems = getBlockEditorSelector('hasInserterItems'); var getBlockListSettings = getBlockEditorSelector('getBlockListSettings'); @@ -11493,6 +6416,7 @@ var getBlockListSettings = getBlockEditorSelector('getBlockListSettings'); + /** * External dependencies */ @@ -11528,14 +6452,14 @@ var REUSABLE_BLOCK_NOTICE_ID = 'REUSABLE_BLOCK_NOTICE_ID'; * @param {Object} store Redux Store. */ -var reusable_blocks_fetchReusableBlocks = +var fetchReusableBlocks = /*#__PURE__*/ function () { var _ref = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee(action, store) { + regenerator_default.a.mark(function _callee(action, store) { var id, dispatch, postType, posts, results; - return regeneratorRuntime.wrap(function _callee$(_context) { + return regenerator_default.a.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -11646,10 +6570,10 @@ var saveReusableBlocks = function () { var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee2(action, store) { + regenerator_default.a.mark(function _callee2(action, store) { var postType, id, dispatch, state, _getReusableBlock, clientId, title, isTemporary, reusableBlock, content, data, path, method, updatedReusableBlock, message; - return regeneratorRuntime.wrap(function _callee2$(_context2) { + return regenerator_default.a.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: @@ -11747,9 +6671,9 @@ var deleteReusableBlocks = function () { var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee3(action, store) { + regenerator_default.a.mark(function _callee3(action, store) { var postType, id, getState, dispatch, reusableBlock, allBlocks, associatedBlocks, associatedBlockClientIds, transactionId, message; - return regeneratorRuntime.wrap(function _callee3$(_context3) { + return regenerator_default.a.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: @@ -11964,7 +6888,7 @@ var reusable_blocks_convertBlockToReusable = function convertBlockToReusable(act return [actions_resetEditorBlocks(blocks), setupEditorState(post)]; }, FETCH_REUSABLE_BLOCKS: function FETCH_REUSABLE_BLOCKS(action, store) { - reusable_blocks_fetchReusableBlocks(action, store); + fetchReusableBlocks(action, store); }, SAVE_REUSABLE_BLOCK: function SAVE_REUSABLE_BLOCK(action, store) { saveReusableBlocks(action, store); @@ -12042,307 +6966,18 @@ var store_store = Object(external_this_wp_data_["registerStore"])(STORE_KEY, { reducer: store_reducer, selectors: selectors_namespaceObject, actions: actions_namespaceObject, - controls: store_controls, + controls: controls, persist: ['preferences'] }); store_middlewares(store_store); /* harmony default export */ var build_module_store = (store_store); -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(19); +// EXTERNAL MODULE: external {"this":["wp","hooks"]} +var external_this_wp_hooks_ = __webpack_require__(24); // EXTERNAL MODULE: external {"this":["wp","element"]} var external_this_wp_element_ = __webpack_require__(0); -// EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(16); -var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); - -// EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); - -// EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(23); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js -var classCallCheck = __webpack_require__(10); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js -var createClass = __webpack_require__(9); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js -var possibleConstructorReturn = __webpack_require__(11); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -var getPrototypeOf = __webpack_require__(12); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules -var inherits = __webpack_require__(13); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -var assertThisInitialized = __webpack_require__(3); - -// EXTERNAL MODULE: external {"this":["wp","components"]} -var external_this_wp_components_ = __webpack_require__(4); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-edit/context.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -var _createContext = Object(external_this_wp_element_["createContext"])({ - name: '', - isSelected: false, - focusedElement: null, - setFocusedElement: external_lodash_["noop"], - clientId: null -}), - Consumer = _createContext.Consumer, - Provider = _createContext.Provider; - - -/** - * A Higher Order Component used to inject BlockEdit context to the - * wrapped component. - * - * @param {Function} mapContextToProps Function called on every context change, - * expected to return object of props to - * merge with the component's own props. - * - * @return {Component} Enhanced component with injected context as props. - */ - -var context_withBlockEditContext = function withBlockEditContext(mapContextToProps) { - return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(Consumer, null, function (context) { - return Object(external_this_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, props, mapContextToProps(context, props))); - }); - }; - }, 'withBlockEditContext'); -}; -/** - * A Higher Order Component used to render conditionally the wrapped - * component only when the BlockEdit has selected state set. - * - * @param {Component} OriginalComponent Component to wrap. - * - * @return {Component} Component which renders only when the BlockEdit is selected. - */ - -var ifBlockEditSelected = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (OriginalComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(Consumer, null, function (_ref) { - var isSelected = _ref.isSelected; - return isSelected && Object(external_this_wp_element_["createElement"])(OriginalComponent, props); - }); - }; -}, 'ifBlockEditSelected'); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/autocomplete/index.js - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -/* - * Use one array instance for fallback rather than inline array literals - * because the latter may cause rerender due to failed prop equality checks. - */ - -var completersFallback = []; -/** - * Wrap the default Autocomplete component with one that - * supports a filter hook for customizing its list of autocompleters. - * - * Since there may be many Autocomplete instances at one time, this component - * applies the filter on demand, when the component is first focused after - * receiving a new list of completers. - * - * This function is exported for unit test. - * - * @param {Function} Autocomplete Original component. - * @return {Function} Wrapped component - */ - -function withFilteredAutocompleters(Autocomplete) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(FilteredAutocomplete, _Component); - - function FilteredAutocomplete() { - var _this; - - Object(classCallCheck["a" /* default */])(this, FilteredAutocomplete); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(FilteredAutocomplete).call(this)); - _this.state = { - completers: completersFallback - }; - _this.saveParentRef = _this.saveParentRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(FilteredAutocomplete, [{ - key: "componentDidUpdate", - value: function componentDidUpdate() { - var hasFocus = this.parentNode.contains(document.activeElement); - /* - * It's possible for props to be updated when the component has focus, - * so here, we ensure new completers are immediately applied while we - * have the focus. - * - * NOTE: This may trigger another render but only when the component has focus. - */ - - if (hasFocus && this.hasStaleCompleters()) { - this.updateCompletersState(); - } - } - }, { - key: "onFocus", - value: function onFocus() { - if (this.hasStaleCompleters()) { - this.updateCompletersState(); - } - } - }, { - key: "hasStaleCompleters", - value: function hasStaleCompleters() { - return !('lastFilteredCompletersProp' in this.state) || this.state.lastFilteredCompletersProp !== this.props.completers; - } - }, { - key: "updateCompletersState", - value: function updateCompletersState() { - var _this$props = this.props, - blockName = _this$props.blockName, - completers = _this$props.completers; - var nextCompleters = completers; - var lastFilteredCompletersProp = nextCompleters; - - if (Object(external_this_wp_hooks_["hasFilter"])('editor.Autocomplete.completers')) { - nextCompleters = Object(external_this_wp_hooks_["applyFilters"])('editor.Autocomplete.completers', // Provide copies so filters may directly modify them. - nextCompleters && nextCompleters.map(external_lodash_["clone"]), blockName); - } - - this.setState({ - lastFilteredCompletersProp: lastFilteredCompletersProp, - completers: nextCompleters || completersFallback - }); - } - }, { - key: "saveParentRef", - value: function saveParentRef(parentNode) { - this.parentNode = parentNode; - } - }, { - key: "render", - value: function render() { - var completers = this.state.completers; - - var autocompleteProps = Object(objectSpread["a" /* default */])({}, this.props, { - completers: completers - }); - - return Object(external_this_wp_element_["createElement"])("div", { - onFocus: this.onFocus, - ref: this.saveParentRef - }, Object(external_this_wp_element_["createElement"])(Autocomplete, Object(esm_extends["a" /* default */])({ - onFocus: this.onFocus - }, autocompleteProps))); - } - }]); - - return FilteredAutocomplete; - }(external_this_wp_element_["Component"]) - ); -} -/* harmony default export */ var autocomplete = (Object(external_this_wp_compose_["compose"])([context_withBlockEditContext(function (_ref) { - var name = _ref.name; - return { - blockName: name - }; -}), withFilteredAutocompleters])(external_this_wp_components_["Autocomplete"])); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-icon/index.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -function BlockIcon(_ref) { - var icon = _ref.icon, - _ref$showColors = _ref.showColors, - showColors = _ref$showColors === void 0 ? false : _ref$showColors, - className = _ref.className; - - if (Object(external_lodash_["get"])(icon, ['src']) === 'block-default') { - icon = { - src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M19 7h-1V5h-4v2h-4V5H6v2H5c-1.1 0-2 .9-2 2v10h18V9c0-1.1-.9-2-2-2zm0 10H5V9h14v8z" - })) - }; - } - - var renderedIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], { - icon: icon && icon.src ? icon.src : icon - }); - var style = showColors ? { - backgroundColor: icon && icon.background, - color: icon && icon.foreground - } : {}; - return Object(external_this_wp_element_["createElement"])("span", { - style: style, - className: classnames_default()('editor-block-icon', className, { - 'has-colors': showColors - }) - }, renderedIcon); -} - // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/autocompleters/block.js @@ -12352,10 +6987,6 @@ function BlockIcon(_ref) { */ -/** - * Internal dependencies - */ - /** * Returns the client ID of the parent where a newly inserted block would be @@ -12435,7 +7066,7 @@ function createBlockCompleter() { getOptionLabel: function getOptionLabel(inserterItem) { var icon = inserterItem.icon, title = inserterItem.title; - return [Object(external_this_wp_element_["createElement"])(BlockIcon, { + return [Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], { key: "icon", icon: icon, showColors: true @@ -12520,7900 +7151,14 @@ function createBlockCompleter() { -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/alignment-toolbar/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -var DEFAULT_ALIGNMENT_CONTROLS = [{ - icon: 'editor-alignleft', - title: Object(external_this_wp_i18n_["__"])('Align text left'), - align: 'left' -}, { - icon: 'editor-aligncenter', - title: Object(external_this_wp_i18n_["__"])('Align text center'), - align: 'center' -}, { - icon: 'editor-alignright', - title: Object(external_this_wp_i18n_["__"])('Align text right'), - align: 'right' -}]; -function AlignmentToolbar(_ref) { - var isCollapsed = _ref.isCollapsed, - value = _ref.value, - onChange = _ref.onChange, - _ref$alignmentControl = _ref.alignmentControls, - alignmentControls = _ref$alignmentControl === void 0 ? DEFAULT_ALIGNMENT_CONTROLS : _ref$alignmentControl; - - function applyOrUnset(align) { - return function () { - return onChange(value === align ? undefined : align); - }; - } - - var activeAlignment = Object(external_lodash_["find"])(alignmentControls, function (control) { - return control.align === value; - }); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - isCollapsed: isCollapsed, - icon: activeAlignment ? activeAlignment.icon : 'editor-alignleft', - label: Object(external_this_wp_i18n_["__"])('Change Text Alignment'), - controls: alignmentControls.map(function (control) { - var align = control.align; - var isActive = value === align; - return Object(objectSpread["a" /* default */])({}, control, { - isActive: isActive, - onClick: applyOrUnset(align) - }); - }) - }); -} -/* harmony default export */ var alignment_toolbar = (Object(external_this_wp_compose_["compose"])(context_withBlockEditContext(function (_ref2) { - var clientId = _ref2.clientId; - return { - clientId: clientId - }; -}), Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var clientId = _ref3.clientId, - isLargeViewport = _ref3.isLargeViewport, - isCollapsed = _ref3.isCollapsed; - - var _select = select('core/block-editor'), - getBlockRootClientId = _select.getBlockRootClientId, - getSettings = _select.getSettings; - - return { - isCollapsed: isCollapsed || !isLargeViewport || !getSettings().hasFixedToolbar && getBlockRootClientId(clientId) - }; -}))(AlignmentToolbar)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-alignment-toolbar/index.js - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var BLOCK_ALIGNMENTS_CONTROLS = { - left: { - icon: 'align-left', - title: Object(external_this_wp_i18n_["__"])('Align left') - }, - center: { - icon: 'align-center', - title: Object(external_this_wp_i18n_["__"])('Align center') - }, - right: { - icon: 'align-right', - title: Object(external_this_wp_i18n_["__"])('Align right') - }, - wide: { - icon: 'align-wide', - title: Object(external_this_wp_i18n_["__"])('Wide width') - }, - full: { - icon: 'align-full-width', - title: Object(external_this_wp_i18n_["__"])('Full width') - } -}; -var DEFAULT_CONTROLS = ['left', 'center', 'right', 'wide', 'full']; -var WIDE_CONTROLS = ['wide', 'full']; -function BlockAlignmentToolbar(_ref) { - var isCollapsed = _ref.isCollapsed, - value = _ref.value, - onChange = _ref.onChange, - _ref$controls = _ref.controls, - controls = _ref$controls === void 0 ? DEFAULT_CONTROLS : _ref$controls, - _ref$wideControlsEnab = _ref.wideControlsEnabled, - wideControlsEnabled = _ref$wideControlsEnab === void 0 ? false : _ref$wideControlsEnab; - - function applyOrUnset(align) { - return function () { - return onChange(value === align ? undefined : align); - }; - } - - var enabledControls = wideControlsEnabled ? controls : controls.filter(function (control) { - return WIDE_CONTROLS.indexOf(control) === -1; - }); - var activeAlignment = BLOCK_ALIGNMENTS_CONTROLS[value]; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - isCollapsed: isCollapsed, - icon: activeAlignment ? activeAlignment.icon : 'align-left', - label: Object(external_this_wp_i18n_["__"])('Change Alignment'), - controls: enabledControls.map(function (control) { - return Object(objectSpread["a" /* default */])({}, BLOCK_ALIGNMENTS_CONTROLS[control], { - isActive: value === control, - onClick: applyOrUnset(control) - }); - }) - }); -} -/* harmony default export */ var block_alignment_toolbar = (Object(external_this_wp_compose_["compose"])(context_withBlockEditContext(function (_ref2) { - var clientId = _ref2.clientId; - return { - clientId: clientId - }; -}), Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var clientId = _ref3.clientId, - isLargeViewport = _ref3.isLargeViewport, - isCollapsed = _ref3.isCollapsed; - - var _select = select('core/block-editor'), - getBlockRootClientId = _select.getBlockRootClientId, - getSettings = _select.getSettings; - - var settings = getSettings(); - return { - wideControlsEnabled: settings.alignWide, - isCollapsed: isCollapsed || !isLargeViewport || !settings.hasFixedToolbar && getBlockRootClientId(clientId) - }; -}))(BlockAlignmentToolbar)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-controls/index.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var _createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockControls'), - Fill = _createSlotFill.Fill, - Slot = _createSlotFill.Slot; - -var block_controls_BlockControlsFill = function BlockControlsFill(_ref) { - var controls = _ref.controls, - children = _ref.children; - return Object(external_this_wp_element_["createElement"])(Fill, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: controls - }), children); -}; - -var BlockControls = ifBlockEditSelected(block_controls_BlockControlsFill); -BlockControls.Slot = Slot; -/* harmony default export */ var block_controls = (BlockControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-edit/edit.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -var edit_Edit = function Edit(props) { - var _props$attributes = props.attributes, - attributes = _props$attributes === void 0 ? {} : _props$attributes, - name = props.name; - var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); - - if (!blockType) { - return null; - } // Generate a class name for the block's editable form - - - var generatedClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true) ? Object(external_this_wp_blocks_["getBlockDefaultClassName"])(name) : null; - var className = classnames_default()(generatedClassName, attributes.className); // `edit` and `save` are functions or components describing the markup - // with which a block is displayed. If `blockType` is valid, assign - // them preferentially as the render value for the block. - - var Component = blockType.edit || blockType.save; - return Object(external_this_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({}, props, { - className: className - })); -}; -/* harmony default export */ var edit = (Object(external_this_wp_components_["withFilters"])('editor.BlockEdit')(edit_Edit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-edit/index.js - - - - - - - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -var block_edit_BlockEdit = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockEdit, _Component); - - function BlockEdit(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockEdit); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockEdit).call(this, props)); - _this.setFocusedElement = _this.setFocusedElement.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - focusedElement: null, - setFocusedElement: _this.setFocusedElement - }; - return _this; - } - - Object(createClass["a" /* default */])(BlockEdit, [{ - key: "setFocusedElement", - value: function setFocusedElement(focusedElement) { - this.setState(function (prevState) { - if (prevState.focusedElement === focusedElement) { - return null; - } - - return { - focusedElement: focusedElement - }; - }); - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(Provider, { - value: this.state - }, Object(external_this_wp_element_["createElement"])(edit, this.props)); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(props) { - var clientId = props.clientId, - name = props.name, - isSelected = props.isSelected; - return { - name: name, - isSelected: isSelected, - clientId: clientId - }; - } - }]); - - return BlockEdit; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_edit = (block_edit_BlockEdit); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-format-controls/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var block_format_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('BlockFormatControls'), - block_format_controls_Fill = block_format_controls_createSlotFill.Fill, - block_format_controls_Slot = block_format_controls_createSlotFill.Slot; - -var BlockFormatControls = ifBlockEditSelected(block_format_controls_Fill); -BlockFormatControls.Slot = block_format_controls_Slot; -/* harmony default export */ var block_format_controls = (BlockFormatControls); - -// EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(17); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-navigation/index.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -function BlockNavigationList(_ref) { - var blocks = _ref.blocks, - selectedBlockClientId = _ref.selectedBlockClientId, - selectBlock = _ref.selectBlock, - showNestedBlocks = _ref.showNestedBlocks; - return ( - /* - * Disable reason: The `list` ARIA role is redundant but - * Safari+VoiceOver won't announce the list otherwise. - */ - - /* eslint-disable jsx-a11y/no-redundant-roles */ - Object(external_this_wp_element_["createElement"])("ul", { - className: "editor-block-navigation__list", - role: "list" - }, Object(external_lodash_["map"])(blocks, function (block) { - var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); - var isSelected = block.clientId === selectedBlockClientId; - return Object(external_this_wp_element_["createElement"])("li", { - key: block.clientId - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-navigation__item" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: classnames_default()('editor-block-navigation__item-button', { - 'is-selected': isSelected - }), - onClick: function onClick() { - return selectBlock(block.clientId); - } - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: blockType.icon, - showColors: true - }), blockType.title, isSelected && Object(external_this_wp_element_["createElement"])("span", { - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('(selected block)')))), showNestedBlocks && !!block.innerBlocks && !!block.innerBlocks.length && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { - blocks: block.innerBlocks, - selectedBlockClientId: selectedBlockClientId, - selectBlock: selectBlock, - showNestedBlocks: true - })); - })) - /* eslint-enable jsx-a11y/no-redundant-roles */ - - ); -} - -function BlockNavigation(_ref2) { - var rootBlock = _ref2.rootBlock, - rootBlocks = _ref2.rootBlocks, - selectedBlockClientId = _ref2.selectedBlockClientId, - selectBlock = _ref2.selectBlock; - - if (!rootBlocks || rootBlocks.length === 0) { - return null; - } - - var hasHierarchy = rootBlock && (rootBlock.clientId !== selectedBlockClientId || rootBlock.innerBlocks && rootBlock.innerBlocks.length !== 0); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { - role: "presentation", - className: "editor-block-navigation__container" - }, Object(external_this_wp_element_["createElement"])("p", { - className: "editor-block-navigation__label" - }, Object(external_this_wp_i18n_["__"])('Block Navigation')), hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { - blocks: [rootBlock], - selectedBlockClientId: selectedBlockClientId, - selectBlock: selectBlock, - showNestedBlocks: true - }), !hasHierarchy && Object(external_this_wp_element_["createElement"])(BlockNavigationList, { - blocks: rootBlocks, - selectedBlockClientId: selectedBlockClientId, - selectBlock: selectBlock - })); -} - -/* harmony default export */ var block_navigation = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getBlockHierarchyRootClientId = _select.getBlockHierarchyRootClientId, - getBlock = _select.getBlock, - getBlocks = _select.getBlocks; - - var selectedBlockClientId = getSelectedBlockClientId(); - return { - rootBlocks: getBlocks(), - rootBlock: selectedBlockClientId ? getBlock(getBlockHierarchyRootClientId(selectedBlockClientId)) : null, - selectedBlockClientId: selectedBlockClientId - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var _ref3$onSelect = _ref3.onSelect, - onSelect = _ref3$onSelect === void 0 ? external_lodash_["noop"] : _ref3$onSelect; - return { - selectBlock: function selectBlock(clientId) { - dispatch('core/block-editor').selectBlock(clientId); - onSelect(clientId); - } - }; -}))(BlockNavigation)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-navigation/dropdown.js - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -var MenuIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24", - width: "20", - height: "20" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z" -})); - -function BlockNavigationDropdown(_ref) { - var hasBlocks = _ref.hasBlocks, - isDisabled = _ref.isDisabled; - var isEnabled = hasBlocks && !isDisabled; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - renderToggle: function renderToggle(_ref2) { - var isOpen = _ref2.isOpen, - onToggle = _ref2.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, isEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true, - shortcuts: Object(defineProperty["a" /* default */])({}, external_this_wp_keycodes_["rawShortcut"].access('o'), onToggle) - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: MenuIcon, - "aria-expanded": isOpen, - onClick: isEnabled ? onToggle : undefined, - label: Object(external_this_wp_i18n_["__"])('Block Navigation'), - className: "editor-block-navigation", - shortcut: external_this_wp_keycodes_["displayShortcut"].access('o'), - "aria-disabled": !isEnabled - })); - }, - renderContent: function renderContent(_ref4) { - var onClose = _ref4.onClose; - return Object(external_this_wp_element_["createElement"])(block_navigation, { - onSelect: onClose - }); - } - }); -} - -/* harmony default export */ var dropdown = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - hasBlocks: !!select('core/block-editor').getBlockCount() - }; -})(BlockNavigationDropdown)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/color-palette/with-color-context.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/* harmony default export */ var with_color_context = (Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var settings = select('core/block-editor').getSettings(); - var colors = ownProps.colors === undefined ? settings.colors : ownProps.colors; - var disableCustomColors = ownProps.disableCustomColors === undefined ? settings.disableCustomColors : ownProps.disableCustomColors; - return { - colors: colors, - disableCustomColors: disableCustomColors, - hasColorsToChoose: !Object(external_lodash_["isEmpty"])(colors) || !disableCustomColors - }; -}), 'withColorContext')); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/color-palette/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -/* harmony default export */ var color_palette = (with_color_context(external_this_wp_components_["ColorPalette"])); - -// EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js -var tinycolor = __webpack_require__(45); -var tinycolor_default = /*#__PURE__*/__webpack_require__.n(tinycolor); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/colors/utils.js -/** - * External dependencies - */ - - -/** - * Provided an array of color objects as set by the theme or by the editor defaults, - * and the values of the defined color or custom color returns a color object describing the color. - * - * @param {Array} colors Array of color objects as set by the theme or by the editor defaults. - * @param {?string} definedColor A string containing the color slug. - * @param {?string} customColor A string containing the customColor value. - * - * @return {?string} If definedColor is passed and the name is found in colors, - * the color object exactly as set by the theme or editor defaults is returned. - * Otherwise, an object that just sets the color is defined. - */ - -var utils_getColorObjectByAttributeValues = function getColorObjectByAttributeValues(colors, definedColor, customColor) { - if (definedColor) { - var colorObj = Object(external_lodash_["find"])(colors, { - slug: definedColor - }); - - if (colorObj) { - return colorObj; - } - } - - return { - color: customColor - }; -}; -/** -* Provided an array of color objects as set by the theme or by the editor defaults, and a color value returns the color object matching that value or undefined. -* -* @param {Array} colors Array of color objects as set by the theme or by the editor defaults. -* @param {?string} colorValue A string containing the color value. -* -* @return {?string} Returns the color object included in the colors array whose color property equals colorValue. -* Returns undefined if no color object matches this requirement. -*/ - -var utils_getColorObjectByColorValue = function getColorObjectByColorValue(colors, colorValue) { - return Object(external_lodash_["find"])(colors, { - color: colorValue - }); -}; -/** - * Returns a class based on the context a color is being used and its slug. - * - * @param {string} colorContextName Context/place where color is being used e.g: background, text etc... - * @param {string} colorSlug Slug of the color. - * - * @return {string} String with the class corresponding to the color in the provided context. - */ - -function getColorClassName(colorContextName, colorSlug) { - if (!colorContextName || !colorSlug) { - return; - } - - return "has-".concat(Object(external_lodash_["kebabCase"])(colorSlug), "-").concat(colorContextName); -} -/** -* Given an array of color objects and a color value returns the color value of the most readable color in the array. -* -* @param {Array} colors Array of color objects as set by the theme or by the editor defaults. -* @param {?string} colorValue A string containing the color value. -* -* @return {string} String with the color value of the most readable color. -*/ - -function utils_getMostReadableColor(colors, colorValue) { - return tinycolor_default.a.mostReadable(colorValue, Object(external_lodash_["map"])(colors, 'color')).toHexString(); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/colors/with-colors.js - - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -var DEFAULT_COLORS = []; -/** - * Higher order component factory for injecting the `colorsArray` argument as - * the colors prop in the `withCustomColors` HOC. - * - * @param {Array} colorsArray An array of color objects. - * - * @return {function} The higher order component. - */ - -var with_colors_withCustomColorPalette = function withCustomColorPalette(colorsArray) { - return Object(external_this_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { - colors: colorsArray - })); - }; - }, 'withCustomColorPalette'); -}; -/** - * Higher order component factory for injecting the editor colors as the - * `colors` prop in the `withColors` HOC. - * - * @return {function} The higher order component. - */ - - -var with_colors_withEditorColorPalette = function withEditorColorPalette() { - return Object(external_this_wp_data_["withSelect"])(function (select) { - var settings = select('core/block-editor').getSettings(); - return { - colors: Object(external_lodash_["get"])(settings, ['colors'], DEFAULT_COLORS) - }; - }); -}; -/** - * Helper function used with `createHigherOrderComponent` to create - * higher order components for managing color logic. - * - * @param {Array} colorTypes An array of color types (e.g. 'backgroundColor, borderColor). - * @param {Function} withColorPalette A HOC for injecting the 'colors' prop into the WrappedComponent. - * - * @return {Component} The component that can be used as a HOC. - */ - - -function createColorHOC(colorTypes, withColorPalette) { - var colorMap = Object(external_lodash_["reduce"])(colorTypes, function (colorObject, colorType) { - return Object(objectSpread["a" /* default */])({}, colorObject, Object(external_lodash_["isString"])(colorType) ? Object(defineProperty["a" /* default */])({}, colorType, Object(external_lodash_["kebabCase"])(colorType)) : colorType); - }, {}); - return Object(external_this_wp_compose_["compose"])([withColorPalette, function (WrappedComponent) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - function _class(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).call(this, props)); - _this.setters = _this.createSetters(); - _this.colorUtils = { - getMostReadableColor: _this.getMostReadableColor.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))) - }; - _this.state = {}; - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "getMostReadableColor", - value: function getMostReadableColor(colorValue) { - var colors = this.props.colors; - return utils_getMostReadableColor(colors, colorValue); - } - }, { - key: "createSetters", - value: function createSetters() { - var _this2 = this; - - return Object(external_lodash_["reduce"])(colorMap, function (settersAccumulator, colorContext, colorAttributeName) { - var upperFirstColorAttributeName = Object(external_lodash_["upperFirst"])(colorAttributeName); - var customColorAttributeName = "custom".concat(upperFirstColorAttributeName); - settersAccumulator["set".concat(upperFirstColorAttributeName)] = _this2.createSetColor(colorAttributeName, customColorAttributeName); - return settersAccumulator; - }, {}); - } - }, { - key: "createSetColor", - value: function createSetColor(colorAttributeName, customColorAttributeName) { - var _this3 = this; - - return function (colorValue) { - var _this3$props$setAttri; - - var colorObject = utils_getColorObjectByColorValue(_this3.props.colors, colorValue); - - _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, colorAttributeName, colorObject && colorObject.slug ? colorObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customColorAttributeName, colorObject && colorObject.slug ? undefined : colorValue), _this3$props$setAttri)); - }; - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(objectSpread["a" /* default */])({}, this.props, { - colors: undefined - }, this.state, this.setters, { - colorUtils: this.colorUtils - })); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(_ref2, previousState) { - var attributes = _ref2.attributes, - colors = _ref2.colors; - return Object(external_lodash_["reduce"])(colorMap, function (newState, colorContext, colorAttributeName) { - var colorObject = utils_getColorObjectByAttributeValues(colors, attributes[colorAttributeName], attributes["custom".concat(Object(external_lodash_["upperFirst"])(colorAttributeName))]); - var previousColorObject = previousState[colorAttributeName]; - var previousColor = Object(external_lodash_["get"])(previousColorObject, ['color']); - /** - * The "and previousColorObject" condition checks that a previous color object was already computed. - * At the start previousColorObject and colorValue are both equal to undefined - * bus as previousColorObject does not exist we should compute the object. - */ - - if (previousColor === colorObject.color && previousColorObject) { - newState[colorAttributeName] = previousColorObject; - } else { - newState[colorAttributeName] = Object(objectSpread["a" /* default */])({}, colorObject, { - class: getColorClassName(colorContext, colorObject.slug) - }); - } - - return newState; - }, {}); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]) - ); - }]); -} -/** - * A higher-order component factory for creating a 'withCustomColors' HOC, which handles color logic - * for class generation color value, retrieval and color attribute setting. - * - * Use this higher-order component to work with a custom set of colors. - * - * @example - * - * ```jsx - * const CUSTOM_COLORS = [ { name: 'Red', slug: 'red', color: '#ff0000' }, { name: 'Blue', slug: 'blue', color: '#0000ff' } ]; - * const withCustomColors = createCustomColorsHOC( CUSTOM_COLORS ); - * // ... - * export default compose( - * withCustomColors( 'backgroundColor', 'borderColor' ), - * MyColorfulComponent, - * ); - * ``` - * - * @param {Array} colorsArray The array of color objects (name, slug, color, etc... ). - * - * @return {Function} Higher-order component. - */ - - -function createCustomColorsHOC(colorsArray) { - return function () { - var withColorPalette = with_colors_withCustomColorPalette(colorsArray); - - for (var _len = arguments.length, colorTypes = new Array(_len), _key = 0; _key < _len; _key++) { - colorTypes[_key] = arguments[_key]; - } - - return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withCustomColors'); - }; -} -/** - * A higher-order component, which handles color logic for class generation color value, retrieval and color attribute setting. - * - * For use with the default editor/theme color palette. - * - * @example - * - * ```jsx - * export default compose( - * withColors( 'backgroundColor', { textColor: 'color' } ), - * MyColorfulComponent, - * ); - * ``` - * - * @param {...(object|string)} colorTypes The arguments can be strings or objects. If the argument is an object, - * it should contain the color attribute name as key and the color context as value. - * If the argument is a string the value should be the color attribute name, - * the color context is computed by applying a kebab case transform to the value. - * Color context represents the context/place where the color is going to be used. - * The class name of the color is generated using 'has' followed by the color name - * and ending with the color context all in kebab case e.g: has-green-background-color. - * - * @return {Function} Higher-order component. - */ - -function withColors() { - var withColorPalette = with_colors_withEditorColorPalette(); - - for (var _len2 = arguments.length, colorTypes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - colorTypes[_key2] = arguments[_key2]; - } - - return Object(external_this_wp_compose_["createHigherOrderComponent"])(createColorHOC(colorTypes, withColorPalette), 'withColors'); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/colors/index.js - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/contrast-checker/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -function ContrastChecker(_ref) { - var backgroundColor = _ref.backgroundColor, - fallbackBackgroundColor = _ref.fallbackBackgroundColor, - fallbackTextColor = _ref.fallbackTextColor, - fontSize = _ref.fontSize, - isLargeText = _ref.isLargeText, - textColor = _ref.textColor; - - if (!(backgroundColor || fallbackBackgroundColor) || !(textColor || fallbackTextColor)) { - return null; - } - - var tinyBackgroundColor = tinycolor_default()(backgroundColor || fallbackBackgroundColor); - var tinyTextColor = tinycolor_default()(textColor || fallbackTextColor); - var hasTransparency = tinyBackgroundColor.getAlpha() !== 1 || tinyTextColor.getAlpha() !== 1; - - if (hasTransparency || tinycolor_default.a.isReadable(tinyBackgroundColor, tinyTextColor, { - level: 'AA', - size: isLargeText || isLargeText !== false && fontSize >= 24 ? 'large' : 'small' - })) { - return null; - } - - var msg = tinyBackgroundColor.getBrightness() < tinyTextColor.getBrightness() ? Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color.') : Object(external_this_wp_i18n_["__"])('This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.'); - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-contrast-checker" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Notice"], { - status: "warning", - isDismissible: false - }, msg)); -} - -/* harmony default export */ var contrast_checker = (ContrastChecker); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/font-sizes/utils.js -/** - * External dependencies - */ - -/** - * Returns the font size object based on an array of named font sizes and the namedFontSize and customFontSize values. - * If namedFontSize is undefined or not found in fontSizes an object with just the size value based on customFontSize is returned. - * - * @param {Array} fontSizes Array of font size objects containing at least the "name" and "size" values as properties. - * @param {?string} fontSizeAttribute Content of the font size attribute (slug). - * @param {?number} customFontSizeAttribute Contents of the custom font size attribute (value). - * - * @return {?string} If fontSizeAttribute is set and an equal slug is found in fontSizes it returns the font size object for that slug. - * Otherwise, an object with just the size value based on customFontSize is returned. - */ - -var utils_getFontSize = function getFontSize(fontSizes, fontSizeAttribute, customFontSizeAttribute) { - if (fontSizeAttribute) { - var fontSizeObject = Object(external_lodash_["find"])(fontSizes, { - slug: fontSizeAttribute - }); - - if (fontSizeObject) { - return fontSizeObject; - } - } - - return { - size: customFontSizeAttribute - }; -}; -/** - * Returns a class based on fontSizeName. - * - * @param {string} fontSizeSlug Slug of the fontSize. - * - * @return {string} String with the class corresponding to the fontSize passed. - * The class is generated by appending 'has-' followed by fontSizeSlug in kebabCase and ending with '-font-size'. - */ - -function getFontSizeClass(fontSizeSlug) { - if (!fontSizeSlug) { - return; - } - - return "has-".concat(Object(external_lodash_["kebabCase"])(fontSizeSlug), "-font-size"); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/font-sizes/font-size-picker.js -/** - * WordPress dependencies - */ - - -/* harmony default export */ var font_size_picker = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select$getSettings = select('core/block-editor').getSettings(), - disableCustomFontSizes = _select$getSettings.disableCustomFontSizes, - fontSizes = _select$getSettings.fontSizes; - - return { - disableCustomFontSizes: disableCustomFontSizes, - fontSizes: fontSizes - }; -})(external_this_wp_components_["FontSizePicker"])); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/font-sizes/with-font-sizes.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Higher-order component, which handles font size logic for class generation, - * font size value retrieval, and font size change handling. - * - * @param {...(object|string)} args The arguments should all be strings - * Each string contains the font size attribute name e.g: 'fontSize'. - * - * @return {Function} Higher-order component. - */ - -/* harmony default export */ var with_font_sizes = (function () { - for (var _len = arguments.length, fontSizeNames = new Array(_len), _key = 0; _key < _len; _key++) { - fontSizeNames[_key] = arguments[_key]; - } - - /* - * Computes an object whose key is the font size attribute name as passed in the array, - * and the value is the custom font size attribute name. - * Custom font size is automatically compted by appending custom followed by the font size attribute name in with the first letter capitalized. - */ - var fontSizeAttributeNames = Object(external_lodash_["reduce"])(fontSizeNames, function (fontSizeAttributeNamesAccumulator, fontSizeAttributeName) { - fontSizeAttributeNamesAccumulator[fontSizeAttributeName] = "custom".concat(Object(external_lodash_["upperFirst"])(fontSizeAttributeName)); - return fontSizeAttributeNamesAccumulator; - }, {}); - return Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select$getSettings = select('core/block-editor').getSettings(), - fontSizes = _select$getSettings.fontSizes; - - return { - fontSizes: fontSizes - }; - }), function (WrappedComponent) { - return ( - /*#__PURE__*/ - function (_Component) { - Object(inherits["a" /* default */])(_class, _Component); - - function _class(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, _class); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(_class).call(this, props)); - _this.setters = _this.createSetters(); - _this.state = {}; - return _this; - } - - Object(createClass["a" /* default */])(_class, [{ - key: "createSetters", - value: function createSetters() { - var _this2 = this; - - return Object(external_lodash_["reduce"])(fontSizeAttributeNames, function (settersAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { - var upperFirstFontSizeAttributeName = Object(external_lodash_["upperFirst"])(fontSizeAttributeName); - settersAccumulator["set".concat(upperFirstFontSizeAttributeName)] = _this2.createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName); - return settersAccumulator; - }, {}); - } - }, { - key: "createSetFontSize", - value: function createSetFontSize(fontSizeAttributeName, customFontSizeAttributeName) { - var _this3 = this; - - return function (fontSizeValue) { - var _this3$props$setAttri; - - var fontSizeObject = Object(external_lodash_["find"])(_this3.props.fontSizes, { - size: fontSizeValue - }); - - _this3.props.setAttributes((_this3$props$setAttri = {}, Object(defineProperty["a" /* default */])(_this3$props$setAttri, fontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? fontSizeObject.slug : undefined), Object(defineProperty["a" /* default */])(_this3$props$setAttri, customFontSizeAttributeName, fontSizeObject && fontSizeObject.slug ? undefined : fontSizeValue), _this3$props$setAttri)); - }; - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])(WrappedComponent, Object(objectSpread["a" /* default */])({}, this.props, { - fontSizes: undefined - }, this.state, this.setters)); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(_ref, previousState) { - var attributes = _ref.attributes, - fontSizes = _ref.fontSizes; - - var didAttributesChange = function didAttributesChange(customFontSizeAttributeName, fontSizeAttributeName) { - if (previousState[fontSizeAttributeName]) { - // if new font size is name compare with the previous slug - if (attributes[fontSizeAttributeName]) { - return attributes[fontSizeAttributeName] !== previousState[fontSizeAttributeName].slug; - } // if font size is not named, update when the font size value changes. - - - return previousState[fontSizeAttributeName].size !== attributes[customFontSizeAttributeName]; - } // in this case we need to build the font size object - - - return true; - }; - - if (!Object(external_lodash_["some"])(fontSizeAttributeNames, didAttributesChange)) { - return null; - } - - var newState = Object(external_lodash_["reduce"])(Object(external_lodash_["pickBy"])(fontSizeAttributeNames, didAttributesChange), function (newStateAccumulator, customFontSizeAttributeName, fontSizeAttributeName) { - var fontSizeAttributeValue = attributes[fontSizeAttributeName]; - var fontSizeObject = utils_getFontSize(fontSizes, fontSizeAttributeValue, attributes[customFontSizeAttributeName]); - newStateAccumulator[fontSizeAttributeName] = Object(objectSpread["a" /* default */])({}, fontSizeObject, { - class: getFontSizeClass(fontSizeAttributeValue) - }); - return newStateAccumulator; - }, {}); - return Object(objectSpread["a" /* default */])({}, previousState, newState); - } - }]); - - return _class; - }(external_this_wp_element_["Component"]) - ); - }]), 'withFontSizes'); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/font-sizes/index.js - - - - -// EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} -var external_this_wp_isShallowEqual_ = __webpack_require__(40); -var external_this_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_isShallowEqual_); - -// EXTERNAL MODULE: external {"this":["wp","dom"]} -var external_this_wp_dom_ = __webpack_require__(24); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-mover/mover-description.js -/** - * WordPress dependencies - */ - -/** - * Return a label for the block movement controls depending on block position. - * - * @param {number} selectedCount Number of blocks selected. - * @param {string} type Block type - in the case of a single block, should - * define its 'type'. I.e. 'Text', 'Heading', 'Image' etc. - * @param {number} firstIndex The index (position - 1) of the first block selected. - * @param {boolean} isFirst This is the first block. - * @param {boolean} isLast This is the last block. - * @param {number} dir Direction of movement (> 0 is considered to be going - * down, < 0 is up). - * - * @return {string} Label for the block movement controls. - */ - -function getBlockMoverDescription(selectedCount, type, firstIndex, isFirst, isLast, dir) { - var position = firstIndex + 1; - - if (selectedCount > 1) { - return getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir); - } - - if (isFirst && isLast) { - // translators: %s: Type of block (i.e. Text, Image etc) - return Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block %s is the only block, and cannot be moved'), type); - } - - if (dir > 0 && !isLast) { - // moving down - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d down to position %3$d'), type, position, position + 1); - } - - if (dir > 0 && isLast) { - // moving down, and is the last item - // translators: %s: Type of block (i.e. Text, Image etc) - return Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block %s is at the end of the content and can’t be moved down'), type); - } - - if (dir < 0 && !isFirst) { - // moving up - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position - Object(external_this_wp_i18n_["__"])('Move %1$s block from position %2$d up to position %3$d'), type, position, position - 1); - } - - if (dir < 0 && isFirst) { - // moving up, and is the first item - // translators: %s: Type of block (i.e. Text, Image etc) - return Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block %s is at the beginning of the content and can’t be moved up'), type); - } -} -/** - * Return a label for the block movement controls depending on block position. - * - * @param {number} selectedCount Number of blocks selected. - * @param {number} firstIndex The index (position - 1) of the first block selected. - * @param {boolean} isFirst This is the first block. - * @param {boolean} isLast This is the last block. - * @param {number} dir Direction of movement (> 0 is considered to be going - * down, < 0 is up). - * - * @return {string} Label for the block movement controls. - */ - -function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir) { - var position = firstIndex + 1; - - if (dir < 0 && isFirst) { - return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved up as they are already at the top'); - } - - if (dir > 0 && isLast) { - return Object(external_this_wp_i18n_["__"])('Blocks cannot be moved down as they are already at the bottom'); - } - - if (dir < 0 && !isFirst) { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks - Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d up by one place', 'Move %1$d blocks from position %2$d up by one place', selectedCount), selectedCount, position); - } - - if (dir > 0 && !isLast) { - return Object(external_this_wp_i18n_["sprintf"])( // translators: 1: Number of selected blocks, 2: Position of selected blocks - Object(external_this_wp_i18n_["_n"])('Move %1$d block from position %2$d down by one place', 'Move %1$d blocks from position %2$d down by one place', selectedCount), selectedCount, position); - } -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-mover/icons.js - - -/** - * WordPress dependencies - */ - -var upArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 18 18" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 " -})); -var downArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 18 18" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], { - points: "9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 " -})); -var dragHandle = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - width: "18", - height: "18", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 18 18" -}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z" -})); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-draggable/index.js - - -/** - * WordPress dependencies - */ - - - -var block_draggable_BlockDraggable = function BlockDraggable(_ref) { - var children = _ref.children, - clientId = _ref.clientId, - rootClientId = _ref.rootClientId, - blockElementId = _ref.blockElementId, - index = _ref.index, - onDragStart = _ref.onDragStart, - onDragEnd = _ref.onDragEnd; - var transferData = { - type: 'block', - srcIndex: index, - srcRootClientId: rootClientId, - srcClientId: clientId - }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Draggable"], { - elementId: blockElementId, - transferData: transferData, - onDragStart: onDragStart, - onDragEnd: onDragEnd - }, function (_ref2) { - var onDraggableStart = _ref2.onDraggableStart, - onDraggableEnd = _ref2.onDraggableEnd; - return children({ - onDraggableStart: onDraggableStart, - onDraggableEnd: onDraggableEnd - }); - }); -}; - -/* harmony default export */ var block_draggable = (Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var clientId = _ref3.clientId; - - var _select = select('core/block-editor'), - getBlockIndex = _select.getBlockIndex, - getBlockRootClientId = _select.getBlockRootClientId; - - var rootClientId = getBlockRootClientId(clientId); - return { - index: getBlockIndex(clientId, rootClientId), - rootClientId: rootClientId - }; -})(block_draggable_BlockDraggable)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-mover/drag-handle.js - - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - -var drag_handle_IconDragHandle = function IconDragHandle(_ref) { - var isVisible = _ref.isVisible, - className = _ref.className, - icon = _ref.icon, - onDragStart = _ref.onDragStart, - onDragEnd = _ref.onDragEnd, - blockElementId = _ref.blockElementId, - clientId = _ref.clientId; - - if (!isVisible) { - return null; - } - - var dragHandleClassNames = classnames_default()('editor-block-mover__control-drag-handle', className); - return Object(external_this_wp_element_["createElement"])(block_draggable, { - clientId: clientId, - blockElementId: blockElementId, - onDragStart: onDragStart, - onDragEnd: onDragEnd - }, function (_ref2) { - var onDraggableStart = _ref2.onDraggableStart, - onDraggableEnd = _ref2.onDraggableEnd; - return Object(external_this_wp_element_["createElement"])("div", { - className: dragHandleClassNames, - "aria-hidden": "true", - onDragStart: onDraggableStart, - onDragEnd: onDraggableEnd, - draggable: true - }, icon); - }); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-mover/index.js - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - - -var block_mover_BlockMover = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockMover, _Component); - - function BlockMover() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockMover); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockMover).apply(this, arguments)); - _this.state = { - isFocused: false - }; - _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockMover, [{ - key: "onFocus", - value: function onFocus() { - this.setState({ - isFocused: true - }); - } - }, { - key: "onBlur", - value: function onBlur() { - this.setState({ - isFocused: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - onMoveUp = _this$props.onMoveUp, - onMoveDown = _this$props.onMoveDown, - isFirst = _this$props.isFirst, - isLast = _this$props.isLast, - isDraggable = _this$props.isDraggable, - onDragStart = _this$props.onDragStart, - onDragEnd = _this$props.onDragEnd, - clientIds = _this$props.clientIds, - blockElementId = _this$props.blockElementId, - blockType = _this$props.blockType, - firstIndex = _this$props.firstIndex, - isLocked = _this$props.isLocked, - instanceId = _this$props.instanceId, - isHidden = _this$props.isHidden; - var isFocused = this.state.isFocused; - var blocksCount = Object(external_lodash_["castArray"])(clientIds).length; - - if (isLocked || isFirst && isLast) { - return null; - } // We emulate a disabled state because forcefully applying the `disabled` - // attribute on the button while it has focus causes the screen to change - // to an unfocused state (body as active element) without firing blur on, - // the rendering parent, leaving it unable to react to focus out. - - - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('editor-block-mover', { - 'is-visible': isFocused || !isHidden - }) - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "editor-block-mover__control", - onClick: isFirst ? null : onMoveUp, - icon: upArrow, - label: Object(external_this_wp_i18n_["__"])('Move up'), - "aria-describedby": "editor-block-mover__up-description-".concat(instanceId), - "aria-disabled": isFirst, - onFocus: this.onFocus, - onBlur: this.onBlur - }), Object(external_this_wp_element_["createElement"])(drag_handle_IconDragHandle, { - className: "editor-block-mover__control", - icon: dragHandle, - clientId: clientIds, - blockElementId: blockElementId, - isVisible: isDraggable, - onDragStart: onDragStart, - onDragEnd: onDragEnd - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "editor-block-mover__control", - onClick: isLast ? null : onMoveDown, - icon: downArrow, - label: Object(external_this_wp_i18n_["__"])('Move down'), - "aria-describedby": "editor-block-mover__down-description-".concat(instanceId), - "aria-disabled": isLast, - onFocus: this.onFocus, - onBlur: this.onBlur - }), Object(external_this_wp_element_["createElement"])("span", { - id: "editor-block-mover__up-description-".concat(instanceId), - className: "editor-block-mover__description" - }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, -1)), Object(external_this_wp_element_["createElement"])("span", { - id: "editor-block-mover__down-description-".concat(instanceId), - className: "editor-block-mover__description" - }, getBlockMoverDescription(blocksCount, blockType && blockType.title, firstIndex, isFirst, isLast, 1))); - } - }]); - - return BlockMover; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var block_mover = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var clientIds = _ref.clientIds; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock, - getBlockIndex = _select.getBlockIndex, - getTemplateLock = _select.getTemplateLock, - getBlockRootClientId = _select.getBlockRootClientId; - - var firstClientId = Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds)); - var block = getBlock(firstClientId); - var rootClientId = getBlockRootClientId(Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds))); - return { - firstIndex: getBlockIndex(firstClientId, rootClientId), - blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null, - isLocked: getTemplateLock(rootClientId) === 'all', - rootClientId: rootClientId - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var clientIds = _ref2.clientIds, - rootClientId = _ref2.rootClientId; - - var _dispatch = dispatch('core/block-editor'), - moveBlocksDown = _dispatch.moveBlocksDown, - moveBlocksUp = _dispatch.moveBlocksUp; - - return { - onMoveDown: Object(external_lodash_["partial"])(moveBlocksDown, clientIds, rootClientId), - onMoveUp: Object(external_lodash_["partial"])(moveBlocksUp, clientIds, rootClientId) - }; -}), external_this_wp_compose_["withInstanceId"])(block_mover_BlockMover)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/media-upload/check.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -function MediaUploadCheck(_ref) { - var hasUploadPermissions = _ref.hasUploadPermissions, - _ref$fallback = _ref.fallback, - fallback = _ref$fallback === void 0 ? null : _ref$fallback, - children = _ref.children; - return hasUploadPermissions ? children : fallback; -} -/* harmony default export */ var check = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core'), - canUser = _select.canUser; - - return { - hasUploadPermissions: Object(external_lodash_["defaultTo"])(canUser('create', 'media'), true) - }; -})(MediaUploadCheck)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-drop-zone/index.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -var parseDropEvent = function parseDropEvent(event) { - var result = { - srcRootClientId: null, - srcClientId: null, - srcIndex: null, - type: null - }; - - if (!event.dataTransfer) { - return result; - } - - try { - result = Object.assign(result, JSON.parse(event.dataTransfer.getData('text'))); - } catch (err) { - return result; - } - - return result; -}; - -var block_drop_zone_BlockDropZone = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockDropZone, _Component); - - function BlockDropZone() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockDropZone); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockDropZone).apply(this, arguments)); - _this.onFilesDrop = _this.onFilesDrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onHTMLDrop = _this.onHTMLDrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onDrop = _this.onDrop.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockDropZone, [{ - key: "getInsertIndex", - value: function getInsertIndex(position) { - var _this$props = this.props, - clientId = _this$props.clientId, - rootClientId = _this$props.rootClientId, - getBlockIndex = _this$props.getBlockIndex; - - if (clientId !== undefined) { - var index = getBlockIndex(clientId, rootClientId); - return position.y === 'top' ? index : index + 1; - } - } - }, { - key: "onFilesDrop", - value: function onFilesDrop(files, position) { - var transformation = Object(external_this_wp_blocks_["findTransform"])(Object(external_this_wp_blocks_["getBlockTransforms"])('from'), function (transform) { - return transform.type === 'files' && transform.isMatch(files); - }); - - if (transformation) { - var insertIndex = this.getInsertIndex(position); - var blocks = transformation.transform(files, this.props.updateBlockAttributes); - this.props.insertBlocks(blocks, insertIndex); - } - } - }, { - key: "onHTMLDrop", - value: function onHTMLDrop(HTML, position) { - var blocks = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: HTML, - mode: 'BLOCKS' - }); - - if (blocks.length) { - this.props.insertBlocks(blocks, this.getInsertIndex(position)); - } - } - }, { - key: "onDrop", - value: function onDrop(event, position) { - var _this$props2 = this.props, - dstRootClientId = _this$props2.rootClientId, - dstClientId = _this$props2.clientId, - getClientIdsOfDescendants = _this$props2.getClientIdsOfDescendants, - getBlockIndex = _this$props2.getBlockIndex; - - var _parseDropEvent = parseDropEvent(event), - srcRootClientId = _parseDropEvent.srcRootClientId, - srcClientId = _parseDropEvent.srcClientId, - srcIndex = _parseDropEvent.srcIndex, - type = _parseDropEvent.type; - - var isBlockDropType = function isBlockDropType(dropType) { - return dropType === 'block'; - }; - - var isSameLevel = function isSameLevel(srcRoot, dstRoot) { - // Note that rootClientId of top-level blocks will be undefined OR a void string, - // so we also need to account for that case separately. - return srcRoot === dstRoot || !srcRoot === true && !dstRoot === true; - }; - - var isSameBlock = function isSameBlock(src, dst) { - return src === dst; - }; - - var isSrcBlockAnAncestorOfDstBlock = function isSrcBlockAnAncestorOfDstBlock(src, dst) { - return getClientIdsOfDescendants([src]).some(function (id) { - return id === dst; - }); - }; - - if (!isBlockDropType(type) || isSameBlock(srcClientId, dstClientId) || isSrcBlockAnAncestorOfDstBlock(srcClientId, dstClientId || dstRootClientId)) { - return; - } - - var dstIndex = dstClientId ? getBlockIndex(dstClientId, dstRootClientId) : undefined; - var positionIndex = this.getInsertIndex(position); // If the block is kept at the same level and moved downwards, - // subtract to account for blocks shifting upward to occupy its old position. - - var insertIndex = dstIndex && srcIndex < dstIndex && isSameLevel(srcRootClientId, dstRootClientId) ? positionIndex - 1 : positionIndex; - this.props.moveBlockToPosition(srcClientId, srcRootClientId, insertIndex); - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - isLocked = _this$props3.isLocked, - index = _this$props3.index; - - if (isLocked) { - return null; - } - - var isAppender = index === undefined; - return Object(external_this_wp_element_["createElement"])(check, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { - className: classnames_default()('editor-block-drop-zone', { - 'is-appender': isAppender - }), - onFilesDrop: this.onFilesDrop, - onHTMLDrop: this.onHTMLDrop, - onDrop: this.onDrop - })); - } - }]); - - return BlockDropZone; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_drop_zone = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/block-editor'), - _insertBlocks = _dispatch.insertBlocks, - _updateBlockAttributes = _dispatch.updateBlockAttributes, - _moveBlockToPosition = _dispatch.moveBlockToPosition; - - return { - insertBlocks: function insertBlocks(blocks, index) { - var rootClientId = ownProps.rootClientId; - - _insertBlocks(blocks, index, rootClientId); - }, - updateBlockAttributes: function updateBlockAttributes() { - _updateBlockAttributes.apply(void 0, arguments); - }, - moveBlockToPosition: function moveBlockToPosition(srcClientId, srcRootClientId, dstIndex) { - var dstRootClientId = ownProps.rootClientId; - - _moveBlockToPosition(srcClientId, srcRootClientId, dstRootClientId, dstIndex); - } - }; -}), Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var rootClientId = _ref.rootClientId; - - var _select = select('core/block-editor'), - getClientIdsOfDescendants = _select.getClientIdsOfDescendants, - getTemplateLock = _select.getTemplateLock, - getBlockIndex = _select.getBlockIndex; - - return { - isLocked: !!getTemplateLock(rootClientId), - getClientIdsOfDescendants: getClientIdsOfDescendants, - getBlockIndex: getBlockIndex - }; -}), Object(external_this_wp_components_["withFilters"])('editor.BlockDropZone'))(block_drop_zone_BlockDropZone)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/warning/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function Warning(_ref) { - var className = _ref.className, - actions = _ref.actions, - children = _ref.children, - secondaryActions = _ref.secondaryActions; - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()(className, 'editor-warning') - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-warning__contents" - }, Object(external_this_wp_element_["createElement"])("p", { - className: "editor-warning__message" - }, children), external_this_wp_element_["Children"].count(actions) > 0 && Object(external_this_wp_element_["createElement"])("div", { - className: "editor-warning__actions" - }, external_this_wp_element_["Children"].map(actions, function (action, i) { - return Object(external_this_wp_element_["createElement"])("span", { - key: i, - className: "editor-warning__action" - }, action); - }))), secondaryActions && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - className: "editor-warning__secondary", - position: "bottom left", - renderToggle: function renderToggle(_ref2) { - var isOpen = _ref2.isOpen, - onToggle = _ref2.onToggle; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "ellipsis", - label: Object(external_this_wp_i18n_["__"])('More options'), - onClick: onToggle, - "aria-expanded": isOpen - }); - }, - renderContent: function renderContent() { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], null, secondaryActions.map(function (item, pos) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - onClick: item.onClick, - key: pos - }, item.title); - })); - } - })); -} - -/* harmony default export */ var warning = (Warning); - -// EXTERNAL MODULE: ./node_modules/diff/dist/diff.js -var diff = __webpack_require__(192); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-compare/block-view.js - - -/** - * WordPress dependencies - */ - - -var block_view_BlockView = function BlockView(_ref) { - var title = _ref.title, - rawContent = _ref.rawContent, - renderedContent = _ref.renderedContent, - action = _ref.action, - actionText = _ref.actionText, - className = _ref.className; - return Object(external_this_wp_element_["createElement"])("div", { - className: className - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-compare__content" - }, Object(external_this_wp_element_["createElement"])("h2", { - className: "editor-block-compare__heading" - }, title), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-compare__html" - }, rawContent), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-compare__preview edit-post-visual-editor" - }, renderedContent)), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-compare__action" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - tabIndex: "0", - onClick: action - }, actionText))); -}; - -/* harmony default export */ var block_view = (block_view_BlockView); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-compare/index.js - - - - - - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var block_compare_BlockCompare = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockCompare, _Component); - - function BlockCompare() { - Object(classCallCheck["a" /* default */])(this, BlockCompare); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockCompare).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(BlockCompare, [{ - key: "getDifference", - value: function getDifference(originalContent, newContent) { - var difference = Object(diff["diffChars"])(originalContent, newContent); - return difference.map(function (item, pos) { - var classes = classnames_default()({ - 'editor-block-compare__added': item.added, - 'editor-block-compare__removed': item.removed - }); - return Object(external_this_wp_element_["createElement"])("span", { - key: pos, - className: classes - }, item.value); - }); - } - }, { - key: "getOriginalContent", - value: function getOriginalContent(block) { - return { - rawContent: block.originalContent, - renderedContent: Object(external_this_wp_blocks_["getSaveElement"])(block.name, block.attributes) - }; - } - }, { - key: "getConvertedContent", - value: function getConvertedContent(block) { - // The convertor may return an array of items or a single item - var newBlocks = Object(external_lodash_["castArray"])(block); // Get converted block details - - var newContent = newBlocks.map(function (item) { - return Object(external_this_wp_blocks_["getSaveContent"])(item.name, item.attributes, item.innerBlocks); - }); - var renderedContent = newBlocks.map(function (item) { - return Object(external_this_wp_blocks_["getSaveElement"])(item.name, item.attributes, item.innerBlocks); - }); - return { - rawContent: newContent.join(''), - renderedContent: renderedContent - }; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - block = _this$props.block, - onKeep = _this$props.onKeep, - onConvert = _this$props.onConvert, - convertor = _this$props.convertor, - convertButtonText = _this$props.convertButtonText; - var original = this.getOriginalContent(block); - var converted = this.getConvertedContent(convertor(block)); - var difference = this.getDifference(original.rawContent, converted.rawContent); - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-compare__wrapper" - }, Object(external_this_wp_element_["createElement"])(block_view, { - title: Object(external_this_wp_i18n_["__"])('Current'), - className: "editor-block-compare__current", - action: onKeep, - actionText: Object(external_this_wp_i18n_["__"])('Convert to HTML'), - rawContent: original.rawContent, - renderedContent: original.renderedContent - }), Object(external_this_wp_element_["createElement"])(block_view, { - title: Object(external_this_wp_i18n_["__"])('After Conversion'), - className: "editor-block-compare__converted", - action: onConvert, - actionText: convertButtonText, - rawContent: difference, - renderedContent: converted.renderedContent - })); - } - }]); - - return BlockCompare; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_compare = (block_compare_BlockCompare); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/block-invalid-warning.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -var block_invalid_warning_BlockInvalidWarning = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockInvalidWarning, _Component); - - function BlockInvalidWarning(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockInvalidWarning); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockInvalidWarning).call(this, props)); - _this.state = { - compare: false - }; - _this.onCompare = _this.onCompare.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onCompareClose = _this.onCompareClose.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockInvalidWarning, [{ - key: "onCompare", - value: function onCompare() { - this.setState({ - compare: true - }); - } - }, { - key: "onCompareClose", - value: function onCompareClose() { - this.setState({ - compare: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - convertToHTML = _this$props.convertToHTML, - convertToBlocks = _this$props.convertToBlocks, - convertToClassic = _this$props.convertToClassic, - attemptBlockRecovery = _this$props.attemptBlockRecovery, - block = _this$props.block; - var hasHTMLBlock = !!Object(external_this_wp_blocks_["getBlockType"])('core/html'); - var compare = this.state.compare; - var hiddenActions = [{ - title: Object(external_this_wp_i18n_["__"])('Convert to Classic Block'), - onClick: convertToClassic - }, { - title: Object(external_this_wp_i18n_["__"])('Attempt Block Recovery'), - onClick: attemptBlockRecovery - }]; - - if (compare) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { - title: // translators: Dialog title to fix block content - Object(external_this_wp_i18n_["__"])('Resolve Block'), - onRequestClose: this.onCompareClose, - className: "editor-block-compare" - }, Object(external_this_wp_element_["createElement"])(block_compare, { - block: block, - onKeep: convertToHTML, - onConvert: convertToBlocks, - convertor: block_invalid_warning_blockToBlocks, - convertButtonText: Object(external_this_wp_i18n_["__"])('Convert to Blocks') - })); - } - - return Object(external_this_wp_element_["createElement"])(warning, { - actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "convert", - onClick: this.onCompare, - isLarge: true, - isPrimary: !hasHTMLBlock - }, // translators: Button to fix block content - Object(external_this_wp_i18n_["_x"])('Resolve', 'imperative verb')), hasHTMLBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "edit", - onClick: convertToHTML, - isLarge: true, - isPrimary: true - }, Object(external_this_wp_i18n_["__"])('Convert to HTML'))], - secondaryActions: hiddenActions - }, Object(external_this_wp_i18n_["__"])('This block contains unexpected or invalid content.')); - } - }]); - - return BlockInvalidWarning; -}(external_this_wp_element_["Component"]); - -var block_invalid_warning_blockToClassic = function blockToClassic(block) { - return Object(external_this_wp_blocks_["createBlock"])('core/freeform', { - content: block.originalContent - }); -}; - -var block_invalid_warning_blockToHTML = function blockToHTML(block) { - return Object(external_this_wp_blocks_["createBlock"])('core/html', { - content: block.originalContent - }); -}; - -var block_invalid_warning_blockToBlocks = function blockToBlocks(block) { - return Object(external_this_wp_blocks_["rawHandler"])({ - HTML: block.originalContent - }); -}; - -var block_invalid_warning_recoverBlock = function recoverBlock(_ref) { - var name = _ref.name, - attributes = _ref.attributes, - innerBlocks = _ref.innerBlocks; - return Object(external_this_wp_blocks_["createBlock"])(name, attributes, innerBlocks); -}; - -/* harmony default export */ var block_invalid_warning = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - return { - block: select('core/block-editor').getBlock(clientId) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var block = _ref3.block; - - var _dispatch = dispatch('core/block-editor'), - replaceBlock = _dispatch.replaceBlock; - - return { - convertToClassic: function convertToClassic() { - replaceBlock(block.clientId, block_invalid_warning_blockToClassic(block)); - }, - convertToHTML: function convertToHTML() { - replaceBlock(block.clientId, block_invalid_warning_blockToHTML(block)); - }, - convertToBlocks: function convertToBlocks() { - replaceBlock(block.clientId, block_invalid_warning_blockToBlocks(block)); - }, - attemptBlockRecovery: function attemptBlockRecovery() { - replaceBlock(block.clientId, block_invalid_warning_recoverBlock(block)); - } - }; -})])(block_invalid_warning_BlockInvalidWarning)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/block-crash-warning.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -var block_crash_warning_warning = Object(external_this_wp_element_["createElement"])(warning, null, Object(external_this_wp_i18n_["__"])('This block has encountered an error and cannot be previewed.')); -/* harmony default export */ var block_crash_warning = (function () { - return block_crash_warning_warning; -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/block-crash-boundary.js - - - - - - -/** - * WordPress dependencies - */ - - -var block_crash_boundary_BlockCrashBoundary = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockCrashBoundary, _Component); - - function BlockCrashBoundary() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockCrashBoundary); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockCrashBoundary).apply(this, arguments)); - _this.state = { - hasError: false - }; - return _this; - } - - Object(createClass["a" /* default */])(BlockCrashBoundary, [{ - key: "componentDidCatch", - value: function componentDidCatch(error) { - this.props.onError(error); - this.setState({ - hasError: true - }); - } - }, { - key: "render", - value: function render() { - if (this.state.hasError) { - return null; - } - - return this.props.children; - } - }]); - - return BlockCrashBoundary; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_crash_boundary = (block_crash_boundary_BlockCrashBoundary); - -// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js -var react_autosize_textarea_lib = __webpack_require__(56); -var react_autosize_textarea_lib_default = /*#__PURE__*/__webpack_require__.n(react_autosize_textarea_lib); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/block-html.js - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -var block_html_BlockHTML = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockHTML, _Component); - - function BlockHTML(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockHTML); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockHTML).apply(this, arguments)); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - html: props.block.isValid ? Object(external_this_wp_blocks_["getBlockContent"])(props.block) : props.block.originalContent - }; - return _this; - } - - Object(createClass["a" /* default */])(BlockHTML, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (!Object(external_lodash_["isEqual"])(this.props.block.attributes, prevProps.block.attributes)) { - this.setState({ - html: Object(external_this_wp_blocks_["getBlockContent"])(this.props.block) - }); - } - } - }, { - key: "onBlur", - value: function onBlur() { - var html = this.state.html; - var blockType = Object(external_this_wp_blocks_["getBlockType"])(this.props.block.name); - var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(blockType, html, this.props.block.attributes); // If html is empty we reset the block to the default HTML and mark it as valid to avoid triggering an error - - var content = html ? html : Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributes); - var isValid = html ? Object(external_this_wp_blocks_["isValidBlockContent"])(blockType, attributes, content) : true; - this.props.onChange(this.props.clientId, attributes, content, isValid); // Ensure the state is updated if we reset so it displays the default content - - if (!html) { - this.setState({ - html: content - }); - } - } - }, { - key: "onChange", - value: function onChange(event) { - this.setState({ - html: event.target.value - }); - } - }, { - key: "render", - value: function render() { - var html = this.state.html; - return Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, { - className: "editor-block-list__block-html-textarea", - value: html, - onBlur: this.onBlur, - onChange: this.onChange - }); - } - }]); - - return BlockHTML; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var block_html = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - return { - block: select('core/block-editor').getBlock(ownProps.clientId) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - return { - onChange: function onChange(clientId, attributes, originalContent, isValid) { - dispatch('core/block-editor').updateBlock(clientId, { - attributes: attributes, - originalContent: originalContent, - isValid: isValid - }); - } - }; -})])(block_html_BlockHTML)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-title/index.js -/** - * WordPress dependencies - */ - - -/** - * Renders the block's configured title as a string, or empty if the title - * cannot be determined. - * - * @example - * - * ```jsx - * - * ``` - * - * @param {?string} props.name Block name. - * - * @return {?string} Block title. - */ - -function BlockTitle(_ref) { - var name = _ref.name; - - if (!name) { - return null; - } - - var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); - - if (!blockType) { - return null; - } - - return blockType.title; -} -/* harmony default export */ var block_title = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - getBlockName = _select.getBlockName; - - var clientId = ownProps.clientId; - return { - name: getBlockName(clientId) - }; -})(BlockTitle)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/breadcrumb.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Block breadcrumb component, displaying the label of the block. If the block - * descends from a root block, a button is displayed enabling the user to select - * the root block. - * - * @param {string} props.clientId Client ID of block. - * @param {string} props.rootClientId Client ID of block's root. - * @param {Function} props.selectRootBlock Callback to select root block. - */ - -var breadcrumb_BlockBreadcrumb = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockBreadcrumb, _Component); - - function BlockBreadcrumb() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockBreadcrumb); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockBreadcrumb).apply(this, arguments)); - _this.state = { - isFocused: false - }; - _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockBreadcrumb, [{ - key: "onFocus", - value: function onFocus(event) { - this.setState({ - isFocused: true - }); // This is used for improved interoperability - // with the block's `onFocus` handler which selects the block, thus conflicting - // with the intention to select the root block. - - event.stopPropagation(); - } - }, { - key: "onBlur", - value: function onBlur() { - this.setState({ - isFocused: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - clientId = _this$props.clientId, - rootClientId = _this$props.rootClientId; - return Object(external_this_wp_element_["createElement"])("div", { - className: 'editor-block-list__breadcrumb' - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, rootClientId && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_title, { - clientId: rootClientId - }), Object(external_this_wp_element_["createElement"])("span", { - className: "editor-block-list__descendant-arrow" - })), Object(external_this_wp_element_["createElement"])(block_title, { - clientId: clientId - }))); - } - }]); - - return BlockBreadcrumb; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var breadcrumb = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - getBlockRootClientId = _select.getBlockRootClientId; - - var clientId = ownProps.clientId; - return { - rootClientId: getBlockRootClientId(clientId) - }; -})])(breadcrumb_BlockBreadcrumb)); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(19); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules var objectWithoutProperties = __webpack_require__(21); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/navigable-toolbar/index.js - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Browser dependencies - */ - -var _window = window, - Node = _window.Node, - getSelection = _window.getSelection; - -var navigable_toolbar_NavigableToolbar = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(NavigableToolbar, _Component); - - function NavigableToolbar() { - var _this; - - Object(classCallCheck["a" /* default */])(this, NavigableToolbar); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(NavigableToolbar).apply(this, arguments)); - _this.focusToolbar = _this.focusToolbar.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.focusSelection = _this.focusSelection.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.switchOnKeyDown = Object(external_lodash_["cond"])([[Object(external_lodash_["matchesProperty"])(['keyCode'], external_this_wp_keycodes_["ESCAPE"]), _this.focusSelection]]); - _this.toolbar = Object(external_this_wp_element_["createRef"])(); - return _this; - } - - Object(createClass["a" /* default */])(NavigableToolbar, [{ - key: "focusToolbar", - value: function focusToolbar() { - var tabbables = external_this_wp_dom_["focus"].tabbable.find(this.toolbar.current); - - if (tabbables.length) { - tabbables[0].focus(); - } - } - /** - * Programmatically shifts focus to the element where the current selection - * exists, if there is a selection. - */ - - }, { - key: "focusSelection", - value: function focusSelection() { - // Ensure that a selection exists. - var selection = getSelection(); - - if (!selection) { - return; - } // Focus node may be a text node, which cannot be focused directly. - // Find its parent element instead. - - - var focusNode = selection.focusNode; - var focusElement = focusNode; - - if (focusElement.nodeType !== Node.ELEMENT_NODE) { - focusElement = focusElement.parentElement; - } - - if (focusElement) { - focusElement.focus(); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.focusOnMount) { - this.focusToolbar(); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["children"]); - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], Object(esm_extends["a" /* default */])({ - orientation: "horizontal", - role: "toolbar", - ref: this.toolbar, - onKeyDown: this.switchOnKeyDown - }, Object(external_lodash_["omit"])(props, ['focusOnMount'])), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true // Use the same event that TinyMCE uses in the Classic block for its own `alt+f10` shortcut. - , - eventName: "keydown", - shortcuts: { - 'alt+f10': this.focusToolbar - } - }), children); - } - }]); - - return NavigableToolbar; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var navigable_toolbar = (navigable_toolbar_NavigableToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/block-contextual-toolbar.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -function BlockContextualToolbar(_ref) { - var focusOnMount = _ref.focusOnMount; - return Object(external_this_wp_element_["createElement"])(navigable_toolbar, { - focusOnMount: focusOnMount, - className: "editor-block-contextual-toolbar" - /* translators: accessibility text for the block toolbar */ - , - "aria-label": Object(external_this_wp_i18n_["__"])('Block tools') - }, Object(external_this_wp_element_["createElement"])(block_toolbar, null)); -} - -/* harmony default export */ var block_contextual_toolbar = (BlockContextualToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/multi-controls.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -function BlockListMultiControls(_ref) { - var multiSelectedBlockClientIds = _ref.multiSelectedBlockClientIds, - clientId = _ref.clientId, - isSelecting = _ref.isSelecting, - isFirst = _ref.isFirst, - isLast = _ref.isLast; - - if (isSelecting) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(block_mover, { - key: "mover", - clientId: clientId, - clientIds: multiSelectedBlockClientIds, - isFirst: isFirst, - isLast: isLast - }); -} - -/* harmony default export */ var multi_controls = (Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, - isMultiSelecting = _select.isMultiSelecting, - getBlockIndex = _select.getBlockIndex, - getBlockCount = _select.getBlockCount; - - var clientIds = getMultiSelectedBlockClientIds(); - var firstIndex = getBlockIndex(Object(external_lodash_["first"])(clientIds), clientId); - var lastIndex = getBlockIndex(Object(external_lodash_["last"])(clientIds), clientId); - return { - multiSelectedBlockClientIds: clientIds, - isSelecting: isMultiSelecting(), - isFirst: firstIndex === 0, - isLast: lastIndex + 1 === getBlockCount() - }; -})(BlockListMultiControls)); - -// EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var dom_scroll_into_view_lib = __webpack_require__(61); -var dom_scroll_into_view_lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-preview/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -/** - * Block Preview Component: It renders a preview given a block name and attributes. - * - * @param {Object} props Component props. - * - * @return {WPElement} Rendered element. - */ - -function BlockPreview(props) { - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-preview" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-preview__title" - }, Object(external_this_wp_i18n_["__"])('Preview')), Object(external_this_wp_element_["createElement"])(BlockPreviewContent, props)); -} - -function BlockPreviewContent(_ref) { - var name = _ref.name, - attributes = _ref.attributes; - var block = Object(external_this_wp_blocks_["createBlock"])(name, attributes); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], { - className: "editor-block-preview__content editor-styles-wrapper", - "aria-hidden": true - }, Object(external_this_wp_element_["createElement"])(block_edit, { - name: name, - focus: false, - attributes: block.attributes, - setAttributes: external_lodash_["noop"] - })); -} -/* harmony default export */ var block_preview = (BlockPreview); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter-list-item/index.js - - - - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - - - -function InserterListItem(_ref) { - var icon = _ref.icon, - hasChildBlocksWithInserterSupport = _ref.hasChildBlocksWithInserterSupport, - _onClick = _ref.onClick, - isDisabled = _ref.isDisabled, - title = _ref.title, - className = _ref.className, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["icon", "hasChildBlocksWithInserterSupport", "onClick", "isDisabled", "title", "className"]); - - var itemIconStyle = icon ? { - backgroundColor: icon.background, - color: icon.foreground - } : {}; - var itemIconStackStyle = icon && icon.shadowColor ? { - backgroundColor: icon.shadowColor - } : {}; - return Object(external_this_wp_element_["createElement"])("li", { - className: "editor-block-types-list__list-item" - }, Object(external_this_wp_element_["createElement"])("button", Object(esm_extends["a" /* default */])({ - className: classnames_default()('editor-block-types-list__item', className, { - 'editor-block-types-list__item-has-children': hasChildBlocksWithInserterSupport - }), - onClick: function onClick(event) { - event.preventDefault(); - - _onClick(); - }, - disabled: isDisabled, - "aria-label": title // Fix for IE11 and JAWS 2018. - - }, props), Object(external_this_wp_element_["createElement"])("span", { - className: "editor-block-types-list__item-icon", - style: itemIconStyle - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon, - showColors: true - }), hasChildBlocksWithInserterSupport && Object(external_this_wp_element_["createElement"])("span", { - className: "editor-block-types-list__item-icon-stack", - style: itemIconStackStyle - })), Object(external_this_wp_element_["createElement"])("span", { - className: "editor-block-types-list__item-title" - }, title))); -} - -/* harmony default export */ var inserter_list_item = (InserterListItem); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-types-list/index.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -function BlockTypesList(_ref) { - var items = _ref.items, - onSelect = _ref.onSelect, - _ref$onHover = _ref.onHover, - onHover = _ref$onHover === void 0 ? function () {} : _ref$onHover, - children = _ref.children; - return ( - /* - * Disable reason: The `list` ARIA role is redundant but - * Safari+VoiceOver won't announce the list otherwise. - */ - - /* eslint-disable jsx-a11y/no-redundant-roles */ - Object(external_this_wp_element_["createElement"])("ul", { - role: "list", - className: "editor-block-types-list" - }, items && items.map(function (item) { - return Object(external_this_wp_element_["createElement"])(inserter_list_item, { - key: item.id, - className: Object(external_this_wp_blocks_["getBlockMenuDefaultClassName"])(item.id), - icon: item.icon, - hasChildBlocksWithInserterSupport: item.hasChildBlocksWithInserterSupport, - onClick: function onClick() { - onSelect(item); - onHover(null); - }, - onFocus: function onFocus() { - return onHover(item); - }, - onMouseEnter: function onMouseEnter() { - return onHover(item); - }, - onMouseLeave: function onMouseLeave() { - return onHover(null); - }, - onBlur: function onBlur() { - return onHover(null); - }, - isDisabled: item.isDisabled, - title: item.title - }); - }), children) - /* eslint-enable jsx-a11y/no-redundant-roles */ - - ); -} - -/* harmony default export */ var block_types_list = (BlockTypesList); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter/child-blocks.js - - - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - -function ChildBlocks(_ref) { - var rootBlockIcon = _ref.rootBlockIcon, - rootBlockTitle = _ref.rootBlockTitle, - items = _ref.items, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["rootBlockIcon", "rootBlockTitle", "items"]); - - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-inserter__child-blocks" - }, (rootBlockIcon || rootBlockTitle) && Object(external_this_wp_element_["createElement"])("div", { - className: "editor-inserter__parent-block-header" - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: rootBlockIcon, - showColors: true - }), rootBlockTitle && Object(external_this_wp_element_["createElement"])("h2", null, rootBlockTitle)), Object(external_this_wp_element_["createElement"])(block_types_list, Object(esm_extends["a" /* default */])({ - items: items - }, props))); -} - -/* harmony default export */ var child_blocks = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_compose_["ifCondition"])(function (_ref2) { - var items = _ref2.items; - return items && items.length > 0; -}), Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var rootClientId = _ref3.rootClientId; - - var _select = select('core/blocks'), - getBlockType = _select.getBlockType; - - var _select2 = select('core/block-editor'), - getBlockName = _select2.getBlockName; - - var rootBlockName = getBlockName(rootClientId); - var rootBlockType = getBlockType(rootBlockName); - return { - rootBlockTitle: rootBlockType && rootBlockType.title, - rootBlockIcon: rootBlockType && rootBlockType.icon - }; -}))(ChildBlocks)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter/inline-elements.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var inline_elements_InserterInlineElements = function InserterInlineElements(_ref) { - var filterValue = _ref.filterValue; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { - name: "Inserter.InlineElements", - fillProps: { - filterValue: filterValue - } - }, function (fills) { - return !Object(external_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Inline Elements'), - initialOpen: false, - className: "editor-inserter__inline-elements" - }, Object(external_this_wp_element_["createElement"])(block_types_list, null, fills)); - }); -}; - -/* harmony default export */ var inline_elements = (inline_elements_InserterInlineElements); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter/menu.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - - -/** - * Internal dependencies - */ - - - - - -var MAX_SUGGESTED_ITEMS = 9; - -var stopKeyPropagation = function stopKeyPropagation(event) { - return event.stopPropagation(); -}; -/** - * Filters an item list given a search term. - * - * @param {Array} items Item list - * @param {string} searchTerm Search term. - * - * @return {Array} Filtered item list. - */ - - -var menu_searchItems = function searchItems(items, searchTerm) { - var normalizedSearchTerm = menu_normalizeTerm(searchTerm); - - var matchSearch = function matchSearch(string) { - return menu_normalizeTerm(string).indexOf(normalizedSearchTerm) !== -1; - }; - - var categories = Object(external_this_wp_blocks_["getCategories"])(); - return items.filter(function (item) { - var itemCategory = Object(external_lodash_["find"])(categories, { - slug: item.category - }); - return matchSearch(item.title) || Object(external_lodash_["some"])(item.keywords, matchSearch) || itemCategory && matchSearch(itemCategory.title); - }); -}; -/** - * Converts the search term into a normalized term. - * - * @param {string} term The search term to normalize. - * - * @return {string} The normalized search term. - */ - -var menu_normalizeTerm = function normalizeTerm(term) { - // Disregard diacritics. - // Input: "média" - term = Object(external_lodash_["deburr"])(term); // Accommodate leading slash, matching autocomplete expectations. - // Input: "/media" - - term = term.replace(/^\//, ''); // Lowercase. - // Input: "MEDIA" - - term = term.toLowerCase(); // Strip leading and trailing whitespace. - // Input: " media " - - term = term.trim(); - return term; -}; -var menu_InserterMenu = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(InserterMenu, _Component); - - function InserterMenu() { - var _this; - - Object(classCallCheck["a" /* default */])(this, InserterMenu); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(InserterMenu).apply(this, arguments)); - _this.state = { - childItems: [], - filterValue: '', - hoveredItem: null, - suggestedItems: [], - reusableItems: [], - itemsPerCategory: {}, - openPanels: ['suggested'] - }; - _this.onChangeSearchInput = _this.onChangeSearchInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onHover = _this.onHover.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.panels = {}; - _this.inserterResults = Object(external_this_wp_element_["createRef"])(); - return _this; - } - - Object(createClass["a" /* default */])(InserterMenu, [{ - key: "componentDidMount", - value: function componentDidMount() { - // This could be replaced by a resolver. - this.props.fetchReusableBlocks(); - this.filter(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.items !== this.props.items) { - this.filter(this.state.filterValue); - } - } - }, { - key: "onChangeSearchInput", - value: function onChangeSearchInput(event) { - this.filter(event.target.value); - } - }, { - key: "onHover", - value: function onHover(item) { - this.setState({ - hoveredItem: item - }); - var _this$props = this.props, - showInsertionPoint = _this$props.showInsertionPoint, - hideInsertionPoint = _this$props.hideInsertionPoint; - - if (item) { - showInsertionPoint(); - } else { - hideInsertionPoint(); - } - } - }, { - key: "bindPanel", - value: function bindPanel(name) { - var _this2 = this; - - return function (ref) { - _this2.panels[name] = ref; - }; - } - }, { - key: "onTogglePanel", - value: function onTogglePanel(panel) { - var _this3 = this; - - return function () { - var isOpened = _this3.state.openPanels.indexOf(panel) !== -1; - - if (isOpened) { - _this3.setState({ - openPanels: Object(external_lodash_["without"])(_this3.state.openPanels, panel) - }); - } else { - _this3.setState({ - openPanels: [].concat(Object(toConsumableArray["a" /* default */])(_this3.state.openPanels), [panel]) - }); - - _this3.props.setTimeout(function () { - // We need a generic way to access the panel's container - // eslint-disable-next-line react/no-find-dom-node - dom_scroll_into_view_lib_default()(_this3.panels[panel], _this3.inserterResults.current, { - alignWithTop: true - }); - }); - } - }; - } - }, { - key: "filter", - value: function filter() { - var filterValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var _this$props2 = this.props, - debouncedSpeak = _this$props2.debouncedSpeak, - items = _this$props2.items, - rootChildBlocks = _this$props2.rootChildBlocks; - var filteredItems = menu_searchItems(items, filterValue); - - var childItems = Object(external_lodash_["filter"])(filteredItems, function (_ref) { - var name = _ref.name; - return Object(external_lodash_["includes"])(rootChildBlocks, name); - }); - - var suggestedItems = []; - - if (!filterValue) { - var maxSuggestedItems = this.props.maxSuggestedItems || MAX_SUGGESTED_ITEMS; - suggestedItems = Object(external_lodash_["filter"])(items, function (item) { - return item.utility > 0; - }).slice(0, maxSuggestedItems); - } - - var reusableItems = Object(external_lodash_["filter"])(filteredItems, { - category: 'reusable' - }); - - var getCategoryIndex = function getCategoryIndex(item) { - return Object(external_lodash_["findIndex"])(Object(external_this_wp_blocks_["getCategories"])(), function (category) { - return category.slug === item.category; - }); - }; - - var itemsPerCategory = Object(external_lodash_["flow"])(function (itemList) { - return Object(external_lodash_["filter"])(itemList, function (item) { - return item.category !== 'reusable'; - }); - }, function (itemList) { - return Object(external_lodash_["sortBy"])(itemList, getCategoryIndex); - }, function (itemList) { - return Object(external_lodash_["groupBy"])(itemList, 'category'); - })(filteredItems); - var openPanels = this.state.openPanels; - - if (filterValue !== this.state.filterValue) { - if (!filterValue) { - openPanels = ['suggested']; - } else if (reusableItems.length) { - openPanels = ['reusable']; - } else if (filteredItems.length) { - var firstCategory = Object(external_lodash_["find"])(Object(external_this_wp_blocks_["getCategories"])(), function (_ref2) { - var slug = _ref2.slug; - return itemsPerCategory[slug] && itemsPerCategory[slug].length; - }); - openPanels = [firstCategory.slug]; - } - } - - this.setState({ - hoveredItem: null, - childItems: childItems, - filterValue: filterValue, - suggestedItems: suggestedItems, - reusableItems: reusableItems, - itemsPerCategory: itemsPerCategory, - openPanels: openPanels - }); - var resultCount = Object.keys(itemsPerCategory).reduce(function (accumulator, currentCategorySlug) { - return accumulator + itemsPerCategory[currentCategorySlug].length; - }, 0); - var resultsFoundMessage = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d result found.', '%d results found.', resultCount), resultCount); - debouncedSpeak(resultsFoundMessage); - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - if (Object(external_lodash_["includes"])([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]], event.keyCode)) { - // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. - event.stopPropagation(); - } - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props3 = this.props, - instanceId = _this$props3.instanceId, - onSelect = _this$props3.onSelect, - rootClientId = _this$props3.rootClientId; - var _this$state = this.state, - childItems = _this$state.childItems, - filterValue = _this$state.filterValue, - hoveredItem = _this$state.hoveredItem, - suggestedItems = _this$state.suggestedItems, - reusableItems = _this$state.reusableItems, - itemsPerCategory = _this$state.itemsPerCategory, - openPanels = _this$state.openPanels; - - var isPanelOpen = function isPanelOpen(panel) { - return openPanels.indexOf(panel) !== -1; - }; - - var isSearching = !!filterValue; // Disable reason (no-autofocus): The inserter menu is a modal display, not one which - // is always visible, and one which already incurs this behavior of autoFocus via - // Popover's focusOnMount. - // Disable reason (no-static-element-interactions): Navigational key-presses within - // the menu are prevented from triggering WritingFlow and ObserveTyping interactions. - - /* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */ - - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-inserter__menu", - onKeyPress: stopKeyPropagation, - onKeyDown: this.onKeyDown - }, Object(external_this_wp_element_["createElement"])("label", { - htmlFor: "editor-inserter__search-".concat(instanceId), - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('Search for a block')), Object(external_this_wp_element_["createElement"])("input", { - id: "editor-inserter__search-".concat(instanceId), - type: "search", - placeholder: Object(external_this_wp_i18n_["__"])('Search for a block'), - className: "editor-inserter__search", - autoFocus: true, - onChange: this.onChangeSearchInput - }), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-inserter__results", - ref: this.inserterResults, - tabIndex: "0", - role: "region", - "aria-label": Object(external_this_wp_i18n_["__"])('Available block types') - }, Object(external_this_wp_element_["createElement"])(child_blocks, { - rootClientId: rootClientId, - items: childItems, - onSelect: onSelect, - onHover: this.onHover - }), !!suggestedItems.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["_x"])('Most Used', 'blocks'), - opened: isPanelOpen('suggested'), - onToggle: this.onTogglePanel('suggested'), - ref: this.bindPanel('suggested') - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: suggestedItems, - onSelect: onSelect, - onHover: this.onHover - })), Object(external_this_wp_element_["createElement"])(inline_elements, { - filterValue: filterValue - }), Object(external_lodash_["map"])(Object(external_this_wp_blocks_["getCategories"])(), function (category) { - var categoryItems = itemsPerCategory[category.slug]; - - if (!categoryItems || !categoryItems.length) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - key: category.slug, - title: category.title, - icon: category.icon, - opened: isSearching || isPanelOpen(category.slug), - onToggle: _this4.onTogglePanel(category.slug), - ref: _this4.bindPanel(category.slug) - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: categoryItems, - onSelect: onSelect, - onHover: _this4.onHover - })); - }), !!reusableItems.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - className: "editor-inserter__reusable-blocks-panel", - title: Object(external_this_wp_i18n_["__"])('Reusable'), - opened: isPanelOpen('reusable'), - onToggle: this.onTogglePanel('reusable'), - icon: "controls-repeat", - ref: this.bindPanel('reusable') - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: reusableItems, - onSelect: onSelect, - onHover: this.onHover - }), Object(external_this_wp_element_["createElement"])("a", { - className: "editor-inserter__manage-reusable-blocks", - href: Object(external_this_wp_url_["addQueryArgs"])('edit.php', { - post_type: 'wp_block' - }) - }, Object(external_this_wp_i18n_["__"])('Manage All Reusable Blocks'))), Object(external_lodash_["isEmpty"])(suggestedItems) && Object(external_lodash_["isEmpty"])(reusableItems) && Object(external_lodash_["isEmpty"])(itemsPerCategory) && Object(external_this_wp_element_["createElement"])("p", { - className: "editor-inserter__no-results" - }, Object(external_this_wp_i18n_["__"])('No blocks found.'))), hoveredItem && Object(external_this_wp_blocks_["isReusableBlock"])(hoveredItem) && Object(external_this_wp_element_["createElement"])(block_preview, { - name: hoveredItem.name, - attributes: hoveredItem.initialAttributes - })); - /* eslint-enable jsx-a11y/no-autofocus, jsx-a11y/no-noninteractive-element-interactions */ - } - }]); - - return InserterMenu; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var menu = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var rootClientId = _ref3.rootClientId; - - var _select = select('core/block-editor'), - getInserterItems = _select.getInserterItems, - getBlockName = _select.getBlockName; - - var _select2 = select('core/blocks'), - getChildBlockNames = _select2.getChildBlockNames; - - var rootBlockName = getBlockName(rootClientId); - return { - rootChildBlocks: getChildBlockNames(rootBlockName), - items: getInserterItems(rootClientId), - rootClientId: rootClientId - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref4) { - var select = _ref4.select; - - var _dispatch = dispatch('core/block-editor'), - _showInsertionPoint = _dispatch.showInsertionPoint, - hideInsertionPoint = _dispatch.hideInsertionPoint; // This should be an external action provided in the editor settings. - - - var _dispatch2 = dispatch('core/editor'), - fetchReusableBlocks = _dispatch2.__experimentalFetchReusableBlocks; // To avoid duplication, getInsertionPoint is extracted and used in two event handlers - // This breaks the withDispatch not containing any logic rule. - // Since it's a function only called when the event handlers are called, - // it's fine to extract it. - // eslint-disable-next-line no-restricted-syntax - - - function getInsertionPoint() { - var _select3 = select('core/block-editor'), - getBlockIndex = _select3.getBlockIndex, - getBlockRootClientId = _select3.getBlockRootClientId, - getBlockSelectionEnd = _select3.getBlockSelectionEnd, - getBlockOrder = _select3.getBlockOrder; - - var clientId = ownProps.clientId, - rootClientId = ownProps.rootClientId, - isAppender = ownProps.isAppender; // If the clientId is defined, we insert at the position of the block. - - if (clientId) { - return { - index: getBlockIndex(clientId, rootClientId), - rootClientId: rootClientId - }; - } // If there a selected block, we insert after the selected block. - - - var end = getBlockSelectionEnd(); - - if (!isAppender && end) { - var selectedBlockRootClientId = getBlockRootClientId(end) || undefined; - return { - index: getBlockIndex(end, selectedBlockRootClientId) + 1, - rootClientId: selectedBlockRootClientId - }; - } // Otherwise, we insert at the end of the current rootClientId - - - return { - index: getBlockOrder(rootClientId).length, - rootClientId: rootClientId - }; - } - - return { - fetchReusableBlocks: fetchReusableBlocks, - showInsertionPoint: function showInsertionPoint() { - var _getInsertionPoint = getInsertionPoint(), - index = _getInsertionPoint.index, - rootClientId = _getInsertionPoint.rootClientId; - - _showInsertionPoint(rootClientId, index); - }, - hideInsertionPoint: hideInsertionPoint, - onSelect: function onSelect(item) { - var _dispatch3 = dispatch('core/block-editor'), - replaceBlocks = _dispatch3.replaceBlocks, - insertBlock = _dispatch3.insertBlock; - - var _select4 = select('core/block-editor'), - getSelectedBlock = _select4.getSelectedBlock; - - var isAppender = ownProps.isAppender; - var name = item.name, - initialAttributes = item.initialAttributes; - var selectedBlock = getSelectedBlock(); - var insertedBlock = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes); - - if (!isAppender && selectedBlock && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])(selectedBlock)) { - replaceBlocks(selectedBlock.clientId, insertedBlock); - } else { - var _getInsertionPoint2 = getInsertionPoint(), - index = _getInsertionPoint2.index, - rootClientId = _getInsertionPoint2.rootClientId; - - insertBlock(insertedBlock, index, rootClientId); - } - - ownProps.onSelect(); - } - }; -}), external_this_wp_components_["withSpokenMessages"], external_this_wp_compose_["withInstanceId"], external_this_wp_compose_["withSafeTimeout"])(menu_InserterMenu)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter/index.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -var inserter_defaultRenderToggle = function defaultRenderToggle(_ref) { - var onToggle = _ref.onToggle, - disabled = _ref.disabled, - isOpen = _ref.isOpen; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "insert", - label: Object(external_this_wp_i18n_["__"])('Add block'), - labelPosition: "bottom", - onClick: onToggle, - className: "editor-inserter__toggle", - "aria-haspopup": "true", - "aria-expanded": isOpen, - disabled: disabled - }); -}; - -var inserter_Inserter = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(Inserter, _Component); - - function Inserter() { - var _this; - - Object(classCallCheck["a" /* default */])(this, Inserter); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Inserter).apply(this, arguments)); - _this.onToggle = _this.onToggle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.renderToggle = _this.renderToggle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.renderContent = _this.renderContent.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(Inserter, [{ - key: "onToggle", - value: function onToggle(isOpen) { - var onToggle = this.props.onToggle; // Surface toggle callback to parent component - - if (onToggle) { - onToggle(isOpen); - } - } - /** - * Render callback to display Dropdown toggle element. - * - * @param {Function} options.onToggle Callback to invoke when toggle is - * pressed. - * @param {boolean} options.isOpen Whether dropdown is currently open. - * - * @return {WPElement} Dropdown toggle element. - */ - - }, { - key: "renderToggle", - value: function renderToggle(_ref2) { - var onToggle = _ref2.onToggle, - isOpen = _ref2.isOpen; - var _this$props = this.props, - disabled = _this$props.disabled, - _this$props$renderTog = _this$props.renderToggle, - renderToggle = _this$props$renderTog === void 0 ? inserter_defaultRenderToggle : _this$props$renderTog; - return renderToggle({ - onToggle: onToggle, - isOpen: isOpen, - disabled: disabled - }); - } - /** - * Render callback to display Dropdown content element. - * - * @param {Function} options.onClose Callback to invoke when dropdown is - * closed. - * - * @return {WPElement} Dropdown content element. - */ - - }, { - key: "renderContent", - value: function renderContent(_ref3) { - var onClose = _ref3.onClose; - var _this$props2 = this.props, - rootClientId = _this$props2.rootClientId, - clientId = _this$props2.clientId, - isAppender = _this$props2.isAppender; - return Object(external_this_wp_element_["createElement"])(menu, { - onSelect: onClose, - rootClientId: rootClientId, - clientId: clientId, - isAppender: isAppender - }); - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - position = _this$props3.position, - title = _this$props3.title; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - className: "editor-inserter", - contentClassName: "editor-inserter__popover", - position: position, - onToggle: this.onToggle, - expandOnMobile: true, - headerTitle: title, - renderToggle: this.renderToggle, - renderContent: this.renderContent - }); - } - }]); - - return Inserter; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var inserter = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { - var rootClientId = _ref4.rootClientId; - - var _select = select('core/block-editor'), - hasInserterItems = _select.hasInserterItems; // The title should be removed from the inserter - // or replaced by a prop passed to the inserter. - - - var _select2 = select('core/editor'), - getEditedPostAttribute = _select2.getEditedPostAttribute; - - return { - title: getEditedPostAttribute('title'), - hasItems: hasInserterItems(rootClientId) - }; -}), Object(external_this_wp_compose_["ifCondition"])(function (_ref5) { - var hasItems = _ref5.hasItems; - return hasItems; -})])(inserter_Inserter)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/block-mobile-toolbar.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -function BlockMobileToolbar(_ref) { - var clientId = _ref.clientId; - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-list__block-mobile-toolbar" - }, Object(external_this_wp_element_["createElement"])(inserter, null), Object(external_this_wp_element_["createElement"])(block_mover, { - clientIds: [clientId] - })); -} - -/* harmony default export */ var block_mobile_toolbar = (Object(external_this_wp_viewport_["ifViewportMatches"])('< small')(BlockMobileToolbar)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/insertion-point.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var insertion_point_BlockInsertionPoint = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockInsertionPoint, _Component); - - function BlockInsertionPoint() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockInsertionPoint); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockInsertionPoint).apply(this, arguments)); - _this.state = { - isInserterFocused: false - }; - _this.onBlurInserter = _this.onBlurInserter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onFocusInserter = _this.onFocusInserter.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockInsertionPoint, [{ - key: "onFocusInserter", - value: function onFocusInserter(event) { - // Stop propagation of the focus event to avoid selecting the current - // block while inserting a new block, as it is not relevant to sibling - // insertion and conflicts with contextual toolbar placement. - event.stopPropagation(); - this.setState({ - isInserterFocused: true - }); - } - }, { - key: "onBlurInserter", - value: function onBlurInserter() { - this.setState({ - isInserterFocused: false - }); - } - }, { - key: "render", - value: function render() { - var isInserterFocused = this.state.isInserterFocused; - var _this$props = this.props, - showInsertionPoint = _this$props.showInsertionPoint, - rootClientId = _this$props.rootClientId, - clientId = _this$props.clientId; - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-list__insertion-point" - }, showInsertionPoint && Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-list__insertion-point-indicator" - }), Object(external_this_wp_element_["createElement"])("div", { - onFocus: this.onFocusInserter, - onBlur: this.onBlurInserter // While ideally it would be enough to capture the - // bubbling focus event from the Inserter, due to the - // characteristics of click focusing of `button`s in - // Firefox and Safari, it is not reliable. - // - // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - , - tabIndex: -1, - className: classnames_default()('editor-block-list__insertion-point-inserter', { - 'is-visible': isInserterFocused - }) - }, Object(external_this_wp_element_["createElement"])(inserter, { - rootClientId: rootClientId, - clientId: clientId - }))); - } - }]); - - return BlockInsertionPoint; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var insertion_point = (Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var clientId = _ref.clientId, - rootClientId = _ref.rootClientId; - - var _select = select('core/block-editor'), - getBlockIndex = _select.getBlockIndex, - getBlockInsertionPoint = _select.getBlockInsertionPoint, - isBlockInsertionPointVisible = _select.isBlockInsertionPointVisible; - - var blockIndex = getBlockIndex(clientId, rootClientId); - var insertionPoint = getBlockInsertionPoint(); - var showInsertionPoint = isBlockInsertionPointVisible() && insertionPoint.index === blockIndex && insertionPoint.rootClientId === rootClientId; - return { - showInsertionPoint: showInsertionPoint - }; -})(insertion_point_BlockInsertionPoint)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/ignore-nested-events/index.js - - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Component which renders a div with passed props applied except the optional - * `childHandledEvents` prop. Event prop handlers are replaced with a proxying - * event handler to capture and prevent events from being handled by ancestor - * `IgnoreNestedEvents` elements by testing the presence of a private property - * assigned on the event object. - * - * Optionally accepts an `childHandledEvents` prop array, which can be used in - * instances where an inner `IgnoreNestedEvents` element exists and the outer - * element should stop propagation but not invoke a callback handler, since it - * would be assumed these are invoked by the child element. - * - * @type {Component} - */ - -var ignore_nested_events_IgnoreNestedEvents = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(IgnoreNestedEvents, _Component); - - function IgnoreNestedEvents() { - var _this; - - Object(classCallCheck["a" /* default */])(this, IgnoreNestedEvents); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(IgnoreNestedEvents).apply(this, arguments)); - _this.proxyEvent = _this.proxyEvent.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); // The event map is responsible for tracking an event type to a React - // component prop name, since it is easy to determine event type from - // a React prop name, but not the other way around. - - _this.eventMap = {}; - return _this; - } - /** - * General event handler which only calls to its original props callback if - * it has not already been handled by a descendant IgnoreNestedEvents. - * - * @param {Event} event Event object. - * - * @return {void} - */ - - - Object(createClass["a" /* default */])(IgnoreNestedEvents, [{ - key: "proxyEvent", - value: function proxyEvent(event) { - var isHandled = !!event.nativeEvent._blockHandled; // Assign into the native event, since React will reuse their synthetic - // event objects and this property assignment could otherwise leak. - // - // See: https://reactjs.org/docs/events.html#event-pooling - - event.nativeEvent._blockHandled = true; // Invoke original prop handler - - var propKey = this.eventMap[event.type]; // If already handled (i.e. assume nested block), only invoke a - // corresponding "Handled"-suffixed prop callback. - - if (isHandled) { - propKey += 'Handled'; - } - - if (this.props[propKey]) { - this.props[propKey](event); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - _this$props$childHand = _this$props.childHandledEvents, - childHandledEvents = _this$props$childHand === void 0 ? [] : _this$props$childHand, - forwardedRef = _this$props.forwardedRef, - props = Object(objectWithoutProperties["a" /* default */])(_this$props, ["childHandledEvents", "forwardedRef"]); - - var eventHandlers = Object(external_lodash_["reduce"])([].concat(Object(toConsumableArray["a" /* default */])(childHandledEvents), Object(toConsumableArray["a" /* default */])(Object.keys(props))), function (result, key) { - // Try to match prop key as event handler - var match = key.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/); - - if (match) { - var isHandledProp = !!match[2]; - - if (isHandledProp) { - // Avoid assigning through the invalid prop key. This - // assumes mutation of shallow clone by above spread. - delete props[key]; - } // Re-map the prop to the local proxy handler to check whether - // the event has already been handled. - - - var proxiedPropName = 'on' + match[1]; - result[proxiedPropName] = _this2.proxyEvent; // Assign event -> propName into an instance variable, so as to - // avoid re-renders which could be incurred either by setState - // or in mapping values to a newly created function. - - _this2.eventMap[match[1].toLowerCase()] = proxiedPropName; - } - - return result; - }, {}); - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - ref: forwardedRef - }, props, eventHandlers)); - } - }]); - - return IgnoreNestedEvents; -}(external_this_wp_element_["Component"]); - -var ignore_nested_events_forwardedIgnoreNestedEvents = function forwardedIgnoreNestedEvents(props, ref) { - return Object(external_this_wp_element_["createElement"])(ignore_nested_events_IgnoreNestedEvents, Object(esm_extends["a" /* default */])({}, props, { - forwardedRef: ref - })); -}; - -ignore_nested_events_forwardedIgnoreNestedEvents.displayName = 'IgnoreNestedEvents'; -/* harmony default export */ var ignore_nested_events = (Object(external_this_wp_element_["forwardRef"])(ignore_nested_events_forwardedIgnoreNestedEvents)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inserter-with-shortcuts/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -function InserterWithShortcuts(_ref) { - var items = _ref.items, - isLocked = _ref.isLocked, - onInsert = _ref.onInsert; - - if (isLocked) { - return null; - } - - var itemsWithoutDefaultBlock = Object(external_lodash_["filter"])(items, function (item) { - return !item.isDisabled && (item.name !== Object(external_this_wp_blocks_["getDefaultBlockName"])() || !Object(external_lodash_["isEmpty"])(item.initialAttributes)); - }).slice(0, 3); - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-inserter-with-shortcuts" - }, itemsWithoutDefaultBlock.map(function (item) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - key: item.id, - className: "editor-inserter-with-shortcuts__block", - onClick: function onClick() { - return onInsert(item); - } // translators: %s: block title/name to be added - , - label: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Add %s'), item.title), - icon: Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: item.icon - }) - }); - })); -} - -/* harmony default export */ var inserter_with_shortcuts = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var rootClientId = _ref2.rootClientId; - - var _select = select('core/block-editor'), - getInserterItems = _select.getInserterItems, - getTemplateLock = _select.getTemplateLock; - - return { - items: getInserterItems(rootClientId), - isLocked: !!getTemplateLock(rootClientId) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var clientId = ownProps.clientId, - rootClientId = ownProps.rootClientId; - return { - onInsert: function onInsert(_ref3) { - var name = _ref3.name, - initialAttributes = _ref3.initialAttributes; - var block = Object(external_this_wp_blocks_["createBlock"])(name, initialAttributes); - - if (clientId) { - dispatch('core/block-editor').replaceBlocks(clientId, block); - } else { - dispatch('core/block-editor').insertBlock(block, undefined, rootClientId); - } - } - }; -}))(InserterWithShortcuts)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/hover-area.js - - - - - - - -/** - * WordPress dependencies - */ - - - -var hover_area_HoverArea = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(HoverArea, _Component); - - function HoverArea() { - var _this; - - Object(classCallCheck["a" /* default */])(this, HoverArea); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HoverArea).apply(this, arguments)); - _this.state = { - hoverArea: null - }; - _this.onMouseLeave = _this.onMouseLeave.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onMouseMove = _this.onMouseMove.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(HoverArea, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.props.container) { - this.toggleListeners(this.props.container, false); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.container) { - this.toggleListeners(this.props.container); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.container === this.props.container) { - return; - } - - if (prevProps.container) { - this.toggleListeners(prevProps.container, false); - } - - if (this.props.container) { - this.toggleListeners(this.props.container, true); - } - } - }, { - key: "toggleListeners", - value: function toggleListeners(container) { - var shouldListnerToEvents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var method = shouldListnerToEvents ? 'addEventListener' : 'removeEventListener'; - container[method]('mousemove', this.onMouseMove); - container[method]('mouseleave', this.onMouseLeave); - } - }, { - key: "onMouseLeave", - value: function onMouseLeave() { - if (this.state.hoverArea) { - this.setState({ - hoverArea: null - }); - } - } - }, { - key: "onMouseMove", - value: function onMouseMove(event) { - var _this$props = this.props, - isRTL = _this$props.isRTL, - container = _this$props.container; - - var _container$getBoundin = container.getBoundingClientRect(), - width = _container$getBoundin.width, - left = _container$getBoundin.left, - right = _container$getBoundin.right; - - var hoverArea = null; - - if (event.clientX - left < width / 3) { - hoverArea = isRTL ? 'right' : 'left'; - } else if (right - event.clientX < width / 3) { - hoverArea = isRTL ? 'left' : 'right'; - } - - if (hoverArea !== this.state.hoverArea) { - this.setState({ - hoverArea: hoverArea - }); - } - } - }, { - key: "render", - value: function render() { - var hoverArea = this.state.hoverArea; - var children = this.props.children; - return children({ - hoverArea: hoverArea - }); - } - }]); - - return HoverArea; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var hover_area = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - isRTL: select('core/block-editor').getSettings().isRTL - }; -})(hover_area_HoverArea)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/dom.js -/** - * Given a block client ID, returns the corresponding DOM node for the block, - * if exists. As much as possible, this helper should be avoided, and used only - * in cases where isolated behaviors need remote access to a block node. - * - * @param {string} clientId Block client ID. - * - * @return {Element} Block DOM node. - */ -function getBlockDOMNode(clientId) { - return document.querySelector('[data-block="' + clientId + '"]'); -} -/** - * Given a block client ID, returns the corresponding DOM node for the block - * focusable wrapper, if exists. As much as possible, this helper should be - * avoided, and used only in cases where isolated behaviors need remote access - * to a block node. - * - * @param {string} clientId Block client ID. - * - * @return {Element} Block DOM node. - */ - -function getBlockFocusableWrapper(clientId) { - return getBlockDOMNode(clientId).closest('.editor-block-list__block'); -} -/** - * Returns true if the given HTMLElement is a block focus stop. Blocks without - * their own text fields rely on the focus stop to be keyboard navigable. - * - * @param {HTMLElement} element Element to test. - * - * @return {boolean} Whether element is a block focus stop. - */ - -function isBlockFocusStop(element) { - return element.classList.contains('editor-block-list__block'); -} -/** - * Returns true if two elements are contained within the same block. - * - * @param {HTMLElement} a First element. - * @param {HTMLElement} b Second element. - * - * @return {boolean} Whether elements are in the same block. - */ - -function isInSameBlock(a, b) { - return a.closest('[data-block]') === b.closest('[data-block]'); -} -/** - * Returns true if an elements is considered part of the block and not its children. - * - * @param {HTMLElement} blockElement Block container element. - * @param {HTMLElement} element Element. - * - * @return {boolean} Whether element is in the block Element but not its children. - */ - -function isInsideRootBlock(blockElement, element) { - var innerBlocksContainer = blockElement.querySelector('.editor-block-list__layout'); - return blockElement.contains(element) && (!innerBlocksContainer || !innerBlocksContainer.contains(element)); -} -/** - * Returns true if the given HTMLElement contains inner blocks (an InnerBlocks - * element). - * - * @param {HTMLElement} element Element to test. - * - * @return {boolean} Whether element contains inner blocks. - */ - -function hasInnerBlocksContext(element) { - return !!element.querySelector('.editor-block-list__layout'); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/block.js - - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - - - - -/** - * Internal dependencies - */ - - - - - - - - - - - - - - - - - - -var block_BlockListBlock = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockListBlock, _Component); - - function BlockListBlock() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockListBlock); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockListBlock).apply(this, arguments)); - _this.setBlockListRef = _this.setBlockListRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.bindBlockNode = _this.bindBlockNode.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.maybeHover = _this.maybeHover.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.forceFocusedContextualToolbar = _this.forceFocusedContextualToolbar.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.hideHoverEffects = _this.hideHoverEffects.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.preventDrag = _this.preventDrag.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onPointerDown = _this.onPointerDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.deleteOrInsertAfterWrapper = _this.deleteOrInsertAfterWrapper.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onBlockError = _this.onBlockError.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onTouchStart = _this.onTouchStart.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onClick = _this.onClick.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onDragStart = _this.onDragStart.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onDragEnd = _this.onDragEnd.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.selectOnOpen = _this.selectOnOpen.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.hadTouchStart = false; - _this.state = { - error: null, - dragging: false, - isHovered: false - }; - _this.isForcingContextualToolbar = false; - return _this; - } - - Object(createClass["a" /* default */])(BlockListBlock, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.isSelected) { - this.focusTabbable(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.isForcingContextualToolbar) { - // The forcing of contextual toolbar should only be true during one update, - // after the first update normal conditions should apply. - this.isForcingContextualToolbar = false; - } - - if (this.props.isTypingWithinBlock || this.props.isSelected) { - this.hideHoverEffects(); - } - - if (this.props.isSelected && !prevProps.isSelected) { - this.focusTabbable(true); - } // When triggering a multi-selection, move the focus to the wrapper of the first selected block. - // This ensures that it is not possible to continue editing the initially selected block - // when a multi-selection is triggered. - - - if (this.props.isFirstMultiSelected && !prevProps.isFirstMultiSelected) { - this.wrapperNode.focus(); - } - } - }, { - key: "setBlockListRef", - value: function setBlockListRef(node) { - this.wrapperNode = node; - this.props.blockRef(node, this.props.clientId); // We need to rerender to trigger a rerendering of HoverArea - // it depents on this.wrapperNode but we can't keep this.wrapperNode in state - // Because we need it to be immediately availeble for `focusableTabbable` to work. - - this.forceUpdate(); - } - }, { - key: "bindBlockNode", - value: function bindBlockNode(node) { - this.node = node; - } - /** - * When a block becomes selected, transition focus to an inner tabbable. - * - * @param {boolean} ignoreInnerBlocks Should not focus inner blocks. - */ - - }, { - key: "focusTabbable", - value: function focusTabbable(ignoreInnerBlocks) { - var _this2 = this; - - var initialPosition = this.props.initialPosition; // Focus is captured by the wrapper node, so while focus transition - // should only consider tabbables within editable display, since it - // may be the wrapper itself or a side control which triggered the - // focus event, don't unnecessary transition to an inner tabbable. - - if (this.wrapperNode.contains(document.activeElement)) { - return; - } // Find all tabbables within node. - - - var textInputs = external_this_wp_dom_["focus"].tabbable.find(this.node).filter(external_this_wp_dom_["isTextField"]) // Exclude inner blocks - .filter(function (node) { - return !ignoreInnerBlocks || isInsideRootBlock(_this2.node, node); - }); // If reversed (e.g. merge via backspace), use the last in the set of - // tabbables. - - var isReverse = -1 === initialPosition; - var target = (isReverse ? external_lodash_["last"] : external_lodash_["first"])(textInputs); - - if (!target) { - this.wrapperNode.focus(); - return; - } - - target.focus(); // In reverse case, need to explicitly place caret position. - - if (isReverse) { - Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, true); - Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(target, true); - } - } - }, { - key: "setAttributes", - value: function setAttributes(attributes) { - var _this$props = this.props, - clientId = _this$props.clientId, - name = _this$props.name, - onChange = _this$props.onChange; - var type = Object(external_this_wp_blocks_["getBlockType"])(name); - onChange(clientId, attributes); - var metaAttributes = Object(external_lodash_["reduce"])(attributes, function (result, value, key) { - if (Object(external_lodash_["get"])(type, ['attributes', key, 'source']) === 'meta') { - result[type.attributes[key].meta] = value; - } - - return result; - }, {}); - - if (Object(external_lodash_["size"])(metaAttributes)) { - this.props.onMetaChange(metaAttributes); - } - } - }, { - key: "onTouchStart", - value: function onTouchStart() { - // Detect touchstart to disable hover on iOS - this.hadTouchStart = true; - } - }, { - key: "onClick", - value: function onClick() { - // Clear touchstart detection - // Browser will try to emulate mouse events also see https://www.html5rocks.com/en/mobile/touchandmouse/ - this.hadTouchStart = false; - } - /** - * A mouseover event handler to apply hover effect when a pointer device is - * placed within the bounds of the block. The mouseover event is preferred - * over mouseenter because it may be the case that a previous mouseenter - * event was blocked from being handled by a IgnoreNestedEvents component, - * therefore transitioning out of a nested block to the bounds of the block - * would otherwise not trigger a hover effect. - * - * @see https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter - */ - - }, { - key: "maybeHover", - value: function maybeHover() { - var _this$props2 = this.props, - isPartOfMultiSelection = _this$props2.isPartOfMultiSelection, - isSelected = _this$props2.isSelected; - var isHovered = this.state.isHovered; - - if (isHovered || isPartOfMultiSelection || isSelected || this.hadTouchStart) { - return; - } - - this.setState({ - isHovered: true - }); - } - /** - * Sets the block state as unhovered if currently hovering. There are cases - * where mouseleave may occur but the block is not hovered (multi-select), - * so to avoid unnecesary renders, the state is only set if hovered. - */ - - }, { - key: "hideHoverEffects", - value: function hideHoverEffects() { - if (this.state.isHovered) { - this.setState({ - isHovered: false - }); - } - } - /** - * Marks the block as selected when focused and not already selected. This - * specifically handles the case where block does not set focus on its own - * (via `setFocus`), typically if there is no focusable input in the block. - * - * @return {void} - */ - - }, { - key: "onFocus", - value: function onFocus() { - if (!this.props.isSelected && !this.props.isPartOfMultiSelection) { - this.props.onSelect(); - } - } - /** - * Prevents default dragging behavior within a block to allow for multi- - * selection to take effect unhampered. - * - * @param {DragEvent} event Drag event. - * - * @return {void} - */ - - }, { - key: "preventDrag", - value: function preventDrag(event) { - event.preventDefault(); - } - /** - * Begins tracking cursor multi-selection when clicking down within block. - * - * @param {MouseEvent} event A mousedown event. - * - * @return {void} - */ - - }, { - key: "onPointerDown", - value: function onPointerDown(event) { - // Not the main button. - // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button - if (event.button !== 0) { - return; - } - - if (event.shiftKey) { - if (!this.props.isSelected) { - this.props.onShiftSelection(); - event.preventDefault(); - } - } else { - this.props.onSelectionStart(this.props.clientId); // Allow user to escape out of a multi-selection to a singular - // selection of a block via click. This is handled here since - // onFocus excludes blocks involved in a multiselection, as - // focus can be incurred by starting a multiselection (focus - // moved to first block's multi-controls). - - if (this.props.isPartOfMultiSelection) { - this.props.onSelect(); - } - } - } - /** - * Interprets keydown event intent to remove or insert after block if key - * event occurs on wrapper node. This can occur when the block has no text - * fields of its own, particularly after initial insertion, to allow for - * easy deletion and continuous writing flow to add additional content. - * - * @param {KeyboardEvent} event Keydown event. - */ - - }, { - key: "deleteOrInsertAfterWrapper", - value: function deleteOrInsertAfterWrapper(event) { - var keyCode = event.keyCode, - target = event.target; // These block shortcuts should only trigger if the wrapper of the block is selected - // And when it's not a multi-selection to avoid conflicting with RichText/Inputs and multiselection. - - if (!this.props.isSelected || target !== this.wrapperNode || this.props.isLocked) { - return; - } - - switch (keyCode) { - case external_this_wp_keycodes_["ENTER"]: - // Insert default block after current block if enter and event - // not already handled by descendant. - this.props.onInsertDefaultBlockAfter(); - event.preventDefault(); - break; - - case external_this_wp_keycodes_["BACKSPACE"]: - case external_this_wp_keycodes_["DELETE"]: - // Remove block on backspace. - var _this$props3 = this.props, - clientId = _this$props3.clientId, - onRemove = _this$props3.onRemove; - onRemove(clientId); - event.preventDefault(); - break; - } - } - }, { - key: "onBlockError", - value: function onBlockError(error) { - this.setState({ - error: error - }); - } - }, { - key: "onDragStart", - value: function onDragStart() { - this.setState({ - dragging: true - }); - } - }, { - key: "onDragEnd", - value: function onDragEnd() { - this.setState({ - dragging: false - }); - } - }, { - key: "selectOnOpen", - value: function selectOnOpen(open) { - if (open && !this.props.isSelected) { - this.props.onSelect(); - } - } - }, { - key: "forceFocusedContextualToolbar", - value: function forceFocusedContextualToolbar() { - this.isForcingContextualToolbar = true; // trigger a re-render - - this.setState(function () { - return {}; - }); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - return Object(external_this_wp_element_["createElement"])(hover_area, { - container: this.wrapperNode - }, function (_ref) { - var hoverArea = _ref.hoverArea; - var _this3$props = _this3.props, - mode = _this3$props.mode, - isFocusMode = _this3$props.isFocusMode, - hasFixedToolbar = _this3$props.hasFixedToolbar, - isLocked = _this3$props.isLocked, - isFirst = _this3$props.isFirst, - isLast = _this3$props.isLast, - clientId = _this3$props.clientId, - rootClientId = _this3$props.rootClientId, - isSelected = _this3$props.isSelected, - isPartOfMultiSelection = _this3$props.isPartOfMultiSelection, - isFirstMultiSelected = _this3$props.isFirstMultiSelected, - isTypingWithinBlock = _this3$props.isTypingWithinBlock, - isCaretWithinFormattedText = _this3$props.isCaretWithinFormattedText, - isEmptyDefaultBlock = _this3$props.isEmptyDefaultBlock, - isMovable = _this3$props.isMovable, - isParentOfSelectedBlock = _this3$props.isParentOfSelectedBlock, - isDraggable = _this3$props.isDraggable, - className = _this3$props.className, - name = _this3$props.name, - isValid = _this3$props.isValid, - attributes = _this3$props.attributes; - var isHovered = _this3.state.isHovered && !isPartOfMultiSelection; - var blockType = Object(external_this_wp_blocks_["getBlockType"])(name); // translators: %s: Type of block (i.e. Text, Image etc) - - var blockLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Block: %s'), blockType.title); // The block as rendered in the editor is composed of general block UI - // (mover, toolbar, wrapper) and the display of the block content. - - var isUnregisteredBlock = name === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); // If the block is selected and we're typing the block should not appear. - // Empty paragraph blocks should always show up as unselected. - - var showEmptyBlockSideInserter = (isSelected || isHovered) && isEmptyDefaultBlock && isValid; - var shouldAppearSelected = !isFocusMode && !showEmptyBlockSideInserter && isSelected && !isTypingWithinBlock; - var shouldAppearHovered = !isFocusMode && !hasFixedToolbar && isHovered && !isEmptyDefaultBlock; // We render block movers and block settings to keep them tabbale even if hidden - - var shouldRenderMovers = !isFocusMode && (isSelected || hoverArea === 'left') && !showEmptyBlockSideInserter && !isPartOfMultiSelection && !isTypingWithinBlock; - var shouldShowBreadcrumb = !isFocusMode && isHovered && !isEmptyDefaultBlock; - var shouldShowContextualToolbar = !hasFixedToolbar && !showEmptyBlockSideInserter && (isSelected && (!isTypingWithinBlock || isCaretWithinFormattedText) || isFirstMultiSelected); - var shouldShowMobileToolbar = shouldAppearSelected; - var _this3$state = _this3.state, - error = _this3$state.error, - dragging = _this3$state.dragging; // Insertion point can only be made visible if the block is at the - // the extent of a multi-selection, or not in a multi-selection. - - var shouldShowInsertionPoint = isPartOfMultiSelection && isFirstMultiSelected || !isPartOfMultiSelection; // The wp-block className is important for editor styles. - // Generate the wrapper class names handling the different states of the block. - - var wrapperClassName = classnames_default()('wp-block editor-block-list__block', { - 'has-warning': !isValid || !!error || isUnregisteredBlock, - 'is-selected': shouldAppearSelected, - 'is-multi-selected': isPartOfMultiSelection, - 'is-hovered': shouldAppearHovered, - 'is-reusable': Object(external_this_wp_blocks_["isReusableBlock"])(blockType), - 'is-dragging': dragging, - 'is-typing': isTypingWithinBlock, - 'is-focused': isFocusMode && (isSelected || isParentOfSelectedBlock), - 'is-focus-mode': isFocusMode - }, className); - var onReplace = _this3.props.onReplace; // Determine whether the block has props to apply to the wrapper. - - var wrapperProps = _this3.props.wrapperProps; - - if (blockType.getEditWrapperProps) { - wrapperProps = Object(objectSpread["a" /* default */])({}, wrapperProps, blockType.getEditWrapperProps(attributes)); - } - - var blockElementId = "block-".concat(clientId); // We wrap the BlockEdit component in a div that hides it when editing in - // HTML mode. This allows us to render all of the ancillary pieces - // (InspectorControls, etc.) which are inside `BlockEdit` but not - // `BlockHTML`, even in HTML mode. - - var blockEdit = Object(external_this_wp_element_["createElement"])(block_edit, { - name: name, - isSelected: isSelected, - attributes: attributes, - setAttributes: _this3.setAttributes, - insertBlocksAfter: isLocked ? undefined : _this3.props.onInsertBlocksAfter, - onReplace: isLocked ? undefined : onReplace, - mergeBlocks: isLocked ? undefined : _this3.props.onMerge, - clientId: clientId, - isSelectionEnabled: _this3.props.isSelectionEnabled, - toggleSelection: _this3.props.toggleSelection - }); - - if (mode !== 'visual') { - blockEdit = Object(external_this_wp_element_["createElement"])("div", { - style: { - display: 'none' - } - }, blockEdit); - } // Disable reasons: - // - // jsx-a11y/mouse-events-have-key-events: - // - onMouseOver is explicitly handling hover effects - // - // jsx-a11y/no-static-element-interactions: - // - Each block can be selected by clicking on it - - /* eslint-disable jsx-a11y/mouse-events-have-key-events, jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - - - return Object(external_this_wp_element_["createElement"])(ignore_nested_events, Object(esm_extends["a" /* default */])({ - id: blockElementId, - ref: _this3.setBlockListRef, - onMouseOver: _this3.maybeHover, - onMouseOverHandled: _this3.hideHoverEffects, - onMouseLeave: _this3.hideHoverEffects, - className: wrapperClassName, - "data-type": name, - onTouchStart: _this3.onTouchStart, - onFocus: _this3.onFocus, - onClick: _this3.onClick, - onKeyDown: _this3.deleteOrInsertAfterWrapper, - tabIndex: "0", - "aria-label": blockLabel, - childHandledEvents: ['onDragStart', 'onMouseDown'] - }, wrapperProps), shouldShowInsertionPoint && Object(external_this_wp_element_["createElement"])(insertion_point, { - clientId: clientId, - rootClientId: rootClientId - }), Object(external_this_wp_element_["createElement"])(block_drop_zone, { - clientId: clientId, - rootClientId: rootClientId - }), isFirstMultiSelected && Object(external_this_wp_element_["createElement"])(multi_controls, { - rootClientId: rootClientId - }), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-list__block-edit" - }, shouldRenderMovers && Object(external_this_wp_element_["createElement"])(block_mover, { - clientIds: clientId, - blockElementId: blockElementId, - isFirst: isFirst, - isLast: isLast, - isHidden: !(isHovered || isSelected) || hoverArea !== 'left', - isDraggable: isDraggable !== false && !isPartOfMultiSelection && isMovable, - onDragStart: _this3.onDragStart, - onDragEnd: _this3.onDragEnd - }), shouldShowBreadcrumb && Object(external_this_wp_element_["createElement"])(breadcrumb, { - clientId: clientId, - isHidden: !(isHovered || isSelected) || hoverArea !== 'left' - }), (shouldShowContextualToolbar || _this3.isForcingContextualToolbar) && Object(external_this_wp_element_["createElement"])(block_contextual_toolbar // If the toolbar is being shown because of being forced - // it should focus the toolbar right after the mount. - , { - focusOnMount: _this3.isForcingContextualToolbar - }), !shouldShowContextualToolbar && isSelected && !hasFixedToolbar && !isEmptyDefaultBlock && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true, - eventName: "keydown", - shortcuts: { - 'alt+f10': _this3.forceFocusedContextualToolbar - } - }), Object(external_this_wp_element_["createElement"])(ignore_nested_events, { - ref: _this3.bindBlockNode, - onDragStart: _this3.preventDrag, - onMouseDown: _this3.onPointerDown, - "data-block": clientId - }, Object(external_this_wp_element_["createElement"])(block_crash_boundary, { - onError: _this3.onBlockError - }, isValid && blockEdit, isValid && mode === 'html' && Object(external_this_wp_element_["createElement"])(block_html, { - clientId: clientId - }), !isValid && [Object(external_this_wp_element_["createElement"])(block_invalid_warning, { - key: "invalid-warning", - clientId: clientId - }), Object(external_this_wp_element_["createElement"])("div", { - key: "invalid-preview" - }, Object(external_this_wp_blocks_["getSaveElement"])(blockType, attributes))]), shouldShowMobileToolbar && Object(external_this_wp_element_["createElement"])(block_mobile_toolbar, { - clientId: clientId - }), !!error && Object(external_this_wp_element_["createElement"])(block_crash_warning, null))), showEmptyBlockSideInserter && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-list__side-inserter" - }, Object(external_this_wp_element_["createElement"])(inserter_with_shortcuts, { - clientId: clientId, - rootClientId: rootClientId, - onToggle: _this3.selectOnOpen - })), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-list__empty-block-inserter" - }, Object(external_this_wp_element_["createElement"])(inserter, { - position: "top right", - onToggle: _this3.selectOnOpen, - rootClientId: rootClientId, - clientId: clientId - })))); - /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/onclick-has-role, jsx-a11y/click-events-have-key-events */ - }); - } - }]); - - return BlockListBlock; -}(external_this_wp_element_["Component"]); -var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId, - rootClientId = _ref2.rootClientId, - isLargeViewport = _ref2.isLargeViewport; - - var _select = select('core/block-editor'), - isBlockSelected = _select.isBlockSelected, - isAncestorMultiSelected = _select.isAncestorMultiSelected, - isBlockMultiSelected = _select.isBlockMultiSelected, - isFirstMultiSelectedBlock = _select.isFirstMultiSelectedBlock, - isTyping = _select.isTyping, - isCaretWithinFormattedText = _select.isCaretWithinFormattedText, - getBlockMode = _select.getBlockMode, - isSelectionEnabled = _select.isSelectionEnabled, - getSelectedBlocksInitialCaretPosition = _select.getSelectedBlocksInitialCaretPosition, - getSettings = _select.getSettings, - hasSelectedInnerBlock = _select.hasSelectedInnerBlock, - getTemplateLock = _select.getTemplateLock, - __unstableGetBlockWithoutInnerBlocks = _select.__unstableGetBlockWithoutInnerBlocks; - - var block = __unstableGetBlockWithoutInnerBlocks(clientId); - - var isSelected = isBlockSelected(clientId); - - var _getSettings = getSettings(), - hasFixedToolbar = _getSettings.hasFixedToolbar, - focusMode = _getSettings.focusMode; - - var templateLock = getTemplateLock(rootClientId); - var isParentOfSelectedBlock = hasSelectedInnerBlock(clientId, true); // The fallback to `{}` is a temporary fix. - // This function should never be called when a block is not present in the state. - // It happens now because the order in withSelect rendering is not correct. - - var _ref3 = block || {}, - name = _ref3.name, - attributes = _ref3.attributes, - isValid = _ref3.isValid; - - return { - isPartOfMultiSelection: isBlockMultiSelected(clientId) || isAncestorMultiSelected(clientId), - isFirstMultiSelected: isFirstMultiSelectedBlock(clientId), - // We only care about this prop when the block is selected - // Thus to avoid unnecessary rerenders we avoid updating the prop if the block is not selected. - isTypingWithinBlock: (isSelected || isParentOfSelectedBlock) && isTyping(), - isCaretWithinFormattedText: isCaretWithinFormattedText(), - mode: getBlockMode(clientId), - isSelectionEnabled: isSelectionEnabled(), - initialPosition: isSelected ? getSelectedBlocksInitialCaretPosition() : null, - isEmptyDefaultBlock: name && Object(external_this_wp_blocks_["isUnmodifiedDefaultBlock"])({ - name: name, - attributes: attributes - }), - isMovable: 'all' !== templateLock, - isLocked: !!templateLock, - isFocusMode: focusMode && isLargeViewport, - hasFixedToolbar: hasFixedToolbar && isLargeViewport, - // Users of the editor.BlockListBlock filter used to be able to access the block prop - // Ideally these blocks would rely on the clientId prop only. - // This is kept for backward compatibility reasons. - block: block, - name: name, - attributes: attributes, - isValid: isValid, - isSelected: isSelected, - isParentOfSelectedBlock: isParentOfSelectedBlock - }; -}); -var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref4) { - var select = _ref4.select; - - var _dispatch = dispatch('core/block-editor'), - updateBlockAttributes = _dispatch.updateBlockAttributes, - selectBlock = _dispatch.selectBlock, - multiSelect = _dispatch.multiSelect, - insertBlocks = _dispatch.insertBlocks, - insertDefaultBlock = _dispatch.insertDefaultBlock, - removeBlock = _dispatch.removeBlock, - mergeBlocks = _dispatch.mergeBlocks, - replaceBlocks = _dispatch.replaceBlocks, - _toggleSelection = _dispatch.toggleSelection; - - return { - onChange: function onChange(clientId, attributes) { - updateBlockAttributes(clientId, attributes); - }, - onSelect: function onSelect() { - var clientId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ownProps.clientId; - var initialPosition = arguments.length > 1 ? arguments[1] : undefined; - selectBlock(clientId, initialPosition); - }, - onInsertBlocks: function onInsertBlocks(blocks, index) { - var rootClientId = ownProps.rootClientId; - insertBlocks(blocks, index, rootClientId); - }, - onInsertDefaultBlockAfter: function onInsertDefaultBlockAfter() { - var clientId = ownProps.clientId, - rootClientId = ownProps.rootClientId; - - var _select2 = select('core/block-editor'), - getBlockIndex = _select2.getBlockIndex; - - var index = getBlockIndex(clientId, rootClientId); - insertDefaultBlock({}, rootClientId, index + 1); - }, - onInsertBlocksAfter: function onInsertBlocksAfter(blocks) { - var clientId = ownProps.clientId, - rootClientId = ownProps.rootClientId; - - var _select3 = select('core/block-editor'), - getBlockIndex = _select3.getBlockIndex; - - var index = getBlockIndex(clientId, rootClientId); - insertBlocks(blocks, index + 1, rootClientId); - }, - onRemove: function onRemove(clientId) { - removeBlock(clientId); - }, - onMerge: function onMerge(forward) { - var clientId = ownProps.clientId; - - var _select4 = select('core/block-editor'), - getPreviousBlockClientId = _select4.getPreviousBlockClientId, - getNextBlockClientId = _select4.getNextBlockClientId; - - if (forward) { - var nextBlockClientId = getNextBlockClientId(clientId); - - if (nextBlockClientId) { - mergeBlocks(clientId, nextBlockClientId); - } - } else { - var previousBlockClientId = getPreviousBlockClientId(clientId); - - if (previousBlockClientId) { - mergeBlocks(previousBlockClientId, clientId); - } - } - }, - onReplace: function onReplace(blocks) { - replaceBlocks([ownProps.clientId], blocks); - }, - onMetaChange: function onMetaChange(updatedMeta) { - var _select5 = select('core/block-editor'), - getSettings = _select5.getSettings; - - var onChangeMeta = getSettings().__experimentalMetaSource.onChange; - - onChangeMeta(updatedMeta); - }, - onShiftSelection: function onShiftSelection() { - if (!ownProps.isSelectionEnabled) { - return; - } - - var _select6 = select('core/block-editor'), - getBlockSelectionStart = _select6.getBlockSelectionStart; - - if (getBlockSelectionStart()) { - multiSelect(getBlockSelectionStart(), ownProps.clientId); - } else { - selectBlock(ownProps.clientId); - } - }, - toggleSelection: function toggleSelection(selectionEnabled) { - _toggleSelection(selectionEnabled); - } - }; -}); -/* harmony default export */ var block_list_block = (Object(external_this_wp_compose_["compose"])(external_this_wp_compose_["pure"], Object(external_this_wp_viewport_["withViewportMatch"])({ - isLargeViewport: 'medium' -}), applyWithSelect, applyWithDispatch, Object(external_this_wp_components_["withFilters"])('editor.BlockListBlock'))(block_BlockListBlock)); - -// EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} -var external_this_wp_htmlEntities_ = __webpack_require__(53); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/default-block-appender/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - - -function DefaultBlockAppender(_ref) { - var isLocked = _ref.isLocked, - isVisible = _ref.isVisible, - onAppend = _ref.onAppend, - showPrompt = _ref.showPrompt, - placeholder = _ref.placeholder, - rootClientId = _ref.rootClientId, - hovered = _ref.hovered, - setState = _ref.setState; - - if (isLocked || !isVisible) { - return null; - } - - var value = Object(external_this_wp_htmlEntities_["decodeEntities"])(placeholder) || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'); // The appender "button" is in-fact a text field so as to support - // transitions by WritingFlow occurring by arrow key press. WritingFlow - // only supports tab transitions into text fields and to the block focus - // boundary. - // - // See: https://github.com/WordPress/gutenberg/issues/4829#issuecomment-374213658 - // - // If it were ever to be made to be a proper `button` element, it is - // important to note that `onFocus` alone would not be sufficient to - // capture click events, notably in Firefox. - // - // See: https://gist.github.com/cvrebert/68659d0333a578d75372 - // The wp-block className is important for editor styles. - - - return Object(external_this_wp_element_["createElement"])("div", { - "data-root-client-id": rootClientId || '', - className: "wp-block editor-default-block-appender", - onMouseEnter: function onMouseEnter() { - return setState({ - hovered: true - }); - }, - onMouseLeave: function onMouseLeave() { - return setState({ - hovered: false - }); - } - }, Object(external_this_wp_element_["createElement"])(block_drop_zone, { - rootClientId: rootClientId - }), Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, { - role: "button", - "aria-label": Object(external_this_wp_i18n_["__"])('Add block'), - className: "editor-default-block-appender__content", - readOnly: true, - onFocus: onAppend, - value: showPrompt ? value : '' - }), hovered && Object(external_this_wp_element_["createElement"])(inserter_with_shortcuts, { - rootClientId: rootClientId - }), Object(external_this_wp_element_["createElement"])(inserter, { - rootClientId: rootClientId, - position: "top right", - isAppender: true - })); -} -/* harmony default export */ var default_block_appender = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_compose_["withState"])({ - hovered: false -}), Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - getBlockCount = _select.getBlockCount, - getBlockName = _select.getBlockName, - isBlockValid = _select.isBlockValid, - getSettings = _select.getSettings, - getTemplateLock = _select.getTemplateLock; - - var isEmpty = !getBlockCount(ownProps.rootClientId); - var isLastBlockDefault = getBlockName(ownProps.lastBlockClientId) === Object(external_this_wp_blocks_["getDefaultBlockName"])(); - var isLastBlockValid = isBlockValid(ownProps.lastBlockClientId); - - var _getSettings = getSettings(), - bodyPlaceholder = _getSettings.bodyPlaceholder; - - return { - isVisible: isEmpty || !isLastBlockDefault || !isLastBlockValid, - showPrompt: isEmpty, - isLocked: !!getTemplateLock(ownProps.rootClientId), - placeholder: bodyPlaceholder - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/block-editor'), - insertDefaultBlock = _dispatch.insertDefaultBlock, - startTyping = _dispatch.startTyping; - - return { - onAppend: function onAppend() { - var rootClientId = ownProps.rootClientId; - insertDefaultBlock(undefined, rootClientId); - startTyping(); - } - }; -}))(DefaultBlockAppender)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list-appender/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - - - -function BlockListAppender(_ref) { - var blockClientIds = _ref.blockClientIds, - rootClientId = _ref.rootClientId, - canInsertDefaultBlock = _ref.canInsertDefaultBlock, - isLocked = _ref.isLocked; - - if (isLocked) { - return null; - } - - if (canInsertDefaultBlock) { - return Object(external_this_wp_element_["createElement"])(ignore_nested_events, { - childHandledEvents: ['onFocus', 'onClick', 'onKeyDown'] - }, Object(external_this_wp_element_["createElement"])(default_block_appender, { - rootClientId: rootClientId, - lastBlockClientId: Object(external_lodash_["last"])(blockClientIds) - })); - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "block-list-appender" - }, Object(external_this_wp_element_["createElement"])(inserter, { - rootClientId: rootClientId, - renderToggle: function renderToggle(_ref2) { - var onToggle = _ref2.onToggle, - disabled = _ref2.disabled, - isOpen = _ref2.isOpen; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - label: Object(external_this_wp_i18n_["__"])('Add block'), - icon: "insert", - onClick: onToggle, - className: "block-list-appender__toggle", - "aria-haspopup": "true", - "aria-expanded": isOpen, - disabled: disabled - }); - }, - isAppender: true - })); -} - -/* harmony default export */ var block_list_appender = (Object(external_this_wp_data_["withSelect"])(function (select, _ref3) { - var rootClientId = _ref3.rootClientId; - - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder, - canInsertBlockType = _select.canInsertBlockType, - getTemplateLock = _select.getTemplateLock; - - return { - isLocked: !!getTemplateLock(rootClientId), - blockClientIds: getBlockOrder(rootClientId), - canInsertDefaultBlock: canInsertBlockType(Object(external_this_wp_blocks_["getDefaultBlockName"])(), rootClientId) - }; -})(BlockListAppender)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-list/index.js - - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - -var block_list_forceSyncUpdates = function forceSyncUpdates(WrappedComponent) { - return function (props) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["__experimentalAsyncModeProvider"], { - value: false - }, Object(external_this_wp_element_["createElement"])(WrappedComponent, props)); - }; -}; - -var block_list_BlockList = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockList, _Component); - - function BlockList(props) { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockList); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockList).call(this, props)); - _this.onSelectionStart = _this.onSelectionStart.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectionEnd = _this.onSelectionEnd.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setBlockRef = _this.setBlockRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setLastClientY = _this.setLastClientY.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onPointerMove = Object(external_lodash_["throttle"])(_this.onPointerMove.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), 100); // Browser does not fire `*move` event when the pointer position changes - // relative to the document, so fire it with the last known position. - - _this.onScroll = function () { - return _this.onPointerMove({ - clientY: _this.lastClientY - }); - }; - - _this.lastClientY = 0; - _this.nodes = {}; - return _this; - } - - Object(createClass["a" /* default */])(BlockList, [{ - key: "componentDidMount", - value: function componentDidMount() { - window.addEventListener('mousemove', this.setLastClientY); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.removeEventListener('mousemove', this.setLastClientY); - } - }, { - key: "setLastClientY", - value: function setLastClientY(_ref) { - var clientY = _ref.clientY; - this.lastClientY = clientY; - } - }, { - key: "setBlockRef", - value: function setBlockRef(node, clientId) { - if (node === null) { - delete this.nodes[clientId]; - } else { - this.nodes = Object(objectSpread["a" /* default */])({}, this.nodes, Object(defineProperty["a" /* default */])({}, clientId, node)); - } - } - /** - * Handles a pointer move event to update the extent of the current cursor - * multi-selection. - * - * @param {MouseEvent} event A mousemove event object. - * - * @return {void} - */ - - }, { - key: "onPointerMove", - value: function onPointerMove(_ref2) { - var clientY = _ref2.clientY; - - // We don't start multi-selection until the mouse starts moving, so as - // to avoid dispatching multi-selection actions on an in-place click. - if (!this.props.isMultiSelecting) { - this.props.onStartMultiSelect(); - } - - var blockContentBoundaries = getBlockDOMNode(this.selectionAtStart).getBoundingClientRect(); // prevent multi-selection from triggering when the selected block is a float - // and the cursor is still between the top and the bottom of the block. - - if (clientY >= blockContentBoundaries.top && clientY <= blockContentBoundaries.bottom) { - return; - } - - var y = clientY - blockContentBoundaries.top; - var key = Object(external_lodash_["findLast"])(this.coordMapKeys, function (coordY) { - return coordY < y; - }); - this.onSelectionChange(this.coordMap[key]); - } - /** - * Binds event handlers to the document for tracking a pending multi-select - * in response to a mousedown event occurring in a rendered block. - * - * @param {string} clientId Client ID of block where mousedown occurred. - * - * @return {void} - */ - - }, { - key: "onSelectionStart", - value: function onSelectionStart(clientId) { - if (!this.props.isSelectionEnabled) { - return; - } - - var boundaries = this.nodes[clientId].getBoundingClientRect(); // Create a clientId to Y coördinate map. - - var clientIdToCoordMap = Object(external_lodash_["mapValues"])(this.nodes, function (node) { - return node.getBoundingClientRect().top - boundaries.top; - }); // Cache a Y coördinate to clientId map for use in `onPointerMove`. - - this.coordMap = Object(external_lodash_["invert"])(clientIdToCoordMap); // Cache an array of the Y coördinates for use in `onPointerMove`. - // Sort the coördinates, as `this.nodes` will not necessarily reflect - // the current block sequence. - - this.coordMapKeys = Object(external_lodash_["sortBy"])(Object.values(clientIdToCoordMap)); - this.selectionAtStart = clientId; - window.addEventListener('mousemove', this.onPointerMove); // Capture scroll on all elements. - - window.addEventListener('scroll', this.onScroll, true); - window.addEventListener('mouseup', this.onSelectionEnd); - } - /** - * Handles multi-selection changes in response to pointer move. - * - * @param {string} clientId Client ID of block under cursor in multi-select - * drag. - */ - - }, { - key: "onSelectionChange", - value: function onSelectionChange(clientId) { - var _this$props = this.props, - onMultiSelect = _this$props.onMultiSelect, - selectionStart = _this$props.selectionStart, - selectionEnd = _this$props.selectionEnd; - var selectionAtStart = this.selectionAtStart; - var isAtStart = selectionAtStart === clientId; - - if (!selectionAtStart || !this.props.isSelectionEnabled) { - return; - } // If multi-selecting and cursor extent returns to the start of - // selection, cancel multi-select. - - - if (isAtStart && selectionStart) { - onMultiSelect(null, null); - } // Expand multi-selection to block under cursor. - - - if (!isAtStart && selectionEnd !== clientId) { - onMultiSelect(selectionAtStart, clientId); - } - } - /** - * Handles a mouseup event to end the current cursor multi-selection. - * - * @return {void} - */ - - }, { - key: "onSelectionEnd", - value: function onSelectionEnd() { - // Cancel throttled calls. - this.onPointerMove.cancel(); - delete this.coordMap; - delete this.coordMapKeys; - delete this.selectionAtStart; - window.removeEventListener('mousemove', this.onPointerMove); - window.removeEventListener('scroll', this.onScroll, true); - window.removeEventListener('mouseup', this.onSelectionEnd); // We may or may not be in a multi-selection when mouseup occurs (e.g. - // an in-place mouse click), so only trigger stop if multi-selecting. - - if (this.props.isMultiSelecting) { - this.props.onStopMultiSelect(); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - blockClientIds = _this$props2.blockClientIds, - rootClientId = _this$props2.rootClientId, - isDraggable = _this$props2.isDraggable, - selectedBlockClientId = _this$props2.selectedBlockClientId, - multiSelectedBlockClientIds = _this$props2.multiSelectedBlockClientIds, - hasMultiSelection = _this$props2.hasMultiSelection; - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-list__layout" - }, Object(external_lodash_["map"])(blockClientIds, function (clientId, blockIndex) { - var isBlockInSelection = hasMultiSelection ? multiSelectedBlockClientIds.includes(clientId) : selectedBlockClientId === clientId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_data_["__experimentalAsyncModeProvider"], { - key: 'block-' + clientId, - value: !isBlockInSelection - }, Object(external_this_wp_element_["createElement"])(block_list_block, { - clientId: clientId, - blockRef: _this2.setBlockRef, - onSelectionStart: _this2.onSelectionStart, - rootClientId: rootClientId, - isFirst: blockIndex === 0, - isLast: blockIndex === blockClientIds.length - 1, - isDraggable: isDraggable - })); - }), Object(external_this_wp_element_["createElement"])(block_list_appender, { - rootClientId: rootClientId - })); - } - }]); - - return BlockList; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_list = (Object(external_this_wp_compose_["compose"])([// This component needs to always be synchronous -// as it's the one changing the async mode -// depending on the block selection. -block_list_forceSyncUpdates, Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder, - isSelectionEnabled = _select.isSelectionEnabled, - isMultiSelecting = _select.isMultiSelecting, - getMultiSelectedBlocksStartClientId = _select.getMultiSelectedBlocksStartClientId, - getMultiSelectedBlocksEndClientId = _select.getMultiSelectedBlocksEndClientId, - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, - hasMultiSelection = _select.hasMultiSelection; - - var rootClientId = ownProps.rootClientId; - return { - blockClientIds: getBlockOrder(rootClientId), - selectionStart: getMultiSelectedBlocksStartClientId(), - selectionEnd: getMultiSelectedBlocksEndClientId(), - isSelectionEnabled: isSelectionEnabled(), - isMultiSelecting: isMultiSelecting(), - selectedBlockClientId: getSelectedBlockClientId(), - multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(), - hasMultiSelection: hasMultiSelection() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - startMultiSelect = _dispatch.startMultiSelect, - stopMultiSelect = _dispatch.stopMultiSelect, - multiSelect = _dispatch.multiSelect; - - return { - onStartMultiSelect: startMultiSelect, - onStopMultiSelect: stopMultiSelect, - onMultiSelect: multiSelect - }; -})])(block_list_BlockList)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inner-blocks/index.js - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - - - -var inner_blocks_InnerBlocks = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(InnerBlocks, _Component); - - function InnerBlocks() { - var _this; - - Object(classCallCheck["a" /* default */])(this, InnerBlocks); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(InnerBlocks).apply(this, arguments)); - _this.state = { - templateInProcess: !!_this.props.template - }; - - _this.updateNestedSettings(); - - return _this; - } - - Object(createClass["a" /* default */])(InnerBlocks, [{ - key: "getTemplateLock", - value: function getTemplateLock() { - var _this$props = this.props, - templateLock = _this$props.templateLock, - parentLock = _this$props.parentLock; - return templateLock === undefined ? parentLock : templateLock; - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var innerBlocks = this.props.block.innerBlocks; // only synchronize innerBlocks with template if innerBlocks are empty or a locking all exists - - if (innerBlocks.length === 0 || this.getTemplateLock() === 'all') { - this.synchronizeBlocksWithTemplate(); - } - - if (this.state.templateInProcess) { - this.setState({ - templateInProcess: false - }); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props2 = this.props, - template = _this$props2.template, - block = _this$props2.block; - var innerBlocks = block.innerBlocks; - this.updateNestedSettings(); // only synchronize innerBlocks with template if innerBlocks are empty or a locking all exists - - if (innerBlocks.length === 0 || this.getTemplateLock() === 'all') { - var hasTemplateChanged = !Object(external_lodash_["isEqual"])(template, prevProps.template); - - if (hasTemplateChanged) { - this.synchronizeBlocksWithTemplate(); - } - } - } - /** - * Called on mount or when a mismatch exists between the templates and - * inner blocks, synchronizes inner blocks with the template, replacing - * current blocks. - */ - - }, { - key: "synchronizeBlocksWithTemplate", - value: function synchronizeBlocksWithTemplate() { - var _this$props3 = this.props, - template = _this$props3.template, - block = _this$props3.block, - replaceInnerBlocks = _this$props3.replaceInnerBlocks; - var innerBlocks = block.innerBlocks; // Synchronize with templates. If the next set differs, replace. - - var nextBlocks = Object(external_this_wp_blocks_["synchronizeBlocksWithTemplate"])(innerBlocks, template); - - if (!Object(external_lodash_["isEqual"])(nextBlocks, innerBlocks)) { - replaceInnerBlocks(nextBlocks); - } - } - }, { - key: "updateNestedSettings", - value: function updateNestedSettings() { - var _this$props4 = this.props, - blockListSettings = _this$props4.blockListSettings, - allowedBlocks = _this$props4.allowedBlocks, - updateNestedSettings = _this$props4.updateNestedSettings; - var newSettings = { - allowedBlocks: allowedBlocks, - templateLock: this.getTemplateLock() - }; - - if (!external_this_wp_isShallowEqual_default()(blockListSettings, newSettings)) { - updateNestedSettings(newSettings); - } - } - }, { - key: "render", - value: function render() { - var _this$props5 = this.props, - clientId = _this$props5.clientId, - isSmallScreen = _this$props5.isSmallScreen, - isSelectedBlockInRoot = _this$props5.isSelectedBlockInRoot; - var templateInProcess = this.state.templateInProcess; - var classes = classnames_default()('editor-inner-blocks', { - 'has-overlay': isSmallScreen && !isSelectedBlockInRoot - }); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes - }, !templateInProcess && Object(external_this_wp_element_["createElement"])(block_list, { - rootClientId: clientId - })); - } - }]); - - return InnerBlocks; -}(external_this_wp_element_["Component"]); - -inner_blocks_InnerBlocks = Object(external_this_wp_compose_["compose"])([context_withBlockEditContext(function (context) { - return Object(external_lodash_["pick"])(context, ['clientId']); -}), Object(external_this_wp_viewport_["withViewportMatch"])({ - isSmallScreen: '< medium' -}), Object(external_this_wp_data_["withSelect"])(function (select, ownProps) { - var _select = select('core/block-editor'), - isBlockSelected = _select.isBlockSelected, - hasSelectedInnerBlock = _select.hasSelectedInnerBlock, - getBlock = _select.getBlock, - getBlockListSettings = _select.getBlockListSettings, - getBlockRootClientId = _select.getBlockRootClientId, - getTemplateLock = _select.getTemplateLock; - - var clientId = ownProps.clientId; - var rootClientId = getBlockRootClientId(clientId); - return { - isSelectedBlockInRoot: isBlockSelected(clientId) || hasSelectedInnerBlock(clientId), - block: getBlock(clientId), - blockListSettings: getBlockListSettings(clientId), - parentLock: getTemplateLock(rootClientId) - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - var _dispatch = dispatch('core/block-editor'), - replaceBlocks = _dispatch.replaceBlocks, - insertBlocks = _dispatch.insertBlocks, - updateBlockListSettings = _dispatch.updateBlockListSettings; - - var block = ownProps.block, - clientId = ownProps.clientId, - _ownProps$templateIns = ownProps.templateInsertUpdatesSelection, - templateInsertUpdatesSelection = _ownProps$templateIns === void 0 ? true : _ownProps$templateIns; - return { - replaceInnerBlocks: function replaceInnerBlocks(blocks) { - var clientIds = Object(external_lodash_["map"])(block.innerBlocks, 'clientId'); - - if (clientIds.length) { - replaceBlocks(clientIds, blocks); - } else { - insertBlocks(blocks, undefined, clientId, templateInsertUpdatesSelection); - } - }, - updateNestedSettings: function updateNestedSettings(settings) { - dispatch(updateBlockListSettings(clientId, settings)); - } - }; -})])(inner_blocks_InnerBlocks); -inner_blocks_InnerBlocks.Content = Object(external_this_wp_blocks_["withBlockContentContext"])(function (_ref) { - var BlockContent = _ref.BlockContent; - return Object(external_this_wp_element_["createElement"])(BlockContent, null); -}); -/* harmony default export */ var inner_blocks = (inner_blocks_InnerBlocks); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inspector-advanced-controls/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var inspector_advanced_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('InspectorAdvancedControls'), - inspector_advanced_controls_Fill = inspector_advanced_controls_createSlotFill.Fill, - inspector_advanced_controls_Slot = inspector_advanced_controls_createSlotFill.Slot; - -var InspectorAdvancedControls = ifBlockEditSelected(inspector_advanced_controls_Fill); -InspectorAdvancedControls.Slot = inspector_advanced_controls_Slot; -/* harmony default export */ var inspector_advanced_controls = (InspectorAdvancedControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/inspector-controls/index.js -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - -var inspector_controls_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('InspectorControls'), - inspector_controls_Fill = inspector_controls_createSlotFill.Fill, - inspector_controls_Slot = inspector_controls_createSlotFill.Slot; - -var InspectorControls = ifBlockEditSelected(inspector_controls_Fill); -InspectorControls.Slot = inspector_controls_Slot; -/* harmony default export */ var inspector_controls = (InspectorControls); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/color-palette/control.js - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - // translators: first %s: The type of color (e.g. background color), second %s: the color name or value (e.g. red or #ff0000) - -var colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(current %s: %s)'); - -function ColorPaletteControl(_ref) { - var colors = _ref.colors, - disableCustomColors = _ref.disableCustomColors, - label = _ref.label, - onChange = _ref.onChange, - value = _ref.value; - var colorObject = utils_getColorObjectByColorValue(colors, value); - var colorName = colorObject && colorObject.name; - var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(colorIndicatorAriaLabel, label.toLowerCase(), colorName || value); - var labelElement = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, label, value && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { - colorValue: value, - "aria-label": ariaLabel - })); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], { - className: "editor-color-palette-control", - label: labelElement - }, Object(external_this_wp_element_["createElement"])(color_palette, Object(esm_extends["a" /* default */])({ - className: "editor-color-palette-control__color-palette", - value: value, - onChange: onChange - }, { - colors: colors, - disableCustomColors: disableCustomColors - }))); -} -/* harmony default export */ var color_palette_control = (Object(external_this_wp_compose_["compose"])([with_color_context, Object(external_this_wp_compose_["ifCondition"])(function (_ref2) { - var hasColorsToChoose = _ref2.hasColorsToChoose; - return hasColorsToChoose; -})])(ColorPaletteControl)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/panel-color-settings/index.js - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - - - -var hasCustomColorsDisabledForSetting = function hasCustomColorsDisabledForSetting(disableCustomColors, colorSetting) { - if (colorSetting.disableCustomColors !== undefined) { - return colorSetting.disableCustomColors; - } - - return disableCustomColors; -}; - -var hasColorsToChooseInSetting = function hasColorsToChooseInSetting() { - var colors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var disableCustomColors = arguments.length > 1 ? arguments[1] : undefined; - var colorSetting = arguments.length > 2 ? arguments[2] : undefined; - - if (!hasCustomColorsDisabledForSetting(disableCustomColors, colorSetting)) { - return true; - } - - return (colorSetting.colors || colors).length > 0; -}; - -var panel_color_settings_hasColorsToChoose = function hasColorsToChoose(_ref) { - var colors = _ref.colors, - disableCustomColors = _ref.disableCustomColors, - colorSettings = _ref.colorSettings; - return Object(external_lodash_["some"])(colorSettings, function (colorSetting) { - return hasColorsToChooseInSetting(colors, disableCustomColors, colorSetting); - }); -}; // translators: first %s: The type of color (e.g. background color), second %s: the color name or value (e.g. red or #ff0000) - - -var panel_color_settings_colorIndicatorAriaLabel = Object(external_this_wp_i18n_["__"])('(%s: %s)'); - -var panel_color_settings_renderColorIndicators = function renderColorIndicators(colorSettings, colors) { - return colorSettings.map(function (_ref2, index) { - var value = _ref2.value, - label = _ref2.label, - availableColors = _ref2.colors; - - if (!value) { - return null; - } - - var colorObject = utils_getColorObjectByColorValue(availableColors || colors, value); - var colorName = colorObject && colorObject.name; - var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(panel_color_settings_colorIndicatorAriaLabel, label.toLowerCase(), colorName || value); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ColorIndicator"], { - key: index, - colorValue: value, - "aria-label": ariaLabel - }); - }); -}; // colorSettings is passed as an array of props so that it can be used for -// mapping both ColorIndicator and ColorPaletteControl components. Passing -// an array of components/nodes here wouldn't be feasible. - - -var PanelColorSettings = Object(external_this_wp_compose_["ifCondition"])(panel_color_settings_hasColorsToChoose)(function (_ref3) { - var children = _ref3.children, - colors = _ref3.colors, - colorSettings = _ref3.colorSettings, - disableCustomColors = _ref3.disableCustomColors, - title = _ref3.title, - props = Object(objectWithoutProperties["a" /* default */])(_ref3, ["children", "colors", "colorSettings", "disableCustomColors", "title"]); - - var className = 'editor-panel-color-settings'; - var titleElement = Object(external_this_wp_element_["createElement"])("span", { - className: "".concat(className, "__panel-title") - }, title, panel_color_settings_renderColorIndicators(colorSettings, colors)); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], Object(esm_extends["a" /* default */])({ - className: className, - title: titleElement - }, props), colorSettings.map(function (settings, index) { - return Object(external_this_wp_element_["createElement"])(color_palette_control, Object(esm_extends["a" /* default */])({ - key: index - }, Object(objectSpread["a" /* default */])({ - colors: colors, - disableCustomColors: disableCustomColors - }, settings))); - }), children); -}); -/* harmony default export */ var panel_color_settings = (with_color_context(PanelColorSettings)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plain-text/index.js - - - - -/** - * External dependencies - */ - - - -function PlainText(_ref) { - var _onChange = _ref.onChange, - className = _ref.className, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["onChange", "className"]); - - return Object(external_this_wp_element_["createElement"])(react_autosize_textarea_lib_default.a, Object(esm_extends["a" /* default */])({ - className: classnames_default()('editor-plain-text', className), - onChange: function onChange(event) { - return _onChange(event.target.value); - } - }, props)); -} - -/* harmony default export */ var plain_text = (PlainText); - -// EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(38); -var memize_default = /*#__PURE__*/__webpack_require__.n(memize); - -// EXTERNAL MODULE: external {"this":["wp","blob"]} -var external_this_wp_blob_ = __webpack_require__(32); - -// EXTERNAL MODULE: external {"this":["wp","deprecated"]} -var external_this_wp_deprecated_ = __webpack_require__(49); -var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/format-edit.js - - -/** - * WordPress dependencies - */ - - - - -var format_edit_FormatEdit = function FormatEdit(_ref) { - var formatTypes = _ref.formatTypes, - onChange = _ref.onChange, - value = _ref.value; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, formatTypes.map(function (_ref2) { - var name = _ref2.name, - Edit = _ref2.edit; - - if (!Edit) { - return null; - } - - var activeFormat = Object(external_this_wp_richText_["getActiveFormat"])(value, name); - var isActive = activeFormat !== undefined; - var activeAttributes = isActive ? activeFormat.attributes || {} : {}; - return Object(external_this_wp_element_["createElement"])(Edit, { - key: name, - isActive: isActive, - activeAttributes: activeAttributes, - value: value, - onChange: onChange - }); - })); -}; - -/* harmony default export */ var format_edit = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/rich-text'), - getFormatTypes = _select.getFormatTypes; - - return { - formatTypes: getFormatTypes() - }; -})(format_edit_FormatEdit)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/format-toolbar/index.js - - -/** - * WordPress dependencies - */ - - -var format_toolbar_FormatToolbar = function FormatToolbar(_ref) { - var controls = _ref.controls; - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-format-toolbar" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, controls.map(function (format) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { - name: "RichText.ToolbarControls.".concat(format), - key: format - }); - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Slot"], { - name: "RichText.ToolbarControls" - }))); -}; - -/* harmony default export */ var format_toolbar = (format_toolbar_FormatToolbar); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/aria.js -/** - * External dependencies - */ - - -var aria_isAriaPropName = function isAriaPropName(name) { - return Object(external_lodash_["startsWith"])(name, 'aria-'); -}; - -var aria_pickAriaProps = function pickAriaProps(props) { - return Object(external_lodash_["pickBy"])(props, function (value, key) { - return aria_isAriaPropName(key) && !Object(external_lodash_["isNil"])(value); - }); -}; -var aria_diffAriaProps = function diffAriaProps(props, nextProps) { - var prevAriaKeys = Object(external_lodash_["keys"])(aria_pickAriaProps(props)); - var nextAriaKeys = Object(external_lodash_["keys"])(aria_pickAriaProps(nextProps)); - var removedKeys = Object(external_lodash_["difference"])(prevAriaKeys, nextAriaKeys); - var updatedKeys = nextAriaKeys.filter(function (key) { - return !Object(external_lodash_["isEqual"])(props[key], nextProps[key]); - }); - return { - removedKeys: removedKeys, - updatedKeys: updatedKeys - }; -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/editable.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Browser dependencies - */ - -var userAgent = window.navigator.userAgent; -/** - * Applies a fix that provides `input` events for contenteditable in Internet Explorer. - * - * @param {Element} editorNode The root editor node. - * - * @return {Function} A function to remove the fix (for cleanup). - */ - -function applyInternetExplorerInputFix(editorNode) { - /** - * Dispatches `input` events in response to `textinput` events. - * - * IE provides a `textinput` event that is similar to an `input` event, - * and we use it to manually dispatch an `input` event. - * `textinput` is dispatched for text entry but for not deletions. - * - * @param {Event} textInputEvent An Internet Explorer `textinput` event. - */ - function mapTextInputEvent(textInputEvent) { - textInputEvent.stopImmediatePropagation(); - var inputEvent = document.createEvent('Event'); - inputEvent.initEvent('input', true, false); - inputEvent.data = textInputEvent.data; - textInputEvent.target.dispatchEvent(inputEvent); - } - /** - * Dispatches `input` events in response to Delete and Backspace keyup. - * - * It would be better dispatch an `input` event after each deleting - * `keydown` because the DOM is updated after each, but it is challenging - * to determine the right time to dispatch `input` since propagation of - * `keydown` can be stopped at any point. - * - * It's easier to listen for `keyup` in the capture phase and dispatch - * `input` before `keyup` propagates further. It's not perfect, but should - * be good enough. - * - * @param {KeyboardEvent} keyUp - * @param {Node} keyUp.target The event target. - * @param {number} keyUp.keyCode The key code. - */ - - - function mapDeletionKeyUpEvents(_ref) { - var target = _ref.target, - keyCode = _ref.keyCode; - var isDeletion = external_this_wp_keycodes_["BACKSPACE"] === keyCode || external_this_wp_keycodes_["DELETE"] === keyCode; - - if (isDeletion && editorNode.contains(target)) { - var inputEvent = document.createEvent('Event'); - inputEvent.initEvent('input', true, false); - inputEvent.data = null; - target.dispatchEvent(inputEvent); - } - } - - editorNode.addEventListener('textinput', mapTextInputEvent); - document.addEventListener('keyup', mapDeletionKeyUpEvents, true); - return function removeInternetExplorerInputFix() { - editorNode.removeEventListener('textinput', mapTextInputEvent); - document.removeEventListener('keyup', mapDeletionKeyUpEvents, true); - }; -} - -var IS_PLACEHOLDER_VISIBLE_ATTR_NAME = 'data-is-placeholder-visible'; -var CLASS_NAME = 'editor-rich-text__editable'; -/** - * Whether or not the user agent is Internet Explorer. - * - * @type {boolean} - */ - -var IS_IE = userAgent.indexOf('Trident') >= 0; - -var editable_Editable = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(Editable, _Component); - - function Editable() { - var _this; - - Object(classCallCheck["a" /* default */])(this, Editable); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(Editable).call(this)); - _this.bindEditorNode = _this.bindEditorNode.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } // We must prevent rerenders because the browser will modify the DOM. React - // will rerender the DOM fine, but we're losing selection and it would be - // more expensive to do so as it would just set the inner HTML through - // `dangerouslySetInnerHTML`. Instead RichText does it's own diffing and - // selection setting. - // - // Because we never update the component, we have to look through props and - // update the attributes on the wrapper nodes here. `componentDidUpdate` - // will never be called. - - - Object(createClass["a" /* default */])(Editable, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate(nextProps) { - var _this2 = this; - - this.configureIsPlaceholderVisible(nextProps.isPlaceholderVisible); - - if (!Object(external_lodash_["isEqual"])(this.props.style, nextProps.style)) { - this.editorNode.setAttribute('style', ''); - Object.assign(this.editorNode.style, nextProps.style); - } - - if (!Object(external_lodash_["isEqual"])(this.props.className, nextProps.className)) { - this.editorNode.className = classnames_default()(nextProps.className, CLASS_NAME); - } - - var _diffAriaProps = aria_diffAriaProps(this.props, nextProps), - removedKeys = _diffAriaProps.removedKeys, - updatedKeys = _diffAriaProps.updatedKeys; - - removedKeys.forEach(function (key) { - return _this2.editorNode.removeAttribute(key); - }); - updatedKeys.forEach(function (key) { - return _this2.editorNode.setAttribute(key, nextProps[key]); - }); - return false; - } - }, { - key: "configureIsPlaceholderVisible", - value: function configureIsPlaceholderVisible(isPlaceholderVisible) { - var isPlaceholderVisibleString = String(!!isPlaceholderVisible); - - if (this.editorNode.getAttribute(IS_PLACEHOLDER_VISIBLE_ATTR_NAME) !== isPlaceholderVisibleString) { - this.editorNode.setAttribute(IS_PLACEHOLDER_VISIBLE_ATTR_NAME, isPlaceholderVisibleString); - } - } - }, { - key: "bindEditorNode", - value: function bindEditorNode(editorNode) { - this.editorNode = editorNode; - - if (this.props.setRef) { - this.props.setRef(editorNode); - } - - if (IS_IE) { - if (editorNode) { - // Mounting: - this.removeInternetExplorerInputFix = applyInternetExplorerInputFix(editorNode); - } else { - // Unmounting: - this.removeInternetExplorerInputFix(); - } - } - } - }, { - key: "render", - value: function render() { - var _objectSpread2; - - var ariaProps = aria_pickAriaProps(this.props); - var _this$props = this.props, - _this$props$tagName = _this$props.tagName, - tagName = _this$props$tagName === void 0 ? 'div' : _this$props$tagName, - style = _this$props.style, - record = _this$props.record, - valueToEditableHTML = _this$props.valueToEditableHTML, - className = _this$props.className, - isPlaceholderVisible = _this$props.isPlaceholderVisible, - onPaste = _this$props.onPaste, - onInput = _this$props.onInput, - onKeyDown = _this$props.onKeyDown, - onCompositionEnd = _this$props.onCompositionEnd, - onFocus = _this$props.onFocus, - onBlur = _this$props.onBlur, - onMouseDown = _this$props.onMouseDown, - onTouchStart = _this$props.onTouchStart; - ariaProps.role = 'textbox'; - ariaProps['aria-multiline'] = true; - return Object(external_this_wp_element_["createElement"])(tagName, Object(objectSpread["a" /* default */])({}, ariaProps, (_objectSpread2 = { - className: classnames_default()(className, CLASS_NAME), - contentEditable: true - }, Object(defineProperty["a" /* default */])(_objectSpread2, IS_PLACEHOLDER_VISIBLE_ATTR_NAME, isPlaceholderVisible), Object(defineProperty["a" /* default */])(_objectSpread2, "ref", this.bindEditorNode), Object(defineProperty["a" /* default */])(_objectSpread2, "style", style), Object(defineProperty["a" /* default */])(_objectSpread2, "suppressContentEditableWarning", true), Object(defineProperty["a" /* default */])(_objectSpread2, "dangerouslySetInnerHTML", { - __html: valueToEditableHTML(record) - }), Object(defineProperty["a" /* default */])(_objectSpread2, "onPaste", onPaste), Object(defineProperty["a" /* default */])(_objectSpread2, "onInput", onInput), Object(defineProperty["a" /* default */])(_objectSpread2, "onFocus", onFocus), Object(defineProperty["a" /* default */])(_objectSpread2, "onBlur", onBlur), Object(defineProperty["a" /* default */])(_objectSpread2, "onKeyDown", onKeyDown), Object(defineProperty["a" /* default */])(_objectSpread2, "onCompositionEnd", onCompositionEnd), Object(defineProperty["a" /* default */])(_objectSpread2, "onMouseDown", onMouseDown), Object(defineProperty["a" /* default */])(_objectSpread2, "onTouchStart", onTouchStart), _objectSpread2))); - } - }]); - - return Editable; -}(external_this_wp_element_["Component"]); - - - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/patterns.js -/** - * WordPress dependencies - */ - - -function getPatterns(_ref) { - var onReplace = _ref.onReplace, - valueToFormat = _ref.valueToFormat, - onCreateUndoLevel = _ref.onCreateUndoLevel, - onChange = _ref.onChange; - var prefixTransforms = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref2) { - var type = _ref2.type; - return type === 'prefix'; - }); - return [function (record) { - if (!onReplace) { - return record; - } - - var start = Object(external_this_wp_richText_["getSelectionStart"])(record); - var text = Object(external_this_wp_richText_["getTextContent"])(record); - var characterBefore = text.slice(start - 1, start); - - if (!/\s/.test(characterBefore)) { - return record; - } - - var trimmedTextBefore = text.slice(0, start).trim(); - var transformation = Object(external_this_wp_blocks_["findTransform"])(prefixTransforms, function (_ref3) { - var prefix = _ref3.prefix; - return trimmedTextBefore === prefix; - }); - - if (!transformation) { - return record; - } - - var content = valueToFormat(Object(external_this_wp_richText_["slice"])(record, start, text.length)); - var block = transformation.transform(content); - onCreateUndoLevel(); - onReplace([block]); - return record; - }, function (record) { - var BACKTICK = '`'; - var start = Object(external_this_wp_richText_["getSelectionStart"])(record); - var text = Object(external_this_wp_richText_["getTextContent"])(record); - var characterBefore = text.slice(start - 1, start); // Quick check the text for the necessary character. - - if (characterBefore !== BACKTICK) { - return record; - } - - var textBefore = text.slice(0, start - 1); - var indexBefore = textBefore.lastIndexOf(BACKTICK); - - if (indexBefore === -1) { - return record; - } - - var startIndex = indexBefore; - var endIndex = start - 2; - - if (startIndex === endIndex) { - return record; - } - - onChange(record); - record = Object(external_this_wp_richText_["remove"])(record, startIndex, startIndex + 1); - record = Object(external_this_wp_richText_["remove"])(record, endIndex, endIndex + 1); - record = Object(external_this_wp_richText_["applyFormat"])(record, { - type: 'code' - }, startIndex, endIndex); - return record; - }]; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/shortcut.js - - - - - - - - - -/** - * WordPress dependencies - */ - - - -var shortcut_RichTextShortcut = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(RichTextShortcut, _Component); - - function RichTextShortcut() { - var _this; - - Object(classCallCheck["a" /* default */])(this, RichTextShortcut); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RichTextShortcut).apply(this, arguments)); - _this.onUse = _this.onUse.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(RichTextShortcut, [{ - key: "onUse", - value: function onUse() { - this.props.onUse(); - return false; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - character = _this$props.character, - type = _this$props.type; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true, - shortcuts: Object(defineProperty["a" /* default */])({}, external_this_wp_keycodes_["rawShortcut"][type](character), this.onUse) - }); - } - }]); - - return RichTextShortcut; -}(external_this_wp_element_["Component"]); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/list-edit.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var _window$Node = window.Node, - TEXT_NODE = _window$Node.TEXT_NODE, - ELEMENT_NODE = _window$Node.ELEMENT_NODE; -/** - * Gets the selected list node, which is the closest list node to the start of - * the selection. - * - * @return {?Element} The selected list node, or undefined if none is selected. - */ - -function getSelectedListNode() { - var selection = window.getSelection(); - - if (selection.rangeCount === 0) { - return; - } - - var _selection$getRangeAt = selection.getRangeAt(0), - startContainer = _selection$getRangeAt.startContainer; - - if (startContainer.nodeType === TEXT_NODE) { - startContainer = startContainer.parentNode; - } - - if (startContainer.nodeType !== ELEMENT_NODE) { - return; - } - - var rootNode = startContainer.closest('*[contenteditable]'); - - if (!rootNode || !rootNode.contains(startContainer)) { - return; - } - - return startContainer.closest('ol,ul'); -} -/** - * Whether or not the root list is selected. - * - * @return {boolean} True if the root list or nothing is selected, false if an - * inner list is selected. - */ - - -function isListRootSelected() { - var listNode = getSelectedListNode(); // Consider the root list selected if nothing is selected. - - return !listNode || listNode.contentEditable === 'true'; -} -/** - * Wether or not the selected list has the given tag name. - * - * @param {string} tagName The tag name the list should have. - * @param {string} rootTagName The current root tag name, to compare with in - * case nothing is selected. - * - * @return {boolean} [description] - */ - - -function isActiveListType(tagName, rootTagName) { - var listNode = getSelectedListNode(); - - if (!listNode) { - return tagName === rootTagName; - } - - return listNode.nodeName.toLowerCase() === tagName; -} - -var list_edit_ListEdit = function ListEdit(_ref) { - var onTagNameChange = _ref.onTagNameChange, - tagName = _ref.tagName, - value = _ref.value, - onChange = _ref.onChange; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { - type: "primary", - character: "[", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["outdentListItems"])(value)); - } - }), Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { - type: "primary", - character: "]", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["indentListItems"])(value, { - type: tagName - })); - } - }), Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { - type: "primary", - character: "m", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["indentListItems"])(value, { - type: tagName - })); - } - }), Object(external_this_wp_element_["createElement"])(shortcut_RichTextShortcut, { - type: "primaryShift", - character: "m", - onUse: function onUse() { - onChange(Object(external_this_wp_richText_["outdentListItems"])(value)); - } - }), Object(external_this_wp_element_["createElement"])(block_format_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: [onTagNameChange && { - icon: 'editor-ul', - title: Object(external_this_wp_i18n_["__"])('Convert to unordered list'), - isActive: isActiveListType('ul', tagName), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["changeListType"])(value, { - type: 'ul' - })); - - if (isListRootSelected()) { - onTagNameChange('ul'); - } - } - }, onTagNameChange && { - icon: 'editor-ol', - title: Object(external_this_wp_i18n_["__"])('Convert to ordered list'), - isActive: isActiveListType('ol', tagName), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["changeListType"])(value, { - type: 'ol' - })); - - if (isListRootSelected()) { - onTagNameChange('ol'); - } - } - }, { - icon: 'editor-outdent', - title: Object(external_this_wp_i18n_["__"])('Outdent list item'), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["outdentListItems"])(value)); - } - }, { - icon: 'editor-indent', - title: Object(external_this_wp_i18n_["__"])('Indent list item'), - onClick: function onClick() { - onChange(Object(external_this_wp_richText_["indentListItems"])(value, { - type: tagName - })); - } - }].filter(Boolean) - }))); -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/remove-browser-shortcuts.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Set of keyboard shortcuts handled internally by RichText. - * - * @type {Array} - */ - -var HANDLED_SHORTCUTS = [external_this_wp_keycodes_["rawShortcut"].primary('z'), external_this_wp_keycodes_["rawShortcut"].primaryShift('z'), external_this_wp_keycodes_["rawShortcut"].primary('y')]; -/** - * An instance of a KeyboardShortcuts element pre-bound for the handled - * shortcuts. Since shortcuts never change, the element can be considered - * static, and can be skipped in reconciliation. - * - * @type {WPElement} - */ - -var SHORTCUTS_ELEMENT = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true, - shortcuts: Object(external_lodash_["fromPairs"])(HANDLED_SHORTCUTS.map(function (shortcut) { - return [shortcut, function (event) { - return event.preventDefault(); - }]; - })) -}); -/** - * Component which registered keyboard event handlers to prevent default - * behaviors for key combinations otherwise handled internally by RichText. - * - * @return {WPElement} WordPress element. - */ - -var RemoveBrowserShortcuts = function RemoveBrowserShortcuts() { - return SHORTCUTS_ELEMENT; -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/toolbar-button.js - - - - -/** - * WordPress dependencies - */ - - -function RichTextToolbarButton(_ref) { - var name = _ref.name, - shortcutType = _ref.shortcutType, - shortcutCharacter = _ref.shortcutCharacter, - props = Object(objectWithoutProperties["a" /* default */])(_ref, ["name", "shortcutType", "shortcutCharacter"]); - - var shortcut; - var fillName = 'RichText.ToolbarControls'; - - if (name) { - fillName += ".".concat(name); - } - - if (shortcutType && shortcutCharacter) { - shortcut = external_this_wp_keycodes_["displayShortcut"][shortcutType](shortcutCharacter); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Fill"], { - name: fillName - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], Object(esm_extends["a" /* default */])({}, props, { - shortcut: shortcut - }))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/inserter-list-item.js - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - -function isResult(keywords, filterValue) { - return keywords.some(function (string) { - return menu_normalizeTerm(string).indexOf(menu_normalizeTerm(filterValue)) !== -1; - }); -} - -var RichTextInserterItem = Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var name = _ref.name; - return { - formatType: select('core/rich-text').getFormatType(name) - }; -})(function (props) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Fill"], { - name: "Inserter.InlineElements" - }, function (_ref2) { - var filterValue = _ref2.filterValue; - var _props$formatType = props.formatType, - _props$formatType$key = _props$formatType.keywords, - keywords = _props$formatType$key === void 0 ? [] : _props$formatType$key, - title = _props$formatType.title; - keywords.push(title, props.title); - - if (filterValue && !isResult(keywords, filterValue)) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(inserter_list_item, Object(esm_extends["a" /* default */])({}, props, { - icon: Object(external_this_wp_blocks_["normalizeIconObject"])(props.icon) - })); - }); -}); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/input-event.js - - - - - - - -/** - * WordPress dependencies - */ - -var input_event_UnstableRichTextInputEvent = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(UnstableRichTextInputEvent, _Component); - - function UnstableRichTextInputEvent() { - var _this; - - Object(classCallCheck["a" /* default */])(this, UnstableRichTextInputEvent); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(UnstableRichTextInputEvent).apply(this, arguments)); - _this.onInput = _this.onInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(UnstableRichTextInputEvent, [{ - key: "onInput", - value: function onInput(event) { - if (event.inputType === this.props.inputType) { - this.props.onInput(); - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - document.addEventListener('input', this.onInput, true); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - document.removeEventListener('input', this.onInput, true); - } - }, { - key: "render", - value: function render() { - return null; - } - }]); - - return UnstableRichTextInputEvent; -}(external_this_wp_element_["Component"]); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/rich-text/index.js - - - - - - - - - - - - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - - - - - - - - - - -/** - * Internal dependencies - */ - - - - - - - - - - - -/** - * Browser dependencies - */ - -var rich_text_window = window, - rich_text_getSelection = rich_text_window.getSelection, - getComputedStyle = rich_text_window.getComputedStyle; -/** - * All inserting input types that would insert HTML into the DOM. - * - * @see https://www.w3.org/TR/input-events-2/#interface-InputEvent-Attributes - * - * @type {Set} - */ - -var INSERTION_INPUT_TYPES_TO_IGNORE = new Set(['insertParagraph', 'insertOrderedList', 'insertUnorderedList', 'insertHorizontalRule', 'insertLink']); -var rich_text_RichText = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(RichText, _Component); - - function RichText(_ref) { - var _this; - - var value = _ref.value, - onReplace = _ref.onReplace, - multiline = _ref.multiline; - - Object(classCallCheck["a" /* default */])(this, RichText); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(RichText).apply(this, arguments)); - - if (multiline === true || multiline === 'p' || multiline === 'li') { - _this.multilineTag = multiline === true ? 'p' : multiline; - } - - if (_this.multilineTag === 'li') { - _this.multilineWrapperTags = ['ul', 'ol']; - } - - if (_this.props.onSplit) { - _this.onSplit = _this.props.onSplit; - external_this_wp_deprecated_default()('wp.editor.RichText onSplit prop', { - plugin: 'Gutenberg', - alternative: 'wp.editor.RichText unstableOnSplit prop' - }); - } else if (_this.props.unstableOnSplit) { - _this.onSplit = _this.props.unstableOnSplit; - } - - _this.onFocus = _this.onFocus.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onBlur = _this.onBlur.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onDeleteKeyDown = _this.onDeleteKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onPaste = _this.onPaste.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onCreateUndoLevel = _this.onCreateUndoLevel.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setFocusedElement = _this.setFocusedElement.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onInput = _this.onInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onCompositionEnd = _this.onCompositionEnd.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSelectionChange = _this.onSelectionChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.getRecord = _this.getRecord.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.createRecord = _this.createRecord.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.applyRecord = _this.applyRecord.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.isEmpty = _this.isEmpty.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.valueToFormat = _this.valueToFormat.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.setRef = _this.setRef.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.valueToEditableHTML = _this.valueToEditableHTML.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.handleHorizontalNavigation = _this.handleHorizontalNavigation.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onPointerDown = _this.onPointerDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.formatToValue = memize_default()(_this.formatToValue.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), { - size: 1 - }); - _this.savedContent = value; - _this.patterns = getPatterns({ - onReplace: onReplace, - onCreateUndoLevel: _this.onCreateUndoLevel, - valueToFormat: _this.valueToFormat, - onChange: _this.onChange - }); - _this.enterPatterns = Object(external_this_wp_blocks_["getBlockTransforms"])('from').filter(function (_ref2) { - var type = _ref2.type; - return type === 'enter'; - }); - _this.state = {}; - _this.usedDeprecatedChildrenSource = Array.isArray(value); - _this.lastHistoryValue = value; - return _this; - } - - Object(createClass["a" /* default */])(RichText, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - document.removeEventListener('selectionchange', this.onSelectionChange); - } - }, { - key: "setRef", - value: function setRef(node) { - if (node) { - if (false) { var computedStyle; } - - this.editableRef = node; - } else { - delete this.editableRef; - } - } - }, { - key: "setFocusedElement", - value: function setFocusedElement() { - if (this.props.setFocusedElement) { - this.props.setFocusedElement(this.props.instanceId); - } - } - /** - * Get the current record (value and selection) from props and state. - * - * @return {Object} The current record (value and selection). - */ - - }, { - key: "getRecord", - value: function getRecord() { - var _this$formatToValue = this.formatToValue(this.props.value), - formats = _this$formatToValue.formats, - text = _this$formatToValue.text; - - var _this$state = this.state, - start = _this$state.start, - end = _this$state.end, - selectedFormat = _this$state.selectedFormat; - return { - formats: formats, - text: text, - start: start, - end: end, - selectedFormat: selectedFormat - }; - } - }, { - key: "createRecord", - value: function createRecord() { - var selection = rich_text_getSelection(); - var range = selection.rangeCount > 0 ? selection.getRangeAt(0) : null; - return Object(external_this_wp_richText_["create"])({ - element: this.editableRef, - range: range, - multilineTag: this.multilineTag, - multilineWrapperTags: this.multilineWrapperTags, - prepareEditableTree: this.props.prepareEditableTree - }); - } - }, { - key: "applyRecord", - value: function applyRecord(record) { - var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - domOnly = _ref3.domOnly; - - Object(external_this_wp_richText_["apply"])({ - value: record, - current: this.editableRef, - multilineTag: this.multilineTag, - multilineWrapperTags: this.multilineWrapperTags, - prepareEditableTree: this.props.prepareEditableTree, - __unstableDomOnly: domOnly - }); - } - }, { - key: "isEmpty", - value: function isEmpty() { - return Object(external_this_wp_richText_["isEmpty"])(this.formatToValue(this.props.value)); - } - /** - * Handles a paste event. - * - * Saves the pasted data as plain text in `pastedPlainText`. - * - * @param {PasteEvent} event The paste event. - */ - - }, { - key: "onPaste", - value: function onPaste(event) { - var clipboardData = event.clipboardData; - var items = clipboardData.items, - files = clipboardData.files; // In Edge these properties can be null instead of undefined, so a more - // rigorous test is required over using default values. - - items = Object(external_lodash_["isNil"])(items) ? [] : items; - files = Object(external_lodash_["isNil"])(files) ? [] : files; - var plainText = ''; - var html = ''; // IE11 only supports `Text` as an argument for `getData` and will - // otherwise throw an invalid argument error, so we try the standard - // arguments first, then fallback to `Text` if they fail. - - try { - plainText = clipboardData.getData('text/plain'); - html = clipboardData.getData('text/html'); - } catch (error1) { - try { - html = clipboardData.getData('Text'); - } catch (error2) { - // Some browsers like UC Browser paste plain text by default and - // don't support clipboardData at all, so allow default - // behaviour. - return; - } - } - - event.preventDefault(); // Allows us to ask for this information when we get a report. - - window.console.log('Received HTML:\n\n', html); - window.console.log('Received plain text:\n\n', plainText); // Only process file if no HTML is present. - // Note: a pasted file may have the URL as plain text. - - var item = Object(external_lodash_["find"])([].concat(Object(toConsumableArray["a" /* default */])(items), Object(toConsumableArray["a" /* default */])(files)), function (_ref4) { - var type = _ref4.type; - return /^image\/(?:jpe?g|png|gif)$/.test(type); - }); - - if (item && !html) { - var file = item.getAsFile ? item.getAsFile() : item; - - var _content = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: ""), - mode: 'BLOCKS', - tagName: this.props.tagName - }); - - var _shouldReplace = this.props.onReplace && this.isEmpty(); // Allows us to ask for this information when we get a report. - - - window.console.log('Received item:\n\n', file); - - if (_shouldReplace) { - this.props.onReplace(_content); - } else if (this.onSplit) { - this.splitContent(_content); - } - - return; - } - - var record = this.getRecord(); // There is a selection, check if a URL is pasted. - - if (!Object(external_this_wp_richText_["isCollapsed"])(record)) { - var pastedText = (html || plainText).replace(/<[^>]+>/g, '').trim(); // A URL was pasted, turn the selection into a link - - if (Object(external_this_wp_url_["isURL"])(pastedText)) { - this.onChange(Object(external_this_wp_richText_["applyFormat"])(record, { - type: 'a', - attributes: { - href: Object(external_this_wp_htmlEntities_["decodeEntities"])(pastedText) - } - })); // Allows us to ask for this information when we get a report. - - window.console.log('Created link:\n\n', pastedText); - return; - } - } - - var shouldReplace = this.props.onReplace && this.isEmpty(); - var mode = 'INLINE'; - - if (shouldReplace) { - mode = 'BLOCKS'; - } else if (this.onSplit) { - mode = 'AUTO'; - } - - var content = Object(external_this_wp_blocks_["pasteHandler"])({ - HTML: html, - plainText: plainText, - mode: mode, - tagName: this.props.tagName, - canUserUseUnfilteredHTML: this.props.canUserUseUnfilteredHTML - }); - - if (typeof content === 'string') { - var recordToInsert = Object(external_this_wp_richText_["create"])({ - html: content - }); - this.onChange(Object(external_this_wp_richText_["insert"])(record, recordToInsert)); - } else if (this.onSplit) { - if (!content.length) { - return; - } - - if (shouldReplace) { - this.props.onReplace(content); - } else { - this.splitContent(content, { - paste: true - }); - } - } - } - /** - * Handles a focus event on the contenteditable field, calling the - * `unstableOnFocus` prop callback if one is defined. The callback does not - * receive any arguments. - * - * This is marked as a private API and the `unstableOnFocus` prop is not - * documented, as the current requirements where it is used are subject to - * future refactoring following `isSelected` handling. - * - * In contrast with `setFocusedElement`, this is only triggered in response - * to focus within the contenteditable field, whereas `setFocusedElement` - * is triggered on focus within any `RichText` descendent element. - * - * @see setFocusedElement - * - * @private - */ - - }, { - key: "onFocus", - value: function onFocus() { - var unstableOnFocus = this.props.unstableOnFocus; - - if (unstableOnFocus) { - unstableOnFocus(); - } - - document.addEventListener('selectionchange', this.onSelectionChange); - } - }, { - key: "onBlur", - value: function onBlur() { - document.removeEventListener('selectionchange', this.onSelectionChange); - } - /** - * Handle input on the next selection change event. - * - * @param {SyntheticEvent} event Synthetic input event. - */ - - }, { - key: "onInput", - value: function onInput(event) { - // For Input Method Editor (IME), used in Chinese, Japanese, and Korean - // (CJK), do not trigger a change if characters are being composed. - // Browsers setting `isComposing` to `true` will usually emit a final - // `input` event when the characters are composed. - if (event && event.nativeEvent.isComposing) { - return; - } - - if (event && event.nativeEvent.inputType) { - var inputType = event.nativeEvent.inputType; // The browser formatted something or tried to insert HTML. - // Overwrite it. It will be handled later by the format library if - // needed. - - if (inputType.indexOf('format') === 0 || INSERTION_INPUT_TYPES_TO_IGNORE.has(inputType)) { - this.applyRecord(this.getRecord()); - return; - } - } - - var selectedFormat = this.state.selectedFormat; - - var _this$patterns$reduce = this.patterns.reduce(function (accumlator, transform) { - return transform(accumlator); - }, this.createRecord()), - formats = _this$patterns$reduce.formats, - text = _this$patterns$reduce.text, - start = _this$patterns$reduce.start, - end = _this$patterns$reduce.end; - - if (this.formatPlaceholder) { - formats[this.state.start] = formats[this.state.start] || []; - formats[this.state.start].push(this.formatPlaceholder); - selectedFormat = formats[this.state.start].length; - } else if (selectedFormat) { - var formatsBefore = formats[start - 1] || []; - var formatsAfter = formats[start] || []; - var source = formatsBefore; - - if (formatsAfter.length > formatsBefore.length) { - source = formatsAfter; - } - - source = source.slice(0, selectedFormat); - formats[this.state.start] = source; - } else { - delete formats[this.state.start]; - } - - this.onChange({ - formats: formats, - text: text, - start: start, - end: end, - selectedFormat: selectedFormat - }, { - withoutHistory: true - }); // Create an undo level when input stops for over a second. - - this.props.clearTimeout(this.onInput.timeout); - this.onInput.timeout = this.props.setTimeout(this.onCreateUndoLevel, 1000); - } - }, { - key: "onCompositionEnd", - value: function onCompositionEnd() { - // Ensure the value is up-to-date for browsers that don't emit a final - // input event after composition. - this.onInput(); - } - /** - * Handles the `selectionchange` event: sync the selection to local state. - */ - - }, { - key: "onSelectionChange", - value: function onSelectionChange() { - if (this.ignoreSelectionChange) { - delete this.ignoreSelectionChange; - return; - } - - var value = this.createRecord(); - var start = value.start, - end = value.end, - formats = value.formats; - - if (start !== this.state.start || end !== this.state.end) { - var isCaretWithinFormattedText = this.props.isCaretWithinFormattedText; - - if (!isCaretWithinFormattedText && formats[start]) { - this.props.onEnterFormattedText(); - } else if (isCaretWithinFormattedText && !formats[start]) { - this.props.onExitFormattedText(); - } - - var selectedFormat; - - if (Object(external_this_wp_richText_["isCollapsed"])(value)) { - var formatsBefore = formats[start - 1] || []; - var formatsAfter = formats[start] || []; - selectedFormat = Math.min(formatsBefore.length, formatsAfter.length); - } - - this.setState({ - start: start, - end: end, - selectedFormat: selectedFormat - }); - this.applyRecord(Object(objectSpread["a" /* default */])({}, value, { - selectedFormat: selectedFormat - }), { - domOnly: true - }); - delete this.formatPlaceholder; - } - } - /** - * Calls all registered onChangeEditableValue handlers. - * - * @param {Array} formats The formats of the latest rich-text value. - * @param {string} text The text of the latest rich-text value. - */ - - }, { - key: "onChangeEditableValue", - value: function onChangeEditableValue(_ref5) { - var formats = _ref5.formats, - text = _ref5.text; - Object(external_lodash_["get"])(this.props, ['onChangeEditableValue'], []).forEach(function (eventHandler) { - eventHandler(formats, text); - }); - } - /** - * Sync the value to global state. The node tree and selection will also be - * updated if differences are found. - * - * @param {Object} record The record to sync and apply. - * @param {Object} $2 Named options. - * @param {boolean} $2.withoutHistory If true, no undo level will be - * created. - */ - - }, { - key: "onChange", - value: function onChange(record) { - var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - withoutHistory = _ref6.withoutHistory; - - this.applyRecord(record); - var start = record.start, - end = record.end, - formatPlaceholder = record.formatPlaceholder, - selectedFormat = record.selectedFormat; - this.formatPlaceholder = formatPlaceholder; - this.onChangeEditableValue(record); - this.savedContent = this.valueToFormat(record); - this.props.onChange(this.savedContent); - this.setState({ - start: start, - end: end, - selectedFormat: selectedFormat - }); - - if (!withoutHistory) { - this.onCreateUndoLevel(); - } - } - }, { - key: "onCreateUndoLevel", - value: function onCreateUndoLevel() { - // If the content is the same, no level needs to be created. - if (this.lastHistoryValue === this.savedContent) { - return; - } - - this.props.onCreateUndoLevel(); - this.lastHistoryValue = this.savedContent; - } - /** - * Handles a delete keyDown event to handle merge or removal for collapsed - * selection where caret is at directional edge: forward for a delete key, - * reverse for a backspace key. - * - * @link https://en.wikipedia.org/wiki/Caret_navigation - * - * @param {KeyboardEvent} event Keydown event. - */ - - }, { - key: "onDeleteKeyDown", - value: function onDeleteKeyDown(event) { - var _this$props = this.props, - onMerge = _this$props.onMerge, - onRemove = _this$props.onRemove; - - if (!onMerge && !onRemove) { - return; - } - - var keyCode = event.keyCode; - var isReverse = keyCode === external_this_wp_keycodes_["BACKSPACE"]; // Only process delete if the key press occurs at uncollapsed edge. - - if (!Object(external_this_wp_richText_["isCollapsed"])(this.createRecord())) { - return; - } - - var empty = this.isEmpty(); // It is important to consider emptiness because an empty container - // will include a padding BR node _after_ the caret, so in a forward - // deletion the isHorizontalEdge function will incorrectly interpret the - // presence of the BR node as not being at the edge. - - var isEdge = empty || Object(external_this_wp_dom_["isHorizontalEdge"])(this.editableRef, isReverse); - - if (!isEdge) { - return; - } - - if (onMerge) { - onMerge(!isReverse); - } // Only handle remove on Backspace. This serves dual-purpose of being - // an intentional user interaction distinguishing between Backspace and - // Delete to remove the empty field, but also to avoid merge & remove - // causing destruction of two fields (merge, then removed merged). - - - if (onRemove && empty && isReverse) { - onRemove(!isReverse); - } - - event.preventDefault(); - } - /** - * Handles a keydown event. - * - * @param {SyntheticEvent} event A synthetic keyboard event. - */ - - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var keyCode = event.keyCode, - shiftKey = event.shiftKey, - altKey = event.altKey, - metaKey = event.metaKey, - ctrlKey = event.ctrlKey; - - if ( // Only override left and right keys without modifiers pressed. - !shiftKey && !altKey && !metaKey && !ctrlKey && (keyCode === external_this_wp_keycodes_["LEFT"] || keyCode === external_this_wp_keycodes_["RIGHT"])) { - this.handleHorizontalNavigation(event); - } - - if (keyCode === external_this_wp_keycodes_["DELETE"] || keyCode === external_this_wp_keycodes_["BACKSPACE"]) { - var value = this.createRecord(); - var start = Object(external_this_wp_richText_["getSelectionStart"])(value); - var end = Object(external_this_wp_richText_["getSelectionEnd"])(value); // Always handle full content deletion ourselves. - - if (start === 0 && end !== 0 && end === value.text.length) { - this.onChange(Object(external_this_wp_richText_["remove"])(value)); - event.preventDefault(); - return; - } - - if (this.multilineTag) { - var newValue; - - if (keyCode === external_this_wp_keycodes_["BACKSPACE"]) { - if (Object(external_this_wp_richText_["charAt"])(value, start - 1) === external_this_wp_richText_["LINE_SEPARATOR"]) { - newValue = Object(external_this_wp_richText_["remove"])(value, // Only remove the line if the selection is - // collapsed. - Object(external_this_wp_richText_["isCollapsed"])(value) ? start - 1 : start, end); - } - } else if (Object(external_this_wp_richText_["charAt"])(value, end) === external_this_wp_richText_["LINE_SEPARATOR"]) { - newValue = Object(external_this_wp_richText_["remove"])(value, start, // Only remove the line if the selection is collapsed. - Object(external_this_wp_richText_["isCollapsed"])(value) ? end + 1 : end); - } - - if (newValue) { - this.onChange(newValue); - event.preventDefault(); - } - } - - this.onDeleteKeyDown(event); - } else if (keyCode === external_this_wp_keycodes_["ENTER"]) { - event.preventDefault(); - var record = this.createRecord(); - - if (this.props.onReplace) { - var text = Object(external_this_wp_richText_["getTextContent"])(record); - var transformation = Object(external_this_wp_blocks_["findTransform"])(this.enterPatterns, function (item) { - return item.regExp.test(text); - }); - - if (transformation) { - this.props.onReplace([transformation.transform({ - content: text - })]); - return; - } - } - - if (this.multilineTag) { - if (event.shiftKey) { - this.onChange(Object(external_this_wp_richText_["insertLineBreak"])(record)); - } else if (this.onSplit && Object(external_this_wp_richText_["isEmptyLine"])(record)) { - this.onSplit.apply(this, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(record).map(this.valueToFormat))); - } else { - this.onChange(Object(external_this_wp_richText_["insertLineSeparator"])(record)); - } - } else if (event.shiftKey || !this.onSplit) { - this.onChange(Object(external_this_wp_richText_["insertLineBreak"])(record)); - } else { - this.splitContent(); - } - } - } - /** - * Handles horizontal keyboard navigation when no modifiers are pressed. The - * navigation is handled separately to move correctly around format - * boundaries. - * - * @param {SyntheticEvent} event A synthetic keyboard event. - */ - - }, { - key: "handleHorizontalNavigation", - value: function handleHorizontalNavigation(event) { - var value = this.createRecord(); - var formats = value.formats, - text = value.text, - start = value.start, - end = value.end; - var selectedFormat = this.state.selectedFormat; - var collapsed = Object(external_this_wp_richText_["isCollapsed"])(value); - var isReverse = event.keyCode === external_this_wp_keycodes_["LEFT"]; - delete this.formatPlaceholder; // If the selection is collapsed and at the very start, do nothing if - // navigating backward. - // If the selection is collapsed and at the very end, do nothing if - // navigating forward. - - if (collapsed && selectedFormat === 0) { - if (start === 0 && isReverse) { - return; - } - - if (end === text.length && !isReverse) { - return; - } - } // If the selection is not collapsed, let the browser handle collapsing - // the selection for now. Later we could expand this logic to set - // boundary positions if needed. - - - if (!collapsed) { - return; - } // In all other cases, prevent default behaviour. - - - event.preventDefault(); // Ignore the selection change handler when setting selection, all state - // will be set here. - - this.ignoreSelectionChange = true; - var formatsBefore = formats[start - 1] || []; - var formatsAfter = formats[start] || []; - var newSelectedFormat = selectedFormat; // If the amount of formats before the caret and after the caret is - // different, the caret is at a format boundary. - - if (formatsBefore.length < formatsAfter.length) { - if (!isReverse && selectedFormat < formatsAfter.length) { - newSelectedFormat++; - } - - if (isReverse && selectedFormat > formatsBefore.length) { - newSelectedFormat--; - } - } else if (formatsBefore.length > formatsAfter.length) { - if (!isReverse && selectedFormat > formatsAfter.length) { - newSelectedFormat--; - } - - if (isReverse && selectedFormat < formatsBefore.length) { - newSelectedFormat++; - } - } - - if (newSelectedFormat !== selectedFormat) { - this.applyRecord(Object(objectSpread["a" /* default */])({}, value, { - selectedFormat: newSelectedFormat - })); - this.setState({ - selectedFormat: newSelectedFormat - }); - return; - } - - var newPos = value.start + (isReverse ? -1 : 1); - this.setState({ - start: newPos, - end: newPos - }); - this.applyRecord(Object(objectSpread["a" /* default */])({}, value, { - start: newPos, - end: newPos, - selectedFormat: isReverse ? formatsBefore.length : formatsAfter.length - })); - } - /** - * Splits the content at the location of the selection. - * - * Replaces the content of the editor inside this element with the contents - * before the selection. Sends the elements after the selection to the `onSplit` - * handler. - * - * @param {Array} blocks The blocks to add after the split point. - * @param {Object} context The context for splitting. - */ - - }, { - key: "splitContent", - value: function splitContent() { - var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!this.onSplit) { - return; - } - - var record = this.createRecord(); - - var _split = Object(external_this_wp_richText_["split"])(record), - _split2 = Object(slicedToArray["a" /* default */])(_split, 2), - before = _split2[0], - after = _split2[1]; // In case split occurs at the trailing or leading edge of the field, - // assume that the before/after values respectively reflect the current - // value. This also provides an opportunity for the parent component to - // determine whether the before/after value has changed using a trivial - // strict equality operation. - - - if (Object(external_this_wp_richText_["isEmpty"])(after)) { - before = record; - } else if (Object(external_this_wp_richText_["isEmpty"])(before)) { - after = record; - } // If pasting and the split would result in no content other than the - // pasted blocks, remove the before and after blocks. - - - if (context.paste) { - before = Object(external_this_wp_richText_["isEmpty"])(before) ? null : before; - after = Object(external_this_wp_richText_["isEmpty"])(after) ? null : after; - } - - if (before) { - before = this.valueToFormat(before); - } - - if (after) { - after = this.valueToFormat(after); - } - - this.onSplit.apply(this, [before, after].concat(Object(toConsumableArray["a" /* default */])(blocks))); - } - /** - * Select object when they are clicked. The browser will not set any - * selection when clicking e.g. an image. - * - * @param {SyntheticEvent} event Synthetic mousedown or touchstart event. - */ - - }, { - key: "onPointerDown", - value: function onPointerDown(event) { - var target = event.target; // If the child element has no text content, it must be an object. - - if (target === this.editableRef || target.textContent) { - return; - } - - var parentNode = target.parentNode; - var index = Array.from(parentNode.childNodes).indexOf(target); - var range = target.ownerDocument.createRange(); - var selection = rich_text_getSelection(); - range.setStart(target.parentNode, index); - range.setEnd(target.parentNode, index + 1); - selection.removeAllRanges(); - selection.addRange(range); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this2 = this; - - var _this$props2 = this.props, - tagName = _this$props2.tagName, - value = _this$props2.value, - isSelected = _this$props2.isSelected; - - if (tagName === prevProps.tagName && value !== prevProps.value && value !== this.savedContent) { - // Handle deprecated `children` and `node` sources. - // The old way of passing a value with the `node` matcher required - // the value to be mapped first, creating a new array each time, so - // a shallow check wouldn't work. We need to check deep equality. - // This is only executed for a deprecated API and will eventually be - // removed. - if (Array.isArray(value) && Object(external_lodash_["isEqual"])(value, this.savedContent)) { - return; - } - - var record = this.formatToValue(value); - - if (isSelected) { - var prevRecord = this.formatToValue(prevProps.value); - var length = Object(external_this_wp_richText_["getTextContent"])(prevRecord).length; - record.start = length; - record.end = length; - } - - this.applyRecord(record); - this.savedContent = value; - } // If any format props update, reapply value. - - - var shouldReapply = Object.keys(this.props).some(function (name) { - if (name.indexOf('format_') !== 0) { - return false; - } // Allow primitives and arrays: - - - if (!Object(external_lodash_["isPlainObject"])(_this2.props[name])) { - return _this2.props[name] !== prevProps[name]; - } - - return Object.keys(_this2.props[name]).some(function (subName) { - return _this2.props[name][subName] !== prevProps[name][subName]; - }); - }); - - if (shouldReapply) { - var _record = this.formatToValue(value); // Maintain the previous selection if the instance is currently - // selected. - - - if (isSelected) { - _record.start = this.state.start; - _record.end = this.state.end; - } - - this.applyRecord(_record); - } - } - /** - * Get props that are provided by formats to modify RichText. - * - * @return {Object} Props that start with 'format_'. - */ - - }, { - key: "getFormatProps", - value: function getFormatProps() { - return Object(external_lodash_["pickBy"])(this.props, function (propValue, name) { - return name.startsWith('format_'); - }); - } - /** - * Converts the outside data structure to our internal representation. - * - * @param {*} value The outside value, data type depends on props. - * @return {Object} An internal rich-text value. - */ - - }, { - key: "formatToValue", - value: function formatToValue(value) { - // Handle deprecated `children` and `node` sources. - if (Array.isArray(value)) { - return Object(external_this_wp_richText_["create"])({ - html: external_this_wp_blocks_["children"].toHTML(value), - multilineTag: this.multilineTag, - multilineWrapperTags: this.multilineWrapperTags - }); - } - - if (this.props.format === 'string') { - return Object(external_this_wp_richText_["create"])({ - html: value, - multilineTag: this.multilineTag, - multilineWrapperTags: this.multilineWrapperTags - }); - } // Guard for blocks passing `null` in onSplit callbacks. May be removed - // if onSplit is revised to not pass a `null` value. - - - if (value === null) { - return Object(external_this_wp_richText_["create"])(); - } - - return value; - } - }, { - key: "valueToEditableHTML", - value: function valueToEditableHTML(value) { - return Object(external_this_wp_richText_["unstableToDom"])({ - value: value, - multilineTag: this.multilineTag, - multilineWrapperTags: this.multilineWrapperTags, - prepareEditableTree: this.props.prepareEditableTree - }).body.innerHTML; - } - /** - * Removes editor only formats from the value. - * - * Editor only formats are applied using `prepareEditableTree`, so we need to - * remove them before converting the internal state - * - * @param {Object} value The internal rich-text value. - * @return {Object} A new rich-text value. - */ - - }, { - key: "removeEditorOnlyFormats", - value: function removeEditorOnlyFormats(value) { - this.props.formatTypes.forEach(function (formatType) { - // Remove formats created by prepareEditableTree, because they are editor only. - if (formatType.__experimentalCreatePrepareEditableTree) { - value = Object(external_this_wp_richText_["removeFormat"])(value, formatType.name, 0, value.text.length); - } - }); - return value; - } - /** - * Converts the internal value to the external data format. - * - * @param {Object} value The internal rich-text value. - * @return {*} The external data format, data type depends on props. - */ - - }, { - key: "valueToFormat", - value: function valueToFormat(value) { - value = this.removeEditorOnlyFormats(value); // Handle deprecated `children` and `node` sources. - - if (this.usedDeprecatedChildrenSource) { - return external_this_wp_blocks_["children"].fromDOM(Object(external_this_wp_richText_["unstableToDom"])({ - value: value, - multilineTag: this.multilineTag, - multilineWrapperTags: this.multilineWrapperTags, - isEditableTree: false - }).body.childNodes); - } - - if (this.props.format === 'string') { - return Object(external_this_wp_richText_["toHTMLString"])({ - value: value, - multilineTag: this.multilineTag, - multilineWrapperTags: this.multilineWrapperTags - }); - } - - return value; - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props3 = this.props, - _this$props3$tagName = _this$props3.tagName, - Tagname = _this$props3$tagName === void 0 ? 'div' : _this$props3$tagName, - style = _this$props3.style, - wrapperClassName = _this$props3.wrapperClassName, - className = _this$props3.className, - _this$props3$inlineTo = _this$props3.inlineToolbar, - inlineToolbar = _this$props3$inlineTo === void 0 ? false : _this$props3$inlineTo, - formattingControls = _this$props3.formattingControls, - placeholder = _this$props3.placeholder, - _this$props3$keepPlac = _this$props3.keepPlaceholderOnFocus, - keepPlaceholderOnFocus = _this$props3$keepPlac === void 0 ? false : _this$props3$keepPlac, - isSelected = _this$props3.isSelected, - autocompleters = _this$props3.autocompleters, - onTagNameChange = _this$props3.onTagNameChange; // Generating a key that includes `tagName` ensures that if the tag - // changes, we replace the relevant element. This is needed because we - // prevent Editable component updates. - - var key = Tagname; - var MultilineTag = this.multilineTag; - var ariaProps = aria_pickAriaProps(this.props); - var isPlaceholderVisible = placeholder && (!isSelected || keepPlaceholderOnFocus) && this.isEmpty(); - var classes = classnames_default()(wrapperClassName, 'editor-rich-text'); - var record = this.getRecord(); - return Object(external_this_wp_element_["createElement"])("div", { - className: classes, - onFocus: this.setFocusedElement - }, isSelected && this.multilineTag === 'li' && Object(external_this_wp_element_["createElement"])(list_edit_ListEdit, { - onTagNameChange: onTagNameChange, - tagName: Tagname, - value: record, - onChange: this.onChange - }), isSelected && !inlineToolbar && Object(external_this_wp_element_["createElement"])(block_format_controls, null, Object(external_this_wp_element_["createElement"])(format_toolbar, { - controls: formattingControls - })), isSelected && inlineToolbar && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IsolatedEventContainer"], { - className: "editor-rich-text__inline-toolbar" - }, Object(external_this_wp_element_["createElement"])(format_toolbar, { - controls: formattingControls - })), Object(external_this_wp_element_["createElement"])(autocomplete, { - onReplace: this.props.onReplace, - completers: autocompleters, - record: record, - onChange: this.onChange - }, function (_ref7) { - var listBoxId = _ref7.listBoxId, - activeId = _ref7.activeId; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(editable_Editable, Object(esm_extends["a" /* default */])({ - tagName: Tagname, - style: style, - record: record, - valueToEditableHTML: _this3.valueToEditableHTML, - isPlaceholderVisible: isPlaceholderVisible, - "aria-label": placeholder, - "aria-autocomplete": "list", - "aria-owns": listBoxId, - "aria-activedescendant": activeId - }, ariaProps, { - className: className, - key: key, - onPaste: _this3.onPaste, - onInput: _this3.onInput, - onCompositionEnd: _this3.onCompositionEnd, - onKeyDown: _this3.onKeyDown, - onFocus: _this3.onFocus, - onBlur: _this3.onBlur, - onMouseDown: _this3.onPointerDown, - onTouchStart: _this3.onPointerDown, - multilineTag: _this3.multilineTag, - multilineWrapperTags: _this3.multilineWrapperTags, - setRef: _this3.setRef - })), isPlaceholderVisible && Object(external_this_wp_element_["createElement"])(Tagname, { - className: classnames_default()('editor-rich-text__editable', className), - style: style - }, MultilineTag ? Object(external_this_wp_element_["createElement"])(MultilineTag, null, placeholder) : placeholder), isSelected && Object(external_this_wp_element_["createElement"])(format_edit, { - value: record, - onChange: _this3.onChange - })); - }), isSelected && Object(external_this_wp_element_["createElement"])(RemoveBrowserShortcuts, null)); - } - }]); - - return RichText; -}(external_this_wp_element_["Component"]); -rich_text_RichText.defaultProps = { - formattingControls: ['bold', 'italic', 'link', 'strikethrough'], - format: 'string', - value: '' -}; -var RichTextContainer = Object(external_this_wp_compose_["compose"])([external_this_wp_compose_["withInstanceId"], context_withBlockEditContext(function (context, ownProps) { - // When explicitly set as not selected, do nothing. - if (ownProps.isSelected === false) { - return { - clientId: context.clientId - }; - } // When explicitly set as selected, use the value stored in the context instead. - - - if (ownProps.isSelected === true) { - return { - isSelected: context.isSelected, - clientId: context.clientId - }; - } // Ensures that only one RichText component can be focused. - - - return { - isSelected: context.isSelected && context.focusedElement === ownProps.instanceId, - setFocusedElement: context.setFocusedElement, - clientId: context.clientId - }; -}), Object(external_this_wp_data_["withSelect"])(function (select) { - // This should probably be moved to the block editor settings. - var _select = select('core/editor'), - canUserUseUnfilteredHTML = _select.canUserUseUnfilteredHTML; - - var _select2 = select('core/block-editor'), - isCaretWithinFormattedText = _select2.isCaretWithinFormattedText; - - var _select3 = select('core/rich-text'), - getFormatTypes = _select3.getFormatTypes; - - return { - canUserUseUnfilteredHTML: canUserUseUnfilteredHTML(), - isCaretWithinFormattedText: isCaretWithinFormattedText(), - formatTypes: getFormatTypes() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - __unstableMarkLastChangeAsPersistent = _dispatch.__unstableMarkLastChangeAsPersistent, - enterFormattedText = _dispatch.enterFormattedText, - exitFormattedText = _dispatch.exitFormattedText; - - return { - onCreateUndoLevel: __unstableMarkLastChangeAsPersistent, - onEnterFormattedText: enterFormattedText, - onExitFormattedText: exitFormattedText - }; -}), external_this_wp_compose_["withSafeTimeout"], Object(external_this_wp_components_["withFilters"])('experimentalRichText')])(rich_text_RichText); - -RichTextContainer.Content = function (_ref8) { - var value = _ref8.value, - Tag = _ref8.tagName, - multiline = _ref8.multiline, - props = Object(objectWithoutProperties["a" /* default */])(_ref8, ["value", "tagName", "multiline"]); - - var html = value; - var MultilineTag; - - if (multiline === true || multiline === 'p' || multiline === 'li') { - MultilineTag = multiline === true ? 'p' : multiline; - } // Handle deprecated `children` and `node` sources. - - - if (Array.isArray(value)) { - html = external_this_wp_blocks_["children"].toHTML(value); - } - - if (!html && MultilineTag) { - html = "<".concat(MultilineTag, ">"); - } - - var content = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, html); - - if (Tag) { - return Object(external_this_wp_element_["createElement"])(Tag, Object(external_lodash_["omit"])(props, ['format']), content); - } - - return content; -}; - -RichTextContainer.isEmpty = function () { - var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - - // Handle deprecated `children` and `node` sources. - if (Array.isArray(value)) { - return !value || value.length === 0; - } - - return value.length === 0; -}; - -RichTextContainer.Content.defaultProps = { - format: 'string', - value: '' -}; -/* harmony default export */ var rich_text = (RichTextContainer); - - - - +// EXTERNAL MODULE: external {"this":["wp","components"]} +var external_this_wp_components_ = __webpack_require__(4); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/server-side-render/index.js @@ -20442,850 +7187,23 @@ RichTextContainer.Content.defaultProps = { }, props)); }); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/media-upload/index.js -/** - * WordPress dependencies - */ +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js +var classCallCheck = __webpack_require__(10); -/** - * This is a placeholder for the media upload component necessary to make it possible to provide - * an integration with the core blocks that handle media files. By default it renders nothing but - * it provides a way to have it overridden with the `editor.MediaUpload` filter. - * - * @return {WPElement} Media upload element. - */ +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js +var createClass = __webpack_require__(9); -var MediaUpload = function MediaUpload() { - return null; -}; // Todo: rename the filter +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +var possibleConstructorReturn = __webpack_require__(11); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +var getPrototypeOf = __webpack_require__(12); -/* harmony default export */ var media_upload = (Object(external_this_wp_components_["withFilters"])('editor.MediaUpload')(MediaUpload)); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules +var inherits = __webpack_require__(13); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/url-popover/index.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - -var url_popover_URLPopover = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(URLPopover, _Component); - - function URLPopover() { - var _this; - - Object(classCallCheck["a" /* default */])(this, URLPopover); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLPopover).apply(this, arguments)); - _this.toggleSettingsVisibility = _this.toggleSettingsVisibility.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - isSettingsExpanded: false - }; - return _this; - } - - Object(createClass["a" /* default */])(URLPopover, [{ - key: "toggleSettingsVisibility", - value: function toggleSettingsVisibility() { - this.setState({ - isSettingsExpanded: !this.state.isSettingsExpanded - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - renderSettings = _this$props.renderSettings, - onClose = _this$props.onClose, - onClickOutside = _this$props.onClickOutside, - _this$props$position = _this$props.position, - position = _this$props$position === void 0 ? 'bottom center' : _this$props$position, - _this$props$focusOnMo = _this$props.focusOnMount, - focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo; - var isSettingsExpanded = this.state.isSettingsExpanded; - var showSettings = !!renderSettings && isSettingsExpanded; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { - className: "editor-url-popover", - focusOnMount: focusOnMount, - position: position, - onClose: onClose, - onClickOutside: onClickOutside - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-url-popover__row" - }, children, !!renderSettings && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "editor-url-popover__settings-toggle", - icon: "arrow-down-alt2", - label: Object(external_this_wp_i18n_["__"])('Link Settings'), - onClick: this.toggleSettingsVisibility, - "aria-expanded": isSettingsExpanded - })), showSettings && Object(external_this_wp_element_["createElement"])("div", { - className: "editor-url-popover__row editor-url-popover__settings" - }, renderSettings())); - } - }]); - - return URLPopover; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var url_popover = (url_popover_URLPopover); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/media-placeholder/index.js - - - - - - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - - - -var media_placeholder_InsertFromURLPopover = function InsertFromURLPopover(_ref) { - var src = _ref.src, - onChange = _ref.onChange, - onSubmit = _ref.onSubmit, - onClose = _ref.onClose; - return Object(external_this_wp_element_["createElement"])(url_popover, { - onClose: onClose - }, Object(external_this_wp_element_["createElement"])("form", { - className: "editor-media-placeholder__url-input-form", - onSubmit: onSubmit - }, Object(external_this_wp_element_["createElement"])("input", { - className: "editor-media-placeholder__url-input-field", - type: "url", - "aria-label": Object(external_this_wp_i18n_["__"])('URL'), - placeholder: Object(external_this_wp_i18n_["__"])('Paste or type URL'), - onChange: onChange, - value: src - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "editor-media-placeholder__url-input-submit-button", - icon: "editor-break", - label: Object(external_this_wp_i18n_["__"])('Apply'), - type: "submit" - }))); -}; - -var media_placeholder_MediaPlaceholder = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MediaPlaceholder, _Component); - - function MediaPlaceholder() { - var _this; - - Object(classCallCheck["a" /* default */])(this, MediaPlaceholder); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MediaPlaceholder).apply(this, arguments)); - _this.state = { - src: '', - isURLInputVisible: false - }; - _this.onChangeSrc = _this.onChangeSrc.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onSubmitSrc = _this.onSubmitSrc.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onUpload = _this.onUpload.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onFilesUpload = _this.onFilesUpload.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.openURLInput = _this.openURLInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.closeURLInput = _this.closeURLInput.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(MediaPlaceholder, [{ - key: "onlyAllowsImages", - value: function onlyAllowsImages() { - var allowedTypes = this.props.allowedTypes; - - if (!allowedTypes) { - return false; - } - - return Object(external_lodash_["every"])(allowedTypes, function (allowedType) { - return allowedType === 'image' || Object(external_lodash_["startsWith"])(allowedType, 'image/'); - }); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this.setState({ - src: Object(external_lodash_["get"])(this.props.value, ['src'], '') - }); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (Object(external_lodash_["get"])(prevProps.value, ['src'], '') !== Object(external_lodash_["get"])(this.props.value, ['src'], '')) { - this.setState({ - src: Object(external_lodash_["get"])(this.props.value, ['src'], '') - }); - } - } - }, { - key: "onChangeSrc", - value: function onChangeSrc(event) { - this.setState({ - src: event.target.value - }); - } - }, { - key: "onSubmitSrc", - value: function onSubmitSrc(event) { - event.preventDefault(); - - if (this.state.src && this.props.onSelectURL) { - this.props.onSelectURL(this.state.src); - this.closeURLInput(); - } - } - }, { - key: "onUpload", - value: function onUpload(event) { - this.onFilesUpload(event.target.files); - } - }, { - key: "onFilesUpload", - value: function onFilesUpload(files) { - var _this$props = this.props, - onSelect = _this$props.onSelect, - multiple = _this$props.multiple, - onError = _this$props.onError, - allowedTypes = _this$props.allowedTypes, - mediaUpload = _this$props.mediaUpload; - var setMedia = multiple ? onSelect : function (_ref2) { - var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1), - media = _ref3[0]; - - return onSelect(media); - }; - mediaUpload({ - allowedTypes: allowedTypes, - filesList: files, - onFileChange: setMedia, - onError: onError - }); - } - }, { - key: "openURLInput", - value: function openURLInput() { - this.setState({ - isURLInputVisible: true - }); - } - }, { - key: "closeURLInput", - value: function closeURLInput() { - this.setState({ - isURLInputVisible: false - }); - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - accept = _this$props2.accept, - icon = _this$props2.icon, - className = _this$props2.className, - _this$props2$labels = _this$props2.labels, - labels = _this$props2$labels === void 0 ? {} : _this$props2$labels, - onSelect = _this$props2.onSelect, - _this$props2$value = _this$props2.value, - value = _this$props2$value === void 0 ? {} : _this$props2$value, - onSelectURL = _this$props2.onSelectURL, - _this$props2$onHTMLDr = _this$props2.onHTMLDrop, - onHTMLDrop = _this$props2$onHTMLDr === void 0 ? external_lodash_["noop"] : _this$props2$onHTMLDr, - _this$props2$multiple = _this$props2.multiple, - multiple = _this$props2$multiple === void 0 ? false : _this$props2$multiple, - notices = _this$props2.notices, - _this$props2$allowedT = _this$props2.allowedTypes, - allowedTypes = _this$props2$allowedT === void 0 ? [] : _this$props2$allowedT, - hasUploadPermissions = _this$props2.hasUploadPermissions, - mediaUpload = _this$props2.mediaUpload; - var _this$state = this.state, - isURLInputVisible = _this$state.isURLInputVisible, - src = _this$state.src; - var instructions = labels.instructions || ''; - var title = labels.title || ''; - - if (!hasUploadPermissions && !onSelectURL) { - instructions = Object(external_this_wp_i18n_["__"])('To edit this block, you need permission to upload media.'); - } - - if (!instructions || !title) { - var isOneType = 1 === allowedTypes.length; - var isAudio = isOneType && 'audio' === allowedTypes[0]; - var isImage = isOneType && 'image' === allowedTypes[0]; - var isVideo = isOneType && 'video' === allowedTypes[0]; - - if (!instructions) { - if (hasUploadPermissions) { - instructions = Object(external_this_wp_i18n_["__"])('Drag a media file, upload a new one or select a file from your library.'); - - if (isAudio) { - instructions = Object(external_this_wp_i18n_["__"])('Drag an audio, upload a new one or select a file from your library.'); - } else if (isImage) { - instructions = Object(external_this_wp_i18n_["__"])('Drag an image, upload a new one or select a file from your library.'); - } else if (isVideo) { - instructions = Object(external_this_wp_i18n_["__"])('Drag a video, upload a new one or select a file from your library.'); - } - } else if (!hasUploadPermissions && onSelectURL) { - instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link a media file, you cannot upload.'); - - if (isAudio) { - instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link an audio, you cannot upload.'); - } else if (isImage) { - instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link an image, you cannot upload.'); - } else if (isVideo) { - instructions = Object(external_this_wp_i18n_["__"])('Given your current role, you can only link a video, you cannot upload.'); - } - } - } - - if (!title) { - title = Object(external_this_wp_i18n_["__"])('Media'); - - if (isAudio) { - title = Object(external_this_wp_i18n_["__"])('Audio'); - } else if (isImage) { - title = Object(external_this_wp_i18n_["__"])('Image'); - } else if (isVideo) { - title = Object(external_this_wp_i18n_["__"])('Video'); - } - } - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Placeholder"], { - icon: icon, - label: title, - instructions: instructions, - className: classnames_default()('editor-media-placeholder', className), - notices: notices - }, Object(external_this_wp_element_["createElement"])(check, null, !!mediaUpload && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropZone"], { - onFilesDrop: this.onFilesUpload, - onHTMLDrop: onHTMLDrop - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["FormFileUpload"], { - isLarge: true, - className: "editor-media-placeholder__button", - onChange: this.onUpload, - accept: accept, - multiple: multiple - }, Object(external_this_wp_i18n_["__"])('Upload'))), Object(external_this_wp_element_["createElement"])(media_upload, { - gallery: multiple && this.onlyAllowsImages(), - multiple: multiple, - onSelect: onSelect, - allowedTypes: allowedTypes, - value: value.id, - render: function render(_ref4) { - var open = _ref4.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isLarge: true, - className: "editor-media-placeholder__button", - onClick: open - }, Object(external_this_wp_i18n_["__"])('Media Library')); - } - })), onSelectURL && Object(external_this_wp_element_["createElement"])("div", { - className: "editor-media-placeholder__url-input-container" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "editor-media-placeholder__button", - onClick: this.openURLInput, - isToggled: isURLInputVisible, - isLarge: true - }, Object(external_this_wp_i18n_["__"])('Insert from URL')), isURLInputVisible && Object(external_this_wp_element_["createElement"])(media_placeholder_InsertFromURLPopover, { - src: src, - onChange: this.onChangeSrc, - onSubmit: this.onSubmitSrc, - onClose: this.closeURLInput - }))); - } - }]); - - return MediaPlaceholder; -}(external_this_wp_element_["Component"]); -var media_placeholder_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core'), - canUser = _select.canUser; - - var _select2 = select('core/block-editor'), - getSettings = _select2.getSettings; - - return { - hasUploadPermissions: Object(external_lodash_["defaultTo"])(canUser('create', 'media'), true), - mediaUpload: getSettings().__experimentalMediaUpload - }; -}); -/* harmony default export */ var media_placeholder = (Object(external_this_wp_compose_["compose"])(media_placeholder_applyWithSelect, Object(external_this_wp_components_["withFilters"])('editor.MediaPlaceholder'))(media_placeholder_MediaPlaceholder)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/url-input/index.js - - - - - - - - -/** - * External dependencies - */ - - - -/** - * WordPress dependencies - */ - - - - - - - - - // Since URLInput is rendered in the context of other inputs, but should be -// considered a separate modal node, prevent keyboard events from propagating -// as being considered from the input. - -var stopEventPropagation = function stopEventPropagation(event) { - return event.stopPropagation(); -}; - -var url_input_URLInput = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(URLInput, _Component); - - function URLInput(_ref) { - var _this; - - var autocompleteRef = _ref.autocompleteRef; - - Object(classCallCheck["a" /* default */])(this, URLInput); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLInput).apply(this, arguments)); - _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.autocompleteRef = autocompleteRef || Object(external_this_wp_element_["createRef"])(); - _this.inputRef = Object(external_this_wp_element_["createRef"])(); - _this.updateSuggestions = Object(external_lodash_["throttle"])(_this.updateSuggestions.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))), 200); - _this.suggestionNodes = []; - _this.state = { - posts: [], - showSuggestions: false, - selectedSuggestion: null - }; - return _this; - } - - Object(createClass["a" /* default */])(URLInput, [{ - key: "componentDidUpdate", - value: function componentDidUpdate() { - var _this2 = this; - - var _this$state = this.state, - showSuggestions = _this$state.showSuggestions, - selectedSuggestion = _this$state.selectedSuggestion; // only have to worry about scrolling selected suggestion into view - // when already expanded - - if (showSuggestions && selectedSuggestion !== null && !this.scrollingIntoView) { - this.scrollingIntoView = true; - dom_scroll_into_view_lib_default()(this.suggestionNodes[selectedSuggestion], this.autocompleteRef.current, { - onlyScrollIfNeeded: true - }); - setTimeout(function () { - _this2.scrollingIntoView = false; - }, 100); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - delete this.suggestionsRequest; - } - }, { - key: "bindSuggestionNode", - value: function bindSuggestionNode(index) { - var _this3 = this; - - return function (ref) { - _this3.suggestionNodes[index] = ref; - }; - } - }, { - key: "updateSuggestions", - value: function updateSuggestions(value) { - var _this4 = this; - - // Show the suggestions after typing at least 2 characters - // and also for URLs - if (value.length < 2 || /^https?:/.test(value)) { - this.setState({ - showSuggestions: false, - selectedSuggestion: null, - loading: false - }); - return; - } - - this.setState({ - showSuggestions: true, - selectedSuggestion: null, - loading: true - }); - var request = external_this_wp_apiFetch_default()({ - path: Object(external_this_wp_url_["addQueryArgs"])('/wp/v2/search', { - search: value, - per_page: 20, - type: 'post' - }) - }); - request.then(function (posts) { - // A fetch Promise doesn't have an abort option. It's mimicked by - // comparing the request reference in on the instance, which is - // reset or deleted on subsequent requests or unmounting. - if (_this4.suggestionsRequest !== request) { - return; - } - - _this4.setState({ - posts: posts, - loading: false - }); - - if (!!posts.length) { - _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', posts.length), posts.length), 'assertive'); - } else { - _this4.props.debouncedSpeak(Object(external_this_wp_i18n_["__"])('No results.'), 'assertive'); - } - }).catch(function () { - if (_this4.suggestionsRequest === request) { - _this4.setState({ - loading: false - }); - } - }); - this.suggestionsRequest = request; - } - }, { - key: "onChange", - value: function onChange(event) { - var inputValue = event.target.value; - this.props.onChange(inputValue); - this.updateSuggestions(inputValue); - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var _this$state2 = this.state, - showSuggestions = _this$state2.showSuggestions, - selectedSuggestion = _this$state2.selectedSuggestion, - posts = _this$state2.posts, - loading = _this$state2.loading; // If the suggestions are not shown or loading, we shouldn't handle the arrow keys - // We shouldn't preventDefault to allow block arrow keys navigation - - if (!showSuggestions || !posts.length || loading) { - // In the Windows version of Firefox the up and down arrows don't move the caret - // within an input field like they do for Mac Firefox/Chrome/Safari. This causes - // a form of focus trapping that is disruptive to the user experience. This disruption - // only happens if the caret is not in the first or last position in the text input. - // See: https://github.com/WordPress/gutenberg/issues/5693#issuecomment-436684747 - switch (event.keyCode) { - // When UP is pressed, if the caret is at the start of the text, move it to the 0 - // position. - case external_this_wp_keycodes_["UP"]: - { - if (0 !== event.target.selectionStart) { - event.stopPropagation(); - event.preventDefault(); // Set the input caret to position 0 - - event.target.setSelectionRange(0, 0); - } - - break; - } - // When DOWN is pressed, if the caret is not at the end of the text, move it to the - // last position. - - case external_this_wp_keycodes_["DOWN"]: - { - if (this.props.value.length !== event.target.selectionStart) { - event.stopPropagation(); - event.preventDefault(); // Set the input caret to the last position - - event.target.setSelectionRange(this.props.value.length, this.props.value.length); - } - - break; - } - } - - return; - } - - var post = this.state.posts[this.state.selectedSuggestion]; - - switch (event.keyCode) { - case external_this_wp_keycodes_["UP"]: - { - event.stopPropagation(); - event.preventDefault(); - var previousIndex = !selectedSuggestion ? posts.length - 1 : selectedSuggestion - 1; - this.setState({ - selectedSuggestion: previousIndex - }); - break; - } - - case external_this_wp_keycodes_["DOWN"]: - { - event.stopPropagation(); - event.preventDefault(); - var nextIndex = selectedSuggestion === null || selectedSuggestion === posts.length - 1 ? 0 : selectedSuggestion + 1; - this.setState({ - selectedSuggestion: nextIndex - }); - break; - } - - case external_this_wp_keycodes_["TAB"]: - { - if (this.state.selectedSuggestion !== null) { - this.selectLink(post); // Announce a link has been selected when tabbing away from the input field. - - this.props.speak(Object(external_this_wp_i18n_["__"])('Link selected.')); - } - - break; - } - - case external_this_wp_keycodes_["ENTER"]: - { - if (this.state.selectedSuggestion !== null) { - event.stopPropagation(); - this.selectLink(post); - } - - break; - } - } - } - }, { - key: "selectLink", - value: function selectLink(post) { - this.props.onChange(post.url, post); - this.setState({ - selectedSuggestion: null, - showSuggestions: false - }); - } - }, { - key: "handleOnClick", - value: function handleOnClick(post) { - this.selectLink(post); // Move focus to the input field when a link suggestion is clicked. - - this.inputRef.current.focus(); - } - }, { - key: "render", - value: function render() { - var _this5 = this; - - var _this$props = this.props, - _this$props$value = _this$props.value, - value = _this$props$value === void 0 ? '' : _this$props$value, - _this$props$autoFocus = _this$props.autoFocus, - autoFocus = _this$props$autoFocus === void 0 ? true : _this$props$autoFocus, - instanceId = _this$props.instanceId, - className = _this$props.className; - var _this$state3 = this.state, - showSuggestions = _this$state3.showSuggestions, - posts = _this$state3.posts, - selectedSuggestion = _this$state3.selectedSuggestion, - loading = _this$state3.loading; - /* eslint-disable jsx-a11y/no-autofocus */ - - return Object(external_this_wp_element_["createElement"])("div", { - className: classnames_default()('editor-url-input', className) - }, Object(external_this_wp_element_["createElement"])("input", { - autoFocus: autoFocus, - type: "text", - "aria-label": Object(external_this_wp_i18n_["__"])('URL'), - required: true, - value: value, - onChange: this.onChange, - onInput: stopEventPropagation, - placeholder: Object(external_this_wp_i18n_["__"])('Paste URL or type to search'), - onKeyDown: this.onKeyDown, - role: "combobox", - "aria-expanded": showSuggestions, - "aria-autocomplete": "list", - "aria-owns": "editor-url-input-suggestions-".concat(instanceId), - "aria-activedescendant": selectedSuggestion !== null ? "editor-url-input-suggestion-".concat(instanceId, "-").concat(selectedSuggestion) : undefined, - ref: this.inputRef - }), loading && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), showSuggestions && !!posts.length && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { - position: "bottom", - noArrow: true, - focusOnMount: false - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-url-input__suggestions", - id: "editor-url-input-suggestions-".concat(instanceId), - ref: this.autocompleteRef, - role: "listbox" - }, posts.map(function (post, index) { - return Object(external_this_wp_element_["createElement"])("button", { - key: post.id, - role: "option", - tabIndex: "-1", - id: "editor-url-input-suggestion-".concat(instanceId, "-").concat(index), - ref: _this5.bindSuggestionNode(index), - className: classnames_default()('editor-url-input__suggestion', { - 'is-selected': index === selectedSuggestion - }), - onClick: function onClick() { - return _this5.handleOnClick(post); - }, - "aria-selected": index === selectedSuggestion - }, Object(external_this_wp_htmlEntities_["decodeEntities"])(post.title) || Object(external_this_wp_i18n_["__"])('(no title)')); - })))); - /* eslint-enable jsx-a11y/no-autofocus */ - } - }]); - - return URLInput; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var url_input = (Object(external_this_wp_components_["withSpokenMessages"])(Object(external_this_wp_compose_["withInstanceId"])(url_input_URLInput))); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/url-input/button.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var button_URLInputButton = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(URLInputButton, _Component); - - function URLInputButton() { - var _this; - - Object(classCallCheck["a" /* default */])(this, URLInputButton); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(URLInputButton).apply(this, arguments)); - _this.toggle = _this.toggle.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.submitLink = _this.submitLink.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - expanded: false - }; - return _this; - } - - Object(createClass["a" /* default */])(URLInputButton, [{ - key: "toggle", - value: function toggle() { - this.setState({ - expanded: !this.state.expanded - }); - } - }, { - key: "submitLink", - value: function submitLink(event) { - event.preventDefault(); - this.toggle(); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - url = _this$props.url, - onChange = _this$props.onChange; - var expanded = this.state.expanded; - var buttonLabel = url ? Object(external_this_wp_i18n_["__"])('Edit Link') : Object(external_this_wp_i18n_["__"])('Insert Link'); - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-url-input__button" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "admin-links", - label: buttonLabel, - onClick: this.toggle, - className: classnames_default()('components-toolbar__control', { - 'is-active': url - }) - }), expanded && Object(external_this_wp_element_["createElement"])("form", { - className: "editor-url-input__button-modal", - onSubmit: this.submitLink - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-url-input__button-modal-line" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "editor-url-input__back", - icon: "arrow-left-alt", - label: Object(external_this_wp_i18n_["__"])('Close'), - onClick: this.toggle - }), Object(external_this_wp_element_["createElement"])(url_input, { - value: url || '', - onChange: onChange - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - icon: "editor-break", - label: Object(external_this_wp_i18n_["__"])('Submit'), - type: "submit" - })))); - } - }]); - - return URLInputButton; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var url_input_button = (button_URLInputButton); +// EXTERNAL MODULE: external {"this":["wp","compose"]} +var external_this_wp_compose_ = __webpack_require__(6); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/autosave-monitor/index.js @@ -21388,6 +7306,10 @@ function (_Component) { }; })])(autosave_monitor_AutosaveMonitor)); +// EXTERNAL MODULE: ./node_modules/classnames/index.js +var classnames = __webpack_require__(16); +var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-outline/item.js @@ -21400,28 +7322,23 @@ function (_Component) { */ -/** - * Internal dependencies - */ - - var item_TableOfContentsItem = function TableOfContentsItem(_ref) { var children = _ref.children, isValid = _ref.isValid, level = _ref.level, - onClick = _ref.onClick, - isDisabled = _ref.isDisabled, _ref$path = _ref.path, - path = _ref$path === void 0 ? [] : _ref$path; + path = _ref$path === void 0 ? [] : _ref$path, + href = _ref.href, + onSelect = _ref.onSelect; return Object(external_this_wp_element_["createElement"])("li", { className: classnames_default()('document-outline__item', "is-".concat(level.toLowerCase()), { 'is-invalid': !isValid }) - }, Object(external_this_wp_element_["createElement"])("button", { + }, Object(external_this_wp_element_["createElement"])("a", { + href: href, className: "document-outline__button", - onClick: isDisabled ? undefined : onClick, - disabled: isDisabled + onClick: onSelect }, Object(external_this_wp_element_["createElement"])("span", { className: "document-outline__emdash", "aria-hidden": "true" @@ -21432,16 +7349,14 @@ var item_TableOfContentsItem = function TableOfContentsItem(_ref) { return Object(external_this_wp_element_["createElement"])("strong", { key: index, className: "document-outline__level" - }, Object(external_this_wp_element_["createElement"])(block_title, { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockTitle"], { clientId: clientId })); }), Object(external_this_wp_element_["createElement"])("strong", { className: "document-outline__level" }, level), Object(external_this_wp_element_["createElement"])("span", { className: "document-outline__item-content" - }, children), !isDisabled && Object(external_this_wp_element_["createElement"])("span", { - className: "screen-reader-text" - }, Object(external_this_wp_i18n_["__"])('(Click to focus this heading)')))); + }, children))); }; /* harmony default export */ var document_outline_item = (item_TableOfContentsItem); @@ -21536,23 +7451,10 @@ var document_outline_DocumentOutline = function DocumentOutline(_ref) { return null; } - var prevHeadingLevel = 1; // Select the corresponding block in the main editor - // when clicking on a heading item from the list. + var prevHeadingLevel = 1; // Not great but it's the simplest way to locate the title right now. - var onSelectHeading = function onSelectHeading(clientId) { - return onSelect(clientId); - }; - - var focusTitle = function focusTitle() { - // Not great but it's the simplest way to focus the title right now. - var titleNode = document.querySelector('.editor-post-title__input'); - - if (titleNode) { - titleNode.focus(); - } - }; - - var hasTitle = isTitleSupported && title; + var titleNode = document.querySelector('.editor-post-title__input'); + var hasTitle = isTitleSupported && title && titleNode; var countByLevel = Object(external_lodash_["countBy"])(headings, 'level'); var hasMultipleH1 = countByLevel[1] > 1; return Object(external_this_wp_element_["createElement"])("div", { @@ -21560,7 +7462,8 @@ var document_outline_DocumentOutline = function DocumentOutline(_ref) { }, Object(external_this_wp_element_["createElement"])("ul", null, hasTitle && Object(external_this_wp_element_["createElement"])(document_outline_item, { level: Object(external_this_wp_i18n_["__"])('Title'), isValid: true, - onClick: focusTitle, + onSelect: onSelect, + href: "#".concat(titleNode.id), isDisabled: hasOutlineItemsDisabled }, title), headings.map(function (item, index) { // Headings remain the same, go up by one, or down by any amount. @@ -21572,11 +7475,10 @@ var document_outline_DocumentOutline = function DocumentOutline(_ref) { key: index, level: "H".concat(item.level), isValid: isValid, - onClick: function onClick() { - return onSelectHeading(item.clientId); - }, path: item.path, - isDisabled: hasOutlineItemsDisabled + isDisabled: hasOutlineItemsDisabled, + href: "#block-".concat(item.clientId), + onSelect: onSelect }, item.isEmpty ? emptyHeadingContent : Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["create"])({ html: item.attributes.content })), isIncorrectLevel && incorrectLevelContent, item.level === 1 && hasMultipleH1 && multipleH1Headings, hasTitle && item.level === 1 && !hasMultipleH1 && singleH1Headings); @@ -21598,13 +7500,6 @@ var document_outline_DocumentOutline = function DocumentOutline(_ref) { blocks: getBlocks(), isTitleSupported: Object(external_lodash_["get"])(postType, ['supports', 'title'], false) }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - selectBlock = _dispatch.selectBlock; - - return { - onSelect: selectBlock - }; }))(document_outline_DocumentOutline)); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/document-outline/check.js @@ -21632,12 +7527,22 @@ function DocumentOutlineCheck(_ref) { return children; } -/* harmony default export */ var document_outline_check = (Object(external_this_wp_data_["withSelect"])(function (select) { +/* harmony default export */ var check = (Object(external_this_wp_data_["withSelect"])(function (select) { return { blocks: select('core/block-editor').getBlocks() }; })(DocumentOutlineCheck)); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +var assertThisInitialized = __webpack_require__(3); + +// EXTERNAL MODULE: external {"this":["wp","keycodes"]} +var external_this_wp_keycodes_ = __webpack_require__(18); + +// EXTERNAL MODULE: external {"this":["wp","deprecated"]} +var external_this_wp_deprecated_ = __webpack_require__(49); +var external_this_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_deprecated_); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/global-keyboard-shortcuts/save-shortcut.js @@ -21691,286 +7596,6 @@ function SaveShortcut(_ref) { }; })])(SaveShortcut)); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-actions/index.js -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -function BlockActions(_ref) { - var onDuplicate = _ref.onDuplicate, - onRemove = _ref.onRemove, - onInsertBefore = _ref.onInsertBefore, - onInsertAfter = _ref.onInsertAfter, - isLocked = _ref.isLocked, - canDuplicate = _ref.canDuplicate, - children = _ref.children; - return children({ - onDuplicate: onDuplicate, - onRemove: onRemove, - onInsertAfter: onInsertAfter, - onInsertBefore: onInsertBefore, - isLocked: isLocked, - canDuplicate: canDuplicate - }); -} - -/* harmony default export */ var block_actions = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, props) { - var _select = select('core/block-editor'), - getBlocksByClientId = _select.getBlocksByClientId, - getTemplateLock = _select.getTemplateLock, - getBlockRootClientId = _select.getBlockRootClientId; - - var blocks = getBlocksByClientId(props.clientIds); - var canDuplicate = Object(external_lodash_["every"])(blocks, function (block) { - return !!block && Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true); - }); - var rootClientId = getBlockRootClientId(props.clientIds[0]); - return { - isLocked: !!getTemplateLock(rootClientId), - blocks: blocks, - canDuplicate: canDuplicate, - rootClientId: rootClientId, - extraProps: props - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, props, _ref2) { - var select = _ref2.select; - var clientIds = props.clientIds, - rootClientId = props.rootClientId, - blocks = props.blocks, - isLocked = props.isLocked, - canDuplicate = props.canDuplicate; - - var _dispatch = dispatch('core/block-editor'), - insertBlocks = _dispatch.insertBlocks, - multiSelect = _dispatch.multiSelect, - removeBlocks = _dispatch.removeBlocks, - insertDefaultBlock = _dispatch.insertDefaultBlock; - - return { - onDuplicate: function onDuplicate() { - if (isLocked || !canDuplicate) { - return; - } - - var _select2 = select('core/block-editor'), - getBlockIndex = _select2.getBlockIndex; - - var lastSelectedIndex = getBlockIndex(Object(external_lodash_["last"])(Object(external_lodash_["castArray"])(clientIds)), rootClientId); - var clonedBlocks = blocks.map(function (block) { - return Object(external_this_wp_blocks_["cloneBlock"])(block); - }); - insertBlocks(clonedBlocks, lastSelectedIndex + 1, rootClientId); - - if (clonedBlocks.length > 1) { - multiSelect(Object(external_lodash_["first"])(clonedBlocks).clientId, Object(external_lodash_["last"])(clonedBlocks).clientId); - } - }, - onRemove: function onRemove() { - if (!isLocked) { - removeBlocks(clientIds); - } - }, - onInsertBefore: function onInsertBefore() { - if (!isLocked) { - var _select3 = select('core/block-editor'), - getBlockIndex = _select3.getBlockIndex; - - var firstSelectedIndex = getBlockIndex(Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds)), rootClientId); - insertDefaultBlock({}, rootClientId, firstSelectedIndex); - } - }, - onInsertAfter: function onInsertAfter() { - if (!isLocked) { - var _select4 = select('core/block-editor'), - getBlockIndex = _select4.getBlockIndex; - - var lastSelectedIndex = getBlockIndex(Object(external_lodash_["last"])(Object(external_lodash_["castArray"])(clientIds)), rootClientId); - insertDefaultBlock({}, rootClientId, lastSelectedIndex + 1); - } - } - }; -})])(BlockActions)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/global-keyboard-shortcuts/block-editor-shortcuts.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - -var preventDefault = function preventDefault(event) { - event.preventDefault(); - return event; -}; - -var shortcuts = { - duplicate: { - raw: external_this_wp_keycodes_["rawShortcut"].primaryShift('d'), - display: external_this_wp_keycodes_["displayShortcut"].primaryShift('d') - }, - removeBlock: { - raw: external_this_wp_keycodes_["rawShortcut"].access('z'), - display: external_this_wp_keycodes_["displayShortcut"].access('z') - }, - insertBefore: { - raw: external_this_wp_keycodes_["rawShortcut"].primaryAlt('t'), - display: external_this_wp_keycodes_["displayShortcut"].primaryAlt('t') - }, - insertAfter: { - raw: external_this_wp_keycodes_["rawShortcut"].primaryAlt('y'), - display: external_this_wp_keycodes_["displayShortcut"].primaryAlt('y') - } -}; - -var block_editor_shortcuts_BlockEditorKeyboardShortcuts = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockEditorKeyboardShortcuts, _Component); - - function BlockEditorKeyboardShortcuts() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockEditorKeyboardShortcuts); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockEditorKeyboardShortcuts).apply(this, arguments)); - _this.selectAll = _this.selectAll.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.deleteSelectedBlocks = _this.deleteSelectedBlocks.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.clearMultiSelection = _this.clearMultiSelection.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockEditorKeyboardShortcuts, [{ - key: "selectAll", - value: function selectAll(event) { - var _this$props = this.props, - rootBlocksClientIds = _this$props.rootBlocksClientIds, - onMultiSelect = _this$props.onMultiSelect; - event.preventDefault(); - onMultiSelect(Object(external_lodash_["first"])(rootBlocksClientIds), Object(external_lodash_["last"])(rootBlocksClientIds)); - } - }, { - key: "deleteSelectedBlocks", - value: function deleteSelectedBlocks(event) { - var _this$props2 = this.props, - selectedBlockClientIds = _this$props2.selectedBlockClientIds, - hasMultiSelection = _this$props2.hasMultiSelection, - onRemove = _this$props2.onRemove, - isLocked = _this$props2.isLocked; - - if (hasMultiSelection) { - event.preventDefault(); - - if (!isLocked) { - onRemove(selectedBlockClientIds); - } - } - } - /** - * Clears current multi-selection, if one exists. - */ - - }, { - key: "clearMultiSelection", - value: function clearMultiSelection() { - var _this$props3 = this.props, - hasMultiSelection = _this$props3.hasMultiSelection, - clearSelectedBlock = _this$props3.clearSelectedBlock; - - if (hasMultiSelection) { - clearSelectedBlock(); - window.getSelection().removeAllRanges(); - } - } - }, { - key: "render", - value: function render() { - var _ref; - - var selectedBlockClientIds = this.props.selectedBlockClientIds; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - shortcuts: (_ref = {}, Object(defineProperty["a" /* default */])(_ref, external_this_wp_keycodes_["rawShortcut"].primary('a'), this.selectAll), Object(defineProperty["a" /* default */])(_ref, "backspace", this.deleteSelectedBlocks), Object(defineProperty["a" /* default */])(_ref, "del", this.deleteSelectedBlocks), Object(defineProperty["a" /* default */])(_ref, "escape", this.clearMultiSelection), _ref) - }), selectedBlockClientIds.length > 0 && Object(external_this_wp_element_["createElement"])(block_actions, { - clientIds: selectedBlockClientIds - }, function (_ref2) { - var _ref3; - - var onDuplicate = _ref2.onDuplicate, - onRemove = _ref2.onRemove, - onInsertAfter = _ref2.onInsertAfter, - onInsertBefore = _ref2.onInsertBefore; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { - bindGlobal: true, - shortcuts: (_ref3 = {}, Object(defineProperty["a" /* default */])(_ref3, shortcuts.duplicate.raw, Object(external_lodash_["flow"])(preventDefault, onDuplicate)), Object(defineProperty["a" /* default */])(_ref3, shortcuts.removeBlock.raw, Object(external_lodash_["flow"])(preventDefault, onRemove)), Object(defineProperty["a" /* default */])(_ref3, shortcuts.insertBefore.raw, Object(external_lodash_["flow"])(preventDefault, onInsertBefore)), Object(defineProperty["a" /* default */])(_ref3, shortcuts.insertAfter.raw, Object(external_lodash_["flow"])(preventDefault, onInsertAfter)), _ref3) - }); - })); - } - }]); - - return BlockEditorKeyboardShortcuts; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_editor_shortcuts = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getBlockOrder = _select.getBlockOrder, - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, - hasMultiSelection = _select.hasMultiSelection, - getBlockRootClientId = _select.getBlockRootClientId, - getTemplateLock = _select.getTemplateLock, - getSelectedBlockClientId = _select.getSelectedBlockClientId; - - var selectedBlockClientId = getSelectedBlockClientId(); - var selectedBlockClientIds = selectedBlockClientId ? [selectedBlockClientId] : getMultiSelectedBlockClientIds(); - return { - rootBlocksClientIds: getBlockOrder(), - hasMultiSelection: hasMultiSelection(), - isLocked: Object(external_lodash_["some"])(selectedBlockClientIds, function (clientId) { - return !!getTemplateLock(getBlockRootClientId(clientId)); - }), - selectedBlockClientIds: selectedBlockClientIds - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - clearSelectedBlock = _dispatch.clearSelectedBlock, - multiSelect = _dispatch.multiSelect, - removeBlocks = _dispatch.removeBlocks; - - return { - clearSelectedBlock: clearSelectedBlock, - onMultiSelect: multiSelect, - onRemove: removeBlocks - }; -})])(block_editor_shortcuts_BlockEditorKeyboardShortcuts)); - // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/global-keyboard-shortcuts/visual-editor-shortcuts.js @@ -21989,13 +7614,13 @@ function (_Component) { + /** * Internal dependencies */ - var visual_editor_shortcuts_VisualEditorGlobalKeyboardShortcuts = /*#__PURE__*/ function (_Component) { @@ -22031,7 +7656,7 @@ function (_Component) { value: function render() { var _ref; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_editor_shortcuts, null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockEditorKeyboardShortcuts"], null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["KeyboardShortcuts"], { shortcuts: (_ref = {}, Object(defineProperty["a" /* default */])(_ref, external_this_wp_keycodes_["rawShortcut"].primary('z'), this.undoOrRedo), Object(defineProperty["a" /* default */])(_ref, external_this_wp_keycodes_["rawShortcut"].primaryShift('z'), this.undoOrRedo), _ref) }), Object(external_this_wp_element_["createElement"])(save_shortcut, null)); } @@ -22249,6 +7874,101 @@ function EditorNotices(_ref) { }; })])(EditorNotices)); +// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/error-boundary/index.js + + + + + + + + +/** + * WordPress dependencies + */ + + + + + + +var error_boundary_ErrorBoundary = +/*#__PURE__*/ +function (_Component) { + Object(inherits["a" /* default */])(ErrorBoundary, _Component); + + function ErrorBoundary() { + var _this; + + Object(classCallCheck["a" /* default */])(this, ErrorBoundary); + + _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ErrorBoundary).apply(this, arguments)); + _this.reboot = _this.reboot.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.getContent = _this.getContent.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); + _this.state = { + error: null + }; + return _this; + } + + Object(createClass["a" /* default */])(ErrorBoundary, [{ + key: "componentDidCatch", + value: function componentDidCatch(error) { + this.setState({ + error: error + }); + } + }, { + key: "reboot", + value: function reboot() { + this.props.onError(); + } + }, { + key: "getContent", + value: function getContent() { + try { + // While `select` in a component is generally discouraged, it is + // used here because it (a) reduces the chance of data loss in the + // case of additional errors by performing a direct retrieval and + // (b) avoids the performance cost associated with unnecessary + // content serialization throughout the lifetime of a non-erroring + // application. + return Object(external_this_wp_data_["select"])('core/editor').getEditedPostContent(); + } catch (error) {} + } + }, { + key: "render", + value: function render() { + var error = this.state.error; + + if (!error) { + return this.props.children; + } + + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["Warning"], { + className: "editor-error-boundary", + actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + key: "recovery", + onClick: this.reboot, + isLarge: true + }, Object(external_this_wp_i18n_["__"])('Attempt Recovery')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { + key: "copy-post", + text: this.getContent, + isLarge: true + }, Object(external_this_wp_i18n_["__"])('Copy Post Text')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { + key: "copy-error", + text: error.stack, + isLarge: true + }, Object(external_this_wp_i18n_["__"])('Copy Error'))] + }, Object(external_this_wp_i18n_["__"])('The editor has encountered an unexpected error.')); + } + }]); + + return ErrorBoundary; +}(external_this_wp_element_["Component"]); + +/* harmony default export */ var error_boundary = (error_boundary_ErrorBoundary); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/check.js /** * External dependencies @@ -22506,7 +8226,7 @@ function PageAttributesParent(_ref) { onChange: onUpdateParent }); } -var parent_applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { +var applyWithSelect = Object(external_this_wp_data_["withSelect"])(function (select) { var _select = select('core'), getPostType = _select.getPostType, getEntityRecords = _select.getEntityRecords; @@ -22532,7 +8252,7 @@ var parent_applyWithSelect = Object(external_this_wp_data_["withSelect"])(functi postType: postType }; }); -var parent_applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch) { +var applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(function (dispatch) { var _dispatch = dispatch('core/editor'), editPost = _dispatch.editPost; @@ -22544,7 +8264,7 @@ var parent_applyWithDispatch = Object(external_this_wp_data_["withDispatch"])(fu } }; }); -/* harmony default export */ var page_attributes_parent = (Object(external_this_wp_compose_["compose"])([parent_applyWithSelect, parent_applyWithDispatch])(PageAttributesParent)); +/* harmony default export */ var page_attributes_parent = (Object(external_this_wp_compose_["compose"])([applyWithSelect, applyWithDispatch])(PageAttributesParent)); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/page-attributes/template.js @@ -22915,13 +8635,12 @@ function PostFeaturedImageCheck(props) { + /** * Internal dependencies */ - - var ALLOWED_MEDIA_TYPES = ['image']; // Used when labels from post type were not yet loaded or when they are not present. var DEFAULT_FEATURE_IMAGE_LABEL = Object(external_this_wp_i18n_["__"])('Featured Image'); @@ -22957,29 +8676,29 @@ function PostFeaturedImage(_ref) { return Object(external_this_wp_element_["createElement"])(post_featured_image_check, null, Object(external_this_wp_element_["createElement"])("div", { className: "editor-post-featured-image" - }, !!featuredImageId && Object(external_this_wp_element_["createElement"])(check, { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], { fallback: instructions - }, Object(external_this_wp_element_["createElement"])(media_upload, { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { title: postLabel.featured_image || DEFAULT_FEATURE_IMAGE_LABEL, onSelect: onUpdateImage, allowedTypes: ALLOWED_MEDIA_TYPES, - modalClass: "editor-post-featured-image__media-modal", + modalClass: !featuredImageId ? 'editor-post-featured-image__media-modal' : 'editor-post-featured-image__media-modal', render: function render(_ref2) { var open = _ref2.open; return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "editor-post-featured-image__preview", + className: !featuredImageId ? 'editor-post-featured-image__toggle' : 'editor-post-featured-image__preview', onClick: open, - "aria-label": Object(external_this_wp_i18n_["__"])('Edit or update the image') - }, media && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResponsiveWrapper"], { + "aria-label": !featuredImageId ? null : Object(external_this_wp_i18n_["__"])('Edit or update the image') + }, !!featuredImageId && media && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResponsiveWrapper"], { naturalWidth: mediaWidth, naturalHeight: mediaHeight }, Object(external_this_wp_element_["createElement"])("img", { src: mediaSourceUrl, alt: "" - })), !media && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)); + })), !!featuredImageId && !media && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null), !featuredImageId && (postLabel.set_featured_image || DEFAULT_SET_FEATURE_IMAGE_LABEL)); }, value: featuredImageId - })), !!featuredImageId && media && !media.isLoading && Object(external_this_wp_element_["createElement"])(check, null, Object(external_this_wp_element_["createElement"])(media_upload, { + })), !!featuredImageId && media && !media.isLoading && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { title: postLabel.featured_image || DEFAULT_FEATURE_IMAGE_LABEL, onSelect: onUpdateImage, allowedTypes: ALLOWED_MEDIA_TYPES, @@ -22992,21 +8711,7 @@ function PostFeaturedImage(_ref) { isLarge: true }, Object(external_this_wp_i18n_["__"])('Replace image')); } - })), !featuredImageId && Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(check, { - fallback: instructions - }, Object(external_this_wp_element_["createElement"])(media_upload, { - title: postLabel.featured_image || DEFAULT_FEATURE_IMAGE_LABEL, - onSelect: onUpdateImage, - allowedTypes: ALLOWED_MEDIA_TYPES, - modalClass: "editor-post-featured-image__media-modal", - render: function render(_ref4) { - var open = _ref4.open; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - className: "editor-post-featured-image__toggle", - onClick: open - }, postLabel.set_featured_image || DEFAULT_SET_FEATURE_IMAGE_LABEL); - } - }))), !!featuredImageId && Object(external_this_wp_element_["createElement"])(check, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { + })), !!featuredImageId && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { onClick: onRemoveImage, isLink: true, isDestructive: true @@ -23723,7 +9428,9 @@ function (_Component) { var allPostsUrl = getWPAdminURL('edit.php', { post_type: Object(external_lodash_["get"])(postType, ['slug']) }); - var allPostsLabel = Object(external_lodash_["get"])(postType, ['labels', 'all_items']); + + var allPostsLabel = Object(external_this_wp_i18n_["__"])('Exit the Editor'); + return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Modal"], { title: isTakeover ? Object(external_this_wp_i18n_["__"])('Someone else has taken over this post.') : Object(external_this_wp_i18n_["__"])('This post is already being edited.'), focusOnMount: true, @@ -26149,8 +11856,8 @@ function (_Component) { var newTermSubmitLabel = newTermButtonLabel; var inputId = "editor-post-taxonomies__hierarchical-terms-input-".concat(instanceId); var filterInputId = "editor-post-taxonomies__hierarchical-terms-filter-".concat(instanceId); - var filterLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_x"])('Search %s', 'term'), Object(external_lodash_["get"])(this.props.taxonomy, ['name'], slug === 'category' ? Object(external_this_wp_i18n_["__"])('Categories') : Object(external_this_wp_i18n_["__"])('Terms'))); - var groupLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_x"])('Available %s', 'term'), Object(external_lodash_["get"])(this.props.taxonomy, ['name'], slug === 'category' ? Object(external_this_wp_i18n_["__"])('Categories') : Object(external_this_wp_i18n_["__"])('Terms'))); + var filterLabel = Object(external_lodash_["get"])(this.props.taxonomy, ['labels', 'search_items'], Object(external_this_wp_i18n_["__"])('Search Terms')); + var groupLabel = Object(external_lodash_["get"])(this.props.taxonomy, ['name'], Object(external_this_wp_i18n_["__"])('Terms')); var showFilter = availableTerms.length >= MIN_TERMS_COUNT_FOR_FILTER; return [showFilter && Object(external_this_wp_element_["createElement"])("label", { key: "filter-label", @@ -26312,6 +12019,10 @@ function PostTaxonomiesCheck(_ref) { }; })])(PostTaxonomiesCheck)); +// EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js +var react_autosize_textarea_lib = __webpack_require__(61); +var react_autosize_textarea_lib_default = /*#__PURE__*/__webpack_require__.n(react_autosize_textarea_lib); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-text-editor/index.js @@ -26449,6 +12160,9 @@ function (_Component) { }; }), external_this_wp_compose_["withInstanceId"]])(post_text_editor_PostTextEditor)); +// EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} +var external_this_wp_htmlEntities_ = __webpack_require__(57); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-permalink/editor.js @@ -27111,7 +12825,7 @@ function PostVisibilityCheck(_ref) { })])(PostVisibilityCheck)); // EXTERNAL MODULE: external {"this":["wp","wordcount"]} -var external_this_wp_wordcount_ = __webpack_require__(99); +var external_this_wp_wordcount_ = __webpack_require__(98); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/word-count/index.js @@ -27164,7 +12878,8 @@ function TableOfContentsPanel(_ref) { var headingCount = _ref.headingCount, paragraphCount = _ref.paragraphCount, numberOfBlocks = _ref.numberOfBlocks, - hasOutlineItemsDisabled = _ref.hasOutlineItemsDisabled; + hasOutlineItemsDisabled = _ref.hasOutlineItemsDisabled, + onRequestClose = _ref.onRequestClose; return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { className: "table-of-contents__counts", role: "note", @@ -27187,11 +12902,12 @@ function TableOfContentsPanel(_ref) { }, numberOfBlocks))), headingCount > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("hr", null), Object(external_this_wp_element_["createElement"])("span", { className: "table-of-contents__title" }, Object(external_this_wp_i18n_["__"])('Document Outline')), Object(external_this_wp_element_["createElement"])(document_outline, { + onSelect: onRequestClose, hasOutlineItemsDisabled: hasOutlineItemsDisabled }))); } -/* harmony default export */ var table_of_contents_panel = (Object(external_this_wp_data_["withSelect"])(function (select) { +/* harmony default export */ var panel = (Object(external_this_wp_data_["withSelect"])(function (select) { var _select = select('core/block-editor'), getGlobalBlockCount = _select.getGlobalBlockCount; @@ -27236,8 +12952,10 @@ function TableOfContents(_ref) { "aria-disabled": !hasBlocks }); }, - renderContent: function renderContent() { - return Object(external_this_wp_element_["createElement"])(table_of_contents_panel, { + renderContent: function renderContent(_ref3) { + var onClose = _ref3.onClose; + return Object(external_this_wp_element_["createElement"])(panel, { + onRequestClose: onClose, hasOutlineItemsDisabled: hasOutlineItemsDisabled }); } @@ -27324,2322 +13042,12 @@ function (_Component) { }; })(unsaved_changes_warning_UnsavedChangesWarning)); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/skip-to-selected-block/index.js - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - -var skip_to_selected_block_SkipToSelectedBlock = function SkipToSelectedBlock(_ref) { - var selectedBlockClientId = _ref.selectedBlockClientId; - - var onClick = function onClick() { - var selectedBlockElement = getBlockFocusableWrapper(selectedBlockClientId); - selectedBlockElement.focus(); - }; - - return selectedBlockClientId && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - isDefault: true, - type: "button", - className: "editor-skip-to-selected-block", - onClick: onClick - }, Object(external_this_wp_i18n_["__"])('Skip to the selected block')); -}; - -/* harmony default export */ var skip_to_selected_block = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - selectedBlockClientId: select('core/block-editor').getBlockSelectionStart() - }; -})(skip_to_selected_block_SkipToSelectedBlock)); - -// EXTERNAL MODULE: external {"this":["wp","tokenList"]} -var external_this_wp_tokenList_ = __webpack_require__(125); -var external_this_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_tokenList_); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-styles/index.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - -/** - * Returns the active style from the given className. - * - * @param {Array} styles Block style variations. - * @param {string} className Class name - * - * @return {Object?} The active style. - */ - -function getActiveStyle(styles, className) { - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = new external_this_wp_tokenList_default.a(className).values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var style = _step.value; - - if (style.indexOf('is-style-') === -1) { - continue; - } - - var potentialStyleName = style.substring(9); - var activeStyle = Object(external_lodash_["find"])(styles, { - name: potentialStyleName - }); - - if (activeStyle) { - return activeStyle; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - return Object(external_lodash_["find"])(styles, 'isDefault'); -} -/** - * Replaces the active style in the block's className. - * - * @param {string} className Class name. - * @param {Object?} activeStyle The replaced style. - * @param {Object} newStyle The replacing style. - * - * @return {string} The updated className. - */ - -function replaceActiveStyle(className, activeStyle, newStyle) { - var list = new external_this_wp_tokenList_default.a(className); - - if (activeStyle) { - list.remove('is-style-' + activeStyle.name); - } - - list.add('is-style-' + newStyle.name); - return list.value; -} - -function BlockStyles(_ref) { - var styles = _ref.styles, - className = _ref.className, - onChangeClassName = _ref.onChangeClassName, - name = _ref.name, - attributes = _ref.attributes, - type = _ref.type, - _ref$onSwitch = _ref.onSwitch, - onSwitch = _ref$onSwitch === void 0 ? external_lodash_["noop"] : _ref$onSwitch, - _ref$onHoverClassName = _ref.onHoverClassName, - onHoverClassName = _ref$onHoverClassName === void 0 ? external_lodash_["noop"] : _ref$onHoverClassName; - - if (!styles || styles.length === 0) { - return null; - } - - if (!type.styles && !Object(external_lodash_["find"])(styles, 'isDefault')) { - styles = [{ - name: 'default', - label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'), - isDefault: true - }].concat(Object(toConsumableArray["a" /* default */])(styles)); - } - - var activeStyle = getActiveStyle(styles, className); - - function updateClassName(style) { - var updatedClassName = replaceActiveStyle(className, activeStyle, style); - onChangeClassName(updatedClassName); - onHoverClassName(null); - onSwitch(); - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-styles" - }, styles.map(function (style) { - var styleClassName = replaceActiveStyle(className, activeStyle, style); - return Object(external_this_wp_element_["createElement"])("div", { - key: style.name, - className: classnames_default()('editor-block-styles__item', { - 'is-active': activeStyle === style - }), - onClick: function onClick() { - return updateClassName(style); - }, - onKeyDown: function onKeyDown(event) { - if (external_this_wp_keycodes_["ENTER"] === event.keyCode || external_this_wp_keycodes_["SPACE"] === event.keyCode) { - event.preventDefault(); - updateClassName(style); - } - }, - onMouseEnter: function onMouseEnter() { - return onHoverClassName(styleClassName); - }, - onMouseLeave: function onMouseLeave() { - return onHoverClassName(null); - }, - role: "button", - tabIndex: "0", - "aria-label": style.label || style.name - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-styles__item-preview" - }, Object(external_this_wp_element_["createElement"])(BlockPreviewContent, { - name: name, - attributes: Object(objectSpread["a" /* default */])({}, attributes, { - className: styleClassName - }) - })), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-styles__item-label" - }, style.label || style.name)); - })); -} - -/* harmony default export */ var block_styles = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock; - - var _select2 = select('core/blocks'), - getBlockStyles = _select2.getBlockStyles; - - var block = getBlock(clientId); - var blockType = Object(external_this_wp_blocks_["getBlockType"])(block.name); - return { - name: block.name, - attributes: block.attributes, - className: block.attributes.className || '', - styles: getBlockStyles(block.name), - type: blockType - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var clientId = _ref3.clientId; - return { - onChangeClassName: function onChangeClassName(newClassName) { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - className: newClassName - }); - } - }; -})])(BlockStyles)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/multi-selection-inspector/index.js - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - -function MultiSelectionInspector(_ref) { - var blocks = _ref.blocks; - var words = Object(external_this_wp_wordcount_["count"])(Object(external_this_wp_blocks_["serialize"])(blocks), 'words'); - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-multi-selection-inspector__card" - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" - })), - showColors: true - }), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-multi-selection-inspector__card-content" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-multi-selection-inspector__card-title" - }, - /* translators: %d: number of blocks */ - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d block', '%d blocks', blocks.length), blocks.length)), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-multi-selection-inspector__card-description" - }, - /* translators: %d: number of words */ - Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('%d word', '%d words', words), words)))); -} - -/* harmony default export */ var multi_selection_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getMultiSelectedBlocks = _select.getMultiSelectedBlocks; - - return { - blocks: getMultiSelectedBlocks() - }; -})(MultiSelectionInspector)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-inspector/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - - - - - - -var block_inspector_BlockInspector = function BlockInspector(_ref) { - var selectedBlockClientId = _ref.selectedBlockClientId, - selectedBlockName = _ref.selectedBlockName, - blockType = _ref.blockType, - count = _ref.count, - hasBlockStyles = _ref.hasBlockStyles; - - if (count > 1) { - return Object(external_this_wp_element_["createElement"])(multi_selection_inspector, null); - } - - var isSelectedBlockUnregistered = selectedBlockName === Object(external_this_wp_blocks_["getUnregisteredTypeHandlerName"])(); - /* - * If the selected block is of an unregistered type, avoid showing it as an actual selection - * because we want the user to focus on the unregistered block warning, not block settings. - */ - - if (!blockType || !selectedBlockClientId || isSelectedBlockUnregistered) { - return Object(external_this_wp_element_["createElement"])("span", { - className: "editor-block-inspector__no-blocks" - }, Object(external_this_wp_i18n_["__"])('No block selected.')); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-inspector__card" - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: blockType.icon, - showColors: true - }), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-inspector__card-content" - }, Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-inspector__card-title" - }, blockType.title), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-inspector__card-description" - }, blockType.description))), hasBlockStyles && Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Styles'), - initialOpen: false - }, Object(external_this_wp_element_["createElement"])(block_styles, { - clientId: selectedBlockClientId - }))), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(inspector_controls.Slot, null)), Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(inspector_advanced_controls.Slot, null, function (fills) { - return !Object(external_lodash_["isEmpty"])(fills) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - className: "editor-block-inspector__advanced", - title: Object(external_this_wp_i18n_["__"])('Advanced'), - initialOpen: false - }, fills); - })), Object(external_this_wp_element_["createElement"])(skip_to_selected_block, { - key: "back" - })); -}; - -/* harmony default export */ var block_inspector = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getSelectedBlockCount = _select.getSelectedBlockCount, - getBlockName = _select.getBlockName; - - var _select2 = select('core/blocks'), - getBlockStyles = _select2.getBlockStyles; - - var selectedBlockClientId = getSelectedBlockClientId(); - var selectedBlockName = selectedBlockClientId && getBlockName(selectedBlockClientId); - var blockType = selectedBlockClientId && Object(external_this_wp_blocks_["getBlockType"])(selectedBlockName); - var blockStyles = selectedBlockClientId && getBlockStyles(selectedBlockName); - return { - count: getSelectedBlockCount(), - hasBlockStyles: blockStyles && blockStyles.length > 0, - selectedBlockName: selectedBlockName, - selectedBlockClientId: selectedBlockClientId, - blockType: blockType - }; -})(block_inspector_BlockInspector)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-selection-clearer/index.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - -var block_selection_clearer_BlockSelectionClearer = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockSelectionClearer, _Component); - - function BlockSelectionClearer() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockSelectionClearer); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockSelectionClearer).apply(this, arguments)); - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.clearSelectionIfFocusTarget = _this.clearSelectionIfFocusTarget.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockSelectionClearer, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - /** - * Clears the selected block on focus if the container is the target of the - * focus. This assumes no other descendents have received focus until event - * has bubbled to the container. - * - * @param {FocusEvent} event Focus event. - */ - - }, { - key: "clearSelectionIfFocusTarget", - value: function clearSelectionIfFocusTarget(event) { - var _this$props = this.props, - hasSelectedBlock = _this$props.hasSelectedBlock, - hasMultiSelection = _this$props.hasMultiSelection, - clearSelectedBlock = _this$props.clearSelectedBlock; - var hasSelection = hasSelectedBlock || hasMultiSelection; - - if (event.target === this.container && hasSelection) { - clearSelectedBlock(); - } - } - }, { - key: "render", - value: function render() { - return Object(external_this_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({ - tabIndex: -1, - onFocus: this.clearSelectionIfFocusTarget, - ref: this.bindContainer - }, Object(external_lodash_["omit"])(this.props, ['clearSelectedBlock', 'hasSelectedBlock', 'hasMultiSelection']))); - } - }]); - - return BlockSelectionClearer; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var block_selection_clearer = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - hasSelectedBlock = _select.hasSelectedBlock, - hasMultiSelection = _select.hasMultiSelection; - - return { - hasSelectedBlock: hasSelectedBlock(), - hasMultiSelection: hasMultiSelection() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - clearSelectedBlock = _dispatch.clearSelectedBlock; - - return { - clearSelectedBlock: clearSelectedBlock - }; -})])(block_selection_clearer_BlockSelectionClearer)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/block-mode-toggle.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function BlockModeToggle(_ref) { - var blockType = _ref.blockType, - mode = _ref.mode, - onToggleMode = _ref.onToggleMode, - _ref$small = _ref.small, - small = _ref$small === void 0 ? false : _ref$small; - - if (!Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'html', true)) { - return null; - } - - var label = mode === 'visual' ? Object(external_this_wp_i18n_["__"])('Edit as HTML') : Object(external_this_wp_i18n_["__"])('Edit visually'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - onClick: onToggleMode, - icon: "html", - label: small ? label : undefined - }, !small && label); -} -/* harmony default export */ var block_mode_toggle = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock, - getBlockMode = _select.getBlockMode; - - var block = getBlock(clientId); - return { - mode: getBlockMode(clientId), - blockType: block ? Object(external_this_wp_blocks_["getBlockType"])(block.name) : null - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var _ref3$onToggle = _ref3.onToggle, - onToggle = _ref3$onToggle === void 0 ? external_lodash_["noop"] : _ref3$onToggle, - clientId = _ref3.clientId; - return { - onToggleMode: function onToggleMode() { - dispatch('core/block-editor').toggleBlockMode(clientId); - onToggle(); - } - }; -})])(BlockModeToggle)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/reusable-block-convert-button.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -function ReusableBlockConvertButton(_ref) { - var isVisible = _ref.isVisible, - isReusable = _ref.isReusable, - onConvertToStatic = _ref.onConvertToStatic, - onConvertToReusable = _ref.onConvertToReusable; - - if (!isVisible) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, !isReusable && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - icon: "controls-repeat", - onClick: onConvertToReusable - }, Object(external_this_wp_i18n_["__"])('Add to Reusable Blocks')), isReusable && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - icon: "controls-repeat", - onClick: onConvertToStatic - }, Object(external_this_wp_i18n_["__"])('Convert to Regular Block'))); -} -/* harmony default export */ var reusable_block_convert_button = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientIds = _ref2.clientIds; - - var _select = select('core/block-editor'), - getBlocksByClientId = _select.getBlocksByClientId, - canInsertBlockType = _select.canInsertBlockType; - - var _select2 = select('core/editor'), - getReusableBlock = _select2.__experimentalGetReusableBlock; - - var _select3 = select('core'), - canUser = _select3.canUser; - - var blocks = getBlocksByClientId(clientIds); - var isReusable = blocks.length === 1 && blocks[0] && Object(external_this_wp_blocks_["isReusableBlock"])(blocks[0]) && !!getReusableBlock(blocks[0].attributes.ref); // Show 'Convert to Regular Block' when selected block is a reusable block - - var isVisible = isReusable || // Hide 'Add to Reusable Blocks' when reusable blocks are disabled - canInsertBlockType('core/block') && Object(external_lodash_["every"])(blocks, function (block) { - return (// Guard against the case where a regular block has *just* been converted - !!block && // Hide 'Add to Reusable Blocks' on invalid blocks - block.isValid && // Hide 'Add to Reusable Blocks' when block doesn't support being made reusable - Object(external_this_wp_blocks_["hasBlockSupport"])(block.name, 'reusable', true) - ); - }) && // Hide 'Add to Reusable Blocks' when current doesn't have permission to do that - !!canUser('create', 'blocks'); - return { - isReusable: isReusable, - isVisible: isVisible - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3) { - var clientIds = _ref3.clientIds, - _ref3$onToggle = _ref3.onToggle, - onToggle = _ref3$onToggle === void 0 ? external_lodash_["noop"] : _ref3$onToggle; - - var _dispatch = dispatch('core/editor'), - convertBlockToReusable = _dispatch.__experimentalConvertBlockToReusable, - convertBlockToStatic = _dispatch.__experimentalConvertBlockToStatic; - - return { - onConvertToStatic: function onConvertToStatic() { - if (clientIds.length !== 1) { - return; - } - - convertBlockToStatic(clientIds[0]); - onToggle(); - }, - onConvertToReusable: function onConvertToReusable() { - convertBlockToReusable(clientIds); - onToggle(); - } - }; -})])(ReusableBlockConvertButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/reusable-block-delete-button.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -function ReusableBlockDeleteButton(_ref) { - var isVisible = _ref.isVisible, - isDisabled = _ref.isDisabled, - onDelete = _ref.onDelete; - - if (!isVisible) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - icon: "no", - disabled: isDisabled, - onClick: function onClick() { - return onDelete(); - } - }, Object(external_this_wp_i18n_["__"])('Remove from Reusable Blocks')); -} -/* harmony default export */ var reusable_block_delete_button = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select, _ref2) { - var clientId = _ref2.clientId; - - var _select = select('core/block-editor'), - getBlock = _select.getBlock; - - var _select2 = select('core'), - canUser = _select2.canUser; - - var _select3 = select('core/editor'), - getReusableBlock = _select3.__experimentalGetReusableBlock; - - var block = getBlock(clientId); - var reusableBlock = block && Object(external_this_wp_blocks_["isReusableBlock"])(block) ? getReusableBlock(block.attributes.ref) : null; - return { - isVisible: !!reusableBlock && !!canUser('delete', 'blocks', reusableBlock.id), - isDisabled: reusableBlock && reusableBlock.isTemporary - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref3, _ref4) { - var clientId = _ref3.clientId, - _ref3$onToggle = _ref3.onToggle, - onToggle = _ref3$onToggle === void 0 ? external_lodash_["noop"] : _ref3$onToggle; - var select = _ref4.select; - - var _dispatch = dispatch('core/editor'), - deleteReusableBlock = _dispatch.__experimentalDeleteReusableBlock; - - var _select4 = select('core/block-editor'), - getBlock = _select4.getBlock; - - return { - onDelete: function onDelete() { - // TODO: Make this a component or similar - // eslint-disable-next-line no-alert - var hasConfirmed = window.confirm(Object(external_this_wp_i18n_["__"])('Are you sure you want to delete this Reusable Block?\n\n' + 'It will be permanently removed from all posts and pages that use it.')); - - if (hasConfirmed) { - var block = getBlock(clientId); - deleteReusableBlock(block.attributes.ref); - onToggle(); - } - } - }; -})])(ReusableBlockDeleteButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/block-convert-button.js - - -/** - * WordPress dependencies - */ - - -function BlockConvertButton(_ref) { - var shouldRender = _ref.shouldRender, - onClick = _ref.onClick, - small = _ref.small; - - if (!shouldRender) { - return null; - } - - var label = Object(external_this_wp_i18n_["__"])('Convert to Blocks'); - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - onClick: onClick, - icon: "screenoptions", - label: small ? label : undefined - }, !small && label); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/block-html-convert-button.js -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var block_html_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var clientId = _ref.clientId; - var block = select('core/block-editor').getBlock(clientId); - return { - block: block, - shouldRender: block && block.name === 'core/html' - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var block = _ref2.block; - return { - onClick: function onClick() { - return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ - HTML: Object(external_this_wp_blocks_["getBlockContent"])(block) - })); - } - }; -}))(BlockConvertButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/block-unknown-convert-button.js -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/* harmony default export */ var block_unknown_convert_button = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref) { - var clientId = _ref.clientId; - var block = select('core/block-editor').getBlock(clientId); - return { - block: block, - shouldRender: block && block.name === Object(external_this_wp_blocks_["getFreeformContentHandlerName"])() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, _ref2) { - var block = _ref2.block; - return { - onClick: function onClick() { - return dispatch('core/block-editor').replaceBlocks(block.clientId, Object(external_this_wp_blocks_["rawHandler"])({ - HTML: Object(external_this_wp_blocks_["serialize"])(block) - })); - } - }; -}))(BlockConvertButton)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js -/** - * WordPress dependencies - */ - - -var block_settings_menu_first_item_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('_BlockSettingsMenuFirstItem'), - _BlockSettingsMenuFirstItem = block_settings_menu_first_item_createSlotFill.Fill, - block_settings_menu_first_item_Slot = block_settings_menu_first_item_createSlotFill.Slot; - -_BlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot; -/* harmony default export */ var block_settings_menu_first_item = (_BlockSettingsMenuFirstItem); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/block-settings-menu-plugins-extension.js -/** - * WordPress dependencies - */ - - -var block_settings_menu_plugins_extension_createSlotFill = Object(external_this_wp_components_["createSlotFill"])('_BlockSettingsMenuPluginsExtension'), - _BlockSettingsMenuPluginsExtension = block_settings_menu_plugins_extension_createSlotFill.Fill, - block_settings_menu_plugins_extension_Slot = block_settings_menu_plugins_extension_createSlotFill.Slot; - -_BlockSettingsMenuPluginsExtension.Slot = block_settings_menu_plugins_extension_Slot; -/* harmony default export */ var block_settings_menu_plugins_extension = (_BlockSettingsMenuPluginsExtension); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/index.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - - - - - - - - - -function BlockSettingsMenu(_ref) { - var clientIds = _ref.clientIds, - onSelect = _ref.onSelect; - var blockClientIds = Object(external_lodash_["castArray"])(clientIds); - var count = blockClientIds.length; - var firstBlockClientId = blockClientIds[0]; - return Object(external_this_wp_element_["createElement"])(block_actions, { - clientIds: clientIds - }, function (_ref2) { - var onDuplicate = _ref2.onDuplicate, - onRemove = _ref2.onRemove, - onInsertAfter = _ref2.onInsertAfter, - onInsertBefore = _ref2.onInsertBefore, - canDuplicate = _ref2.canDuplicate, - isLocked = _ref2.isLocked; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - contentClassName: "editor-block-settings-menu__popover", - position: "bottom right", - renderToggle: function renderToggle(_ref3) { - var onToggle = _ref3.onToggle, - isOpen = _ref3.isOpen; - var toggleClassname = classnames_default()('editor-block-settings-menu__toggle', { - 'is-opened': isOpen - }); - var label = isOpen ? Object(external_this_wp_i18n_["__"])('Hide options') : Object(external_this_wp_i18n_["__"])('More options'); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], { - controls: [{ - icon: 'ellipsis', - title: label, - onClick: function onClick() { - if (count === 1) { - onSelect(firstBlockClientId); - } - - onToggle(); - }, - className: toggleClassname, - extraProps: { - 'aria-expanded': isOpen - } - }] - }); - }, - renderContent: function renderContent(_ref4) { - var onClose = _ref4.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], { - className: "editor-block-settings-menu__content" - }, Object(external_this_wp_element_["createElement"])(block_settings_menu_first_item.Slot, { - fillProps: { - onClose: onClose - } - }), count === 1 && Object(external_this_wp_element_["createElement"])(block_unknown_convert_button, { - clientId: firstBlockClientId - }), count === 1 && Object(external_this_wp_element_["createElement"])(block_html_convert_button, { - clientId: firstBlockClientId - }), !isLocked && canDuplicate && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - onClick: onDuplicate, - icon: "admin-page", - shortcut: shortcuts.duplicate.display - }, Object(external_this_wp_i18n_["__"])('Duplicate')), !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - onClick: onInsertBefore, - icon: "insert-before", - shortcut: shortcuts.insertBefore.display - }, Object(external_this_wp_i18n_["__"])('Insert Before')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - onClick: onInsertAfter, - icon: "insert-after", - shortcut: shortcuts.insertAfter.display - }, Object(external_this_wp_i18n_["__"])('Insert After'))), count === 1 && Object(external_this_wp_element_["createElement"])(block_mode_toggle, { - clientId: firstBlockClientId, - onToggle: onClose - }), Object(external_this_wp_element_["createElement"])(reusable_block_convert_button, { - clientIds: clientIds, - onToggle: onClose - }), Object(external_this_wp_element_["createElement"])(block_settings_menu_plugins_extension.Slot, { - fillProps: { - clientIds: clientIds, - onClose: onClose - } - }), Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-settings-menu__separator" - }), count === 1 && Object(external_this_wp_element_["createElement"])(reusable_block_delete_button, { - clientId: firstBlockClientId, - onToggle: onClose - }), !isLocked && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - className: "editor-block-settings-menu__control", - onClick: onRemove, - icon: "trash", - shortcut: shortcuts.removeBlock.display - }, Object(external_this_wp_i18n_["__"])('Remove Block'))); - } - }); - }); -} -/* harmony default export */ var block_settings_menu = (Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - selectBlock = _dispatch.selectBlock; - - return { - onSelect: function onSelect(clientId) { - selectBlock(clientId); - } - }; -})(BlockSettingsMenu)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-switcher/index.js - - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - - -/** - * Internal dependencies - */ - - - - - -var block_switcher_BlockSwitcher = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(BlockSwitcher, _Component); - - function BlockSwitcher() { - var _this; - - Object(classCallCheck["a" /* default */])(this, BlockSwitcher); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(BlockSwitcher).apply(this, arguments)); - _this.state = { - hoveredClassName: null - }; - _this.onHoverClassName = _this.onHoverClassName.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - return _this; - } - - Object(createClass["a" /* default */])(BlockSwitcher, [{ - key: "onHoverClassName", - value: function onHoverClassName(className) { - this.setState({ - hoveredClassName: className - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - blocks = _this$props.blocks, - onTransform = _this$props.onTransform, - inserterItems = _this$props.inserterItems, - hasBlockStyles = _this$props.hasBlockStyles; - var hoveredClassName = this.state.hoveredClassName; - - if (!blocks || !blocks.length) { - return null; - } - - var itemsByName = Object(external_lodash_["mapKeys"])(inserterItems, function (_ref) { - var name = _ref.name; - return name; - }); - var possibleBlockTransformations = Object(external_lodash_["orderBy"])(Object(external_lodash_["filter"])(Object(external_this_wp_blocks_["getPossibleBlockTransformations"])(blocks), function (block) { - return block && !!itemsByName[block.name]; - }), function (block) { - return itemsByName[block.name].frecency; - }, 'desc'); // When selection consists of blocks of multiple types, display an - // appropriate icon to communicate the non-uniformity. - - var isSelectionOfSameType = Object(external_lodash_["uniq"])(Object(external_lodash_["map"])(blocks, 'name')).length === 1; - var icon; - - if (isSelectionOfSameType) { - var sourceBlockName = blocks[0].name; - var blockType = Object(external_this_wp_blocks_["getBlockType"])(sourceBlockName); - icon = blockType.icon; - } else { - icon = 'layout'; - } - - if (!hasBlockStyles && !possibleBlockTransformations.length) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - disabled: true, - className: "editor-block-switcher__no-switcher-icon", - label: Object(external_this_wp_i18n_["__"])('Block icon') - }, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon, - showColors: true - }))); - } - - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], { - position: "bottom right", - className: "editor-block-switcher", - contentClassName: "editor-block-switcher__popover", - renderToggle: function renderToggle(_ref2) { - var onToggle = _ref2.onToggle, - isOpen = _ref2.isOpen; - - var openOnArrowDown = function openOnArrowDown(event) { - if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) { - event.preventDefault(); - event.stopPropagation(); - onToggle(); - } - }; - - var label = 1 === blocks.length ? Object(external_this_wp_i18n_["__"])('Change block type') : Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["_n"])('Change type of %d block', 'Change type of %d blocks', blocks.length), blocks.length); - return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], { - className: "editor-block-switcher__toggle", - onClick: onToggle, - "aria-haspopup": "true", - "aria-expanded": isOpen, - label: label, - tooltip: label, - onKeyDown: openOnArrowDown, - icon: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockIcon, { - icon: icon, - showColors: true - }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { - className: "editor-block-switcher__transform", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" - }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { - d: "M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z" - }))) - })); - }, - renderContent: function renderContent(_ref3) { - var onClose = _ref3.onClose; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, hasBlockStyles && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Block Styles'), - initialOpen: true - }, Object(external_this_wp_element_["createElement"])(block_styles, { - clientId: blocks[0].clientId, - onSwitch: onClose, - onHoverClassName: _this2.onHoverClassName - })), possibleBlockTransformations.length !== 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], { - title: Object(external_this_wp_i18n_["__"])('Transform To:'), - initialOpen: true - }, Object(external_this_wp_element_["createElement"])(block_types_list, { - items: possibleBlockTransformations.map(function (destinationBlockType) { - return { - id: destinationBlockType.name, - icon: destinationBlockType.icon, - title: destinationBlockType.title, - hasChildBlocksWithInserterSupport: Object(external_this_wp_blocks_["hasChildBlocksWithInserterSupport"])(destinationBlockType.name) - }; - }), - onSelect: function onSelect(item) { - onTransform(blocks, item.id); - onClose(); - } - })), hoveredClassName !== null && Object(external_this_wp_element_["createElement"])(block_preview, { - name: blocks[0].name, - attributes: Object(objectSpread["a" /* default */])({}, blocks[0].attributes, { - className: hoveredClassName - }) - })); - } - }); - } - }]); - - return BlockSwitcher; -}(external_this_wp_element_["Component"]); -/* harmony default export */ var block_switcher = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select, _ref4) { - var clientIds = _ref4.clientIds; - - var _select = select('core/block-editor'), - getBlocksByClientId = _select.getBlocksByClientId, - getBlockRootClientId = _select.getBlockRootClientId, - getInserterItems = _select.getInserterItems; - - var _select2 = select('core/blocks'), - getBlockStyles = _select2.getBlockStyles; - - var rootClientId = getBlockRootClientId(Object(external_lodash_["first"])(Object(external_lodash_["castArray"])(clientIds))); - var blocks = getBlocksByClientId(clientIds); - var firstBlock = blocks && blocks.length === 1 ? blocks[0] : null; - var styles = firstBlock && getBlockStyles(firstBlock.name); - return { - blocks: blocks, - inserterItems: getInserterItems(rootClientId), - hasBlockStyles: styles && styles.length > 0 - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps) { - return { - onTransform: function onTransform(blocks, name) { - dispatch('core/block-editor').replaceBlocks(ownProps.clientIds, Object(external_this_wp_blocks_["switchToBlockType"])(blocks, name)); - } - }; -}))(block_switcher_BlockSwitcher)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-switcher/multi-blocks-switcher.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - -function MultiBlocksSwitcher(_ref) { - var isMultiBlockSelection = _ref.isMultiBlockSelection, - selectedBlockClientIds = _ref.selectedBlockClientIds; - - if (!isMultiBlockSelection) { - return null; - } - - return Object(external_this_wp_element_["createElement"])(block_switcher, { - key: "switcher", - clientIds: selectedBlockClientIds - }); -} -/* harmony default export */ var multi_blocks_switcher = (Object(external_this_wp_data_["withSelect"])(function (select) { - var selectedBlockClientIds = select('core/block-editor').getMultiSelectedBlockClientIds(); - return { - isMultiBlockSelection: selectedBlockClientIds.length > 1, - selectedBlockClientIds: selectedBlockClientIds - }; -})(MultiBlocksSwitcher)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-toolbar/index.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - - - -function BlockToolbar(_ref) { - var blockClientIds = _ref.blockClientIds, - isValid = _ref.isValid, - mode = _ref.mode; - - if (blockClientIds.length === 0) { - return null; - } - - if (blockClientIds.length > 1) { - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-toolbar" - }, Object(external_this_wp_element_["createElement"])(multi_blocks_switcher, null), Object(external_this_wp_element_["createElement"])(block_settings_menu, { - clientIds: blockClientIds - })); - } - - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-block-toolbar" - }, mode === 'visual' && isValid && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(block_switcher, { - clientIds: blockClientIds - }), Object(external_this_wp_element_["createElement"])(block_controls.Slot, null), Object(external_this_wp_element_["createElement"])(block_format_controls.Slot, null)), Object(external_this_wp_element_["createElement"])(block_settings_menu, { - clientIds: blockClientIds - })); -} - -/* harmony default export */ var block_toolbar = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getBlockMode = _select.getBlockMode, - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, - isBlockValid = _select.isBlockValid; - - var selectedBlockClientId = getSelectedBlockClientId(); - var blockClientIds = selectedBlockClientId ? [selectedBlockClientId] : getMultiSelectedBlockClientIds(); - return { - blockClientIds: blockClientIds, - isValid: selectedBlockClientId ? isBlockValid(selectedBlockClientId) : null, - mode: selectedBlockClientId ? getBlockMode(selectedBlockClientId) : null - }; -})(BlockToolbar)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/copy-handler/index.js - - - - - - -/** - * WordPress dependencies - */ - - - - - - -var copy_handler_CopyHandler = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(CopyHandler, _Component); - - function CopyHandler() { - var _this; - - Object(classCallCheck["a" /* default */])(this, CopyHandler); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(CopyHandler).apply(this, arguments)); - - _this.onCopy = function (event) { - return _this.props.onCopy(event); - }; - - _this.onCut = function (event) { - return _this.props.onCut(event); - }; - - return _this; - } - - Object(createClass["a" /* default */])(CopyHandler, [{ - key: "componentDidMount", - value: function componentDidMount() { - document.addEventListener('copy', this.onCopy); - document.addEventListener('cut', this.onCut); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - document.removeEventListener('copy', this.onCopy); - document.removeEventListener('cut', this.onCut); - } - }, { - key: "render", - value: function render() { - return null; - } - }]); - - return CopyHandler; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var copy_handler = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch, ownProps, _ref) { - var select = _ref.select; - - var _select = select('core/block-editor'), - getBlocksByClientId = _select.getBlocksByClientId, - getMultiSelectedBlockClientIds = _select.getMultiSelectedBlockClientIds, - getSelectedBlockClientId = _select.getSelectedBlockClientId, - hasMultiSelection = _select.hasMultiSelection; - - var _dispatch = dispatch('core/block-editor'), - removeBlocks = _dispatch.removeBlocks; - - var onCopy = function onCopy(event) { - var selectedBlockClientIds = getSelectedBlockClientId() ? [getSelectedBlockClientId()] : getMultiSelectedBlockClientIds(); - - if (selectedBlockClientIds.length === 0) { - return; - } // Let native copy behaviour take over in input fields. - - - if (!hasMultiSelection() && Object(external_this_wp_dom_["documentHasSelection"])()) { - return; - } - - var serialized = Object(external_this_wp_blocks_["serialize"])(getBlocksByClientId(selectedBlockClientIds)); - event.clipboardData.setData('text/plain', serialized); - event.clipboardData.setData('text/html', serialized); - event.preventDefault(); - }; - - return { - onCopy: onCopy, - onCut: function onCut(event) { - onCopy(event); - - if (hasMultiSelection()) { - var selectedBlockClientIds = getSelectedBlockClientId() ? [getSelectedBlockClientId()] : getMultiSelectedBlockClientIds(); - removeBlocks(selectedBlockClientIds); - } - } - }; -})])(copy_handler_CopyHandler)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/error-boundary/index.js - - - - - - - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var error_boundary_ErrorBoundary = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ErrorBoundary, _Component); - - function ErrorBoundary() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ErrorBoundary); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ErrorBoundary).apply(this, arguments)); - _this.reboot = _this.reboot.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.getContent = _this.getContent.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.state = { - error: null - }; - return _this; - } - - Object(createClass["a" /* default */])(ErrorBoundary, [{ - key: "componentDidCatch", - value: function componentDidCatch(error) { - this.setState({ - error: error - }); - } - }, { - key: "reboot", - value: function reboot() { - this.props.onError(); - } - }, { - key: "getContent", - value: function getContent() { - try { - // While `select` in a component is generally discouraged, it is - // used here because it (a) reduces the chance of data loss in the - // case of additional errors by performing a direct retrieval and - // (b) avoids the performance cost associated with unnecessary - // content serialization throughout the lifetime of a non-erroring - // application. - return Object(external_this_wp_data_["select"])('core/editor').getEditedPostContent(); - } catch (error) {} - } - }, { - key: "render", - value: function render() { - var error = this.state.error; - - if (!error) { - return this.props.children; - } - - return Object(external_this_wp_element_["createElement"])(warning, { - className: "editor-error-boundary", - actions: [Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { - key: "recovery", - onClick: this.reboot, - isLarge: true - }, Object(external_this_wp_i18n_["__"])('Attempt Recovery')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { - key: "copy-post", - text: this.getContent, - isLarge: true - }, Object(external_this_wp_i18n_["__"])('Copy Post Text')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ClipboardButton"], { - key: "copy-error", - text: error.stack, - isLarge: true - }, Object(external_this_wp_i18n_["__"])('Copy Error'))] - }, Object(external_this_wp_i18n_["__"])('The editor has encountered an unexpected error.')); - } - }]); - - return ErrorBoundary; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var error_boundary = (error_boundary_ErrorBoundary); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/multi-select-scroll-into-view/index.js - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - - -var multi_select_scroll_into_view_MultiSelectScrollIntoView = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(MultiSelectScrollIntoView, _Component); - - function MultiSelectScrollIntoView() { - Object(classCallCheck["a" /* default */])(this, MultiSelectScrollIntoView); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(MultiSelectScrollIntoView).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(MultiSelectScrollIntoView, [{ - key: "componentDidUpdate", - value: function componentDidUpdate() { - // Relies on expectation that `componentDidUpdate` will only be called - // if value of `extentClientId` changes. - this.scrollIntoView(); - } - /** - * Ensures that if a multi-selection exists, the extent of the selection is - * visible within the nearest scrollable container. - * - * @return {void} - */ - - }, { - key: "scrollIntoView", - value: function scrollIntoView() { - var extentClientId = this.props.extentClientId; - - if (!extentClientId) { - return; - } - - var extentNode = getBlockDOMNode(extentClientId); - - if (!extentNode) { - return; - } - - var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(extentNode); // If there's no scroll container, it follows that there's no scrollbar - // and thus there's no need to try to scroll into view. - - if (!scrollContainer) { - return; - } - - dom_scroll_into_view_lib_default()(extentNode, scrollContainer, { - onlyScrollIfNeeded: true - }); - } - }, { - key: "render", - value: function render() { - return null; - } - }]); - - return MultiSelectScrollIntoView; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var multi_select_scroll_into_view = (Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId; - - return { - extentClientId: getLastMultiSelectedBlockClientId() - }; -})(multi_select_scroll_into_view_MultiSelectScrollIntoView)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/observe-typing/index.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Set of key codes upon which typing is to be initiated on a keydown event. - * - * @type {number[]} - */ - -var KEY_DOWN_ELIGIBLE_KEY_CODES = [external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["ENTER"], external_this_wp_keycodes_["BACKSPACE"]]; -/** - * Returns true if a given keydown event can be inferred as intent to start - * typing, or false otherwise. A keydown is considered eligible if it is a - * text navigation without shift active. - * - * @param {KeyboardEvent} event Keydown event to test. - * - * @return {boolean} Whether event is eligible to start typing. - */ - -function isKeyDownEligibleForStartTyping(event) { - var keyCode = event.keyCode, - shiftKey = event.shiftKey; - return !shiftKey && Object(external_lodash_["includes"])(KEY_DOWN_ELIGIBLE_KEY_CODES, keyCode); -} - -var observe_typing_ObserveTyping = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(ObserveTyping, _Component); - - function ObserveTyping() { - var _this; - - Object(classCallCheck["a" /* default */])(this, ObserveTyping); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ObserveTyping).apply(this, arguments)); - _this.stopTypingOnSelectionUncollapse = _this.stopTypingOnSelectionUncollapse.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.stopTypingOnMouseMove = _this.stopTypingOnMouseMove.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.startTypingInTextField = _this.startTypingInTextField.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.stopTypingOnNonTextField = _this.stopTypingOnNonTextField.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.stopTypingOnEscapeKey = _this.stopTypingOnEscapeKey.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.onKeyDown = Object(external_lodash_["over"])([_this.startTypingInTextField, _this.stopTypingOnEscapeKey]); - _this.lastMouseMove = null; - return _this; - } - - Object(createClass["a" /* default */])(ObserveTyping, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.toggleEventBindings(this.props.isTyping); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.isTyping !== prevProps.isTyping) { - this.toggleEventBindings(this.props.isTyping); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.toggleEventBindings(false); - } - /** - * Bind or unbind events to the document when typing has started or stopped - * respectively, or when component has become unmounted. - * - * @param {boolean} isBound Whether event bindings should be applied. - */ - - }, { - key: "toggleEventBindings", - value: function toggleEventBindings(isBound) { - var bindFn = isBound ? 'addEventListener' : 'removeEventListener'; - document[bindFn]('selectionchange', this.stopTypingOnSelectionUncollapse); - document[bindFn]('mousemove', this.stopTypingOnMouseMove); - } - /** - * On mouse move, unset typing flag if user has moved cursor. - * - * @param {MouseEvent} event Mousemove event. - */ - - }, { - key: "stopTypingOnMouseMove", - value: function stopTypingOnMouseMove(event) { - var clientX = event.clientX, - clientY = event.clientY; // We need to check that the mouse really moved because Safari triggers - // mousemove events when shift or ctrl are pressed. - - if (this.lastMouseMove) { - var _this$lastMouseMove = this.lastMouseMove, - lastClientX = _this$lastMouseMove.clientX, - lastClientY = _this$lastMouseMove.clientY; - - if (lastClientX !== clientX || lastClientY !== clientY) { - this.props.onStopTyping(); - } - } - - this.lastMouseMove = { - clientX: clientX, - clientY: clientY - }; - } - /** - * On selection change, unset typing flag if user has made an uncollapsed - * (shift) selection. - */ - - }, { - key: "stopTypingOnSelectionUncollapse", - value: function stopTypingOnSelectionUncollapse() { - var selection = window.getSelection(); - var isCollapsed = selection.rangeCount > 0 && selection.getRangeAt(0).collapsed; - - if (!isCollapsed) { - this.props.onStopTyping(); - } - } - /** - * Unsets typing flag if user presses Escape while typing flag is active. - * - * @param {KeyboardEvent} event Keypress or keydown event to interpret. - */ - - }, { - key: "stopTypingOnEscapeKey", - value: function stopTypingOnEscapeKey(event) { - if (this.props.isTyping && event.keyCode === external_this_wp_keycodes_["ESCAPE"]) { - this.props.onStopTyping(); - } - } - /** - * Handles a keypress or keydown event to infer intention to start typing. - * - * @param {KeyboardEvent} event Keypress or keydown event to interpret. - */ - - }, { - key: "startTypingInTextField", - value: function startTypingInTextField(event) { - var _this$props = this.props, - isTyping = _this$props.isTyping, - onStartTyping = _this$props.onStartTyping; - var type = event.type, - target = event.target; // Abort early if already typing, or key press is incurred outside a - // text field (e.g. arrow-ing through toolbar buttons). - // Ignore typing in a block toolbar - - if (isTyping || !Object(external_this_wp_dom_["isTextField"])(target) || target.closest('.editor-block-toolbar')) { - return; - } // Special-case keydown because certain keys do not emit a keypress - // event. Conversely avoid keydown as the canonical event since there - // are many keydown which are explicitly not targeted for typing. - - - if (type === 'keydown' && !isKeyDownEligibleForStartTyping(event)) { - return; - } - - onStartTyping(); - } - /** - * Stops typing when focus transitions to a non-text field element. - * - * @param {FocusEvent} event Focus event. - */ - - }, { - key: "stopTypingOnNonTextField", - value: function stopTypingOnNonTextField(event) { - var _this2 = this; - - event.persist(); // Since focus to a non-text field via arrow key will trigger before - // the keydown event, wait until after current stack before evaluating - // whether typing is to be stopped. Otherwise, typing will re-start. - - this.props.setTimeout(function () { - var _this2$props = _this2.props, - isTyping = _this2$props.isTyping, - onStopTyping = _this2$props.onStopTyping; - var target = event.target; - - if (isTyping && !Object(external_this_wp_dom_["isTextField"])(target)) { - onStopTyping(); - } - }); - } - }, { - key: "render", - value: function render() { - var children = this.props.children; // Disable reason: This component is responsible for capturing bubbled - // keyboard events which are interpreted as typing intent. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - return Object(external_this_wp_element_["createElement"])("div", { - onFocus: this.stopTypingOnNonTextField, - onKeyPress: this.startTypingInTextField, - onKeyDown: this.onKeyDown - }, children); - /* eslint-enable jsx-a11y/no-static-element-interactions */ - } - }]); - - return ObserveTyping; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var observe_typing = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - isTyping = _select.isTyping; - - return { - isTyping: isTyping() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - startTyping = _dispatch.startTyping, - stopTyping = _dispatch.stopTyping; - - return { - onStartTyping: startTyping, - onStopTyping: stopTyping - }; -}), external_this_wp_compose_["withSafeTimeout"]])(observe_typing_ObserveTyping)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preserve-scroll-in-reorder/index.js - - - - - - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - -/** - * Non-visual component which preserves offset of selected block within nearest - * scrollable container while reordering. - * - * @example - * - * ```jsx - * - * ``` - */ - -var preserve_scroll_in_reorder_PreserveScrollInReorder = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(PreserveScrollInReorder, _Component); - - function PreserveScrollInReorder() { - Object(classCallCheck["a" /* default */])(this, PreserveScrollInReorder); - - return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(PreserveScrollInReorder).apply(this, arguments)); - } - - Object(createClass["a" /* default */])(PreserveScrollInReorder, [{ - key: "getSnapshotBeforeUpdate", - value: function getSnapshotBeforeUpdate(prevProps) { - var _this$props = this.props, - blockOrder = _this$props.blockOrder, - selectionStart = _this$props.selectionStart; - - if (blockOrder !== prevProps.blockOrder && selectionStart) { - return this.getOffset(selectionStart); - } - - return null; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps, prevState, snapshot) { - if (snapshot) { - this.restorePreviousOffset(snapshot); - } - } - /** - * Given the block client ID of the start of the selection, saves the - * block's top offset as an instance property before a reorder is to occur. - * - * @param {string} selectionStart Client ID of selected block. - * - * @return {number?} The scroll offset. - */ - - }, { - key: "getOffset", - value: function getOffset(selectionStart) { - var blockNode = getBlockDOMNode(selectionStart); - - if (!blockNode) { - return null; - } - - return blockNode.getBoundingClientRect().top; - } - /** - * After a block reordering, restores the previous viewport top offset. - * - * @param {number} offset The scroll offset. - */ - - }, { - key: "restorePreviousOffset", - value: function restorePreviousOffset(offset) { - var selectionStart = this.props.selectionStart; - var blockNode = getBlockDOMNode(selectionStart); - - if (blockNode) { - var scrollContainer = Object(external_this_wp_dom_["getScrollContainer"])(blockNode); - - if (scrollContainer) { - scrollContainer.scrollTop = scrollContainer.scrollTop + blockNode.getBoundingClientRect().top - offset; - } - } - } - }, { - key: "render", - value: function render() { - return null; - } - }]); - - return PreserveScrollInReorder; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var preserve_scroll_in_reorder = (Object(external_this_wp_data_["withSelect"])(function (select) { - return { - blockOrder: select('core/block-editor').getBlockOrder(), - selectionStart: select('core/block-editor').getBlockSelectionStart() - }; -})(preserve_scroll_in_reorder_PreserveScrollInReorder)); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/writing-flow/index.js - - - - - - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - -/** - * Browser constants - */ - -var writing_flow_window = window, - writing_flow_getSelection = writing_flow_window.getSelection; -/** - * Given an element, returns true if the element is a tabbable text field, or - * false otherwise. - * - * @param {Element} element Element to test. - * - * @return {boolean} Whether element is a tabbable text field. - */ - -var isTabbableTextField = Object(external_lodash_["overEvery"])([external_this_wp_dom_["isTextField"], external_this_wp_dom_["focus"].tabbable.isTabbableIndex]); -/** - * Returns true if the element should consider edge navigation upon a keyboard - * event of the given directional key code, or false otherwise. - * - * @param {Element} element HTML element to test. - * @param {number} keyCode KeyboardEvent keyCode to test. - * @param {boolean} hasModifier Whether a modifier is pressed. - * - * @return {boolean} Whether element should consider edge navigation. - */ - -function isNavigationCandidate(element, keyCode, hasModifier) { - var isVertical = keyCode === external_this_wp_keycodes_["UP"] || keyCode === external_this_wp_keycodes_["DOWN"]; // Currently, all elements support unmodified vertical navigation. - - if (isVertical && !hasModifier) { - return true; - } // Native inputs should not navigate horizontally. - - - var tagName = element.tagName; - return tagName !== 'INPUT' && tagName !== 'TEXTAREA'; -} - -var writing_flow_WritingFlow = -/*#__PURE__*/ -function (_Component) { - Object(inherits["a" /* default */])(WritingFlow, _Component); - - function WritingFlow() { - var _this; - - Object(classCallCheck["a" /* default */])(this, WritingFlow); - - _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(WritingFlow).apply(this, arguments)); - _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.clearVerticalRect = _this.clearVerticalRect.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - _this.focusLastTextField = _this.focusLastTextField.bind(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this))); - /** - * Here a rectangle is stored while moving the caret vertically so - * vertical position of the start position can be restored. - * This is to recreate browser behaviour across blocks. - * - * @type {?DOMRect} - */ - - _this.verticalRect = null; - return _this; - } - - Object(createClass["a" /* default */])(WritingFlow, [{ - key: "bindContainer", - value: function bindContainer(ref) { - this.container = ref; - } - }, { - key: "clearVerticalRect", - value: function clearVerticalRect() { - this.verticalRect = null; - } - /** - * Returns the optimal tab target from the given focused element in the - * desired direction. A preference is made toward text fields, falling back - * to the block focus stop if no other candidates exist for the block. - * - * @param {Element} target Currently focused text field. - * @param {boolean} isReverse True if considering as the first field. - * - * @return {?Element} Optimal tab target, if one exists. - */ - - }, { - key: "getClosestTabbable", - value: function getClosestTabbable(target, isReverse) { - // Since the current focus target is not guaranteed to be a text field, - // find all focusables. Tabbability is considered later. - var focusableNodes = external_this_wp_dom_["focus"].focusable.find(this.container); - - if (isReverse) { - focusableNodes = Object(external_lodash_["reverse"])(focusableNodes); - } // Consider as candidates those focusables after the current target. - // It's assumed this can only be reached if the target is focusable - // (on its keydown event), so no need to verify it exists in the set. - - - focusableNodes = focusableNodes.slice(focusableNodes.indexOf(target) + 1); - - function isTabCandidate(node, i, array) { - // Not a candidate if the node is not tabbable. - if (!external_this_wp_dom_["focus"].tabbable.isTabbableIndex(node)) { - return false; - } // Prefer text fields... - - - if (Object(external_this_wp_dom_["isTextField"])(node)) { - return true; - } // ...but settle for block focus stop. - - - if (!isBlockFocusStop(node)) { - return false; - } // If element contains inner blocks, stop immediately at its focus - // wrapper. - - - if (hasInnerBlocksContext(node)) { - return true; - } // If navigating out of a block (in reverse), don't consider its - // block focus stop. - - - if (node.contains(target)) { - return false; - } // In case of block focus stop, check to see if there's a better - // text field candidate within. - - - for (var offset = 1, nextNode; nextNode = array[i + offset]; offset++) { - // Abort if no longer testing descendents of focus stop. - if (!node.contains(nextNode)) { - break; - } // Apply same tests by recursion. This is important to consider - // nestable blocks where we don't want to settle for the inner - // block focus stop. - - - if (isTabCandidate(nextNode, i + offset, array)) { - return false; - } - } - - return true; - } - - return Object(external_lodash_["find"])(focusableNodes, isTabCandidate); - } - }, { - key: "expandSelection", - value: function expandSelection(isReverse) { - var _this$props = this.props, - selectedBlockClientId = _this$props.selectedBlockClientId, - selectionStartClientId = _this$props.selectionStartClientId, - selectionBeforeEndClientId = _this$props.selectionBeforeEndClientId, - selectionAfterEndClientId = _this$props.selectionAfterEndClientId; - var nextSelectionEndClientId = isReverse ? selectionBeforeEndClientId : selectionAfterEndClientId; - - if (nextSelectionEndClientId) { - this.props.onMultiSelect(selectionStartClientId || selectedBlockClientId, nextSelectionEndClientId); - } - } - }, { - key: "moveSelection", - value: function moveSelection(isReverse) { - var _this$props2 = this.props, - selectedFirstClientId = _this$props2.selectedFirstClientId, - selectedLastClientId = _this$props2.selectedLastClientId; - var focusedBlockClientId = isReverse ? selectedFirstClientId : selectedLastClientId; - - if (focusedBlockClientId) { - this.props.onSelectBlock(focusedBlockClientId); - } - } - /** - * Returns true if the given target field is the last in its block which - * can be considered for tab transition. For example, in a block with two - * text fields, this would return true when reversing from the first of the - * two fields, but false when reversing from the second. - * - * @param {Element} target Currently focused text field. - * @param {boolean} isReverse True if considering as the first field. - * - * @return {boolean} Whether field is at edge for tab transition. - */ - - }, { - key: "isTabbableEdge", - value: function isTabbableEdge(target, isReverse) { - var closestTabbable = this.getClosestTabbable(target, isReverse); - return !closestTabbable || !isInSameBlock(target, closestTabbable); - } - }, { - key: "onKeyDown", - value: function onKeyDown(event) { - var _this$props3 = this.props, - hasMultiSelection = _this$props3.hasMultiSelection, - onMultiSelect = _this$props3.onMultiSelect, - blocks = _this$props3.blocks; - var keyCode = event.keyCode, - target = event.target; - var isUp = keyCode === external_this_wp_keycodes_["UP"]; - var isDown = keyCode === external_this_wp_keycodes_["DOWN"]; - var isLeft = keyCode === external_this_wp_keycodes_["LEFT"]; - var isRight = keyCode === external_this_wp_keycodes_["RIGHT"]; - var isReverse = isUp || isLeft; - var isHorizontal = isLeft || isRight; - var isVertical = isUp || isDown; - var isNav = isHorizontal || isVertical; - var isShift = event.shiftKey; - var hasModifier = isShift || event.ctrlKey || event.altKey || event.metaKey; - var isNavEdge = isVertical ? external_this_wp_dom_["isVerticalEdge"] : external_this_wp_dom_["isHorizontalEdge"]; // This logic inside this condition needs to be checked before - // the check for event.nativeEvent.defaultPrevented. - // The logic handles meta+a keypress and this event is default prevented - // by RichText. - - if (!isNav) { - // Set immediately before the meta+a combination can be pressed. - if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event)) { - this.isEntirelySelected = Object(external_this_wp_dom_["isEntirelySelected"])(target); - } - - if (external_this_wp_keycodes_["isKeyboardEvent"].primary(event, 'a')) { - // When the target is contentEditable, selection will already - // have been set by the browser earlier in this call stack. We - // need check the previous result, otherwise all blocks will be - // selected right away. - if (target.isContentEditable ? this.isEntirelySelected : Object(external_this_wp_dom_["isEntirelySelected"])(target)) { - onMultiSelect(Object(external_lodash_["first"])(blocks), Object(external_lodash_["last"])(blocks)); - event.preventDefault(); - } // After pressing primary + A we can assume isEntirelySelected is true. - // Calling right away isEntirelySelected after primary + A may still return false on some browsers. - - - this.isEntirelySelected = true; - } - - return; - } // Abort if navigation has already been handled (e.g. RichText inline - // boundaries). - - - if (event.nativeEvent.defaultPrevented) { - return; - } // Abort if our current target is not a candidate for navigation (e.g. - // preserve native input behaviors). - - - if (!isNavigationCandidate(target, keyCode, hasModifier)) { - return; - } - - if (!isVertical) { - this.verticalRect = null; - } else if (!this.verticalRect) { - this.verticalRect = Object(external_this_wp_dom_["computeCaretRect"])(target); - } - - if (isShift && (hasMultiSelection || this.isTabbableEdge(target, isReverse) && isNavEdge(target, isReverse))) { - // Shift key is down, and there is multi selection or we're at the end of the current block. - this.expandSelection(isReverse); - event.preventDefault(); - } else if (hasMultiSelection) { - // Moving from block multi-selection to single block selection - this.moveSelection(isReverse); - event.preventDefault(); - } else if (isVertical && Object(external_this_wp_dom_["isVerticalEdge"])(target, isReverse)) { - var closestTabbable = this.getClosestTabbable(target, isReverse); - - if (closestTabbable) { - Object(external_this_wp_dom_["placeCaretAtVerticalEdge"])(closestTabbable, isReverse, this.verticalRect); - event.preventDefault(); - } - } else if (isHorizontal && writing_flow_getSelection().isCollapsed && Object(external_this_wp_dom_["isHorizontalEdge"])(target, isReverse)) { - var _closestTabbable = this.getClosestTabbable(target, isReverse); - - Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(_closestTabbable, isReverse); - event.preventDefault(); - } - } - /** - * Sets focus to the end of the last tabbable text field, if one exists. - */ - - }, { - key: "focusLastTextField", - value: function focusLastTextField() { - var focusableNodes = external_this_wp_dom_["focus"].focusable.find(this.container); - var target = Object(external_lodash_["findLast"])(focusableNodes, isTabbableTextField); - - if (target) { - Object(external_this_wp_dom_["placeCaretAtHorizontalEdge"])(target, true); - } - } - }, { - key: "render", - value: function render() { - var children = this.props.children; // Disable reason: Wrapper itself is non-interactive, but must capture - // bubbling events from children to determine focus transition intents. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - - return Object(external_this_wp_element_["createElement"])("div", { - className: "editor-writing-flow" - }, Object(external_this_wp_element_["createElement"])("div", { - ref: this.bindContainer, - onKeyDown: this.onKeyDown, - onMouseDown: this.clearVerticalRect - }, children), Object(external_this_wp_element_["createElement"])("div", { - "aria-hidden": true, - tabIndex: -1, - onClick: this.focusLastTextField, - className: "wp-block editor-writing-flow__click-redirect" - })); - /* eslint-disable jsx-a11y/no-static-element-interactions */ - } - }]); - - return WritingFlow; -}(external_this_wp_element_["Component"]); - -/* harmony default export */ var writing_flow = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSelectedBlockClientId = _select.getSelectedBlockClientId, - getMultiSelectedBlocksStartClientId = _select.getMultiSelectedBlocksStartClientId, - getMultiSelectedBlocksEndClientId = _select.getMultiSelectedBlocksEndClientId, - getPreviousBlockClientId = _select.getPreviousBlockClientId, - getNextBlockClientId = _select.getNextBlockClientId, - getFirstMultiSelectedBlockClientId = _select.getFirstMultiSelectedBlockClientId, - getLastMultiSelectedBlockClientId = _select.getLastMultiSelectedBlockClientId, - hasMultiSelection = _select.hasMultiSelection, - getBlockOrder = _select.getBlockOrder; - - var selectedBlockClientId = getSelectedBlockClientId(); - var selectionStartClientId = getMultiSelectedBlocksStartClientId(); - var selectionEndClientId = getMultiSelectedBlocksEndClientId(); - return { - selectedBlockClientId: selectedBlockClientId, - selectionStartClientId: selectionStartClientId, - selectionBeforeEndClientId: getPreviousBlockClientId(selectionEndClientId || selectedBlockClientId), - selectionAfterEndClientId: getNextBlockClientId(selectionEndClientId || selectedBlockClientId), - selectedFirstClientId: getFirstMultiSelectedBlockClientId(), - selectedLastClientId: getLastMultiSelectedBlockClientId(), - hasMultiSelection: hasMultiSelection(), - blocks: getBlockOrder() - }; -}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) { - var _dispatch = dispatch('core/block-editor'), - multiSelect = _dispatch.multiSelect, - selectBlock = _dispatch.selectBlock; - - return { - onMultiSelect: multiSelect, - onSelectBlock: selectBlock - }; -})])(writing_flow_WritingFlow)); +// EXTERNAL MODULE: ./node_modules/memize/index.js +var memize = __webpack_require__(41); +var memize_default = /*#__PURE__*/__webpack_require__.n(memize); // EXTERNAL MODULE: ./node_modules/traverse/index.js -var traverse = __webpack_require__(193); +var traverse = __webpack_require__(227); var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/editor-styles/ast/parse.js @@ -30340,7 +13748,7 @@ function addParent(obj, parent) { } // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js -var inherits_browser = __webpack_require__(100); +var inherits_browser = __webpack_require__(109); var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/editor-styles/ast/stringify/compiler.js @@ -30832,7 +14240,7 @@ function traverseCSS(css, callback) { /* harmony default export */ var editor_styles_traverse = (traverseCSS); // EXTERNAL MODULE: ./node_modules/url/url.js -var url_url = __webpack_require__(77); +var url = __webpack_require__(84); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/editor-styles/transforms/url-rewrite.js @@ -30902,8 +14310,8 @@ function isValidURL(meta) { function getResourcePath(str, baseURL) { - var pathname = Object(url_url["parse"])(str).pathname; - var filePath = Object(url_url["resolve"])(baseURL, pathname); + var pathname = Object(url["parse"])(str).pathname; + var filePath = Object(url["resolve"])(baseURL, pathname); return filePath; } /** @@ -31077,6 +14485,9 @@ var editor_styles_transformStyles = function transformStyles(styles) { /* harmony default export */ var editor_styles = (editor_styles_transformStyles); +// EXTERNAL MODULE: external {"this":["wp","blob"]} +var external_this_wp_blob_ = __webpack_require__(35); + // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/media-upload/media-upload.js @@ -31084,6 +14495,7 @@ var editor_styles_transformStyles = function transformStyles(styles) { + /** * External dependencies */ @@ -31141,7 +14553,7 @@ function getMimeTypesArray(wpMimeTypesObject) { * @param {?Object} $0.wpAllowedMimeTypes List of allowed mime types and file extensions. */ -function media_upload_mediaUpload(_x) { +function mediaUpload(_x) { return _mediaUpload.apply(this, arguments); } /** @@ -31154,10 +14566,10 @@ function media_upload_mediaUpload(_x) { function _mediaUpload() { _mediaUpload = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee(_ref) { + regenerator_default.a.mark(function _callee(_ref) { var allowedTypes, _ref$additionalData, additionalData, filesList, maxUploadFileSize, _ref$onError, onError, onFileChange, _ref$wpAllowedMimeTyp, wpAllowedMimeTypes, files, filesSet, setAndUpdateFiles, isAllowedType, allowedMimeTypesForUser, isAllowedMimeTypeForUser, triggerError, validFiles, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _mediaFile, idx, mediaFile, savedMedia, mediaObject, message; - return regeneratorRuntime.wrap(function _callee$(_context) { + return regenerator_default.a.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -31423,7 +14835,7 @@ function createMediaFromFile(file, additionalData) { * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available. */ -/* harmony default export */ var utils_media_upload = (function (_ref) { +/* harmony default export */ var media_upload = (function (_ref) { var _ref$additionalData = _ref.additionalData, additionalData = _ref$additionalData === void 0 ? {} : _ref$additionalData, allowedTypes = _ref.allowedTypes, @@ -31439,7 +14851,7 @@ function createMediaFromFile(file, additionalData) { var wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes; maxUploadFileSize = maxUploadFileSize || getEditorSettings().maxUploadFileSize; - media_upload_mediaUpload({ + mediaUpload({ allowedTypes: allowedTypes, filesList: filesList, onFileChange: onFileChange, @@ -31531,13 +14943,13 @@ function (_Component) { Object(createClass["a" /* default */])(EditorProvider, [{ key: "getBlockEditorSettings", value: function getBlockEditorSettings(settings, meta, onMetaChange, reusableBlocks) { - return Object(objectSpread["a" /* default */])({}, Object(external_lodash_["pick"])(settings, ['alignWide', 'colors', 'disableCustomColors', 'fontSizes', 'disableCustomFontSizes', 'imageSizes', 'maxWidth', 'allowedBlockTypes', 'hasFixedToolbar', 'focusMode', 'styles', 'isRTL', 'bodyPlaceholder', 'titlePlaceholder']), { + return Object(objectSpread["a" /* default */])({}, Object(external_lodash_["pick"])(settings, ['alignWide', 'allowedBlockTypes', 'availableLegacyWidgets', 'bodyPlaceholder', 'colors', 'disableCustomColors', 'disableCustomFontSizes', 'focusMode', 'fontSizes', 'hasFixedToolbar', 'hasPermissionsToManageWidgets', 'imageSizes', 'isRTL', 'maxWidth', 'styles', 'templateLock', 'titlePlaceholder']), { __experimentalMetaSource: { value: meta, onChange: onMetaChange }, __experimentalReusableBlocks: reusableBlocks, - __experimentalMediaUpload: utils_media_upload + __experimentalMediaUpload: media_upload }); } }, { @@ -31639,33 +15051,17 @@ function (_Component) { }; })])(provider_EditorProvider)); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/deprecated.js // Block Creation Components +/** + * WordPress dependencies + */ - - - - - - - - - - - - - - - - - - - - - +// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/index.js +// Block Creation Components // Post Related Components @@ -31699,27 +15095,6 @@ function (_Component) { - - - - - - - - - - - - - - - - - - - - - // Content Related Components @@ -31745,466 +15120,6 @@ function (_Component) { -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/align.js - - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -/** - * An array which includes all possible valid alignments, - * used to validate if an alignment is valid or not. - * - * @constant - * @type {string[]} -*/ - -var ALL_ALIGNMENTS = ['left', 'center', 'right', 'wide', 'full']; -/** - * An array which includes all wide alignments. - * In order for this alignments to be valid they need to be supported by the block, - * and by the theme. - * - * @constant - * @type {string[]} -*/ - -var WIDE_ALIGNMENTS = ['wide', 'full']; -/** - * Returns the valid alignments. - * Takes into consideration the aligns supported by a block, if the block supports wide controls or not and if theme supports wide controls or not. - * Exported just for testing purposes, not exported outside the module. - * - * @param {?boolean|string[]} blockAlign Aligns supported by the block. - * @param {?boolean} hasWideBlockSupport True if block supports wide alignments. And False otherwise. - * @param {?boolean} hasWideEnabled True if theme supports wide alignments. And False otherwise. - * - * @return {string[]} Valid alignments. - */ - -function getValidAlignments(blockAlign) { - var hasWideBlockSupport = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var hasWideEnabled = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - var validAlignments; - - if (Array.isArray(blockAlign)) { - validAlignments = blockAlign; - } else if (blockAlign === true) { - // `true` includes all alignments... - validAlignments = ALL_ALIGNMENTS; - } else { - validAlignments = []; - } - - if (!hasWideEnabled || blockAlign === true && !hasWideBlockSupport) { - return external_lodash_["without"].apply(void 0, [validAlignments].concat(WIDE_ALIGNMENTS)); - } - - return validAlignments; -} -/** - * Filters registered block settings, extending attributes to include `align`. - * - * @param {Object} settings Original block settings - * @return {Object} Filtered block settings - */ - -function addAttribute(settings) { - // allow blocks to specify their own attribute definition with default values if needed. - if (Object(external_lodash_["has"])(settings.attributes, ['align', 'type'])) { - return settings; - } - - if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'align')) { - // Use Lodash's assign to gracefully handle if attributes are undefined - settings.attributes = Object(external_lodash_["assign"])(settings.attributes, { - align: { - type: 'string' - } - }); - } - - return settings; -} -/** - * Override the default edit UI to include new toolbar controls for block - * alignment, if block defines support. - * - * @param {Function} BlockEdit Original component - * @return {Function} Wrapped component - */ - -var withToolbarControls = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { - return function (props) { - var blockName = props.name; // Compute valid alignments without taking into account, - // if the theme supports wide alignments or not. - // BlockAlignmentToolbar takes into account the theme support. - - var validAlignments = getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(blockName, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(blockName, 'alignWide', true)); - - var updateAlignment = function updateAlignment(nextAlign) { - if (!nextAlign) { - var blockType = Object(external_this_wp_blocks_["getBlockType"])(props.name); - var blockDefaultAlign = Object(external_lodash_["get"])(blockType, ['attributes', 'align', 'default']); - - if (blockDefaultAlign) { - nextAlign = ''; - } - } - - props.setAttributes({ - align: nextAlign - }); - }; - - return [validAlignments.length > 0 && props.isSelected && Object(external_this_wp_element_["createElement"])(block_controls, { - key: "align-controls" - }, Object(external_this_wp_element_["createElement"])(block_alignment_toolbar, { - value: props.attributes.align, - onChange: updateAlignment, - controls: validAlignments - })), Object(external_this_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({ - key: "edit" - }, props))]; - }; -}, 'withToolbarControls'); // Exported just for testing purposes, not exported outside the module. - -var align_insideSelectWithDataAlign = function insideSelectWithDataAlign(BlockListBlock) { - return function (props) { - var name = props.name, - attributes = props.attributes, - hasWideEnabled = props.hasWideEnabled; - var align = attributes.align; - var validAlignments = getValidAlignments(Object(external_this_wp_blocks_["getBlockSupport"])(name, 'align'), Object(external_this_wp_blocks_["hasBlockSupport"])(name, 'alignWide', true), hasWideEnabled); - var wrapperProps = props.wrapperProps; - - if (Object(external_lodash_["includes"])(validAlignments, align)) { - wrapperProps = Object(objectSpread["a" /* default */])({}, wrapperProps, { - 'data-align': align - }); - } - - return Object(external_this_wp_element_["createElement"])(BlockListBlock, Object(esm_extends["a" /* default */])({}, props, { - wrapperProps: wrapperProps - })); - }; -}; -/** - * Override the default block element to add alignment wrapper props. - * - * @param {Function} BlockListBlock Original component - * @return {Function} Wrapped component - */ - -var withDataAlign = Object(external_this_wp_compose_["createHigherOrderComponent"])(Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) { - var _select = select('core/block-editor'), - getSettings = _select.getSettings; - - return { - hasWideEnabled: !!getSettings().alignWide - }; -}), align_insideSelectWithDataAlign])); -/** - * Override props assigned to save component to inject alignment class name if - * block supports it. - * - * @param {Object} props Additional props applied to save element - * @param {Object} blockType Block type - * @param {Object} attributes Block attributes - * @return {Object} Filtered props applied to save element - */ - -function addAssignedAlign(props, blockType, attributes) { - var align = attributes.align; - var blockAlign = Object(external_this_wp_blocks_["getBlockSupport"])(blockType, 'align'); - var hasWideBlockSupport = Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'alignWide', true); - var isAlignValid = Object(external_lodash_["includes"])( // Compute valid alignments without taking into account, - // if the theme supports wide alignments or not. - // This way changing themes does not impacts the block save. - getValidAlignments(blockAlign, hasWideBlockSupport), align); - - if (isAlignValid) { - props.className = classnames_default()("align".concat(align), props.className); - } - - return props; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/align/addAttribute', addAttribute); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockListBlock', 'core/editor/align/with-data-align', withDataAlign); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/align/with-toolbar-controls', withToolbarControls); -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/align/addAssignedAlign', addAssignedAlign); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/anchor.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - -/** - * Regular expression matching invalid anchor characters for replacement. - * - * @type {RegExp} - */ - -var ANCHOR_REGEX = /[\s#]/g; -/** - * Filters registered block settings, extending attributes with anchor using ID - * of the first node. - * - * @param {Object} settings Original block settings. - * - * @return {Object} Filtered block settings. - */ - -function anchor_addAttribute(settings) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'anchor')) { - // Use Lodash's assign to gracefully handle if attributes are undefined - settings.attributes = Object(external_lodash_["assign"])(settings.attributes, { - anchor: { - type: 'string', - source: 'attribute', - attribute: 'id', - selector: '*' - } - }); - } - - return settings; -} -/** - * Override the default edit UI to include a new block inspector control for - * assigning the anchor ID, if block supports anchor. - * - * @param {function|Component} BlockEdit Original component. - * - * @return {string} Wrapped component. - */ - -var withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { - return function (props) { - var hasAnchor = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'anchor'); - - if (hasAnchor && props.isSelected) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('HTML Anchor'), - help: Object(external_this_wp_i18n_["__"])('Anchors lets you link directly to a section on a page.'), - value: props.attributes.anchor || '', - onChange: function onChange(nextValue) { - nextValue = nextValue.replace(ANCHOR_REGEX, '-'); - props.setAttributes({ - anchor: nextValue - }); - } - }))); - } - - return Object(external_this_wp_element_["createElement"])(BlockEdit, props); - }; -}, 'withInspectorControl'); -/** - * Override props assigned to save component to inject anchor ID, if block - * supports anchor. This is only applied if the block's save result is an - * element and not a markup string. - * - * @param {Object} extraProps Additional props applied to save element. - * @param {Object} blockType Block type. - * @param {Object} attributes Current block attributes. - * - * @return {Object} Filtered props applied to save element. - */ - -function addSaveProps(extraProps, blockType, attributes) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'anchor')) { - extraProps.id = attributes.anchor === '' ? null : attributes.anchor; - } - - return extraProps; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/anchor/with-inspector-control', withInspectorControl); -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/anchor/save-props', addSaveProps); - -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/custom-class-name.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - - -/** - * Internal dependencies - */ - - -/** - * Filters registered block settings, extending attributes with anchor using ID - * of the first node. - * - * @param {Object} settings Original block settings. - * - * @return {Object} Filtered block settings. - */ - -function custom_class_name_addAttribute(settings) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(settings, 'customClassName', true)) { - // Use Lodash's assign to gracefully handle if attributes are undefined - settings.attributes = Object(external_lodash_["assign"])(settings.attributes, { - className: { - type: 'string' - } - }); - } - - return settings; -} -/** - * Override the default edit UI to include a new block inspector control for - * assigning the custom class name, if block supports custom class name. - * - * @param {function|Component} BlockEdit Original component. - * - * @return {string} Wrapped component. - */ - -var custom_class_name_withInspectorControl = Object(external_this_wp_compose_["createHigherOrderComponent"])(function (BlockEdit) { - return function (props) { - var hasCustomClassName = Object(external_this_wp_blocks_["hasBlockSupport"])(props.name, 'customClassName', true); - - if (hasCustomClassName && props.isSelected) { - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(BlockEdit, props), Object(external_this_wp_element_["createElement"])(inspector_advanced_controls, null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - label: Object(external_this_wp_i18n_["__"])('Additional CSS Class'), - value: props.attributes.className || '', - onChange: function onChange(nextValue) { - props.setAttributes({ - className: nextValue !== '' ? nextValue : undefined - }); - } - }))); - } - - return Object(external_this_wp_element_["createElement"])(BlockEdit, props); - }; -}, 'withInspectorControl'); -/** - * Override props assigned to save component to inject anchor ID, if block - * supports anchor. This is only applied if the block's save result is an - * element and not a markup string. - * - * @param {Object} extraProps Additional props applied to save element. - * @param {Object} blockType Block type. - * @param {Object} attributes Current block attributes. - * - * @return {Object} Filtered props applied to save element. - */ - -function custom_class_name_addSaveProps(extraProps, blockType, attributes) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true) && attributes.className) { - extraProps.className = classnames_default()(extraProps.className, attributes.className); - } - - return extraProps; -} -/** - * Given an HTML string, returns an array of class names assigned to the root - * element in the markup. - * - * @param {string} innerHTML Markup string from which to extract classes. - * - * @return {string[]} Array of class names assigned to the root element. - */ - -function getHTMLRootElementClasses(innerHTML) { - innerHTML = "

    ".concat(innerHTML, "
    "); - var parsed = Object(external_this_wp_blocks_["parseWithAttributeSchema"])(innerHTML, { - type: 'string', - source: 'attribute', - selector: '[data-custom-class-name] > *', - attribute: 'class' - }); - return parsed ? parsed.trim().split(/\s+/) : []; -} -/** - * Given a parsed set of block attributes, if the block supports custom class - * names and an unknown class (per the block's serialization behavior) is - * found, the unknown classes are treated as custom classes. This prevents the - * block from being considered as invalid. - * - * @param {Object} blockAttributes Original block attributes. - * @param {Object} blockType Block type settings. - * @param {string} innerHTML Original block markup. - * - * @return {Object} Filtered block attributes. - */ - -function addParsedDifference(blockAttributes, blockType, innerHTML) { - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'customClassName', true)) { - // To determine difference, serialize block given the known set of - // attributes, with the exception of `className`. This will determine - // the default set of classes. From there, any difference in innerHTML - // can be considered as custom classes. - var attributesSansClassName = Object(external_lodash_["omit"])(blockAttributes, ['className']); - var serialized = Object(external_this_wp_blocks_["getSaveContent"])(blockType, attributesSansClassName); - var defaultClasses = getHTMLRootElementClasses(serialized); - var actualClasses = getHTMLRootElementClasses(innerHTML); - var customClasses = Object(external_lodash_["difference"])(actualClasses, defaultClasses); - - if (customClasses.length) { - blockAttributes.className = customClasses.join(' '); - } else if (serialized) { - delete blockAttributes.className; - } - } - - return blockAttributes; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'core/custom-class-name/attribute', custom_class_name_addAttribute); -Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/editor/custom-class-name/with-inspector-control', custom_class_name_withInspectorControl); -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/custom-class-name/save-props', custom_class_name_addSaveProps); -Object(external_this_wp_hooks_["addFilter"])('blocks.getBlockAttributes', 'core/custom-class-name/addParsedDifference', addParsedDifference); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/default-autocompleters.js /** @@ -32251,96 +15166,24 @@ function setDefaultCompleters(completers, blockName) { Object(external_this_wp_hooks_["addFilter"])('editor.Autocomplete.completers', 'editor/autocompleters/set-default-completers', setDefaultCompleters); -// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/generated-class-name.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Override props assigned to save component to inject generated className if - * block supports it. This is only applied if the block's save result is an - * element and not a markup string. - * - * @param {Object} extraProps Additional props applied to save element. - * @param {Object} blockType Block type. - * - * @return {Object} Filtered props applied to save element. - */ - -function addGeneratedClassName(extraProps, blockType) { - // Adding the generated className - if (Object(external_this_wp_blocks_["hasBlockSupport"])(blockType, 'className', true)) { - if (typeof extraProps.className === 'string') { - // We have some extra classes and want to add the default classname - // We use uniq to prevent duplicate classnames - extraProps.className = Object(external_lodash_["uniq"])([Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name)].concat(Object(toConsumableArray["a" /* default */])(extraProps.className.split(' ')))).join(' ').trim(); - } else { - // There is no string in the className variable, - // so we just dump the default name in there - extraProps.className = Object(external_this_wp_blocks_["getBlockDefaultClassName"])(blockType.name); - } - } - - return extraProps; -} -Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName); - // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/hooks/index.js /** * Internal dependencies */ - - - - // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/index.js -/* concated harmony reexport Autocomplete */__webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return autocomplete; }); -/* concated harmony reexport AlignmentToolbar */__webpack_require__.d(__webpack_exports__, "AlignmentToolbar", function() { return alignment_toolbar; }); -/* concated harmony reexport BlockAlignmentToolbar */__webpack_require__.d(__webpack_exports__, "BlockAlignmentToolbar", function() { return block_alignment_toolbar; }); -/* concated harmony reexport BlockControls */__webpack_require__.d(__webpack_exports__, "BlockControls", function() { return block_controls; }); -/* concated harmony reexport BlockEdit */__webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return block_edit; }); -/* concated harmony reexport BlockFormatControls */__webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return block_format_controls; }); -/* concated harmony reexport BlockNavigationDropdown */__webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return dropdown; }); -/* concated harmony reexport BlockIcon */__webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return BlockIcon; }); -/* concated harmony reexport ColorPalette */__webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return color_palette; }); -/* concated harmony reexport withColorContext */__webpack_require__.d(__webpack_exports__, "withColorContext", function() { return with_color_context; }); -/* concated harmony reexport ContrastChecker */__webpack_require__.d(__webpack_exports__, "ContrastChecker", function() { return contrast_checker; }); -/* concated harmony reexport InnerBlocks */__webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return inner_blocks; }); -/* concated harmony reexport InspectorAdvancedControls */__webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return inspector_advanced_controls; }); -/* concated harmony reexport InspectorControls */__webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return inspector_controls; }); -/* concated harmony reexport PanelColorSettings */__webpack_require__.d(__webpack_exports__, "PanelColorSettings", function() { return panel_color_settings; }); -/* concated harmony reexport PlainText */__webpack_require__.d(__webpack_exports__, "PlainText", function() { return plain_text; }); -/* concated harmony reexport RichText */__webpack_require__.d(__webpack_exports__, "RichText", function() { return rich_text; }); -/* concated harmony reexport RichTextShortcut */__webpack_require__.d(__webpack_exports__, "RichTextShortcut", function() { return shortcut_RichTextShortcut; }); -/* concated harmony reexport RichTextToolbarButton */__webpack_require__.d(__webpack_exports__, "RichTextToolbarButton", function() { return RichTextToolbarButton; }); -/* concated harmony reexport RichTextInserterItem */__webpack_require__.d(__webpack_exports__, "RichTextInserterItem", function() { return RichTextInserterItem; }); -/* concated harmony reexport UnstableRichTextInputEvent */__webpack_require__.d(__webpack_exports__, "UnstableRichTextInputEvent", function() { return input_event_UnstableRichTextInputEvent; }); /* concated harmony reexport ServerSideRender */__webpack_require__.d(__webpack_exports__, "ServerSideRender", function() { return server_side_render; }); -/* concated harmony reexport MediaPlaceholder */__webpack_require__.d(__webpack_exports__, "MediaPlaceholder", function() { return media_placeholder; }); -/* concated harmony reexport MediaUpload */__webpack_require__.d(__webpack_exports__, "MediaUpload", function() { return media_upload; }); -/* concated harmony reexport MediaUploadCheck */__webpack_require__.d(__webpack_exports__, "MediaUploadCheck", function() { return check; }); -/* concated harmony reexport URLInput */__webpack_require__.d(__webpack_exports__, "URLInput", function() { return url_input; }); -/* concated harmony reexport URLInputButton */__webpack_require__.d(__webpack_exports__, "URLInputButton", function() { return url_input_button; }); -/* concated harmony reexport URLPopover */__webpack_require__.d(__webpack_exports__, "URLPopover", function() { return url_popover; }); /* concated harmony reexport AutosaveMonitor */__webpack_require__.d(__webpack_exports__, "AutosaveMonitor", function() { return autosave_monitor; }); /* concated harmony reexport DocumentOutline */__webpack_require__.d(__webpack_exports__, "DocumentOutline", function() { return document_outline; }); -/* concated harmony reexport DocumentOutlineCheck */__webpack_require__.d(__webpack_exports__, "DocumentOutlineCheck", function() { return document_outline_check; }); +/* concated harmony reexport DocumentOutlineCheck */__webpack_require__.d(__webpack_exports__, "DocumentOutlineCheck", function() { return check; }); /* concated harmony reexport VisualEditorGlobalKeyboardShortcuts */__webpack_require__.d(__webpack_exports__, "VisualEditorGlobalKeyboardShortcuts", function() { return visual_editor_shortcuts; }); /* concated harmony reexport EditorGlobalKeyboardShortcuts */__webpack_require__.d(__webpack_exports__, "EditorGlobalKeyboardShortcuts", function() { return EditorGlobalKeyboardShortcuts; }); /* concated harmony reexport TextEditorGlobalKeyboardShortcuts */__webpack_require__.d(__webpack_exports__, "TextEditorGlobalKeyboardShortcuts", function() { return TextEditorGlobalKeyboardShortcuts; }); /* concated harmony reexport EditorHistoryRedo */__webpack_require__.d(__webpack_exports__, "EditorHistoryRedo", function() { return editor_history_redo; }); /* concated harmony reexport EditorHistoryUndo */__webpack_require__.d(__webpack_exports__, "EditorHistoryUndo", function() { return editor_history_undo; }); /* concated harmony reexport EditorNotices */__webpack_require__.d(__webpack_exports__, "EditorNotices", function() { return editor_notices; }); +/* concated harmony reexport ErrorBoundary */__webpack_require__.d(__webpack_exports__, "ErrorBoundary", function() { return error_boundary; }); /* concated harmony reexport PageAttributesCheck */__webpack_require__.d(__webpack_exports__, "PageAttributesCheck", function() { return page_attributes_check; }); /* concated harmony reexport PageAttributesOrder */__webpack_require__.d(__webpack_exports__, "PageAttributesOrder", function() { return page_attributes_order; }); /* concated harmony reexport PageAttributesParent */__webpack_require__.d(__webpack_exports__, "PageAttributesParent", function() { return page_attributes_parent; }); @@ -32384,40 +15227,65 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', /* concated harmony reexport TableOfContents */__webpack_require__.d(__webpack_exports__, "TableOfContents", function() { return table_of_contents; }); /* concated harmony reexport UnsavedChangesWarning */__webpack_require__.d(__webpack_exports__, "UnsavedChangesWarning", function() { return unsaved_changes_warning; }); /* concated harmony reexport WordCount */__webpack_require__.d(__webpack_exports__, "WordCount", function() { return word_count; }); -/* concated harmony reexport BlockInspector */__webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return block_inspector; }); -/* concated harmony reexport BlockList */__webpack_require__.d(__webpack_exports__, "BlockList", function() { return block_list; }); -/* concated harmony reexport BlockMover */__webpack_require__.d(__webpack_exports__, "BlockMover", function() { return block_mover; }); -/* concated harmony reexport BlockSelectionClearer */__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return block_selection_clearer; }); -/* concated harmony reexport BlockSettingsMenu */__webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return block_settings_menu; }); -/* concated harmony reexport _BlockSettingsMenuFirstItem */__webpack_require__.d(__webpack_exports__, "_BlockSettingsMenuFirstItem", function() { return block_settings_menu_first_item; }); -/* concated harmony reexport _BlockSettingsMenuPluginsExtension */__webpack_require__.d(__webpack_exports__, "_BlockSettingsMenuPluginsExtension", function() { return block_settings_menu_plugins_extension; }); -/* concated harmony reexport BlockTitle */__webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return block_title; }); -/* concated harmony reexport BlockToolbar */__webpack_require__.d(__webpack_exports__, "BlockToolbar", function() { return block_toolbar; }); -/* concated harmony reexport CopyHandler */__webpack_require__.d(__webpack_exports__, "CopyHandler", function() { return copy_handler; }); -/* concated harmony reexport DefaultBlockAppender */__webpack_require__.d(__webpack_exports__, "DefaultBlockAppender", function() { return default_block_appender; }); -/* concated harmony reexport ErrorBoundary */__webpack_require__.d(__webpack_exports__, "ErrorBoundary", function() { return error_boundary; }); -/* concated harmony reexport Inserter */__webpack_require__.d(__webpack_exports__, "Inserter", function() { return inserter; }); -/* concated harmony reexport MultiBlocksSwitcher */__webpack_require__.d(__webpack_exports__, "MultiBlocksSwitcher", function() { return multi_blocks_switcher; }); -/* concated harmony reexport MultiSelectScrollIntoView */__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return multi_select_scroll_into_view; }); -/* concated harmony reexport NavigableToolbar */__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return navigable_toolbar; }); -/* concated harmony reexport ObserveTyping */__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return observe_typing; }); -/* concated harmony reexport PreserveScrollInReorder */__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return preserve_scroll_in_reorder; }); -/* concated harmony reexport SkipToSelectedBlock */__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return skip_to_selected_block; }); -/* concated harmony reexport Warning */__webpack_require__.d(__webpack_exports__, "Warning", function() { return warning; }); -/* concated harmony reexport WritingFlow */__webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return writing_flow; }); /* concated harmony reexport EditorProvider */__webpack_require__.d(__webpack_exports__, "EditorProvider", function() { return provider; }); /* concated harmony reexport blockAutocompleter */__webpack_require__.d(__webpack_exports__, "blockAutocompleter", function() { return autocompleters_block; }); /* concated harmony reexport userAutocompleter */__webpack_require__.d(__webpack_exports__, "userAutocompleter", function() { return autocompleters_user; }); -/* concated harmony reexport getColorClassName */__webpack_require__.d(__webpack_exports__, "getColorClassName", function() { return getColorClassName; }); -/* concated harmony reexport getColorObjectByAttributeValues */__webpack_require__.d(__webpack_exports__, "getColorObjectByAttributeValues", function() { return utils_getColorObjectByAttributeValues; }); -/* concated harmony reexport getColorObjectByColorValue */__webpack_require__.d(__webpack_exports__, "getColorObjectByColorValue", function() { return utils_getColorObjectByColorValue; }); -/* concated harmony reexport createCustomColorsHOC */__webpack_require__.d(__webpack_exports__, "createCustomColorsHOC", function() { return createCustomColorsHOC; }); -/* concated harmony reexport withColors */__webpack_require__.d(__webpack_exports__, "withColors", function() { return withColors; }); -/* concated harmony reexport getFontSize */__webpack_require__.d(__webpack_exports__, "getFontSize", function() { return utils_getFontSize; }); -/* concated harmony reexport getFontSizeClass */__webpack_require__.d(__webpack_exports__, "getFontSizeClass", function() { return getFontSizeClass; }); -/* concated harmony reexport FontSizePicker */__webpack_require__.d(__webpack_exports__, "FontSizePicker", function() { return font_size_picker; }); -/* concated harmony reexport withFontSizes */__webpack_require__.d(__webpack_exports__, "withFontSizes", function() { return with_font_sizes; }); -/* concated harmony reexport mediaUpload */__webpack_require__.d(__webpack_exports__, "mediaUpload", function() { return utils_media_upload; }); +/* concated harmony reexport Autocomplete */__webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return external_this_wp_blockEditor_["Autocomplete"]; }); +/* concated harmony reexport AlignmentToolbar */__webpack_require__.d(__webpack_exports__, "AlignmentToolbar", function() { return external_this_wp_blockEditor_["AlignmentToolbar"]; }); +/* concated harmony reexport BlockAlignmentToolbar */__webpack_require__.d(__webpack_exports__, "BlockAlignmentToolbar", function() { return external_this_wp_blockEditor_["BlockAlignmentToolbar"]; }); +/* concated harmony reexport BlockControls */__webpack_require__.d(__webpack_exports__, "BlockControls", function() { return external_this_wp_blockEditor_["BlockControls"]; }); +/* concated harmony reexport BlockEdit */__webpack_require__.d(__webpack_exports__, "BlockEdit", function() { return external_this_wp_blockEditor_["BlockEdit"]; }); +/* concated harmony reexport BlockEditorKeyboardShortcuts */__webpack_require__.d(__webpack_exports__, "BlockEditorKeyboardShortcuts", function() { return external_this_wp_blockEditor_["BlockEditorKeyboardShortcuts"]; }); +/* concated harmony reexport BlockFormatControls */__webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return external_this_wp_blockEditor_["BlockFormatControls"]; }); +/* concated harmony reexport BlockIcon */__webpack_require__.d(__webpack_exports__, "BlockIcon", function() { return external_this_wp_blockEditor_["BlockIcon"]; }); +/* concated harmony reexport BlockInspector */__webpack_require__.d(__webpack_exports__, "BlockInspector", function() { return external_this_wp_blockEditor_["BlockInspector"]; }); +/* concated harmony reexport BlockList */__webpack_require__.d(__webpack_exports__, "BlockList", function() { return external_this_wp_blockEditor_["BlockList"]; }); +/* concated harmony reexport BlockMover */__webpack_require__.d(__webpack_exports__, "BlockMover", function() { return external_this_wp_blockEditor_["BlockMover"]; }); +/* concated harmony reexport BlockNavigationDropdown */__webpack_require__.d(__webpack_exports__, "BlockNavigationDropdown", function() { return external_this_wp_blockEditor_["BlockNavigationDropdown"]; }); +/* concated harmony reexport BlockSelectionClearer */__webpack_require__.d(__webpack_exports__, "BlockSelectionClearer", function() { return external_this_wp_blockEditor_["BlockSelectionClearer"]; }); +/* concated harmony reexport BlockSettingsMenu */__webpack_require__.d(__webpack_exports__, "BlockSettingsMenu", function() { return external_this_wp_blockEditor_["BlockSettingsMenu"]; }); +/* concated harmony reexport BlockTitle */__webpack_require__.d(__webpack_exports__, "BlockTitle", function() { return external_this_wp_blockEditor_["BlockTitle"]; }); +/* concated harmony reexport BlockToolbar */__webpack_require__.d(__webpack_exports__, "BlockToolbar", function() { return external_this_wp_blockEditor_["BlockToolbar"]; }); +/* concated harmony reexport ColorPalette */__webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return external_this_wp_blockEditor_["ColorPalette"]; }); +/* concated harmony reexport ContrastChecker */__webpack_require__.d(__webpack_exports__, "ContrastChecker", function() { return external_this_wp_blockEditor_["ContrastChecker"]; }); +/* concated harmony reexport CopyHandler */__webpack_require__.d(__webpack_exports__, "CopyHandler", function() { return external_this_wp_blockEditor_["CopyHandler"]; }); +/* concated harmony reexport createCustomColorsHOC */__webpack_require__.d(__webpack_exports__, "createCustomColorsHOC", function() { return external_this_wp_blockEditor_["createCustomColorsHOC"]; }); +/* concated harmony reexport DefaultBlockAppender */__webpack_require__.d(__webpack_exports__, "DefaultBlockAppender", function() { return external_this_wp_blockEditor_["DefaultBlockAppender"]; }); +/* concated harmony reexport FontSizePicker */__webpack_require__.d(__webpack_exports__, "FontSizePicker", function() { return external_this_wp_blockEditor_["FontSizePicker"]; }); +/* concated harmony reexport getColorClassName */__webpack_require__.d(__webpack_exports__, "getColorClassName", function() { return external_this_wp_blockEditor_["getColorClassName"]; }); +/* concated harmony reexport getColorObjectByAttributeValues */__webpack_require__.d(__webpack_exports__, "getColorObjectByAttributeValues", function() { return external_this_wp_blockEditor_["getColorObjectByAttributeValues"]; }); +/* concated harmony reexport getColorObjectByColorValue */__webpack_require__.d(__webpack_exports__, "getColorObjectByColorValue", function() { return external_this_wp_blockEditor_["getColorObjectByColorValue"]; }); +/* concated harmony reexport getFontSize */__webpack_require__.d(__webpack_exports__, "getFontSize", function() { return external_this_wp_blockEditor_["getFontSize"]; }); +/* concated harmony reexport getFontSizeClass */__webpack_require__.d(__webpack_exports__, "getFontSizeClass", function() { return external_this_wp_blockEditor_["getFontSizeClass"]; }); +/* concated harmony reexport Inserter */__webpack_require__.d(__webpack_exports__, "Inserter", function() { return external_this_wp_blockEditor_["Inserter"]; }); +/* concated harmony reexport InnerBlocks */__webpack_require__.d(__webpack_exports__, "InnerBlocks", function() { return external_this_wp_blockEditor_["InnerBlocks"]; }); +/* concated harmony reexport InspectorAdvancedControls */__webpack_require__.d(__webpack_exports__, "InspectorAdvancedControls", function() { return external_this_wp_blockEditor_["InspectorAdvancedControls"]; }); +/* concated harmony reexport InspectorControls */__webpack_require__.d(__webpack_exports__, "InspectorControls", function() { return external_this_wp_blockEditor_["InspectorControls"]; }); +/* concated harmony reexport PanelColorSettings */__webpack_require__.d(__webpack_exports__, "PanelColorSettings", function() { return external_this_wp_blockEditor_["PanelColorSettings"]; }); +/* concated harmony reexport PlainText */__webpack_require__.d(__webpack_exports__, "PlainText", function() { return external_this_wp_blockEditor_["PlainText"]; }); +/* concated harmony reexport RichText */__webpack_require__.d(__webpack_exports__, "RichText", function() { return external_this_wp_blockEditor_["RichText"]; }); +/* concated harmony reexport RichTextShortcut */__webpack_require__.d(__webpack_exports__, "RichTextShortcut", function() { return external_this_wp_blockEditor_["RichTextShortcut"]; }); +/* concated harmony reexport RichTextToolbarButton */__webpack_require__.d(__webpack_exports__, "RichTextToolbarButton", function() { return external_this_wp_blockEditor_["RichTextToolbarButton"]; }); +/* concated harmony reexport RichTextInserterItem */__webpack_require__.d(__webpack_exports__, "RichTextInserterItem", function() { return external_this_wp_blockEditor_["RichTextInserterItem"]; }); +/* concated harmony reexport UnstableRichTextInputEvent */__webpack_require__.d(__webpack_exports__, "UnstableRichTextInputEvent", function() { return external_this_wp_blockEditor_["UnstableRichTextInputEvent"]; }); +/* concated harmony reexport MediaPlaceholder */__webpack_require__.d(__webpack_exports__, "MediaPlaceholder", function() { return external_this_wp_blockEditor_["MediaPlaceholder"]; }); +/* concated harmony reexport MediaUpload */__webpack_require__.d(__webpack_exports__, "MediaUpload", function() { return external_this_wp_blockEditor_["MediaUpload"]; }); +/* concated harmony reexport MediaUploadCheck */__webpack_require__.d(__webpack_exports__, "MediaUploadCheck", function() { return external_this_wp_blockEditor_["MediaUploadCheck"]; }); +/* concated harmony reexport MultiBlocksSwitcher */__webpack_require__.d(__webpack_exports__, "MultiBlocksSwitcher", function() { return external_this_wp_blockEditor_["MultiBlocksSwitcher"]; }); +/* concated harmony reexport MultiSelectScrollIntoView */__webpack_require__.d(__webpack_exports__, "MultiSelectScrollIntoView", function() { return external_this_wp_blockEditor_["MultiSelectScrollIntoView"]; }); +/* concated harmony reexport NavigableToolbar */__webpack_require__.d(__webpack_exports__, "NavigableToolbar", function() { return external_this_wp_blockEditor_["NavigableToolbar"]; }); +/* concated harmony reexport ObserveTyping */__webpack_require__.d(__webpack_exports__, "ObserveTyping", function() { return external_this_wp_blockEditor_["ObserveTyping"]; }); +/* concated harmony reexport PreserveScrollInReorder */__webpack_require__.d(__webpack_exports__, "PreserveScrollInReorder", function() { return external_this_wp_blockEditor_["PreserveScrollInReorder"]; }); +/* concated harmony reexport SkipToSelectedBlock */__webpack_require__.d(__webpack_exports__, "SkipToSelectedBlock", function() { return external_this_wp_blockEditor_["SkipToSelectedBlock"]; }); +/* concated harmony reexport URLInput */__webpack_require__.d(__webpack_exports__, "URLInput", function() { return external_this_wp_blockEditor_["URLInput"]; }); +/* concated harmony reexport URLInputButton */__webpack_require__.d(__webpack_exports__, "URLInputButton", function() { return external_this_wp_blockEditor_["URLInputButton"]; }); +/* concated harmony reexport URLPopover */__webpack_require__.d(__webpack_exports__, "URLPopover", function() { return external_this_wp_blockEditor_["URLPopover"]; }); +/* concated harmony reexport Warning */__webpack_require__.d(__webpack_exports__, "Warning", function() { return external_this_wp_blockEditor_["Warning"]; }); +/* concated harmony reexport WritingFlow */__webpack_require__.d(__webpack_exports__, "WritingFlow", function() { return external_this_wp_blockEditor_["WritingFlow"]; }); +/* concated harmony reexport withColorContext */__webpack_require__.d(__webpack_exports__, "withColorContext", function() { return external_this_wp_blockEditor_["withColorContext"]; }); +/* concated harmony reexport withColors */__webpack_require__.d(__webpack_exports__, "withColors", function() { return external_this_wp_blockEditor_["withColors"]; }); +/* concated harmony reexport withFontSizes */__webpack_require__.d(__webpack_exports__, "withFontSizes", function() { return external_this_wp_blockEditor_["withFontSizes"]; }); +/* concated harmony reexport mediaUpload */__webpack_require__.d(__webpack_exports__, "mediaUpload", function() { return media_upload; }); /* concated harmony reexport cleanForSlug */__webpack_require__.d(__webpack_exports__, "cleanForSlug", function() { return cleanForSlug; }); /* concated harmony reexport transformStyles */__webpack_require__.d(__webpack_exports__, "transformStyles", function() { return editor_styles; }); /** @@ -32441,5 +15309,2057 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.getSaveContent.extraProps', +/***/ }), + +/***/ 37: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +/***/ }), + +/***/ 38: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["components"]; }()); + +/***/ }), + +/***/ 40: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["viewport"]; }()); + +/***/ }), + +/***/ 41: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = function memize( fn, options ) { + var size = 0, + maxSize, head, tail; + + if ( options && options.maxSize ) { + maxSize = options.maxSize; + } + + function memoized( /* ...args */ ) { + var node = head, + len = arguments.length, + args, i; + + searchCache: while ( node ) { + // Perform a shallow equality test to confirm that whether the node + // under test is a candidate for the arguments passed. Two arrays + // are shallowly equal if their length matches and each entry is + // strictly equal between the two sets. Avoid abstracting to a + // function which could incur an arguments leaking deoptimization. + + // Check whether node arguments match arguments length + if ( node.args.length !== arguments.length ) { + node = node.next; + continue; + } + + // Check whether node arguments match arguments values + for ( i = 0; i < len; i++ ) { + if ( node.args[ i ] !== arguments[ i ] ) { + node = node.next; + continue searchCache; + } + } + + // At this point we can assume we've found a match + + // Surface matched node to head if not already + if ( node !== head ) { + // As tail, shift to previous. Must only shift if not also + // head, since if both head and tail, there is no previous. + if ( node === tail ) { + tail = node.prev; + } + + // Adjust siblings to point to each other. If node was tail, + // this also handles new tail's empty `next` assignment. + node.prev.next = node.next; + if ( node.next ) { + node.next.prev = node.prev; + } + + node.next = head; + node.prev = null; + head.prev = node; + head = node; + } + + // Return immediately + return node.val; + } + + // No cached value found. Continue to insertion phase: + + // Create a copy of arguments (avoid leaking deoptimization) + args = new Array( len ); + for ( i = 0; i < len; i++ ) { + args[ i ] = arguments[ i ]; + } + + node = { + args: args, + + // Generate the result from original function + val: fn.apply( null, args ) + }; + + // Don't need to check whether node is already head, since it would + // have been returned above already if it was + + // Shift existing head down list + if ( head ) { + head.prev = node; + node.next = head; + } else { + // If no head, follows that there's no tail (at initial or reset) + tail = node; + } + + // Trim tail if we're reached max size and are pending cache insertion + if ( size === maxSize ) { + tail = tail.prev; + tail.next = null; + } else { + size++; + } + + head = node; + + return node.val; + } + + memoized.clear = function() { + head = null; + tail = null; + size = 0; + }; + + if ( false ) {} + + return memoized; +}; + + +/***/ }), + +/***/ 44: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; }); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} + +/***/ }), + +/***/ 49: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["deprecated"]; }()); + +/***/ }), + +/***/ 5: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["data"]; }()); + +/***/ }), + +/***/ 50: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["date"]; }()); + +/***/ }), + +/***/ 54: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This method of obtaining a reference to the global object needs to be +// kept identical to the way it is obtained in runtime.js +var g = (function() { + return this || (typeof self === "object" && self); +})() || Function("return this")(); + +// Use `getOwnPropertyNames` because not all browsers support calling +// `hasOwnProperty` on the global `self` object in a worker. See #183. +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; + +// Save the old regeneratorRuntime in case it needs to be restored later. +var oldRuntime = hadRuntime && g.regeneratorRuntime; + +// Force reevalutation of runtime.js. +g.regeneratorRuntime = undefined; + +module.exports = __webpack_require__(55); + +if (hadRuntime) { + // Restore the original runtime. + g.regeneratorRuntime = oldRuntime; +} else { + // Remove the global property added by runtime.js. + try { + delete g.regeneratorRuntime; + } catch(e) { + g.regeneratorRuntime = undefined; + } +} + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +!(function(global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + runtime.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); + + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + Gp[toStringTagSymbol] = "Generator"; + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + + Gp.toString = function() { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { + return this || (typeof self === "object" && self); + })() || Function("return this")() +); + + +/***/ }), + +/***/ 57: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["htmlEntities"]; }()); + +/***/ }), + +/***/ 59: +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || new Function("return this")(); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + +/***/ }), + +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["compose"]; }()); + +/***/ }), + +/***/ 60: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["nux"]; }()); + +/***/ }), + +/***/ 61: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +exports.__esModule = true; +var TextareaAutosize_1 = __webpack_require__(111); +exports["default"] = TextareaAutosize_1["default"]; + + +/***/ }), + +/***/ 62: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(341); + + +/***/ }), + +/***/ 66: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["autop"]; }()); + +/***/ }), + +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + +/***/ }), + +/***/ 70: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +function flattenIntoMap( map, effects ) { + var i; + if ( Array.isArray( effects ) ) { + for ( i = 0; i < effects.length; i++ ) { + flattenIntoMap( map, effects[ i ] ); + } + } else { + for ( i in effects ) { + map[ i ] = ( map[ i ] || [] ).concat( effects[ i ] ); + } + } +} + +function refx( effects ) { + var map = {}, + middleware; + + flattenIntoMap( map, effects ); + + middleware = function( store ) { + return function( next ) { + return function( action ) { + var handlers = map[ action.type ], + result = next( action ), + i, handlerAction; + + if ( handlers ) { + for ( i = 0; i < handlers.length; i++ ) { + handlerAction = handlers[ i ]( action, store ); + if ( handlerAction ) { + store.dispatch( handlerAction ); + } + } + } + + return result; + }; + }; + }; + + middleware.effects = map; + + return middleware; +} + +module.exports = refx; + + +/***/ }), + +/***/ 72: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["coreData"]; }()); + +/***/ }), + +/***/ 8: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blockEditor"]; }()); + +/***/ }), + +/***/ 84: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +var punycode = __webpack_require__(117); +var util = __webpack_require__(119); + +exports.parse = urlParse; +exports.resolve = urlResolve; +exports.resolveObject = urlResolveObject; +exports.format = urlFormat; + +exports.Url = Url; + +function Url() { + this.protocol = null; + this.slashes = null; + this.auth = null; + this.host = null; + this.port = null; + this.hostname = null; + this.hash = null; + this.search = null; + this.query = null; + this.pathname = null; + this.path = null; + this.href = null; +} + +// Reference: RFC 3986, RFC 1808, RFC 2396 + +// define these here so at least they only have to be +// compiled once on the first module load. +var protocolPattern = /^([a-z0-9.+-]+:)/i, + portPattern = /:[0-9]*$/, + + // Special case for a simple path URL + simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, + + // RFC 2396: characters reserved for delimiting URLs. + // We actually just auto-escape these. + delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], + + // RFC 2396: characters not allowed for various reasons. + unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), + + // Allowed by RFCs, but cause of XSS attacks. Always escape these. + autoEscape = ['\''].concat(unwise), + // Characters that are never ever allowed in a hostname. + // Note that any invalid chars are also handled, but these + // are the ones that are *expected* to be seen, so we fast-path + // them. + nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), + hostEndingChars = ['/', '?', '#'], + hostnameMaxLen = 255, + hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, + hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, + // protocols that can allow "unsafe" and "unwise" chars. + unsafeProtocol = { + 'javascript': true, + 'javascript:': true + }, + // protocols that never have a hostname. + hostlessProtocol = { + 'javascript': true, + 'javascript:': true + }, + // protocols that always contain a // bit. + slashedProtocol = { + 'http': true, + 'https': true, + 'ftp': true, + 'gopher': true, + 'file': true, + 'http:': true, + 'https:': true, + 'ftp:': true, + 'gopher:': true, + 'file:': true + }, + querystring = __webpack_require__(120); + +function urlParse(url, parseQueryString, slashesDenoteHost) { + if (url && util.isObject(url) && url instanceof Url) return url; + + var u = new Url; + u.parse(url, parseQueryString, slashesDenoteHost); + return u; +} + +Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { + if (!util.isString(url)) { + throw new TypeError("Parameter 'url' must be a string, not " + typeof url); + } + + // Copy chrome, IE, opera backslash-handling behavior. + // Back slashes before the query string get converted to forward slashes + // See: https://code.google.com/p/chromium/issues/detail?id=25916 + var queryIndex = url.indexOf('?'), + splitter = + (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', + uSplit = url.split(splitter), + slashRegex = /\\/g; + uSplit[0] = uSplit[0].replace(slashRegex, '/'); + url = uSplit.join(splitter); + + var rest = url; + + // trim before proceeding. + // This is to support parse stuff like " http://foo.com \n" + rest = rest.trim(); + + if (!slashesDenoteHost && url.split('#').length === 1) { + // Try fast path regexp + var simplePath = simplePathPattern.exec(rest); + if (simplePath) { + this.path = rest; + this.href = rest; + this.pathname = simplePath[1]; + if (simplePath[2]) { + this.search = simplePath[2]; + if (parseQueryString) { + this.query = querystring.parse(this.search.substr(1)); + } else { + this.query = this.search.substr(1); + } + } else if (parseQueryString) { + this.search = ''; + this.query = {}; + } + return this; + } + } + + var proto = protocolPattern.exec(rest); + if (proto) { + proto = proto[0]; + var lowerProto = proto.toLowerCase(); + this.protocol = lowerProto; + rest = rest.substr(proto.length); + } + + // figure out if it's got a host + // user@server is *always* interpreted as a hostname, and url + // resolution will treat //foo/bar as host=foo,path=bar because that's + // how the browser resolves relative URLs. + if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { + var slashes = rest.substr(0, 2) === '//'; + if (slashes && !(proto && hostlessProtocol[proto])) { + rest = rest.substr(2); + this.slashes = true; + } + } + + if (!hostlessProtocol[proto] && + (slashes || (proto && !slashedProtocol[proto]))) { + + // there's a hostname. + // the first instance of /, ?, ;, or # ends the host. + // + // If there is an @ in the hostname, then non-host chars *are* allowed + // to the left of the last @ sign, unless some host-ending character + // comes *before* the @-sign. + // URLs are obnoxious. + // + // ex: + // http://a@b@c/ => user:a@b host:c + // http://a@b?@c => user:a host:c path:/?@c + + // v0.12 TODO(isaacs): This is not quite how Chrome does things. + // Review our test case against browsers more comprehensively. + + // find the first instance of any hostEndingChars + var hostEnd = -1; + for (var i = 0; i < hostEndingChars.length; i++) { + var hec = rest.indexOf(hostEndingChars[i]); + if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) + hostEnd = hec; + } + + // at this point, either we have an explicit point where the + // auth portion cannot go past, or the last @ char is the decider. + var auth, atSign; + if (hostEnd === -1) { + // atSign can be anywhere. + atSign = rest.lastIndexOf('@'); + } else { + // atSign must be in auth portion. + // http://a@b/c@d => host:b auth:a path:/c@d + atSign = rest.lastIndexOf('@', hostEnd); + } + + // Now we have a portion which is definitely the auth. + // Pull that off. + if (atSign !== -1) { + auth = rest.slice(0, atSign); + rest = rest.slice(atSign + 1); + this.auth = decodeURIComponent(auth); + } + + // the host is the remaining to the left of the first non-host char + hostEnd = -1; + for (var i = 0; i < nonHostChars.length; i++) { + var hec = rest.indexOf(nonHostChars[i]); + if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) + hostEnd = hec; + } + // if we still have not hit it, then the entire thing is a host. + if (hostEnd === -1) + hostEnd = rest.length; + + this.host = rest.slice(0, hostEnd); + rest = rest.slice(hostEnd); + + // pull out port. + this.parseHost(); + + // we've indicated that there is a hostname, + // so even if it's empty, it has to be present. + this.hostname = this.hostname || ''; + + // if hostname begins with [ and ends with ] + // assume that it's an IPv6 address. + var ipv6Hostname = this.hostname[0] === '[' && + this.hostname[this.hostname.length - 1] === ']'; + + // validate a little. + if (!ipv6Hostname) { + var hostparts = this.hostname.split(/\./); + for (var i = 0, l = hostparts.length; i < l; i++) { + var part = hostparts[i]; + if (!part) continue; + if (!part.match(hostnamePartPattern)) { + var newpart = ''; + for (var j = 0, k = part.length; j < k; j++) { + if (part.charCodeAt(j) > 127) { + // we replace non-ASCII char with a temporary placeholder + // we need this to make sure size of hostname is not + // broken by replacing non-ASCII by nothing + newpart += 'x'; + } else { + newpart += part[j]; + } + } + // we test again with ASCII char only + if (!newpart.match(hostnamePartPattern)) { + var validParts = hostparts.slice(0, i); + var notHost = hostparts.slice(i + 1); + var bit = part.match(hostnamePartStart); + if (bit) { + validParts.push(bit[1]); + notHost.unshift(bit[2]); + } + if (notHost.length) { + rest = '/' + notHost.join('.') + rest; + } + this.hostname = validParts.join('.'); + break; + } + } + } + } + + if (this.hostname.length > hostnameMaxLen) { + this.hostname = ''; + } else { + // hostnames are always lower case. + this.hostname = this.hostname.toLowerCase(); + } + + if (!ipv6Hostname) { + // IDNA Support: Returns a punycoded representation of "domain". + // It only converts parts of the domain name that + // have non-ASCII characters, i.e. it doesn't matter if + // you call it with a domain that already is ASCII-only. + this.hostname = punycode.toASCII(this.hostname); + } + + var p = this.port ? ':' + this.port : ''; + var h = this.hostname || ''; + this.host = h + p; + this.href += this.host; + + // strip [ and ] from the hostname + // the host field still retains them, though + if (ipv6Hostname) { + this.hostname = this.hostname.substr(1, this.hostname.length - 2); + if (rest[0] !== '/') { + rest = '/' + rest; + } + } + } + + // now rest is set to the post-host stuff. + // chop off any delim chars. + if (!unsafeProtocol[lowerProto]) { + + // First, make 100% sure that any "autoEscape" chars get + // escaped, even if encodeURIComponent doesn't think they + // need to be. + for (var i = 0, l = autoEscape.length; i < l; i++) { + var ae = autoEscape[i]; + if (rest.indexOf(ae) === -1) + continue; + var esc = encodeURIComponent(ae); + if (esc === ae) { + esc = escape(ae); + } + rest = rest.split(ae).join(esc); + } + } + + + // chop off from the tail first. + var hash = rest.indexOf('#'); + if (hash !== -1) { + // got a fragment string. + this.hash = rest.substr(hash); + rest = rest.slice(0, hash); + } + var qm = rest.indexOf('?'); + if (qm !== -1) { + this.search = rest.substr(qm); + this.query = rest.substr(qm + 1); + if (parseQueryString) { + this.query = querystring.parse(this.query); + } + rest = rest.slice(0, qm); + } else if (parseQueryString) { + // no query string, but parseQueryString still requested + this.search = ''; + this.query = {}; + } + if (rest) this.pathname = rest; + if (slashedProtocol[lowerProto] && + this.hostname && !this.pathname) { + this.pathname = '/'; + } + + //to support http.request + if (this.pathname || this.search) { + var p = this.pathname || ''; + var s = this.search || ''; + this.path = p + s; + } + + // finally, reconstruct the href based on what has been validated. + this.href = this.format(); + return this; +}; + +// format a parsed object into a url string +function urlFormat(obj) { + // ensure it's an object, and not a string url. + // If it's an obj, this is a no-op. + // this way, you can call url_format() on strings + // to clean up potentially wonky urls. + if (util.isString(obj)) obj = urlParse(obj); + if (!(obj instanceof Url)) return Url.prototype.format.call(obj); + return obj.format(); +} + +Url.prototype.format = function() { + var auth = this.auth || ''; + if (auth) { + auth = encodeURIComponent(auth); + auth = auth.replace(/%3A/i, ':'); + auth += '@'; + } + + var protocol = this.protocol || '', + pathname = this.pathname || '', + hash = this.hash || '', + host = false, + query = ''; + + if (this.host) { + host = auth + this.host; + } else if (this.hostname) { + host = auth + (this.hostname.indexOf(':') === -1 ? + this.hostname : + '[' + this.hostname + ']'); + if (this.port) { + host += ':' + this.port; + } + } + + if (this.query && + util.isObject(this.query) && + Object.keys(this.query).length) { + query = querystring.stringify(this.query); + } + + var search = this.search || (query && ('?' + query)) || ''; + + if (protocol && protocol.substr(-1) !== ':') protocol += ':'; + + // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. + // unless they had them to begin with. + if (this.slashes || + (!protocol || slashedProtocol[protocol]) && host !== false) { + host = '//' + (host || ''); + if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname; + } else if (!host) { + host = ''; + } + + if (hash && hash.charAt(0) !== '#') hash = '#' + hash; + if (search && search.charAt(0) !== '?') search = '?' + search; + + pathname = pathname.replace(/[?#]/g, function(match) { + return encodeURIComponent(match); + }); + search = search.replace('#', '%23'); + + return protocol + host + pathname + search + hash; +}; + +function urlResolve(source, relative) { + return urlParse(source, false, true).resolve(relative); +} + +Url.prototype.resolve = function(relative) { + return this.resolveObject(urlParse(relative, false, true)).format(); +}; + +function urlResolveObject(source, relative) { + if (!source) return relative; + return urlParse(source, false, true).resolveObject(relative); +} + +Url.prototype.resolveObject = function(relative) { + if (util.isString(relative)) { + var rel = new Url(); + rel.parse(relative, false, true); + relative = rel; + } + + var result = new Url(); + var tkeys = Object.keys(this); + for (var tk = 0; tk < tkeys.length; tk++) { + var tkey = tkeys[tk]; + result[tkey] = this[tkey]; + } + + // hash is always overridden, no matter what. + // even href="" will remove it. + result.hash = relative.hash; + + // if the relative url is empty, then there's nothing left to do here. + if (relative.href === '') { + result.href = result.format(); + return result; + } + + // hrefs like //foo/bar always cut to the protocol. + if (relative.slashes && !relative.protocol) { + // take everything except the protocol from relative + var rkeys = Object.keys(relative); + for (var rk = 0; rk < rkeys.length; rk++) { + var rkey = rkeys[rk]; + if (rkey !== 'protocol') + result[rkey] = relative[rkey]; + } + + //urlParse appends trailing / to urls like http://www.example.com + if (slashedProtocol[result.protocol] && + result.hostname && !result.pathname) { + result.path = result.pathname = '/'; + } + + result.href = result.format(); + return result; + } + + if (relative.protocol && relative.protocol !== result.protocol) { + // if it's a known url protocol, then changing + // the protocol does weird things + // first, if it's not file:, then we MUST have a host, + // and if there was a path + // to begin with, then we MUST have a path. + // if it is file:, then the host is dropped, + // because that's known to be hostless. + // anything else is assumed to be absolute. + if (!slashedProtocol[relative.protocol]) { + var keys = Object.keys(relative); + for (var v = 0; v < keys.length; v++) { + var k = keys[v]; + result[k] = relative[k]; + } + result.href = result.format(); + return result; + } + + result.protocol = relative.protocol; + if (!relative.host && !hostlessProtocol[relative.protocol]) { + var relPath = (relative.pathname || '').split('/'); + while (relPath.length && !(relative.host = relPath.shift())); + if (!relative.host) relative.host = ''; + if (!relative.hostname) relative.hostname = ''; + if (relPath[0] !== '') relPath.unshift(''); + if (relPath.length < 2) relPath.unshift(''); + result.pathname = relPath.join('/'); + } else { + result.pathname = relative.pathname; + } + result.search = relative.search; + result.query = relative.query; + result.host = relative.host || ''; + result.auth = relative.auth; + result.hostname = relative.hostname || relative.host; + result.port = relative.port; + // to support http.request + if (result.pathname || result.search) { + var p = result.pathname || ''; + var s = result.search || ''; + result.path = p + s; + } + result.slashes = result.slashes || relative.slashes; + result.href = result.format(); + return result; + } + + var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), + isRelAbs = ( + relative.host || + relative.pathname && relative.pathname.charAt(0) === '/' + ), + mustEndAbs = (isRelAbs || isSourceAbs || + (result.host && relative.pathname)), + removeAllDots = mustEndAbs, + srcPath = result.pathname && result.pathname.split('/') || [], + relPath = relative.pathname && relative.pathname.split('/') || [], + psychotic = result.protocol && !slashedProtocol[result.protocol]; + + // if the url is a non-slashed url, then relative + // links like ../.. should be able + // to crawl up to the hostname, as well. This is strange. + // result.protocol has already been set by now. + // Later on, put the first path part into the host field. + if (psychotic) { + result.hostname = ''; + result.port = null; + if (result.host) { + if (srcPath[0] === '') srcPath[0] = result.host; + else srcPath.unshift(result.host); + } + result.host = ''; + if (relative.protocol) { + relative.hostname = null; + relative.port = null; + if (relative.host) { + if (relPath[0] === '') relPath[0] = relative.host; + else relPath.unshift(relative.host); + } + relative.host = null; + } + mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); + } + + if (isRelAbs) { + // it's absolute. + result.host = (relative.host || relative.host === '') ? + relative.host : result.host; + result.hostname = (relative.hostname || relative.hostname === '') ? + relative.hostname : result.hostname; + result.search = relative.search; + result.query = relative.query; + srcPath = relPath; + // fall through to the dot-handling below. + } else if (relPath.length) { + // it's relative + // throw away the existing file, and take the new path instead. + if (!srcPath) srcPath = []; + srcPath.pop(); + srcPath = srcPath.concat(relPath); + result.search = relative.search; + result.query = relative.query; + } else if (!util.isNullOrUndefined(relative.search)) { + // just pull out the search. + // like href='?foo'. + // Put this after the other two cases because it simplifies the booleans + if (psychotic) { + result.hostname = result.host = srcPath.shift(); + //occationaly the auth can get stuck only in host + //this especially happens in cases like + //url.resolveObject('mailto:local1@domain1', 'local2@domain2') + var authInHost = result.host && result.host.indexOf('@') > 0 ? + result.host.split('@') : false; + if (authInHost) { + result.auth = authInHost.shift(); + result.host = result.hostname = authInHost.shift(); + } + } + result.search = relative.search; + result.query = relative.query; + //to support http.request + if (!util.isNull(result.pathname) || !util.isNull(result.search)) { + result.path = (result.pathname ? result.pathname : '') + + (result.search ? result.search : ''); + } + result.href = result.format(); + return result; + } + + if (!srcPath.length) { + // no path at all. easy. + // we've already handled the other stuff above. + result.pathname = null; + //to support http.request + if (result.search) { + result.path = '/' + result.search; + } else { + result.path = null; + } + result.href = result.format(); + return result; + } + + // if a url ENDs in . or .., then it must get a trailing slash. + // however, if it ends in anything else non-slashy, + // then it must NOT get a trailing slash. + var last = srcPath.slice(-1)[0]; + var hasTrailingSlash = ( + (result.host || relative.host || srcPath.length > 1) && + (last === '.' || last === '..') || last === ''); + + // strip single dots, resolve double dots to parent dir + // if the path tries to go above the root, `up` ends up > 0 + var up = 0; + for (var i = srcPath.length; i >= 0; i--) { + last = srcPath[i]; + if (last === '.') { + srcPath.splice(i, 1); + } else if (last === '..') { + srcPath.splice(i, 1); + up++; + } else if (up) { + srcPath.splice(i, 1); + up--; + } + } + + // if the path is allowed to go above the root, restore leading ..s + if (!mustEndAbs && !removeAllDots) { + for (; up--; up) { + srcPath.unshift('..'); + } + } + + if (mustEndAbs && srcPath[0] !== '' && + (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { + srcPath.unshift(''); + } + + if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { + srcPath.push(''); + } + + var isAbsolute = srcPath[0] === '' || + (srcPath[0] && srcPath[0].charAt(0) === '/'); + + // put the host back + if (psychotic) { + result.hostname = result.host = isAbsolute ? '' : + srcPath.length ? srcPath.shift() : ''; + //occationaly the auth can get stuck only in host + //this especially happens in cases like + //url.resolveObject('mailto:local1@domain1', 'local2@domain2') + var authInHost = result.host && result.host.indexOf('@') > 0 ? + result.host.split('@') : false; + if (authInHost) { + result.auth = authInHost.shift(); + result.host = result.hostname = authInHost.shift(); + } + } + + mustEndAbs = mustEndAbs || (result.host && srcPath.length); + + if (mustEndAbs && !isAbsolute) { + srcPath.unshift(''); + } + + if (!srcPath.length) { + result.pathname = null; + result.path = null; + } else { + result.pathname = srcPath.join('/'); + } + + //to support request.http + if (!util.isNull(result.pathname) || !util.isNull(result.search)) { + result.path = (result.pathname ? result.pathname : '') + + (result.search ? result.search : ''); + } + result.auth = relative.auth || result.auth; + result.slashes = result.slashes || relative.slashes; + result.href = result.format(); + return result; +}; + +Url.prototype.parseHost = function() { + var host = this.host; + var port = portPattern.exec(host); + if (port) { + port = port[0]; + if (port !== ':') { + this.port = port.substr(1); + } + host = host.substr(0, host.length - port.length); + } + if (host) this.hostname = host; +}; + + +/***/ }), + +/***/ 89: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = __webpack_require__(90); + +function emptyFunction() {} + +module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = 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' + ); + err.name = 'Invariant Violation'; + throw err; + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; +}; + + +/***/ }), + +/***/ 9: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +/***/ }), + +/***/ 90: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + + +/***/ }), + +/***/ 97: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +/** + * Redux dispatch multiple actions + */ + +function multi(_ref) { + var dispatch = _ref.dispatch; + + return function (next) { + return function (action) { + return Array.isArray(action) ? action.filter(Boolean).map(dispatch) : next(action); + }; + }; +} + +/** + * Exports + */ + +exports.default = multi; + +/***/ }), + +/***/ 98: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["wordcount"]; }()); + /***/ }) -/******/ ]); \ No newline at end of file + +/******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/editor.min.js b/wp-includes/js/dist/editor.min.js index 7c1fa15918..299c9896b6 100644 --- a/wp-includes/js/dist/editor.min.js +++ b/wp-includes/js/dist/editor.min.js @@ -1,55 +1,17 @@ -this.wp=this.wp||{},this.wp.editor=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=304)}([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.lodash}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},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.compose}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(15);function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){"use strict";var r=n(34);var o=n(35);function i(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||Object(o.a)()}n.d(t,"a",function(){return i})},function(e,t){!function(){e.exports=this.React}()},,function(e,t,n){"use strict";var r,o;function i(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=c(s,a,e+1/3),o=c(s,a,e),i=c(s,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),d=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var b,f,h;return n=x(n),{ok:d,format:e.format||p,r:l(255,u(t.r,0)),g:l(255,u(t.g,0)),b:l(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=a++}function b(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=u(e,t,n),c=l(e,t,n),a=(i+c)/2;if(i==c)r=o=0;else{var s=i-c;switch(o=a>.5?s/(2-i-c):s/(i+c),i){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(p(r));return i}function P(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,i=n.v,c=[],a=1/t;t--;)c.push(p({h:r,s:o,v:i})),i=(i+a)%1;return c}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=x(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=b(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[D(s(e).toString(16)),D(s(t).toString(16)),D(s(n).toString(16)),D(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*A(this._r,255))+"%",g:s(100*A(this._g,255))+"%",b:s(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*A(this._r,255))+"%, "+s(100*A(this._g,255))+"%, "+s(100*A(this._b,255))+"%)":"rgba("+s(100*A(this._r,255))+"%, "+s(100*A(this._g,255))+"%, "+s(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),i=n/100;return p({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,i=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,n){var r,o,i,c,a=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var l=0;ls&&(s=r,a=p(t[l]));return p.isReadable(e,a,{level:i,size:c})||!o?a:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var B=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function x(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return l(1,u(0,e))}function N(e){return parseInt(e,16)}function D(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function M(e){return N(e)/255}var U,H,V,W=(H="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",V="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function z(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t){!function(){e.exports=this.wp.date}()},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){!function(){e.exports=this.wp.nux}()},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){e.exports=n(270)},,function(e,t,n){"use strict";t.__esModule=!0;var r=n(271);t.default=r.default},,function(e,t){!function(){e.exports=this.wp.blockEditor}()},,function(e,t){!function(){e.exports=this.wp.autop}()},function(e,t,n){"use strict";e.exports=n(119)},,,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",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),d=["%","/","?",";","#"].concat(u),p=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(104);function g(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?A+="x":A+=x[L];if(!A.match(b)){var D=B.slice(0,w),R=B.slice(w+1),F=x.match(f);F&&(D.push(F[1]),R.unshift(F[2])),R.length&&(g="/"+R.join(".")+g),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!h[k])for(w=0,I=u.length;w0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=_.slice(-1)[0],C=(n.host||e.host||_.length>1)&&("."===E||".."===E)||""===E,w=0,T=_.length;T>=0;T--)"."===(E=_[T])?_.splice(T,1):".."===E?(_.splice(T,1),w++):w&&(_.splice(T,1),w--);if(!y&&!k)for(;w--;w)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),C&&"/"!==_.join("/").substr(-1)&&_.push("");var P,B=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(n.hostname=n.host=B?"":_.length?_.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift()));return(y=y||n.host&&_.length)&&!B&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},,,,function(e,t){!function(){e.exports=this.wp.coreData}()},,,,,,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.wordcount}()},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var a,s=2147483647,l=36,u=1,d=26,p=38,b=700,f=72,h=128,m="-",v=/^xn--/,O=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=l-u,k=Math.floor,_=String.fromCharCode;function S(e){throw new RangeError(j[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function C(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(g,".")).split("."),t).join(".")}function w(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)}).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,n){var r=0;for(e=n?k(e/b):e>>1,e+=k(e/t);e>y*d>>1;r+=l)e=k(e/y);return k(r+(y+1)*e/(e+p))}function I(e){var t,n,r,o,i,c,a,p,b,v,O,g=[],j=e.length,y=0,_=h,E=f;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&S("not-basic"),g.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=j&&S("invalid-input"),((p=(O=e.charCodeAt(o++))-48<10?O-22:O-65<26?O-65:O-97<26?O-97:l)>=l||p>k((s-y)/c))&&S("overflow"),y+=p*c,!(p<(b=a<=E?u:a>=E+d?d:a-E));a+=l)c>k(s/(v=l-b))&&S("overflow"),c*=v;E=B(y-i,t=g.length+1,0==i),k(y/t)>s-_&&S("overflow"),_+=k(y/t),y%=t,g.splice(y++,0,_)}return T(g)}function x(e){var t,n,r,o,i,c,a,p,b,v,O,g,j,y,E,C=[];for(g=(e=w(e)).length,t=h,n=0,i=f,c=0;c=t&&Ok((s-n)/(j=r+1))&&S("overflow"),n+=(a-t)*j,t=a,c=0;cs&&S("overflow"),O==t){for(p=n,b=l;!(p<(v=b<=i?u:b>=i+d?d:b-i));b+=l)E=p-v,y=l-v,C.push(_(P(v+E%y,0))),p=k(E/y);C.push(_(P(p,0))),i=B(n,j,r==o),n=0,++r}++n,++t}return C.join("")}a={version:"1.4.1",ucs2:{decode:w,encode:T},decode:I,encode:x,toASCII:function(e){return C(e,function(e){return O.test(e)?"xn--"+x(e):e})},toUnicode:function(e){return C(e,function(e){return v.test(e)?I(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(102)(e),n(51))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(105),t.encode=t.stringify=n(106)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var a=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u=0?(d=h.substr(0,m),p=h.substr(m+1)):(d=h,p=""),b=decodeURIComponent(d),f=decodeURIComponent(p),r(c,b)?o(c[b])?c[b].push(f):c[b]=[c[b],f]:c[b]=f}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(c(e),function(c){var a=encodeURIComponent(r(c))+n;return o(e[c])?i(e[c],function(e){return a+encodeURIComponent(r(e))}).join(t):a+encodeURIComponent(r(e[c]))}).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0?!0===c?r.scrollTop(t,g.top+j.top):!1===c?r.scrollTop(t,g.top+y.top):j.top<0?r.scrollTop(t,g.top+j.top):r.scrollTop(t,g.top+y.top):i||((c=void 0===c||!!c)?r.scrollTop(t,g.top+j.top):r.scrollTop(t,g.top+y.top)),o&&(j.left<0||y.left>0?!0===a?r.scrollLeft(t,g.left+j.left):!1===a?r.scrollLeft(t,g.left+y.left):j.left<0?r.scrollLeft(t,g.left+j.left):r.scrollLeft(t,g.left+y.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,g.left+j.left):r.scrollLeft(t,g.left+y.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t - -All rights reserved. - -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. - -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. - -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -@license -*/ -var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(2),a=n(3),s=n(5),l=n(6),u=n(7),d=n(8),p=n(9),b=n(10),f=n(11),h=n(13),m=n(14),v=n(16),O=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=s.diffLines,t.diffTrimmedLines=s.diffTrimmedLines,t.diffSentences=l.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=p.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=b.applyPatch,t.applyPatches=b.applyPatches,t.parsePatch=f.parsePatch,t.merge=h.merge,t.convertChangesToDMP=v.convertChangesToDMP,t.convertChangesToXML=O.convertChangesToXML,t.canonicalize=d.canonicalize},function(e,t){"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,c=t.length,a=0,s=0;ie.length?n:e}),l.value=e.join(d)}else l.value=e.join(n.slice(a,a+l.count));a+=l.count,l.added||(s+=l.count)}}var p=t[c-1];return c>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[c-2].value+=p.value,t.pop()),t}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var i=this;function c(e){return o?(setTimeout(function(){o(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,l=1,u=a+s,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=a&&p+1>=s)return c([{value:this.join(t),count:t.length}]);function b(){for(var n=-1*l;n<=l;n+=2){var o=void 0,u=d[n-1],p=d[n+1],b=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var f=u&&u.newPos+1=a&&b+1>=s)return c(r(i,o.components,t,e,i.useLongestToken));d[n]=o}else d[n]=void 0}var m;l++}if(o)!function e(){setTimeout(function(){if(l>u)return o();b()||e()},0)}();else for(;l<=u;){var f=b();if(f)return f}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,c=e.newPos,a=c-r,s=0;c+12&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,o.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,s=n.compareLine||function(e,t,n,r){return t===r},l=0,u=n.fuzzFactor||0,d=0,p=0,b=void 0,f=void 0;function h(e,t){for(var n=0;n0?o[0]:" ",c=o.length>0?o.substr(1):o;if(" "===i||"-"===i){if(!s(t+1,r[t],i,c)&&++l>u)return!1;t++}}return!0}for(var m=0;m0?w[0]:" ",P=w.length>0?w.substr(1):w,B=S.linedelimiters[C];if(" "===T)E++;else if("-"===T)r.splice(E,1),i.splice(E,1);else if("+"===T)r.splice(E,0,P),i.splice(E,0,B),E++;else if("\\"===T){var I=S.lines[C-1]?S.lines[C-1][0]:null;"+"===I?b=!0:"-"===I&&(f=!0)}}}if(b)for(;!r[r.length-1];)r.pop(),i.pop();else f&&(r.push(""),i.push("\n"));for(var x=0;x1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function c(){var e={};for(o.push(e);i0?u(a.lines.slice(-s.context)):[],p-=f.length,b-=f.length)}(c=f).push.apply(c,o(r.map(function(e){return(t.added?"+":"-")+e}))),t.added?m+=r.length:h+=r.length}else{if(p)if(r.length<=2*s.context&&e=l.length-2&&r.length<=s.context){var y=/\n$/.test(n),k=/\n$/.test(i);0!=r.length||y?y&&k||f.push("\\ No newline at end of file"):f.splice(j.oldLines,0,"\\ No newline at end of file")}d.push(j),p=0,b=0,f=[]}h+=r.length,m+=r.length}},O=0;Oe.length)return!1;for(var n=0;n/g,">")).replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],r=0;r"):o.removed&&t.push(""),t.push(n(o.value)),o.added?t.push(""):o.removed&&t.push("")}return t.join("")}}])},e.exports=r()},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var p=n?i(d):d,b={},f=!0,h={node:p,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(f=!1)},delete:function(e){delete h.parent.node[h.key],e&&(f=!1)},remove:function(e){s(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(f=!1)},keys:null,before:function(e){b.before=e},after:function(e){b.after=e},pre:function(e){b.pre=e},post:function(e){b.post=e},stop:function(){a=!1},block:function(){f=!1}};if(!a)return h;function m(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=c(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:a,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),l(n=e(n,o),o),r({optimist:t},n)}return function(n,a){if(a.optimist)switch(a.optimist.type){case o:return function(t,n){var o=u(t),i=o.optimist,c=o.innerState;return i=i.concat([{beforeState:c,action:n}]),l(c=e(c,n),n),r({optimist:i},c)}(n,a);case i:return function(e,n){var r=u(e),o=r.optimist,i=r.innerState,c=[],a=!1,l=!1;o.forEach(function(e){a?e.beforeState&&s(e.action,n.optimist.id)?(l=!0,c.push({action:e.action})):c.push(e):e.beforeState&&!s(e.action,n.optimist.id)?(a=!0,c.push(e)):e.beforeState&&s(e.action,n.optimist.id)&&(l=!0)}),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist');return t(o=c,i,n)}(n,a);case c:return function(n,r){var o=u(n),i=o.optimist,c=o.innerState,a=[],d=!1,p=!1,b=c;i.forEach(function(t){t.beforeState&&s(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),s(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?a.push({beforeState:b,action:t.action}):a.push(t)),p&&(b=e(b,t.action),l(c,r)))}),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist');return t(i=a,b,r)}(n,a)}var d=u(n),p=d.optimist,b=d.innerState;if(n&&!p.length){var f=e(b,a);return f===b?n:(l(f,a),r({optimist:p},f))}return t(p,b,a)}},e.exports.BEGIN=o,e.exports.COMMIT=i,e.exports.REVERT=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t=null,n=null,r=null,c=function(){e.clientWidth!==n&&d()},a=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:a,update:d}),"vertical"===(s=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===s.resize&&(e.style.resize="horizontal"),t="content-box"===s.boxSizing?-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),isNaN(t)&&(t=0),d()}var s;function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(n,r){var o=t(n,r),i=void 0===n||Object(v.includes)(e.resetTypes,r.type),c=n!==o;if(!c&&!i)return n;c&&void 0!==n||(o=Object(b.a)({},o));var a=Object(v.includes)(e.ignoreTypes,r.type);return o.isDirty=a?n.isDirty:!i&&c,o}}},B=n(18),I={resetTypes:[],ignoreTypes:[],shouldOverwriteState:function(){return!1}},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){(e=Object(b.a)({},I,e)).shouldOverwriteState=Object(v.overSome)([e.shouldOverwriteState,function(t){return Object(v.includes)(e.ignoreTypes,t.type)}]);var n={past:[],present:t(void 0,{}),future:[],lastAction:null,shouldCreateUndoLevel:!1},r=e,o=r.resetTypes,i=void 0===o?[]:o,c=r.shouldOverwriteState,a=void 0===c?function(){return!1}:c;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0,o=e.past,c=e.present,s=e.future,l=e.lastAction,u=e.shouldCreateUndoLevel,d=l;switch(r.type){case"UNDO":return o.length?{past:Object(v.dropRight)(o),present:Object(v.last)(o),future:[c].concat(Object(B.a)(s)),lastAction:null,shouldCreateUndoLevel:!1}:e;case"REDO":return s.length?{past:[].concat(Object(B.a)(o),[c]),present:Object(v.first)(s),future:Object(v.drop)(s),lastAction:null,shouldCreateUndoLevel:!1}:e;case"CREATE_UNDO_LEVEL":return Object(b.a)({},e,{lastAction:null,shouldCreateUndoLevel:!0})}var p=t(c,r);if(Object(v.includes)(i,r.type))return{past:[],present:p,future:[],lastAction:null,shouldCreateUndoLevel:!1};if(c===p)return e;var f=o,h=d;return!u&&o.length&&a(r,d)||(f=[].concat(Object(B.a)(o),[c]),h=r),{past:f,present:p,future:[],shouldCreateUndoLevel:!1,lastAction:h}}}};function A(e){return e&&"object"===Object(f.a)(e)&&"raw"in e?e.raw:e}function L(e,t){return e===t?Object(b.a)({},e):t}function N(e,t){return"EDIT_POST"===e.type&&(n=e.edits,r=t.edits,Object(v.isEqual)(Object(v.keys)(n),Object(v.keys)(r)));var n,r}var D=Object(v.flow)([u.combineReducers,x({resetTypes:["SETUP_EDITOR_STATE"],ignoreTypes:["RESET_POST","UPDATE_POST"],shouldOverwriteState:function(e,t){return"RESET_EDITOR_BLOCKS"===e.type?!e.shouldCreateUndoLevel:!(!t||e.type!==t.type)&&N(e,t)}})])({blocks:P({resetTypes:["SETUP_EDITOR_STATE","REQUEST_POST_UPDATE_START"]})(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{value:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_EDITOR_BLOCKS":return t.blocks===e.value?e:{value:t.blocks}}return e}),edits:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_POST":return Object(v.reduce)(t.edits,function(t,n,r){return n!==e[r]&&(t=L(e,t),k.has(r)?t[r]=Object(b.a)({},t[r],n):t[r]=n),t},e);case"UPDATE_POST":case"RESET_POST":var n="UPDATE_POST"===t.type?function(e){return t.edits[e]}:function(e){return A(t.post[e])};return Object(v.reduce)(e,function(t,r,o){return Object(v.isEqual)(r,n(o))?(delete(t=L(e,t))[o],t):t},e);case"RESET_EDITOR_BLOCKS":return"content"in e?Object(v.omit)(e,"content"):e}return e}});var R=Object(u.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(v.reduce)(t.results,function(t,n){var r=n.reusableBlock,o=r.id,i=r.title,c={clientId:n.parsedBlock.clientId,title:i};return Object(v.isEqual)(t[o],c)||((t=L(e,t))[o]=c),t},e);case"UPDATE_REUSABLE_BLOCK_TITLE":var n=t.id,r=t.title;return e[n]&&e[n].title!==r?Object(b.a)({},e,Object(p.a)({},n,Object(b.a)({},e[n],{title:r}))):e;case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return Object(b.a)({},Object(v.omit)(e,o),Object(p.a)({},i,c));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(v.omit)(e,a)}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_REUSABLE_BLOCKS":var n=t.id;return n?Object(b.a)({},e,Object(p.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(v.omit)(e,r)}return e},isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_REUSABLE_BLOCK":return Object(b.a)({},e,Object(p.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(v.omit)(e,n)}return e}});var F=m()(Object(u.combineReducers)({editor:D,initialEdits:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR":if(!t.edits)break;return t.edits;case"SETUP_EDITOR_STATE":return"content"in e?Object(v.omit)(e,"content"):e;case"UPDATE_POST":return Object(v.reduce)(t.edits,function(t,n,r){return t.hasOwnProperty(r)?(delete(t=L(e,t))[r],t):t},e);case"RESET_POST":return j}return e},currentPost:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":var n;if(t.post)n=t.post;else{if(!t.edits)return e;n=Object(b.a)({},e,t.edits)}return Object(v.mapValues)(n,A)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;switch((arguments.length>1?arguments[1]:void 0).type){case"ENABLE_PUBLISH_SIDEBAR":return Object(b.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(b.a)({},e,{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":return{requesting:!0,successful:!1,error:null,options:t.options||{}};case"REQUEST_POST_UPDATE_SUCCESS":return{requesting:!1,successful:!0,error:null,options:t.options||{}};case"REQUEST_POST_UPDATE_FAILURE":return{requesting:!1,successful:!1,error:t.error,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},reusableBlocks:R,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Object(b.a)({},e,{isValid:t.isValid})}return e},autosave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_AUTOSAVE":var n=t.post,r=["title","excerpt","content"].map(function(e){return A(n[e])}),o=Object(d.a)(r,3);return{title:o[0],excerpt:o[1],content:o[2]}}return e},previewLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_SUCCESS":return t.post.preview_link?t.post.preview_link:t.post.link?Object(O.addQueryArgs)(t.post.link,{preview:!0}):e;case"REQUEST_POST_UPDATE_START":if(e&&t.options.isPreview)return null}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return Object(b.a)({},e,Object(p.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"SETUP_EDITOR_STATE":return!0}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return Object(b.a)({},e,t.settings)}return e}})),M=n(64),U=n.n(M),H=n(87),V=n.n(H),W=n(31),z=n.n(W);function K(e){return{type:"API_FETCH",request:e}}function q(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o2?n-2:0),o=2;o2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",optimist:{type:h.BEGIN,id:S},options:e}}function ae(e){var t=e.previousPost,n=e.post,r=e.isRevision,o=e.options,i=e.postType;return{type:"REQUEST_POST_UPDATE_SUCCESS",previousPost:t,post:n,optimist:{type:r?h.REVERT:h.COMMIT,id:S},options:o,postType:i}}function se(e){var t=e.post,n=e.edits,r=e.error,o=e.options;return{type:"REQUEST_POST_UPDATE_FAILURE",optimist:{type:h.REVERT,id:S},post:t,edits:n,error:r,options:o}}function le(e){return{type:"UPDATE_POST",edits:e}}function ue(e){return{type:"SETUP_EDITOR_STATE",post:e}}function de(e){return{type:"EDIT_POST",edits:e}}function pe(e){return Object(b.a)({},le(e),{optimist:{id:S}})}function be(){var e,t,n,r,o,i,c,a,s,l,u,d,p,f,h,m=arguments;return regeneratorRuntime.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return e=m.length>0&&void 0!==m[0]?m[0]:{},O.next=3,q(_,"isEditedPostSaveable");case 3:if(O.sent){O.next=6;break}return O.abrupt("return");case 6:return O.next=8,q(_,"getPostEdits");case 8:return t=O.sent,(n=!!e.isAutosave)&&(t=Object(v.pick)(t,["title","content","excerpt"])),O.next=13,q(_,"isEditedPostNew");case 13:return O.sent&&(t=Object(b.a)({status:"draft"},t)),O.next=17,q(_,"getCurrentPost");case 17:return r=O.sent,O.next=20,q(_,"getEditedPostContent");case 20:return o=O.sent,i=Object(b.a)({},t,{content:o,id:r.id}),O.next=24,q(_,"getCurrentPostType");case 24:return c=O.sent,O.next=27,G("core","getPostType",c);case 27:return a=O.sent,O.next=30,$(_,"__experimentalRequestPostUpdateStart",e);case 30:return O.next=32,$(_,"__experimentalOptimisticUpdatePost",i);case 32:if(s="/wp/v2/".concat(a.rest_base,"/").concat(r.id),l="PUT",!n){O.next=43;break}return O.next=37,q(_,"getAutosave");case 37:u=O.sent,i=Object(b.a)({},Object(v.pick)(r,["title","content","excerpt"]),u,i),s+="/autosaves",l="POST",O.next=47;break;case 43:return O.next=45,$("core/notices","removeNotice",E);case 45:return O.next=47,$("core/notices","removeNotice","autosave-exists");case 47:return O.prev=47,O.next=50,K({path:s,method:l,data:i});case 50:return d=O.sent,p=n?"resetAutosave":"resetPost",O.next=54,$(_,p,d);case 54:return O.next=56,$(_,"__experimentalRequestPostUpdateSuccess",{previousPost:r,post:d,options:e,postType:a,isRevision:d.id!==r.id});case 56:if(!((f=X({previousPost:r,post:d,postType:a,options:e})).length>0)){O.next=60;break}return O.next=60,$.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(B.a)(f)));case 60:O.next=70;break;case 62:return O.prev=62,O.t0=O.catch(47),O.next=66,$(_,"__experimentalRequestPostUpdateFailure",{post:r,edits:t,error:O.t0,options:e});case 66:if(!((h=J({post:r,edits:t,error:O.t0})).length>0)){O.next=70;break}return O.next=70,$.apply(void 0,["core/notices","createErrorNotice"].concat(Object(B.a)(h)));case 70:case"end":return O.stop()}},Z,this,[[47,62]])}function fe(){var e,t,n,r;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,q(_,"getCurrentPost");case 2:return e=o.sent,o.next=5,q(_,"getCurrentPostType");case 5:return t=o.sent,o.next=8,G("core","getPostType",t);case 8:return n=o.sent,o.next=11,K({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,$(_,"resetPost",r);case 14:case"end":return o.stop()}},ee,this)}function he(){var e,t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,q(_,"getCurrentPostType");case 2:return e=r.sent,r.next=5,G("core","getPostType",e);case 5:return t=r.sent,r.next=8,$("core/notices","removeNotice",C);case 8:return r.prev=8,r.next=11,q(_,"getCurrentPost");case 11:return n=r.sent,r.next=14,K({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,$(_,"resetPost",Object(b.a)({},n,{status:"trash"}));case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,$.apply(void 0,["core/notices","createErrorNotice"].concat(Object(B.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Q.__)("Trashing failed"),{id:C}])));case 22:case"end":return r.stop()}var o},te,this,[[8,18]])}function me(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$(_,"savePost",Object(b.a)({isAutosave:!0},e));case 2:case"end":return t.stop()}},ne,this)}function ve(){return{type:"REDO"}}function Oe(){return{type:"UNDO"}}function ge(){return{type:"CREATE_UNDO_LEVEL"}}function je(e){return{type:"UPDATE_POST_LOCK",lock:e}}function ye(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function ke(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function _e(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Se(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function Ee(e,t){return{type:"UPDATE_REUSABLE_BLOCK_TITLE",id:e,title:t}}function Ce(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function we(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(v.castArray)(e)}}function Te(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Pe(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Be(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Ie(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function xe(e){return{type:"RESET_EDITOR_BLOCKS",blocks:e,shouldCreateUndoLevel:!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).__unstableShouldCreateUndoLevel}}function Ae(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Le=function(e){return regeneratorRuntime.mark(function t(){var n,r,o,i=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(n=i.length,r=new Array(n),o=0;o0}function vt(e){return e.editor.future.length>0}function Ot(e){return"auto-draft"===kt(e).status}function gt(e){return e.editor.present.blocks.isDirty||"content"in e.editor.present.edits}function jt(e){return!!gt(e)||(Object.keys(e.editor.present.edits).length>0||un(e,jt))}function yt(e){return!jt(e)&&Ot(e)}function kt(e){return e.currentPost}function _t(e){return e.currentPost.type}function St(e){return kt(e).id||null}function Et(e){return Object(v.get)(kt(e),["_links","version-history",0,"count"],0)}function Ct(e){return Object(v.get)(kt(e),["_links","predecessor-version",0,"id"],null)}var wt=Object(pt.a)(function(e){return Object(b.a)({},e.initialEdits,e.editor.present.edits)},function(e){return[e.editor.present.edits,e.initialEdits]}),Tt=Object(pt.a)(function(){return[]},function(e){return[e.editor]});function Pt(e,t){var n=kt(e);if(n.hasOwnProperty(t))return n[t]}var Bt=Object(pt.a)(function(e,t){var n=wt(e);return n.hasOwnProperty(t)?Object(b.a)({},Pt(e,t),n[t]):Pt(e,t)},function(e,t){return[Object(v.get)(e.editor.present.edits,[t],ht),Object(v.get)(e.currentPost,[t],ht)]});function It(e,t){switch(t){case"content":return Zt(e)}var n=wt(e);return n.hasOwnProperty(t)?k.has(t)?Bt(e,t):n[t]:Pt(e,t)}function xt(e,t){if(!Vt(e))return null;var n=Ht(e);return n.hasOwnProperty(t)?n[t]:void 0}function At(e){return"private"===It(e,"status")?"private":It(e,"password")?"password":"public"}function Lt(e){return"pending"===kt(e).status}function Nt(e){var t=kt(e);return-1!==["publish","private"].indexOf(t.status)||"future"===t.status&&!Object(bt.isInTheFuture)(new Date(Number(Object(bt.getDate)(t.date))-T))}function Dt(e){return"future"===kt(e).status&&!Nt(e)}function Rt(e){var t=kt(e);return jt(e)||-1===["publish","private","future"].indexOf(t.status)}function Ft(e){return!Kt(e)&&(!!It(e,"title")||!!It(e,"excerpt")||!Mt(e))}function Mt(e){var t=e.editor.present.blocks.value;if(t.length&&!("content"in wt(e))){if(t.length>1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!Zt(e)}function Ut(e){if(!Ft(e))return!1;if(!Vt(e))return!0;if(gt(e))return!0;var t=Ht(e);return["title","excerpt"].some(function(n){return t[n]!==It(e,n)})}function Ht(e){return e.autosave}function Vt(e){return!!Ht(e)}function Wt(e){var t=It(e,"date"),n=new Date(Number(Object(bt.getDate)(t))-T);return Object(bt.isInTheFuture)(n)}function zt(e){var t=It(e,"date"),n=It(e,"modified"),r=It(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&t===n}function Kt(e){return e.saving.requesting}function qt(e){return e.saving.successful}function Gt(e){return!!e.saving.error}function $t(e){return Kt(e)&&!!e.saving.options.isAutosave}function Yt(e){return Kt(e)&&!!e.saving.options.isPreview}function Qt(e){var t=It(e,"featured_media"),n=e.previewLink;return n&&t?Object(O.addQueryArgs)(n,{_thumbnail_id:t}):n}function Xt(e){var t,n=e.editor.present.blocks.value;switch(1===n.length&&(t=n[0].name),2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}function Jt(e){var t=e.editor.present.blocks.value;return 1===t.length&&Object(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Zt=Object(pt.a)(function(e){var t=wt(e);if("content"in t)return t.content;var n=Jt(e),r=Object(c.serialize)(n);return 1===n.length&&n[0].name===Object(c.getFreeformContentHandlerName)()?Object(ft.removep)(r):r},function(e){return[e.editor.present.blocks.value,e.editor.present.edits.content,e.initialEdits.content]}),en=Object(pt.a)(function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(b.a)({},n,{id:r?t:+t,isTemporary:r})},function(e,t){return[e.reusableBlocks.data[t]]});function tn(e,t){return e.reusableBlocks.isSaving[t]||!1}function nn(e,t){return!!e.reusableBlocks.isFetching[t]}var rn=Object(pt.a)(function(e){return Object(v.map)(e.reusableBlocks.data,function(t,n){return en(e,n)})},function(e){return[e.reusableBlocks.data]});function on(e,t){var n=Object(v.find)(e.optimist,function(e){return e.beforeState&&Object(v.get)(e.action,["optimist","id"])===t});return n?n.beforeState:null}function cn(e){if(!Kt(e))return!1;if(!Nt(e))return!1;var t=on(e,S);return!!t&&!Nt(t)}function an(e){var t=It(e,"permalink_template");return w.test(t)}function sn(e){var t=ln(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return an(e)?n+r+o:n}function ln(e){var t=It(e,"permalink_template");if(!t)return null;var n=It(e,"slug")||It(e,"generated_slug"),r=t.split(w),o=Object(d.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function un(e,t){var n=e.optimist;return!!n&&n.some(function(e){var n=e.beforeState;return n&&t(n)})}function dn(e){return e.postLock.isLocked}function pn(e){return Object.keys(e.postSavingLock).length>0}function bn(e){return e.postLock.isTakeover}function fn(e){return e.postLock.user}function hn(e){return e.postLock.activePostLock}function mn(e){return Object(v.has)(kt(e),["_links","wp:action-unfiltered-html"])}function vn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:g.isPublishSidebarEnabled}function On(e){return e.editor.present.blocks.value}function gn(e){return e.isReady}function jn(e){return e.editorSettings}function yn(e){return Object(u.createRegistrySelector)(function(t){return function(n){for(var r,o=arguments.length,i=new Array(o>1?o-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?$r:t,r=e.getInserterItems,o=void 0===r?Yr:r,i=e.getSelectedBlockName,a=void 0===i?Qr:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){var e=a();return o(n()).filter(function(t){return e!==t.name})},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(B.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(Tr.createElement)(Gr,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(c.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),Jr={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),z()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(Tr.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(Tr.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(Tr.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},Zr=[{icon:"editor-alignleft",title:Object(Q.__)("Align text left"),align:"left"},{icon:"editor-aligncenter",title:Object(Q.__)("Align text center"),align:"center"},{icon:"editor-alignright",title:Object(Q.__)("Align text right"),align:"right"}];var eo=Object(Ir.compose)(Wr(function(e){return{clientId:e.clientId}}),Object(l.withViewportMatch)({isLargeViewport:"medium"}),Object(u.withSelect)(function(e,t){var n=t.clientId,r=t.isLargeViewport,o=t.isCollapsed,i=e("core/block-editor"),c=i.getBlockRootClientId,a=i.getSettings;return{isCollapsed:o||!r||!a().hasFixedToolbar&&c(n)}}))(function(e){var t=e.isCollapsed,n=e.value,r=e.onChange,o=e.alignmentControls,i=void 0===o?Zr:o;function c(e){return function(){return r(n===e?void 0:e)}}var a=Object(v.find)(i,function(e){return e.align===n});return Object(Tr.createElement)(Mr.Toolbar,{isCollapsed:t,icon:a?a.icon:"editor-alignleft",label:Object(Q.__)("Change Text Alignment"),controls:i.map(function(e){var t=e.align,r=n===t;return Object(b.a)({},e,{isActive:r,onClick:c(t)})})})}),to={left:{icon:"align-left",title:Object(Q.__)("Align left")},center:{icon:"align-center",title:Object(Q.__)("Align center")},right:{icon:"align-right",title:Object(Q.__)("Align right")},wide:{icon:"align-wide",title:Object(Q.__)("Wide width")},full:{icon:"align-full-width",title:Object(Q.__)("Full width")}},no=["left","center","right","wide","full"],ro=["wide","full"];var oo=Object(Ir.compose)(Wr(function(e){return{clientId:e.clientId}}),Object(l.withViewportMatch)({isLargeViewport:"medium"}),Object(u.withSelect)(function(e,t){var n=t.clientId,r=t.isLargeViewport,o=t.isCollapsed,i=e("core/block-editor"),c=i.getBlockRootClientId,a=(0,i.getSettings)();return{wideControlsEnabled:a.alignWide,isCollapsed:o||!r||!a.hasFixedToolbar&&c(n)}}))(function(e){var t=e.isCollapsed,n=e.value,r=e.onChange,o=e.controls,i=void 0===o?no:o,c=e.wideControlsEnabled,a=void 0!==c&&c?i:i.filter(function(e){return-1===ro.indexOf(e)}),s=to[n];return Object(Tr.createElement)(Mr.Toolbar,{isCollapsed:t,icon:s?s.icon:"align-left",label:Object(Q.__)("Change Alignment"),controls:a.map(function(e){return Object(b.a)({},to[e],{isActive:n===e,onClick:(t=e,function(){return r(n===t?void 0:t)})});var t})})}),io=Object(Mr.createSlotFill)("BlockControls"),co=io.Fill,ao=io.Slot,so=zr(function(e){var t=e.controls,n=e.children;return Object(Tr.createElement)(co,null,Object(Tr.createElement)(Mr.Toolbar,{controls:t}),n)});so.Slot=ao;var lo=so,uo=Object(Mr.withFilters)("editor.BlockEdit")(function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(c.getBlockType)(r);if(!o)return null;var i=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,a=Br()(i,n.className),s=o.edit||o.save;return Object(Tr.createElement)(s,Object(wr.a)({},e,{className:a}))}),po=function(e){function t(e){var n;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).call(this,e))).setFocusedElement=n.setFocusedElement.bind(Object(Fr.a)(Object(Fr.a)(n))),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"setFocusedElement",value:function(e){this.setState(function(t){return t.focusedElement===e?null:{focusedElement:e}})}},{key:"render",value:function(){return Object(Tr.createElement)(Vr,{value:this.state},Object(Tr.createElement)(uo,this.props))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.clientId;return{name:e.name,isSelected:e.isSelected,clientId:t}}}]),t}(Tr.Component),bo=Object(Mr.createSlotFill)("BlockFormatControls"),fo=bo.Fill,ho=bo.Slot,mo=zr(fo);mo.Slot=ho;var vo=mo,Oo=n(17);function go(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showNestedBlocks;return Object(Tr.createElement)("ul",{className:"editor-block-navigation__list",role:"list"},Object(v.map)(t,function(e){var t=Object(c.getBlockType)(e.name),i=e.clientId===n;return Object(Tr.createElement)("li",{key:e.clientId},Object(Tr.createElement)("div",{className:"editor-block-navigation__item"},Object(Tr.createElement)(Mr.Button,{className:Br()("editor-block-navigation__item-button",{"is-selected":i}),onClick:function(){return r(e.clientId)}},Object(Tr.createElement)(Gr,{icon:t.icon,showColors:!0}),t.title,i&&Object(Tr.createElement)("span",{className:"screen-reader-text"},Object(Q.__)("(selected block)")))),o&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(Tr.createElement)(go,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,showNestedBlocks:!0}))}))}var jo=Object(Ir.compose)(Object(u.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?o(r(c)):null,selectedBlockClientId:c}}),Object(u.withDispatch)(function(e,t){var n=t.onSelect,r=void 0===n?v.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}}))(function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(Tr.createElement)(Mr.NavigableMenu,{role:"presentation",className:"editor-block-navigation__container"},Object(Tr.createElement)("p",{className:"editor-block-navigation__label"},Object(Q.__)("Block Navigation")),i&&Object(Tr.createElement)(go,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(Tr.createElement)(go,{blocks:n,selectedBlockClientId:r,selectBlock:o}))}),yo=Object(Tr.createElement)(Mr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(Tr.createElement)(Mr.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var ko=Object(u.withSelect)(function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}})(function(e){var t=e.hasBlocks,n=e.isDisabled,r=t&&!n;return Object(Tr.createElement)(Mr.Dropdown,{renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Tr.createElement)(Tr.Fragment,null,r&&Object(Tr.createElement)(Mr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.a)({},Oo.rawShortcut.access("o"),n)}),Object(Tr.createElement)(Mr.IconButton,{icon:yo,"aria-expanded":t,onClick:r?n:void 0,label:Object(Q.__)("Block Navigation"),className:"editor-block-navigation",shortcut:Oo.displayShortcut.access("o"),"aria-disabled":!r}))},renderContent:function(e){var t=e.onClose;return Object(Tr.createElement)(jo,{onSelect:t})}})}),_o=Object(Ir.createHigherOrderComponent)(Object(u.withSelect)(function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(v.isEmpty)(r)||!o}}),"withColorContext"),So=_o(Mr.ColorPalette),Eo=n(45),Co=n.n(Eo),wo=function(e,t,n){if(t){var r=Object(v.find)(e,{slug:t});if(r)return r}return{color:n}},To=function(e,t){return Object(v.find)(e,{color:t})};function Po(e,t){if(e&&t)return"has-".concat(Object(v.kebabCase)(t),"-").concat(e)}var Bo=[],Io=function(e){return Object(Ir.createHigherOrderComponent)(function(t){return function(n){return Object(Tr.createElement)(t,Object(wr.a)({},n,{colors:e}))}},"withCustomColorPalette")},xo=function(){return Object(u.withSelect)(function(e){var t=e("core/block-editor").getSettings();return{colors:Object(v.get)(t,["colors"],Bo)}})};function Ao(e,t){var n=Object(v.reduce)(e,function(e,t){return Object(b.a)({},e,Object(v.isString)(t)?Object(p.a)({},t,Object(v.kebabCase)(t)):t)},{});return Object(Ir.compose)([t,function(e){return function(t){function r(e){var t;return Object(Ar.a)(this,r),(t=Object(Nr.a)(this,Object(Dr.a)(r).call(this,e))).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(Fr.a)(Object(Fr.a)(t)))},t.state={},t}return Object(Rr.a)(r,t),Object(Lr.a)(r,[{key:"getMostReadableColor",value:function(e){return function(e,t){return Co.a.mostReadable(t,Object(v.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(v.reduce)(n,function(t,n,r){var o=Object(v.upperFirst)(r),i="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,i),t},{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,i=To(n.props.colors,r);n.props.setAttributes((o={},Object(p.a)(o,e,i&&i.slug?i.slug:void 0),Object(p.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(Tr.createElement)(e,Object(b.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(v.reduce)(n,function(e,n,i){var c=wo(o,r[i],r["custom".concat(Object(v.upperFirst)(i))]),a=t[i];return Object(v.get)(a,["color"])===c.color&&a?e[i]=a:e[i]=Object(b.a)({},c,{class:Po(n,c.slug)}),e},{})}}]),r}(Tr.Component)}])}function Lo(e){return function(){for(var t=Io(e),n=arguments.length,r=new Array(n),o=0;o=24?"large":"small"}))return null;var l=a.getBrightness()1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(Q.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(Q.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(Q.sprintf)(Object(Q._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(o>0&&!r)return Object(Q.sprintf)(Object(Q._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,r,o,i):r&&o?Object(Q.sprintf)(Object(Q.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(Q.sprintf)(Object(Q.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(Q.sprintf)(Object(Q.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(Q.sprintf)(Object(Q.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(Q.sprintf)(Object(Q.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var Ko=Object(Tr.createElement)(Mr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Tr.createElement)(Mr.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),qo=Object(Tr.createElement)(Mr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Tr.createElement)(Mr.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Go=Object(Tr.createElement)(Mr.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(Tr.createElement)(Mr.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),$o=Object(u.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlockIndex,i=(0,r.getBlockRootClientId)(n);return{index:o(n,i),rootClientId:i}})(function(e){var t=e.children,n=e.clientId,r=e.rootClientId,o=e.blockElementId,i=e.index,c=e.onDragStart,a=e.onDragEnd,s={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(Tr.createElement)(Mr.Draggable,{elementId:o,transferData:s,onDragStart:c,onDragEnd:a},function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})})}),Yo=function(e){var t=e.isVisible,n=e.className,r=e.icon,o=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,a=e.clientId;if(!t)return null;var s=Br()("editor-block-mover__control-drag-handle",n);return Object(Tr.createElement)($o,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(Tr.createElement)("div",{className:s,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)})},Qo=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onBlur=e.onBlur.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,r=e.isFirst,o=e.isLast,i=e.isDraggable,c=e.onDragStart,a=e.onDragEnd,s=e.clientIds,l=e.blockElementId,u=e.blockType,d=e.firstIndex,p=e.isLocked,b=e.instanceId,f=e.isHidden,h=this.state.isFocused,m=Object(v.castArray)(s).length;return p||r&&o?null:Object(Tr.createElement)("div",{className:Br()("editor-block-mover",{"is-visible":h||!f})},Object(Tr.createElement)(Mr.IconButton,{className:"editor-block-mover__control",onClick:r?null:t,icon:Ko,label:Object(Q.__)("Move up"),"aria-describedby":"editor-block-mover__up-description-".concat(b),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Tr.createElement)(Yo,{className:"editor-block-mover__control",icon:Go,clientId:s,blockElementId:l,isVisible:i,onDragStart:c,onDragEnd:a}),Object(Tr.createElement)(Mr.IconButton,{className:"editor-block-mover__control",onClick:o?null:n,icon:qo,label:Object(Q.__)("Move down"),"aria-describedby":"editor-block-mover__down-description-".concat(b),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(Tr.createElement)("span",{id:"editor-block-mover__up-description-".concat(b),className:"editor-block-mover__description"},zo(m,u&&u.title,d,r,o,-1)),Object(Tr.createElement)("span",{id:"editor-block-mover__down-description-".concat(b),className:"editor-block-mover__description"},zo(m,u&&u.title,d,r,o,1)))}}]),t}(Tr.Component),Xo=Object(Ir.compose)(Object(u.withSelect)(function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockIndex,a=r.getTemplateLock,s=r.getBlockRootClientId,l=Object(v.first)(Object(v.castArray)(n)),u=o(l),d=s(Object(v.first)(Object(v.castArray)(n)));return{firstIndex:i(l,d),blockType:u?Object(c.getBlockType)(u.name):null,isLocked:"all"===a(d),rootClientId:d}}),Object(u.withDispatch)(function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/block-editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(v.partial)(i,n,r),onMoveUp:Object(v.partial)(c,n,r)}}),Ir.withInstanceId)(Qo);var Jo=Object(u.withSelect)(function(e){var t=e("core").canUser;return{hasUploadPermissions:Object(v.defaultTo)(t("create","media"),!0)}})(function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r}),Zo=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onFilesDrop=e.onFilesDrop.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onHTMLDrop=e.onHTMLDrop.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onDrop=e.onDrop.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"getInsertIndex",value:function(e){var t=this.props,n=t.clientId,r=t.rootClientId,o=t.getBlockIndex;if(void 0!==n){var i=o(n,r);return"top"===e.y?i:i+1}}},{key:"onFilesDrop",value:function(e,t){var n=Object(c.findTransform)(Object(c.getBlockTransforms)("from"),function(t){return"files"===t.type&&t.isMatch(e)});if(n){var r=this.getInsertIndex(t),o=n.transform(e,this.props.updateBlockAttributes);this.props.insertBlocks(o,r)}}},{key:"onHTMLDrop",value:function(e,t){var n=Object(c.pasteHandler)({HTML:e,mode:"BLOCKS"});n.length&&this.props.insertBlocks(n,this.getInsertIndex(t))}},{key:"onDrop",value:function(e,t){var n=this.props,r=n.rootClientId,o=n.clientId,i=n.getClientIdsOfDescendants,c=n.getBlockIndex,a=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),s=a.srcRootClientId,l=a.srcClientId,u=a.srcIndex,d=a.type;if("block"===d&&l!==o&&!function(e,t){return i([e]).some(function(e){return e===t})}(l,o||r)){var p,b,f=o?c(o,r):void 0,h=this.getInsertIndex(t),m=f&&u0&&Object(Tr.createElement)("div",{className:"editor-warning__actions"},Tr.Children.map(n,function(e,t){return Object(Tr.createElement)("span",{key:t,className:"editor-warning__action"},e)}))),o&&Object(Tr.createElement)(Mr.Dropdown,{className:"editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Tr.createElement)(Mr.IconButton,{icon:"ellipsis",label:Object(Q.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(Tr.createElement)(Mr.MenuGroup,null,o.map(function(e,t){return Object(Tr.createElement)(Mr.MenuItem,{onClick:e.onClick,key:t},e.title)}))}}))},ni=n(192),ri=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(Tr.createElement)("div",{className:c},Object(Tr.createElement)("div",{className:"editor-block-compare__content"},Object(Tr.createElement)("h2",{className:"editor-block-compare__heading"},t),Object(Tr.createElement)("div",{className:"editor-block-compare__html"},n),Object(Tr.createElement)("div",{className:"editor-block-compare__preview edit-post-visual-editor"},r)),Object(Tr.createElement)("div",{className:"editor-block-compare__action"},Object(Tr.createElement)(Mr.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},oi=function(e){function t(){return Object(Ar.a)(this,t),Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"getDifference",value:function(e,t){return Object(ni.diffChars)(e,t).map(function(e,t){var n=Br()({"editor-block-compare__added":e.added,"editor-block-compare__removed":e.removed});return Object(Tr.createElement)("span",{key:t,className:n},e.value)})}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(c.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(v.castArray)(e),n=t.map(function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)}),r=t.map(function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)});return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),s=this.getDifference(c.rawContent,a.rawContent);return Object(Tr.createElement)("div",{className:"editor-block-compare__wrapper"},Object(Tr.createElement)(ri,{title:Object(Q.__)("Current"),className:"editor-block-compare__current",action:n,actionText:Object(Q.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(Tr.createElement)(ri,{title:Object(Q.__)("After Conversion"),className:"editor-block-compare__converted",action:r,actionText:i,rawContent:s,renderedContent:a.renderedContent}))}}]),t}(Tr.Component),ii=function(e){function t(e){var n;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onCompareClose=n.onCompareClose.bind(Object(Fr.a)(Object(Fr.a)(n))),n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),s=this.state.compare,l=[{title:Object(Q.__)("Convert to Classic Block"),onClick:r},{title:Object(Q.__)("Attempt Block Recovery"),onClick:o}];return s?Object(Tr.createElement)(Mr.Modal,{title:Object(Q.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare"},Object(Tr.createElement)(oi,{block:i,onKeep:t,onConvert:n,convertor:ci,convertButtonText:Object(Q.__)("Convert to Blocks")})):Object(Tr.createElement)(ti,{actions:[Object(Tr.createElement)(Mr.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!a},Object(Q._x)("Resolve","imperative verb")),a&&Object(Tr.createElement)(Mr.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(Q.__)("Convert to HTML"))],secondaryActions:l},Object(Q.__)("This block contains unexpected or invalid content."))}}]),t}(Tr.Component),ci=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},ai=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}}),Object(u.withDispatch)(function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,ci(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}})])(ii),si=Object(Tr.createElement)(ti,null,Object(Q.__)("This block has encountered an error and cannot be previewed.")),li=function(){return si},ui=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(Tr.Component),di=n(56),pi=n.n(di),bi=function(e){function t(e){var n;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onBlur=n.onBlur.bind(Object(Fr.a)(Object(Fr.a)(n))),n.state={html:e.block.isValid?Object(c.getBlockContent)(e.block):e.block.originalContent},n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidUpdate",value:function(e){Object(v.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(c.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=this.state.html,t=Object(c.getBlockType)(this.props.block.name),n=Object(c.getBlockAttributes)(t,e,this.props.block.attributes),r=e||Object(c.getSaveContent)(t,n),o=!e||Object(c.isValidBlockContent)(t,n,r);this.props.onChange(this.props.clientId,n,r,o),e||this.setState({html:r})}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return Object(Tr.createElement)(pi.a,{className:"editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(Tr.Component),fi=Object(Ir.compose)([Object(u.withSelect)(function(e,t){return{block:e("core/block-editor").getBlock(t.clientId)}}),Object(u.withDispatch)(function(e){return{onChange:function(t,n,r,o){e("core/block-editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}})])(bi);var hi=Object(u.withSelect)(function(e,t){return{name:(0,e("core/block-editor").getBlockName)(t.clientId)}})(function(e){var t=e.name;if(!t)return null;var n=Object(c.getBlockType)(t);return n?n.title:null}),mi=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onBlur=e.onBlur.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onFocus",value:function(e){this.setState({isFocused:!0}),e.stopPropagation()}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.clientId,n=e.rootClientId;return Object(Tr.createElement)("div",{className:"editor-block-list__breadcrumb"},Object(Tr.createElement)(Mr.Toolbar,null,n&&Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(hi,{clientId:n}),Object(Tr.createElement)("span",{className:"editor-block-list__descendant-arrow"})),Object(Tr.createElement)(hi,{clientId:t})))}}]),t}(Tr.Component),vi=Object(Ir.compose)([Object(u.withSelect)(function(e,t){return{rootClientId:(0,e("core/block-editor").getBlockRootClientId)(t.clientId)}})])(mi),Oi=n(21),gi=window,ji=gi.Node,yi=gi.getSelection,ki=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(Fr.a)(Object(Fr.a)(e))),e.focusSelection=e.focusSelection.bind(Object(Fr.a)(Object(Fr.a)(e))),e.switchOnKeyDown=Object(v.cond)([[Object(v.matchesProperty)(["keyCode"],Oo.ESCAPE),e.focusSelection]]),e.toolbar=Object(Tr.createRef)(),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"focusToolbar",value:function(){var e=Wo.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"focusSelection",value:function(){var e=yi();if(e){var t=e.focusNode;t.nodeType!==ji.ELEMENT_NODE&&(t=t.parentElement),t&&t.focus()}}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar()}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(Oi.a)(e,["children"]);return Object(Tr.createElement)(Mr.NavigableMenu,Object(wr.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar,onKeyDown:this.switchOnKeyDown},Object(v.omit)(n,["focusOnMount"])),Object(Tr.createElement)(Mr.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(Tr.Component);var _i=function(e){var t=e.focusOnMount;return Object(Tr.createElement)(ki,{focusOnMount:t,className:"editor-block-contextual-toolbar","aria-label":Object(Q.__)("Block tools")},Object(Tr.createElement)(Ql,null))};var Si=Object(u.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getMultiSelectedBlockClientIds,i=r.isMultiSelecting,c=r.getBlockIndex,a=r.getBlockCount,s=o(),l=c(Object(v.first)(s),n),u=c(Object(v.last)(s),n);return{multiSelectedBlockClientIds:s,isSelecting:i(),isFirst:0===l,isLast:u+1===a()}})(function(e){var t=e.multiSelectedBlockClientIds,n=e.clientId,r=e.isSelecting,o=e.isFirst,i=e.isLast;return r?null:Object(Tr.createElement)(Xo,{key:"mover",clientId:n,clientIds:t,isFirst:o,isLast:i})}),Ei=n(61),Ci=n.n(Ei);function wi(e){var t=e.name,n=e.attributes,r=Object(c.createBlock)(t,n);return Object(Tr.createElement)(Mr.Disabled,{className:"editor-block-preview__content editor-styles-wrapper","aria-hidden":!0},Object(Tr.createElement)(po,{name:t,focus:!1,attributes:r.attributes,setAttributes:v.noop}))}var Ti=function(e){return Object(Tr.createElement)("div",{className:"editor-block-preview"},Object(Tr.createElement)("div",{className:"editor-block-preview__title"},Object(Q.__)("Preview")),Object(Tr.createElement)(wi,e))};var Pi=function(e){var t=e.icon,n=e.hasChildBlocksWithInserterSupport,r=e.onClick,o=e.isDisabled,i=e.title,c=e.className,a=Object(Oi.a)(e,["icon","hasChildBlocksWithInserterSupport","onClick","isDisabled","title","className"]),s=t?{backgroundColor:t.background,color:t.foreground}:{},l=t&&t.shadowColor?{backgroundColor:t.shadowColor}:{};return Object(Tr.createElement)("li",{className:"editor-block-types-list__list-item"},Object(Tr.createElement)("button",Object(wr.a)({className:Br()("editor-block-types-list__item",c,{"editor-block-types-list__item-has-children":n}),onClick:function(e){e.preventDefault(),r()},disabled:o,"aria-label":i},a),Object(Tr.createElement)("span",{className:"editor-block-types-list__item-icon",style:s},Object(Tr.createElement)(Gr,{icon:t,showColors:!0}),n&&Object(Tr.createElement)("span",{className:"editor-block-types-list__item-icon-stack",style:l})),Object(Tr.createElement)("span",{className:"editor-block-types-list__item-title"},i)))};var Bi=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,i=e.children;return Object(Tr.createElement)("ul",{role:"list",className:"editor-block-types-list"},t&&t.map(function(e){return Object(Tr.createElement)(Pi,{key:e.id,className:Object(c.getBlockMenuDefaultClassName)(e.id),icon:e.icon,hasChildBlocksWithInserterSupport:e.hasChildBlocksWithInserterSupport,onClick:function(){n(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)};var Ii=Object(Ir.compose)(Object(Ir.ifCondition)(function(e){var t=e.items;return t&&t.length>0}),Object(u.withSelect)(function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}}))(function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(Oi.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(Tr.createElement)("div",{className:"editor-inserter__child-blocks"},(t||n)&&Object(Tr.createElement)("div",{className:"editor-inserter__parent-block-header"},Object(Tr.createElement)(Gr,{icon:t,showColors:!0}),n&&Object(Tr.createElement)("h2",null,n)),Object(Tr.createElement)(Bi,Object(wr.a)({items:r},o)))}),xi=function(e){var t=e.filterValue;return Object(Tr.createElement)(Mr.Slot,{name:"Inserter.InlineElements",fillProps:{filterValue:t}},function(e){return!Object(v.isEmpty)(e)&&Object(Tr.createElement)(Mr.PanelBody,{title:Object(Q.__)("Inline Elements"),initialOpen:!1,className:"editor-inserter__inline-elements"},Object(Tr.createElement)(Bi,null,e))})},Ai=function(e){return e.stopPropagation()},Li=function(e){return e=(e=(e=(e=Object(v.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Ni=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onHover=e.onHover.bind(Object(Fr.a)(Object(Fr.a)(e))),e.panels={},e.inserterResults=Object(Tr.createRef)(),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks(),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,n=t.showInsertionPoint,r=t.hideInsertionPoint;e?n():r()}},{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(v.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(B.a)(t.state.openPanels),[e])}),t.props.setTimeout(function(){Ci()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})}))}}},{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,i=function(e,t){var n=Li(t),r=function(e){return-1!==Li(e).indexOf(n)},o=Object(c.getCategories)();return e.filter(function(e){var t=Object(v.find)(o,{slug:e.category});return r(e.title)||Object(v.some)(e.keywords,r)||t&&r(t.title)})}(r,e),a=Object(v.filter)(i,function(e){var t=e.name;return Object(v.includes)(o,t)}),s=[];if(!e){var l=this.props.maxSuggestedItems||9;s=Object(v.filter)(r,function(e){return e.utility>0}).slice(0,l)}var u=Object(v.filter)(i,{category:"reusable"}),d=function(e){return Object(v.findIndex)(Object(c.getCategories)(),function(t){return t.slug===e.category})},p=Object(v.flow)(function(e){return Object(v.filter)(e,function(e){return"reusable"!==e.category})},function(e){return Object(v.sortBy)(e,d)},function(e){return Object(v.groupBy)(e,"category")})(i),b=this.state.openPanels;if(e!==this.state.filterValue)if(e){if(u.length)b=["reusable"];else if(i.length){b=[Object(v.find)(Object(c.getCategories)(),function(e){var t=e.slug;return p[t]&&p[t].length}).slug]}}else b=["suggested"];this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:s,reusableItems:u,itemsPerCategory:p,openPanels:b});var f=Object.keys(p).reduce(function(e,t){return e+p[t].length},0);n(Object(Q.sprintf)(Object(Q._n)("%d result found.","%d results found.",f),f))}},{key:"onKeyDown",value:function(e){Object(v.includes)([Oo.LEFT,Oo.DOWN,Oo.RIGHT,Oo.UP,Oo.BACKSPACE,Oo.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,i=this.state,a=i.childItems,s=i.filterValue,l=i.hoveredItem,u=i.suggestedItems,d=i.reusableItems,p=i.itemsPerCategory,b=i.openPanels,f=function(e){return-1!==b.indexOf(e)},h=!!s;return Object(Tr.createElement)("div",{className:"editor-inserter__menu",onKeyPress:Ai,onKeyDown:this.onKeyDown},Object(Tr.createElement)("label",{htmlFor:"editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(Q.__)("Search for a block")),Object(Tr.createElement)("input",{id:"editor-inserter__search-".concat(n),type:"search",placeholder:Object(Q.__)("Search for a block"),className:"editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(Tr.createElement)("div",{className:"editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(Q.__)("Available block types")},Object(Tr.createElement)(Ii,{rootClientId:o,items:a,onSelect:r,onHover:this.onHover}),!!u.length&&Object(Tr.createElement)(Mr.PanelBody,{title:Object(Q._x)("Most Used","blocks"),opened:f("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(Tr.createElement)(Bi,{items:u,onSelect:r,onHover:this.onHover})),Object(Tr.createElement)(xi,{filterValue:s}),Object(v.map)(Object(c.getCategories)(),function(t){var n=p[t.slug];return n&&n.length?Object(Tr.createElement)(Mr.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:h||f(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(Tr.createElement)(Bi,{items:n,onSelect:r,onHover:e.onHover})):null}),!!d.length&&Object(Tr.createElement)(Mr.PanelBody,{className:"editor-inserter__reusable-blocks-panel",title:Object(Q.__)("Reusable"),opened:f("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(Tr.createElement)(Bi,{items:d,onSelect:r,onHover:this.onHover}),Object(Tr.createElement)("a",{className:"editor-inserter__manage-reusable-blocks",href:Object(O.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(Q.__)("Manage All Reusable Blocks"))),Object(v.isEmpty)(u)&&Object(v.isEmpty)(d)&&Object(v.isEmpty)(p)&&Object(Tr.createElement)("p",{className:"editor-inserter__no-results"},Object(Q.__)("No blocks found."))),l&&Object(c.isReusableBlock)(l)&&Object(Tr.createElement)(Ti,{name:l.name,attributes:l.initialAttributes}))}}]),t}(Tr.Component),Di=Object(Ir.compose)(Object(u.withSelect)(function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getInserterItems,i=r.getBlockName;return{rootChildBlocks:(0,e("core/blocks").getChildBlockNames)(i(n)),items:o(n),rootClientId:n}}),Object(u.withDispatch)(function(e,t,n){var r=n.select,o=e("core/block-editor"),i=o.showInsertionPoint,a=o.hideInsertionPoint;function s(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockRootClientId,i=e.getBlockSelectionEnd,c=e.getBlockOrder,a=t.clientId,s=t.rootClientId,l=t.isAppender;if(a)return{index:n(a,s),rootClientId:s};var u=i();if(!l&&u){var d=o(u)||void 0;return{index:n(u,d)+1,rootClientId:d}}return{index:c(s).length,rootClientId:s}}return{fetchReusableBlocks:e("core/editor").__experimentalFetchReusableBlocks,showInsertionPoint:function(){var e=s(),t=e.index,n=e.rootClientId;i(n,t)},hideInsertionPoint:a,onSelect:function(n){var o=e("core/block-editor"),i=o.replaceBlocks,a=o.insertBlock,l=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=n.name,p=n.initialAttributes,b=l(),f=Object(c.createBlock)(d,p);if(!u&&b&&Object(c.isUnmodifiedDefaultBlock)(b))i(b.clientId,f);else{var h=s();a(f,h.index,h.rootClientId)}t.onSelect()}}}),Mr.withSpokenMessages,Ir.withInstanceId,Ir.withSafeTimeout)(Ni),Ri=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(Tr.createElement)(Mr.IconButton,{icon:"insert",label:Object(Q.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Fi=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(Fr.a)(Object(Fr.a)(e))),e.renderToggle=e.renderToggle.bind(Object(Fr.a)(Object(Fr.a)(e))),e.renderContent=e.renderContent.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.renderToggle,c=void 0===i?Ri:i;return c({onToggle:t,isOpen:n,disabled:o})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender;return Object(Tr.createElement)(Di,{onSelect:t,rootClientId:r,clientId:o,isAppender:i})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.title;return Object(Tr.createElement)(Mr.Dropdown,{className:"editor-inserter",contentClassName:"editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:n,renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(Tr.Component),Mi=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.rootClientId,r=e("core/block-editor").hasInserterItems;return{title:(0,e("core/editor").getEditedPostAttribute)("title"),hasItems:r(n)}}),Object(Ir.ifCondition)(function(e){return e.hasItems})])(Fi);var Ui=Object(l.ifViewportMatches)("< small")(function(e){var t=e.clientId;return Object(Tr.createElement)("div",{className:"editor-block-list__block-mobile-toolbar"},Object(Tr.createElement)(Mi,null),Object(Tr.createElement)(Xo,{clientIds:[t]}))}),Hi=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onFocusInserter=e.onFocusInserter.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.rootClientId,o=t.clientId;return Object(Tr.createElement)("div",{className:"editor-block-list__insertion-point"},n&&Object(Tr.createElement)("div",{className:"editor-block-list__insertion-point-indicator"}),Object(Tr.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:Br()("editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(Tr.createElement)(Mi,{rootClientId:r,clientId:o})))}}]),t}(Tr.Component),Vi=Object(u.withSelect)(function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),i=o.getBlockIndex,c=o.getBlockInsertionPoint,a=o.isBlockInsertionPointVisible,s=i(n,r),l=c();return{showInsertionPoint:a()&&l.index===s&&l.rootClientId===r}})(Hi),Wi=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(Fr.a)(Object(Fr.a)(e))),e.eventMap={},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"proxyEvent",value:function(e){var t=!!e.nativeEvent._blockHandled;e.nativeEvent._blockHandled=!0;var n=this.eventMap[e.type];t&&(n+="Handled"),this.props[n]&&this.props[n](e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,r=void 0===n?[]:n,o=t.forwardedRef,i=Object(Oi.a)(t,["childHandledEvents","forwardedRef"]),c=Object(v.reduce)([].concat(Object(B.a)(r),Object(B.a)(Object.keys(i))),function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete i[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t},{});return Object(Tr.createElement)("div",Object(wr.a)({ref:o},i,c))}}]),t}(Tr.Component),zi=function(e,t){return Object(Tr.createElement)(Wi,Object(wr.a)({},e,{forwardedRef:t}))};zi.displayName="IgnoreNestedEvents";var Ki=Object(Tr.forwardRef)(zi);var qi=Object(Ir.compose)(Object(u.withSelect)(function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getInserterItems,i=r.getTemplateLock;return{items:o(n),isLocked:!!i(n)}}),Object(u.withDispatch)(function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,i=t.initialAttributes,a=Object(c.createBlock)(o,i);n?e("core/block-editor").replaceBlocks(n,a):e("core/block-editor").insertBlock(a,void 0,r)}}}))(function(e){var t=e.items,n=e.isLocked,r=e.onInsert;if(n)return null;var o=Object(v.filter)(t,function(e){return!(e.isDisabled||e.name===Object(c.getDefaultBlockName)()&&Object(v.isEmpty)(e.initialAttributes))}).slice(0,3);return Object(Tr.createElement)("div",{className:"editor-inserter-with-shortcuts"},o.map(function(e){return Object(Tr.createElement)(Mr.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(Q.sprintf)(Object(Q.__)("Add %s"),e.title),icon:Object(Tr.createElement)(Gr,{icon:e.icon})})}))}),Gi=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={hoverArea:null},e.onMouseLeave=e.onMouseLeave.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onMouseMove=e.onMouseMove.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentWillUnmount",value:function(){this.props.container&&this.toggleListeners(this.props.container,!1)}},{key:"componentDidMount",value:function(){this.props.container&&this.toggleListeners(this.props.container)}},{key:"componentDidUpdate",value:function(e){e.container!==this.props.container&&(e.container&&this.toggleListeners(e.container,!1),this.props.container&&this.toggleListeners(this.props.container,!0))}},{key:"toggleListeners",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"addEventListener":"removeEventListener";e[t]("mousemove",this.onMouseMove),e[t]("mouseleave",this.onMouseLeave)}},{key:"onMouseLeave",value:function(){this.state.hoverArea&&this.setState({hoverArea:null})}},{key:"onMouseMove",value:function(e){var t=this.props,n=t.isRTL,r=t.container.getBoundingClientRect(),o=r.width,i=r.left,c=r.right,a=null;e.clientX-i0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;c(e,n)},onInsertBlocks:function(e,n){var r=t.rootClientId;s(e,n,r)},onInsertDefaultBlockAfter:function(){var e=t.clientId,n=t.rootClientId,o=(0,r("core/block-editor").getBlockIndex)(e,n);l({},n,o+1)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,i=(0,r("core/block-editor").getBlockIndex)(n,o);s(e,i+1,o)},onRemove:function(e){u(e)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&d(n,a)}else{var s=i(n);s&&d(s,n)}},onReplace:function(e){p([t.clientId],e)},onMetaChange:function(e){(0,(0,r("core/block-editor").getSettings)().__experimentalMetaSource.onChange)(e)},onShiftSelection:function(){if(t.isSelectionEnabled){var e=r("core/block-editor").getBlockSelectionStart;e()?a(e(),t.clientId):c(t.clientId)}},toggleSelection:function(e){b(e)}}}),Zi=Object(Ir.compose)(Ir.pure,Object(l.withViewportMatch)({isLargeViewport:"medium"}),Xi,Ji,Object(Mr.withFilters)("editor.BlockListBlock"))(Qi),ec=n(53);var tc=Object(Ir.compose)(Object(Ir.withState)({hovered:!1}),Object(u.withSelect)(function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,i=n.isBlockValid,a=n.getSettings,s=n.getTemplateLock,l=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(c.getDefaultBlockName)(),d=i(t.lastBlockClientId),p=a().bodyPlaceholder;return{isVisible:l||!u||!d,showPrompt:l,isLocked:!!s(t.rootClientId),placeholder:p}}),Object(u.withDispatch)(function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}}))(function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,c=e.rootClientId,a=e.hovered,s=e.setState;if(t||!n)return null;var l=Object(ec.decodeEntities)(i)||Object(Q.__)("Start writing or type / to choose a block");return Object(Tr.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender",onMouseEnter:function(){return s({hovered:!0})},onMouseLeave:function(){return s({hovered:!1})}},Object(Tr.createElement)(ei,{rootClientId:c}),Object(Tr.createElement)(pi.a,{role:"button","aria-label":Object(Q.__)("Add block"),className:"editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?l:""}),a&&Object(Tr.createElement)(qi,{rootClientId:c}),Object(Tr.createElement)(Mi,{rootClientId:c,position:"top right",isAppender:!0}))});var nc=Object(u.withSelect)(function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,i=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:i(Object(c.getDefaultBlockName)(),n)}})(function(e){var t=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock;return e.isLocked?null:r?Object(Tr.createElement)(Ki,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(Tr.createElement)(tc,{rootClientId:n,lastBlockClientId:Object(v.last)(t)})):Object(Tr.createElement)("div",{className:"block-list-appender"},Object(Tr.createElement)(Mi,{rootClientId:n,renderToggle:function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(Tr.createElement)(Mr.IconButton,{label:Object(Q.__)("Add block"),icon:"insert",onClick:t,className:"block-list-appender__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},isAppender:!0}))}),rc=function(e){function t(e){var n;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onSelectionEnd=n.onSelectionEnd.bind(Object(Fr.a)(Object(Fr.a)(n))),n.setBlockRef=n.setBlockRef.bind(Object(Fr.a)(Object(Fr.a)(n))),n.setLastClientY=n.setLastClientY.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onPointerMove=Object(v.throttle)(n.onPointerMove.bind(Object(Fr.a)(Object(Fr.a)(n))),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.setLastClientY)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.setLastClientY)}},{key:"setLastClientY",value:function(e){var t=e.clientY;this.lastClientY=t}},{key:"setBlockRef",value:function(e,t){null===e?delete this.nodes[t]:this.nodes=Object(b.a)({},this.nodes,Object(p.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=Yi(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(v.findLast)(this.coordMapKeys,function(e){return e0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!function(e,t){return void 0!==t.disableCustomColors?t.disableCustomColors:e}(t,n)||(n.colors||e).length>0}(t,n,e)})})(function(e){var t=e.children,n=e.colors,r=e.colorSettings,o=e.disableCustomColors,i=e.title,c=Object(Oi.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(Tr.createElement)("span",{className:"".concat("editor-panel-color-settings","__panel-title")},i,function(e,t){return e.map(function(e,n){var r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=To(i||t,r),a=c&&c.name,s=Object(Q.sprintf)(gc,o.toLowerCase(),a||r);return Object(Tr.createElement)(Mr.ColorIndicator,{key:n,colorValue:r,"aria-label":s})})}(r,n));return Object(Tr.createElement)(Mr.PanelBody,Object(wr.a)({className:"editor-panel-color-settings",title:a},c),r.map(function(e,t){return Object(Tr.createElement)(Oc,Object(wr.a)({key:t},Object(b.a)({colors:n,disableCustomColors:o},e)))}),t)}),yc=_o(jc);var kc=function(e){var t=e.onChange,n=e.className,r=Object(Oi.a)(e,["onChange","className"]);return Object(Tr.createElement)(pi.a,Object(wr.a)({className:Br()("editor-plain-text",n),onChange:function(e){return t(e.target.value)}},r))},_c=n(38),Sc=n.n(_c),Ec=n(32),Cc=n(49),wc=n.n(Cc),Tc=Object(u.withSelect)(function(e){return{formatTypes:(0,e("core/rich-text").getFormatTypes)()}})(function(e){var t=e.formatTypes,n=e.onChange,r=e.value;return Object(Tr.createElement)(Tr.Fragment,null,t.map(function(e){var t=e.name,o=e.edit;if(!o)return null;var i=Object(s.getActiveFormat)(r,t),c=void 0!==i,a=c&&i.attributes||{};return Object(Tr.createElement)(o,{key:t,isActive:c,activeAttributes:a,value:r,onChange:n})}))}),Pc=function(e){var t=e.controls;return Object(Tr.createElement)("div",{className:"editor-format-toolbar"},Object(Tr.createElement)(Mr.Toolbar,null,t.map(function(e){return Object(Tr.createElement)(Mr.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})}),Object(Tr.createElement)(Mr.Slot,{name:"RichText.ToolbarControls"})))},Bc=function(e){return Object(v.pickBy)(e,function(e,t){return n=t,Object(v.startsWith)(n,"aria-")&&!Object(v.isNil)(e);var n})},Ic=window.navigator.userAgent;var xc=Ic.indexOf("Trident")>=0,Ac=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).call(this))).bindEditorNode=e.bindEditorNode.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"shouldComponentUpdate",value:function(e){var t=this;this.configureIsPlaceholderVisible(e.isPlaceholderVisible),Object(v.isEqual)(this.props.style,e.style)||(this.editorNode.setAttribute("style",""),Object.assign(this.editorNode.style,e.style)),Object(v.isEqual)(this.props.className,e.className)||(this.editorNode.className=Br()(e.className,"editor-rich-text__editable"));var n=function(e,t){var n=Object(v.keys)(Bc(e)),r=Object(v.keys)(Bc(t));return{removedKeys:Object(v.difference)(n,r),updatedKeys:r.filter(function(n){return!Object(v.isEqual)(e[n],t[n])})}}(this.props,e),r=n.removedKeys,o=n.updatedKeys;return r.forEach(function(e){return t.editorNode.removeAttribute(e)}),o.forEach(function(n){return t.editorNode.setAttribute(n,e[n])}),!1}},{key:"configureIsPlaceholderVisible",value:function(e){var t=String(!!e);this.editorNode.getAttribute("data-is-placeholder-visible")!==t&&this.editorNode.setAttribute("data-is-placeholder-visible",t)}},{key:"bindEditorNode",value:function(e){this.editorNode=e,this.props.setRef&&this.props.setRef(e),xc&&(e?this.removeInternetExplorerInputFix=function(e){function t(e){e.stopImmediatePropagation();var t=document.createEvent("Event");t.initEvent("input",!0,!1),t.data=e.data,e.target.dispatchEvent(t)}function n(t){var n=t.target,r=t.keyCode;if((Oo.BACKSPACE===r||Oo.DELETE===r)&&e.contains(n)){var o=document.createEvent("Event");o.initEvent("input",!0,!1),o.data=null,n.dispatchEvent(o)}}return e.addEventListener("textinput",t),document.addEventListener("keyup",n,!0),function(){e.removeEventListener("textinput",t),document.removeEventListener("keyup",n,!0)}}(e):this.removeInternetExplorerInputFix())}},{key:"render",value:function(){var e,t=Bc(this.props),n=this.props,r=n.tagName,o=void 0===r?"div":r,i=n.style,c=n.record,a=n.valueToEditableHTML,s=n.className,l=n.isPlaceholderVisible,u=n.onPaste,d=n.onInput,f=n.onKeyDown,h=n.onCompositionEnd,m=n.onFocus,v=n.onBlur,O=n.onMouseDown,g=n.onTouchStart;return t.role="textbox",t["aria-multiline"]=!0,Object(Tr.createElement)(o,Object(b.a)({},t,(e={className:Br()(s,"editor-rich-text__editable"),contentEditable:!0},Object(p.a)(e,"data-is-placeholder-visible",l),Object(p.a)(e,"ref",this.bindEditorNode),Object(p.a)(e,"style",i),Object(p.a)(e,"suppressContentEditableWarning",!0),Object(p.a)(e,"dangerouslySetInnerHTML",{__html:a(c)}),Object(p.a)(e,"onPaste",u),Object(p.a)(e,"onInput",d),Object(p.a)(e,"onFocus",m),Object(p.a)(e,"onBlur",v),Object(p.a)(e,"onKeyDown",f),Object(p.a)(e,"onCompositionEnd",h),Object(p.a)(e,"onMouseDown",O),Object(p.a)(e,"onTouchStart",g),e)))}}]),t}(Tr.Component);var Lc=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(Tr.createElement)(Mr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.a)({},Oo.rawShortcut[n](t),this.onUse)})}}]),t}(Tr.Component),Nc=window.Node,Dc=Nc.TEXT_NODE,Rc=Nc.ELEMENT_NODE;function Fc(){var e=window.getSelection();if(0!==e.rangeCount){var t=e.getRangeAt(0).startContainer;if(t.nodeType===Dc&&(t=t.parentNode),t.nodeType===Rc){var n=t.closest("*[contenteditable]");if(n&&n.contains(t))return t.closest("ol,ul")}}}function Mc(){var e=Fc();return!e||"true"===e.contentEditable}function Uc(e,t){var n=Fc();return n?n.nodeName.toLowerCase()===e:e===t}var Hc=function(e){var t=e.onTagNameChange,n=e.tagName,r=e.value,o=e.onChange;return Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Lc,{type:"primary",character:"[",onUse:function(){o(Object(s.outdentListItems)(r))}}),Object(Tr.createElement)(Lc,{type:"primary",character:"]",onUse:function(){o(Object(s.indentListItems)(r,{type:n}))}}),Object(Tr.createElement)(Lc,{type:"primary",character:"m",onUse:function(){o(Object(s.indentListItems)(r,{type:n}))}}),Object(Tr.createElement)(Lc,{type:"primaryShift",character:"m",onUse:function(){o(Object(s.outdentListItems)(r))}}),Object(Tr.createElement)(vo,null,Object(Tr.createElement)(Mr.Toolbar,{controls:[t&&{icon:"editor-ul",title:Object(Q.__)("Convert to unordered list"),isActive:Uc("ul",n),onClick:function(){o(Object(s.changeListType)(r,{type:"ul"})),Mc()&&t("ul")}},t&&{icon:"editor-ol",title:Object(Q.__)("Convert to ordered list"),isActive:Uc("ol",n),onClick:function(){o(Object(s.changeListType)(r,{type:"ol"})),Mc()&&t("ol")}},{icon:"editor-outdent",title:Object(Q.__)("Outdent list item"),onClick:function(){o(Object(s.outdentListItems)(r))}},{icon:"editor-indent",title:Object(Q.__)("Indent list item"),onClick:function(){o(Object(s.indentListItems)(r,{type:n}))}}].filter(Boolean)})))},Vc=[Oo.rawShortcut.primary("z"),Oo.rawShortcut.primaryShift("z"),Oo.rawShortcut.primary("y")],Wc=Object(Tr.createElement)(Mr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(v.fromPairs)(Vc.map(function(e){return[e,function(e){return e.preventDefault()}]}))}),zc=function(){return Wc};function Kc(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(Oi.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=Oo.displayShortcut[r](o)),Object(Tr.createElement)(Mr.Fill,{name:c},Object(Tr.createElement)(Mr.ToolbarButton,Object(wr.a)({},i,{shortcut:t})))}var qc=Object(u.withSelect)(function(e,t){var n=t.name;return{formatType:e("core/rich-text").getFormatType(n)}})(function(e){return Object(Tr.createElement)(Mr.Fill,{name:"Inserter.InlineElements"},function(t){var n=t.filterValue,r=e.formatType,o=r.keywords,i=void 0===o?[]:o,a=r.title;return i.push(a,e.title),n&&!function(e,t){return e.some(function(e){return-1!==Li(e).indexOf(Li(t))})}(i,n)?null:Object(Tr.createElement)(Pi,Object(wr.a)({},e,{icon:Object(c.normalizeIconObject)(e.icon)}))})}),Gc=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),t}(Tr.Component),$c=window,Yc=$c.getSelection,Qc=($c.getComputedStyle,new Set(["insertParagraph","insertOrderedList","insertUnorderedList","insertHorizontalRule","insertLink"])),Xc=function(e){function t(e){var n,r=e.value,o=e.onReplace,i=e.multiline;return Object(Ar.a)(this,t),n=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments)),!0!==i&&"p"!==i&&"li"!==i||(n.multilineTag=!0===i?"p":i),"li"===n.multilineTag&&(n.multilineWrapperTags=["ul","ol"]),n.props.onSplit?(n.onSplit=n.props.onSplit,wc()("wp.editor.RichText onSplit prop",{plugin:"Gutenberg",alternative:"wp.editor.RichText unstableOnSplit prop"})):n.props.unstableOnSplit&&(n.onSplit=n.props.unstableOnSplit),n.onFocus=n.onFocus.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onBlur=n.onBlur.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onChange=n.onChange.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onDeleteKeyDown=n.onDeleteKeyDown.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onKeyDown=n.onKeyDown.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onPaste=n.onPaste.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onCreateUndoLevel=n.onCreateUndoLevel.bind(Object(Fr.a)(Object(Fr.a)(n))),n.setFocusedElement=n.setFocusedElement.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onInput=n.onInput.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onCompositionEnd=n.onCompositionEnd.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onSelectionChange=n.onSelectionChange.bind(Object(Fr.a)(Object(Fr.a)(n))),n.getRecord=n.getRecord.bind(Object(Fr.a)(Object(Fr.a)(n))),n.createRecord=n.createRecord.bind(Object(Fr.a)(Object(Fr.a)(n))),n.applyRecord=n.applyRecord.bind(Object(Fr.a)(Object(Fr.a)(n))),n.isEmpty=n.isEmpty.bind(Object(Fr.a)(Object(Fr.a)(n))),n.valueToFormat=n.valueToFormat.bind(Object(Fr.a)(Object(Fr.a)(n))),n.setRef=n.setRef.bind(Object(Fr.a)(Object(Fr.a)(n))),n.valueToEditableHTML=n.valueToEditableHTML.bind(Object(Fr.a)(Object(Fr.a)(n))),n.handleHorizontalNavigation=n.handleHorizontalNavigation.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onPointerDown=n.onPointerDown.bind(Object(Fr.a)(Object(Fr.a)(n))),n.formatToValue=Sc()(n.formatToValue.bind(Object(Fr.a)(Object(Fr.a)(n))),{size:1}),n.savedContent=r,n.patterns=function(e){var t=e.onReplace,n=e.valueToFormat,r=e.onCreateUndoLevel,o=e.onChange,i=Object(c.getBlockTransforms)("from").filter(function(e){return"prefix"===e.type});return[function(e){if(!t)return e;var o=Object(s.getSelectionStart)(e),a=Object(s.getTextContent)(e),l=a.slice(o-1,o);if(!/\s/.test(l))return e;var u=a.slice(0,o).trim(),d=Object(c.findTransform)(i,function(e){var t=e.prefix;return u===t});if(!d)return e;var p=n(Object(s.slice)(e,o,a.length)),b=d.transform(p);return r(),t([b]),e},function(e){var t=Object(s.getSelectionStart)(e),n=Object(s.getTextContent)(e);if("`"!==n.slice(t-1,t))return e;var r=n.slice(0,t-1).lastIndexOf("`");if(-1===r)return e;var i=r,c=t-2;return i===c?e:(o(e),e=Object(s.remove)(e,i,i+1),e=Object(s.remove)(e,c,c+1),e=Object(s.applyFormat)(e,{type:"code"},i,c))}]}({onReplace:o,onCreateUndoLevel:n.onCreateUndoLevel,valueToFormat:n.valueToFormat,onChange:n.onChange}),n.enterPatterns=Object(c.getBlockTransforms)("from").filter(function(e){return"enter"===e.type}),n.state={},n.usedDeprecatedChildrenSource=Array.isArray(r),n.lastHistoryValue=r,n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"setRef",value:function(e){e?this.editableRef=e:delete this.editableRef}},{key:"setFocusedElement",value:function(){this.props.setFocusedElement&&this.props.setFocusedElement(this.props.instanceId)}},{key:"getRecord",value:function(){var e=this.formatToValue(this.props.value),t=e.formats,n=e.text,r=this.state;return{formats:t,text:n,start:r.start,end:r.end,selectedFormat:r.selectedFormat}}},{key:"createRecord",value:function(){var e=Yc(),t=e.rangeCount>0?e.getRangeAt(0):null;return Object(s.create)({element:this.editableRef,range:t,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,prepareEditableTree:this.props.prepareEditableTree})}},{key:"applyRecord",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).domOnly;Object(s.apply)({value:e,current:this.editableRef,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,prepareEditableTree:this.props.prepareEditableTree,__unstableDomOnly:t})}},{key:"isEmpty",value:function(){return Object(s.isEmpty)(this.formatToValue(this.props.value))}},{key:"onPaste",value:function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(v.isNil)(n)?[]:n,r=Object(v.isNil)(r)?[]:r;var o="",i="";try{o=t.getData("text/plain"),i=t.getData("text/html")}catch(e){try{i=t.getData("Text")}catch(e){return}}e.preventDefault(),window.console.log("Received HTML:\n\n",i),window.console.log("Received plain text:\n\n",o);var a=Object(v.find)([].concat(Object(B.a)(n),Object(B.a)(r)),function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)});if(a&&!i){var l=a.getAsFile?a.getAsFile():a,u=Object(c.pasteHandler)({HTML:''),mode:"BLOCKS",tagName:this.props.tagName}),d=this.props.onReplace&&this.isEmpty();return window.console.log("Received item:\n\n",l),void(d?this.props.onReplace(u):this.onSplit&&this.splitContent(u))}var p=this.getRecord();if(!Object(s.isCollapsed)(p)){var b=(i||o).replace(/<[^>]+>/g,"").trim();if(Object(O.isURL)(b))return this.onChange(Object(s.applyFormat)(p,{type:"a",attributes:{href:Object(ec.decodeEntities)(b)}})),void window.console.log("Created link:\n\n",b)}var f=this.props.onReplace&&this.isEmpty(),h="INLINE";f?h="BLOCKS":this.onSplit&&(h="AUTO");var m=Object(c.pasteHandler)({HTML:i,plainText:o,mode:h,tagName:this.props.tagName,canUserUseUnfilteredHTML:this.props.canUserUseUnfilteredHTML});if("string"==typeof m){var g=Object(s.create)({html:m});this.onChange(Object(s.insert)(p,g))}else if(this.onSplit){if(!m.length)return;f?this.props.onReplace(m):this.splitContent(m,{paste:!0})}}},{key:"onFocus",value:function(){var e=this.props.unstableOnFocus;e&&e(),document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"onBlur",value:function(){document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"onInput",value:function(e){if(!e||!e.nativeEvent.isComposing){if(e&&e.nativeEvent.inputType){var t=e.nativeEvent.inputType;if(0===t.indexOf("format")||Qc.has(t))return void this.applyRecord(this.getRecord())}var n=this.state.selectedFormat,r=this.patterns.reduce(function(e,t){return t(e)},this.createRecord()),o=r.formats,i=r.text,c=r.start,a=r.end;if(this.formatPlaceholder)o[this.state.start]=o[this.state.start]||[],o[this.state.start].push(this.formatPlaceholder),n=o[this.state.start].length;else if(n){var s=o[c-1]||[],l=o[c]||[],u=s;l.length>s.length&&(u=l),u=u.slice(0,n),o[this.state.start]=u}else delete o[this.state.start];this.onChange({formats:o,text:i,start:c,end:a,selectedFormat:n},{withoutHistory:!0}),this.props.clearTimeout(this.onInput.timeout),this.onInput.timeout=this.props.setTimeout(this.onCreateUndoLevel,1e3)}}},{key:"onCompositionEnd",value:function(){this.onInput()}},{key:"onSelectionChange",value:function(){if(this.ignoreSelectionChange)delete this.ignoreSelectionChange;else{var e=this.createRecord(),t=e.start,n=e.end,r=e.formats;if(t!==this.state.start||n!==this.state.end){var o,i=this.props.isCaretWithinFormattedText;if(!i&&r[t]?this.props.onEnterFormattedText():i&&!r[t]&&this.props.onExitFormattedText(),Object(s.isCollapsed)(e)){var c=r[t-1]||[],a=r[t]||[];o=Math.min(c.length,a.length)}this.setState({start:t,end:n,selectedFormat:o}),this.applyRecord(Object(b.a)({},e,{selectedFormat:o}),{domOnly:!0}),delete this.formatPlaceholder}}}},{key:"onChangeEditableValue",value:function(e){var t=e.formats,n=e.text;Object(v.get)(this.props,["onChangeEditableValue"],[]).forEach(function(e){e(t,n)})}},{key:"onChange",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).withoutHistory;this.applyRecord(e);var n=e.start,r=e.end,o=e.formatPlaceholder,i=e.selectedFormat;this.formatPlaceholder=o,this.onChangeEditableValue(e),this.savedContent=this.valueToFormat(e),this.props.onChange(this.savedContent),this.setState({start:n,end:r,selectedFormat:i}),t||this.onCreateUndoLevel()}},{key:"onCreateUndoLevel",value:function(){this.lastHistoryValue!==this.savedContent&&(this.props.onCreateUndoLevel(),this.lastHistoryValue=this.savedContent)}},{key:"onDeleteKeyDown",value:function(e){var t=this.props,n=t.onMerge,r=t.onRemove;if(n||r){var o=e.keyCode===Oo.BACKSPACE;if(Object(s.isCollapsed)(this.createRecord())){var i=this.isEmpty();(i||Object(Wo.isHorizontalEdge)(this.editableRef,o))&&(n&&n(!o),r&&i&&o&&r(!o),e.preventDefault())}}}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey,r=e.altKey,o=e.metaKey,i=e.ctrlKey;if(n||r||o||i||t!==Oo.LEFT&&t!==Oo.RIGHT||this.handleHorizontalNavigation(e),t===Oo.DELETE||t===Oo.BACKSPACE){var a,l=this.createRecord(),u=Object(s.getSelectionStart)(l),d=Object(s.getSelectionEnd)(l);if(0===u&&0!==d&&d===l.text.length)return this.onChange(Object(s.remove)(l)),void e.preventDefault();if(this.multilineTag)t===Oo.BACKSPACE?Object(s.charAt)(l,u-1)===s.LINE_SEPARATOR&&(a=Object(s.remove)(l,Object(s.isCollapsed)(l)?u-1:u,d)):Object(s.charAt)(l,d)===s.LINE_SEPARATOR&&(a=Object(s.remove)(l,u,Object(s.isCollapsed)(l)?d+1:d)),a&&(this.onChange(a),e.preventDefault());this.onDeleteKeyDown(e)}else if(t===Oo.ENTER){e.preventDefault();var p=this.createRecord();if(this.props.onReplace){var b=Object(s.getTextContent)(p),f=Object(c.findTransform)(this.enterPatterns,function(e){return e.regExp.test(b)});if(f)return void this.props.onReplace([f.transform({content:b})])}this.multilineTag?e.shiftKey?this.onChange(Object(s.insertLineBreak)(p)):this.onSplit&&Object(s.isEmptyLine)(p)?this.onSplit.apply(this,Object(B.a)(Object(s.split)(p).map(this.valueToFormat))):this.onChange(Object(s.insertLineSeparator)(p)):e.shiftKey||!this.onSplit?this.onChange(Object(s.insertLineBreak)(p)):this.splitContent()}}},{key:"handleHorizontalNavigation",value:function(e){var t=this.createRecord(),n=t.formats,r=t.text,o=t.start,i=t.end,c=this.state.selectedFormat,a=Object(s.isCollapsed)(t),l=e.keyCode===Oo.LEFT;if(delete this.formatPlaceholder,a&&0===c){if(0===o&&l)return;if(i===r.length&&!l)return}if(a){e.preventDefault(),this.ignoreSelectionChange=!0;var u=n[o-1]||[],d=n[o]||[],p=c;if(u.lengthu.length&&p--):u.length>d.length&&(!l&&c>d.length&&p--,l&&c0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.onSplit){var n=this.createRecord(),r=Object(s.split)(n),o=Object(d.a)(r,2),i=o[0],c=o[1];Object(s.isEmpty)(c)?i=n:Object(s.isEmpty)(i)&&(c=n),t.paste&&(i=Object(s.isEmpty)(i)?null:i,c=Object(s.isEmpty)(c)?null:c),i&&(i=this.valueToFormat(i)),c&&(c=this.valueToFormat(c)),this.onSplit.apply(this,[i,c].concat(Object(B.a)(e)))}}},{key:"onPointerDown",value:function(e){var t=e.target;if(t!==this.editableRef&&!t.textContent){var n=t.parentNode,r=Array.from(n.childNodes).indexOf(t),o=t.ownerDocument.createRange(),i=Yc();o.setStart(t.parentNode,r),o.setEnd(t.parentNode,r+1),i.removeAllRanges(),i.addRange(o)}}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.tagName,o=n.value,i=n.isSelected;if(r===e.tagName&&o!==e.value&&o!==this.savedContent){if(Array.isArray(o)&&Object(v.isEqual)(o,this.savedContent))return;var c=this.formatToValue(o);if(i){var a=this.formatToValue(e.value),l=Object(s.getTextContent)(a).length;c.start=l,c.end=l}this.applyRecord(c),this.savedContent=o}if(Object.keys(this.props).some(function(n){return 0===n.indexOf("format_")&&(Object(v.isPlainObject)(t.props[n])?Object.keys(t.props[n]).some(function(r){return t.props[n][r]!==e[n][r]}):t.props[n]!==e[n])})){var u=this.formatToValue(o);i&&(u.start=this.state.start,u.end=this.state.end),this.applyRecord(u)}}},{key:"getFormatProps",value:function(){return Object(v.pickBy)(this.props,function(e,t){return t.startsWith("format_")})}},{key:"formatToValue",value:function(e){return Array.isArray(e)?Object(s.create)({html:c.children.toHTML(e),multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):"string"===this.props.format?Object(s.create)({html:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):null===e?Object(s.create)():e}},{key:"valueToEditableHTML",value:function(e){return Object(s.unstableToDom)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,prepareEditableTree:this.props.prepareEditableTree}).body.innerHTML}},{key:"removeEditorOnlyFormats",value:function(e){return this.props.formatTypes.forEach(function(t){t.__experimentalCreatePrepareEditableTree&&(e=Object(s.removeFormat)(e,t.name,0,e.text.length))}),e}},{key:"valueToFormat",value:function(e){return e=this.removeEditorOnlyFormats(e),this.usedDeprecatedChildrenSource?c.children.fromDOM(Object(s.unstableToDom)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags,isEditableTree:!1}).body.childNodes):"string"===this.props.format?Object(s.toHTMLString)({value:e,multilineTag:this.multilineTag,multilineWrapperTags:this.multilineWrapperTags}):e}},{key:"render",value:function(){var e=this,t=this.props,n=t.tagName,r=void 0===n?"div":n,o=t.style,i=t.wrapperClassName,c=t.className,a=t.inlineToolbar,s=void 0!==a&&a,l=t.formattingControls,u=t.placeholder,d=t.keepPlaceholderOnFocus,p=void 0!==d&&d,b=t.isSelected,f=t.autocompleters,h=t.onTagNameChange,m=r,v=this.multilineTag,O=Bc(this.props),g=u&&(!b||p)&&this.isEmpty(),j=Br()(i,"editor-rich-text"),y=this.getRecord();return Object(Tr.createElement)("div",{className:j,onFocus:this.setFocusedElement},b&&"li"===this.multilineTag&&Object(Tr.createElement)(Hc,{onTagNameChange:h,tagName:r,value:y,onChange:this.onChange}),b&&!s&&Object(Tr.createElement)(vo,null,Object(Tr.createElement)(Pc,{controls:l})),b&&s&&Object(Tr.createElement)(Mr.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar"},Object(Tr.createElement)(Pc,{controls:l})),Object(Tr.createElement)(qr,{onReplace:this.props.onReplace,completers:f,record:y,onChange:this.onChange},function(t){var n=t.listBoxId,i=t.activeId;return Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Ac,Object(wr.a)({tagName:r,style:o,record:y,valueToEditableHTML:e.valueToEditableHTML,isPlaceholderVisible:g,"aria-label":u,"aria-autocomplete":"list","aria-owns":n,"aria-activedescendant":i},O,{className:c,key:m,onPaste:e.onPaste,onInput:e.onInput,onCompositionEnd:e.onCompositionEnd,onKeyDown:e.onKeyDown,onFocus:e.onFocus,onBlur:e.onBlur,onMouseDown:e.onPointerDown,onTouchStart:e.onPointerDown,multilineTag:e.multilineTag,multilineWrapperTags:e.multilineWrapperTags,setRef:e.setRef})),g&&Object(Tr.createElement)(r,{className:Br()("editor-rich-text__editable",c),style:o},v?Object(Tr.createElement)(v,null,u):u),b&&Object(Tr.createElement)(Tc,{value:y,onChange:e.onChange}))}),b&&Object(Tr.createElement)(zc,null))}}]),t}(Tr.Component);Xc.defaultProps={formattingControls:["bold","italic","link","strikethrough"],format:"string",value:""};var Jc=Object(Ir.compose)([Ir.withInstanceId,Wr(function(e,t){return!1===t.isSelected?{clientId:e.clientId}:!0===t.isSelected?{isSelected:e.isSelected,clientId:e.clientId}:{isSelected:e.isSelected&&e.focusedElement===t.instanceId,setFocusedElement:e.setFocusedElement,clientId:e.clientId}}),Object(u.withSelect)(function(e){var t=e("core/editor").canUserUseUnfilteredHTML,n=e("core/block-editor").isCaretWithinFormattedText,r=e("core/rich-text").getFormatTypes;return{canUserUseUnfilteredHTML:t(),isCaretWithinFormattedText:n(),formatTypes:r()}}),Object(u.withDispatch)(function(e){var t=e("core/block-editor");return{onCreateUndoLevel:t.__unstableMarkLastChangeAsPersistent,onEnterFormattedText:t.enterFormattedText,onExitFormattedText:t.exitFormattedText}}),Ir.withSafeTimeout,Object(Mr.withFilters)("experimentalRichText")])(Xc);Jc.Content=function(e){var t,n=e.value,r=e.tagName,o=e.multiline,i=Object(Oi.a)(e,["value","tagName","multiline"]),a=n;!0!==o&&"p"!==o&&"li"!==o||(t=!0===o?"p":o),Array.isArray(n)&&(a=c.children.toHTML(n)),!a&&t&&(a="<".concat(t,">"));var s=Object(Tr.createElement)(Tr.RawHTML,null,a);return r?Object(Tr.createElement)(r,Object(v.omit)(i,["format"]),s):s},Jc.isEmpty=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Array.isArray(e)&&!e||0===e.length},Jc.Content.defaultProps={format:"string",value:""};var Zc=Jc,ea=function(e){var t=e.urlQueryArgs,n=void 0===t?{}:t,r=Object(Oi.a)(e,["urlQueryArgs"]),o=Object(u.select)("core/editor").getCurrentPostId;return n=Object(b.a)({post_id:o()},n),Object(Tr.createElement)(Mr.ServerSideRender,Object(wr.a)({urlQueryArgs:n},r))},ta=Object(Mr.withFilters)("editor.MediaUpload")(function(){return null}),na=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={isSettingsExpanded:!1},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.renderSettings,r=e.onClose,o=e.onClickOutside,i=e.position,c=void 0===i?"bottom center":i,a=e.focusOnMount,s=void 0===a?"firstElement":a,l=this.state.isSettingsExpanded,u=!!n&&l;return Object(Tr.createElement)(Mr.Popover,{className:"editor-url-popover",focusOnMount:s,position:c,onClose:r,onClickOutside:o},Object(Tr.createElement)("div",{className:"editor-url-popover__row"},t,!!n&&Object(Tr.createElement)(Mr.IconButton,{className:"editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(Q.__)("Link Settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":l})),u&&Object(Tr.createElement)("div",{className:"editor-url-popover__row editor-url-popover__settings"},n()))}}]),t}(Tr.Component),ra=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(Tr.createElement)(na,{onClose:o},Object(Tr.createElement)("form",{className:"editor-media-placeholder__url-input-form",onSubmit:r},Object(Tr.createElement)("input",{className:"editor-media-placeholder__url-input-field",type:"url","aria-label":Object(Q.__)("URL"),placeholder:Object(Q.__)("Paste or type URL"),onChange:n,value:t}),Object(Tr.createElement)(Mr.IconButton,{className:"editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(Q.__)("Apply"),type:"submit"})))},oa=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onSubmitSrc=e.onSubmitSrc.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onUpload=e.onUpload.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onFilesUpload=e.onFilesUpload.bind(Object(Fr.a)(Object(Fr.a)(e))),e.openURLInput=e.openURLInput.bind(Object(Fr.a)(Object(Fr.a)(e))),e.closeURLInput=e.closeURLInput.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(v.every)(e,function(e){return"image"===e||Object(v.startsWith)(e,"image/")})}},{key:"componentDidMount",value:function(){this.setState({src:Object(v.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(v.get)(e.value,["src"],"")!==Object(v.get)(this.props.value,["src"],"")&&this.setState({src:Object(v.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t=this.props,n=t.onSelect,r=t.multiple,o=t.onError,i=t.allowedTypes;(0,t.mediaUpload)({allowedTypes:i,filesList:e,onFileChange:r?n:function(e){var t=Object(d.a)(e,1)[0];return n(t)},onError:o})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"render",value:function(){var e=this.props,t=e.accept,n=e.icon,r=e.className,o=e.labels,i=void 0===o?{}:o,c=e.onSelect,a=e.value,s=void 0===a?{}:a,l=e.onSelectURL,u=e.onHTMLDrop,d=void 0===u?v.noop:u,p=e.multiple,b=void 0!==p&&p,f=e.notices,h=e.allowedTypes,m=void 0===h?[]:h,O=e.hasUploadPermissions,g=e.mediaUpload,j=this.state,y=j.isURLInputVisible,k=j.src,_=i.instructions||"",S=i.title||"";if(O||l||(_=Object(Q.__)("To edit this block, you need permission to upload media.")),!_||!S){var E=1===m.length,C=E&&"audio"===m[0],w=E&&"image"===m[0],T=E&&"video"===m[0];_||(O?(_=Object(Q.__)("Drag a media file, upload a new one or select a file from your library."),C?_=Object(Q.__)("Drag an audio, upload a new one or select a file from your library."):w?_=Object(Q.__)("Drag an image, upload a new one or select a file from your library."):T&&(_=Object(Q.__)("Drag a video, upload a new one or select a file from your library."))):!O&&l&&(_=Object(Q.__)("Given your current role, you can only link a media file, you cannot upload."),C?_=Object(Q.__)("Given your current role, you can only link an audio, you cannot upload."):w?_=Object(Q.__)("Given your current role, you can only link an image, you cannot upload."):T&&(_=Object(Q.__)("Given your current role, you can only link a video, you cannot upload.")))),S||(S=Object(Q.__)("Media"),C?S=Object(Q.__)("Audio"):w?S=Object(Q.__)("Image"):T&&(S=Object(Q.__)("Video")))}return Object(Tr.createElement)(Mr.Placeholder,{icon:n,label:S,instructions:_,className:Br()("editor-media-placeholder",r),notices:f},Object(Tr.createElement)(Jo,null,!!g&&Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Mr.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:d}),Object(Tr.createElement)(Mr.FormFileUpload,{isLarge:!0,className:"editor-media-placeholder__button",onChange:this.onUpload,accept:t,multiple:b},Object(Q.__)("Upload"))),Object(Tr.createElement)(ta,{gallery:b&&this.onlyAllowsImages(),multiple:b,onSelect:c,allowedTypes:m,value:s.id,render:function(e){var t=e.open;return Object(Tr.createElement)(Mr.Button,{isLarge:!0,className:"editor-media-placeholder__button",onClick:t},Object(Q.__)("Media Library"))}})),l&&Object(Tr.createElement)("div",{className:"editor-media-placeholder__url-input-container"},Object(Tr.createElement)(Mr.Button,{className:"editor-media-placeholder__button",onClick:this.openURLInput,isToggled:y,isLarge:!0},Object(Q.__)("Insert from URL")),y&&Object(Tr.createElement)(ra,{src:k,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput})))}}]),t}(Tr.Component),ia=Object(u.withSelect)(function(e){var t=e("core").canUser,n=e("core/block-editor").getSettings;return{hasUploadPermissions:Object(v.defaultTo)(t("create","media"),!0),mediaUpload:n().__experimentalMediaUpload}}),ca=Object(Ir.compose)(ia,Object(Mr.withFilters)("editor.MediaPlaceholder"))(oa),aa=function(e){return e.stopPropagation()},sa=function(e){function t(e){var n,r=e.autocompleteRef;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(Fr.a)(Object(Fr.a)(n))),n.onKeyDown=n.onKeyDown.bind(Object(Fr.a)(Object(Fr.a)(n))),n.autocompleteRef=r||Object(Tr.createRef)(),n.inputRef=Object(Tr.createRef)(),n.updateSuggestions=Object(v.throttle)(n.updateSuggestions.bind(Object(Fr.a)(Object(Fr.a)(n))),200),n.suggestionNodes=[],n.state={posts:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(Rr.a)(t,e),Object(Lr.a)(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,Ci()(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),setTimeout(function(){e.scrollingIntoView=!1},100))}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"updateSuggestions",value:function(e){var t=this;if(e.length<2||/^https?:/.test(e))this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});else{this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var n=z()({path:Object(O.addQueryArgs)("/wp/v2/search",{search:e,per_page:20,type:"post"})});n.then(function(e){t.suggestionsRequest===n&&(t.setState({posts:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(Q.sprintf)(Object(Q._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),e.length),"assertive"):t.props.debouncedSpeak(Object(Q.__)("No results."),"assertive"))}).catch(function(){t.suggestionsRequest===n&&t.setState({loading:!1})}),this.suggestionsRequest=n}}},{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.posts,i=t.loading;if(n&&o.length&&!i){var c=this.state.posts[this.state.selectedSuggestion];switch(e.keyCode){case Oo.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case Oo.DOWN:e.stopPropagation(),e.preventDefault();var s=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:s});break;case Oo.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(Q.__)("Link selected.")));break;case Oo.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case Oo.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Oo.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=void 0===n?"":n,o=t.autoFocus,i=void 0===o||o,c=t.instanceId,a=t.className,s=this.state,l=s.showSuggestions,u=s.posts,d=s.selectedSuggestion,p=s.loading;return Object(Tr.createElement)("div",{className:Br()("editor-url-input",a)},Object(Tr.createElement)("input",{autoFocus:i,type:"text","aria-label":Object(Q.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:aa,placeholder:Object(Q.__)("Paste URL or type to search"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":l,"aria-autocomplete":"list","aria-owns":"editor-url-input-suggestions-".concat(c),"aria-activedescendant":null!==d?"editor-url-input-suggestion-".concat(c,"-").concat(d):void 0,ref:this.inputRef}),p&&Object(Tr.createElement)(Mr.Spinner,null),l&&!!u.length&&Object(Tr.createElement)(Mr.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(Tr.createElement)("div",{className:"editor-url-input__suggestions",id:"editor-url-input-suggestions-".concat(c),ref:this.autocompleteRef,role:"listbox"},u.map(function(t,n){return Object(Tr.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"editor-url-input-suggestion-".concat(c,"-").concat(n),ref:e.bindSuggestionNode(n),className:Br()("editor-url-input__suggestion",{"is-selected":n===d}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===d},Object(ec.decodeEntities)(t.title)||Object(Q.__)("(no title)"))}))))}}]),t}(Tr.Component),la=Object(Mr.withSpokenMessages)(Object(Ir.withInstanceId)(sa)),ua=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(Fr.a)(Object(Fr.a)(e))),e.submitLink=e.submitLink.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={expanded:!1},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(Q.__)("Edit Link"):Object(Q.__)("Insert Link");return Object(Tr.createElement)("div",{className:"editor-url-input__button"},Object(Tr.createElement)(Mr.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:Br()("components-toolbar__control",{"is-active":t})}),r&&Object(Tr.createElement)("form",{className:"editor-url-input__button-modal",onSubmit:this.submitLink},Object(Tr.createElement)("div",{className:"editor-url-input__button-modal-line"},Object(Tr.createElement)(Mr.IconButton,{className:"editor-url-input__back",icon:"arrow-left-alt",label:Object(Q.__)("Close"),onClick:this.toggle}),Object(Tr.createElement)(la,{value:t||"",onChange:n}),Object(Tr.createElement)(Mr.IconButton,{icon:"editor-break",label:Object(Q.__)("Submit"),type:"submit"}))))}}]),t}(Tr.Component),da=function(e){function t(){return Object(Ar.a)(this,t),Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDirty,r=t.editsReference,o=t.isAutosaveable,i=t.isAutosaving;r!==e.editsReference&&(this.didAutosaveForEditsReference=!1),!i&&e.isAutosaving&&(this.didAutosaveForEditsReference=!0),e.isDirty===n&&e.isAutosaveable===o&&e.editsReference===r||this.toggleTimer(n&&o&&!this.didAutosaveForEditsReference)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(e){var t=this;clearTimeout(this.pendingSave);var n=this.props.autosaveInterval;e&&(this.pendingSave=setTimeout(function(){return t.props.autosave()},1e3*n))}},{key:"render",value:function(){return null}}]),t}(Tr.Component),pa=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostDirty,r=t.isEditedPostAutosaveable,o=t.getReferenceByDistinctEdits,i=t.isAutosavingPost,c=e("core/editor").getEditorSettings().autosaveInterval;return{isDirty:n(),isAutosaveable:r(),editsReference:o(),isAutosaving:i(),autosaveInterval:c}}),Object(u.withDispatch)(function(e){return{autosave:e("core/editor").autosave}})])(da),ba=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.onClick,i=e.isDisabled,c=e.path,a=void 0===c?[]:c;return Object(Tr.createElement)("li",{className:Br()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(Tr.createElement)("button",{className:"document-outline__button",onClick:i?void 0:o,disabled:i},Object(Tr.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),a.map(function(e,t){var n=e.clientId;return Object(Tr.createElement)("strong",{key:t,className:"document-outline__level"},Object(Tr.createElement)(hi,{clientId:n}))}),Object(Tr.createElement)("strong",{className:"document-outline__level"},r),Object(Tr.createElement)("span",{className:"document-outline__item-content"},t),!i&&Object(Tr.createElement)("span",{className:"screen-reader-text"},Object(Q.__)("(Click to focus this heading)"))))},fa=Object(Tr.createElement)("em",null,Object(Q.__)("(Empty heading)")),ha=[Object(Tr.createElement)("br",{key:"incorrect-break"}),Object(Tr.createElement)("em",{key:"incorrect-message"},Object(Q.__)("(Incorrect heading level)"))],ma=[Object(Tr.createElement)("br",{key:"incorrect-break-h1"}),Object(Tr.createElement)("em",{key:"incorrect-message-h1"},Object(Q.__)("(Your theme may already use a H1 for the post title)"))],va=[Object(Tr.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(Tr.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(Q.__)("(Multiple H1 headings are not recommended)"))],Oa=function(e){return!e.attributes.content||0===e.attributes.content.length},ga=Object(Ir.compose)(Object(u.withSelect)(function(e){var t=e("core/block-editor").getBlocks,n=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(n("type"));return{title:n("title"),blocks:t(),isTitleSupported:Object(v.get)(r,["supports","title"],!1)}}),Object(u.withDispatch)(function(e){return{onSelect:e("core/block-editor").selectBlock}}))(function(e){var t=e.blocks,n=void 0===t?[]:t,r=e.title,o=e.onSelect,i=e.isTitleSupported,c=e.hasOutlineItemsDisabled,a=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(v.flatMap)(t,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(b.a)({},t,{path:n,level:t.attributes.level,isEmpty:Oa(t)}):e(t.innerBlocks,[].concat(Object(B.a)(n),[t]))})}(n);if(a.length<1)return null;var l=1,u=i&&r,d=Object(v.countBy)(a,"level")[1]>1;return Object(Tr.createElement)("div",{className:"document-outline"},Object(Tr.createElement)("ul",null,u&&Object(Tr.createElement)(ba,{level:Object(Q.__)("Title"),isValid:!0,onClick:function(){var e=document.querySelector(".editor-post-title__input");e&&e.focus()},isDisabled:c},r),a.map(function(e,t){var n=e.level>l+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(d||u));return l=e.level,Object(Tr.createElement)(ba,{key:t,level:"H".concat(e.level),isValid:r,onClick:function(){return t=e.clientId,o(t);var t},path:e.path,isDisabled:c},e.isEmpty?fa:Object(s.getTextContent)(Object(s.create)({html:e.attributes.content})),n&&ha,1===e.level&&d&&va,u&&1===e.level&&!d&&ma)})))});var ja=Object(u.withSelect)(function(e){return{blocks:e("core/block-editor").getBlocks()}})(function(e){var t=e.blocks,n=e.children;return Object(v.filter)(t,function(e){return"core/heading"===e.name}).length<1?null:n});var ya=Object(Ir.compose)([Object(u.withSelect)(function(e){return{isDirty:(0,e("core/editor").isEditedPostDirty)()}}),Object(u.withDispatch)(function(e,t,n){var r=n.select,o=e("core/editor").savePost;return{onSave:function(){(0,r("core/editor").isEditedPostDirty)()&&o()}}})])(function(e){var t=e.onSave;return Object(Tr.createElement)(Mr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.a)({},Oo.rawShortcut.primary("s"),function(e){e.preventDefault(),t()})})});var ka=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=e("core/block-editor"),r=n.getBlocksByClientId,o=n.getTemplateLock,i=n.getBlockRootClientId,a=r(t.clientIds),s=Object(v.every)(a,function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)}),l=i(t.clientIds[0]);return{isLocked:!!o(l),blocks:a,canDuplicate:s,rootClientId:l,extraProps:t}}),Object(u.withDispatch)(function(e,t,n){var r=n.select,o=t.clientIds,i=t.rootClientId,a=t.blocks,s=t.isLocked,l=t.canDuplicate,u=e("core/block-editor"),d=u.insertBlocks,p=u.multiSelect,b=u.removeBlocks,f=u.insertDefaultBlock;return{onDuplicate:function(){if(!s&&l){var e=(0,r("core/block-editor").getBlockIndex)(Object(v.last)(Object(v.castArray)(o)),i),t=a.map(function(e){return Object(c.cloneBlock)(e)});d(t,e+1,i),t.length>1&&p(Object(v.first)(t).clientId,Object(v.last)(t).clientId)}},onRemove:function(){s||b(o)},onInsertBefore:function(){if(!s){var e=(0,r("core/block-editor").getBlockIndex)(Object(v.first)(Object(v.castArray)(o)),i);f({},i,e)}},onInsertAfter:function(){if(!s){var e=(0,r("core/block-editor").getBlockIndex)(Object(v.last)(Object(v.castArray)(o)),i);f({},i,e+1)}}}})])(function(e){var t=e.onDuplicate,n=e.onRemove,r=e.onInsertBefore,o=e.onInsertAfter,i=e.isLocked,c=e.canDuplicate;return(0,e.children)({onDuplicate:t,onRemove:n,onInsertAfter:o,onInsertBefore:r,isLocked:i,canDuplicate:c})}),_a=function(e){return e.preventDefault(),e},Sa={duplicate:{raw:Oo.rawShortcut.primaryShift("d"),display:Oo.displayShortcut.primaryShift("d")},removeBlock:{raw:Oo.rawShortcut.access("z"),display:Oo.displayShortcut.access("z")},insertBefore:{raw:Oo.rawShortcut.primaryAlt("t"),display:Oo.displayShortcut.primaryAlt("t")},insertAfter:{raw:Oo.rawShortcut.primaryAlt("y"),display:Oo.displayShortcut.primaryAlt("y")}},Ea=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(Fr.a)(Object(Fr.a)(e))),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(Fr.a)(Object(Fr.a)(e))),e.clearMultiSelection=e.clearMultiSelection.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(v.first)(n),Object(v.last)(n))}},{key:"deleteSelectedBlocks",value:function(e){var t=this.props,n=t.selectedBlockClientIds,r=t.hasMultiSelection,o=t.onRemove,i=t.isLocked;r&&(e.preventDefault(),i||o(n))}},{key:"clearMultiSelection",value:function(){var e=this.props,t=e.hasMultiSelection,n=e.clearSelectedBlock;t&&(n(),window.getSelection().removeAllRanges())}},{key:"render",value:function(){var e,t=this.props.selectedBlockClientIds;return Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Mr.KeyboardShortcuts,{shortcuts:(e={},Object(p.a)(e,Oo.rawShortcut.primary("a"),this.selectAll),Object(p.a)(e,"backspace",this.deleteSelectedBlocks),Object(p.a)(e,"del",this.deleteSelectedBlocks),Object(p.a)(e,"escape",this.clearMultiSelection),e)}),t.length>0&&Object(Tr.createElement)(ka,{clientIds:t},function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(Tr.createElement)(Mr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(p.a)(t,Sa.duplicate.raw,Object(v.flow)(_a,n)),Object(p.a)(t,Sa.removeBlock.raw,Object(v.flow)(_a,r)),Object(p.a)(t,Sa.insertBefore.raw,Object(v.flow)(_a,i)),Object(p.a)(t,Sa.insertAfter.raw,Object(v.flow)(_a,o)),t)})}))}}]),t}(Tr.Component),Ca=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getMultiSelectedBlockClientIds,o=t.hasMultiSelection,i=t.getBlockRootClientId,c=t.getTemplateLock,a=(0,t.getSelectedBlockClientId)(),s=a?[a]:r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(v.some)(s,function(e){return!!c(i(e))}),selectedBlockClientIds:s}}),Object(u.withDispatch)(function(e){var t=e("core/block-editor");return{clearSelectedBlock:t.clearSelectedBlock,onMultiSelect:t.multiSelect,onRemove:t.removeBlocks}})])(Ea),wa=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).undoOrRedo=e.undoOrRedo.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"undoOrRedo",value:function(e){var t=this.props,n=t.onRedo,r=t.onUndo;e.shiftKey?n():r(),e.preventDefault()}},{key:"render",value:function(){var e;return Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Ca,null),Object(Tr.createElement)(Mr.KeyboardShortcuts,{shortcuts:(e={},Object(p.a)(e,Oo.rawShortcut.primary("z"),this.undoOrRedo),Object(p.a)(e,Oo.rawShortcut.primaryShift("z"),this.undoOrRedo),e)}),Object(Tr.createElement)(ya,null))}}]),t}(Tr.Component),Ta=Object(u.withDispatch)(function(e){var t=e("core/editor");return{onRedo:t.redo,onUndo:t.undo}})(wa),Pa=Ta;function Ba(){return wc()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(Tr.createElement)(Ta,null)}function Ia(){return Object(Tr.createElement)(ya,null)}var xa=Object(Ir.compose)([Object(u.withSelect)(function(e){return{hasRedo:e("core/editor").hasEditorRedo()}}),Object(u.withDispatch)(function(e){return{redo:e("core/editor").redo}})])(function(e){var t=e.hasRedo,n=e.redo;return Object(Tr.createElement)(Mr.IconButton,{icon:"redo",label:Object(Q.__)("Redo"),shortcut:Oo.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})});var Aa=Object(Ir.compose)([Object(u.withSelect)(function(e){return{hasUndo:e("core/editor").hasEditorUndo()}}),Object(u.withDispatch)(function(e){return{undo:e("core/editor").undo}})])(function(e){var t=e.hasUndo,n=e.undo;return Object(Tr.createElement)(Mr.IconButton,{icon:"undo",label:Object(Q.__)("Undo"),shortcut:Oo.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})});var La=Object(Ir.compose)([Object(u.withSelect)(function(e){return{isValid:e("core/block-editor").isValidTemplate()}}),Object(u.withDispatch)(function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}})])(function(e){var t=e.isValid,n=Object(Oi.a)(e,["isValid"]);return t?null:Object(Tr.createElement)(Mr.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(Tr.createElement)("p",null,Object(Q.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(Tr.createElement)("div",null,Object(Tr.createElement)(Mr.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(Q.__)("Keep it as is")),Object(Tr.createElement)(Mr.Button,{onClick:function(){window.confirm(Object(Q.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(Q.__)("Reset the template"))))});var Na=Object(Ir.compose)([Object(u.withSelect)(function(e){return{notices:e("core/notices").getNotices()}}),Object(u.withDispatch)(function(e){return{onRemove:e("core/notices").removeNotice}})])(function(e){var t=e.dismissible,n=e.notices,r=Object(Oi.a)(e,["dismissible","notices"]);return void 0!==t&&(n=Object(v.filter)(n,{isDismissible:t})),Object(Tr.createElement)(Mr.NoticeList,Object(wr.a)({notices:n},r),!1!==t&&Object(Tr.createElement)(La,null))});var Da=Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}})(function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(t)?null:r});var Ra=Object(u.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}})(function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(v.some)(Object(v.castArray)(r),function(e){return!!t.supports[e]})),o?n:null}),Fa=Object(Ir.withState)({orderInput:null})(function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(Tr.createElement)(Mr.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Q.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(v.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})});var Ma=Object(Ir.compose)([Object(u.withSelect)(function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}}),Object(u.withDispatch)(function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}})])(function(e){return Object(Tr.createElement)(Ra,{supportKeys:"page-attributes"},Object(Tr.createElement)(Fa,e))});function Ua(e){var t=e.map(function(e){return Object(b.a)({children:[],parent:null},e)}),n=Object(v.groupBy)(t,"parent");if(n.null&&n.null.length)return t;return function e(t){return t.map(function(t){var r=n[t.id];return Object(b.a)({},t,{children:r&&r.length?e(r):[]})})}(n[0]||[])}var Ha=Object(u.withSelect)(function(e){var t=e("core"),n=t.getPostType,r=t.getEntityRecords,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("type"),s=n(a),l=i(),u=Object(v.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:l,parent_exclude:l,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:u?r("postType",a,d):[],postType:s}}),Va=Object(u.withDispatch)(function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}}),Wa=Object(Ir.compose)([Ha,Va])(function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(v.get)(n,["hierarchical"],!1),c=Object(v.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=Ua(a.map(function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(Q.__)("no title"),")")}}));return Object(Tr.createElement)(Mr.TreeSelect,{className:"editor-page-attributes__parent",label:c,noOptionLabel:"(".concat(Object(Q.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})});var za=Object(Ir.compose)(Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}}),Object(u.withDispatch)(function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}}))(function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(v.isEmpty)(t)?null:Object(Tr.createElement)(Mr.SelectControl,{label:Object(Q.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(t,function(e,t){return{value:t,label:e}})})});var Ka=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}}),Ir.withInstanceId])(function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(Tr.createElement)(Ra,{supportKeys:"author"},r)}),qa=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"setAuthorId",value:function(e){var t=this.props.onUpdateAuthor,n=e.target.value;t(Number(n))}},{key:"render",value:function(){var e=this.props,t=e.postAuthor,n=e.instanceId,r=e.authors,o="post-author-selector-"+n;return Object(Tr.createElement)(Ka,null,Object(Tr.createElement)("label",{htmlFor:o},Object(Q.__)("Author")),Object(Tr.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map(function(e){return Object(Tr.createElement)("option",{key:e.id,value:e.id},e.name)})))}}]),t}(Tr.Component),Ga=Object(Ir.compose)([Object(u.withSelect)(function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}}),Object(u.withDispatch)(function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}}),Ir.withInstanceId])(qa);var $a=Object(Ir.compose)([Object(u.withSelect)(function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}}),Object(u.withDispatch)(function(e){return{editPost:e("core/editor").editPost}})])(function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(Oi.a)(e,["commentStatus"]);return Object(Tr.createElement)(Mr.CheckboxControl,{label:Object(Q.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})});var Ya=Object(Ir.compose)([Object(u.withSelect)(function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}}),Object(u.withDispatch)(function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}})])(function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(Tr.createElement)("div",{className:"editor-post-excerpt"},Object(Tr.createElement)(Mr.TextareaControl,{label:Object(Q.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(Tr.createElement)(Mr.ExternalLink,{href:Object(Q.__)("https://codex.wordpress.org/Excerpt")},Object(Q.__)("Learn more about manual excerpts")))});var Qa=function(e){return Object(Tr.createElement)(Ra,Object(wr.a)({},e,{supportKeys:"excerpt"}))};var Xa=Object(u.withSelect)(function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}})(function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(v.some)(Object(v.castArray)(o),function(e){var n=Object(v.get)(t,[e],!1);return"post-thumbnails"===e&&Object(v.isArray)(n)?Object(v.includes)(n,r):n})?n:null});var Ja=function(e){return Object(Tr.createElement)(Xa,{supportKeys:"post-thumbnails"},Object(Tr.createElement)(Ra,Object(wr.a)({},e,{supportKeys:"thumbnail"})))},Za=["image"],es=Object(Q.__)("Featured Image"),ts=Object(Q.__)("Set featured image"),ns=Object(Q.__)("Remove image");var rs=Object(u.withSelect)(function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}}),os=Object(u.withDispatch)(function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}}),is=Object(Ir.compose)(rs,os,Object(Mr.withFilters)("editor.PostFeaturedImage"))(function(e){var t,n,r,o=e.currentPostId,i=e.featuredImageId,c=e.onUpdateImage,a=e.onRemoveImage,s=e.media,l=e.postType,u=Object(v.get)(l,["labels"],{}),d=Object(Tr.createElement)("p",null,Object(Q.__)("To edit the featured image, you need permission to upload media."));if(s){var p=Object(xr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",s.id,o);Object(v.has)(s,["media_details","sizes",p])?(t=s.media_details.sizes[p].width,n=s.media_details.sizes[p].height,r=s.media_details.sizes[p].source_url):(t=s.media_details.width,n=s.media_details.height,r=s.source_url)}return Object(Tr.createElement)(Ja,null,Object(Tr.createElement)("div",{className:"editor-post-featured-image"},!!i&&Object(Tr.createElement)(Jo,{fallback:d},Object(Tr.createElement)(ta,{title:u.featured_image||es,onSelect:c,allowedTypes:Za,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(Tr.createElement)(Mr.Button,{className:"editor-post-featured-image__preview",onClick:o,"aria-label":Object(Q.__)("Edit or update the image")},s&&Object(Tr.createElement)(Mr.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n},Object(Tr.createElement)("img",{src:r,alt:""})),!s&&Object(Tr.createElement)(Mr.Spinner,null))},value:i})),!!i&&s&&!s.isLoading&&Object(Tr.createElement)(Jo,null,Object(Tr.createElement)(ta,{title:u.featured_image||es,onSelect:c,allowedTypes:Za,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(Tr.createElement)(Mr.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(Q.__)("Replace image"))}})),!i&&Object(Tr.createElement)("div",null,Object(Tr.createElement)(Jo,{fallback:d},Object(Tr.createElement)(ta,{title:u.featured_image||es,onSelect:c,allowedTypes:Za,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(Tr.createElement)(Mr.Button,{className:"editor-post-featured-image__toggle",onClick:t},u.set_featured_image||ts)}}))),!!i&&Object(Tr.createElement)(Jo,null,Object(Tr.createElement)(Mr.Button,{onClick:a,isLink:!0,isDestructive:!0},u.remove_featured_image||ns))))});var cs=Object(u.withSelect)(function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}})(function(e){var t=e.disablePostFormats,n=Object(Oi.a)(e,["disablePostFormats"]);return!t&&Object(Tr.createElement)(Ra,Object(wr.a)({},n,{supportKeys:"post-formats"}))}),as=[{id:"aside",caption:Object(Q.__)("Aside")},{id:"gallery",caption:Object(Q.__)("Gallery")},{id:"link",caption:Object(Q.__)("Link")},{id:"image",caption:Object(Q.__)("Image")},{id:"quote",caption:Object(Q.__)("Quote")},{id:"standard",caption:Object(Q.__)("Standard")},{id:"status",caption:Object(Q.__)("Status")},{id:"video",caption:Object(Q.__)("Video")},{id:"audio",caption:Object(Q.__)("Audio")},{id:"chat",caption:Object(Q.__)("Chat")}];var ss=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(v.union)([o],Object(v.get)(i,["formats"],[])),suggestedFormat:r()}}),Object(u.withDispatch)(function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}}),Ir.withInstanceId])(function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,c="post-format-selector-"+e.instanceId,a=as.filter(function(e){return Object(v.includes)(o,e.id)}),s=Object(v.find)(a,function(e){return e.id===i});return Object(Tr.createElement)(cs,null,Object(Tr.createElement)("div",{className:"editor-post-format"},Object(Tr.createElement)("div",{className:"editor-post-format__content"},Object(Tr.createElement)("label",{htmlFor:c},Object(Q.__)("Post Format")),Object(Tr.createElement)(Mr.SelectControl,{value:r,onChange:function(e){return t(e)},id:c,options:a.map(function(e){return{label:e.caption,value:e.id}})})),s&&s.id!==r&&Object(Tr.createElement)("div",{className:"editor-post-format__suggestion"},Object(Q.__)("Suggestion:")," ",Object(Tr.createElement)(Mr.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))});var ls=Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}})(function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(Tr.createElement)(Ra,{supportKeys:"revisions"},r)});function us(e,t){return Object(O.addQueryArgs)(e,t)}function ds(e){return Object(v.toLower)(Object(v.deburr)(Object(v.trim)(e.replace(/[\s\.\/_]+/g,"-"),"-")))}var ps=Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}})(function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(Tr.createElement)(ls,null,Object(Tr.createElement)(Mr.IconButton,{href:us("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(Q.sprintf)(Object(Q._n)("%d Revision","%d Revisions",n),n)))});var bs=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e)}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(Tr.renderToString)(Object(Tr.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(Tr.createElement)(Mr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(Tr.createElement)(Mr.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(Tr.createElement)(Mr.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(Tr.createElement)("p",null,Object(Q.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(xr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(Q.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=t||n;return Object(Tr.createElement)(Mr.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(Q._x)("Preview","imperative verb"),Object(Tr.createElement)("span",{className:"screen-reader-text"},Object(Q.__)("(opens in a new tab)")),Object(Tr.createElement)(a.DotTip,{tipId:"core/editor.preview"},Object(Q.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(Tr.Component),fs=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,l=o.isEditedPostAutosaveable,u=o.getEditedPostPreviewLink,d=e("core").getPostType,p=u(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||l(),isViewable:Object(v.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}}),Object(u.withDispatch)(function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}}),Object(Ir.ifCondition)(function(e){return e.isViewable})])(bs),hs=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(Fr.a)(Object(Fr.a)(e))),e.receivePostLock=e.receivePostLock.bind(Object(Fr.a)(Object(Fr.a)(e))),e.releasePostLock=e.releasePostLock.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(xr.addAction)("heartbeat.send",e,this.sendPostLock),Object(xr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(xr.removeAction)("heartbeat.send",e),Object(xr.removeAction)("heartbeat.tick",e)}},{key:"getHookName",value:function(){return"core/editor/post-locked-modal-"+this.props.instanceId}},{key:"sendPostLock",value:function(e){var t=this.props,n=t.isLocked,r=t.activePostLock,o=t.postId;n||(e["wp-refresh-post-lock"]={lock:r,post_id:o})}},{key:"receivePostLock",value:function(e){if(e["wp-refresh-post-lock"]){var t=this.props,n=t.autosave,r=t.updatePostLock,o=e["wp-refresh-post-lock"];o.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:o.lock_error.avatar_src}})):o.new_lock&&r({isLocked:!1,activePostLock:o.new_lock})}}},{key:"releasePostLock",value:function(){var e=this.props,t=e.isLocked,n=e.activePostLock,r=e.postLockUtils,o=e.postId;if(!t&&n){var i=new window.FormData;i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n);var c=new window.XMLHttpRequest;c.open("POST",r.ajaxUrl,!1),c.send(i)}}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.postId,r=e.isLocked,o=e.isTakeover,i=e.postLockUtils,c=e.postType;if(!r)return null;var a=t.name,s=t.avatar,l=Object(O.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),u=us("edit.php",{post_type:Object(v.get)(c,["slug"])}),d=Object(v.get)(c,["labels","all_items"]);return Object(Tr.createElement)(Mr.Modal,{title:o?Object(Q.__)("Someone else has taken over this post."):Object(Q.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(Tr.createElement)("img",{src:s,alt:Object(Q.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(Tr.createElement)("div",null,Object(Tr.createElement)("div",null,a?Object(Q.sprintf)(Object(Q.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(Q.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(Tr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(Tr.createElement)(Mr.Button,{isPrimary:!0,isLarge:!0,href:u},d))),!o&&Object(Tr.createElement)("div",null,Object(Tr.createElement)("div",null,a?Object(Q.sprintf)(Object(Q.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(Q.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(Tr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(Tr.createElement)(Mr.Button,{isDefault:!0,isLarge:!0,href:u},d),Object(Tr.createElement)(fs,null),Object(Tr.createElement)(Mr.Button,{isPrimary:!0,isLarge:!0,href:l},Object(Q.__)("Take Over")))))}}]),t}(Tr.Component),ms=Object(Ir.compose)(Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,a=t.getEditedPostAttribute,s=t.getEditorSettings,l=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:l(a("type"))}}),Object(u.withDispatch)(function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}}),Ir.withInstanceId,Object(Ir.withGlobalEvents)({beforeunload:"releasePostLock"}))(hs);var vs=Object(Ir.compose)(Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(v.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}}))(function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r});var Os=Object(Ir.compose)(Object(u.withSelect)(function(e){return{status:e("core/editor").getEditedPostAttribute("status")}}),Object(u.withDispatch)(function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}}))(function(e){var t=e.status,n=e.onUpdateStatus;return Object(Tr.createElement)(vs,null,Object(Tr.createElement)(Mr.CheckboxControl,{label:Object(Q.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))});var gs=Object(Ir.compose)([Object(u.withSelect)(function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}}),Object(u.withDispatch)(function(e){return{editPost:e("core/editor").editPost}})])(function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(Oi.a)(e,["pingStatus"]);return Object(Tr.createElement)(Mr.CheckboxControl,{label:Object(Q.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})});var js=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,l=r.getCurrentPostType,u=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(v.get)(s(),["_links","wp:action-publish"],!1),postType:l(),isAutosaving:u()}})])(function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(Q.__)("Publishing…"):t&&r&&!c?Object(Q.__)("Updating…"):n&&r&&!c?Object(Q.__)("Scheduling…"):i?t?Object(Q.__)("Update"):n?Object(Q.__)("Schedule"):Object(Q.__)("Publish"):Object(Q.__)("Submit for Review")}),ys=function(e){function t(e){var n;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).call(this,e))).buttonNode=Object(Tr.createRef)(),n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,c=t.isOpen,s=t.isPostSavingLocked,l=t.isPublishable,u=t.isPublished,d=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,O=void 0===m?v.noop:m,g=t.onToggle,j=t.visibility,y=p||r||!d||s||!l&&!n,k=u||p||r||!d||!l&&!n;e=o?i?"future":"private"===j?"private":"publish":"pending";var _={"aria-disabled":y,className:"editor-post-publish-button",isBusy:p&&u,isLarge:!0,isPrimary:!0,onClick:function(){y||(O(),h(e),f())}},S={"aria-disabled":k,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:p&&u,isPrimary:!0,onClick:function(){k||g()}},E=i?Object(Q.__)("Schedule…"):Object(Q.__)("Publish…"),C=Object(Tr.createElement)(js,{forceIsSaving:r}),w=b?S:_,T=b?E:C;return Object(Tr.createElement)(Mr.Button,Object(wr.a)({ref:this.buttonNode},w),T,Object(Tr.createElement)(a.DotTip,{tipId:"core/editor.publish"},Object(Q.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),t}(Tr.Component),ks=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,a=t.isEditedPostPublishable,s=t.isPostSavingLocked,l=t.getCurrentPost,u=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(v.get)(l(),["_links","wp:action-publish"],!1),postType:u()}}),Object(u.withDispatch)(function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e})},onSave:t.savePost}})])(ys),_s=[{value:"public",label:Object(Q.__)("Public"),info:Object(Q.__)("Visible to everyone.")},{value:"private",label:Object(Q.__)("Private"),info:Object(Q.__)("Only visible to site admins and editors.")},{value:"password",label:Object(Q.__)("Password Protected"),info:Object(Q.__)("Protected with a password you choose. Only those with the password can view this post.")}],Ss=function(e){function t(e){var n;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(Fr.a)(Object(Fr.a)(n))),n.setPrivate=n.setPrivate.bind(Object(Fr.a)(Object(Fr.a)(n))),n.setPasswordProtected=n.setPasswordProtected.bind(Object(Fr.a)(Object(Fr.a)(n))),n.updatePassword=n.updatePassword.bind(Object(Fr.a)(Object(Fr.a)(n))),n.state={hasPassword:!!e.password},n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"setPublic",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(Q.__)("Would you like to privately publish this post now?"))){var e=this.props,t=e.onUpdateVisibility,n=e.onSave;t("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r,e.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(e){var t=this.props,n=t.status;(0,t.onUpdateVisibility)(n,e.target.value)}},{key:"render",value:function(){var e=this.props,t=e.visibility,n=e.password,r=e.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===t&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===t},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(Tr.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(Tr.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(Q.__)("Post Visibility")),_s.map(function(e){var t=e.value,n=e.label,i=e.info;return Object(Tr.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(Tr.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-".concat(t,"-").concat(r),"aria-describedby":"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(Tr.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(Tr.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))})),this.state.hasPassword&&Object(Tr.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(Tr.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(Q.__)("Create password")),Object(Tr.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(Q.__)("Use a secure password")}))]}}]),t}(Tr.Component),Es=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}}),Object(u.withDispatch)(function(e){var t=e("core/editor"),n=t.savePost,r=t.editPost;return{onSave:n,onUpdateVisibility:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r({status:e,password:t})}}}),Ir.withInstanceId])(Ss);var Cs=Object(u.withSelect)(function(e){return{visibility:e("core/editor").getEditedPostVisibility()}})(function(e){var t=e.visibility;return Object(v.find)(_s,{value:t}).label});var ws=Object(Ir.compose)([Object(u.withSelect)(function(e){return{date:e("core/editor").getEditedPostAttribute("date")}}),Object(u.withDispatch)(function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}})])(function(e){var t=e.date,n=e.onUpdateDate,r=Object(bt.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(Tr.createElement)(Mr.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})});var Ts=Object(u.withSelect)(function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}})(function(e){var t=e.date,n=e.isFloating,r=Object(bt.__experimentalGetSettings)();return t&&!n?Object(bt.dateI18n)(r.formats.datetimeAbbreviated,t):Object(Q.__)("Immediately")}),Ps={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},Bs=function(e,t){return e.toLowerCase()===t.toLowerCase()},Is=function(e){return Object(b.a)({},e,{name:Object(v.unescape)(e.name)})},xs=function(e){return Object(v.map)(e,Is)},As=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(Fr.a)(Object(Fr.a)(e))),e.searchTerms=Object(v.throttle)(e.searchTerms.bind(Object(Fr.a)(Object(Fr.a)(e))),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={loading:!Object(v.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(v.isEmpty)(this.props.terms)||(this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then(function(){e.setState({loading:!1})},function(t){"abort"!==t.statusText&&e.setState({loading:!1})}))}},{key:"componentWillUnmount",value:function(){Object(v.invoke)(this.initRequest,["abort"]),Object(v.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){e.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(b.a)({},Ps,t),o=z()({path:Object(O.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(xs).then(function(t){e.setState(function(e){return{availableTerms:e.availableTerms.concat(t.filter(function(t){return!Object(v.find)(e.availableTerms,function(e){return e.id===t.id})}))}}),e.updateSelectedTerms(e.props.terms)}),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(t,n){var r=Object(v.find)(e.state.availableTerms,function(e){return e.id===n});return r&&t.push(r.name),t},[]);this.setState({selectedTerms:t})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(v.escape)(e);return z()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch(function(o){return"term_exists"===o.code?(t.addRequest=z()({path:Object(O.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(b.a)({},Ps,{search:r}))}).then(xs),t.addRequest.then(function(t){return Object(v.find)(t,function(t){return Bs(t.name,e)})})):Promise.reject(o)}).then(Is)}},{key:"onChange",value:function(e){var t=this,n=Object(v.uniqBy)(e,function(e){return e.toLowerCase()});this.setState({selectedTerms:n});var r=n.filter(function(e){return!Object(v.find)(t.state.availableTerms,function(t){return Bs(t.name,e)})}),o=function(e,t){return e.map(function(e){return Object(v.find)(t,function(t){return Bs(t.name,e)}).id})};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then(function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)})}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(v.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:e})}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map(function(e){return e.name}),s=Object(v.get)(n,["labels","add_new_item"],"post_tag"===t?Object(Q.__)("Add New Tag"):Object(Q.__)("Add New Term")),l=Object(v.get)(n,["labels","singular_name"],"post_tag"===t?Object(Q.__)("Tag"):Object(Q.__)("Term")),u=Object(Q.sprintf)(Object(Q._x)("%s added","term"),l),d=Object(Q.sprintf)(Object(Q._x)("%s removed","term"),l),p=Object(Q.sprintf)(Object(Q._x)("Remove %s","term"),l);return Object(Tr.createElement)(Mr.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:u,removed:d,remove:p}})}}]),t}(Tr.Component),Ls=Object(Ir.compose)(Object(u.withSelect)(function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}}),Object(u.withDispatch)(function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(p.a)({},n,t))}}}),Object(Mr.withFilters)("editor.PostTaxonomyType"))(As),Ns=function(){var e=[Object(Q.__)("Suggestion:"),Object(Tr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Q.__)("Add tags"))];return Object(Tr.createElement)(Mr.PanelBody,{initialOpen:!1,title:e},Object(Tr.createElement)("p",null,Object(Q.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(Tr.createElement)(Ls,{slug:"post_tag"}))},Ds=function(e){function t(e){var n;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(Tr.createElement)(Ns,null)}}]),t}(Tr.Component),Rs=Object(Ir.compose)(Object(u.withSelect)(function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(v.some)(n.types,function(e){return e===t}),hasTags:r&&r.length}}),Object(Ir.ifCondition)(function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t}))(Ds),Fs=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(Tr.createElement)(Mr.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Ms=function(e,t){var n=as.filter(function(t){return Object(v.includes)(e,t.id)});return Object(v.find)(n,function(e){return e.id===t})},Us=Object(Ir.compose)(Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(v.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Ms(o,r())}}),Object(u.withDispatch)(function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}}),Object(Ir.ifCondition)(function(e){var t=e.suggestion,n=e.currentPostFormat;return t&&t.id!==n}))(function(e){var t=e.suggestion,n=e.onUpdatePostFormat,r=[Object(Q.__)("Suggestion:"),Object(Tr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Q.__)("Use a post format"))];return Object(Tr.createElement)(Mr.PanelBody,{initialOpen:!1,title:r},Object(Tr.createElement)("p",null,Object(Q.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(Tr.createElement)("p",null,Object(Tr.createElement)(Fs,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(Q.sprintf)(Object(Q.__)('Apply the "%1$s" format.'),t.caption)})))});var Hs=Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}})(function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(Q.__)("Are you ready to schedule?"),n=Object(Q.__)("Your work will be published at the specified date and time.")):(t=Object(Q.__)("Are you ready to publish?"),n=Object(Q.__)("Double-check your settings before publishing.")):(t=Object(Q.__)("Are you ready to submit for review?"),n=Object(Q.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(Tr.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(Tr.createElement)("div",null,Object(Tr.createElement)("strong",null,t)),Object(Tr.createElement)("p",null,n),r&&Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Mr.PanelBody,{initialOpen:!1,title:[Object(Q.__)("Visibility:"),Object(Tr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Tr.createElement)(Cs,null))]},Object(Tr.createElement)(Es,null)),Object(Tr.createElement)(Mr.PanelBody,{initialOpen:!1,title:[Object(Q.__)("Publish:"),Object(Tr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Tr.createElement)(Ts,null))]},Object(Tr.createElement)(ws,null)),Object(Tr.createElement)(Us,null),Object(Tr.createElement)(Rs,null),i))}),Vs=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onSelectInput=e.onSelectInput.bind(Object(Fr.a)(Object(Fr.a)(e))),e.postLink=Object(Tr.createRef)(),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout(function(){e.setState({showCopyConfirmation:!1})},4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(v.get)(o,["labels","singular_name"]),c=Object(v.get)(o,["labels","view_item"]),a=n?Object(Tr.createElement)(Tr.Fragment,null,Object(Q.__)("is now scheduled. It will go live on")," ",Object(Tr.createElement)(Ts,null),"."):Object(Q.__)("is now live.");return Object(Tr.createElement)("div",{className:"post-publish-panel__postpublish"},Object(Tr.createElement)(Mr.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(Tr.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(Q.__)("(no title)"))," ",a),Object(Tr.createElement)(Mr.PanelBody,null,Object(Tr.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(Tr.createElement)("strong",null,Object(Q.__)("What’s next?"))),Object(Tr.createElement)(Mr.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Q.sprintf)(Object(Q.__)("%s address"),i),value:Object(O.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(Tr.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(Tr.createElement)(Mr.Button,{isDefault:!0,href:r.link},c),Object(Tr.createElement)(Mr.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Q.__)("Copied!"):Object(Q.__)("Copy Link")))),t)}}]),t}(Tr.Component),Ws=Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}})(Vs),zs=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,l=e.onTogglePublishSidebar,u=e.PostPublishExtension,d=e.PrePublishExtension,p=Object(Oi.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(Tr.createElement)("div",Object(wr.a)({className:"editor-post-publish-panel"},b),Object(Tr.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(Tr.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(Q.__)("Scheduled"):Object(Q.__)("Published")):Object(Tr.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(Tr.createElement)(ks,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(Tr.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(Tr.createElement)(Mr.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(Q.__)("Close panel")})),Object(Tr.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(Tr.createElement)(Hs,null,d&&Object(Tr.createElement)(d,null)),m&&Object(Tr.createElement)(Ws,{focusOnMount:!0},u&&Object(Tr.createElement)(u,null)),a&&Object(Tr.createElement)(Mr.Spinner,null)),Object(Tr.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(Tr.createElement)(Mr.CheckboxControl,{label:Object(Q.__)("Always show pre-publish checks."),checked:i,onChange:l})))}}]),t}(Tr.Component),Ks=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,l=n.isSavingPost,u=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:u(),isSaving:l(),isScheduled:c()}}),Object(u.withDispatch)(function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}}),Mr.withFocusReturn,Mr.withConstrainedTabbing])(zs);var qs=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}}),Object(u.withDispatch)(function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}})])(function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick;return n||r?Object(Tr.createElement)(Mr.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(Q.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(Q.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},Object(Q.__)("Switch to Draft")):null}),Gs=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this;e.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout(function(){t.setState({forceSavedMessage:!1})},1e3))}},{key:"render",value:function(){var e=this.props,t=e.post,n=e.isNew,r=e.isScheduled,o=e.isPublished,i=e.isDirty,c=e.isSaving,a=e.isSaveable,s=e.onSave,l=e.isAutosaving,u=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=Br()("editor-post-saved-state","is-saving",{"is-autosaving":l});return Object(Tr.createElement)("span",{className:b},Object(Tr.createElement)(Mr.Dashicon,{icon:"cloud"}),l?Object(Q.__)("Autosaving"):Object(Q.__)("Saving"))}if(o||r)return Object(Tr.createElement)(qs,null);if(!a)return null;if(p||!n&&!i)return Object(Tr.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(Tr.createElement)(Mr.Dashicon,{icon:"saved"}),Object(Q.__)("Saved"));if(!Object(v.get)(t,["_links","wp:action-publish"],!1)&&u)return null;var f=u?Object(Q.__)("Save as Pending"):Object(Q.__)("Save Draft");return d?Object(Tr.createElement)(Mr.Button,{className:"editor-post-save-draft",onClick:s,shortcut:Oo.displayShortcut.primary("s"),isTertiary:!0},f):Object(Tr.createElement)(Mr.IconButton,{className:"editor-post-save-draft",label:f,onClick:s,shortcut:Oo.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(Tr.Component),$s=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,c=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,s=o.isEditedPostDirty,l=o.isSavingPost,u=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,b=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:c(),isScheduled:a(),isDirty:n||s(),isSaving:r||l(),isSaveable:u(),isAutosaving:p(),isPending:"pending"===b("status")}}),Object(u.withDispatch)(function(e){return{onSave:e("core/editor").savePost}}),Ir.withSafeTimeout,Object(l.withViewportMatch)({isLargeViewport:"medium"})])(Gs);var Ys=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}})])(function(e){var t=e.hasPublishAction,n=e.children;return t?n:null});var Qs=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(v.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}})])(function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null});var Xs=Object(Ir.compose)([Object(u.withSelect)(function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}}),Object(u.withDispatch)(function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}})])(function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(Tr.createElement)(Qs,null,Object(Tr.createElement)(Mr.CheckboxControl,{label:Object(Q.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}),Js={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},Zs=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onChange=e.onChange.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onChangeFormName=e.onChangeFormName.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onChangeFormParent=e.onChangeFormParent.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onAddTerm=e.onAddTerm.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onToggleForm=e.onToggleForm.bind(Object(Fr.a)(Object(Fr.a)(e))),e.setFilterValue=e.setFilterValue.bind(Object(Fr.a)(Object(Fr.a)(e))),e.sortBySelected=e.sortBySelected.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.taxonomy,c=parseInt(e.target.value,10);n(-1!==o.indexOf(c)?Object(v.without)(o,c):[].concat(Object(B.a)(o),[c]),i.rest_base)}},{key:"onChangeFormName",value:function(e){var t=""===e.target.value.trim()?"":e.target.value;this.setState({formName:t})}},{key:"onChangeFormParent",value:function(e){this.setState({formParent:e})}},{key:"onToggleForm",value:function(){this.setState(function(e){return{showForm:!e.showForm}})}},{key:"findTerm",value:function(e,t,n){return Object(v.find)(e,function(e){return(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===n.toLowerCase()})}},{key:"onAddTerm",value:function(e){var t=this;e.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,c=n.slug,a=this.state,s=a.formName,l=a.formParent,u=a.adding,d=a.availableTerms;if(""!==s&&!u){var p=this.findTerm(d,l,s);if(p)return Object(v.some)(i,function(e){return e===p.id})||r([].concat(Object(B.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=z()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:l||void 0}}),this.addRequest.catch(function(e){return"term_exists"===e.code?(t.addRequest=z()({path:Object(O.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(b.a)({},Js,{parent:l||0,search:s}))}),t.addRequest.then(function(e){return t.findTerm(e,l,s)})):Promise.reject(e)}).then(function(e){var n=!!Object(v.find)(t.state.availableTerms,function(t){return t.id===e.id})?t.state.availableTerms:[e].concat(Object(B.a)(t.state.availableTerms)),a=Object(Q.sprintf)(Object(Q._x)("%s added","term"),Object(v.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(Q.__)("Category"):Object(Q.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(Ua(n))}),r([].concat(Object(B.a)(i),[e.id]),o.rest_base)},function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))})}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(v.invoke)(this.fetchRequest,["abort"]),Object(v.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){this.props.taxonomy!==e.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=z()({path:Object(O.addQueryArgs)("/wp/v2/".concat(t.rest_base),Js)}),this.fetchRequest.then(function(t){var n=e.sortBySelected(Ua(t));e.fetchRequest=null,e.setState({loading:!1,availableTermsTree:n,availableTerms:t})},function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))}))}},{key:"sortBySelected",value:function(e){var t=this.props.terms,n=function e(n){return-1!==t.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(e).filter(function(e){return e}).length>0)};return e.sort(function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0}),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter(function(e){return e});this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter(function(e){return e})),(-1!==r.name.toLowerCase().indexOf(e)||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map(function(e){var n="editor-post-taxonomies-hierarchical-term-".concat(e.id);return Object(Tr.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(Tr.createElement)("input",{id:n,className:"editor-post-taxonomies__hierarchical-terms-input",type:"checkbox",checked:-1!==r.indexOf(e.id),value:e.id,onChange:t.onChange}),Object(Tr.createElement)("label",{htmlFor:n},Object(v.unescape)(e.name)),!!e.children.length&&Object(Tr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))})}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,l=i.formName,u=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(v.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(Q.__)("Add new category"),Object(Q.__)("Add new term")),m=f("new_item_name",Object(Q.__)("Add new category"),Object(Q.__)("Add new term")),O=f("parent_item",Object(Q.__)("Parent Category"),Object(Q.__)("Parent Term")),g="— ".concat(O," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),k="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),_=Object(Q.sprintf)(Object(Q._x)("Search %s","term"),Object(v.get)(this.props.taxonomy,["name"],"category"===t?Object(Q.__)("Categories"):Object(Q.__)("Terms"))),S=Object(Q.sprintf)(Object(Q._x)("Available %s","term"),Object(v.get)(this.props.taxonomy,["name"],"category"===t?Object(Q.__)("Categories"):Object(Q.__)("Terms"))),E=a.length>=8;return[E&&Object(Tr.createElement)("label",{key:"filter-label",htmlFor:k},_),E&&Object(Tr.createElement)("input",{type:"search",id:k,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(Tr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":S},this.renderTerms(""!==b?s:c)),!d&&o&&Object(Tr.createElement)(Mr.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(Tr.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(Tr.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(Tr.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:l,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(Tr.createElement)(Mr.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:u,tree:c}),Object(Tr.createElement)(Mr.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),t}(Tr.Component),el=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}}),Object(u.withDispatch)(function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(p.a)({},n,t))}}}),Mr.withSpokenMessages,Ir.withInstanceId,Object(Mr.withFilters)("editor.PostTaxonomyType")])(Zs);var tl=Object(Ir.compose)([Object(u.withSelect)(function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}})])(function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?v.identity:r,i=Object(v.filter)(n,function(e){return Object(v.includes)(e.types,t)});return Object(v.filter)(i,function(e){return e.visibility.show_ui}).map(function(e){var t=e.hierarchical?el:Ls;return Object(Tr.createElement)(Tr.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(Tr.createElement)(t,{slug:e.slug}),e))})});var nl=Object(Ir.compose)([Object(u.withSelect)(function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}})])(function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(v.some)(n,function(e){return Object(v.includes)(e.types,t)})?r:null}),rl=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(Fr.a)(Object(Fr.a)(e))),e.stopEditing=e.stopEditing.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"edit",value:function(e){var t=e.target.value;this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var e=this.state.value,t=this.props.instanceId;return Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(Q.__)("Type text or HTML")),Object(Tr.createElement)(pi.a,{autoComplete:"off",dir:"auto",value:e,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(t),placeholder:Object(Q.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(Tr.Component),ol=Object(Ir.compose)([Object(u.withSelect)(function(e){return{value:(0,e("core/editor").getEditedPostContent)()}}),Object(u.withDispatch)(function(e){var t=e("core/editor"),n=t.editPost,r=t.resetEditorBlocks;return{onChange:function(e){n({content:e})},onPersist:function(e){var t=Object(c.parse)(e);r(t)}}}),Ir.withInstanceId])(rl),il=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(Ar.a)(this,t),(n=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(Fr.a)(Object(Fr.a)(n))),n}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onSavePermalink",value:function(e){var t=ds(this.state.editedPostName);e.preventDefault(),this.props.onSave(),t!==this.props.postName&&(this.props.editPost({slug:t}),this.setState({editedPostName:t}))}},{key:"render",value:function(){var e=this,t=this.props.permalinkParts,n=t.prefix,r=t.suffix,o=this.state.editedPostName;return Object(Tr.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(Tr.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(Tr.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(Tr.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(Q.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(Tr.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(Tr.createElement)(Mr.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(Q.__)("Save")))}}]),t}(Tr.Component),cl=Object(Ir.compose)([Object(u.withSelect)(function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}}),Object(u.withDispatch)(function(e){return{editPost:e("core/editor").editPost}})])(il),al=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onVisibilityChange=e.onVisibilityChange.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var e=this.props,t=e.isEditable,n=e.refreshPost;t||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(e,t){t.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.isNew,o=t.isPublished,i=t.isViewable,c=t.permalinkParts,a=t.postLink,s=t.postSlug,l=t.postID,u=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(Q.__)("Permalink copied"):Object(Q.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=Object(O.safeDecodeURIComponent)(s)||ds(u)||l,g=n?h+v+m:h;return Object(Tr.createElement)("div",{className:"editor-post-permalink"},Object(Tr.createElement)(Mr.ClipboardButton,{className:Br()("editor-post-permalink__copy",{"is-copied":p}),text:g,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(Tr.createElement)("span",{className:"editor-post-permalink__label"},Object(Q.__)("Permalink:")),!b&&Object(Tr.createElement)(Mr.ExternalLink,{className:"editor-post-permalink__link",href:o?g:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(O.safeDecodeURI)(g),"‎"),b&&Object(Tr.createElement)(cl,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(Tr.createElement)(Mr.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(Q.__)("Edit")),!n&&Object(Tr.createElement)(Mr.Button,{className:"editor-post-permalink__change",isLarge:!0,href:us("options-permalink.php"),onClick:this.addVisibilityCheck,target:"_blank"},Object(Q.__)("Change Permalinks")))}}]),t}(Tr.Component),sl=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getCurrentPost,i=t.getPermalinkParts,c=t.getEditedPostAttribute,a=t.isCurrentPostPublished,s=e("core").getPostType,l=o(),u=l.id,d=l.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:u,isViewable:Object(v.get)(p,["viewable"],!1)}}),Object(u.withDispatch)(function(e){return{refreshPost:e("core/editor").refreshPost}})])(al),ll=/[\r\n]+/g,ul=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onSelect=e.onSelect.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onUnselect=e.onUnselect.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onKeyDown=e.onKeyDown.bind(Object(Fr.a)(Object(Fr.a)(e))),e.redirectHistory=e.redirectHistory.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={isSelected:!1},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(ll," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Oo.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(e){e.shiftKey?this.props.onRedo():this.props.onUndo(),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.isPostTypeViewable,i=e.instanceId,c=e.placeholder,a=e.title,s=this.state.isSelected,l=Br()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object(ec.decodeEntities)(c);return Object(Tr.createElement)(Ra,{supportKeys:"title"},Object(Tr.createElement)("div",{className:"editor-post-title"},Object(Tr.createElement)("div",{className:l},Object(Tr.createElement)(Mr.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(Tr.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},u||Object(Q.__)("Add title")),Object(Tr.createElement)(pi.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:u||Object(Q.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:n})),s&&o&&Object(Tr.createElement)(sl,null))))}}]),t}(Tr.Component),dl=Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=e("core/block-editor").getSettings,i=(0,e("core").getPostType)(n("type")),c=o(),a=c.titlePlaceholder,s=c.focusMode,l=c.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(v.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:l}}),pl=Object(u.withDispatch)(function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=e("core/editor"),i=o.editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(e){i({title:e})},onUndo:o.undo,onRedo:o.redo,clearSelectedBlock:r}}),bl=Object(Ir.compose)(dl,pl,Ir.withInstanceId,Mr.withFocusOutside)(ul);var fl=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}}),Object(u.withDispatch)(function(e){return{trashPost:e("core/editor").trashPost}})])(function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(Oi.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(Tr.createElement)(Mr.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(Q.__)("Move to trash"))});var hl=Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId;return{isNew:n(),postId:r()}})(function(e){var t=e.isNew,n=e.postId,r=e.children;return t||!n?null:r});var ml=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}})])(function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})}),vl=n(99);var Ol=Object(u.withSelect)(function(e){return{content:e("core/editor").getEditedPostAttribute("content")}})(function(e){var t=e.content,n=Object(Q._x)("words","Word count type. Do not translate!");return Object(Tr.createElement)("span",{className:"word-count"},Object(vl.count)(t,n))});var gl=Object(u.withSelect)(function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}})(function(e){var t=e.headingCount,n=e.paragraphCount,r=e.numberOfBlocks,o=e.hasOutlineItemsDisabled;return Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)("div",{className:"table-of-contents__counts",role:"note","aria-label":Object(Q.__)("Document Statistics"),tabIndex:"0"},Object(Tr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Words"),Object(Tr.createElement)(Ol,null)),Object(Tr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Headings"),Object(Tr.createElement)("span",{className:"table-of-contents__number"},t)),Object(Tr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Paragraphs"),Object(Tr.createElement)("span",{className:"table-of-contents__number"},n)),Object(Tr.createElement)("div",{className:"table-of-contents__count"},Object(Q.__)("Blocks"),Object(Tr.createElement)("span",{className:"table-of-contents__number"},r))),t>0&&Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)("hr",null),Object(Tr.createElement)("span",{className:"table-of-contents__title"},Object(Q.__)("Document Outline")),Object(Tr.createElement)(ga,{hasOutlineItemsDisabled:o})))});var jl=Object(u.withSelect)(function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}})(function(e){var t=e.hasBlocks,n=e.hasOutlineItemsDisabled;return Object(Tr.createElement)(Mr.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(Tr.createElement)(Mr.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(Q.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(){return Object(Tr.createElement)(gl,{hasOutlineItemsDisabled:n})}})}),yl=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){if(this.props.isDirty)return e.returnValue=Object(Q.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(Tr.Component),kl=Object(u.withSelect)(function(e){return{isDirty:e("core/editor").isEditedPostDirty()}})(yl),_l=Object(u.withSelect)(function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}})(function(e){var t=e.selectedBlockClientId;return t&&Object(Tr.createElement)(Mr.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block",onClick:function(){Yi(t).closest(".editor-block-list__block").focus()}},Object(Q.__)("Skip to the selected block"))}),Sl=n(125),El=n.n(Sl);function Cl(e,t,n){var r=new El.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var wl=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,i=r(n),a=Object(c.getBlockType)(i.name);return{name:i.name,attributes:i.attributes,className:i.attributes.className||"",styles:o(i.name),type:a}}),Object(u.withDispatch)(function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/block-editor").updateBlockAttributes(n,{className:t})}}})])(function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.name,i=e.attributes,c=e.type,a=e.onSwitch,s=void 0===a?v.noop:a,l=e.onHoverClassName,u=void 0===l?v.noop:l;if(!t||0===t.length)return null;c.styles||Object(v.find)(t,"isDefault")||(t=[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0}].concat(Object(B.a)(t)));var d=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new El.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var s=a.substring(9),l=Object(v.find)(e,{name:s});if(l)return l}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(v.find)(e,"isDefault")}(t,n);function p(e){var t=Cl(n,d,e);r(t),u(null),s()}return Object(Tr.createElement)("div",{className:"editor-block-styles"},t.map(function(e){var t=Cl(n,d,e);return Object(Tr.createElement)("div",{key:e.name,className:Br()("editor-block-styles__item",{"is-active":d===e}),onClick:function(){return p(e)},onKeyDown:function(t){Oo.ENTER!==t.keyCode&&Oo.SPACE!==t.keyCode||(t.preventDefault(),p(e))},onMouseEnter:function(){return u(t)},onMouseLeave:function(){return u(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(Tr.createElement)("div",{className:"editor-block-styles__item-preview"},Object(Tr.createElement)(wi,{name:o,attributes:Object(b.a)({},i,{className:t})})),Object(Tr.createElement)("div",{className:"editor-block-styles__item-label"},e.label||e.name))}))});var Tl=Object(u.withSelect)(function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}})(function(e){var t=e.blocks,n=Object(vl.count)(Object(c.serialize)(t),"words");return Object(Tr.createElement)("div",{className:"editor-multi-selection-inspector__card"},Object(Tr.createElement)(Gr,{icon:Object(Tr.createElement)(Mr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Tr.createElement)(Mr.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(Tr.createElement)("div",{className:"editor-multi-selection-inspector__card-content"},Object(Tr.createElement)("div",{className:"editor-multi-selection-inspector__card-title"},Object(Q.sprintf)(Object(Q._n)("%d block","%d blocks",t.length),t.length)),Object(Tr.createElement)("div",{className:"editor-multi-selection-inspector__card-description"},Object(Q.sprintf)(Object(Q._n)("%d word","%d words",n),n))))}),Pl=Object(u.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,i=e("core/blocks").getBlockStyles,a=n(),s=a&&o(a),l=a&&Object(c.getBlockType)(s),u=a&&i(s);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:s,selectedBlockClientId:a,blockType:l}})(function(e){var t=e.selectedBlockClientId,n=e.selectedBlockName,r=e.blockType,o=e.count,i=e.hasBlockStyles;if(o>1)return Object(Tr.createElement)(Tl,null);var a=n===Object(c.getUnregisteredTypeHandlerName)();return r&&t&&!a?Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)("div",{className:"editor-block-inspector__card"},Object(Tr.createElement)(Gr,{icon:r.icon,showColors:!0}),Object(Tr.createElement)("div",{className:"editor-block-inspector__card-content"},Object(Tr.createElement)("div",{className:"editor-block-inspector__card-title"},r.title),Object(Tr.createElement)("div",{className:"editor-block-inspector__card-description"},r.description))),i&&Object(Tr.createElement)("div",null,Object(Tr.createElement)(Mr.PanelBody,{title:Object(Q.__)("Styles"),initialOpen:!1},Object(Tr.createElement)(wl,{clientId:t}))),Object(Tr.createElement)("div",null,Object(Tr.createElement)(mc.Slot,null)),Object(Tr.createElement)("div",null,Object(Tr.createElement)(dc.Slot,null,function(e){return!Object(v.isEmpty)(e)&&Object(Tr.createElement)(Mr.PanelBody,{className:"editor-block-inspector__advanced",title:Object(Q.__)("Advanced"),initialOpen:!1},e)})),Object(Tr.createElement)(_l,{key:"back"})):Object(Tr.createElement)("span",{className:"editor-block-inspector__no-blocks"},Object(Q.__)("No block selected."))}),Bl=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(Fr.a)(Object(Fr.a)(e))),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(Tr.createElement)("div",Object(wr.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(v.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(Tr.Component),Il=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}}),Object(u.withDispatch)(function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}})])(Bl);var xl=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=o(n);return{mode:i(n),blockType:a?Object(c.getBlockType)(a.name):null}}),Object(u.withDispatch)(function(e,t){var n=t.onToggle,r=void 0===n?v.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}})])(function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o;if(!Object(c.hasBlockSupport)(t,"html",!0))return null;var a="visual"===n?Object(Q.__)("Edit as HTML"):Object(Q.__)("Edit visually");return Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",onClick:r,icon:"html",label:i?a:void 0},!i&&a)});var Al=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.canInsertBlockType,a=e("core/editor").__experimentalGetReusableBlock,s=e("core").canUser,l=o(n),u=1===l.length&&l[0]&&Object(c.isReusableBlock)(l[0])&&!!a(l[0].attributes.ref);return{isReusable:u,isVisible:u||i("core/block")&&Object(v.every)(l,function(e){return!!e&&e.isValid&&Object(c.hasBlockSupport)(e.name,"reusable",!0)})&&!!s("create","blocks")}}),Object(u.withDispatch)(function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?v.noop:r,i=e("core/editor"),c=i.__experimentalConvertBlockToReusable,a=i.__experimentalConvertBlockToStatic;return{onConvertToStatic:function(){1===n.length&&(a(n[0]),o())},onConvertToReusable:function(){c(n),o()}}})])(function(e){var t=e.isVisible,n=e.isReusable,r=e.onConvertToStatic,o=e.onConvertToReusable;return t?Object(Tr.createElement)(Tr.Fragment,null,!n&&Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(Q.__)("Add to Reusable Blocks")),n&&Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(Q.__)("Convert to Regular Block"))):null});var Ll=Object(Ir.compose)([Object(u.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core").canUser,i=e("core/editor").__experimentalGetReusableBlock,a=r(n),s=a&&Object(c.isReusableBlock)(a)?i(a.attributes.ref):null;return{isVisible:!!s&&!!o("delete","blocks",s.id),isDisabled:s&&s.isTemporary}}),Object(u.withDispatch)(function(e,t,n){var r=t.clientId,o=t.onToggle,i=void 0===o?v.noop:o,c=n.select,a=e("core/editor").__experimentalDeleteReusableBlock,s=c("core/block-editor").getBlock;return{onDelete:function(){if(window.confirm(Object(Q.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))){var e=s(r);a(e.attributes.ref),i()}}}})])(function(e){var t=e.isVisible,n=e.isDisabled,r=e.onDelete;return t?Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",icon:"no",disabled:n,onClick:function(){return r()}},Object(Q.__)("Remove from Reusable Blocks")):null});function Nl(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(Q.__)("Convert to Blocks");return Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",onClick:n,icon:"screenoptions",label:r?o:void 0},!r&&o)}var Dl=Object(Ir.compose)(Object(u.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}}),Object(u.withDispatch)(function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}}))(Nl),Rl=Object(Ir.compose)(Object(u.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}}),Object(u.withDispatch)(function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.serialize)(n)}))}}}))(Nl),Fl=Object(Mr.createSlotFill)("_BlockSettingsMenuFirstItem"),Ml=Fl.Fill,Ul=Fl.Slot;Ml.Slot=Ul;var Hl=Ml,Vl=Object(Mr.createSlotFill)("_BlockSettingsMenuPluginsExtension"),Wl=Vl.Fill,zl=Vl.Slot;Wl.Slot=zl;var Kl=Wl;var ql=Object(u.withDispatch)(function(e){var t=e("core/block-editor").selectBlock;return{onSelect:function(e){t(e)}}})(function(e){var t=e.clientIds,n=e.onSelect,r=Object(v.castArray)(t),o=r.length,i=r[0];return Object(Tr.createElement)(ka,{clientIds:t},function(e){var r=e.onDuplicate,c=e.onRemove,a=e.onInsertAfter,s=e.onInsertBefore,l=e.canDuplicate,u=e.isLocked;return Object(Tr.createElement)(Mr.Dropdown,{contentClassName:"editor-block-settings-menu__popover",position:"bottom right",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,c=Br()("editor-block-settings-menu__toggle",{"is-opened":r}),a=r?Object(Q.__)("Hide options"):Object(Q.__)("More options");return Object(Tr.createElement)(Mr.Toolbar,{controls:[{icon:"ellipsis",title:a,onClick:function(){1===o&&n(i),t()},className:c,extraProps:{"aria-expanded":r}}]})},renderContent:function(e){var n=e.onClose;return Object(Tr.createElement)(Mr.NavigableMenu,{className:"editor-block-settings-menu__content"},Object(Tr.createElement)(Hl.Slot,{fillProps:{onClose:n}}),1===o&&Object(Tr.createElement)(Rl,{clientId:i}),1===o&&Object(Tr.createElement)(Dl,{clientId:i}),!u&&l&&Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",onClick:r,icon:"admin-page",shortcut:Sa.duplicate.display},Object(Q.__)("Duplicate")),!u&&Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",onClick:s,icon:"insert-before",shortcut:Sa.insertBefore.display},Object(Q.__)("Insert Before")),Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",onClick:a,icon:"insert-after",shortcut:Sa.insertAfter.display},Object(Q.__)("Insert After"))),1===o&&Object(Tr.createElement)(xl,{clientId:i,onToggle:n}),Object(Tr.createElement)(Al,{clientIds:t,onToggle:n}),Object(Tr.createElement)(Kl.Slot,{fillProps:{clientIds:t,onClose:n}}),Object(Tr.createElement)("div",{className:"editor-block-settings-menu__separator"}),1===o&&Object(Tr.createElement)(Ll,{clientId:i,onToggle:n}),!u&&Object(Tr.createElement)(Mr.MenuItem,{className:"editor-block-settings-menu__control",onClick:c,icon:"trash",shortcut:Sa.removeBlock.display},Object(Q.__)("Remove Block")))}})})}),Gl=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(Fr.a)(Object(Fr.a)(e))),e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,i=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var s,l=Object(v.mapKeys)(o,function(e){return e.name}),u=Object(v.orderBy)(Object(v.filter)(Object(c.getPossibleBlockTransformations)(n),function(e){return e&&!!l[e.name]}),function(e){return l[e.name].frecency},"desc");if(1===Object(v.uniq)(Object(v.map)(n,"name")).length){var d=n[0].name,p=Object(c.getBlockType)(d);s=p.icon}else s="layout";return i||u.length?Object(Tr.createElement)(Mr.Dropdown,{position:"bottom right",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(Q.__)("Change block type"):Object(Q.sprintf)(Object(Q._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(Tr.createElement)(Mr.Toolbar,null,Object(Tr.createElement)(Mr.IconButton,{className:"editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==Oo.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(Gr,{icon:s,showColors:!0}),Object(Tr.createElement)(Mr.SVG,{className:"editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Tr.createElement)(Mr.Path,{d:"M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z"})))}))},renderContent:function(t){var o=t.onClose;return Object(Tr.createElement)(Tr.Fragment,null,i&&Object(Tr.createElement)(Mr.PanelBody,{title:Object(Q.__)("Block Styles"),initialOpen:!0},Object(Tr.createElement)(wl,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==u.length&&Object(Tr.createElement)(Mr.PanelBody,{title:Object(Q.__)("Transform To:"),initialOpen:!0},Object(Tr.createElement)(Bi,{items:u.map(function(e){return{id:e.name,icon:e.icon,title:e.title,hasChildBlocksWithInserterSupport:Object(c.hasChildBlocksWithInserterSupport)(e.name)}}),onSelect:function(e){r(n,e.id),o()}})),null!==a&&Object(Tr.createElement)(Ti,{name:n[0].name,attributes:Object(b.a)({},n[0].attributes,{className:a})}))}}):Object(Tr.createElement)(Mr.Toolbar,null,Object(Tr.createElement)(Mr.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon",label:Object(Q.__)("Block icon")},Object(Tr.createElement)(Gr,{icon:s,showColors:!0})))}}]),t}(Tr.Component),$l=Object(Ir.compose)(Object(u.withSelect)(function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,s=i(Object(v.first)(Object(v.castArray)(n))),l=o(n),u=l&&1===l.length?l[0]:null,d=u&&a(u.name);return{blocks:l,inserterItems:c(s),hasBlockStyles:d&&d.length>0}}),Object(u.withDispatch)(function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}}))(Gl);var Yl=Object(u.withSelect)(function(e){var t=e("core/block-editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}})(function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(Tr.createElement)($l,{key:"switcher",clientIds:n}):null});var Ql=Object(u.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockMode,o=t.getMultiSelectedBlockClientIds,i=t.isBlockValid,c=n();return{blockClientIds:c?[c]:o(),isValid:c?i(c):null,mode:c?r(c):null}})(function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(Tr.createElement)("div",{className:"editor-block-toolbar"},Object(Tr.createElement)(Yl,null),Object(Tr.createElement)(ql,{clientIds:t})):Object(Tr.createElement)("div",{className:"editor-block-toolbar"},"visual"===r&&n&&Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)($l,{clientIds:t}),Object(Tr.createElement)(lo.Slot,null),Object(Tr.createElement)(vo.Slot,null)),Object(Tr.createElement)(ql,{clientIds:t}))}),Xl=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onCopy=function(t){return e.props.onCopy(t)},e.onCut=function(t){return e.props.onCut(t)},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.onCopy),document.addEventListener("cut",this.onCut)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.onCopy),document.removeEventListener("cut",this.onCut)}},{key:"render",value:function(){return null}}]),t}(Tr.Component),Jl=Object(Ir.compose)([Object(u.withDispatch)(function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,i=r.getMultiSelectedBlockClientIds,a=r.getSelectedBlockClientId,s=r.hasMultiSelection,l=e("core/block-editor").removeBlocks,u=function(e){var t=a()?[a()]:i();if(0!==t.length&&(s()||!Object(Wo.documentHasSelection)())){var n=Object(c.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:u,onCut:function(e){if(u(e),s()){var t=a()?[a()]:i();l(t)}}}})])(Xl),Zl=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(Fr.a)(Object(Fr.a)(e))),e.getContent=e.getContent.bind(Object(Fr.a)(Object(Fr.a)(e))),e.state={error:null},e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(u.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(Tr.createElement)(ti,{className:"editor-error-boundary",actions:[Object(Tr.createElement)(Mr.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(Q.__)("Attempt Recovery")),Object(Tr.createElement)(Mr.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(Q.__)("Copy Post Text")),Object(Tr.createElement)(Mr.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(Q.__)("Copy Error"))]},Object(Q.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(Tr.Component),eu=function(e){function t(){return Object(Ar.a)(this,t),Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=Yi(e);if(t){var n=Object(Wo.getScrollContainer)(t);n&&Ci()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(Tr.Component),tu=Object(u.withSelect)(function(e){return{extentClientId:(0,e("core/block-editor").getLastMultiSelectedBlockClientId)()}})(eu),nu=[Oo.UP,Oo.RIGHT,Oo.DOWN,Oo.LEFT,Oo.ENTER,Oo.BACKSPACE];var ru=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(Fr.a)(Object(Fr.a)(e))),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(Fr.a)(Object(Fr.a)(e))),e.startTypingInTextField=e.startTypingInTextField.bind(Object(Fr.a)(Object(Fr.a)(e))),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(Fr.a)(Object(Fr.a)(e))),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(Fr.a)(Object(Fr.a)(e))),e.onKeyDown=Object(v.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"componentDidMount",value:function(){this.toggleEventBindings(this.props.isTyping)}},{key:"componentDidUpdate",value:function(e){this.props.isTyping!==e.isTyping&&this.toggleEventBindings(this.props.isTyping)}},{key:"componentWillUnmount",value:function(){this.toggleEventBindings(!1)}},{key:"toggleEventBindings",value:function(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",this.stopTypingOnSelectionUncollapse),document[t]("mousemove",this.stopTypingOnMouseMove)}},{key:"stopTypingOnMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.lastMouseMove){var r=this.lastMouseMove,o=r.clientX,i=r.clientY;o===t&&i===n||this.props.onStopTyping()}this.lastMouseMove={clientX:t,clientY:n}}},{key:"stopTypingOnSelectionUncollapse",value:function(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||this.props.onStopTyping()}},{key:"stopTypingOnEscapeKey",value:function(e){this.props.isTyping&&e.keyCode===Oo.ESCAPE&&this.props.onStopTyping()}},{key:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(Wo.isTextField)(i)||i.closest(".editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(v.includes)(nu,t)}(e))&&r()}},{key:"stopTypingOnNonTextField",value:function(e){var t=this;e.persist(),this.props.setTimeout(function(){var n=t.props,r=n.isTyping,o=n.onStopTyping,i=e.target;r&&!Object(Wo.isTextField)(i)&&o()})}},{key:"render",value:function(){var e=this.props.children;return Object(Tr.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(Tr.Component),ou=Object(Ir.compose)([Object(u.withSelect)(function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}}),Object(u.withDispatch)(function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}}),Ir.withSafeTimeout])(ru),iu=function(e){function t(){return Object(Ar.a)(this,t),Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"getSnapshotBeforeUpdate",value:function(e){var t=this.props,n=t.blockOrder,r=t.selectionStart;return n!==e.blockOrder&&r?this.getOffset(r):null}},{key:"componentDidUpdate",value:function(e,t,n){n&&this.restorePreviousOffset(n)}},{key:"getOffset",value:function(e){var t=Yi(e);return t?t.getBoundingClientRect().top:null}},{key:"restorePreviousOffset",value:function(e){var t=Yi(this.props.selectionStart);if(t){var n=Object(Wo.getScrollContainer)(t);n&&(n.scrollTop=n.scrollTop+t.getBoundingClientRect().top-e)}}},{key:"render",value:function(){return null}}]),t}(Tr.Component),cu=Object(u.withSelect)(function(e){return{blockOrder:e("core/block-editor").getBlockOrder(),selectionStart:e("core/block-editor").getBlockSelectionStart()}})(iu),au=window.getSelection,su=Object(v.overEvery)([Wo.isTextField,Wo.focus.tabbable.isTabbableIndex]);var lu=function(e){function t(){var e;return Object(Ar.a)(this,t),(e=Object(Nr.a)(this,Object(Dr.a)(t).apply(this,arguments))).onKeyDown=e.onKeyDown.bind(Object(Fr.a)(Object(Fr.a)(e))),e.bindContainer=e.bindContainer.bind(Object(Fr.a)(Object(Fr.a)(e))),e.clearVerticalRect=e.clearVerticalRect.bind(Object(Fr.a)(Object(Fr.a)(e))),e.focusLastTextField=e.focusLastTextField.bind(Object(Fr.a)(Object(Fr.a)(e))),e.verticalRect=null,e}return Object(Rr.a)(t,e),Object(Lr.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearVerticalRect",value:function(){this.verticalRect=null}},{key:"getClosestTabbable",value:function(e,t){var n=Wo.focus.focusable.find(this.container);return t&&(n=Object(v.reverse)(n)),n=n.slice(n.indexOf(e)+1),Object(v.find)(n,function t(n,r,o){if(!Wo.focus.tabbable.isTabbableIndex(n))return!1;if(Object(Wo.isTextField)(n))return!0;if(!n.classList.contains("editor-block-list__block"))return!1;if(function(e){return!!e.querySelector(".editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=o[r+c])&&n.contains(i);c++)if(t(i,r+c,o))return!1;return!0})}},{key:"expandSelection",value:function(e){var t=this.props,n=t.selectedBlockClientId,r=t.selectionStartClientId,o=t.selectionBeforeEndClientId,i=t.selectionAfterEndClientId,c=e?o:i;c&&this.props.onMultiSelect(r||n,c)}},{key:"moveSelection",value:function(e){var t=this.props,n=t.selectedFirstClientId,r=t.selectedLastClientId,o=e?n:r;o&&this.props.onSelectBlock(o)}},{key:"isTabbableEdge",value:function(e,t){var n,r,o=this.getClosestTabbable(e,t);return!(o&&(n=e,r=o,n.closest("[data-block]")===r.closest("[data-block]")))}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.hasMultiSelection,r=t.onMultiSelect,o=t.blocks,i=e.keyCode,c=e.target,a=i===Oo.UP,s=i===Oo.DOWN,l=i===Oo.LEFT,u=i===Oo.RIGHT,d=a||l,p=l||u,b=a||s,f=p||b,h=e.shiftKey,m=h||e.ctrlKey||e.altKey||e.metaKey,O=b?Wo.isVerticalEdge:Wo.isHorizontalEdge;if(!f)return Oo.isKeyboardEvent.primary(e)&&(this.isEntirelySelected=Object(Wo.isEntirelySelected)(c)),void(Oo.isKeyboardEvent.primary(e,"a")&&((c.isContentEditable?this.isEntirelySelected:Object(Wo.isEntirelySelected)(c))&&(r(Object(v.first)(o),Object(v.last)(o)),e.preventDefault()),this.isEntirelySelected=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===Oo.UP||t===Oo.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(c,i,m))if(b?this.verticalRect||(this.verticalRect=Object(Wo.computeCaretRect)(c)):this.verticalRect=null,h&&(n||this.isTabbableEdge(c,d)&&O(c,d)))this.expandSelection(d),e.preventDefault();else if(n)this.moveSelection(d),e.preventDefault();else if(b&&Object(Wo.isVerticalEdge)(c,d)){var g=this.getClosestTabbable(c,d);g&&(Object(Wo.placeCaretAtVerticalEdge)(g,d,this.verticalRect),e.preventDefault())}else if(p&&au().isCollapsed&&Object(Wo.isHorizontalEdge)(c,d)){var j=this.getClosestTabbable(c,d);Object(Wo.placeCaretAtHorizontalEdge)(j,d),e.preventDefault()}}},{key:"focusLastTextField",value:function(){var e=Wo.focus.focusable.find(this.container),t=Object(v.findLast)(e,su);t&&Object(Wo.placeCaretAtHorizontalEdge)(t,!0)}},{key:"render",value:function(){var e=this.props.children;return Object(Tr.createElement)("div",{className:"editor-writing-flow"},Object(Tr.createElement)("div",{ref:this.bindContainer,onKeyDown:this.onKeyDown,onMouseDown:this.clearVerticalRect},e),Object(Tr.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:this.focusLastTextField,className:"wp-block editor-writing-flow__click-redirect"}))}}]),t}(Tr.Component),uu=Object(Ir.compose)([Object(u.withSelect)(function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,s=t.getLastMultiSelectedBlockClientId,l=t.hasMultiSelection,u=t.getBlockOrder,d=n(),p=r(),b=o();return{selectedBlockClientId:d,selectionStartClientId:p,selectionBeforeEndClientId:i(b||d),selectionAfterEndClientId:c(b||d),selectedFirstClientId:a(),selectedLastClientId:s(),hasMultiSelection:l(),blocks:u()}}),Object(u.withDispatch)(function(e){var t=e("core/block-editor");return{onMultiSelect:t.multiSelect,onSelectBlock:t.selectBlock}})])(lu),du=n(193),pu=n.n(du),bu=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,fu=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),b(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function l(){return p(/^{\s*/)}function u(){return p(/^}/)}function d(){var t,n=[];for(b(),h(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)!1!==t&&(n.push(t),h(n));return n}function p(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function b(){p(/^\s*/)}function h(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function v(){var e=p(/^([^{]+)/);if(e)return hu(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(e){return e.replace(/\u200C/g,",")})}function O(){var e=i(),t=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=hu(t[0]),!p(/^:\s*/))return s("property missing ':'");var n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(bu,""),value:n?hu(n[0]).replace(bu,""):""});return p(/^[;\s]*/),r}}function g(){var e,t=[];if(!l())return s("missing '{'");for(h(t);e=O();)!1!==e&&(t.push(e),h(t));return u()?t:s("missing '}'")}function j(){for(var e,t=[],n=i();e=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),p(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var y,k=E("import"),_=E("charset"),S=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=p(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=i(),t=p(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=p(/^([-\w]+)\s*/)))return s("@keyframes missing name");var r,o=t[1];if(!l())return s("@keyframes missing '{'");for(var c=h();r=j();)c.push(r),c=c.concat(h());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):s("@keyframes missing '}'")}}()||function(){var e=i(),t=p(/^@media *([^{]+)/);if(t){var n=hu(t[1]);if(!l())return s("@media missing '{'");var r=h().concat(d());return u()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}}()||function(){var e=i(),t=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:hu(t[1]),media:hu(t[2])})}()||function(){var e=i(),t=p(/^@supports *([^{]+)/);if(t){var n=hu(t[1]);if(!l())return s("@supports missing '{'");var r=h().concat(d());return u()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}}()||k()||_()||S()||function(){var e=i(),t=p(/^@([-\w]+)?document *([^{]+)/);if(t){var n=hu(t[1]),r=hu(t[2]);if(!l())return s("@document missing '{'");var o=h().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):s("@document missing '}'")}}()||function(){var e=i();if(p(/^@page */)){var t=v()||[];if(!l())return s("@page missing '{'");for(var n,r=h();n=O();)r.push(n),r=r.concat(h());return u()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}}()||function(){var e=i();if(p(/^@host\s*/)){if(!l())return s("@host missing '{'");var t=h().concat(d());return u()?e({type:"host",rules:t}):s("@host missing '}'")}}()||function(){var e=i();if(p(/^@font-face\s*/)){if(!l())return s("@font-face missing '{'");for(var t,n=h();t=O();)n.push(t),n=n.concat(h());return u()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}}()}function w(){var e=i(),t=v();return t?(h(),e({type:"rule",selectors:t,declarations:g()})):s("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type;var o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach(function(t){e(t,o)}):c&&"object"===Object(f.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((y=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:y,parsingErrors:a}}))};function hu(e){return e?e.replace(/^\s+|\s+$/g,""):""}var mu=n(100),vu=n.n(mu),Ou=gu;function gu(e){this.options=e||{}}gu.prototype.emit=function(e){return e},gu.prototype.visit=function(e){return this[e.type](e)},gu.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(b.a)({},n,{selectors:n.selectors.map(function(n){return Object(v.includes)(t,n.trim())?n:n.match(Bu)?n.replace(/^(body|html|:root)/,e):e+" "+n})}):n}},xu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(v.map)(e,function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Iu(t)),r&&o.push(Pu(r)),o.length?Eu(n,Object(Ir.compose)(o)):n})};function Au(){return(Au=Object(dt.a)(regeneratorRuntime.mark(function e(t){var n,r,o,i,c,a,s,l,u,p,f,h,m,O,g,j,y,k,_,S,E,C,w,T,P,I,x,A,L;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.allowedTypes,r=t.additionalData,o=void 0===r?{}:r,i=t.filesList,c=t.maxUploadFileSize,a=t.onError,s=void 0===a?v.noop:a,l=t.onFileChange,u=t.wpAllowedMimeTypes,p=void 0===u?null:u,f=Object(B.a)(i),h=[],m=function(e,t){Object(Ec.revokeBlobURL)(Object(v.get)(h,[e,"url"])),h[e]=t,l(Object(v.compact)(h))},O=function(e){return!n||Object(v.some)(n,function(t){return Object(v.includes)(t,"/")?t===e:Object(v.startsWith)(e,"".concat(t,"/"))})},g=(N=p)?Object(v.flatMap)(N,function(e,t){var n=e.split("/"),r=Object(d.a)(n,1)[0],o=t.split("|");return[e].concat(Object(B.a)(Object(v.map)(o,function(e){return"".concat(r,"/").concat(e)})))}):N,j=function(e){return Object(v.includes)(g,e)},y=function(e){e.message=[Object(Tr.createElement)("strong",{key:"filename"},e.file.name),": ",e.message],s(e)},k=[],_=!0,S=!1,E=void 0,e.prev=12,C=f[Symbol.iterator]();case 14:if(_=(w=C.next()).done){e.next=34;break}if(T=w.value,!g||j(T.type)){e.next=19;break}return y({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(Q.__)("Sorry, this file type is not permitted for security reasons."),file:T}),e.abrupt("continue",31);case 19:if(O(T.type)){e.next=22;break}return y({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(Q.__)("Sorry, this file type is not supported here."),file:T}),e.abrupt("continue",31);case 22:if(!(c&&T.size>c)){e.next=25;break}return y({code:"SIZE_ABOVE_LIMIT",message:Object(Q.__)("This file exceeds the maximum upload size for this site."),file:T}),e.abrupt("continue",31);case 25:if(!(T.size<=0)){e.next=28;break}return y({code:"EMPTY_FILE",message:Object(Q.__)("This file is empty."),file:T}),e.abrupt("continue",31);case 28:k.push(T),h.push({url:Object(Ec.createBlobURL)(T)}),l(h);case 31:_=!0,e.next=14;break;case 34:e.next=40;break;case 36:e.prev=36,e.t0=e.catch(12),S=!0,E=e.t0;case 40:e.prev=40,e.prev=41,_||null==C.return||C.return();case 43:if(e.prev=43,!S){e.next=46;break}throw E;case 46:return e.finish(43);case 47:return e.finish(40);case 48:P=0;case 49:if(!(P1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Fu:[],!r||!0===e&&!n?v.without.apply(void 0,[t].concat(Mu)):t}var Hu=Object(Ir.createHigherOrderComponent)(function(e){return function(t){var n=t.name,r=Uu(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(Tr.createElement)(lo,{key:"align-controls"},Object(Tr.createElement)(oo,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(v.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(Tr.createElement)(e,Object(wr.a)({key:"edit"},t))]}},"withToolbarControls"),Vu=Object(Ir.createHigherOrderComponent)(Object(Ir.compose)([Object(u.withSelect)(function(e){return{hasWideEnabled:!!(0,e("core/block-editor").getSettings)().alignWide}}),function(e){return function(t){var n=t.name,r=t.attributes,o=t.hasWideEnabled,i=r.align,a=Uu(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),s=t.wrapperProps;return Object(v.includes)(a,i)&&(s=Object(b.a)({},s,{"data-align":i})),Object(Tr.createElement)(e,Object(wr.a)({},t,{wrapperProps:s}))}}]));Object(xr.addFilter)("blocks.registerBlockType","core/align/addAttribute",function(e){return Object(v.has)(e.attributes,["align","type"])?e:(Object(c.hasBlockSupport)(e,"align")&&(e.attributes=Object(v.assign)(e.attributes,{align:{type:"string"}})),e)}),Object(xr.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Vu),Object(xr.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Hu),Object(xr.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",function(e,t,n){var r=n.align,o=Object(c.getBlockSupport)(t,"align"),i=Object(c.hasBlockSupport)(t,"alignWide",!0);return Object(v.includes)(Uu(o,i),r)&&(e.className=Br()("align".concat(r),e.className)),e});var Wu=/[\s#]/g;var zu=Object(Ir.createHigherOrderComponent)(function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(e,t),Object(Tr.createElement)(dc,null,Object(Tr.createElement)(Mr.TextControl,{label:Object(Q.__)("HTML Anchor"),help:Object(Q.__)("Anchors lets you link directly to a section on a page."),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Wu,"-"),t.setAttributes({anchor:e})}}))):Object(Tr.createElement)(e,t)}},"withInspectorControl");Object(xr.addFilter)("blocks.registerBlockType","core/anchor/attribute",function(e){return Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(v.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e}),Object(xr.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",zu),Object(xr.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",function(e,t,n){return Object(c.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e});var Ku=Object(Ir.createHigherOrderComponent)(function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(Tr.createElement)(Tr.Fragment,null,Object(Tr.createElement)(e,t),Object(Tr.createElement)(dc,null,Object(Tr.createElement)(Mr.TextControl,{label:Object(Q.__)("Additional CSS Class"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})}}))):Object(Tr.createElement)(e,t)}},"withInspectorControl");function qu(e){e="
    ".concat(e,"
    ");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(xr.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(v.assign)(e.attributes,{className:{type:"string"}})),e}),Object(xr.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Ku),Object(xr.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=Br()(e.className,n.className)),e}),Object(xr.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(v.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=qu(o),a=qu(n),s=Object(v.difference)(a,i);s.length?e.className=s.join(" "):o&&delete e.className}return e});var Gu=[Jr],$u=Object(v.once)(function(){return Object(u.dispatch)("core/editor").__experimentalFetchReusableBlocks()});Object(xr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",function(e,t){return e||(e=Gu.map(v.clone),t===Object(c.getDefaultBlockName)()&&(e.push(Object(v.clone)(Xr)),$u())),e}),Object(xr.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(v.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(B.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}),n.d(t,"Autocomplete",function(){return qr}),n.d(t,"AlignmentToolbar",function(){return eo}),n.d(t,"BlockAlignmentToolbar",function(){return oo}),n.d(t,"BlockControls",function(){return lo}),n.d(t,"BlockEdit",function(){return po}),n.d(t,"BlockFormatControls",function(){return vo}),n.d(t,"BlockNavigationDropdown",function(){return ko}),n.d(t,"BlockIcon",function(){return Gr}),n.d(t,"ColorPalette",function(){return So}),n.d(t,"withColorContext",function(){return _o}),n.d(t,"ContrastChecker",function(){return Do}),n.d(t,"InnerBlocks",function(){return cc}),n.d(t,"InspectorAdvancedControls",function(){return dc}),n.d(t,"InspectorControls",function(){return mc}),n.d(t,"PanelColorSettings",function(){return yc}),n.d(t,"PlainText",function(){return kc}),n.d(t,"RichText",function(){return Zc}),n.d(t,"RichTextShortcut",function(){return Lc}),n.d(t,"RichTextToolbarButton",function(){return Kc}),n.d(t,"RichTextInserterItem",function(){return qc}),n.d(t,"UnstableRichTextInputEvent",function(){return Gc}),n.d(t,"ServerSideRender",function(){return ea}),n.d(t,"MediaPlaceholder",function(){return ca}),n.d(t,"MediaUpload",function(){return ta}),n.d(t,"MediaUploadCheck",function(){return Jo}),n.d(t,"URLInput",function(){return la}),n.d(t,"URLInputButton",function(){return ua}),n.d(t,"URLPopover",function(){return na}),n.d(t,"AutosaveMonitor",function(){return pa}),n.d(t,"DocumentOutline",function(){return ga}),n.d(t,"DocumentOutlineCheck",function(){return ja}),n.d(t,"VisualEditorGlobalKeyboardShortcuts",function(){return Pa}),n.d(t,"EditorGlobalKeyboardShortcuts",function(){return Ba}),n.d(t,"TextEditorGlobalKeyboardShortcuts",function(){return Ia}),n.d(t,"EditorHistoryRedo",function(){return xa}),n.d(t,"EditorHistoryUndo",function(){return Aa}),n.d(t,"EditorNotices",function(){return Na}),n.d(t,"PageAttributesCheck",function(){return Da}),n.d(t,"PageAttributesOrder",function(){return Ma}),n.d(t,"PageAttributesParent",function(){return Wa}),n.d(t,"PageTemplate",function(){return za}),n.d(t,"PostAuthor",function(){return Ga}),n.d(t,"PostAuthorCheck",function(){return Ka}),n.d(t,"PostComments",function(){return $a}),n.d(t,"PostExcerpt",function(){return Ya}),n.d(t,"PostExcerptCheck",function(){return Qa}),n.d(t,"PostFeaturedImage",function(){return is}),n.d(t,"PostFeaturedImageCheck",function(){return Ja}),n.d(t,"PostFormat",function(){return ss}),n.d(t,"PostFormatCheck",function(){return cs}),n.d(t,"PostLastRevision",function(){return ps}),n.d(t,"PostLastRevisionCheck",function(){return ls}),n.d(t,"PostLockedModal",function(){return ms}),n.d(t,"PostPendingStatus",function(){return Os}),n.d(t,"PostPendingStatusCheck",function(){return vs}),n.d(t,"PostPingbacks",function(){return gs}),n.d(t,"PostPreviewButton",function(){return fs}),n.d(t,"PostPublishButton",function(){return ks}),n.d(t,"PostPublishButtonLabel",function(){return js}),n.d(t,"PostPublishPanel",function(){return Ks}),n.d(t,"PostSavedState",function(){return $s}),n.d(t,"PostSchedule",function(){return ws}),n.d(t,"PostScheduleCheck",function(){return Ys}),n.d(t,"PostScheduleLabel",function(){return Ts}),n.d(t,"PostSticky",function(){return Xs}),n.d(t,"PostStickyCheck",function(){return Qs}),n.d(t,"PostSwitchToDraftButton",function(){return qs}),n.d(t,"PostTaxonomies",function(){return tl}),n.d(t,"PostTaxonomiesCheck",function(){return nl}),n.d(t,"PostTextEditor",function(){return ol}),n.d(t,"PostTitle",function(){return bl}),n.d(t,"PostTrash",function(){return fl}),n.d(t,"PostTrashCheck",function(){return hl}),n.d(t,"PostTypeSupportCheck",function(){return Ra}),n.d(t,"PostVisibility",function(){return Es}),n.d(t,"PostVisibilityLabel",function(){return Cs}),n.d(t,"PostVisibilityCheck",function(){return ml}),n.d(t,"TableOfContents",function(){return jl}),n.d(t,"UnsavedChangesWarning",function(){return kl}),n.d(t,"WordCount",function(){return Ol}),n.d(t,"BlockInspector",function(){return Pl}),n.d(t,"BlockList",function(){return oc}),n.d(t,"BlockMover",function(){return Xo}),n.d(t,"BlockSelectionClearer",function(){return Il}),n.d(t,"BlockSettingsMenu",function(){return ql}),n.d(t,"_BlockSettingsMenuFirstItem",function(){return Hl}),n.d(t,"_BlockSettingsMenuPluginsExtension",function(){return Kl}),n.d(t,"BlockTitle",function(){return hi}),n.d(t,"BlockToolbar",function(){return Ql}),n.d(t,"CopyHandler",function(){return Jl}),n.d(t,"DefaultBlockAppender",function(){return tc}),n.d(t,"ErrorBoundary",function(){return Zl}),n.d(t,"Inserter",function(){return Mi}),n.d(t,"MultiBlocksSwitcher",function(){return Yl}),n.d(t,"MultiSelectScrollIntoView",function(){return tu}),n.d(t,"NavigableToolbar",function(){return ki}),n.d(t,"ObserveTyping",function(){return ou}),n.d(t,"PreserveScrollInReorder",function(){return cu}),n.d(t,"SkipToSelectedBlock",function(){return _l}),n.d(t,"Warning",function(){return ti}),n.d(t,"WritingFlow",function(){return uu}),n.d(t,"EditorProvider",function(){return Ru}),n.d(t,"blockAutocompleter",function(){return Xr}),n.d(t,"userAutocompleter",function(){return Jr}),n.d(t,"getColorClassName",function(){return Po}),n.d(t,"getColorObjectByAttributeValues",function(){return wo}),n.d(t,"getColorObjectByColorValue",function(){return To}),n.d(t,"createCustomColorsHOC",function(){return Lo}),n.d(t,"withColors",function(){return No}),n.d(t,"getFontSize",function(){return Ro}),n.d(t,"getFontSizeClass",function(){return Fo}),n.d(t,"FontSizePicker",function(){return Mo}),n.d(t,"withFontSizes",function(){return Uo}),n.d(t,"mediaUpload",function(){return Nu}),n.d(t,"cleanForSlug",function(){return ds}),n.d(t,"transformStyles",function(){return xu})}]); \ No newline at end of file +*/o=[t,e],void 0===(i="function"==typeof(r=function(t,e){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(t){return n.indexOf(t)>-1},get:function(t){return r[n.indexOf(t)]},set:function(t,e){-1===n.indexOf(t)&&(n.push(t),r.push(e))},delete:function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),r.splice(e,1))}}),i=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){i=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function s(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!o.has(t)){var e=null,n=null,r=null,s=function(){t.clientWidth!==n&&d()},a=function(e){window.removeEventListener("resize",s,!1),t.removeEventListener("input",d,!1),t.removeEventListener("keyup",d,!1),t.removeEventListener("autosize:destroy",a,!1),t.removeEventListener("autosize:update",d,!1),Object.keys(e).forEach(function(n){t.style[n]=e[n]}),o.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",a,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!1),t.addEventListener("input",d,!1),t.addEventListener("autosize:update",d,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",o.set(t,{destroy:a,update:d}),"vertical"===(c=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===c.resize&&(t.style.resize="horizontal"),e="content-box"===c.boxSizing?-(parseFloat(c.paddingTop)+parseFloat(c.paddingBottom)):parseFloat(c.borderTopWidth)+parseFloat(c.borderBottomWidth),isNaN(e)&&(e=0),d()}var c;function u(e){var n=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=n,t.style.overflowY=e}function l(){if(0!==t.scrollHeight){var r=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),o=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+e+"px",n=t.clientWidth,r.forEach(function(t){t.node.scrollTop=t.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function d(){l();var e=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(o= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=u-l,_=Math.floor,k=String.fromCharCode;function E(t){throw new RangeError(y[t])}function S(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function P(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+S((t=t.replace(g,".")).split("."),e).join(".")}function w(t){for(var e,n,r=[],o=0,i=t.length;o=55296&&e<=56319&&o65535&&(e+=k((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=k(t)}).join("")}function C(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function x(t,e,n){var r=0;for(t=n?_(t/h):t>>1,t+=_(t/e);t>j*d>>1;r+=u)t=_(t/j);return _(r+(j+1)*t/(t+p))}function B(t){var e,n,r,o,i,s,a,p,h,v,O,g=[],y=t.length,j=0,k=b,S=f;for((n=t.lastIndexOf(m))<0&&(n=0),r=0;r=128&&E("not-basic"),g.push(t.charCodeAt(r));for(o=n>0?n+1:0;o=y&&E("invalid-input"),((p=(O=t.charCodeAt(o++))-48<10?O-22:O-65<26?O-65:O-97<26?O-97:u)>=u||p>_((c-j)/s))&&E("overflow"),j+=p*s,!(p<(h=a<=S?l:a>=S+d?d:a-S));a+=u)s>_(c/(v=u-h))&&E("overflow"),s*=v;S=x(j-i,e=g.length+1,0==i),_(j/e)>c-k&&E("overflow"),k+=_(j/e),j%=e,g.splice(j++,0,k)}return T(g)}function A(t){var e,n,r,o,i,s,a,p,h,v,O,g,y,j,S,P=[];for(g=(t=w(t)).length,e=b,n=0,i=f,s=0;s=e&&O_((c-n)/(y=r+1))&&E("overflow"),n+=(a-e)*y,e=a,s=0;sc&&E("overflow"),O==e){for(p=n,h=u;!(p<(v=h<=i?l:h>=i+d?d:h-i));h+=u)S=p-v,j=u-v,P.push(k(C(v+S%j,0))),p=_(S/j);P.push(k(C(p,0))),i=x(n,y,r==o),n=0,++r}++n,++e}return P.join("")}a={version:"1.4.1",ucs2:{decode:w,encode:T},decode:B,encode:A,toASCII:function(t){return P(t,function(t){return O.test(t)?"xn--"+A(t):t})},toUnicode:function(t){return P(t,function(t){return v.test(t)?B(t.slice(4).toLowerCase()):t})}},void 0===(o=function(){return a}.call(e,n,e,t))||(t.exports=o)}()}).call(this,n(118)(t),n(59))},118:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},119:function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},12:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},120:function(t,e,n){"use strict";e.decode=e.parse=n(121),e.encode=e.stringify=n(122)},121:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var l=0;l=0?(d=b.substr(0,m),p=b.substr(m+1)):(d=b,p=""),h=decodeURIComponent(d),f=decodeURIComponent(p),r(s,h)?o(s[h])?s[h].push(f):s[h]=[s[h],f]:s[h]=f}return s};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},122:function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?i(s(t),function(s){var a=encodeURIComponent(r(s))+n;return o(t[s])?i(t[s],function(t){return a+encodeURIComponent(r(t))}).join(e):a+encodeURIComponent(r(t[s]))}).join(e):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",function(){return r})},227:function(t,e){var n=t.exports=function(t){return new r(t)};function r(t){this.value=t}function o(t,e,n){var r=[],o=[],a=!0;return function t(d){var p=n?i(d):d,h={},f=!0,b={node:p,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){b.isRoot||(b.parent.node[b.key]=t),b.node=t,e&&(f=!1)},delete:function(t){delete b.parent.node[b.key],t&&(f=!1)},remove:function(t){c(b.parent.node)?b.parent.node.splice(b.key,1):delete b.parent.node[b.key],t&&(f=!1)},keys:null,before:function(t){h.before=t},after:function(t){h.after=t},pre:function(t){h.pre=t},post:function(t){h.post=t},stop:function(){a=!1},block:function(){f=!1}};if(!a)return b;function m(){if("object"==typeof b.node&&null!==b.node){b.keys&&b.node_===b.node||(b.keys=s(b.node)),b.isLeaf=0==b.keys.length;for(var t=0;t=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["optimist"])}}return{optimist:a,innerState:t}}t.exports=function(t){function e(e,n,o){return e.length&&(e=e.concat([{action:o}])),u(n=t(n,o),o),r({optimist:e},n)}return function(n,a){if(a.optimist)switch(a.optimist.type){case o:return function(e,n){var o=l(e),i=o.optimist,s=o.innerState;return i=i.concat([{beforeState:s,action:n}]),u(s=t(s,n),n),r({optimist:i},s)}(n,a);case i:return function(t,n){var r=l(t),o=r.optimist,i=r.innerState,s=[],a=!1,u=!1;o.forEach(function(t){a?t.beforeState&&c(t.action,n.optimist.id)?(u=!0,s.push({action:t.action})):s.push(t):t.beforeState&&!c(t.action,n.optimist.id)?(a=!0,s.push(t)):t.beforeState&&c(t.action,n.optimist.id)&&(u=!0)}),u||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist');return e(o=s,i,n)}(n,a);case s:return function(n,r){var o=l(n),i=o.optimist,s=o.innerState,a=[],d=!1,p=!1,h=s;i.forEach(function(e){e.beforeState&&c(e.action,r.optimist.id)&&(h=e.beforeState,p=!0),c(e.action,r.optimist.id)||(e.beforeState&&(d=!0),d&&(p&&e.beforeState?a.push({beforeState:h,action:e.action}):a.push(e)),p&&(h=t(h,e.action),u(s,r)))}),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist');return e(i=a,h,r)}(n,a)}var d=l(n),p=d.optimist,h=d.innerState;if(n&&!p.length){var f=t(h,a);return f===h?n:(u(f,a),r({optimist:p},f))}return e(p,h,a)}},t.exports.BEGIN=o,t.exports.COMMIT=i,t.exports.REVERT=s},35:function(t,e){!function(){t.exports=this.wp.blob}()},358:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"setupEditor",function(){return it}),n.d(r,"resetPost",function(){return st}),n.d(r,"resetAutosave",function(){return at}),n.d(r,"__experimentalRequestPostUpdateStart",function(){return ct}),n.d(r,"__experimentalRequestPostUpdateSuccess",function(){return ut}),n.d(r,"__experimentalRequestPostUpdateFailure",function(){return lt}),n.d(r,"updatePost",function(){return dt}),n.d(r,"setupEditorState",function(){return pt}),n.d(r,"editPost",function(){return ht}),n.d(r,"__experimentalOptimisticUpdatePost",function(){return ft}),n.d(r,"savePost",function(){return bt}),n.d(r,"refreshPost",function(){return mt}),n.d(r,"trashPost",function(){return vt}),n.d(r,"autosave",function(){return Ot}),n.d(r,"redo",function(){return gt}),n.d(r,"undo",function(){return yt}),n.d(r,"createUndoLevel",function(){return jt}),n.d(r,"updatePostLock",function(){return _t}),n.d(r,"__experimentalFetchReusableBlocks",function(){return kt}),n.d(r,"__experimentalReceiveReusableBlocks",function(){return Et}),n.d(r,"__experimentalSaveReusableBlock",function(){return St}),n.d(r,"__experimentalDeleteReusableBlock",function(){return Pt}),n.d(r,"__experimentalUpdateReusableBlockTitle",function(){return wt}),n.d(r,"__experimentalConvertBlockToStatic",function(){return Tt}),n.d(r,"__experimentalConvertBlockToReusable",function(){return Ct}),n.d(r,"enablePublishSidebar",function(){return xt}),n.d(r,"disablePublishSidebar",function(){return Bt}),n.d(r,"lockPostSaving",function(){return At}),n.d(r,"unlockPostSaving",function(){return It}),n.d(r,"resetEditorBlocks",function(){return Lt}),n.d(r,"updateEditorSettings",function(){return Rt}),n.d(r,"resetBlocks",function(){return Ut}),n.d(r,"receiveBlocks",function(){return Dt}),n.d(r,"updateBlock",function(){return Ft}),n.d(r,"updateBlockAttributes",function(){return Mt}),n.d(r,"selectBlock",function(){return Vt}),n.d(r,"startMultiSelect",function(){return zt}),n.d(r,"stopMultiSelect",function(){return Kt}),n.d(r,"multiSelect",function(){return qt}),n.d(r,"clearSelectedBlock",function(){return Wt}),n.d(r,"toggleSelection",function(){return Ht}),n.d(r,"replaceBlocks",function(){return Gt}),n.d(r,"moveBlocksDown",function(){return Qt}),n.d(r,"moveBlocksUp",function(){return Yt}),n.d(r,"moveBlockToPosition",function(){return $t}),n.d(r,"insertBlock",function(){return Xt}),n.d(r,"insertBlocks",function(){return Zt}),n.d(r,"showInsertionPoint",function(){return Jt}),n.d(r,"hideInsertionPoint",function(){return te}),n.d(r,"setTemplateValidity",function(){return ee}),n.d(r,"synchronizeTemplate",function(){return ne}),n.d(r,"mergeBlocks",function(){return re}),n.d(r,"removeBlocks",function(){return oe}),n.d(r,"removeBlock",function(){return ie}),n.d(r,"toggleBlockMode",function(){return se}),n.d(r,"startTyping",function(){return ae}),n.d(r,"stopTyping",function(){return ce}),n.d(r,"enterFormattedText",function(){return ue}),n.d(r,"exitFormattedText",function(){return le}),n.d(r,"insertDefaultBlock",function(){return de}),n.d(r,"updateBlockListSettings",function(){return pe});var o={};n.r(o),n.d(o,"hasEditorUndo",function(){return Oe}),n.d(o,"hasEditorRedo",function(){return ge}),n.d(o,"isEditedPostNew",function(){return ye}),n.d(o,"hasChangedContent",function(){return je}),n.d(o,"isEditedPostDirty",function(){return _e}),n.d(o,"isCleanNewPost",function(){return ke}),n.d(o,"getCurrentPost",function(){return Ee}),n.d(o,"getCurrentPostType",function(){return Se}),n.d(o,"getCurrentPostId",function(){return Pe}),n.d(o,"getCurrentPostRevisionsCount",function(){return we}),n.d(o,"getCurrentPostLastRevisionId",function(){return Te}),n.d(o,"getPostEdits",function(){return Ce}),n.d(o,"getReferenceByDistinctEdits",function(){return xe}),n.d(o,"getCurrentPostAttribute",function(){return Be}),n.d(o,"getEditedPostAttribute",function(){return Ie}),n.d(o,"getAutosaveAttribute",function(){return Le}),n.d(o,"getEditedPostVisibility",function(){return Re}),n.d(o,"isCurrentPostPending",function(){return Ne}),n.d(o,"isCurrentPostPublished",function(){return Ue}),n.d(o,"isCurrentPostScheduled",function(){return De}),n.d(o,"isEditedPostPublishable",function(){return Fe}),n.d(o,"isEditedPostSaveable",function(){return Me}),n.d(o,"isEditedPostEmpty",function(){return Ve}),n.d(o,"isEditedPostAutosaveable",function(){return ze}),n.d(o,"getAutosave",function(){return Ke}),n.d(o,"hasAutosave",function(){return qe}),n.d(o,"isEditedPostBeingScheduled",function(){return We}),n.d(o,"isEditedPostDateFloating",function(){return He}),n.d(o,"isSavingPost",function(){return Ge}),n.d(o,"didPostSaveRequestSucceed",function(){return Qe}),n.d(o,"didPostSaveRequestFail",function(){return Ye}),n.d(o,"isAutosavingPost",function(){return $e}),n.d(o,"isPreviewingPost",function(){return Xe}),n.d(o,"getEditedPostPreviewLink",function(){return Ze}),n.d(o,"getSuggestedPostFormat",function(){return Je}),n.d(o,"getBlocksForSerialization",function(){return tn}),n.d(o,"getEditedPostContent",function(){return en}),n.d(o,"__experimentalGetReusableBlock",function(){return nn}),n.d(o,"__experimentalIsSavingReusableBlock",function(){return rn}),n.d(o,"__experimentalIsFetchingReusableBlock",function(){return on}),n.d(o,"__experimentalGetReusableBlocks",function(){return sn}),n.d(o,"getStateBeforeOptimisticTransaction",function(){return an}),n.d(o,"isPublishingPost",function(){return cn}),n.d(o,"isPermalinkEditable",function(){return un}),n.d(o,"getPermalink",function(){return ln}),n.d(o,"getPermalinkParts",function(){return dn}),n.d(o,"inSomeHistory",function(){return pn}),n.d(o,"isPostLocked",function(){return hn}),n.d(o,"isPostSavingLocked",function(){return fn}),n.d(o,"isPostLockTakeover",function(){return bn}),n.d(o,"getPostLockUser",function(){return mn}),n.d(o,"getActivePostLock",function(){return vn}),n.d(o,"canUserUseUnfilteredHTML",function(){return On}),n.d(o,"isPublishSidebarEnabled",function(){return gn}),n.d(o,"getEditorBlocks",function(){return yn}),n.d(o,"__unstableIsEditorReady",function(){return jn}),n.d(o,"getEditorSettings",function(){return _n}),n.d(o,"getBlockDependantsCacheBust",function(){return En}),n.d(o,"getBlockName",function(){return Sn}),n.d(o,"isBlockValid",function(){return Pn}),n.d(o,"getBlockAttributes",function(){return wn}),n.d(o,"getBlock",function(){return Tn}),n.d(o,"getBlocks",function(){return Cn}),n.d(o,"__unstableGetBlockWithoutInnerBlocks",function(){return xn}),n.d(o,"getClientIdsOfDescendants",function(){return Bn}),n.d(o,"getClientIdsWithDescendants",function(){return An}),n.d(o,"getGlobalBlockCount",function(){return In}),n.d(o,"getBlocksByClientId",function(){return Ln}),n.d(o,"getBlockCount",function(){return Rn}),n.d(o,"getBlockSelectionStart",function(){return Nn}),n.d(o,"getBlockSelectionEnd",function(){return Un}),n.d(o,"getSelectedBlockCount",function(){return Dn}),n.d(o,"hasSelectedBlock",function(){return Fn}),n.d(o,"getSelectedBlockClientId",function(){return Mn}),n.d(o,"getSelectedBlock",function(){return Vn}),n.d(o,"getBlockRootClientId",function(){return zn}),n.d(o,"getBlockHierarchyRootClientId",function(){return Kn}),n.d(o,"getAdjacentBlockClientId",function(){return qn}),n.d(o,"getPreviousBlockClientId",function(){return Wn}),n.d(o,"getNextBlockClientId",function(){return Hn}),n.d(o,"getSelectedBlocksInitialCaretPosition",function(){return Gn}),n.d(o,"getMultiSelectedBlockClientIds",function(){return Qn}),n.d(o,"getMultiSelectedBlocks",function(){return Yn}),n.d(o,"getFirstMultiSelectedBlockClientId",function(){return $n}),n.d(o,"getLastMultiSelectedBlockClientId",function(){return Xn}),n.d(o,"isFirstMultiSelectedBlock",function(){return Zn}),n.d(o,"isBlockMultiSelected",function(){return Jn}),n.d(o,"isAncestorMultiSelected",function(){return tr}),n.d(o,"getMultiSelectedBlocksStartClientId",function(){return er}),n.d(o,"getMultiSelectedBlocksEndClientId",function(){return nr}),n.d(o,"getBlockOrder",function(){return rr}),n.d(o,"getBlockIndex",function(){return or}),n.d(o,"isBlockSelected",function(){return ir}),n.d(o,"hasSelectedInnerBlock",function(){return sr}),n.d(o,"isBlockWithinSelection",function(){return ar}),n.d(o,"hasMultiSelection",function(){return cr}),n.d(o,"isMultiSelecting",function(){return ur}),n.d(o,"isSelectionEnabled",function(){return lr}),n.d(o,"getBlockMode",function(){return dr}),n.d(o,"isTyping",function(){return pr}),n.d(o,"isCaretWithinFormattedText",function(){return hr}),n.d(o,"getBlockInsertionPoint",function(){return fr}),n.d(o,"isBlockInsertionPointVisible",function(){return br}),n.d(o,"isValidTemplate",function(){return mr}),n.d(o,"getTemplate",function(){return vr}),n.d(o,"getTemplateLock",function(){return Or}),n.d(o,"canInsertBlockType",function(){return gr}),n.d(o,"getInserterItems",function(){return yr}),n.d(o,"hasInserterItems",function(){return jr}),n.d(o,"getBlockListSettings",function(){return _r});var i=n(8),s=n(14),a=(n(72),n(133),n(60)),c=n(20),u=n(40),l=n(5),d=n(28),p=n(15),h=n(7),f=n(32),b=n(62),m=n.n(b),v=n(2),O=n(23),g={isPublishSidebarEnabled:!0},y={},j=Object(h.a)({},i.SETTINGS_DEFAULTS,{richEditingEnabled:!0,enableCustomFields:!1}),_=new Set(["meta"]),k="core/editor",E="post-update",S="SAVE_POST_NOTICE_ID",P="TRASH_POST_NOTICE_ID",w=/%(?:postname|pagename)%/,T=6e4,C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){return function(n,r){var o=e(n,r),i=void 0===n||Object(v.includes)(t.resetTypes,r.type),s=n!==o;if(!s&&!i)return n;s&&void 0!==n||(o=Object(h.a)({},o));var a=Object(v.includes)(t.ignoreTypes,r.type);return o.isDirty=a?n.isDirty:!i&&s,o}}},x=n(17),B={resetTypes:[],ignoreTypes:[],shouldOverwriteState:function(){return!1}},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){(t=Object(h.a)({},B,t)).shouldOverwriteState=Object(v.overSome)([t.shouldOverwriteState,function(e){return Object(v.includes)(t.ignoreTypes,e.type)}]);var n={past:[],present:e(void 0,{}),future:[],lastAction:null,shouldCreateUndoLevel:!1},r=t,o=r.resetTypes,i=void 0===o?[]:o,s=r.shouldOverwriteState,a=void 0===s?function(){return!1}:s;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,r=arguments.length>1?arguments[1]:void 0,o=t.past,s=t.present,c=t.future,u=t.lastAction,l=t.shouldCreateUndoLevel,d=u;switch(r.type){case"UNDO":return o.length?{past:Object(v.dropRight)(o),present:Object(v.last)(o),future:[s].concat(Object(x.a)(c)),lastAction:null,shouldCreateUndoLevel:!1}:t;case"REDO":return c.length?{past:[].concat(Object(x.a)(o),[s]),present:Object(v.first)(c),future:Object(v.drop)(c),lastAction:null,shouldCreateUndoLevel:!1}:t;case"CREATE_UNDO_LEVEL":return Object(h.a)({},t,{lastAction:null,shouldCreateUndoLevel:!0})}var p=e(s,r);if(Object(v.includes)(i,r.type))return{past:[],present:p,future:[],lastAction:null,shouldCreateUndoLevel:!1};if(s===p)return t;var f=o,b=d;return!l&&o.length&&a(r,d)||(f=[].concat(Object(x.a)(o),[s]),b=r),{past:f,present:p,future:[],shouldCreateUndoLevel:!1,lastAction:b}}}};function I(t){return t&&"object"===Object(f.a)(t)&&"raw"in t?t.raw:t}function L(t,e){return t===e?Object(h.a)({},t):e}function R(t,e){return"EDIT_POST"===t.type&&(n=t.edits,r=e.edits,Object(v.isEqual)(Object(v.keys)(n),Object(v.keys)(r)));var n,r}var N=Object(v.flow)([l.combineReducers,A({resetTypes:["SETUP_EDITOR_STATE"],ignoreTypes:["RESET_POST","UPDATE_POST"],shouldOverwriteState:function(t,e){return"RESET_EDITOR_BLOCKS"===t.type?!t.shouldCreateUndoLevel:!(!e||t.type!==e.type)&&R(t,e)}})])({blocks:C({resetTypes:["SETUP_EDITOR_STATE","REQUEST_POST_UPDATE_START"]})(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{value:[]},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RESET_EDITOR_BLOCKS":return e.blocks===t.value?t:{value:e.blocks}}return t}),edits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"EDIT_POST":return Object(v.reduce)(e.edits,function(e,n,r){return n!==t[r]&&(e=L(t,e),_.has(r)?e[r]=Object(h.a)({},e[r],n):e[r]=n),e},t);case"UPDATE_POST":case"RESET_POST":var n="UPDATE_POST"===e.type?function(t){return e.edits[t]}:function(t){return I(e.post[t])};return Object(v.reduce)(t,function(e,r,o){return Object(v.isEqual)(r,n(o))?(delete(e=L(t,e))[o],e):e},t);case"RESET_EDITOR_BLOCKS":return"content"in t?Object(v.omit)(t,"content"):t}return t}});var U=Object(l.combineReducers)({data:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(v.reduce)(e.results,function(e,n){var r=n.reusableBlock,o=r.id,i=r.title,s={clientId:n.parsedBlock.clientId,title:i};return Object(v.isEqual)(e[o],s)||((e=L(t,e))[o]=s),e},t);case"UPDATE_REUSABLE_BLOCK_TITLE":var n=e.id,r=e.title;return t[n]&&t[n].title!==r?Object(h.a)({},t,Object(p.a)({},n,Object(h.a)({},t[n],{title:r}))):t;case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=e.id,i=e.updatedId;if(o===i)return t;var s=t[o];return Object(h.a)({},Object(v.omit)(t,o),Object(p.a)({},i,s));case"REMOVE_REUSABLE_BLOCK":var a=e.id;return Object(v.omit)(t,a)}return t},isFetching:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"FETCH_REUSABLE_BLOCKS":var n=e.id;return n?Object(h.a)({},t,Object(p.a)({},n,!0)):t;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=e.id;return Object(v.omit)(t,r)}return t},isSaving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SAVE_REUSABLE_BLOCK":return Object(h.a)({},t,Object(p.a)({},e.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=e.id;return Object(v.omit)(t,n)}return t}});var D=m()(Object(l.combineReducers)({editor:N,initialEdits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SETUP_EDITOR":if(!e.edits)break;return e.edits;case"SETUP_EDITOR_STATE":return"content"in t?Object(v.omit)(t,"content"):t;case"UPDATE_POST":return Object(v.reduce)(e.edits,function(e,n,r){return e.hasOwnProperty(r)?(delete(e=L(t,e))[r],e):e},t);case"RESET_POST":return y}return t},currentPost:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":var n;if(e.post)n=e.post;else{if(!e.edits)return t;n=Object(h.a)({},t,e.edits)}return Object(v.mapValues)(n,I)}return t},preferences:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;switch((arguments.length>1?arguments[1]:void 0).type){case"ENABLE_PUBLISH_SIDEBAR":return Object(h.a)({},t,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(h.a)({},t,{isPublishSidebarEnabled:!1})}return t},saving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REQUEST_POST_UPDATE_START":return{requesting:!0,successful:!1,error:null,options:e.options||{}};case"REQUEST_POST_UPDATE_SUCCESS":return{requesting:!1,successful:!0,error:null,options:e.options||{}};case"REQUEST_POST_UPDATE_FAILURE":return{requesting:!1,successful:!1,error:e.error,options:e.options||{}}}return t},postLock:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"UPDATE_POST_LOCK":return e.lock}return t},reusableBlocks:U,template:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_TEMPLATE_VALIDITY":return Object(h.a)({},t,{isValid:e.isValid})}return t},autosave:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RESET_AUTOSAVE":var n=e.post,r=["title","excerpt","content"].map(function(t){return I(n[t])}),o=Object(d.a)(r,3);return{title:o[0],excerpt:o[1],content:o[2]}}return t},previewLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REQUEST_POST_UPDATE_SUCCESS":return e.post.preview_link?e.post.preview_link:e.post.link?Object(O.addQueryArgs)(e.post.link,{preview:!0}):t;case"REQUEST_POST_UPDATE_START":if(t&&e.options.isPreview)return null}return t},postSavingLock:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"LOCK_POST_SAVING":return Object(h.a)({},t,Object(p.a)({},e.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(t,e.lockName)}return t},isReady:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"SETUP_EDITOR_STATE":return!0}return t},editorSettings:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"UPDATE_EDITOR_SETTINGS":return Object(h.a)({},t,e.settings)}return t}})),F=n(70),M=n.n(F),V=n(97),z=n.n(V),K=n(26),q=n.n(K),W=n(33),H=n.n(W);function G(t){return{type:"API_FETCH",request:t}}function Q(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o2?n-2:0),o=2;o2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",optimist:{type:b.BEGIN,id:E},options:t}}function ut(t){var e=t.previousPost,n=t.post,r=t.isRevision,o=t.options,i=t.postType;return{type:"REQUEST_POST_UPDATE_SUCCESS",previousPost:e,post:n,optimist:{type:r?b.REVERT:b.COMMIT,id:E},options:o,postType:i}}function lt(t){var e=t.post,n=t.edits,r=t.error,o=t.options;return{type:"REQUEST_POST_UPDATE_FAILURE",optimist:{type:b.REVERT,id:E},post:e,edits:n,error:r,options:o}}function dt(t){return{type:"UPDATE_POST",edits:t}}function pt(t){return{type:"SETUP_EDITOR_STATE",post:t}}function ht(t){return{type:"EDIT_POST",edits:t}}function ft(t){return Object(h.a)({},dt(t),{optimist:{id:E}})}function bt(){var t,e,n,r,o,i,s,a,c,u,l,d,p,f,b,m=arguments;return q.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:{},O.next=3,Q(k,"isEditedPostSaveable");case 3:if(O.sent){O.next=6;break}return O.abrupt("return");case 6:return O.next=8,Q(k,"getPostEdits");case 8:return e=O.sent,(n=!!t.isAutosave)&&(e=Object(v.pick)(e,["title","content","excerpt"])),O.next=13,Q(k,"isEditedPostNew");case 13:return O.sent&&(e=Object(h.a)({status:"draft"},e)),O.next=17,Q(k,"getCurrentPost");case 17:return r=O.sent,O.next=20,Q(k,"getEditedPostContent");case 20:return o=O.sent,i=Object(h.a)({},e,{content:o,id:r.id}),O.next=24,Q(k,"getCurrentPostType");case 24:return s=O.sent,O.next=27,Y("core","getPostType",s);case 27:return a=O.sent,O.next=30,$(k,"__experimentalRequestPostUpdateStart",t);case 30:return O.next=32,$(k,"__experimentalOptimisticUpdatePost",i);case 32:if(c="/wp/v2/".concat(a.rest_base,"/").concat(r.id),u="PUT",!n){O.next=43;break}return O.next=37,Q(k,"getAutosave");case 37:l=O.sent,i=Object(h.a)({},Object(v.pick)(r,["title","content","excerpt"]),l,i),c+="/autosaves",u="POST",O.next=47;break;case 43:return O.next=45,$("core/notices","removeNotice",S);case 45:return O.next=47,$("core/notices","removeNotice","autosave-exists");case 47:return O.prev=47,O.next=50,G({path:c,method:u,data:i});case 50:return d=O.sent,p=n?"resetAutosave":"resetPost",O.next=54,$(k,p,d);case 54:return O.next=56,$(k,"__experimentalRequestPostUpdateSuccess",{previousPost:r,post:d,options:t,postType:a,isRevision:d.id!==r.id});case 56:if(!((f=J({previousPost:r,post:d,postType:a,options:t})).length>0)){O.next=60;break}return O.next=60,$.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(x.a)(f)));case 60:O.next=70;break;case 62:return O.prev=62,O.t0=O.catch(47),O.next=66,$(k,"__experimentalRequestPostUpdateFailure",{post:r,edits:e,error:O.t0,options:t});case 66:if(!((b=tt({post:r,edits:e,error:O.t0})).length>0)){O.next=70;break}return O.next=70,$.apply(void 0,["core/notices","createErrorNotice"].concat(Object(x.a)(b)));case 70:case"end":return O.stop()}},et,this,[[47,62]])}function mt(){var t,e,n,r;return q.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Q(k,"getCurrentPost");case 2:return t=o.sent,o.next=5,Q(k,"getCurrentPostType");case 5:return e=o.sent,o.next=8,Y("core","getPostType",e);case 8:return n=o.sent,o.next=11,G({path:"/wp/v2/".concat(n.rest_base,"/").concat(t.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,$(k,"resetPost",r);case 14:case"end":return o.stop()}},nt,this)}function vt(){var t,e,n;return q.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Q(k,"getCurrentPostType");case 2:return t=r.sent,r.next=5,Y("core","getPostType",t);case 5:return e=r.sent,r.next=8,$("core/notices","removeNotice",P);case 8:return r.prev=8,r.next=11,Q(k,"getCurrentPost");case 11:return n=r.sent,r.next=14,G({path:"/wp/v2/".concat(e.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,$(k,"resetPost",Object(h.a)({},n,{status:"trash"}));case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,$.apply(void 0,["core/notices","createErrorNotice"].concat(Object(x.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Z.__)("Trashing failed"),{id:P}])));case 22:case"end":return r.stop()}var o},rt,this,[[8,18]])}function Ot(t){return q.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$(k,"savePost",Object(h.a)({isAutosave:!0},t));case 2:case"end":return e.stop()}},ot,this)}function gt(){return{type:"REDO"}}function yt(){return{type:"UNDO"}}function jt(){return{type:"CREATE_UNDO_LEVEL"}}function _t(t){return{type:"UPDATE_POST_LOCK",lock:t}}function kt(t){return{type:"FETCH_REUSABLE_BLOCKS",id:t}}function Et(t){return{type:"RECEIVE_REUSABLE_BLOCKS",results:t}}function St(t){return{type:"SAVE_REUSABLE_BLOCK",id:t}}function Pt(t){return{type:"DELETE_REUSABLE_BLOCK",id:t}}function wt(t,e){return{type:"UPDATE_REUSABLE_BLOCK_TITLE",id:t,title:e}}function Tt(t){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:t}}function Ct(t){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(v.castArray)(t)}}function xt(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Bt(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function At(t){return{type:"LOCK_POST_SAVING",lockName:t}}function It(t){return{type:"UNLOCK_POST_SAVING",lockName:t}}function Lt(t){return{type:"RESET_EDITOR_BLOCKS",blocks:t,shouldCreateUndoLevel:!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).__unstableShouldCreateUndoLevel}}function Rt(t){return{type:"UPDATE_EDITOR_SETTINGS",settings:t}}var Nt=function(t){return q.a.mark(function e(){var n,r,o,i=arguments;return q.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=i.length,r=new Array(n),o=0;o0}function ge(t){return t.editor.future.length>0}function ye(t){return"auto-draft"===Ee(t).status}function je(t){return t.editor.present.blocks.isDirty||"content"in t.editor.present.edits}function _e(t){return!!je(t)||(Object.keys(t.editor.present.edits).length>0||pn(t,_e))}function ke(t){return!_e(t)&&ye(t)}function Ee(t){return t.currentPost}function Se(t){return t.currentPost.type}function Pe(t){return Ee(t).id||null}function we(t){return Object(v.get)(Ee(t),["_links","version-history",0,"count"],0)}function Te(t){return Object(v.get)(Ee(t),["_links","predecessor-version",0,"id"],null)}var Ce=Object(fe.a)(function(t){return Object(h.a)({},t.initialEdits,t.editor.present.edits)},function(t){return[t.editor.present.edits,t.initialEdits]}),xe=Object(fe.a)(function(){return[]},function(t){return[t.editor]});function Be(t,e){var n=Ee(t);if(n.hasOwnProperty(e))return n[e]}var Ae=Object(fe.a)(function(t,e){var n=Ce(t);return n.hasOwnProperty(e)?Object(h.a)({},Be(t,e),n[e]):Be(t,e)},function(t,e){return[Object(v.get)(t.editor.present.edits,[e],ve),Object(v.get)(t.currentPost,[e],ve)]});function Ie(t,e){switch(e){case"content":return en(t)}var n=Ce(t);return n.hasOwnProperty(e)?_.has(e)?Ae(t,e):n[e]:Be(t,e)}function Le(t,e){if(!qe(t))return null;var n=Ke(t);return n.hasOwnProperty(e)?n[e]:void 0}function Re(t){return"private"===Ie(t,"status")?"private":Ie(t,"password")?"password":"public"}function Ne(t){return"pending"===Ee(t).status}function Ue(t){var e=Ee(t);return-1!==["publish","private"].indexOf(e.status)||"future"===e.status&&!Object(be.isInTheFuture)(new Date(Number(Object(be.getDate)(e.date))-T))}function De(t){return"future"===Ee(t).status&&!Ue(t)}function Fe(t){var e=Ee(t);return _e(t)||-1===["publish","private","future"].indexOf(e.status)}function Me(t){return!Ge(t)&&(!!Ie(t,"title")||!!Ie(t,"excerpt")||!Ve(t))}function Ve(t){var e=t.editor.present.blocks.value;if(e.length&&!("content"in Ce(t))){if(e.length>1)return!1;var n=e[0].name;if(n!==Object(s.getDefaultBlockName)()&&n!==Object(s.getFreeformContentHandlerName)())return!1}return!en(t)}function ze(t){if(!Me(t))return!1;if(!qe(t))return!0;if(je(t))return!0;var e=Ke(t);return["title","excerpt"].some(function(n){return e[n]!==Ie(t,n)})}function Ke(t){return t.autosave}function qe(t){return!!Ke(t)}function We(t){var e=Ie(t,"date"),n=new Date(Number(Object(be.getDate)(e))-T);return Object(be.isInTheFuture)(n)}function He(t){var e=Ie(t,"date"),n=Ie(t,"modified"),r=Ie(t,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&e===n}function Ge(t){return t.saving.requesting}function Qe(t){return t.saving.successful}function Ye(t){return!!t.saving.error}function $e(t){return Ge(t)&&!!t.saving.options.isAutosave}function Xe(t){return Ge(t)&&!!t.saving.options.isPreview}function Ze(t){var e=Ie(t,"featured_media"),n=t.previewLink;return n&&e?Object(O.addQueryArgs)(n,{_thumbnail_id:e}):n}function Je(t){var e,n=t.editor.present.blocks.value;switch(1===n.length&&(e=n[0].name),2===n.length&&"core/paragraph"===n[1].name&&(e=n[0].name),e){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}function tn(t){var e=t.editor.present.blocks.value;return 1===e.length&&Object(s.isUnmodifiedDefaultBlock)(e[0])?[]:e}var en=Object(fe.a)(function(t){var e=Ce(t);if("content"in e)return e.content;var n=tn(t),r=Object(s.serialize)(n);return 1===n.length&&n[0].name===Object(s.getFreeformContentHandlerName)()?Object(me.removep)(r):r},function(t){return[t.editor.present.blocks.value,t.editor.present.edits.content,t.initialEdits.content]}),nn=Object(fe.a)(function(t,e){var n=t.reusableBlocks.data[e];if(!n)return null;var r=isNaN(parseInt(e));return Object(h.a)({},n,{id:r?e:+e,isTemporary:r})},function(t,e){return[t.reusableBlocks.data[e]]});function rn(t,e){return t.reusableBlocks.isSaving[e]||!1}function on(t,e){return!!t.reusableBlocks.isFetching[e]}var sn=Object(fe.a)(function(t){return Object(v.map)(t.reusableBlocks.data,function(e,n){return nn(t,n)})},function(t){return[t.reusableBlocks.data]});function an(t,e){var n=Object(v.find)(t.optimist,function(t){return t.beforeState&&Object(v.get)(t.action,["optimist","id"])===e});return n?n.beforeState:null}function cn(t){if(!Ge(t))return!1;if(!Ue(t))return!1;var e=an(t,E);return!!e&&!Ue(e)}function un(t){var e=Ie(t,"permalink_template");return w.test(e)}function ln(t){var e=dn(t);if(!e)return null;var n=e.prefix,r=e.postName,o=e.suffix;return un(t)?n+r+o:n}function dn(t){var e=Ie(t,"permalink_template");if(!e)return null;var n=Ie(t,"slug")||Ie(t,"generated_slug"),r=e.split(w),o=Object(d.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function pn(t,e){var n=t.optimist;return!!n&&n.some(function(t){var n=t.beforeState;return n&&e(n)})}function hn(t){return t.postLock.isLocked}function fn(t){return Object.keys(t.postSavingLock).length>0}function bn(t){return t.postLock.isTakeover}function mn(t){return t.postLock.user}function vn(t){return t.postLock.activePostLock}function On(t){return Object(v.has)(Ee(t),["_links","wp:action-unfiltered-html"])}function gn(t){return t.preferences.hasOwnProperty("isPublishSidebarEnabled")?t.preferences.isPublishSidebarEnabled:g.isPublishSidebarEnabled}function yn(t){return t.editor.present.blocks.value}function jn(t){return t.isReady}function _n(t){return t.editorSettings}function kn(t){return Object(l.createRegistrySelector)(function(e){return function(n){for(var r,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s0&&void 0!==arguments[0]?arguments[0]:{},e=t.getBlockInsertionParentClientId,n=void 0===e?Br:e,r=t.getInserterItems,o=void 0===r?Ar:r,a=t.getSelectedBlockName,c=void 0===a?Ir:a;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){var t=c();return o(n()).filter(function(e){return t!==e.name})},getOptionKeywords:function(t){var e=t.title,n=t.keywords,r=void 0===n?[]:n;return[t.category].concat(Object(x.a)(r),[e])},getOptionLabel:function(t){var e=t.icon,n=t.title;return[Object(xr.createElement)(i.BlockIcon,{key:"icon",icon:e,showColors:!0}),n]},allowContext:function(t,e){return!(/\S/.test(t)||/\S/.test(e))},getOptionCompletion:function(t){var e=t.name,n=t.initialAttributes;return{action:"replace",value:Object(s.createBlock)(e,n)}},isOptionDisabled:function(t){return t.isDisabled}}}(),Rr={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(t){var e="";return t&&(e="?search="+encodeURIComponent(t)),H()({path:"/wp/v2/users"+e})},isDebounced:!0,getOptionKeywords:function(t){return[t.slug,t.name]},getOptionLabel:function(t){return[Object(xr.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:t.avatar_urls[24]}),Object(xr.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},t.name),Object(xr.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},t.slug)]},getOptionCompletion:function(t){return"@".concat(t.slug)}},Nr=n(19),Ur=n(21),Dr=n(4),Fr=function(t){var e=t.urlQueryArgs,n=void 0===e?{}:e,r=Object(Ur.a)(t,["urlQueryArgs"]),o=Object(l.select)("core/editor").getCurrentPostId;return n=Object(h.a)({post_id:o()},n),Object(xr.createElement)(Dr.ServerSideRender,Object(Nr.a)({urlQueryArgs:n},r))},Mr=n(10),Vr=n(9),zr=n(11),Kr=n(12),qr=n(13),Wr=n(6),Hr=function(t){function e(){return Object(Mr.a)(this,e),Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isDirty,r=e.editsReference,o=e.isAutosaveable,i=e.isAutosaving;r!==t.editsReference&&(this.didAutosaveForEditsReference=!1),!i&&t.isAutosaving&&(this.didAutosaveForEditsReference=!0),t.isDirty===n&&t.isAutosaveable===o&&t.editsReference===r||this.toggleTimer(n&&o&&!this.didAutosaveForEditsReference)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(t){var e=this;clearTimeout(this.pendingSave);var n=this.props.autosaveInterval;t&&(this.pendingSave=setTimeout(function(){return e.props.autosave()},1e3*n))}},{key:"render",value:function(){return null}}]),e}(xr.Component),Gr=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isEditedPostDirty,r=e.isEditedPostAutosaveable,o=e.getReferenceByDistinctEdits,i=e.isAutosavingPost,s=t("core/editor").getEditorSettings().autosaveInterval;return{isDirty:n(),isAutosaveable:r(),editsReference:o(),isAutosaving:i(),autosaveInterval:s}}),Object(l.withDispatch)(function(t){return{autosave:t("core/editor").autosave}})])(Hr),Qr=n(16),Yr=n.n(Qr),$r=function(t){var e=t.children,n=t.isValid,r=t.level,o=t.path,s=void 0===o?[]:o,a=t.href,c=t.onSelect;return Object(xr.createElement)("li",{className:Yr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(xr.createElement)("a",{href:a,className:"document-outline__button",onClick:c},Object(xr.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),s.map(function(t,e){var n=t.clientId;return Object(xr.createElement)("strong",{key:e,className:"document-outline__level"},Object(xr.createElement)(i.BlockTitle,{clientId:n}))}),Object(xr.createElement)("strong",{className:"document-outline__level"},r),Object(xr.createElement)("span",{className:"document-outline__item-content"},e)))},Xr=Object(xr.createElement)("em",null,Object(Z.__)("(Empty heading)")),Zr=[Object(xr.createElement)("br",{key:"incorrect-break"}),Object(xr.createElement)("em",{key:"incorrect-message"},Object(Z.__)("(Incorrect heading level)"))],Jr=[Object(xr.createElement)("br",{key:"incorrect-break-h1"}),Object(xr.createElement)("em",{key:"incorrect-message-h1"},Object(Z.__)("(Your theme may already use a H1 for the post title)"))],to=[Object(xr.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(xr.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(Z.__)("(Multiple H1 headings are not recommended)"))],eo=function(t){return!t.attributes.content||0===t.attributes.content.length},no=Object(Wr.compose)(Object(l.withSelect)(function(t){var e=t("core/block-editor").getBlocks,n=t("core/editor").getEditedPostAttribute,r=(0,t("core").getPostType)(n("type"));return{title:n("title"),blocks:e(),isTitleSupported:Object(v.get)(r,["supports","title"],!1)}}))(function(t){var e=t.blocks,n=void 0===e?[]:e,r=t.title,o=t.onSelect,i=t.isTitleSupported,s=t.hasOutlineItemsDisabled,a=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(v.flatMap)(e,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===e.name?Object(h.a)({},e,{path:n,level:e.attributes.level,isEmpty:eo(e)}):t(e.innerBlocks,[].concat(Object(x.a)(n),[e]))})}(n);if(a.length<1)return null;var u=1,l=document.querySelector(".editor-post-title__input"),d=i&&r&&l,p=Object(v.countBy)(a,"level")[1]>1;return Object(xr.createElement)("div",{className:"document-outline"},Object(xr.createElement)("ul",null,d&&Object(xr.createElement)($r,{level:Object(Z.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(l.id),isDisabled:s},r),a.map(function(t,e){var n=t.level>u+1,r=!(t.isEmpty||n||!t.level||1===t.level&&(p||d));return u=t.level,Object(xr.createElement)($r,{key:e,level:"H".concat(t.level),isValid:r,path:t.path,isDisabled:s,href:"#block-".concat(t.clientId),onSelect:o},t.isEmpty?Xr:Object(c.getTextContent)(Object(c.create)({html:t.attributes.content})),n&&Zr,1===t.level&&p&&to,d&&1===t.level&&!p&&Jr)})))});var ro=Object(l.withSelect)(function(t){return{blocks:t("core/block-editor").getBlocks()}})(function(t){var e=t.blocks,n=t.children;return Object(v.filter)(e,function(t){return"core/heading"===t.name}).length<1?null:n}),oo=n(3),io=n(18),so=n(49),ao=n.n(so);var co=Object(Wr.compose)([Object(l.withSelect)(function(t){return{isDirty:(0,t("core/editor").isEditedPostDirty)()}}),Object(l.withDispatch)(function(t,e,n){var r=n.select,o=t("core/editor").savePost;return{onSave:function(){(0,r("core/editor").isEditedPostDirty)()&&o()}}})])(function(t){var e=t.onSave;return Object(xr.createElement)(Dr.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.a)({},io.rawShortcut.primary("s"),function(t){t.preventDefault(),e()})})}),uo=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).undoOrRedo=t.undoOrRedo.bind(Object(oo.a)(Object(oo.a)(t))),t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"undoOrRedo",value:function(t){var e=this.props,n=e.onRedo,r=e.onUndo;t.shiftKey?n():r(),t.preventDefault()}},{key:"render",value:function(){var t;return Object(xr.createElement)(xr.Fragment,null,Object(xr.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(xr.createElement)(Dr.KeyboardShortcuts,{shortcuts:(t={},Object(p.a)(t,io.rawShortcut.primary("z"),this.undoOrRedo),Object(p.a)(t,io.rawShortcut.primaryShift("z"),this.undoOrRedo),t)}),Object(xr.createElement)(co,null))}}]),e}(xr.Component),lo=Object(l.withDispatch)(function(t){var e=t("core/editor");return{onRedo:e.redo,onUndo:e.undo}})(uo),po=lo;function ho(){return ao()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(xr.createElement)(lo,null)}function fo(){return Object(xr.createElement)(co,null)}var bo=Object(Wr.compose)([Object(l.withSelect)(function(t){return{hasRedo:t("core/editor").hasEditorRedo()}}),Object(l.withDispatch)(function(t){return{redo:t("core/editor").redo}})])(function(t){var e=t.hasRedo,n=t.redo;return Object(xr.createElement)(Dr.IconButton,{icon:"redo",label:Object(Z.__)("Redo"),shortcut:io.displayShortcut.primaryShift("z"),"aria-disabled":!e,onClick:e?n:void 0,className:"editor-history__redo"})});var mo=Object(Wr.compose)([Object(l.withSelect)(function(t){return{hasUndo:t("core/editor").hasEditorUndo()}}),Object(l.withDispatch)(function(t){return{undo:t("core/editor").undo}})])(function(t){var e=t.hasUndo,n=t.undo;return Object(xr.createElement)(Dr.IconButton,{icon:"undo",label:Object(Z.__)("Undo"),shortcut:io.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?n:void 0,className:"editor-history__undo"})});var vo=Object(Wr.compose)([Object(l.withSelect)(function(t){return{isValid:t("core/block-editor").isValidTemplate()}}),Object(l.withDispatch)(function(t){var e=t("core/block-editor"),n=e.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:e.synchronizeTemplate}})])(function(t){var e=t.isValid,n=Object(Ur.a)(t,["isValid"]);return e?null:Object(xr.createElement)(Dr.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(xr.createElement)("p",null,Object(Z.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(xr.createElement)("div",null,Object(xr.createElement)(Dr.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(Z.__)("Keep it as is")),Object(xr.createElement)(Dr.Button,{onClick:function(){window.confirm(Object(Z.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(Z.__)("Reset the template"))))});var Oo=Object(Wr.compose)([Object(l.withSelect)(function(t){return{notices:t("core/notices").getNotices()}}),Object(l.withDispatch)(function(t){return{onRemove:t("core/notices").removeNotice}})])(function(t){var e=t.dismissible,n=t.notices,r=Object(Ur.a)(t,["dismissible","notices"]);return void 0!==e&&(n=Object(v.filter)(n,{isDismissible:e})),Object(xr.createElement)(Dr.NoticeList,Object(Nr.a)({notices:n},r),!1!==e&&Object(xr.createElement)(vo,null))}),go=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).reboot=t.reboot.bind(Object(oo.a)(Object(oo.a)(t))),t.getContent=t.getContent.bind(Object(oo.a)(Object(oo.a)(t))),t.state={error:null},t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidCatch",value:function(t){this.setState({error:t})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(l.select)("core/editor").getEditedPostContent()}catch(t){}}},{key:"render",value:function(){var t=this.state.error;return t?Object(xr.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(xr.createElement)(Dr.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(Z.__)("Attempt Recovery")),Object(xr.createElement)(Dr.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(Z.__)("Copy Post Text")),Object(xr.createElement)(Dr.ClipboardButton,{key:"copy-error",text:t.stack,isLarge:!0},Object(Z.__)("Copy Error"))]},Object(Z.__)("The editor has encountered an unexpected error.")):this.props.children}}]),e}(xr.Component);var yo=Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getEditorSettings,o=t("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}})(function(t){var e=t.availableTemplates,n=t.postType,r=t.children;return!Object(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(e)?null:r});var jo=Object(l.withSelect)(function(t){var e=t("core/editor").getEditedPostAttribute;return{postType:(0,t("core").getPostType)(e("type"))}})(function(t){var e=t.postType,n=t.children,r=t.supportKeys,o=!0;return e&&(o=Object(v.some)(Object(v.castArray)(r),function(t){return!!e.supports[t]})),o?n:null}),_o=Object(Wr.withState)({orderInput:null})(function(t){var e=t.onUpdateOrder,n=t.order,r=void 0===n?0:n,o=t.orderInput,i=t.setState,s=null===o?r:o;return Object(xr.createElement)(Dr.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Z.__)("Order"),value:s,onChange:function(t){i({orderInput:t});var n=Number(t);Number.isInteger(n)&&""!==Object(v.invoke)(t,["trim"])&&e(Number(t))},size:6,onBlur:function(){i({orderInput:null})}})});var ko=Object(Wr.compose)([Object(l.withSelect)(function(t){return{order:t("core/editor").getEditedPostAttribute("menu_order")}}),Object(l.withDispatch)(function(t){return{onUpdateOrder:function(e){t("core/editor").editPost({menu_order:e})}}})])(function(t){return Object(xr.createElement)(jo,{supportKeys:"page-attributes"},Object(xr.createElement)(_o,t))});function Eo(t){var e=t.map(function(t){return Object(h.a)({children:[],parent:null},t)}),n=Object(v.groupBy)(e,"parent");if(n.null&&n.null.length)return e;return function t(e){return e.map(function(e){var r=n[e.id];return Object(h.a)({},e,{children:r&&r.length?t(r):[]})})}(n[0]||[])}var So=Object(l.withSelect)(function(t){var e=t("core"),n=e.getPostType,r=e.getEntityRecords,o=t("core/editor"),i=o.getCurrentPostId,s=o.getEditedPostAttribute,a=s("type"),c=n(a),u=i(),l=Object(v.get)(c,["hierarchical"],!1),d={per_page:-1,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc"};return{parent:s("parent"),items:l?r("postType",a,d):[],postType:c}}),Po=Object(l.withDispatch)(function(t){var e=t("core/editor").editPost;return{onUpdateParent:function(t){e({parent:t||0})}}}),wo=Object(Wr.compose)([So,Po])(function(t){var e=t.parent,n=t.postType,r=t.items,o=t.onUpdateParent,i=Object(v.get)(n,["hierarchical"],!1),s=Object(v.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!s||!a.length)return null;var c=Eo(a.map(function(t){return{id:t.id,parent:t.parent,name:t.title.raw?t.title.raw:"#".concat(t.id," (").concat(Object(Z.__)("no title"),")")}}));return Object(xr.createElement)(Dr.TreeSelect,{className:"editor-page-attributes__parent",label:s,noOptionLabel:"(".concat(Object(Z.__)("no parent"),")"),tree:c,selectedId:e,onChange:o})});var To=Object(Wr.compose)(Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=(0,e.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}}),Object(l.withDispatch)(function(t){return{onUpdate:function(e){t("core/editor").editPost({template:e||""})}}}))(function(t){var e=t.availableTemplates,n=t.selectedTemplate,r=t.onUpdate;return Object(v.isEmpty)(e)?null:Object(xr.createElement)(Dr.SelectControl,{label:Object(Z.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(e,function(t,e){return{value:e,label:t}})})});var Co=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(e,["_links","wp:action-assign-author"],!1),postType:t("core/editor").getCurrentPostType(),authors:t("core").getAuthors()}}),Wr.withInstanceId])(function(t){var e=t.hasAssignAuthorAction,n=t.authors,r=t.children;return!e||n.length<2?null:Object(xr.createElement)(jo,{supportKeys:"author"},r)}),xo=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).setAuthorId=t.setAuthorId.bind(Object(oo.a)(Object(oo.a)(t))),t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"setAuthorId",value:function(t){var e=this.props.onUpdateAuthor,n=t.target.value;e(Number(n))}},{key:"render",value:function(){var t=this.props,e=t.postAuthor,n=t.instanceId,r=t.authors,o="post-author-selector-"+n;return Object(xr.createElement)(Co,null,Object(xr.createElement)("label",{htmlFor:o},Object(Z.__)("Author")),Object(xr.createElement)("select",{id:o,value:e,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map(function(t){return Object(xr.createElement)("option",{key:t.id,value:t.id},t.name)})))}}]),e}(xr.Component),Bo=Object(Wr.compose)([Object(l.withSelect)(function(t){return{postAuthor:t("core/editor").getEditedPostAttribute("author"),authors:t("core").getAuthors()}}),Object(l.withDispatch)(function(t){return{onUpdateAuthor:function(e){t("core/editor").editPost({author:e})}}}),Wr.withInstanceId])(xo);var Ao=Object(Wr.compose)([Object(l.withSelect)(function(t){return{commentStatus:t("core/editor").getEditedPostAttribute("comment_status")}}),Object(l.withDispatch)(function(t){return{editPost:t("core/editor").editPost}})])(function(t){var e=t.commentStatus,n=void 0===e?"open":e,r=Object(Ur.a)(t,["commentStatus"]);return Object(xr.createElement)(Dr.CheckboxControl,{label:Object(Z.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})});var Io=Object(Wr.compose)([Object(l.withSelect)(function(t){return{excerpt:t("core/editor").getEditedPostAttribute("excerpt")}}),Object(l.withDispatch)(function(t){return{onUpdateExcerpt:function(e){t("core/editor").editPost({excerpt:e})}}})])(function(t){var e=t.excerpt,n=t.onUpdateExcerpt;return Object(xr.createElement)("div",{className:"editor-post-excerpt"},Object(xr.createElement)(Dr.TextareaControl,{label:Object(Z.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(t){return n(t)},value:e}),Object(xr.createElement)(Dr.ExternalLink,{href:Object(Z.__)("https://codex.wordpress.org/Excerpt")},Object(Z.__)("Learn more about manual excerpts")))});var Lo=function(t){return Object(xr.createElement)(jo,Object(Nr.a)({},t,{supportKeys:"excerpt"}))};var Ro=Object(l.withSelect)(function(t){var e=t("core").getThemeSupports;return{postType:(0,t("core/editor").getEditedPostAttribute)("type"),themeSupports:e()}})(function(t){var e=t.themeSupports,n=t.children,r=t.postType,o=t.supportKeys;return Object(v.some)(Object(v.castArray)(o),function(t){var n=Object(v.get)(e,[t],!1);return"post-thumbnails"===t&&Object(v.isArray)(n)?Object(v.includes)(n,r):n})?n:null});var No=function(t){return Object(xr.createElement)(Ro,{supportKeys:"post-thumbnails"},Object(xr.createElement)(jo,Object(Nr.a)({},t,{supportKeys:"thumbnail"})))},Uo=["image"],Do=Object(Z.__)("Featured Image"),Fo=Object(Z.__)("Set featured image"),Mo=Object(Z.__)("Remove image");var Vo=Object(l.withSelect)(function(t){var e=t("core"),n=e.getMedia,r=e.getPostType,o=t("core/editor"),i=o.getCurrentPostId,s=o.getEditedPostAttribute,a=s("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(s("type")),featuredImageId:a}}),zo=Object(l.withDispatch)(function(t){var e=t("core/editor").editPost;return{onUpdateImage:function(t){e({featured_media:t.id})},onRemoveImage:function(){e({featured_media:0})}}}),Ko=Object(Wr.compose)(Vo,zo,Object(Dr.withFilters)("editor.PostFeaturedImage"))(function(t){var e,n,r,o=t.currentPostId,s=t.featuredImageId,a=t.onUpdateImage,c=t.onRemoveImage,u=t.media,l=t.postType,d=Object(v.get)(l,["labels"],{}),p=Object(xr.createElement)("p",null,Object(Z.__)("To edit the featured image, you need permission to upload media."));if(u){var h=Object(Cr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",u.id,o);Object(v.has)(u,["media_details","sizes",h])?(e=u.media_details.sizes[h].width,n=u.media_details.sizes[h].height,r=u.media_details.sizes[h].source_url):(e=u.media_details.width,n=u.media_details.height,r=u.source_url)}return Object(xr.createElement)(No,null,Object(xr.createElement)("div",{className:"editor-post-featured-image"},Object(xr.createElement)(i.MediaUploadCheck,{fallback:p},Object(xr.createElement)(i.MediaUpload,{title:d.featured_image||Do,onSelect:a,allowedTypes:Uo,modalClass:"editor-post-featured-image__media-modal",render:function(t){var o=t.open;return Object(xr.createElement)(Dr.Button,{className:s?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o,"aria-label":s?Object(Z.__)("Edit or update the image"):null},!!s&&u&&Object(xr.createElement)(Dr.ResponsiveWrapper,{naturalWidth:e,naturalHeight:n},Object(xr.createElement)("img",{src:r,alt:""})),!!s&&!u&&Object(xr.createElement)(Dr.Spinner,null),!s&&(d.set_featured_image||Fo))},value:s})),!!s&&u&&!u.isLoading&&Object(xr.createElement)(i.MediaUploadCheck,null,Object(xr.createElement)(i.MediaUpload,{title:d.featured_image||Do,onSelect:a,allowedTypes:Uo,modalClass:"editor-post-featured-image__media-modal",render:function(t){var e=t.open;return Object(xr.createElement)(Dr.Button,{onClick:e,isDefault:!0,isLarge:!0},Object(Z.__)("Replace image"))}})),!!s&&Object(xr.createElement)(i.MediaUploadCheck,null,Object(xr.createElement)(Dr.Button,{onClick:c,isLink:!0,isDestructive:!0},d.remove_featured_image||Mo))))});var qo=Object(l.withSelect)(function(t){return{disablePostFormats:t("core/editor").getEditorSettings().disablePostFormats}})(function(t){var e=t.disablePostFormats,n=Object(Ur.a)(t,["disablePostFormats"]);return!e&&Object(xr.createElement)(jo,Object(Nr.a)({},n,{supportKeys:"post-formats"}))}),Wo=[{id:"aside",caption:Object(Z.__)("Aside")},{id:"gallery",caption:Object(Z.__)("Gallery")},{id:"link",caption:Object(Z.__)("Link")},{id:"image",caption:Object(Z.__)("Image")},{id:"quote",caption:Object(Z.__)("Quote")},{id:"standard",caption:Object(Z.__)("Standard")},{id:"status",caption:Object(Z.__)("Status")},{id:"video",caption:Object(Z.__)("Video")},{id:"audio",caption:Object(Z.__)("Audio")},{id:"chat",caption:Object(Z.__)("Chat")}];var Ho=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getSuggestedPostFormat,o=n("format"),i=t("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(v.union)([o],Object(v.get)(i,["formats"],[])),suggestedFormat:r()}}),Object(l.withDispatch)(function(t){return{onUpdatePostFormat:function(e){t("core/editor").editPost({format:e})}}}),Wr.withInstanceId])(function(t){var e=t.onUpdatePostFormat,n=t.postFormat,r=void 0===n?"standard":n,o=t.supportedFormats,i=t.suggestedFormat,s="post-format-selector-"+t.instanceId,a=Wo.filter(function(t){return Object(v.includes)(o,t.id)}),c=Object(v.find)(a,function(t){return t.id===i});return Object(xr.createElement)(qo,null,Object(xr.createElement)("div",{className:"editor-post-format"},Object(xr.createElement)("div",{className:"editor-post-format__content"},Object(xr.createElement)("label",{htmlFor:s},Object(Z.__)("Post Format")),Object(xr.createElement)(Dr.SelectControl,{value:r,onChange:function(t){return e(t)},id:s,options:a.map(function(t){return{label:t.caption,value:t.id}})})),c&&c.id!==r&&Object(xr.createElement)("div",{className:"editor-post-format__suggestion"},Object(Z.__)("Suggestion:")," ",Object(xr.createElement)(Dr.Button,{isLink:!0,onClick:function(){return e(c.id)}},c.caption))))});var Go=Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getCurrentPostLastRevisionId,r=e.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}})(function(t){var e=t.lastRevisionId,n=t.revisionsCount,r=t.children;return!e||n<2?null:Object(xr.createElement)(jo,{supportKeys:"revisions"},r)});function Qo(t,e){return Object(O.addQueryArgs)(t,e)}function Yo(t){return Object(v.toLower)(Object(v.deburr)(Object(v.trim)(t.replace(/[\s\.\/_]+/g,"-"),"-")))}var $o=Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getCurrentPostLastRevisionId,r=e.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}})(function(t){var e=t.lastRevisionId,n=t.revisionsCount;return Object(xr.createElement)(Go,null,Object(xr.createElement)(Dr.IconButton,{href:Qo("revision.php",{revision:e,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(Z.sprintf)(Object(Z._n)("%d Revision","%d Revisions",n),n)))});var Xo=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).openPreviewWindow=t.openPreviewWindow.bind(Object(oo.a)(Object(oo.a)(t))),t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidUpdate",value:function(t){var e=this.props.previewLink;e&&!t.previewLink&&this.setPreviewWindowLink(e)}},{key:"setPreviewWindowLink",value:function(t){var e=this.previewWindow;e&&!e.closed&&(e.location=t)}},{key:"getWindowTarget",value:function(){var t=this.props.postId;return"wp-preview-".concat(t)}},{key:"openPreviewWindow",value:function(t){var e,n;(t.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),e=this.previewWindow.document,n=Object(xr.renderToString)(Object(xr.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(xr.createElement)(Dr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(xr.createElement)(Dr.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(xr.createElement)(Dr.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(xr.createElement)("p",null,Object(Z.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(Cr.applyFilters)("editor.PostPreview.interstitialMarkup",n),e.write(n),e.title=Object(Z.__)("Generating preview…"),e.close()):this.setPreviewWindowLink(t.target.href)}},{key:"render",value:function(){var t=this.props,e=t.previewLink,n=t.currentPostLink,r=t.isSaveable,o=e||n;return Object(xr.createElement)(Dr.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(Z._x)("Preview","imperative verb"),Object(xr.createElement)("span",{className:"screen-reader-text"},Object(Z.__)("(opens in a new tab)")),Object(xr.createElement)(a.DotTip,{tipId:"core/editor.preview"},Object(Z.__)("Click “Preview” to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),e}(xr.Component),Zo=Object(Wr.compose)([Object(l.withSelect)(function(t,e){var n=e.forcePreviewLink,r=e.forceIsAutosaveable,o=t("core/editor"),i=o.getCurrentPostId,s=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,c=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=t("core").getPostType,p=l(),h=d(a("type"));return{postId:i(),currentPostLink:s("link"),previewLink:void 0!==n?n:p,isSaveable:c(),isAutosaveable:r||u(),isViewable:Object(v.get)(h,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}}),Object(l.withDispatch)(function(t){return{autosave:t("core/editor").autosave,savePost:t("core/editor").savePost}}),Object(Wr.ifCondition)(function(t){return t.isViewable})])(Xo),Jo=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).sendPostLock=t.sendPostLock.bind(Object(oo.a)(Object(oo.a)(t))),t.receivePostLock=t.receivePostLock.bind(Object(oo.a)(Object(oo.a)(t))),t.releasePostLock=t.releasePostLock.bind(Object(oo.a)(Object(oo.a)(t))),t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidMount",value:function(){var t=this.getHookName();Object(Cr.addAction)("heartbeat.send",t,this.sendPostLock),Object(Cr.addAction)("heartbeat.tick",t,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var t=this.getHookName();Object(Cr.removeAction)("heartbeat.send",t),Object(Cr.removeAction)("heartbeat.tick",t)}},{key:"getHookName",value:function(){return"core/editor/post-locked-modal-"+this.props.instanceId}},{key:"sendPostLock",value:function(t){var e=this.props,n=e.isLocked,r=e.activePostLock,o=e.postId;n||(t["wp-refresh-post-lock"]={lock:r,post_id:o})}},{key:"receivePostLock",value:function(t){if(t["wp-refresh-post-lock"]){var e=this.props,n=e.autosave,r=e.updatePostLock,o=t["wp-refresh-post-lock"];o.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:o.lock_error.avatar_src}})):o.new_lock&&r({isLocked:!1,activePostLock:o.new_lock})}}},{key:"releasePostLock",value:function(){var t=this.props,e=t.isLocked,n=t.activePostLock,r=t.postLockUtils,o=t.postId;if(!e&&n){var i=new window.FormData;i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n);var s=new window.XMLHttpRequest;s.open("POST",r.ajaxUrl,!1),s.send(i)}}},{key:"render",value:function(){var t=this.props,e=t.user,n=t.postId,r=t.isLocked,o=t.isTakeover,i=t.postLockUtils,s=t.postType;if(!r)return null;var a=e.name,c=e.avatar,u=Object(O.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=Qo("edit.php",{post_type:Object(v.get)(s,["slug"])}),d=Object(Z.__)("Exit the Editor");return Object(xr.createElement)(Dr.Modal,{title:o?Object(Z.__)("Someone else has taken over this post."):Object(Z.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!c&&Object(xr.createElement)("img",{src:c,alt:Object(Z.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(xr.createElement)("div",null,Object(xr.createElement)("div",null,a?Object(Z.sprintf)(Object(Z.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(Z.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(xr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(xr.createElement)(Dr.Button,{isPrimary:!0,isLarge:!0,href:l},d))),!o&&Object(xr.createElement)("div",null,Object(xr.createElement)("div",null,a?Object(Z.sprintf)(Object(Z.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(Z.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(xr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(xr.createElement)(Dr.Button,{isDefault:!0,isLarge:!0,href:l},d),Object(xr.createElement)(Zo,null),Object(xr.createElement)(Dr.Button,{isPrimary:!0,isLarge:!0,href:u},Object(Z.__)("Take Over")))))}}]),e}(xr.Component),ti=Object(Wr.compose)(Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isPostLocked,r=e.isPostLockTakeover,o=e.getPostLockUser,i=e.getCurrentPostId,s=e.getActivePostLock,a=e.getEditedPostAttribute,c=e.getEditorSettings,u=t("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:c().postLockUtils,activePostLock:s(),postType:u(a("type"))}}),Object(l.withDispatch)(function(t){var e=t("core/editor");return{autosave:e.autosave,updatePostLock:e.updatePostLock}}),Wr.withInstanceId,Object(Wr.withGlobalEvents)({beforeunload:"releasePostLock"}))(Jo);var ei=Object(Wr.compose)(Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isCurrentPostPublished,r=e.getCurrentPostType,o=e.getCurrentPost;return{hasPublishAction:Object(v.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}}))(function(t){var e=t.hasPublishAction,n=t.isPublished,r=t.children;return n||!e?null:r});var ni=Object(Wr.compose)(Object(l.withSelect)(function(t){return{status:t("core/editor").getEditedPostAttribute("status")}}),Object(l.withDispatch)(function(t){return{onUpdateStatus:function(e){t("core/editor").editPost({status:e})}}}))(function(t){var e=t.status,n=t.onUpdateStatus;return Object(xr.createElement)(ei,null,Object(xr.createElement)(Dr.CheckboxControl,{label:Object(Z.__)("Pending Review"),checked:"pending"===e,onChange:function(){n("pending"===e?"draft":"pending")}}))});var ri=Object(Wr.compose)([Object(l.withSelect)(function(t){return{pingStatus:t("core/editor").getEditedPostAttribute("ping_status")}}),Object(l.withDispatch)(function(t){return{editPost:t("core/editor").editPost}})])(function(t){var e=t.pingStatus,n=void 0===e?"open":e,r=Object(Ur.a)(t,["pingStatus"]);return Object(xr.createElement)(Dr.CheckboxControl,{label:Object(Z.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})});var oi=Object(Wr.compose)([Object(l.withSelect)(function(t,e){var n=e.forceIsSaving,r=t("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,s=r.isSavingPost,a=r.isPublishingPost,c=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||s(),isPublishing:a(),hasPublishAction:Object(v.get)(c(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}})])(function(t){var e=t.isPublished,n=t.isBeingScheduled,r=t.isSaving,o=t.isPublishing,i=t.hasPublishAction,s=t.isAutosaving;return o?Object(Z.__)("Publishing…"):e&&r&&!s?Object(Z.__)("Updating…"):n&&r&&!s?Object(Z.__)("Scheduling…"):i?e?Object(Z.__)("Update"):n?Object(Z.__)("Schedule"):Object(Z.__)("Publish"):Object(Z.__)("Submit for Review")}),ii=function(t){function e(t){var n;return Object(Mr.a)(this,e),(n=Object(zr.a)(this,Object(Kr.a)(e).call(this,t))).buttonNode=Object(xr.createRef)(),n}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var t,e=this.props,n=e.forceIsDirty,r=e.forceIsSaving,o=e.hasPublishAction,i=e.isBeingScheduled,s=e.isOpen,c=e.isPostSavingLocked,u=e.isPublishable,l=e.isPublished,d=e.isSaveable,p=e.isSaving,h=e.isToggle,f=e.onSave,b=e.onStatusChange,m=e.onSubmit,O=void 0===m?v.noop:m,g=e.onToggle,y=e.visibility,j=p||r||!d||c||!u&&!n,_=l||p||r||!d||!u&&!n;t=o?i?"future":"private"===y?"private":"publish":"pending";var k={"aria-disabled":j,className:"editor-post-publish-button",isBusy:p&&l,isLarge:!0,isPrimary:!0,onClick:function(){j||(O(),b(t),f())}},E={"aria-disabled":_,"aria-expanded":s,className:"editor-post-publish-panel__toggle",isBusy:p&&l,isPrimary:!0,onClick:function(){_||g()}},S=i?Object(Z.__)("Schedule…"):Object(Z.__)("Publish…"),P=Object(xr.createElement)(oi,{forceIsSaving:r}),w=h?E:k,T=h?S:P;return Object(xr.createElement)(Dr.Button,Object(Nr.a)({ref:this.buttonNode},w),T,Object(xr.createElement)(a.DotTip,{tipId:"core/editor.publish"},Object(Z.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish” and you’re good to go.")))}}]),e}(xr.Component),si=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isEditedPostBeingScheduled,o=e.getEditedPostVisibility,i=e.isCurrentPostPublished,s=e.isEditedPostSaveable,a=e.isEditedPostPublishable,c=e.isPostSavingLocked,u=e.getCurrentPost,l=e.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:s(),isPostSavingLocked:c(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(v.get)(u(),["_links","wp:action-publish"],!1),postType:l()}}),Object(l.withDispatch)(function(t){var e=t("core/editor"),n=e.editPost;return{onStatusChange:function(t){return n({status:t})},onSave:e.savePost}})])(ii),ai=[{value:"public",label:Object(Z.__)("Public"),info:Object(Z.__)("Visible to everyone.")},{value:"private",label:Object(Z.__)("Private"),info:Object(Z.__)("Only visible to site admins and editors.")},{value:"password",label:Object(Z.__)("Password Protected"),info:Object(Z.__)("Protected with a password you choose. Only those with the password can view this post.")}],ci=function(t){function e(t){var n;return Object(Mr.a)(this,e),(n=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).setPublic=n.setPublic.bind(Object(oo.a)(Object(oo.a)(n))),n.setPrivate=n.setPrivate.bind(Object(oo.a)(Object(oo.a)(n))),n.setPasswordProtected=n.setPasswordProtected.bind(Object(oo.a)(Object(oo.a)(n))),n.updatePassword=n.updatePassword.bind(Object(oo.a)(Object(oo.a)(n))),n.state={hasPassword:!!t.password},n}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"setPublic",value:function(){var t=this.props,e=t.visibility,n=t.onUpdateVisibility,r=t.status;n("private"===e?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(Z.__)("Would you like to privately publish this post now?"))){var t=this.props,e=t.onUpdateVisibility,n=t.onSave;e("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var t=this.props,e=t.visibility,n=t.onUpdateVisibility,r=t.status;n("private"===e?"draft":r,t.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(t){var e=this.props,n=e.status;(0,e.onUpdateVisibility)(n,t.target.value)}},{key:"render",value:function(){var t=this.props,e=t.visibility,n=t.password,r=t.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===e&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===e},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(xr.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(xr.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(Z.__)("Post Visibility")),ai.map(function(t){var e=t.value,n=t.label,i=t.info;return Object(xr.createElement)("div",{key:e,className:"editor-post-visibility__choice"},Object(xr.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:e,onChange:o[e].onSelect,checked:o[e].checked,id:"editor-post-".concat(e,"-").concat(r),"aria-describedby":"editor-post-".concat(e,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(xr.createElement)("label",{htmlFor:"editor-post-".concat(e,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(xr.createElement)("p",{id:"editor-post-".concat(e,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))})),this.state.hasPassword&&Object(xr.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(xr.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(Z.__)("Create password")),Object(xr.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(Z.__)("Use a secure password")}))]}}]),e}(xr.Component),ui=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}}),Object(l.withDispatch)(function(t){var e=t("core/editor"),n=e.savePost,r=e.editPost;return{onSave:n,onUpdateVisibility:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r({status:t,password:e})}}}),Wr.withInstanceId])(ci);var li=Object(l.withSelect)(function(t){return{visibility:t("core/editor").getEditedPostVisibility()}})(function(t){var e=t.visibility;return Object(v.find)(ai,{value:e}).label});var di=Object(Wr.compose)([Object(l.withSelect)(function(t){return{date:t("core/editor").getEditedPostAttribute("date")}}),Object(l.withDispatch)(function(t){return{onUpdateDate:function(e){t("core/editor").editPost({date:e})}}})])(function(t){var e=t.date,n=t.onUpdateDate,r=Object(be.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(xr.createElement)(Dr.DateTimePicker,{key:"date-time-picker",currentDate:e,onChange:n,is12Hour:o})});var pi=Object(l.withSelect)(function(t){return{date:t("core/editor").getEditedPostAttribute("date"),isFloating:t("core/editor").isEditedPostDateFloating()}})(function(t){var e=t.date,n=t.isFloating,r=Object(be.__experimentalGetSettings)();return e&&!n?Object(be.dateI18n)(r.formats.datetimeAbbreviated,e):Object(Z.__)("Immediately")}),hi={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},fi=function(t,e){return t.toLowerCase()===e.toLowerCase()},bi=function(t){return Object(h.a)({},t,{name:Object(v.unescape)(t.name)})},mi=function(t){return Object(v.map)(t,bi)},vi=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(oo.a)(Object(oo.a)(t))),t.searchTerms=Object(v.throttle)(t.searchTerms.bind(Object(oo.a)(Object(oo.a)(t))),500),t.findOrCreateTerm=t.findOrCreateTerm.bind(Object(oo.a)(Object(oo.a)(t))),t.state={loading:!Object(v.isEmpty)(t.props.terms),availableTerms:[],selectedTerms:[]},t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidMount",value:function(){var t=this;Object(v.isEmpty)(this.props.terms)||(this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then(function(){t.setState({loading:!1})},function(e){"abort"!==e.statusText&&t.setState({loading:!1})}))}},{key:"componentWillUnmount",value:function(){Object(v.invoke)(this.initRequest,["abort"]),Object(v.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(t){t.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(h.a)({},hi,e),o=H()({path:Object(O.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(mi).then(function(e){t.setState(function(t){return{availableTerms:t.availableTerms.concat(e.filter(function(e){return!Object(v.find)(t.availableTerms,function(t){return t.id===e.id})}))}}),t.updateSelectedTerms(t.props.terms)}),o}},{key:"updateSelectedTerms",value:function(){var t=this,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,n){var r=Object(v.find)(t.state.availableTerms,function(t){return t.id===n});return r&&e.push(r.name),e},[]);this.setState({selectedTerms:e})}},{key:"findOrCreateTerm",value:function(t){var e=this,n=this.props.taxonomy,r=Object(v.escape)(t);return H()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch(function(o){return"term_exists"===o.code?(e.addRequest=H()({path:Object(O.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(h.a)({},hi,{search:r}))}).then(mi),e.addRequest.then(function(e){return Object(v.find)(e,function(e){return fi(e.name,t)})})):Promise.reject(o)}).then(bi)}},{key:"onChange",value:function(t){var e=this,n=Object(v.uniqBy)(t,function(t){return t.toLowerCase()});this.setState({selectedTerms:n});var r=n.filter(function(t){return!Object(v.find)(e.state.availableTerms,function(e){return fi(e.name,t)})}),o=function(t,e){return t.map(function(t){return Object(v.find)(e,function(e){return fi(e.name,t)}).id})};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then(function(t){var r=e.state.availableTerms.concat(t);return e.setState({availableTerms:r}),e.props.onUpdateTerms(o(n,r),e.props.taxonomy.rest_base)})}},{key:"searchTerms",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(v.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:t})}},{key:"render",value:function(){var t=this.props,e=t.slug,n=t.taxonomy;if(!t.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,s=r.selectedTerms,a=i.map(function(t){return t.name}),c=Object(v.get)(n,["labels","add_new_item"],"post_tag"===e?Object(Z.__)("Add New Tag"):Object(Z.__)("Add New Term")),u=Object(v.get)(n,["labels","singular_name"],"post_tag"===e?Object(Z.__)("Tag"):Object(Z.__)("Term")),l=Object(Z.sprintf)(Object(Z._x)("%s added","term"),u),d=Object(Z.sprintf)(Object(Z._x)("%s removed","term"),u),p=Object(Z.sprintf)(Object(Z._x)("Remove %s","term"),u);return Object(xr.createElement)(Dr.FormTokenField,{value:s,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:c,messages:{added:l,removed:d,remove:p}})}}]),e}(xr.Component),Oi=Object(Wr.compose)(Object(l.withSelect)(function(t,e){var n=e.slug,r=t("core/editor").getCurrentPost,o=(0,t("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?t("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}}),Object(l.withDispatch)(function(t){return{onUpdateTerms:function(e,n){t("core/editor").editPost(Object(p.a)({},n,e))}}}),Object(Dr.withFilters)("editor.PostTaxonomyType"))(vi),gi=function(){var t=[Object(Z.__)("Suggestion:"),Object(xr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Z.__)("Add tags"))];return Object(xr.createElement)(Dr.PanelBody,{initialOpen:!1,title:t},Object(xr.createElement)("p",null,Object(Z.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(xr.createElement)(Oi,{slug:"post_tag"}))},yi=function(t){function e(t){var n;return Object(Mr.a)(this,e),(n=Object(zr.a)(this,Object(Kr.a)(e).call(this,t))).state={hadTagsWhenOpeningThePanel:t.hasTags},n}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(xr.createElement)(gi,null)}}]),e}(xr.Component),ji=Object(Wr.compose)(Object(l.withSelect)(function(t){var e=t("core/editor").getCurrentPostType(),n=t("core").getTaxonomy("post_tag"),r=n&&t("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(v.some)(n.types,function(t){return t===e}),hasTags:r&&r.length}}),Object(Wr.ifCondition)(function(t){var e=t.areTagsFetched;return t.isPostTypeSupported&&e}))(yi),_i=function(t){var e=t.suggestedPostFormat,n=t.suggestionText,r=t.onUpdatePostFormat;return Object(xr.createElement)(Dr.Button,{isLink:!0,onClick:function(){return r(e)}},n)},ki=function(t,e){var n=Wo.filter(function(e){return Object(v.includes)(t,e.id)});return Object(v.find)(n,function(t){return t.id===e})},Ei=Object(Wr.compose)(Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getSuggestedPostFormat,o=Object(v.get)(t("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:ki(o,r())}}),Object(l.withDispatch)(function(t){return{onUpdatePostFormat:function(e){t("core/editor").editPost({format:e})}}}),Object(Wr.ifCondition)(function(t){var e=t.suggestion,n=t.currentPostFormat;return e&&e.id!==n}))(function(t){var e=t.suggestion,n=t.onUpdatePostFormat,r=[Object(Z.__)("Suggestion:"),Object(xr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Z.__)("Use a post format"))];return Object(xr.createElement)(Dr.PanelBody,{initialOpen:!1,title:r},Object(xr.createElement)("p",null,Object(Z.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(xr.createElement)("p",null,Object(xr.createElement)(_i,{onUpdatePostFormat:n,suggestedPostFormat:e.id,suggestionText:Object(Z.sprintf)(Object(Z.__)('Apply the "%1$s" format.'),e.caption)})))});var Si=Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getCurrentPost,r=e.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}})(function(t){var e,n,r=t.hasPublishAction,o=t.isBeingScheduled,i=t.children;return r?o?(e=Object(Z.__)("Are you ready to schedule?"),n=Object(Z.__)("Your work will be published at the specified date and time.")):(e=Object(Z.__)("Are you ready to publish?"),n=Object(Z.__)("Double-check your settings before publishing.")):(e=Object(Z.__)("Are you ready to submit for review?"),n=Object(Z.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(xr.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(xr.createElement)("div",null,Object(xr.createElement)("strong",null,e)),Object(xr.createElement)("p",null,n),r&&Object(xr.createElement)(xr.Fragment,null,Object(xr.createElement)(Dr.PanelBody,{initialOpen:!1,title:[Object(Z.__)("Visibility:"),Object(xr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(xr.createElement)(li,null))]},Object(xr.createElement)(ui,null)),Object(xr.createElement)(Dr.PanelBody,{initialOpen:!1,title:[Object(Z.__)("Publish:"),Object(xr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(xr.createElement)(pi,null))]},Object(xr.createElement)(di,null)),Object(xr.createElement)(Ei,null),Object(xr.createElement)(ji,null),i))}),Pi=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).state={showCopyConfirmation:!1},t.onCopy=t.onCopy.bind(Object(oo.a)(Object(oo.a)(t))),t.onSelectInput=t.onSelectInput.bind(Object(oo.a)(Object(oo.a)(t))),t.postLink=Object(xr.createRef)(),t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var t=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout(function(){t.setState({showCopyConfirmation:!1})},4e3)}},{key:"onSelectInput",value:function(t){t.target.select()}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.isScheduled,r=t.post,o=t.postType,i=Object(v.get)(o,["labels","singular_name"]),s=Object(v.get)(o,["labels","view_item"]),a=n?Object(xr.createElement)(xr.Fragment,null,Object(Z.__)("is now scheduled. It will go live on")," ",Object(xr.createElement)(pi,null),"."):Object(Z.__)("is now live.");return Object(xr.createElement)("div",{className:"post-publish-panel__postpublish"},Object(xr.createElement)(Dr.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(xr.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(Z.__)("(no title)"))," ",a),Object(xr.createElement)(Dr.PanelBody,null,Object(xr.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(xr.createElement)("strong",null,Object(Z.__)("What’s next?"))),Object(xr.createElement)(Dr.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Z.sprintf)(Object(Z.__)("%s address"),i),value:Object(O.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(xr.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(xr.createElement)(Dr.Button,{isDefault:!0,href:r.link},s),Object(xr.createElement)(Dr.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Z.__)("Copied!"):Object(Z.__)("Copy Link")))),e)}}]),e}(xr.Component),wi=Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.getCurrentPost,o=e.isCurrentPostScheduled,i=t("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}})(Pi),Ti=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).onSubmit=t.onSubmit.bind(Object(oo.a)(Object(oo.a)(t))),t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidUpdate",value:function(t){t.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var t=this.props,e=t.onClose,n=t.hasPublishAction,r=t.isPostTypeViewable;n&&r||e()}},{key:"render",value:function(){var t=this.props,e=t.forceIsDirty,n=t.forceIsSaving,r=t.isBeingScheduled,o=t.isPublished,i=t.isPublishSidebarEnabled,s=t.isScheduled,a=t.isSaving,c=t.onClose,u=t.onTogglePublishSidebar,l=t.PostPublishExtension,d=t.PrePublishExtension,p=Object(Ur.a)(t,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),h=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||s&&r,b=!f&&!a,m=f&&!a;return Object(xr.createElement)("div",Object(Nr.a)({className:"editor-post-publish-panel"},h),Object(xr.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(xr.createElement)("div",{className:"editor-post-publish-panel__header-published"},s?Object(Z.__)("Scheduled"):Object(Z.__)("Published")):Object(xr.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(xr.createElement)(si,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:e,forceIsSaving:n}),Object(xr.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(xr.createElement)(Dr.IconButton,{"aria-expanded":!0,onClick:c,icon:"no-alt",label:Object(Z.__)("Close panel")})),Object(xr.createElement)("div",{className:"editor-post-publish-panel__content"},b&&Object(xr.createElement)(Si,null,d&&Object(xr.createElement)(d,null)),m&&Object(xr.createElement)(wi,{focusOnMount:!0},l&&Object(xr.createElement)(l,null)),a&&Object(xr.createElement)(Dr.Spinner,null)),Object(xr.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(xr.createElement)(Dr.CheckboxControl,{label:Object(Z.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),e}(xr.Component),Ci=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core").getPostType,n=t("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,s=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,c=n.isEditedPostDirty,u=n.isSavingPost,l=t("core/editor").isPublishSidebarEnabled,d=e(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:c(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:s()}}),Object(l.withDispatch)(function(t,e){var n=e.isPublishSidebarEnabled,r=t("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}}),Dr.withFocusReturn,Dr.withConstrainedTabbing])(Ti);var xi=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isCurrentPostPublished,o=e.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}}),Object(l.withDispatch)(function(t){var e=t("core/editor"),n=e.editPost,r=e.savePost;return{onClick:function(){n({status:"draft"}),r()}}})])(function(t){var e=t.isSaving,n=t.isPublished,r=t.isScheduled,o=t.onClick;return n||r?Object(xr.createElement)(Dr.Button,{className:"editor-post-switch-to-draft",onClick:function(){var t;n?t=Object(Z.__)("Are you sure you want to unpublish this post?"):r&&(t=Object(Z.__)("Are you sure you want to unschedule this post?")),window.confirm(t)&&o()},disabled:e,isTertiary:!0},Object(Z.__)("Switch to Draft")):null}),Bi=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).state={forceSavedMessage:!1},t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidUpdate",value:function(t){var e=this;t.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout(function(){e.setState({forceSavedMessage:!1})},1e3))}},{key:"render",value:function(){var t=this.props,e=t.post,n=t.isNew,r=t.isScheduled,o=t.isPublished,i=t.isDirty,s=t.isSaving,a=t.isSaveable,c=t.onSave,u=t.isAutosaving,l=t.isPending,d=t.isLargeViewport,p=this.state.forceSavedMessage;if(s){var h=Yr()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(xr.createElement)("span",{className:h},Object(xr.createElement)(Dr.Dashicon,{icon:"cloud"}),u?Object(Z.__)("Autosaving"):Object(Z.__)("Saving"))}if(o||r)return Object(xr.createElement)(xi,null);if(!a)return null;if(p||!n&&!i)return Object(xr.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(xr.createElement)(Dr.Dashicon,{icon:"saved"}),Object(Z.__)("Saved"));if(!Object(v.get)(e,["_links","wp:action-publish"],!1)&&l)return null;var f=l?Object(Z.__)("Save as Pending"):Object(Z.__)("Save Draft");return d?Object(xr.createElement)(Dr.Button,{className:"editor-post-save-draft",onClick:c,shortcut:io.displayShortcut.primary("s"),isTertiary:!0},f):Object(xr.createElement)(Dr.IconButton,{className:"editor-post-save-draft",label:f,onClick:c,shortcut:io.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),e}(xr.Component),Ai=Object(Wr.compose)([Object(l.withSelect)(function(t,e){var n=e.forceIsDirty,r=e.forceIsSaving,o=t("core/editor"),i=o.isEditedPostNew,s=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,c=o.isEditedPostDirty,u=o.isSavingPost,l=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,h=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:s(),isScheduled:a(),isDirty:n||c(),isSaving:r||u(),isSaveable:l(),isAutosaving:p(),isPending:"pending"===h("status")}}),Object(l.withDispatch)(function(t){return{onSave:t("core/editor").savePost}}),Wr.withSafeTimeout,Object(u.withViewportMatch)({isLargeViewport:"medium"})])(Bi);var Ii=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getCurrentPost,r=e.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}})])(function(t){var e=t.hasPublishAction,n=t.children;return e?n:null});var Li=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor").getCurrentPost();return{hasStickyAction:Object(v.get)(e,["_links","wp:action-sticky"],!1),postType:t("core/editor").getCurrentPostType()}})])(function(t){var e=t.hasStickyAction,n=t.postType,r=t.children;return"post"===n&&e?r:null});var Ri=Object(Wr.compose)([Object(l.withSelect)(function(t){return{postSticky:t("core/editor").getEditedPostAttribute("sticky")}}),Object(l.withDispatch)(function(t){return{onUpdateSticky:function(e){t("core/editor").editPost({sticky:e})}}})])(function(t){var e=t.onUpdateSticky,n=t.postSticky,r=void 0!==n&&n;return Object(xr.createElement)(Li,null,Object(xr.createElement)(Dr.CheckboxControl,{label:Object(Z.__)("Stick to the top of the blog"),checked:r,onChange:function(){return e(!r)}}))}),Ni={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},Ui=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).findTerm=t.findTerm.bind(Object(oo.a)(Object(oo.a)(t))),t.onChange=t.onChange.bind(Object(oo.a)(Object(oo.a)(t))),t.onChangeFormName=t.onChangeFormName.bind(Object(oo.a)(Object(oo.a)(t))),t.onChangeFormParent=t.onChangeFormParent.bind(Object(oo.a)(Object(oo.a)(t))),t.onAddTerm=t.onAddTerm.bind(Object(oo.a)(Object(oo.a)(t))),t.onToggleForm=t.onToggleForm.bind(Object(oo.a)(Object(oo.a)(t))),t.setFilterValue=t.setFilterValue.bind(Object(oo.a)(Object(oo.a)(t))),t.sortBySelected=t.sortBySelected.bind(Object(oo.a)(Object(oo.a)(t))),t.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"onChange",value:function(t){var e=this.props,n=e.onUpdateTerms,r=e.terms,o=void 0===r?[]:r,i=e.taxonomy,s=parseInt(t.target.value,10);n(-1!==o.indexOf(s)?Object(v.without)(o,s):[].concat(Object(x.a)(o),[s]),i.rest_base)}},{key:"onChangeFormName",value:function(t){var e=""===t.target.value.trim()?"":t.target.value;this.setState({formName:e})}},{key:"onChangeFormParent",value:function(t){this.setState({formParent:t})}},{key:"onToggleForm",value:function(){this.setState(function(t){return{showForm:!t.showForm}})}},{key:"findTerm",value:function(t,e,n){return Object(v.find)(t,function(t){return(!t.parent&&!e||parseInt(t.parent)===parseInt(e))&&t.name.toLowerCase()===n.toLowerCase()})}},{key:"onAddTerm",value:function(t){var e=this;t.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,s=n.slug,a=this.state,c=a.formName,u=a.formParent,l=a.adding,d=a.availableTerms;if(""!==c&&!l){var p=this.findTerm(d,u,c);if(p)return Object(v.some)(i,function(t){return t===p.id})||r([].concat(Object(x.a)(i),[p.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=H()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:c,parent:u||void 0}}),this.addRequest.catch(function(t){return"term_exists"===t.code?(e.addRequest=H()({path:Object(O.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(h.a)({},Ni,{parent:u||0,search:c}))}),e.addRequest.then(function(t){return e.findTerm(t,u,c)})):Promise.reject(t)}).then(function(t){var n=!!Object(v.find)(e.state.availableTerms,function(e){return e.id===t.id})?e.state.availableTerms:[t].concat(Object(x.a)(e.state.availableTerms)),a=Object(Z.sprintf)(Object(Z._x)("%s added","term"),Object(v.get)(e.props.taxonomy,["labels","singular_name"],"category"===s?Object(Z.__)("Category"):Object(Z.__)("Term")));e.props.speak(a,"assertive"),e.addRequest=null,e.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:e.sortBySelected(Eo(n))}),r([].concat(Object(x.a)(i),[t.id]),o.rest_base)},function(t){"abort"!==t.statusText&&(e.addRequest=null,e.setState({adding:!1}))})}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(v.invoke)(this.fetchRequest,["abort"]),Object(v.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(t){this.props.taxonomy!==t.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var t=this,e=this.props.taxonomy;e&&(this.fetchRequest=H()({path:Object(O.addQueryArgs)("/wp/v2/".concat(e.rest_base),Ni)}),this.fetchRequest.then(function(e){var n=t.sortBySelected(Eo(e));t.fetchRequest=null,t.setState({loading:!1,availableTermsTree:n,availableTerms:e})},function(e){"abort"!==e.statusText&&(t.fetchRequest=null,t.setState({loading:!1}))}))}},{key:"sortBySelected",value:function(t){var e=this.props.terms,n=function t(n){return-1!==e.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(t).filter(function(t){return t}).length>0)};return t.sort(function(t,e){var r=n(t),o=n(e);return r===o?0:r&&!o?-1:!r&&o?1:0}),t}},{key:"setFilterValue",value:function(t){var e=this.state.availableTermsTree,n=t.target.value,r=e.map(this.getFilterMatcher(n)).filter(function(t){return t});this.setState({filterValue:n,filteredTermsTree:r});var o=function t(e){for(var n=0,r=0;r0&&(r.children=r.children.map(e).filter(function(t){return t})),(-1!==r.name.toLowerCase().indexOf(t)||r.children.length>0)&&r}}},{key:"renderTerms",value:function(t){var e=this,n=this.props.terms,r=void 0===n?[]:n;return t.map(function(t){var n="editor-post-taxonomies-hierarchical-term-".concat(t.id);return Object(xr.createElement)("div",{key:t.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(xr.createElement)("input",{id:n,className:"editor-post-taxonomies__hierarchical-terms-input",type:"checkbox",checked:-1!==r.indexOf(t.id),value:t.id,onChange:e.onChange}),Object(xr.createElement)("label",{htmlFor:n},Object(v.unescape)(t.name)),!!t.children.length&&Object(xr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},e.renderTerms(t.children)))})}},{key:"render",value:function(){var t=this.props,e=t.slug,n=t.taxonomy,r=t.instanceId,o=t.hasCreateAction;if(!t.hasAssignAction)return null;var i=this.state,s=i.availableTermsTree,a=i.availableTerms,c=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,h=i.filterValue,f=function(t,r,o){return Object(v.get)(n,["labels",t],"category"===e?r:o)},b=f("add_new_item",Object(Z.__)("Add new category"),Object(Z.__)("Add new term")),m=f("new_item_name",Object(Z.__)("Add new category"),Object(Z.__)("Add new term")),O=f("parent_item",Object(Z.__)("Parent Category"),Object(Z.__)("Parent Term")),g="— ".concat(O," —"),y=b,j="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(v.get)(this.props.taxonomy,["labels","search_items"],Object(Z.__)("Search Terms")),E=Object(v.get)(this.props.taxonomy,["name"],Object(Z.__)("Terms")),S=a.length>=8;return[S&&Object(xr.createElement)("label",{key:"filter-label",htmlFor:_},k),S&&Object(xr.createElement)("input",{type:"search",id:_,value:h,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(xr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":E},this.renderTerms(""!==h?c:s)),!d&&o&&Object(xr.createElement)(Dr.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},b),p&&Object(xr.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(xr.createElement)("label",{htmlFor:j,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(xr.createElement)("input",{type:"text",id:j,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(xr.createElement)(Dr.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:s}),Object(xr.createElement)(Dr.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},y))]}}]),e}(xr.Component),Di=Object(Wr.compose)([Object(l.withSelect)(function(t,e){var n=e.slug,r=t("core/editor").getCurrentPost,o=(0,t("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?t("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}}),Object(l.withDispatch)(function(t){return{onUpdateTerms:function(e,n){t("core/editor").editPost(Object(p.a)({},n,e))}}}),Dr.withSpokenMessages,Wr.withInstanceId,Object(Dr.withFilters)("editor.PostTaxonomyType")])(Ui);var Fi=Object(Wr.compose)([Object(l.withSelect)(function(t){return{postType:t("core/editor").getCurrentPostType(),taxonomies:t("core").getTaxonomies({per_page:-1})}})])(function(t){var e=t.postType,n=t.taxonomies,r=t.taxonomyWrapper,o=void 0===r?v.identity:r,i=Object(v.filter)(n,function(t){return Object(v.includes)(t.types,e)});return Object(v.filter)(i,function(t){return t.visibility.show_ui}).map(function(t){var e=t.hierarchical?Di:Oi;return Object(xr.createElement)(xr.Fragment,{key:"taxonomy-".concat(t.slug)},o(Object(xr.createElement)(e,{slug:t.slug}),t))})});var Mi=Object(Wr.compose)([Object(l.withSelect)(function(t){return{postType:t("core/editor").getCurrentPostType(),taxonomies:t("core").getTaxonomies({per_page:-1})}})])(function(t){var e=t.postType,n=t.taxonomies,r=t.children;return Object(v.some)(n,function(t){return Object(v.includes)(t.types,e)})?r:null}),Vi=n(61),zi=n.n(Vi),Ki=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).edit=t.edit.bind(Object(oo.a)(Object(oo.a)(t))),t.stopEditing=t.stopEditing.bind(Object(oo.a)(Object(oo.a)(t))),t.state={},t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"edit",value:function(t){var e=t.target.value;this.props.onChange(e),this.setState({value:e,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var t=this.state.value,e=this.props.instanceId;return Object(xr.createElement)(xr.Fragment,null,Object(xr.createElement)("label",{htmlFor:"post-content-".concat(e),className:"screen-reader-text"},Object(Z.__)("Type text or HTML")),Object(xr.createElement)(zi.a,{autoComplete:"off",dir:"auto",value:t,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(e),placeholder:Object(Z.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return e.isDirty?null:{value:t.value,isDirty:!1}}}]),e}(xr.Component),qi=Object(Wr.compose)([Object(l.withSelect)(function(t){return{value:(0,t("core/editor").getEditedPostContent)()}}),Object(l.withDispatch)(function(t){var e=t("core/editor"),n=e.editPost,r=e.resetEditorBlocks;return{onChange:function(t){n({content:t})},onPersist:function(t){var e=Object(s.parse)(t);r(e)}}}),Wr.withInstanceId])(Ki),Wi=n(57),Hi=function(t){function e(t){var n,r=t.permalinkParts,o=t.slug;return Object(Mr.a)(this,e),(n=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(oo.a)(Object(oo.a)(n))),n}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"onSavePermalink",value:function(t){var e=Yo(this.state.editedPostName);t.preventDefault(),this.props.onSave(),e!==this.props.postName&&(this.props.editPost({slug:e}),this.setState({editedPostName:e}))}},{key:"render",value:function(){var t=this,e=this.props.permalinkParts,n=e.prefix,r=e.suffix,o=this.state.editedPostName;return Object(xr.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(xr.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(xr.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(xr.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(Z.__)("Edit post permalink"),value:o,onChange:function(e){return t.setState({editedPostName:e.target.value})},type:"text",autoFocus:!0}),Object(xr.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(xr.createElement)(Dr.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(Z.__)("Save")))}}]),e}(xr.Component),Gi=Object(Wr.compose)([Object(l.withSelect)(function(t){return{permalinkParts:(0,t("core/editor").getPermalinkParts)()}}),Object(l.withDispatch)(function(t){return{editPost:t("core/editor").editPost}})])(Hi),Qi=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).addVisibilityCheck=t.addVisibilityCheck.bind(Object(oo.a)(Object(oo.a)(t))),t.onVisibilityChange=t.onVisibilityChange.bind(Object(oo.a)(Object(oo.a)(t))),t.state={isCopied:!1,isEditingPermalink:!1},t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var t=this.props,e=t.isEditable,n=t.refreshPost;e||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(t,e){e.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var t=this,e=this.props,n=e.isEditable,r=e.isNew,o=e.isPublished,i=e.isViewable,s=e.permalinkParts,a=e.postLink,c=e.postSlug,u=e.postID,l=e.postTitle;if(r||!i||!s||!a)return null;var d=this.state,p=d.isCopied,h=d.isEditingPermalink,f=p?Object(Z.__)("Permalink copied"):Object(Z.__)("Copy the permalink"),b=s.prefix,m=s.suffix,v=Object(O.safeDecodeURIComponent)(c)||Yo(l)||u,g=n?b+v+m:b;return Object(xr.createElement)("div",{className:"editor-post-permalink"},Object(xr.createElement)(Dr.ClipboardButton,{className:Yr()("editor-post-permalink__copy",{"is-copied":p}),text:g,label:f,onCopy:function(){return t.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(xr.createElement)("span",{className:"editor-post-permalink__label"},Object(Z.__)("Permalink:")),!h&&Object(xr.createElement)(Dr.ExternalLink,{className:"editor-post-permalink__link",href:o?g:a,target:"_blank",ref:function(e){return t.linkElement=e}},Object(O.safeDecodeURI)(g),"‎"),h&&Object(xr.createElement)(Gi,{slug:v,onSave:function(){return t.setState({isEditingPermalink:!1})}}),n&&!h&&Object(xr.createElement)(Dr.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return t.setState({isEditingPermalink:!0})}},Object(Z.__)("Edit")),!n&&Object(xr.createElement)(Dr.Button,{className:"editor-post-permalink__change",isLarge:!0,href:Qo("options-permalink.php"),onClick:this.addVisibilityCheck,target:"_blank"},Object(Z.__)("Change Permalinks")))}}]),e}(xr.Component),Yi=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isEditedPostNew,r=e.isPermalinkEditable,o=e.getCurrentPost,i=e.getPermalinkParts,s=e.getEditedPostAttribute,a=e.isCurrentPostPublished,c=t("core").getPostType,u=o(),l=u.id,d=u.link,p=c(s("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:s("slug"),isEditable:r(),isPublished:a(),postTitle:s("title"),postID:l,isViewable:Object(v.get)(p,["viewable"],!1)}}),Object(l.withDispatch)(function(t){return{refreshPost:t("core/editor").refreshPost}})])(Qi),$i=/[\r\n]+/g,Xi=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(oo.a)(Object(oo.a)(t))),t.onSelect=t.onSelect.bind(Object(oo.a)(Object(oo.a)(t))),t.onUnselect=t.onUnselect.bind(Object(oo.a)(Object(oo.a)(t))),t.onKeyDown=t.onKeyDown.bind(Object(oo.a)(Object(oo.a)(t))),t.redirectHistory=t.redirectHistory.bind(Object(oo.a)(Object(oo.a)(t))),t.state={isSelected:!1},t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(t){var e=t.target.value.replace($i," ");this.props.onUpdate(e)}},{key:"onKeyDown",value:function(t){t.keyCode===io.ENTER&&(t.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(t){t.shiftKey?this.props.onRedo():this.props.onUndo(),t.preventDefault()}},{key:"render",value:function(){var t=this.props,e=t.hasFixedToolbar,n=t.isCleanNewPost,r=t.isFocusMode,o=t.isPostTypeViewable,i=t.instanceId,s=t.placeholder,a=t.title,c=this.state.isSelected,u=Yr()("wp-block editor-post-title__block",{"is-selected":c,"is-focus-mode":r,"has-fixed-toolbar":e}),l=Object(Wi.decodeEntities)(s);return Object(xr.createElement)(jo,{supportKeys:"title"},Object(xr.createElement)("div",{className:"editor-post-title"},Object(xr.createElement)("div",{className:u},Object(xr.createElement)(Dr.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(xr.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(Z.__)("Add title")),Object(xr.createElement)(zi.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(Z.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:n})),c&&o&&Object(xr.createElement)(Yi,null))))}}]),e}(xr.Component),Zi=Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getEditedPostAttribute,r=e.isCleanNewPost,o=t("core/block-editor").getSettings,i=(0,t("core").getPostType)(n("type")),s=o(),a=s.titlePlaceholder,c=s.focusMode,u=s.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(v.get)(i,["viewable"],!1),placeholder:a,isFocusMode:c,hasFixedToolbar:u}}),Ji=Object(l.withDispatch)(function(t){var e=t("core/block-editor"),n=e.insertDefaultBlock,r=e.clearSelectedBlock,o=t("core/editor"),i=o.editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(t){i({title:t})},onUndo:o.undo,onRedo:o.redo,clearSelectedBlock:r}}),ts=Object(Wr.compose)(Zi,Ji,Wr.withInstanceId,Dr.withFocusOutside)(Xi);var es=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isEditedPostNew,r=e.getCurrentPostId,o=e.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}}),Object(l.withDispatch)(function(t){return{trashPost:t("core/editor").trashPost}})])(function(t){var e=t.isNew,n=t.postId,r=t.postType,o=Object(Ur.a)(t,["isNew","postId","postType"]);return e||!n?null:Object(xr.createElement)(Dr.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(Z.__)("Move to trash"))});var ns=Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.isEditedPostNew,r=e.getCurrentPostId;return{isNew:n(),postId:r()}})(function(t){var e=t.isNew,n=t.postId,r=t.children;return e||!n?null:r});var rs=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.getCurrentPost,r=e.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}})])(function(t){var e=t.hasPublishAction;return(0,t.render)({canEdit:e})}),os=n(98);var is=Object(l.withSelect)(function(t){return{content:t("core/editor").getEditedPostAttribute("content")}})(function(t){var e=t.content,n=Object(Z._x)("words","Word count type. Do not translate!");return Object(xr.createElement)("span",{className:"word-count"},Object(os.count)(e,n))});var ss=Object(l.withSelect)(function(t){var e=t("core/block-editor").getGlobalBlockCount;return{headingCount:e("core/heading"),paragraphCount:e("core/paragraph"),numberOfBlocks:e()}})(function(t){var e=t.headingCount,n=t.paragraphCount,r=t.numberOfBlocks,o=t.hasOutlineItemsDisabled,i=t.onRequestClose;return Object(xr.createElement)(xr.Fragment,null,Object(xr.createElement)("div",{className:"table-of-contents__counts",role:"note","aria-label":Object(Z.__)("Document Statistics"),tabIndex:"0"},Object(xr.createElement)("div",{className:"table-of-contents__count"},Object(Z.__)("Words"),Object(xr.createElement)(is,null)),Object(xr.createElement)("div",{className:"table-of-contents__count"},Object(Z.__)("Headings"),Object(xr.createElement)("span",{className:"table-of-contents__number"},e)),Object(xr.createElement)("div",{className:"table-of-contents__count"},Object(Z.__)("Paragraphs"),Object(xr.createElement)("span",{className:"table-of-contents__number"},n)),Object(xr.createElement)("div",{className:"table-of-contents__count"},Object(Z.__)("Blocks"),Object(xr.createElement)("span",{className:"table-of-contents__number"},r))),e>0&&Object(xr.createElement)(xr.Fragment,null,Object(xr.createElement)("hr",null),Object(xr.createElement)("span",{className:"table-of-contents__title"},Object(Z.__)("Document Outline")),Object(xr.createElement)(no,{onSelect:i,hasOutlineItemsDisabled:o})))});var as=Object(l.withSelect)(function(t){return{hasBlocks:!!t("core/block-editor").getBlockCount()}})(function(t){var e=t.hasBlocks,n=t.hasOutlineItemsDisabled;return Object(xr.createElement)(Dr.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(xr.createElement)(Dr.IconButton,{onClick:e?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(Z.__)("Content structure"),labelPosition:"bottom","aria-disabled":!e})},renderContent:function(t){var e=t.onClose;return Object(xr.createElement)(ss,{onRequestClose:e,hasOutlineItemsDisabled:n})}})}),cs=function(t){function e(){var t;return Object(Mr.a)(this,e),(t=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).warnIfUnsavedChanges=t.warnIfUnsavedChanges.bind(Object(oo.a)(Object(oo.a)(t))),t}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(t){if(this.props.isDirty)return t.returnValue=Object(Z.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue}},{key:"render",value:function(){return null}}]),e}(xr.Component),us=Object(l.withSelect)(function(t){return{isDirty:t("core/editor").isEditedPostDirty()}})(cs),ls=n(41),ds=n.n(ls),ps=n(227),hs=n.n(ps),fs=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,bs=function(t,e){e=e||{};var n=1,r=1;function o(t){var e=t.match(/\n/g);e&&(n+=e.length);var o=t.lastIndexOf("\n");r=~o?t.length-o:r+t.length}function i(){var t={line:n,column:r};return function(e){return e.position=new s(t),h(),e}}function s(t){this.start=t,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;var a=[];function c(o){var i=new Error(e.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=e.source,i.line=n,i.column=r,i.source=t,!e.silent)throw i;a.push(i)}function u(){return p(/^{\s*/)}function l(){return p(/^}/)}function d(){var e,n=[];for(h(),b(n);t.length&&"}"!==t.charAt(0)&&(e=P()||w());)!1!==e&&(n.push(e),b(n));return n}function p(e){var n=e.exec(t);if(n){var r=n[0];return o(r),t=t.slice(r.length),n}}function h(){p(/^\s*/)}function b(t){var e;for(t=t||[];e=m();)!1!==e&&t.push(e);return t}function m(){var e=i();if("/"===t.charAt(0)&&"*"===t.charAt(1)){for(var n=2;""!==t.charAt(n)&&("*"!==t.charAt(n)||"/"!==t.charAt(n+1));)++n;if(n+=2,""===t.charAt(n-1))return c("End of comment missing");var s=t.slice(2,n-2);return r+=2,o(s),t=t.slice(n),r+=2,e({type:"comment",comment:s})}}function v(){var t=p(/^([^{]+)/);if(t)return ms(t[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(t){return t.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(t){return t.replace(/\u200C/g,",")})}function O(){var t=i(),e=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(e){if(e=ms(e[0]),!p(/^:\s*/))return c("property missing ':'");var n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=t({type:"declaration",property:e.replace(fs,""),value:n?ms(n[0]).replace(fs,""):""});return p(/^[;\s]*/),r}}function g(){var t,e=[];if(!u())return c("missing '{'");for(b(e);t=O();)!1!==t&&(e.push(t),b(e));return l()?e:c("missing '}'")}function y(){for(var t,e=[],n=i();t=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),p(/^,\s*/);if(e.length)return n({type:"keyframe",values:e,declarations:g()})}var j,_=S("import"),k=S("charset"),E=S("namespace");function S(t){var e=new RegExp("^@"+t+"\\s*([^;]+);");return function(){var n=i(),r=p(e);if(r){var o={type:t};return o[t]=r[1].trim(),n(o)}}}function P(){if("@"===t[0])return function(){var t=i(),e=p(/^@([-\w]+)?keyframes\s*/);if(e){var n=e[1];if(!(e=p(/^([-\w]+)\s*/)))return c("@keyframes missing name");var r,o=e[1];if(!u())return c("@keyframes missing '{'");for(var s=b();r=y();)s.push(r),s=s.concat(b());return l()?t({type:"keyframes",name:o,vendor:n,keyframes:s}):c("@keyframes missing '}'")}}()||function(){var t=i(),e=p(/^@media *([^{]+)/);if(e){var n=ms(e[1]);if(!u())return c("@media missing '{'");var r=b().concat(d());return l()?t({type:"media",media:n,rules:r}):c("@media missing '}'")}}()||function(){var t=i(),e=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return t({type:"custom-media",name:ms(e[1]),media:ms(e[2])})}()||function(){var t=i(),e=p(/^@supports *([^{]+)/);if(e){var n=ms(e[1]);if(!u())return c("@supports missing '{'");var r=b().concat(d());return l()?t({type:"supports",supports:n,rules:r}):c("@supports missing '}'")}}()||_()||k()||E()||function(){var t=i(),e=p(/^@([-\w]+)?document *([^{]+)/);if(e){var n=ms(e[1]),r=ms(e[2]);if(!u())return c("@document missing '{'");var o=b().concat(d());return l()?t({type:"document",document:r,vendor:n,rules:o}):c("@document missing '}'")}}()||function(){var t=i();if(p(/^@page */)){var e=v()||[];if(!u())return c("@page missing '{'");for(var n,r=b();n=O();)r.push(n),r=r.concat(b());return l()?t({type:"page",selectors:e,declarations:r}):c("@page missing '}'")}}()||function(){var t=i();if(p(/^@host\s*/)){if(!u())return c("@host missing '{'");var e=b().concat(d());return l()?t({type:"host",rules:e}):c("@host missing '}'")}}()||function(){var t=i();if(p(/^@font-face\s*/)){if(!u())return c("@font-face missing '{'");for(var e,n=b();e=O();)n.push(e),n=n.concat(b());return l()?t({type:"font-face",declarations:n}):c("@font-face missing '}'")}}()}function w(){var t=i(),e=v();return e?(b(),t({type:"rule",selectors:e,declarations:g()})):c("selector missing")}return function t(e,n){var r=e&&"string"==typeof e.type;var o=r?e:n;for(var i in e){var s=e[i];Array.isArray(s)?s.forEach(function(e){t(e,o)}):s&&"object"===Object(f.a)(s)&&t(s,o)}r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return e}((j=d(),{type:"stylesheet",stylesheet:{source:e.source,rules:j,parsingErrors:a}}))};function ms(t){return t?t.replace(/^\s+|\s+$/g,""):""}var vs=n(109),Os=n.n(vs),gs=ys;function ys(t){this.options=t||{}}ys.prototype.emit=function(t){return t},ys.prototype.visit=function(t){return this[t.type](t)},ys.prototype.mapVisit=function(t,e){var n="";e=e||"";for(var r=0,o=t.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(h.a)({},n,{selectors:n.selectors.map(function(n){return Object(v.includes)(e,n.trim())?n:n.match(Bs)?n.replace(/^(body|html|:root)/,t):t+" "+n})}):n}},Is=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(v.map)(t,function(t){var n=t.css,r=t.baseURL,o=[];return e&&o.push(As(e)),r&&o.push(xs(r)),o.length?Ps(n,Object(Wr.compose)(o)):n})},Ls=n(35);function Rs(){return(Rs=Object(he.a)(q.a.mark(function t(e){var n,r,o,i,s,a,c,u,l,p,f,b,m,O,g,y,j,_,k,E,S,P,w,T,C,B,A,I,L;return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=e.allowedTypes,r=e.additionalData,o=void 0===r?{}:r,i=e.filesList,s=e.maxUploadFileSize,a=e.onError,c=void 0===a?v.noop:a,u=e.onFileChange,l=e.wpAllowedMimeTypes,p=void 0===l?null:l,f=Object(x.a)(i),b=[],m=function(t,e){Object(Ls.revokeBlobURL)(Object(v.get)(b,[t,"url"])),b[t]=e,u(Object(v.compact)(b))},O=function(t){return!n||Object(v.some)(n,function(e){return Object(v.includes)(e,"/")?e===t:Object(v.startsWith)(t,"".concat(e,"/"))})},g=(R=p)?Object(v.flatMap)(R,function(t,e){var n=t.split("/"),r=Object(d.a)(n,1)[0],o=e.split("|");return[t].concat(Object(x.a)(Object(v.map)(o,function(t){return"".concat(r,"/").concat(t)})))}):R,y=function(t){return Object(v.includes)(g,t)},j=function(t){t.message=[Object(xr.createElement)("strong",{key:"filename"},t.file.name),": ",t.message],c(t)},_=[],k=!0,E=!1,S=void 0,t.prev=12,P=f[Symbol.iterator]();case 14:if(k=(w=P.next()).done){t.next=34;break}if(T=w.value,!g||y(T.type)){t.next=19;break}return j({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(Z.__)("Sorry, this file type is not permitted for security reasons."),file:T}),t.abrupt("continue",31);case 19:if(O(T.type)){t.next=22;break}return j({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(Z.__)("Sorry, this file type is not supported here."),file:T}),t.abrupt("continue",31);case 22:if(!(s&&T.size>s)){t.next=25;break}return j({code:"SIZE_ABOVE_LIMIT",message:Object(Z.__)("This file exceeds the maximum upload size for this site."),file:T}),t.abrupt("continue",31);case 25:if(!(T.size<=0)){t.next=28;break}return j({code:"EMPTY_FILE",message:Object(Z.__)("This file is empty."),file:T}),t.abrupt("continue",31);case 28:_.push(T),b.push({url:Object(Ls.createBlobURL)(T)}),u(b);case 31:k=!0,t.next=14;break;case 34:t.next=40;break;case 36:t.prev=36,t.t0=t.catch(12),E=!0,S=t.t0;case 40:t.prev=40,t.prev=41,k||null==P.return||P.return();case 43:if(t.prev=43,!E){t.next=46;break}throw S;case 46:return t.finish(43);case 47:return t.finish(40);case 48:C=0;case 49:if(!(C<_.length)){t.next=68;break}return B=_[C],t.prev=51,t.next=54,Ns(B,o);case 54:A=t.sent,I=Object(h.a)({},Object(v.omit)(A,["alt_text","source_url"]),{alt:A.alt_text,caption:Object(v.get)(A,["caption","raw"],""),title:A.title.raw,url:A.source_url}),m(C,I),t.next=65;break;case 59:t.prev=59,t.t1=t.catch(51),m(C,null),L=void 0,L=Object(v.has)(t.t1,["message"])?Object(v.get)(t.t1,["message"]):Object(Z.sprintf)(Object(Z.__)("Error while uploading file %s to the media library."),B.name),c({code:"GENERAL",message:L,file:B});case 65:++C,t.next=49;break;case 68:case"end":return t.stop()}var R},t,this,[[12,36,40,48],[41,,43,47],[51,59]])}))).apply(this,arguments)}function Ns(t,e){var n=new window.FormData;return n.append("file",t,t.name||t.type.replace("/",".")),Object(v.forEach)(e,function(t,e){return n.append(e,t)}),H()({path:"/wp/v2/media",body:n,method:"POST"})}var Us=function(t){var e=t.additionalData,n=void 0===e?{}:e,r=t.allowedTypes,o=t.filesList,i=t.maxUploadFileSize,s=t.onError,a=void 0===s?v.noop:s,c=t.onFileChange,u=Object(l.select)("core/editor"),d=u.getCurrentPostId,p=u.getEditorSettings,f=p().allowedMimeTypes;i=i||p().maxUploadFileSize,function(t){Rs.apply(this,arguments)}({allowedTypes:r,filesList:o,onFileChange:c,additionalData:Object(h.a)({post:d()},n),maxUploadFileSize:i,onError:function(t){var e=t.message;return a(e)},wpAllowedMimeTypes:f})},Ds=function(t){function e(t){var n;return Object(Mr.a)(this,e),(n=Object(zr.a)(this,Object(Kr.a)(e).apply(this,arguments))).getBlockEditorSettings=ds()(n.getBlockEditorSettings,{maxSize:1}),t.recovery?Object(zr.a)(n):(t.updatePostLock(t.settings.postLock),t.setupEditor(t.post,t.initialEdits,t.settings.template),t.settings.autosave&&t.createWarningNotice(Object(Z.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(Z.__)("View the autosave"),url:t.settings.autosave.editLink}]}),n)}return Object(qr.a)(e,t),Object(Vr.a)(e,[{key:"getBlockEditorSettings",value:function(t,e,n,r){return Object(h.a)({},Object(v.pick)(t,["alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","colors","disableCustomColors","disableCustomFontSizes","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","isRTL","maxWidth","styles","templateLock","titlePlaceholder"]),{__experimentalMetaSource:{value:e,onChange:n},__experimentalReusableBlocks:r,__experimentalMediaUpload:Us})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var t=Is(this.props.settings.styles,".editor-styles-wrapper");Object(v.map)(t,function(t){if(t){var e=document.createElement("style");e.innerHTML=t,document.body.appendChild(e)}})}}},{key:"componentDidUpdate",value:function(t){this.props.settings!==t.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.blocks,r=t.resetEditorBlocks,o=t.isReady,s=t.settings,a=t.meta,c=t.onMetaChange,u=t.reusableBlocks,l=t.resetEditorBlocksWithoutUndoLevel;if(!o)return null;var d=this.getBlockEditorSettings(s,a,c,u);return Object(xr.createElement)(i.BlockEditorProvider,{value:n,onInput:l,onChange:r,settings:d},e)}}]),e}(xr.Component),Fs=Object(Wr.compose)([Object(l.withSelect)(function(t){var e=t("core/editor"),n=e.__unstableIsEditorReady,r=e.getEditorBlocks,o=e.getEditedPostAttribute,i=e.__experimentalGetReusableBlocks;return{isReady:n(),blocks:r(),meta:o("meta"),reusableBlocks:i()}}),Object(l.withDispatch)(function(t){var e=t("core/editor"),n=e.setupEditor,r=e.updatePostLock,o=e.resetEditorBlocks,i=e.editPost,s=e.updateEditorSettings;return{setupEditor:n,updatePostLock:r,createWarningNotice:t("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:s,resetEditorBlocksWithoutUndoLevel:function(t){o(t,{__unstableShouldCreateUndoLevel:!1})},onMetaChange:function(t){i({meta:t})}}})])(Ds),Ms=[Rr],Vs=Object(v.once)(function(){return Object(l.dispatch)("core/editor").__experimentalFetchReusableBlocks()});Object(Cr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",function(t,e){return t||(t=Ms.map(v.clone),e===Object(s.getDefaultBlockName)()&&(t.push(Object(v.clone)(Lr)),Vs())),t}),n.d(e,"ServerSideRender",function(){return Fr}),n.d(e,"AutosaveMonitor",function(){return Gr}),n.d(e,"DocumentOutline",function(){return no}),n.d(e,"DocumentOutlineCheck",function(){return ro}),n.d(e,"VisualEditorGlobalKeyboardShortcuts",function(){return po}),n.d(e,"EditorGlobalKeyboardShortcuts",function(){return ho}),n.d(e,"TextEditorGlobalKeyboardShortcuts",function(){return fo}),n.d(e,"EditorHistoryRedo",function(){return bo}),n.d(e,"EditorHistoryUndo",function(){return mo}),n.d(e,"EditorNotices",function(){return Oo}),n.d(e,"ErrorBoundary",function(){return go}),n.d(e,"PageAttributesCheck",function(){return yo}),n.d(e,"PageAttributesOrder",function(){return ko}),n.d(e,"PageAttributesParent",function(){return wo}),n.d(e,"PageTemplate",function(){return To}),n.d(e,"PostAuthor",function(){return Bo}),n.d(e,"PostAuthorCheck",function(){return Co}),n.d(e,"PostComments",function(){return Ao}),n.d(e,"PostExcerpt",function(){return Io}),n.d(e,"PostExcerptCheck",function(){return Lo}),n.d(e,"PostFeaturedImage",function(){return Ko}),n.d(e,"PostFeaturedImageCheck",function(){return No}),n.d(e,"PostFormat",function(){return Ho}),n.d(e,"PostFormatCheck",function(){return qo}),n.d(e,"PostLastRevision",function(){return $o}),n.d(e,"PostLastRevisionCheck",function(){return Go}),n.d(e,"PostLockedModal",function(){return ti}),n.d(e,"PostPendingStatus",function(){return ni}),n.d(e,"PostPendingStatusCheck",function(){return ei}),n.d(e,"PostPingbacks",function(){return ri}),n.d(e,"PostPreviewButton",function(){return Zo}),n.d(e,"PostPublishButton",function(){return si}),n.d(e,"PostPublishButtonLabel",function(){return oi}),n.d(e,"PostPublishPanel",function(){return Ci}),n.d(e,"PostSavedState",function(){return Ai}),n.d(e,"PostSchedule",function(){return di}),n.d(e,"PostScheduleCheck",function(){return Ii}),n.d(e,"PostScheduleLabel",function(){return pi}),n.d(e,"PostSticky",function(){return Ri}),n.d(e,"PostStickyCheck",function(){return Li}),n.d(e,"PostSwitchToDraftButton",function(){return xi}),n.d(e,"PostTaxonomies",function(){return Fi}),n.d(e,"PostTaxonomiesCheck",function(){return Mi}),n.d(e,"PostTextEditor",function(){return qi}),n.d(e,"PostTitle",function(){return ts}),n.d(e,"PostTrash",function(){return es}),n.d(e,"PostTrashCheck",function(){return ns}),n.d(e,"PostTypeSupportCheck",function(){return jo}),n.d(e,"PostVisibility",function(){return ui}),n.d(e,"PostVisibilityLabel",function(){return li}),n.d(e,"PostVisibilityCheck",function(){return rs}),n.d(e,"TableOfContents",function(){return as}),n.d(e,"UnsavedChangesWarning",function(){return us}),n.d(e,"WordCount",function(){return is}),n.d(e,"EditorProvider",function(){return Fs}),n.d(e,"blockAutocompleter",function(){return Lr}),n.d(e,"userAutocompleter",function(){return Rr}),n.d(e,"Autocomplete",function(){return i.Autocomplete}),n.d(e,"AlignmentToolbar",function(){return i.AlignmentToolbar}),n.d(e,"BlockAlignmentToolbar",function(){return i.BlockAlignmentToolbar}),n.d(e,"BlockControls",function(){return i.BlockControls}),n.d(e,"BlockEdit",function(){return i.BlockEdit}),n.d(e,"BlockEditorKeyboardShortcuts",function(){return i.BlockEditorKeyboardShortcuts}),n.d(e,"BlockFormatControls",function(){return i.BlockFormatControls}),n.d(e,"BlockIcon",function(){return i.BlockIcon}),n.d(e,"BlockInspector",function(){return i.BlockInspector}),n.d(e,"BlockList",function(){return i.BlockList}),n.d(e,"BlockMover",function(){return i.BlockMover}),n.d(e,"BlockNavigationDropdown",function(){return i.BlockNavigationDropdown}),n.d(e,"BlockSelectionClearer",function(){return i.BlockSelectionClearer}),n.d(e,"BlockSettingsMenu",function(){return i.BlockSettingsMenu}),n.d(e,"BlockTitle",function(){return i.BlockTitle}),n.d(e,"BlockToolbar",function(){return i.BlockToolbar}),n.d(e,"ColorPalette",function(){return i.ColorPalette}),n.d(e,"ContrastChecker",function(){return i.ContrastChecker}),n.d(e,"CopyHandler",function(){return i.CopyHandler}),n.d(e,"createCustomColorsHOC",function(){return i.createCustomColorsHOC}),n.d(e,"DefaultBlockAppender",function(){return i.DefaultBlockAppender}),n.d(e,"FontSizePicker",function(){return i.FontSizePicker}),n.d(e,"getColorClassName",function(){return i.getColorClassName}),n.d(e,"getColorObjectByAttributeValues",function(){return i.getColorObjectByAttributeValues}),n.d(e,"getColorObjectByColorValue",function(){return i.getColorObjectByColorValue}),n.d(e,"getFontSize",function(){return i.getFontSize}),n.d(e,"getFontSizeClass",function(){return i.getFontSizeClass}),n.d(e,"Inserter",function(){return i.Inserter}),n.d(e,"InnerBlocks",function(){return i.InnerBlocks}),n.d(e,"InspectorAdvancedControls",function(){return i.InspectorAdvancedControls}),n.d(e,"InspectorControls",function(){return i.InspectorControls}),n.d(e,"PanelColorSettings",function(){return i.PanelColorSettings}),n.d(e,"PlainText",function(){return i.PlainText}),n.d(e,"RichText",function(){return i.RichText}),n.d(e,"RichTextShortcut",function(){return i.RichTextShortcut}),n.d(e,"RichTextToolbarButton",function(){return i.RichTextToolbarButton}),n.d(e,"RichTextInserterItem",function(){return i.RichTextInserterItem}),n.d(e,"UnstableRichTextInputEvent",function(){return i.UnstableRichTextInputEvent}),n.d(e,"MediaPlaceholder",function(){return i.MediaPlaceholder}),n.d(e,"MediaUpload",function(){return i.MediaUpload}),n.d(e,"MediaUploadCheck",function(){return i.MediaUploadCheck}),n.d(e,"MultiBlocksSwitcher",function(){return i.MultiBlocksSwitcher}),n.d(e,"MultiSelectScrollIntoView",function(){return i.MultiSelectScrollIntoView}),n.d(e,"NavigableToolbar",function(){return i.NavigableToolbar}),n.d(e,"ObserveTyping",function(){return i.ObserveTyping}),n.d(e,"PreserveScrollInReorder",function(){return i.PreserveScrollInReorder}),n.d(e,"SkipToSelectedBlock",function(){return i.SkipToSelectedBlock}),n.d(e,"URLInput",function(){return i.URLInput}),n.d(e,"URLInputButton",function(){return i.URLInputButton}),n.d(e,"URLPopover",function(){return i.URLPopover}),n.d(e,"Warning",function(){return i.Warning}),n.d(e,"WritingFlow",function(){return i.WritingFlow}),n.d(e,"withColorContext",function(){return i.withColorContext}),n.d(e,"withColors",function(){return i.withColors}),n.d(e,"withFontSizes",function(){return i.withFontSizes}),n.d(e,"mediaUpload",function(){return Us}),n.d(e,"cleanForSlug",function(){return Yo}),n.d(e,"transformStyles",function(){return Is})},37:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",function(){return r})},38:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,"a",function(){return r})},4:function(t,e){!function(){t.exports=this.wp.components}()},40:function(t,e){!function(){t.exports=this.wp.viewport}()},41:function(t,e,n){t.exports=function(t,e){var n,r,o,i=0;function s(){var e,s,a=r,c=arguments.length;t:for(;a;){if(a.args.length===arguments.length){for(s=0;s=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(55),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},55:function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=y;var d="suspendedStart",p="suspendedYield",h="executing",f="completed",b={},m={};m[s]=function(){return this};var v=Object.getPrototypeOf,O=v&&v(v(B([])));O&&O!==r&&o.call(O,s)&&(m=O);var g=E.prototype=_.prototype=Object.create(m);k.prototype=g.constructor=E,E.constructor=k,E[c]=k.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(g),t},l.awrap=function(t){return{__await:t}},S(P.prototype),P.prototype[a]=function(){return this},l.AsyncIterator=P,l.async=function(t,e,n,r){var o=new P(y(t,e,n,r));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},S(g),g[c]="Generator",g[s]=function(){return this},g.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=B,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=o.call(s,"catchLoc"),u=o.call(s,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:B(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}function y(t,e,n,r){var o=e&&e.prototype instanceof _?e:_,i=Object.create(o.prototype),s=new x(r||[]);return i._invoke=function(t,e,n){var r=d;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=w(s,n);if(a){if(a===b)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=j(t,e,n);if("normal"===c.type){if(r=n.done?f:p,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(t,n,s),i}function j(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function _(){}function k(){}function E(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function P(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,s){var a=j(t[n],t,r);if("throw"!==a.type){var c=a.arg,u=c.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,s)},function(t){e("throw",t,i,s)}):Promise.resolve(u).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,s)})}s(a.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,w(t,e),"throw"===e.method))return b;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var o=j(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,b;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,b):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function B(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),d=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(120);function g(t,e,n){if(t&&o.isObject(t)&&t instanceof i)return t;var r=new i;return r.parse(t,e,n),r}i.prototype.parse=function(t,e,n){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i127?I+="x":I+=A[L];if(!I.match(h)){var N=x.slice(0,w),U=x.slice(w+1),D=A.match(f);D&&(N.push(D[1]),U.unshift(D[2])),U.length&&(g="/"+U.join(".")+g),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!b[_])for(w=0,B=l.length;w0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=t.search,n.query=t.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=k.slice(-1)[0],P=(n.host||t.host||k.length>1)&&("."===S||".."===S)||""===S,w=0,T=k.length;T>=0;T--)"."===(S=k[T])?k.splice(T,1):".."===S?(k.splice(T,1),w++):w&&(k.splice(T,1),w--);if(!j&&!_)for(;w--;w)k.unshift("..");!j||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),P&&"/"!==k.join("/").substr(-1)&&k.push("");var C,x=""===k[0]||k[0]&&"/"===k[0].charAt(0);E&&(n.hostname=n.host=x?"":k.length?k.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(j=j||n.host&&k.length)&&!x&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},89:function(t,e,n){"use strict";var r=n(90);function o(){}t.exports=function(){function t(t,e,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=o,n.PropTypes=n,n}},9:function(t,e,n){"use strict";function r(t,e){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},26:function(e,t){!function(){e.exports=this.React}()},29:function(e,t,n){"use strict";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 o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},320:function(e,t,n){"use strict";n.r(t);var r=n(8),o=n(21),i=n(26),u=n(2);function c(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return _(e,t,n);switch(Object(s.a)(e)){case"string":return Object(d.escapeHTML)(e);case"number":return e.toString()}var c=e.type,a=e.props;switch(c){case i.StrictMode:case i.Fragment:return _(a.children,t,n);case p:var l=a.children,f=Object(o.a)(a,["children"]);return P(Object(u.isEmpty)(f)?null:"div",Object(r.a)({},f,{dangerouslySetInnerHTML:{__html:l}}),t,n)}switch(Object(s.a)(c)){case"string":return P(c,a,t,n);case"function":return c.prototype&&"function"==typeof c.prototype.render?function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());return E(o.render(),n,r)}(c,a,t,n):E(c(a,n),t,n)}switch(c&&c.$$typeof){case m.$$typeof:return _(a.children,a.value,n);case y.$$typeof:return E(a.children(t||c._currentValue),t,n)}return""}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=_(t.value,n,r),t=Object(u.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=_(t.children,n,r)),!e)return o;var i=function(e){var t="";for(var n in e){var r=C(n);if(Object(d.isValidAttributeName)(r)){var o=x(n,e[n]);if(h.has(Object(s.a)(o))&&!w(n)){var i=g.has(r);if(!i||!1!==o){var u=i||S(n,["data-","aria-"])||v.has(r);("boolean"!=typeof o||u)&&(t+=" "+r,i||("string"==typeof o&&(o=Object(d.escapeAttribute)(o)),t+='="'+o+'"'))}}}}return t}(t);return O.has(e)?"<"+e+i+"/>":"<"+e+i+">"+o+""}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Object(u.castArray)(e);for(var o=0;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},27:function(e,t){!function(){e.exports=this.React}()},32:function(e,t,n){"use strict";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 o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},374:function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(21),u=n(27),i=n(2);function c(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return _(e,t,n);switch(Object(s.a)(e)){case"string":return Object(d.escapeHTML)(e);case"number":return e.toString()}var c=e.type,a=e.props;switch(c){case u.StrictMode:case u.Fragment:return _(a.children,t,n);case p:var f=a.children,l=Object(o.a)(a,["children"]);return P(Object(i.isEmpty)(l)?null:"div",Object(r.a)({},l,{dangerouslySetInnerHTML:{__html:f}}),t,n)}switch(Object(s.a)(c)){case"string":return P(c,a,t,n);case"function":return c.prototype&&"function"==typeof c.prototype.render?function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());return M(o.render(),n,r)}(c,a,t,n):M(c(a,n),t,n)}switch(c&&c.$$typeof){case m.$$typeof:return _(a.children,a.value,n);case y.$$typeof:return M(a.children(t||c._currentValue),t,n)}return""}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=_(t.value,n,r),t=Object(i.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=_(t.children,n,r)),!e)return o;var u=function(e){var t="";for(var n in e){var r=x(n);if(Object(d.isValidAttributeName)(r)){var o=C(n,e[n]);if(h.has(Object(s.a)(o))&&!w(n)){var u=g.has(r);if(!u||!1!==o){var i=u||S(n,["data-","aria-"])||v.has(r);("boolean"!=typeof o||i)&&(t+=" "+r,u||("string"==typeof o&&(o=Object(d.escapeAttribute)(o)),t+='="'+o+'"'))}}}}return t}(t);return O.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+""}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Object(i.castArray)(e);for(var o=0;o/g, '>'); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/escape-html/build-module/index.js /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeAmpersand", function() { return escapeAmpersand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeQuotationMark", function() { return escapeQuotationMark; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeLessThan", function() { return escapeLessThan; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeAttribute", function() { return escapeAttribute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeHTML", function() { return escapeHTML; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidAttributeName", function() { return isValidAttributeName; }); +/** + * Internal dependencies + */ + /** * Regular expression matching invalid attribute names. * @@ -109,6 +132,7 @@ __webpack_require__.r(__webpack_exports__); * * @type {RegExp} */ + var REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/; /** * Returns a string with ampersands escaped. Note that this is an imperfect @@ -158,13 +182,21 @@ function escapeLessThan(value) { * "[...] the text cannot contain an ambiguous ampersand [...] must not contain * any literal U+0022 QUOTATION MARK characters (")" * + * Note we also escape the greater than symbol, as this is used by wptexturize to + * split HTML strings. This is a WordPress specific fix + * + * Note that if a resolution for Trac#45387 comes to fruition, it is no longer + * necessary for `__unstableEscapeGreaterThan` to be used. + * + * See: https://core.trac.wordpress.org/ticket/45387 + * * @param {string} value Attribute value. * * @return {string} Escaped attribute value. */ function escapeAttribute(value) { - return escapeQuotationMark(escapeAmpersand(value)); + return __unstableEscapeGreaterThan(escapeQuotationMark(escapeAmpersand(value))); } /** * Returns an escaped HTML element value. diff --git a/wp-includes/js/dist/escape-html.min.js b/wp-includes/js/dist/escape-html.min.js index 5b7d45da76..24e984b050 100644 --- a/wp-includes/js/dist/escape-html.min.js +++ b/wp-includes/js/dist/escape-html.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.escapeHtml=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.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 u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));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=275)}({275:function(e,t,n){"use strict";n.r(t),n.d(t,"escapeAmpersand",function(){return u}),n.d(t,"escapeQuotationMark",function(){return o}),n.d(t,"escapeLessThan",function(){return i}),n.d(t,"escapeAttribute",function(){return c}),n.d(t,"escapeHTML",function(){return f}),n.d(t,"isValidAttributeName",function(){return a});var r=/[\u007F-\u009F "'>\/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(/\/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(//g,">")}(o(u(e)))}function f(e){return i(u(e))}function a(e){return!r.test(e)}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/format-library.js b/wp-includes/js/dist/format-library.js index 97947f88c7..ad9620ea41 100644 --- a/wp-includes/js/dist/format-library.js +++ b/wp-includes/js/dist/format-library.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 313); +/******/ return __webpack_require__(__webpack_require__.s = 367); /******/ }) /************************************************************************/ /******/ ({ @@ -119,7 +119,7 @@ function _classCallCheck(instance, Constructor) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); @@ -261,7 +261,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 17: +/***/ 18: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["keycodes"]; }()); @@ -326,14 +326,29 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 22: +/***/ 23: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["url"]; }()); /***/ }), -/***/ 29: +/***/ 3: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -356,22 +371,7 @@ function _typeof(obj) { /***/ }), -/***/ 3: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), - -/***/ 313: +/***/ 367: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -389,8 +389,8 @@ var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); -// EXTERNAL MODULE: external {"this":["wp","editor"]} -var external_this_wp_editor_ = __webpack_require__(6); +// EXTERNAL MODULE: external {"this":["wp","blockEditor"]} +var external_this_wp_blockEditor_ = __webpack_require__(8); // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/bold/index.js @@ -419,11 +419,11 @@ var bold = { })); }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "primary", character: "b", onUse: onToggle - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { name: "bold", icon: "editor-bold", title: Object(external_this_wp_i18n_["__"])('Bold'), @@ -431,7 +431,7 @@ var bold = { isActive: isActive, shortcutType: "primary", shortcutCharacter: "b" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["UnstableRichTextInputEvent"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["UnstableRichTextInputEvent"], { inputType: "formatBold", onInput: onToggle })); @@ -447,6 +447,7 @@ var bold = { + var code_name = 'core/code'; var code = { name: code_name, @@ -455,7 +456,8 @@ var code = { className: null, edit: function edit(_ref) { var value = _ref.value, - onChange = _ref.onChange; + onChange = _ref.onChange, + isActive = _ref.isActive; var onToggle = function onToggle() { return onChange(Object(external_this_wp_richText_["toggleFormat"])(value, { @@ -463,16 +465,23 @@ var code = { })); }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "access", character: "x", onUse: onToggle - }); + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { + icon: "editor-code", + title: Object(external_this_wp_i18n_["__"])('Code'), + onClick: onToggle, + isActive: isActive, + shortcutType: "access", + shortcutCharacter: "x" + })); } }; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js var classCallCheck = __webpack_require__(10); @@ -496,7 +505,7 @@ var assertThisInitialized = __webpack_require__(3); var external_this_wp_components_ = __webpack_require__(4); // EXTERNAL MODULE: external {"this":["wp","keycodes"]} -var external_this_wp_keycodes_ = __webpack_require__(17); +var external_this_wp_keycodes_ = __webpack_require__(18); // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js @@ -595,14 +604,13 @@ var image_image = { var _this$props = this.props, value = _this$props.value, onChange = _this$props.onChange, - isActive = _this$props.isActive, - activeAttributes = _this$props.activeAttributes; - var style = activeAttributes.style; // Rerender PositionedAtSelection when the selection changes or when + isObjectActive = _this$props.isObjectActive, + activeObjectAttributes = _this$props.activeObjectAttributes; + var style = activeObjectAttributes.style; // Rerender PositionedAtSelection when the selection changes or when // the width changes. var key = value.start + style; - return Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextInserterItem"], { - name: image_name, + return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" @@ -610,8 +618,9 @@ var image_image = { d: "M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z" })), title: Object(external_this_wp_i18n_["__"])('Inline Image'), - onClick: this.openModal - }), this.state.modal && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["MediaUpload"], { + onClick: this.openModal, + isActive: isObjectActive + }), this.state.modal && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { allowedTypes: ALLOWED_MEDIA_TYPES, onSelect: function onSelect(_ref) { var id = _ref.id, @@ -637,31 +646,30 @@ var image_image = { open(); return null; } - }), isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PositionedAtSelection"], { + }), isObjectActive && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PositionedAtSelection"], { key: key }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { position: "bottom center", focusOnMount: false }, Object(external_this_wp_element_["createElement"])("form", { - className: "editor-format-toolbar__image-container-content", + className: "editor-format-toolbar__image-container-content block-editor-format-toolbar__image-container-content", onKeyPress: stopKeyPropagation, onKeyDown: this.onKeyDown, onSubmit: function onSubmit(event) { - var newFormats = value.formats.slice(0); - newFormats[value.start] = [{ + var newReplacements = value.replacements.slice(); + newReplacements[value.start] = { type: image_name, - object: true, - attributes: Object(objectSpread["a" /* default */])({}, activeAttributes, { + attributes: Object(objectSpread["a" /* default */])({}, activeObjectAttributes, { style: "width: ".concat(_this2.state.width, "px;") }) - }]; + }; onChange(Object(objectSpread["a" /* default */])({}, value, { - formats: newFormats + replacements: newReplacements })); event.preventDefault(); } }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { - className: "editor-format-toolbar__image-container-value", + className: "editor-format-toolbar__image-container-value block-editor-format-toolbar__image-container-value", type: "number", label: Object(external_this_wp_i18n_["__"])('Width'), value: this.state.width, @@ -676,7 +684,7 @@ var image_image = { }], [{ key: "getDerivedStateFromProps", value: function getDerivedStateFromProps(props, state) { - var style = props.activeAttributes.style; + var style = props.activeObjectAttributes.style; if (style === state.previousStyle) { return null; @@ -727,11 +735,11 @@ var italic = { })); }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "primary", character: "i", onUse: onToggle - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { name: "italic", icon: "editor-italic", title: Object(external_this_wp_i18n_["__"])('Italic'), @@ -739,7 +747,7 @@ var italic = { isActive: isActive, shortcutType: "primary", shortcutCharacter: "i" - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["UnstableRichTextInputEvent"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["UnstableRichTextInputEvent"], { inputType: "formatItalic", onInput: onToggle })); @@ -747,7 +755,7 @@ var italic = { }; // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(22); +var external_this_wp_url_ = __webpack_require__(23); // EXTERNAL MODULE: ./node_modules/classnames/index.js var classnames = __webpack_require__(16); @@ -912,11 +920,11 @@ var inline_LinkEditor = function LinkEditor(_ref) { /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ Object(external_this_wp_element_["createElement"])("form", { - className: "editor-format-toolbar__link-container-content", + className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content", onKeyPress: inline_stopKeyPropagation, onKeyDown: onKeyDown, onSubmit: submitLink - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["URLInput"], { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLInput"], { value: value, onChange: onChangeInputValue, autocompleteRef: autocompleteRef @@ -933,7 +941,7 @@ var inline_LinkEditor = function LinkEditor(_ref) { var inline_LinkViewerUrl = function LinkViewerUrl(_ref2) { var url = _ref2.url; var prependedURL = Object(external_this_wp_url_["prependHTTP"])(url); - var linkClassName = classnames_default()('editor-format-toolbar__link-container-value', { + var linkClassName = classnames_default()('editor-format-toolbar__link-container-value block-editor-format-toolbar__link-container-value', { 'has-invalid-link': !isValidHref(prependedURL) }); @@ -956,7 +964,7 @@ var inline_LinkViewer = function LinkViewer(_ref3) { /* eslint-disable jsx-a11y/no-static-element-interactions */ Object(external_this_wp_element_["createElement"])("div", { - className: "editor-format-toolbar__link-container-content", + className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content", onKeyPress: inline_stopKeyPropagation }, Object(external_this_wp_element_["createElement"])(inline_LinkViewerUrl, { url: url @@ -1125,7 +1133,7 @@ function (_Component) { key: "".concat(value.start).concat(value.end) /* Used to force rerender on selection change */ - }, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["URLPopover"], { + }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], { onClickOutside: this.onClickOutside, onClose: this.resetState, focusOnMount: showInput ? 'firstElement' : false, @@ -1277,23 +1285,23 @@ var link_link = { activeAttributes = _this$props3.activeAttributes, value = _this$props3.value, onChange = _this$props3.onChange; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "access", character: "a", onUse: this.addLink - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "access", character: "s", onUse: this.onRemoveFormat - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "primary", character: "k", onUse: this.addLink - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "primaryShift", character: "k", onUse: this.onRemoveFormat - }), isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], { + }), isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { name: "link", icon: "editor-unlink", title: Object(external_this_wp_i18n_["__"])('Unlink'), @@ -1301,7 +1309,7 @@ var link_link = { isActive: isActive, shortcutType: "primaryShift", shortcutCharacter: "k" - }), !isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], { + }), !isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { name: "link", icon: "admin-links", title: Object(external_this_wp_i18n_["__"])('Link'), @@ -1338,7 +1346,7 @@ var strikethrough_name = 'core/strikethrough'; var strikethrough = { name: strikethrough_name, title: Object(external_this_wp_i18n_["__"])('Strikethrough'), - tagName: 'del', + tagName: 's', className: null, edit: function edit(_ref) { var isActive = _ref.isActive, @@ -1351,12 +1359,11 @@ var strikethrough = { })); }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "access", character: "d", onUse: onToggle - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextToolbarButton"], { - name: "strikethrough", + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { icon: "editor-strikethrough", title: Object(external_this_wp_i18n_["__"])('Strikethrough'), onClick: onToggle, @@ -1399,11 +1406,11 @@ var underline = { })); }; - return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["RichTextShortcut"], { + return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { type: "primary", character: "u", onUse: onToggle - }), Object(external_this_wp_element_["createElement"])(external_this_wp_editor_["UnstableRichTextInputEvent"], { + }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["UnstableRichTextInputEvent"], { inputType: "formatUnderline", onInput: onToggle })); @@ -1452,14 +1459,7 @@ default_formats.forEach(function (_ref) { /***/ }), -/***/ 6: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["editor"]; }()); - -/***/ }), - -/***/ 8: +/***/ 7: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1487,6 +1487,13 @@ function _objectSpread(target) { /***/ }), +/***/ 8: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["blockEditor"]; }()); + +/***/ }), + /***/ 9: /***/ (function(module, __webpack_exports__, __webpack_require__) { diff --git a/wp-includes/js/dist/format-library.min.js b/wp-includes/js/dist/format-library.min.js index 6be0e13f2d..d44a404e2c 100644 --- a/wp-includes/js/dist/format-library.min.js +++ b/wp-includes/js/dist/format-library.min.js @@ -1,4 +1,4 @@ -this.wp=this.wp||{},this.wp.formatLibrary=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=313)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},11:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(29),o=n(3);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},12:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},13:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",function(){return o})},15:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},16:function(t,e,n){var r; +this.wp=this.wp||{},this.wp.formatLibrary=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=367)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},11:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(32),o=n(3);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},12:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},13:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",function(){return o})},15:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},16:function(t,e,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -9,4 +9,4 @@ this.wp=this.wp||{},this.wp.formatLibrary=function(t){var e={};function n(r){if( Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",function(){return r})},22:function(t,e){!function(){t.exports=this.wp.url}()},29:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",function(){return o})},3:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){return r})},313:function(t,e,n){"use strict";n.r(e);var r=n(21),o=n(20),i=n(0),a=n(1),c=n(6),u={name:"core/bold",title:Object(a.__)("Bold"),tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,u=function(){return r(Object(o.toggleFormat)(n,{type:"core/bold"}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"b",onUse:u}),Object(i.createElement)(c.RichTextToolbarButton,{name:"bold",icon:"editor-bold",title:Object(a.__)("Bold"),onClick:u,isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(i.createElement)(c.UnstableRichTextInputEvent,{inputType:"formatBold",onInput:u}))}},l={name:"core/code",title:Object(a.__)("Code"),tagName:"code",className:null,edit:function(t){var e=t.value,n=t.onChange;return Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"x",onUse:function(){return n(Object(o.toggleFormat)(e,{type:"core/code"}))}})}},s=n(8),b=n(10),p=n(9),f=n(11),m=n(12),d=n(13),h=n(3),O=n(4),j=n(17),y=["image"],v=function(t){return t.stopPropagation()},g={name:"core/image",title:Object(a.__)("Image"),keywords:[Object(a.__)("photo"),Object(a.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function(t){function e(){var t;return Object(b.a)(this,e),(t=Object(f.a)(this,Object(m.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(h.a)(Object(h.a)(t))),t.onKeyDown=t.onKeyDown.bind(Object(h.a)(Object(h.a)(t))),t.openModal=t.openModal.bind(Object(h.a)(Object(h.a)(t))),t.closeModal=t.closeModal.bind(Object(h.a)(Object(h.a)(t))),t.state={modal:!1},t}return Object(d.a)(e,t),Object(p.a)(e,[{key:"onChange",value:function(t){this.setState({width:t})}},{key:"onKeyDown",value:function(t){[j.LEFT,j.DOWN,j.RIGHT,j.UP,j.BACKSPACE,j.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,u=e.isActive,l=e.activeAttributes,b=l.style,p=n.start+b;return Object(i.createElement)(c.MediaUploadCheck,null,Object(i.createElement)(c.RichTextInserterItem,{name:"core/image",icon:Object(i.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(O.Path,{d:"M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z"})),title:Object(a.__)("Inline Image"),onClick:this.openModal}),this.state.modal&&Object(i.createElement)(c.MediaUpload,{allowedTypes:y,onSelect:function(e){var i=e.id,a=e.url,c=e.alt,u=e.width;t.closeModal(),r(Object(o.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(i),style:"width: ".concat(Math.min(u,150),"px;"),url:a,alt:c}}))},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(i.createElement)(O.PositionedAtSelection,{key:p},Object(i.createElement)(O.Popover,{position:"bottom center",focusOnMount:!1},Object(i.createElement)("form",{className:"editor-format-toolbar__image-container-content",onKeyPress:v,onKeyDown:this.onKeyDown,onSubmit:function(e){var o=n.formats.slice(0);o[n.start]=[{type:"core/image",object:!0,attributes:Object(s.a)({},l,{style:"width: ".concat(t.state.width,"px;")})}],r(Object(s.a)({},n,{formats:o})),e.preventDefault()}},Object(i.createElement)(O.TextControl,{className:"editor-format-toolbar__image-container-value",type:"number",label:Object(a.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(i.createElement)(O.IconButton,{icon:"editor-break",label:Object(a.__)("Apply"),type:"submit"})))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),e}(i.Component)},k={name:"core/italic",title:Object(a.__)("Italic"),tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,u=function(){return r(Object(o.toggleFormat)(n,{type:"core/italic"}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"i",onUse:u}),Object(i.createElement)(c.RichTextToolbarButton,{name:"italic",icon:"editor-italic",title:Object(a.__)("Italic"),onClick:u,isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(i.createElement)(c.UnstableRichTextInputEvent,{inputType:"formatItalic",onInput:u}))}},w=n(22),_=n(16),S=n.n(_),E=n(2);function C(t){if(!t)return!1;var e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){var n=Object(w.getProtocol)(e);if(!Object(w.isValidProtocol)(n))return!1;if(Object(E.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;var r=Object(w.getAuthority)(e);if(!Object(w.isValidAuthority)(r))return!1;var o=Object(w.getPath)(e);if(o&&!Object(w.isValidPath)(o))return!1;var i=Object(w.getQueryString)(e);if(i&&!Object(w.isValidQueryString)(i))return!1;var a=Object(w.getFragment)(e);if(a&&!Object(w.isValidFragment)(a))return!1}return!(Object(E.startsWith)(e,"#")&&!Object(w.isValidFragment)(e))}function T(t){var e=t.url,n=t.opensInNewWindow,r=t.text,o={type:"core/link",attributes:{url:e}};if(n){var i=Object(a.sprintf)(Object(a.__)("%s (opens in a new tab)"),r);o.attributes.target="_blank",o.attributes.rel="noreferrer noopener",o.attributes["aria-label"]=i}return o}var x=function(t){return t.stopPropagation()};function L(t,e){return t.addingLink||e.editLink}var P=function(t){var e=t.value,n=t.onChangeInputValue,r=t.onKeyDown,o=t.submitLink,u=t.autocompleteRef;return Object(i.createElement)("form",{className:"editor-format-toolbar__link-container-content",onKeyPress:x,onKeyDown:r,onSubmit:o},Object(i.createElement)(c.URLInput,{value:e,onChange:n,autocompleteRef:u}),Object(i.createElement)(O.IconButton,{icon:"editor-break",label:Object(a.__)("Apply"),type:"submit"}))},R=function(t){var e=t.url,n=Object(w.prependHTTP)(e),r=S()("editor-format-toolbar__link-container-value",{"has-invalid-link":!C(n)});return e?Object(i.createElement)(O.ExternalLink,{className:r,href:e},Object(w.filterURLForDisplay)(Object(w.safeDecodeURI)(e))):Object(i.createElement)("span",{className:r})},A=function(t){var e=t.url,n=t.editLink;return Object(i.createElement)("div",{className:"editor-format-toolbar__link-container-content",onKeyPress:x},Object(i.createElement)(R,{url:e}),Object(i.createElement)(O.IconButton,{icon:"edit",label:Object(a.__)("Edit"),onClick:n}))},I=function(t){function e(){var t;return Object(b.a)(this,e),(t=Object(f.a)(this,Object(m.a)(e).apply(this,arguments))).editLink=t.editLink.bind(Object(h.a)(Object(h.a)(t))),t.submitLink=t.submitLink.bind(Object(h.a)(Object(h.a)(t))),t.onKeyDown=t.onKeyDown.bind(Object(h.a)(Object(h.a)(t))),t.onChangeInputValue=t.onChangeInputValue.bind(Object(h.a)(Object(h.a)(t))),t.setLinkTarget=t.setLinkTarget.bind(Object(h.a)(Object(h.a)(t))),t.onClickOutside=t.onClickOutside.bind(Object(h.a)(Object(h.a)(t))),t.resetState=t.resetState.bind(Object(h.a)(Object(h.a)(t))),t.autocompleteRef=Object(i.createRef)(),t.state={opensInNewWindow:!1,inputValue:""},t}return Object(d.a)(e,t),Object(p.a)(e,[{key:"onKeyDown",value:function(t){[j.LEFT,j.DOWN,j.RIGHT,j.UP,j.BACKSPACE,j.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"onChangeInputValue",value:function(t){this.setState({inputValue:t})}},{key:"setLinkTarget",value:function(t){var e=this.props,n=e.activeAttributes.url,r=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({opensInNewWindow:t}),!L(this.props,this.state)){var c=Object(o.getTextContent)(Object(o.slice)(i));a(Object(o.applyFormat)(i,T({url:r,opensInNewWindow:t,text:c})))}}},{key:"editLink",value:function(t){this.setState({editLink:!0}),t.preventDefault()}},{key:"submitLink",value:function(t){var e=this.props,n=e.isActive,r=e.value,i=e.onChange,c=e.speak,u=this.state,l=u.inputValue,s=u.opensInNewWindow,b=Object(w.prependHTTP)(l),p=T({url:b,opensInNewWindow:s,text:Object(o.getTextContent)(Object(o.slice)(r))});if(t.preventDefault(),Object(o.isCollapsed)(r)&&!n){var f=Object(o.applyFormat)(Object(o.create)({text:b}),p,0,b.length);i(Object(o.insert)(r,f))}else i(Object(o.applyFormat)(r,p));this.resetState(),C(b)?c(n?Object(a.__)("Link edited."):Object(a.__)("Link inserted."),"assertive"):c(Object(a.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")}},{key:"onClickOutside",value:function(t){var e=this.autocompleteRef.current;e&&e.contains(t.target)||this.resetState()}},{key:"resetState",value:function(){this.props.stopAddingLink(),this.setState({editLink:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.isActive,r=e.activeAttributes.url,o=e.addingLink,u=e.value;if(!n&&!o)return null;var l=this.state,s=l.inputValue,b=l.opensInNewWindow,p=L(this.props,this.state);return Object(i.createElement)(O.PositionedAtSelection,{key:"".concat(u.start).concat(u.end)},Object(i.createElement)(c.URLPopover,{onClickOutside:this.onClickOutside,onClose:this.resetState,focusOnMount:!!p&&"firstElement",renderSettings:function(){return Object(i.createElement)(O.ToggleControl,{label:Object(a.__)("Open in New Tab"),checked:b,onChange:t.setLinkTarget})}},p?Object(i.createElement)(P,{value:s,onChangeInputValue:this.onChangeInputValue,onKeyDown:this.onKeyDown,submitLink:this.submitLink,autocompleteRef:this.autocompleteRef}):Object(i.createElement)(A,{url:r,editLink:this.editLink})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeAttributes,r=n.url,o="_blank"===n.target;if(!L(t,e)){if(r!==e.inputValue)return{inputValue:r};if(o!==e.opensInNewWindow)return{opensInNewWindow:o}}return null}}]),e}(i.Component),N=Object(O.withSpokenMessages)(I),F={name:"core/link",title:Object(a.__)("Link"),tagName:"a",className:null,attributes:{url:"href",target:"target"},edit:Object(O.withSpokenMessages)(function(t){function e(){var t;return Object(b.a)(this,e),(t=Object(f.a)(this,Object(m.a)(e).apply(this,arguments))).addLink=t.addLink.bind(Object(h.a)(Object(h.a)(t))),t.stopAddingLink=t.stopAddingLink.bind(Object(h.a)(Object(h.a)(t))),t.onRemoveFormat=t.onRemoveFormat.bind(Object(h.a)(Object(h.a)(t))),t.state={addingLink:!1},t}return Object(d.a)(e,t),Object(p.a)(e,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(o.getTextContent)(Object(o.slice)(e));r&&Object(w.isURL)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:r}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1})}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(o.removeFormat)(e,"core/link")),r(Object(a.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,o=t.onChange;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"a",onUse:this.addLink}),Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"s",onUse:this.onRemoveFormat}),Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(i.createElement)(c.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(i.createElement)(c.RichTextToolbarButton,{name:"link",icon:"editor-unlink",title:Object(a.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(i.createElement)(c.RichTextToolbarButton,{name:"link",icon:"admin-links",title:Object(a.__)("Link"),onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),Object(i.createElement)(N,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:o}))}}]),e}(i.Component))},U={name:"core/strikethrough",title:Object(a.__)("Strikethrough"),tagName:"del",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,u=function(){return r(Object(o.toggleFormat)(n,{type:"core/strikethrough"}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"d",onUse:u}),Object(i.createElement)(c.RichTextToolbarButton,{name:"strikethrough",icon:"editor-strikethrough",title:Object(a.__)("Strikethrough"),onClick:u,isActive:e,shortcutType:"access",shortcutCharacter:"d"}))}};[u,l,g,k,F,U,{name:"core/underline",title:Object(a.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(o.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(i.createElement)(c.UnstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}}].forEach(function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(o.registerFormatType)(e,n)})},4:function(t,e){!function(){t.exports=this.wp.components}()},6:function(t,e){!function(){t.exports=this.wp.editor}()},8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(15);function o(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",function(){return r})},23:function(t,e){!function(){t.exports=this.wp.url}()},3:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){return r})},32:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",function(){return o})},367:function(t,e,n){"use strict";n.r(e);var r=n(21),o=n(20),i=n(0),a=n(1),c=n(8),u={name:"core/bold",title:Object(a.__)("Bold"),tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,u=function(){return r(Object(o.toggleFormat)(n,{type:"core/bold"}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"b",onUse:u}),Object(i.createElement)(c.RichTextToolbarButton,{name:"bold",icon:"editor-bold",title:Object(a.__)("Bold"),onClick:u,isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(i.createElement)(c.UnstableRichTextInputEvent,{inputType:"formatBold",onInput:u}))}},l={name:"core/code",title:Object(a.__)("Code"),tagName:"code",className:null,edit:function(t){var e=t.value,n=t.onChange,r=t.isActive,u=function(){return n(Object(o.toggleFormat)(e,{type:"core/code"}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"x",onUse:u}),Object(i.createElement)(c.RichTextToolbarButton,{icon:"editor-code",title:Object(a.__)("Code"),onClick:u,isActive:r,shortcutType:"access",shortcutCharacter:"x"}))}},s=n(7),b=n(10),p=n(9),f=n(11),m=n(12),d=n(13),h=n(3),O=n(4),j=n(18),y=["image"],v=function(t){return t.stopPropagation()},g={name:"core/image",title:Object(a.__)("Image"),keywords:[Object(a.__)("photo"),Object(a.__)("media")],object:!0,tagName:"img",className:null,attributes:{className:"class",style:"style",url:"src",alt:"alt"},edit:function(t){function e(){var t;return Object(b.a)(this,e),(t=Object(f.a)(this,Object(m.a)(e).apply(this,arguments))).onChange=t.onChange.bind(Object(h.a)(Object(h.a)(t))),t.onKeyDown=t.onKeyDown.bind(Object(h.a)(Object(h.a)(t))),t.openModal=t.openModal.bind(Object(h.a)(Object(h.a)(t))),t.closeModal=t.closeModal.bind(Object(h.a)(Object(h.a)(t))),t.state={modal:!1},t}return Object(d.a)(e,t),Object(p.a)(e,[{key:"onChange",value:function(t){this.setState({width:t})}},{key:"onKeyDown",value:function(t){[j.LEFT,j.DOWN,j.RIGHT,j.UP,j.BACKSPACE,j.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,u=e.isObjectActive,l=e.activeObjectAttributes,b=l.style,p=n.start+b;return Object(i.createElement)(c.MediaUploadCheck,null,Object(i.createElement)(c.RichTextToolbarButton,{icon:Object(i.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(O.Path,{d:"M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z"})),title:Object(a.__)("Inline Image"),onClick:this.openModal,isActive:u}),this.state.modal&&Object(i.createElement)(c.MediaUpload,{allowedTypes:y,onSelect:function(e){var i=e.id,a=e.url,c=e.alt,u=e.width;t.closeModal(),r(Object(o.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(i),style:"width: ".concat(Math.min(u,150),"px;"),url:a,alt:c}}))},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(i.createElement)(O.PositionedAtSelection,{key:p},Object(i.createElement)(O.Popover,{position:"bottom center",focusOnMount:!1},Object(i.createElement)("form",{className:"editor-format-toolbar__image-container-content block-editor-format-toolbar__image-container-content",onKeyPress:v,onKeyDown:this.onKeyDown,onSubmit:function(e){var o=n.replacements.slice();o[n.start]={type:"core/image",attributes:Object(s.a)({},l,{style:"width: ".concat(t.state.width,"px;")})},r(Object(s.a)({},n,{replacements:o})),e.preventDefault()}},Object(i.createElement)(O.TextControl,{className:"editor-format-toolbar__image-container-value block-editor-format-toolbar__image-container-value",type:"number",label:Object(a.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(i.createElement)(O.IconButton,{icon:"editor-break",label:Object(a.__)("Apply"),type:"submit"})))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeObjectAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),e}(i.Component)},k={name:"core/italic",title:Object(a.__)("Italic"),tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,u=function(){return r(Object(o.toggleFormat)(n,{type:"core/italic"}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"i",onUse:u}),Object(i.createElement)(c.RichTextToolbarButton,{name:"italic",icon:"editor-italic",title:Object(a.__)("Italic"),onClick:u,isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(i.createElement)(c.UnstableRichTextInputEvent,{inputType:"formatItalic",onInput:u}))}},_=n(23),w=n(16),E=n.n(w),S=n(2);function C(t){if(!t)return!1;var e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){var n=Object(_.getProtocol)(e);if(!Object(_.isValidProtocol)(n))return!1;if(Object(S.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;var r=Object(_.getAuthority)(e);if(!Object(_.isValidAuthority)(r))return!1;var o=Object(_.getPath)(e);if(o&&!Object(_.isValidPath)(o))return!1;var i=Object(_.getQueryString)(e);if(i&&!Object(_.isValidQueryString)(i))return!1;var a=Object(_.getFragment)(e);if(a&&!Object(_.isValidFragment)(a))return!1}return!(Object(S.startsWith)(e,"#")&&!Object(_.isValidFragment)(e))}function T(t){var e=t.url,n=t.opensInNewWindow,r=t.text,o={type:"core/link",attributes:{url:e}};if(n){var i=Object(a.sprintf)(Object(a.__)("%s (opens in a new tab)"),r);o.attributes.target="_blank",o.attributes.rel="noreferrer noopener",o.attributes["aria-label"]=i}return o}var x=function(t){return t.stopPropagation()};function L(t,e){return t.addingLink||e.editLink}var P=function(t){var e=t.value,n=t.onChangeInputValue,r=t.onKeyDown,o=t.submitLink,u=t.autocompleteRef;return Object(i.createElement)("form",{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:x,onKeyDown:r,onSubmit:o},Object(i.createElement)(c.URLInput,{value:e,onChange:n,autocompleteRef:u}),Object(i.createElement)(O.IconButton,{icon:"editor-break",label:Object(a.__)("Apply"),type:"submit"}))},R=function(t){var e=t.url,n=Object(_.prependHTTP)(e),r=E()("editor-format-toolbar__link-container-value block-editor-format-toolbar__link-container-value",{"has-invalid-link":!C(n)});return e?Object(i.createElement)(O.ExternalLink,{className:r,href:e},Object(_.filterURLForDisplay)(Object(_.safeDecodeURI)(e))):Object(i.createElement)("span",{className:r})},A=function(t){var e=t.url,n=t.editLink;return Object(i.createElement)("div",{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:x},Object(i.createElement)(R,{url:e}),Object(i.createElement)(O.IconButton,{icon:"edit",label:Object(a.__)("Edit"),onClick:n}))},N=function(t){function e(){var t;return Object(b.a)(this,e),(t=Object(f.a)(this,Object(m.a)(e).apply(this,arguments))).editLink=t.editLink.bind(Object(h.a)(Object(h.a)(t))),t.submitLink=t.submitLink.bind(Object(h.a)(Object(h.a)(t))),t.onKeyDown=t.onKeyDown.bind(Object(h.a)(Object(h.a)(t))),t.onChangeInputValue=t.onChangeInputValue.bind(Object(h.a)(Object(h.a)(t))),t.setLinkTarget=t.setLinkTarget.bind(Object(h.a)(Object(h.a)(t))),t.onClickOutside=t.onClickOutside.bind(Object(h.a)(Object(h.a)(t))),t.resetState=t.resetState.bind(Object(h.a)(Object(h.a)(t))),t.autocompleteRef=Object(i.createRef)(),t.state={opensInNewWindow:!1,inputValue:""},t}return Object(d.a)(e,t),Object(p.a)(e,[{key:"onKeyDown",value:function(t){[j.LEFT,j.DOWN,j.RIGHT,j.UP,j.BACKSPACE,j.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"onChangeInputValue",value:function(t){this.setState({inputValue:t})}},{key:"setLinkTarget",value:function(t){var e=this.props,n=e.activeAttributes.url,r=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({opensInNewWindow:t}),!L(this.props,this.state)){var c=Object(o.getTextContent)(Object(o.slice)(i));a(Object(o.applyFormat)(i,T({url:r,opensInNewWindow:t,text:c})))}}},{key:"editLink",value:function(t){this.setState({editLink:!0}),t.preventDefault()}},{key:"submitLink",value:function(t){var e=this.props,n=e.isActive,r=e.value,i=e.onChange,c=e.speak,u=this.state,l=u.inputValue,s=u.opensInNewWindow,b=Object(_.prependHTTP)(l),p=T({url:b,opensInNewWindow:s,text:Object(o.getTextContent)(Object(o.slice)(r))});if(t.preventDefault(),Object(o.isCollapsed)(r)&&!n){var f=Object(o.applyFormat)(Object(o.create)({text:b}),p,0,b.length);i(Object(o.insert)(r,f))}else i(Object(o.applyFormat)(r,p));this.resetState(),C(b)?c(n?Object(a.__)("Link edited."):Object(a.__)("Link inserted."),"assertive"):c(Object(a.__)("Warning: the link has been inserted but may have errors. Please test it."),"assertive")}},{key:"onClickOutside",value:function(t){var e=this.autocompleteRef.current;e&&e.contains(t.target)||this.resetState()}},{key:"resetState",value:function(){this.props.stopAddingLink(),this.setState({editLink:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.isActive,r=e.activeAttributes.url,o=e.addingLink,u=e.value;if(!n&&!o)return null;var l=this.state,s=l.inputValue,b=l.opensInNewWindow,p=L(this.props,this.state);return Object(i.createElement)(O.PositionedAtSelection,{key:"".concat(u.start).concat(u.end)},Object(i.createElement)(c.URLPopover,{onClickOutside:this.onClickOutside,onClose:this.resetState,focusOnMount:!!p&&"firstElement",renderSettings:function(){return Object(i.createElement)(O.ToggleControl,{label:Object(a.__)("Open in New Tab"),checked:b,onChange:t.setLinkTarget})}},p?Object(i.createElement)(P,{value:s,onChangeInputValue:this.onChangeInputValue,onKeyDown:this.onKeyDown,submitLink:this.submitLink,autocompleteRef:this.autocompleteRef}):Object(i.createElement)(A,{url:r,editLink:this.editLink})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeAttributes,r=n.url,o="_blank"===n.target;if(!L(t,e)){if(r!==e.inputValue)return{inputValue:r};if(o!==e.opensInNewWindow)return{opensInNewWindow:o}}return null}}]),e}(i.Component),I=Object(O.withSpokenMessages)(N),F={name:"core/link",title:Object(a.__)("Link"),tagName:"a",className:null,attributes:{url:"href",target:"target"},edit:Object(O.withSpokenMessages)(function(t){function e(){var t;return Object(b.a)(this,e),(t=Object(f.a)(this,Object(m.a)(e).apply(this,arguments))).addLink=t.addLink.bind(Object(h.a)(Object(h.a)(t))),t.stopAddingLink=t.stopAddingLink.bind(Object(h.a)(Object(h.a)(t))),t.onRemoveFormat=t.onRemoveFormat.bind(Object(h.a)(Object(h.a)(t))),t.state={addingLink:!1},t}return Object(d.a)(e,t),Object(p.a)(e,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(o.getTextContent)(Object(o.slice)(e));r&&Object(_.isURL)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:r}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1})}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(o.removeFormat)(e,"core/link")),r(Object(a.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,o=t.onChange;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"a",onUse:this.addLink}),Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"s",onUse:this.onRemoveFormat}),Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(i.createElement)(c.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(i.createElement)(c.RichTextToolbarButton,{name:"link",icon:"editor-unlink",title:Object(a.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(i.createElement)(c.RichTextToolbarButton,{name:"link",icon:"admin-links",title:Object(a.__)("Link"),onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),Object(i.createElement)(I,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:o}))}}]),e}(i.Component))},U={name:"core/strikethrough",title:Object(a.__)("Strikethrough"),tagName:"s",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,u=function(){return r(Object(o.toggleFormat)(n,{type:"core/strikethrough"}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"access",character:"d",onUse:u}),Object(i.createElement)(c.RichTextToolbarButton,{icon:"editor-strikethrough",title:Object(a.__)("Strikethrough"),onClick:u,isActive:e,shortcutType:"access",shortcutCharacter:"d"}))}};[u,l,g,k,F,U,{name:"core/underline",title:Object(a.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(o.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(i.createElement)(c.UnstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}}].forEach(function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(o.registerFormatType)(e,n)})},4:function(t,e){!function(){t.exports=this.wp.components}()},7:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(15);function o(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var l,a=n[r].handlers;for(l=a.length;l>0&&!(u>=a[l-1].priority);l--);l===a.length?a[l]=c:a.splice(l,0,c),(n.__current||[]).forEach(function(n){n.name===r&&n.currentIndex>=l&&n.currentIndex++})}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,l=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach(function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--}))},a=c.length-1;a>=0;a--)l(a);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r){return r in n}};var l=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;for(var t=n[e].handlers,o=arguments.length,i=new Array(o>1?o-1:0),u=1;u3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var l,a=n[r].handlers;for(l=a.length;l>0&&!(u>=a[l-1].priority);l--);l===a.length?a[l]=c:a.splice(l,0,c),(n.__current||[]).forEach(function(n){n.name===r&&n.currentIndex>=l&&n.currentIndex++})}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,l=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach(function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--}))},a=c.length-1;a>=0;a--)l(a);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r){return r in n}};var l=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;for(var t=n[e].handlers,o=arguments.length,i=new Array(o>1?o-1:0),u=1;u=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=e:(!i.number.test(a.type)||l&&!a.sign?f="":(f=l?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(f+e).length,s=a.width&&p>0?c.repeat(p):"",g+=a.align?f+e+s:"0"===c?f+s+e:s+f+e)}return g}(function(n){if(a[n])return a[n];var t,e=n,r=[],o=0;for(;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],s=t[2],c=[];if(null===(c=i.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(s=s.substring(c[0].length));)if(null!==(c=i.key_access.exec(s)))u.push(c[1]);else{if(null===(c=i.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return a[n]=r}(n),arguments)}function u(n,t){return o.apply(null,[n].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},15:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",function(){return r})},321:function(n,t,e){"use strict";e.r(t);var r,i,o,u,a=e(8);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function c(n){var t=function(n){for(var t,e,a,s,c=[],p=[];t=n.match(u);){for(e=t[0],(a=n.substr(0,t.index).trim())&&c.push(a);s=p.pop();){if(o[e]){if(o[e][0]===s){e=o[e][1]||e;break}}else if(i.indexOf(s)>=0||r[s]1&&void 0!==arguments[1]?arguments[1]:"default";b.data[t]=Object(a.a)({},y,b.data[t],n),b.data[t][""]=Object(a.a)({},y[""],b.data[t][""])}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return b.data[n]||x(void 0,n),b.dcnpgettext(n,t,e,r,i)}function w(n,t){return m(t,void 0,n)}function _(n,t,e){return m(e,t,n)}function k(n,t,e,r){return m(r,void 0,n,t,e)}function j(n,t,e,r,i){return m(i,r,n,t,e)}function O(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=e:(!i.number.test(a.type)||p&&!a.sign?f="":(f=p?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",l=a.width-(f+e).length,s=a.width&&l>0?c.repeat(l):"",g+=a.align?f+e+s:"0"===c?f+s+e:s+f+e)}return g}(function(n){if(a[n])return a[n];var t,e=n,r=[],o=0;for(;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],s=t[2],c=[];if(null===(c=i.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(s=s.substring(c[0].length));)if(null!==(c=i.key_access.exec(s)))u.push(c[1]);else{if(null===(c=i.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return a[n]=r}(n),arguments)}function u(n,t){return o.apply(null,[n].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},15:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",function(){return r})},376:function(n,t,e){"use strict";e.r(t);var r,i,o,u,a=e(7);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function c(n){var t=function(n){for(var t,e,a,s,c=[],l=[];t=n.match(u);){for(e=t[0],(a=n.substr(0,t.index).trim())&&c.push(a);s=l.pop();){if(o[e]){if(o[e][0]===s){e=o[e][1]||e;break}}else if(i.indexOf(s)>=0||r[s]1&&void 0!==arguments[1]?arguments[1]:"default";b.data[t]=Object(a.a)({},y,b.data[t],n),b.data[t][""]=Object(a.a)({},y[""],b.data[t][""])}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return b.data[n]||x(void 0,n),b.dcnpgettext(n,t,e,r,i)}function w(n,t){return m(t,void 0,n)}function _(n,t,e){return m(e,t,n)}function k(n,t,e,r){return m(r,void 0,n,t,e)}function j(n,t,e,r,i){return m(i,r,n,t,e)}function O(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",function(){return a}),r.d(n,"TAB",function(){return f}),r.d(n,"ENTER",function(){return l}),r.d(n,"ESCAPE",function(){return d}),r.d(n,"SPACE",function(){return b}),r.d(n,"LEFT",function(){return s}),r.d(n,"UP",function(){return j}),r.d(n,"RIGHT",function(){return O}),r.d(n,"DOWN",function(){return p}),r.d(n,"DELETE",function(){return y}),r.d(n,"F10",function(){return v}),r.d(n,"ALT",function(){return h}),r.d(n,"CTRL",function(){return m}),r.d(n,"COMMAND",function(){return g}),r.d(n,"SHIFT",function(){return S}),r.d(n,"modifiers",function(){return A}),r.d(n,"rawShortcut",function(){return w}),r.d(n,"displayShortcutList",function(){return C}),r.d(n,"displayShortcut",function(){return P}),r.d(n,"shortcutAriaLabel",function(){return E}),r.d(n,"isKeyboardEvent",function(){return _});var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(o.mapValues)(A,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}}),C=Object(o.mapValues)(A,function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce(function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])},[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}}),P=Object(o.mapValues)(C,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}}),E=Object(o.mapValues)(A,function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map(function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))}).join(f?" ":" + ")}}),_=Object(o.mapValues)(A,function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every(function(t){return n["".concat(t,"Key")]})&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}})},33:function(t,n,r){"use strict";function e(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(n,"a",function(){return e})}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=382)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},15:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",function(){return e})},17:function(t,n,r){"use strict";var e=r(34);function u(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",function(){return a}),r.d(n,"TAB",function(){return f}),r.d(n,"ENTER",function(){return l}),r.d(n,"ESCAPE",function(){return d}),r.d(n,"SPACE",function(){return b}),r.d(n,"LEFT",function(){return s}),r.d(n,"UP",function(){return j}),r.d(n,"RIGHT",function(){return O}),r.d(n,"DOWN",function(){return p}),r.d(n,"DELETE",function(){return y}),r.d(n,"F10",function(){return v}),r.d(n,"ALT",function(){return h}),r.d(n,"CTRL",function(){return m}),r.d(n,"COMMAND",function(){return g}),r.d(n,"SHIFT",function(){return S}),r.d(n,"modifiers",function(){return A}),r.d(n,"rawShortcut",function(){return w}),r.d(n,"displayShortcutList",function(){return C}),r.d(n,"displayShortcut",function(){return P}),r.d(n,"shortcutAriaLabel",function(){return E}),r.d(n,"isKeyboardEvent",function(){return _});var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(o.mapValues)(A,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}}),C=Object(o.mapValues)(A,function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce(function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])},[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}}),P=Object(o.mapValues)(C,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}}),E=Object(o.mapValues)(A,function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map(function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))}).join(f?" ":" + ")}}),_=Object(o.mapValues)(A,function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every(function(t){return n["".concat(t,"Key")]})&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}})}}); \ No newline at end of file diff --git a/wp-includes/js/dist/list-reusable-blocks.js b/wp-includes/js/dist/list-reusable-blocks.js index f4179cb697..08b9d17551 100644 --- a/wp-includes/js/dist/list-reusable-blocks.js +++ b/wp-includes/js/dist/list-reusable-blocks.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["listReusableBlocks"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 323); +/******/ return __webpack_require__(__webpack_require__.s = 373); /******/ }) /************************************************************************/ /******/ ({ @@ -119,7 +119,7 @@ function _classCallCheck(instance, Constructor) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); -/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29); +/* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); @@ -188,7 +188,30 @@ function _inherits(subClass, superClass) { /***/ }), -/***/ 29: +/***/ 26: +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(54); + + +/***/ }), + +/***/ 3: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +/***/ }), + +/***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -211,29 +234,14 @@ function _typeof(obj) { /***/ }), -/***/ 3: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -/***/ }), - -/***/ 31: +/***/ 33: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["apiFetch"]; }()); /***/ }), -/***/ 323: +/***/ 373: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -245,14 +253,18 @@ var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: external {"this":["wp","i18n"]} var external_this_wp_i18n_ = __webpack_require__(1); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js +var regenerator = __webpack_require__(26); +var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); + // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(41); +var asyncToGenerator = __webpack_require__(44); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: external {"this":["wp","apiFetch"]} -var external_this_wp_apiFetch_ = __webpack_require__(31); +var external_this_wp_apiFetch_ = __webpack_require__(33); var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_); // CONCATENATED MODULE: ./node_modules/@wordpress/list-reusable-blocks/build-module/utils/file.js @@ -302,6 +314,7 @@ function readTextFile(file) { // CONCATENATED MODULE: ./node_modules/@wordpress/list-reusable-blocks/build-module/utils/export.js + /** * External dependencies */ @@ -329,9 +342,9 @@ function exportReusableBlock(_x) { function _exportReusableBlock() { _exportReusableBlock = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee(id) { + regenerator_default.a.mark(function _callee(id) { var postType, post, title, content, fileContent, fileName; - return regeneratorRuntime.wrap(function _callee$(_context) { + return regenerator_default.a.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -393,11 +406,12 @@ var inherits = __webpack_require__(13); var assertThisInitialized = __webpack_require__(3); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); +var external_this_wp_compose_ = __webpack_require__(6); // CONCATENATED MODULE: ./node_modules/@wordpress/list-reusable-blocks/build-module/utils/import.js + /** * External dependencies */ @@ -426,9 +440,9 @@ function importReusableBlock(_x) { function _importReusableBlock() { _importReusableBlock = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ - regeneratorRuntime.mark(function _callee(file) { + regenerator_default.a.mark(function _callee(file) { var fileContent, parsedContent, postType, reusableBlock; - return regeneratorRuntime.wrap(function _callee$(_context) { + return regenerator_default.a.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: @@ -741,7 +755,7 @@ document.addEventListener('DOMContentLoaded', function () { /***/ }), -/***/ 41: +/***/ 44: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -784,7 +798,779 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 7: +/***/ 54: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This method of obtaining a reference to the global object needs to be +// kept identical to the way it is obtained in runtime.js +var g = (function() { + return this || (typeof self === "object" && self); +})() || Function("return this")(); + +// Use `getOwnPropertyNames` because not all browsers support calling +// `hasOwnProperty` on the global `self` object in a worker. See #183. +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; + +// Save the old regeneratorRuntime in case it needs to be restored later. +var oldRuntime = hadRuntime && g.regeneratorRuntime; + +// Force reevalutation of runtime.js. +g.regeneratorRuntime = undefined; + +module.exports = __webpack_require__(55); + +if (hadRuntime) { + // Restore the original runtime. + g.regeneratorRuntime = oldRuntime; +} else { + // Remove the global property added by runtime.js. + try { + delete g.regeneratorRuntime; + } catch(e) { + g.regeneratorRuntime = undefined; + } +} + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +!(function(global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + runtime.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); + + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + Gp[toStringTagSymbol] = "Generator"; + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + + Gp.toString = function() { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { + return this || (typeof self === "object" && self); + })() || Function("return this")() +); + + +/***/ }), + +/***/ 6: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["compose"]; }()); diff --git a/wp-includes/js/dist/list-reusable-blocks.min.js b/wp-includes/js/dist/list-reusable-blocks.min.js index eb716346e7..ff39143a3c 100644 --- a/wp-includes/js/dist/list-reusable-blocks.min.js +++ b/wp-includes/js/dist/list-reusable-blocks.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=323)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},11:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(29),o=n(3);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},12:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},13:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",function(){return o})},2:function(t,e){!function(){t.exports=this.lodash}()},29:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",function(){return o})},3:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){return r})},31:function(t,e){!function(){t.exports=this.wp.apiFetch}()},323:function(t,e,n){"use strict";n.r(e);var r=n(0),o=n(1),i=n(41),c=n(2),a=n(31),u=n.n(a);function s(t,e,n){var r=new window.Blob([e],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,t);else{var o=document.createElement("a");o.href=URL.createObjectURL(r),o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function l(t){var e=new window.FileReader;return new Promise(function(n){e.onload=function(){n(e.result)},e.readAsText(t)})}function f(){return(f=Object(i.a)(regeneratorRuntime.mark(function t(e){var n,r,o,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u()({path:"/wp/v2/types/wp_block"});case 2:return n=t.sent,t.next=5,u()({path:"/wp/v2/".concat(n.rest_base,"/").concat(e,"?context=edit")});case 5:r=t.sent,o=r.title.raw,i=r.content.raw,a=JSON.stringify({__file:"wp_block",title:o,content:i},null,2),s(Object(c.kebabCase)(o)+".json",a,"application/json");case 11:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}var p=function(t){return f.apply(this,arguments)},b=n(4),d=n(10),m=n(9),y=n(11),v=n(12),h=n(13),O=n(3),w=n(7);function j(){return(j=Object(i.a)(regeneratorRuntime.mark(function t(e){var n,r,o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e);case 2:n=t.sent,t.prev=3,r=JSON.parse(n),t.next=10;break;case 7:throw t.prev=7,t.t0=t.catch(3),new Error("Invalid JSON file");case 10:if("wp_block"===r.__file&&r.title&&r.content&&Object(c.isString)(r.title)&&Object(c.isString)(r.content)){t.next=12;break}throw new Error("Invalid Reusable Block JSON file");case 12:return t.next=14,u()({path:"/wp/v2/types/wp_block"});case 14:return o=t.sent,t.next=17,u()({path:"/wp/v2/".concat(o.rest_base),data:{title:r.title,content:r.content,status:"publish"},method:"POST"});case 17:return i=t.sent,t.abrupt("return",i);case 19:case"end":return t.stop()}},t,this,[[3,7]])}))).apply(this,arguments)}var _=function(t){return j.apply(this,arguments)},S=function(t){function e(){var t;return Object(d.a)(this,e),(t=Object(y.a)(this,Object(v.a)(e).apply(this,arguments))).state={isLoading:!1,error:null,file:null},t.isStillMounted=!0,t.onChangeFile=t.onChangeFile.bind(Object(O.a)(Object(O.a)(t))),t.onSubmit=t.onSubmit.bind(Object(O.a)(Object(O.a)(t))),t}return Object(h.a)(e,t),Object(m.a)(e,[{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"onChangeFile",value:function(t){this.setState({file:t.target.files[0]})}},{key:"onSubmit",value:function(t){var e=this;t.preventDefault();var n=this.state.file,r=this.props.onUpload;n&&(this.setState({isLoading:!0}),_(n).then(function(t){e.isStillMounted&&(e.setState({isLoading:!1}),r(t))}).catch(function(t){if(e.isStillMounted){var n;switch(t.message){case"Invalid JSON file":n=Object(o.__)("Invalid JSON file");break;case"Invalid Reusable Block JSON file":n=Object(o.__)("Invalid Reusable Block JSON file");break;default:n=Object(o.__)("Unknown error")}e.setState({isLoading:!1,error:n})}}))}},{key:"render",value:function(){var t=this.props.instanceId,e=this.state,n=e.file,i=e.isLoading,c=e.error,a="list-reusable-blocks-import-form-"+t;return Object(r.createElement)("form",{className:"list-reusable-blocks-import-form",onSubmit:this.onSubmit},c&&Object(r.createElement)(b.Notice,{status:"error"},c),Object(r.createElement)("label",{htmlFor:a,className:"list-reusable-blocks-import-form__label"},Object(o.__)("File")),Object(r.createElement)("input",{id:a,type:"file",onChange:this.onChangeFile}),Object(r.createElement)(b.Button,{type:"submit",isBusy:i,disabled:!n||i,isDefault:!0,className:"list-reusable-blocks-import-form__button"},Object(o._x)("Import","button label")))}}]),e}(r.Component),g=Object(w.withInstanceId)(S);var k=function(t){var e=t.onUpload;return Object(r.createElement)(b.Dropdown,{position:"bottom right",contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:function(t){var e=t.isOpen,n=t.onToggle;return Object(r.createElement)(b.Button,{type:"button","aria-expanded":e,onClick:n,isPrimary:!0},Object(o.__)("Import from JSON"))},renderContent:function(t){var n=t.onClose;return Object(r.createElement)(g,{onUpload:Object(c.flow)(n,e)})}})};document.body.addEventListener("click",function(t){t.target.classList.contains("wp-list-reusable-blocks__export")&&(t.preventDefault(),p(t.target.dataset.id))}),document.addEventListener("DOMContentLoaded",function(){var t=document.querySelector(".page-title-action");if(t){var e=document.createElement("div");e.className="list-reusable-blocks__container",t.parentNode.insertBefore(e,t),Object(r.render)(Object(r.createElement)(k,{onUpload:function(){var t=document.createElement("div");t.className="notice notice-success is-dismissible",t.innerHTML="

    ".concat(Object(o.__)("Reusable block imported successfully!"),"

    ");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}})},4:function(t,e){!function(){t.exports=this.wp.components}()},41:function(t,e,n){"use strict";function r(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var c=t.apply(e,n);function a(t){r(c,o,i,a,u,"next",t)}function u(t){r(c,o,i,a,u,"throw",t)}a(void 0)})}}n.d(e,"a",function(){return o})},7:function(t,e){!function(){t.exports=this.wp.compose}()},9:function(t,e,n){"use strict";function r(t,e){for(var n=0;n");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}})},4:function(t,e){!function(){t.exports=this.wp.components}()},44:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)})}}n.d(e,"a",function(){return o})},54:function(t,e,n){var r=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(55),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},55:function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",s="object"==typeof t,l=e.regeneratorRuntime;if(l)s&&(t.exports=l);else{(l=e.regeneratorRuntime=s?t.exports:{}).wrap=w;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",y={},b={};b[a]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(R([])));v&&v!==r&&o.call(v,a)&&(b=v);var g=x.prototype=j.prototype=Object.create(b);_.prototype=g.constructor=x,x.constructor=_,x[u]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(g),t},l.awrap=function(t){return{__await:t}},S(E.prototype),E.prototype[c]=function(){return this},l.AsyncIterator=E,l.async=function(t,e,n,r){var o=new E(w(t,e,n,r));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},S(g),g[u]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=R,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),y}}}function w(t,e,n,r){var o=e&&e.prototype instanceof j?e:j,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=k(a,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=O(t,e,n);if("normal"===u.type){if(r=n.done?d:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function O(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function j(){}function _(){}function x(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,a){var c=O(t[n],t,r);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(s).then(function(t){u.value=t,i(u)},function(t){return e("throw",t,i,a)})}a(c.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=O(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r 0 && arguments[0] !== undefined ? arguments[0] : []; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case 'CREATE_NOTICE': - // Avoid duplicates on ID. - return [].concat((0, _toConsumableArray2.default)((0, _lodash.reject)(state, { - id: action.notice.id - })), [action.notice]); - - case 'REMOVE_NOTICE': - return (0, _lodash.reject)(state, { - id: action.id - }); - } - - return state; -}); -var _default = notices; -exports.default = _default; - - -/***/ }), - -/***/ 284: -/***/ (function(module, exports, __webpack_require__) { - -var arrayWithoutHoles = __webpack_require__(285); - -var iterableToArray = __webpack_require__(286); - -var nonIterableSpread = __webpack_require__(287); - -function _toConsumableArray(arr) { - return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread(); -} - -module.exports = _toConsumableArray; - -/***/ }), - -/***/ 285: -/***/ (function(module, exports) { - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - } - - return arr2; - } -} - -module.exports = _arrayWithoutHoles; - -/***/ }), - -/***/ 286: -/***/ (function(module, exports) { - +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } -module.exports = _iterableToArray; - /***/ }), -/***/ 287: -/***/ (function(module, exports) { - -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance"); -} - -module.exports = _nonIterableSpread; - -/***/ }), - -/***/ 288: -/***/ (function(module, exports, __webpack_require__) { +/***/ 371: +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +var actions_namespaceObject = {}; +__webpack_require__.r(actions_namespaceObject); +__webpack_require__.d(actions_namespaceObject, "createNotice", function() { return createNotice; }); +__webpack_require__.d(actions_namespaceObject, "createSuccessNotice", function() { return createSuccessNotice; }); +__webpack_require__.d(actions_namespaceObject, "createInfoNotice", function() { return createInfoNotice; }); +__webpack_require__.d(actions_namespaceObject, "createErrorNotice", function() { return createErrorNotice; }); +__webpack_require__.d(actions_namespaceObject, "createWarningNotice", function() { return createWarningNotice; }); +__webpack_require__.d(actions_namespaceObject, "removeNotice", function() { return removeNotice; }); +var selectors_namespaceObject = {}; +__webpack_require__.r(selectors_namespaceObject); +__webpack_require__.d(selectors_namespaceObject, "getNotices", function() { return getNotices; }); + +// EXTERNAL MODULE: external {"this":["wp","data"]} +var external_this_wp_data_ = __webpack_require__(5); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + +// EXTERNAL MODULE: external "lodash" +var external_lodash_ = __webpack_require__(2); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(15); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js +var objectSpread = __webpack_require__(7); + +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js -var _interopRequireDefault = __webpack_require__(123); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = exports.onSubKey = void 0; - -var _defineProperty2 = _interopRequireDefault(__webpack_require__(176)); - -var _objectSpread3 = _interopRequireDefault(__webpack_require__(289)); /** * Higher-order reducer creator which creates a combined reducer object, keyed @@ -390,7 +212,7 @@ var _objectSpread3 = _interopRequireDefault(__webpack_require__(289)); * * @return {Function} Higher-order reducer. */ -var onSubKey = function onSubKey(actionProperty) { +var on_sub_key_onSubKey = function onSubKey(actionProperty) { return function (reducer) { return function () { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; @@ -411,69 +233,91 @@ var onSubKey = function onSubKey(actionProperty) { return state; } - return (0, _objectSpread3.default)({}, state, (0, _defineProperty2.default)({}, key, nextKeyState)); + return Object(objectSpread["a" /* default */])({}, state, Object(defineProperty["a" /* default */])({}, key, nextKeyState)); }; }; }; +/* harmony default export */ var on_sub_key = (on_sub_key_onSubKey); -exports.onSubKey = onSubKey; -var _default = onSubKey; -exports.default = _default; +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/reducer.js -/***/ }), +/** + * External dependencies + */ -/***/ 289: -/***/ (function(module, exports, __webpack_require__) { +/** + * Internal dependencies + */ -var defineProperty = __webpack_require__(176); -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); +/** + * Reducer returning the next notices state. The notices state is an object + * where each key is a context, its value an array of notice objects. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } +var notices = on_sub_key('context')(function () { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var action = arguments.length > 1 ? arguments[1] : undefined; - ownKeys.forEach(function (key) { - defineProperty(target, key, source[key]); - }); + switch (action.type) { + case 'CREATE_NOTICE': + // Avoid duplicates on ID. + return [].concat(Object(toConsumableArray["a" /* default */])(Object(external_lodash_["reject"])(state, { + id: action.notice.id + })), [action.notice]); + + case 'REMOVE_NOTICE': + return Object(external_lodash_["reject"])(state, { + id: action.id + }); } - return target; -} - -module.exports = _objectSpread; - -/***/ }), - -/***/ 290: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true + return state; }); -exports.createNotice = createNotice; -exports.createSuccessNotice = createSuccessNotice; -exports.createInfoNotice = createInfoNotice; -exports.createErrorNotice = createErrorNotice; -exports.createWarningNotice = createWarningNotice; -exports.removeNotice = removeNotice; +/* harmony default export */ var store_reducer = (notices); -var _lodash = __webpack_require__(2); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js +var regenerator = __webpack_require__(26); +var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator); + +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/constants.js +/** + * Default context to use for notice grouping when not otherwise specified. Its + * specific value doesn't hold much meaning, but it must be reasonably unique + * and, more importantly, referenced consistently in the store implementation. + * + * @type {string} + */ +var DEFAULT_CONTEXT = 'global'; +/** + * Default notice status. + * + * @type {string} + */ + +var DEFAULT_STATUS = 'info'; + +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/actions.js -var _constants = __webpack_require__(177); var _marked = /*#__PURE__*/ -regeneratorRuntime.mark(createNotice); +regenerator_default.a.mark(createNotice); + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + /** * Yields action objects used in signalling that a notice is to be created. @@ -498,6 +342,7 @@ regeneratorRuntime.mark(createNotice); * @param {?Array} options.actions User actions to be * presented with notice. */ + function createNotice() { var status, content, @@ -515,14 +360,14 @@ function createNotice() { __unstableHTML, _args = arguments; - return regeneratorRuntime.wrap(function createNotice$(_context) { + return regenerator_default.a.wrap(function createNotice$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: - status = _args.length > 0 && _args[0] !== undefined ? _args[0] : _constants.DEFAULT_STATUS; + status = _args.length > 0 && _args[0] !== undefined ? _args[0] : DEFAULT_STATUS; content = _args.length > 1 ? _args[1] : undefined; options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {}; - _options$speak = options.speak, speak = _options$speak === void 0 ? true : _options$speak, _options$isDismissibl = options.isDismissible, isDismissible = _options$isDismissibl === void 0 ? true : _options$isDismissibl, _options$context = options.context, context = _options$context === void 0 ? _constants.DEFAULT_CONTEXT : _options$context, _options$id = options.id, id = _options$id === void 0 ? (0, _lodash.uniqueId)(context) : _options$id, _options$actions = options.actions, actions = _options$actions === void 0 ? [] : _options$actions, __unstableHTML = options.__unstableHTML; // The supported value shape of content is currently limited to plain text + _options$speak = options.speak, speak = _options$speak === void 0 ? true : _options$speak, _options$isDismissibl = options.isDismissible, isDismissible = _options$isDismissibl === void 0 ? true : _options$isDismissibl, _options$context = options.context, context = _options$context === void 0 ? DEFAULT_CONTEXT : _options$context, _options$id = options.id, id = _options$id === void 0 ? Object(external_lodash_["uniqueId"])(context) : _options$id, _options$actions = options.actions, actions = _options$actions === void 0 ? [] : _options$actions, __unstableHTML = options.__unstableHTML; // The supported value shape of content is currently limited to plain text // strings. To avoid setting expectation that e.g. a WPElement could be // supported, cast to a string. @@ -573,7 +418,6 @@ function createNotice() { * @return {Object} Action object. */ - function createSuccessNotice(content, options) { return createNotice('success', content, options); } @@ -589,7 +433,6 @@ function createSuccessNotice(content, options) { * @return {Object} Action object. */ - function createInfoNotice(content, options) { return createNotice('info', content, options); } @@ -605,7 +448,6 @@ function createInfoNotice(content, options) { * @return {Object} Action object. */ - function createErrorNotice(content, options) { return createNotice('error', content, options); } @@ -621,7 +463,6 @@ function createErrorNotice(content, options) { * @return {Object} Action object. */ - function createWarningNotice(content, options) { return createNotice('warning', content, options); } @@ -635,9 +476,8 @@ function createWarningNotice(content, options) { * @return {Object} Action object. */ - function removeNotice(id) { - var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.DEFAULT_CONTEXT; + var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT; return { type: 'REMOVE_NOTICE', id: id, @@ -645,22 +485,7 @@ function removeNotice(id) { }; } - -/***/ }), - -/***/ 291: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.getNotices = getNotices; - -var _constants = __webpack_require__(177); - +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/selectors.js /** * Internal dependencies */ @@ -674,6 +499,7 @@ var _constants = __webpack_require__(177); * * @type {Array} */ + var DEFAULT_NOTICES = []; /** * Notice object. @@ -718,40 +544,54 @@ var DEFAULT_NOTICES = []; */ function getNotices(state) { - var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.DEFAULT_CONTEXT; + var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT; return state[context] || DEFAULT_NOTICES; } +// EXTERNAL MODULE: external {"this":["wp","a11y"]} +var external_this_wp_a11y_ = __webpack_require__(48); -/***/ }), - -/***/ 292: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _a11y = __webpack_require__(44); - +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/controls.js /** * WordPress dependencies */ -var _default = { + +/* harmony default export */ var controls = ({ SPEAK: function SPEAK(action) { - (0, _a11y.speak)(action.message, 'assertive'); + Object(external_this_wp_a11y_["speak"])(action.message, 'assertive'); } -}; -exports.default = _default; +}); + +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/index.js +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + + + +/* harmony default export */ var store = (Object(external_this_wp_data_["registerStore"])('core/notices', { + reducer: store_reducer, + actions: actions_namespaceObject, + selectors: selectors_namespaceObject, + controls: controls +})); + +// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/index.js +/** + * Internal dependencies + */ + /***/ }), -/***/ 44: +/***/ 48: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["a11y"]; }()); @@ -763,6 +603,806 @@ exports.default = _default; (function() { module.exports = this["wp"]["data"]; }()); +/***/ }), + +/***/ 54: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This method of obtaining a reference to the global object needs to be +// kept identical to the way it is obtained in runtime.js +var g = (function() { + return this || (typeof self === "object" && self); +})() || Function("return this")(); + +// Use `getOwnPropertyNames` because not all browsers support calling +// `hasOwnProperty` on the global `self` object in a worker. See #183. +var hadRuntime = g.regeneratorRuntime && + Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; + +// Save the old regeneratorRuntime in case it needs to be restored later. +var oldRuntime = hadRuntime && g.regeneratorRuntime; + +// Force reevalutation of runtime.js. +g.regeneratorRuntime = undefined; + +module.exports = __webpack_require__(55); + +if (hadRuntime) { + // Restore the original runtime. + g.regeneratorRuntime = oldRuntime; +} else { + // Remove the global property added by runtime.js. + try { + delete g.regeneratorRuntime; + } catch(e) { + g.regeneratorRuntime = undefined; + } +} + + +/***/ }), + +/***/ 55: +/***/ (function(module, exports) { + +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +!(function(global) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + var inModule = typeof module === "object"; + var runtime = global.regeneratorRuntime; + if (runtime) { + if (inModule) { + // If regeneratorRuntime is defined globally and we're in a module, + // make the exports object identical to regeneratorRuntime. + module.exports = runtime; + } + // Don't bother evaluating the rest of this file if the runtime was + // already defined globally. + return; + } + + // Define the runtime globally (as expected by generated code) as either + // module.exports (if we're in a module) or a new, empty object. + runtime = global.regeneratorRuntime = inModule ? module.exports : {}; + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + generator._invoke = makeInvokeMethod(innerFn, self, context); + + return generator; + } + runtime.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; + GeneratorFunctionPrototype.constructor = GeneratorFunction; + GeneratorFunctionPrototype[toStringTagSymbol] = + GeneratorFunction.displayName = "GeneratorFunction"; + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + prototype[method] = function(arg) { + return this._invoke(method, arg); + }; + }); + } + + runtime.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + runtime.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + if (!(toStringTagSymbol in genFun)) { + genFun[toStringTagSymbol] = "GeneratorFunction"; + } + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + runtime.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return Promise.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return Promise.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new Promise(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + this._invoke = enqueue; + } + + defineIteratorMethods(AsyncIterator.prototype); + AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }; + runtime.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + runtime.async = function(innerFn, outerFn, self, tryLocsList) { + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList) + ); + + return runtime.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per 25.3.3.3.3 of the spec: + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method always terminates the yield* loop. + context.delegate = null; + + if (context.method === "throw") { + if (delegate.iterator.return) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a 'throw' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + Gp[toStringTagSymbol] = "Generator"; + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + Gp[iteratorSymbol] = function() { + return this; + }; + + Gp.toString = function() { + return "[object Generator]"; + }; + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + runtime.keys = function(object) { + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + // Return an iterator with no values. + return { next: doneResult }; + } + runtime.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; +})( + // In sloppy mode, unbound `this` refers to the global object, fallback to + // Function constructor if we're in global strict mode. That is sadly a form + // of indirect eval which violates Content Security Policy. + (function() { + return this || (typeof self === "object" && self); + })() || Function("return this")() +); + + +/***/ }), + +/***/ 7: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread; }); +/* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); + }); + } + + return target; +} + /***/ }) /******/ }); \ No newline at end of file diff --git a/wp-includes/js/dist/notices.min.js b/wp-includes/js/dist/notices.min.js index ba1bb3c527..6dbae44530 100644 --- a/wp-includes/js/dist/notices.min.js +++ b/wp-includes/js/dist/notices.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.notices=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}return 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=280)}({123:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},176: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}},177:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_STATUS=t.DEFAULT_CONTEXT=void 0;t.DEFAULT_CONTEXT="global";t.DEFAULT_STATUS="info"},2:function(e,t){!function(){e.exports=this.lodash}()},280:function(e,t,r){"use strict";r(281)},281:function(e,t,r){"use strict";var n=r(282),o=r(123);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(5),u=o(r(283)),c=n(r(290)),a=n(r(291)),f=o(r(292)),s=(0,i.registerStore)("core/notices",{reducer:u.default,actions:c,selectors:a,controls:f.default});t.default=s},282:function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}},283:function(e,t,r){"use strict";var n=r(123);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(284)),i=r(2),u=(0,n(r(288)).default)("context")(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CREATE_NOTICE":return[].concat((0,o.default)((0,i.reject)(e,{id:t.notice.id})),[t.notice]);case"REMOVE_NOTICE":return(0,i.reject)(e,{id:t.id})}return e});t.default=u},284:function(e,t,r){var n=r(285),o=r(286),i=r(287);e.exports=function(e){return n(e)||o(e)||i()}},285:function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,u=n[e];if(void 0===u)return r;var c=t(r[u],n);return c===r[u]?r:(0,i.default)({},r,(0,o.default)({},u,c))}}};t.onSubKey=u;var c=u;t.default=c},289:function(e,t,r){var n=r(176);e.exports=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:o.DEFAULT_CONTEXT;return{type:"REMOVE_NOTICE",id:e,context:t}};var n=r(2),o=r(177),i=regeneratorRuntime.mark(u);function u(){var e,t,r,u,c,a,f,s,l,d,p,v,b,y,O=arguments;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(e=O.length>0&&void 0!==O[0]?O[0]:o.DEFAULT_STATUS,t=O.length>1?O[1]:void 0,r=O.length>2&&void 0!==O[2]?O[2]:{},u=r.speak,c=void 0===u||u,a=r.isDismissible,f=void 0===a||a,s=r.context,l=void 0===s?o.DEFAULT_CONTEXT:s,d=r.id,p=void 0===d?(0,n.uniqueId)(l):d,v=r.actions,b=void 0===v?[]:v,y=r.__unstableHTML,t=String(t),!c){i.next=8;break}return i.next=8,{type:"SPEAK",message:t};case 8:return i.next=10,{type:"CREATE_NOTICE",context:l,notice:{id:p,status:e,content:t,__unstableHTML:y,isDismissible:f,actions:b}};case 10:case"end":return i.stop()}},i,this)}},291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNotices=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.DEFAULT_CONTEXT;return e[t]||o};var n=r(177),o=[]},292:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(44),o={SPEAK:function(e){(0,n.speak)(e.message,"assertive")}};t.default=o},44:function(e,t){!function(){e.exports=this.wp.a11y}()},5:function(e,t){!function(){e.exports=this.wp.data}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.notices=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=371)}({15:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",function(){return n})},17:function(t,e,r){"use strict";var n=r(34);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return r;var i=e(r[o],n);return i===r[o]?r:Object(f.a)({},r,Object(u.a)({},o,i))}}}("context")(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(a.reject)(t,{id:e.notice.id})),[e.notice]);case"REMOVE_NOTICE":return Object(a.reject)(t,{id:e.id})}return t}),l=r(26),h=r.n(l),p="global",d="info",y=h.a.mark(v);function v(){var t,e,r,n,o,i,c,u,f,s,l,v,g,m,b=arguments;return h.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(t=b.length>0&&void 0!==b[0]?b[0]:d,e=b.length>1?b[1]:void 0,r=b.length>2&&void 0!==b[2]?b[2]:{},n=r.speak,o=void 0===n||n,i=r.isDismissible,c=void 0===i||i,u=r.context,f=void 0===u?p:u,s=r.id,l=void 0===s?Object(a.uniqueId)(f):s,v=r.actions,g=void 0===v?[]:v,m=r.__unstableHTML,e=String(e),!o){h.next=8;break}return h.next=8,{type:"SPEAK",message:e};case 8:return h.next=10,{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:e,__unstableHTML:m,isDismissible:c,actions:g}};case 10:case"end":return h.stop()}},y,this)}function g(t,e){return v("success",t,e)}function m(t,e){return v("info",t,e)}function b(t,e){return v("error",t,e)}function w(t,e){return v("warning",t,e)}function O(t){return{type:"REMOVE_NOTICE",id:t,context:arguments.length>1&&void 0!==arguments[1]?arguments[1]:p}}var x=[];function j(t){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:p]||x}var E=r(48),L={SPEAK:function(t){Object(E.speak)(t.message,"assertive")}};Object(i.registerStore)("core/notices",{reducer:s,actions:n,selectors:o,controls:L})},48:function(t,e){!function(){t.exports=this.wp.a11y}()},5:function(t,e){!function(){t.exports=this.wp.data}()},54:function(t,e,r){var n=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(55),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},55:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",f="object"==typeof t,s=e.regeneratorRuntime;if(s)f&&(t.exports=s);else{(s=e.regeneratorRuntime=f?t.exports:{}).wrap=w;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",y={},v={};v[c]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==n&&o.call(m,c)&&(v=m);var b=E.prototype=x.prototype=Object.create(v);j.prototype=b.constructor=E,E.constructor=j,E[u]=j.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(b),t},s.awrap=function(t){return{__await:t}},L(_.prototype),_.prototype[a]=function(){return this},s.AsyncIterator=_,s.async=function(t,e,r,n){var o=new _(w(t,e,r,n));return s.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},L(b),b[u]="Generator",b[c]=function(){return this},b.toString=function(){return"[object Generator]"},s.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},s.values=k,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return a.type="throw",a.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(u&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}}}function w(t,e,r,n){var o=e&&e.prototype instanceof x?e:x,i=Object.create(o.prototype),c=new T(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return R()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=N(c,r);if(a){if(a===y)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=O(t,e,r);if("normal"===u.type){if(n=r.done?d:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,c),i}function O(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function x(){}function j(){}function E(){}function L(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function _(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,c){var a=O(t[r],t,n);if("throw"!==a.type){var u=a.arg,f=u.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,c)},function(t){e("throw",t,i,c)}):Promise.resolve(f).then(function(t){u.value=t,i(u)},function(t){return e("throw",t,i,c)})}c(a.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function N(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,N(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=O(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n0&&void 0!==arguments[0])||arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return Object(c.a)({},e,Object(o.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),l=Object(u.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(a.a)(e),[t.tipIds])}return e},preferences:s});function f(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function p(e){return{type:"DISMISS_TIP",id:e}}function d(){return{type:"DISABLE_TIPS"}}function b(){return{type:"ENABLE_TIPS"}}var v=n(25),h=n(28),y=n(2),g=Object(h.a)(function(e,t){var n=!0,r=!1,i=void 0;try{for(var u,o=e.guides[Symbol.iterator]();!(n=(u=o.next()).done);n=!0){var c=u.value;if(Object(y.includes)(c,t)){var a=Object(y.difference)(c,Object(y.keys)(e.preferences.dismissedTips)),s=Object(v.a)(a,2),l=s[0],f=void 0===l?null:l,p=s[1];return{tipIds:c,currentTipId:f,nextTipId:void 0===p?null:p}}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return null},function(e){return[e.guides,e.preferences.dismissedTips]});function O(e,t){if(!e.preferences.areTipsEnabled)return!1;if(e.preferences.dismissedTips[t])return!1;var n=g(e,t);return!n||n.currentTipId===t}function j(e){return e.preferences.areTipsEnabled}Object(u.registerStore)("core/nux",{reducer:l,actions:r,selectors:i,persist:["preferences"]});var m=n(0),T=n(7),x=n(4),w=n(1);function I(e){return e.parentNode.getBoundingClientRect()}function S(e){e.stopPropagation()}var E=Object(T.compose)(Object(u.withSelect)(function(e,t){var n=t.tipId,r=e("core/nux"),i=r.isTipVisible,u=(0,r.getAssociatedGuide)(n);return{isVisible:i(n),hasNextTip:!(!u||!u.nextTipId)}}),Object(u.withDispatch)(function(e,t){var n=t.tipId,r=e("core/nux"),i=r.dismissTip,u=r.disableTips;return{onDismiss:function(){i(n)},onDisable:function(){u()}}}))(function(e){var t=e.children,n=e.isVisible,r=e.hasNextTip,i=e.onDismiss,u=e.onDisable;return n?Object(m.createElement)(x.Popover,{className:"nux-dot-tip",position:"middle right",noArrow:!0,focusOnMount:"container",getAnchorRect:I,role:"dialog","aria-label":Object(w.__)("Editor tips"),onClick:S},Object(m.createElement)("p",null,t),Object(m.createElement)("p",null,Object(m.createElement)(x.Button,{isLink:!0,onClick:i},r?Object(w.__)("See next tip"):Object(w.__)("Got it"))),Object(m.createElement)(x.IconButton,{className:"nux-dot-tip__disable",icon:"no-alt",label:Object(w.__)("Disable tips"),onClick:u})):null});n.d(t,"DotTip",function(){return E})},33:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},34:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},35:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},4:function(e,t){!function(){e.exports=this.wp.components}()},5:function(e,t){!function(){e.exports=this.wp.data}()},7:function(e,t){!function(){e.exports=this.wp.compose}()},8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(15);function i(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return Object(c.a)({},e,Object(o.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),l=Object(u.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(a.a)(e),[t.tipIds])}return e},preferences:s});function f(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function p(e){return{type:"DISMISS_TIP",id:e}}function d(){return{type:"DISABLE_TIPS"}}function b(){return{type:"ENABLE_TIPS"}}var v=n(28),h=n(30),y=n(2),g=Object(h.a)(function(e,t){var n=!0,r=!1,i=void 0;try{for(var u,o=e.guides[Symbol.iterator]();!(n=(u=o.next()).done);n=!0){var c=u.value;if(Object(y.includes)(c,t)){var a=Object(y.difference)(c,Object(y.keys)(e.preferences.dismissedTips)),s=Object(v.a)(a,2),l=s[0],f=void 0===l?null:l,p=s[1];return{tipIds:c,currentTipId:f,nextTipId:void 0===p?null:p}}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return null},function(e){return[e.guides,e.preferences.dismissedTips]});function O(e,t){if(!e.preferences.areTipsEnabled)return!1;if(e.preferences.dismissedTips[t])return!1;var n=g(e,t);return!n||n.currentTipId===t}function j(e){return e.preferences.areTipsEnabled}Object(u.registerStore)("core/nux",{reducer:l,actions:r,selectors:i,persist:["preferences"]});var m=n(0),T=n(6),x=n(4),w=n(1);function I(e){return e.parentNode.getBoundingClientRect()}function S(e){e.stopPropagation()}var E=Object(T.compose)(Object(u.withSelect)(function(e,t){var n=t.tipId,r=e("core/nux"),i=r.isTipVisible,u=(0,r.getAssociatedGuide)(n);return{isVisible:i(n),hasNextTip:!(!u||!u.nextTipId)}}),Object(u.withDispatch)(function(e,t){var n=t.tipId,r=e("core/nux"),i=r.dismissTip,u=r.disableTips;return{onDismiss:function(){i(n)},onDisable:function(){u()}}}))(function(e){var t=e.children,n=e.isVisible,r=e.hasNextTip,i=e.onDismiss,u=e.onDisable;return n?Object(m.createElement)(x.Popover,{className:"nux-dot-tip",position:"middle right",noArrow:!0,focusOnMount:"container",getAnchorRect:I,role:"dialog","aria-label":Object(w.__)("Editor tips"),onClick:S},Object(m.createElement)("p",null,t),Object(m.createElement)("p",null,Object(m.createElement)(x.Button,{isLink:!0,onClick:i},r?Object(w.__)("See next tip"):Object(w.__)("Got it"))),Object(m.createElement)(x.IconButton,{className:"nux-dot-tip__disable",icon:"no-alt",label:Object(w.__)("Disable tips"),onClick:u})):null});n.d(t,"DotTip",function(){return E})},38:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},4:function(e,t){!function(){e.exports=this.wp.components}()},5:function(e,t){!function(){e.exports=this.wp.data}()},6:function(e,t){!function(){e.exports=this.wp.compose}()},7:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(15);function i(e){for(var t=1;tES5 + * ```js + * // Using ES5 syntax + * var el = wp.element.createElement; + * var Fragment = wp.element.Fragment; + * var PluginSidebar = wp.editPost.PluginSidebar; + * var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem; + * var registerPlugin = wp.plugins.registerPlugin; + * + * function Component() { + * return el( + * Fragment, + * {}, + * el( + * PluginSidebarMoreMenuItem, + * { + * target: 'sidebar-name', + * }, + * 'My Sidebar' + * ), + * el( + * PluginSidebar, + * { + * name: 'sidebar-name', + * title: 'My Sidebar', + * }, + * 'Content of the sidebar' + * ) + * ); + * } + * registerPlugin( 'plugin-name', { + * icon: 'smiley', + * render: Component, + * } ); + * ``` + * + * @example ESNext + * ```js + * // Using ESNext syntax + * const { Fragment } = wp.element; + * const { PluginSidebar, PluginSidebarMoreMenuItem } = wp.editPost; + * const { registerPlugin } = wp.plugins; + * + * const Component = () => ( + * + * + * My Sidebar + * + * + * Content of the sidebar + * + * + * ); + * + * registerPlugin( 'plugin-name', { + * icon: 'smiley', + * render: Component, + * } ); + * ``` * * @return {Object} The final plugin settings object. */ @@ -429,6 +495,22 @@ function registerPlugin(name, settings) { * * @param {string} name Plugin name. * + * @example ES5 + * ```js + * // Using ES5 syntax + * var unregisterPlugin = wp.plugins.unregisterPlugin; + * + * unregisterPlugin( 'plugin-name' ); + * ``` + * + * @example ESNext + * ```js + * // Using ESNext syntax + * const { unregisterPlugin } = wp.plugins; + * + * unregisterPlugin( 'plugin-name' ); + * ``` + * * @return {?WPPlugin} The previous plugin settings object, if it has been * successfully unregistered; otherwise `undefined`. */ @@ -493,6 +575,35 @@ function getPlugins() { /** * A component that renders all plugin fills in a hidden div. * + * @example ES5 + * ```js + * // Using ES5 syntax + * var el = wp.element.createElement; + * var PluginArea = wp.plugins.PluginArea; + * + * function Layout() { + * return el( + * 'div', + * {}, + * 'Content of the page', + * PluginArea + * ); + * } + * ``` + * + * @example ESNext + * ```js + * // Using ESNext syntax + * const { PluginArea } = wp.plugins; + * + * const Layout = () => ( + *
    + * Content of the page + * + *
    + * ); + * ``` + * * @return {WPElement} Plugin area. */ @@ -587,14 +698,14 @@ function (_Component) { /***/ }), -/***/ 7: +/***/ 6: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["compose"]; }()); /***/ }), -/***/ 8: +/***/ 7: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/plugins.min.js b/wp-includes/js/dist/plugins.min.js index 80cd9bc819..c222b065da 100644 --- a/wp-includes/js/dist/plugins.min.js +++ b/wp-includes/js/dist/plugins.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.plugins=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=324)}({0:function(t,e){!function(){t.exports=this.wp.element}()},10:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},11:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(29),o=n(3);function u(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},12:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},13:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",function(){return o})},15:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},19:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e console.log( 'This will be printed first' ) ); + * queue.add( ctx2, () => console.log( 'This won\'t be printed' ) ); + * queue.add( ctx2, () => console.log( 'This will be printed second' ) ); + *``` + * + * @return {Object} Queue object with `add` and `flush` methods. + */ + var createQueue = function createQueue() { var waitingList = []; var elementsMap = new WeakMap(); diff --git a/wp-includes/js/dist/priority-queue.min.js b/wp-includes/js/dist/priority-queue.min.js index 355e259a86..e66abe661c 100644 --- a/wp-includes/js/dist/priority-queue.min.js +++ b/wp-includes/js/dist/priority-queue.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.priorityQueue=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.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 u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));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=293)}({293:function(e,t,n){"use strict";n.r(t),n.d(t,"createQueue",function(){return u});var r=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,u=function(){var e=[],t=new WeakMap,n=!1,u=function u(i){do{if(0===e.length)return void(n=!1);var o=e.shift();t.get(o)(),t.delete(o)}while(i&&i.timeRemaining&&i.timeRemaining()>0);r(u)};return{add:function(i,o){t.has(i)||e.push(i),t.set(i,o),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;t.delete(n);var r=e.indexOf(n);return e.splice(r,1),!0}}}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.priorityQueue=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.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 u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));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=346)}({346:function(e,t,n){"use strict";n.r(t),n.d(t,"createQueue",function(){return u});var r=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,u=function(){var e=[],t=new WeakMap,n=!1,u=function u(i){do{if(0===e.length)return void(n=!1);var o=e.shift();t.get(o)(),t.delete(o)}while(i&&i.timeRemaining&&i.timeRemaining()>0);r(u)};return{add:function(i,o){t.has(i)||e.push(i),t.set(i,o),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;t.delete(n);var r=e.indexOf(n);return e.splice(r,1),!0}}}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/redux-routine.js b/wp-includes/js/dist/redux-routine.js index 309b836741..0d30c1cb0d 100644 --- a/wp-includes/js/dist/redux-routine.js +++ b/wp-includes/js/dist/redux-routine.js @@ -82,12 +82,89 @@ this["wp"] = this["wp"] || {}; this["wp"]["reduxRoutine"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 327); +/******/ return __webpack_require__(__webpack_require__.s = 378); /******/ }) /************************************************************************/ /******/ ({ -/***/ 178: +/***/ 100: +/***/ (function(module, exports) { + +module.exports = isPromise; + +function isPromise(obj) { + return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; +} + + +/***/ }), + +/***/ 107: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; + +var _keys = __webpack_require__(200); + +var _keys2 = _interopRequireDefault(_keys); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var is = { + obj: function obj(value) { + return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !!value; + }, + all: function all(value) { + return is.obj(value) && value.type === _keys2.default.all; + }, + error: function error(value) { + return is.obj(value) && value.type === _keys2.default.error; + }, + array: Array.isArray, + func: function func(value) { + return typeof value === 'function'; + }, + promise: function promise(value) { + return value && is.func(value.then); + }, + iterator: function iterator(value) { + return value && is.func(value.next) && is.func(value.throw); + }, + fork: function fork(value) { + return is.obj(value) && value.type === _keys2.default.fork; + }, + join: function join(value) { + return is.obj(value) && value.type === _keys2.default.join; + }, + race: function race(value) { + return is.obj(value) && value.type === _keys2.default.race; + }, + call: function call(value) { + return is.obj(value) && value.type === _keys2.default.call; + }, + cps: function cps(value) { + return is.obj(value) && value.type === _keys2.default.cps; + }, + subscribe: function subscribe(value) { + return is.obj(value) && value.type === _keys2.default.subscribe; + }, + channel: function channel(value) { + return is.obj(value) && is.func(value.subscribe); + } +}; + +exports.default = is; + +/***/ }), + +/***/ 199: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -98,7 +175,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.createChannel = exports.subscribe = exports.cps = exports.apply = exports.call = exports.invoke = exports.delay = exports.race = exports.join = exports.fork = exports.error = exports.all = undefined; -var _keys = __webpack_require__(179); +var _keys = __webpack_require__(200); var _keys2 = _interopRequireDefault(_keys); @@ -228,7 +305,14 @@ var createChannel = exports.createChannel = function createChannel(callback) { /***/ }), -/***/ 179: +/***/ 2: +/***/ (function(module, exports) { + +(function() { module.exports = this["lodash"]; }()); + +/***/ }), + +/***/ 200: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -252,7 +336,7 @@ exports.default = keys; /***/ }), -/***/ 194: +/***/ 228: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -263,7 +347,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.wrapControls = exports.asyncControls = exports.create = undefined; -var _helpers = __webpack_require__(178); +var _helpers = __webpack_require__(199); Object.keys(_helpers).forEach(function (key) { if (key === "default") return; @@ -275,15 +359,15 @@ Object.keys(_helpers).forEach(function (key) { }); }); -var _create = __webpack_require__(294); +var _create = __webpack_require__(347); var _create2 = _interopRequireDefault(_create); -var _async = __webpack_require__(296); +var _async = __webpack_require__(349); var _async2 = _interopRequireDefault(_async); -var _wrap = __webpack_require__(298); +var _wrap = __webpack_require__(351); var _wrap2 = _interopRequireDefault(_wrap); @@ -295,14 +379,7 @@ exports.wrapControls = _wrap2.default; /***/ }), -/***/ 2: -/***/ (function(module, exports) { - -(function() { module.exports = this["lodash"]; }()); - -/***/ }), - -/***/ 294: +/***/ 347: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -312,11 +389,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _builtin = __webpack_require__(295); +var _builtin = __webpack_require__(348); var _builtin2 = _interopRequireDefault(_builtin); -var _is = __webpack_require__(97); +var _is = __webpack_require__(107); var _is2 = _interopRequireDefault(_is); @@ -388,7 +465,7 @@ exports.default = create; /***/ }), -/***/ 295: +/***/ 348: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -399,7 +476,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.iterator = exports.array = exports.object = exports.error = exports.any = undefined; -var _is = __webpack_require__(97); +var _is = __webpack_require__(107); var _is2 = _interopRequireDefault(_is); @@ -489,7 +566,7 @@ exports.default = [error, iterator, array, object, any]; /***/ }), -/***/ 296: +/***/ 349: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -500,13 +577,13 @@ Object.defineProperty(exports, "__esModule", { }); exports.race = exports.join = exports.fork = exports.promise = undefined; -var _is = __webpack_require__(97); +var _is = __webpack_require__(107); var _is2 = _interopRequireDefault(_is); -var _helpers = __webpack_require__(178); +var _helpers = __webpack_require__(199); -var _dispatcher = __webpack_require__(297); +var _dispatcher = __webpack_require__(350); var _dispatcher2 = _interopRequireDefault(_dispatcher); @@ -611,7 +688,7 @@ exports.default = [promise, fork, join, race, subscribe]; /***/ }), -/***/ 297: +/***/ 350: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -644,7 +721,7 @@ exports.default = createDispatcher; /***/ }), -/***/ 298: +/***/ 351: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -655,7 +732,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.cps = exports.call = undefined; -var _is = __webpack_require__(97); +var _is = __webpack_require__(107); var _is2 = _interopRequireDefault(_is); @@ -687,7 +764,7 @@ exports.default = [call, cps]; /***/ }), -/***/ 327: +/***/ 378: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -708,13 +785,13 @@ function isGenerator(object) { } // EXTERNAL MODULE: ./node_modules/rungen/dist/index.js -var dist = __webpack_require__(194); +var dist = __webpack_require__(228); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: ./node_modules/is-promise/index.js -var is_promise = __webpack_require__(89); +var is_promise = __webpack_require__(100); var is_promise_default = /*#__PURE__*/__webpack_require__.n(is_promise); // CONCATENATED MODULE: ./node_modules/@wordpress/redux-routine/build-module/is-action.js @@ -852,83 +929,6 @@ function createMiddleware() { } -/***/ }), - -/***/ 89: -/***/ (function(module, exports) { - -module.exports = isPromise; - -function isPromise(obj) { - return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; -} - - -/***/ }), - -/***/ 97: -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - -var _keys = __webpack_require__(179); - -var _keys2 = _interopRequireDefault(_keys); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var is = { - obj: function obj(value) { - return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !!value; - }, - all: function all(value) { - return is.obj(value) && value.type === _keys2.default.all; - }, - error: function error(value) { - return is.obj(value) && value.type === _keys2.default.error; - }, - array: Array.isArray, - func: function func(value) { - return typeof value === 'function'; - }, - promise: function promise(value) { - return value && is.func(value.then); - }, - iterator: function iterator(value) { - return value && is.func(value.next) && is.func(value.throw); - }, - fork: function fork(value) { - return is.obj(value) && value.type === _keys2.default.fork; - }, - join: function join(value) { - return is.obj(value) && value.type === _keys2.default.join; - }, - race: function race(value) { - return is.obj(value) && value.type === _keys2.default.race; - }, - call: function call(value) { - return is.obj(value) && value.type === _keys2.default.call; - }, - cps: function cps(value) { - return is.obj(value) && value.type === _keys2.default.cps; - }, - subscribe: function subscribe(value) { - return is.obj(value) && value.type === _keys2.default.subscribe; - }, - channel: function channel(value) { - return is.obj(value) && is.func(value.subscribe); - } -}; - -exports.default = is; - /***/ }) /******/ })["default"]; \ No newline at end of file diff --git a/wp-includes/js/dist/redux-routine.min.js b/wp-includes/js/dist/redux-routine.min.js index 6e0aa6a764..c9191d7b4d 100644 --- a/wp-includes/js/dist/redux-routine.min.js +++ b/wp-includes/js/dist/redux-routine.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=327)}({178:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(179),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(u.map)(t,function(t,r){return function(e,n,u,o,i){if(l=r,!f(a=e)||a.type!==l)return!1;var a,l,s=t(e);return c()(s)?s.then(o,i):o(s),!0}});e.push(function(t,e){return!!f(t)&&(r(t),e(),!0)});var o=Object(n.create)(e);return function(t){return new Promise(function(e,n){return o(t,function(t){f(t)&&r(t),e(t)},n)})}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=i(t,r.dispatch);return function(t){return function(r){return(n=r)&&"Generator"===n[Symbol.toStringTag]?e(r):t(r);var n}}}}e.d(r,"default",function(){return a})},89:function(t,r){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}},97:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(179),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=378)}({100:function(t,r){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}},107:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(200),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f},199:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(200),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(u.map)(t,function(t,r){return function(e,n,u,o,i){if(l=r,!f(a=e)||a.type!==l)return!1;var a,l,s=t(e);return c()(s)?s.then(o,i):o(s),!0}});e.push(function(t,e){return!!f(t)&&(r(t),e(),!0)});var o=Object(n.create)(e);return function(t){return new Promise(function(e,n){return o(t,function(t){f(t)&&r(t),e(t)},n)})}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=i(t,r.dispatch);return function(t){return function(r){return(n=r)&&"Generator"===n[Symbol.toStringTag]?e(r):t(r);var n}}}}e.d(r,"default",function(){return a})}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/rich-text.js b/wp-includes/js/dist/rich-text.js index 5f7957e8cb..2173cddcdb 100644 --- a/wp-includes/js/dist/rich-text.js +++ b/wp-includes/js/dist/rich-text.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["richText"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 308); +/******/ return __webpack_require__(__webpack_require__.s = 361); /******/ }) /************************************************************************/ /******/ ({ @@ -116,7 +116,7 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 18: +/***/ 17: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -132,7 +132,7 @@ function _arrayWithoutHoles(arr) { } } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(33); +var iterableToArray = __webpack_require__(34); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -181,14 +181,14 @@ function _extends() { /***/ }), -/***/ 23: +/***/ 24: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["hooks"]; }()); /***/ }), -/***/ 28: +/***/ 30: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -470,7 +470,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 29: +/***/ 32: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -493,7 +493,18 @@ function _typeof(obj) { /***/ }), -/***/ 308: +/***/ 34: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +/***/ }), + +/***/ 361: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -513,7 +524,7 @@ __webpack_require__.d(actions_namespaceObject, "removeFormatTypes", function() { var external_this_wp_data_ = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js -var objectSpread = __webpack_require__(8); +var objectSpread = __webpack_require__(7); // EXTERNAL MODULE: external "lodash" var external_lodash_ = __webpack_require__(2); @@ -558,7 +569,7 @@ function reducer_formatTypes() { })); // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js -var rememo = __webpack_require__(28); +var rememo = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/store/selectors.js /** @@ -681,6 +692,9 @@ Object(external_this_wp_data_["registerStore"])('core/rich-text', { actions: actions_namespaceObject }); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(17); + // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/is-format-equal.js /** * Optimised equality check for format objects. @@ -738,6 +752,8 @@ function isFormatEqual(format1, format2) { } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/normalise-formats.js + + /** * External dependencies */ @@ -750,18 +766,14 @@ function isFormatEqual(format1, format2) { /** * Normalises formats: ensures subsequent equal formats have the same reference. * - * @param {Object} value Value to normalise formats of. + * @param {Object} value Value to normalise formats of. * * @return {Object} New value with normalised formats. */ -function normaliseFormats(_ref) { - var formats = _ref.formats, - text = _ref.text, - start = _ref.start, - end = _ref.end; +function normaliseFormats(value) { var refs = []; - var newFormats = formats.map(function (formatsAtIndex) { + var newFormats = value.formats.map(function (formatsAtIndex) { return formatsAtIndex.map(function (format) { var equalRef = Object(external_lodash_["find"])(refs, function (ref) { return isFormatEqual(ref, format); @@ -775,15 +787,15 @@ function normaliseFormats(_ref) { return format; }); }); - return { - formats: newFormats, - text: text, - start: start, - end: end - }; + return Object(objectSpread["a" /* default */])({}, value, { + formats: newFormats + }); } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/apply-format.js + + + /** * External dependencies */ @@ -798,22 +810,18 @@ function normaliseFormats(_ref) { * given `endIndex`. Indices are retrieved from the selection if none are * provided. * - * @param {Object} value Value to modify. - * @param {Object} format Format to apply. - * @param {number} startIndex Start index. - * @param {number} endIndex End index. + * @param {Object} value Value to modify. + * @param {Object} format Format to apply. + * @param {number} [startIndex] Start index. + * @param {number} [endIndex] End index. * * @return {Object} A new value with the format applied. */ -function applyFormat(_ref, format) { - var formats = _ref.formats, - text = _ref.text, - start = _ref.start, - end = _ref.end; - var startIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : start; - var endIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : end; - var newFormats = formats.slice(0); // The selection is collapsed. +function applyFormat(value, format) { + var startIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : value.start; + var endIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : value.end; + var newFormats = value.formats.slice(0); // The selection is collapsed. if (startIndex === endIndex) { var startFormat = Object(external_lodash_["find"])(newFormats[startIndex], { @@ -837,16 +845,9 @@ function applyFormat(_ref, format) { } else { var previousFormat = newFormats[startIndex - 1] || []; - var hasType = Object(external_lodash_["find"])(previousFormat, { - type: format.type + return Object(objectSpread["a" /* default */])({}, value, { + formatPlaceholder: [].concat(Object(toConsumableArray["a" /* default */])(previousFormat), [format]) }); - return { - formats: formats, - text: text, - start: start, - end: end, - formatPlaceholder: hasType ? undefined : format - }; } } else { for (var index = startIndex; index < endIndex; index++) { @@ -854,18 +855,15 @@ function applyFormat(_ref, format) { } } - return normaliseFormats({ - formats: newFormats, - text: text, - start: start, - end: end - }); + return normaliseFormats(Object(objectSpread["a" /* default */])({}, value, { + formats: newFormats + })); } function applyFormats(formats, index, format) { if (formats[index]) { - var newFormatsAtIndex = formats[index].filter(function (_ref2) { - var type = _ref2.type; + var newFormatsAtIndex = formats[index].filter(function (_ref) { + var type = _ref.type; return type !== format.type; }); newFormatsAtIndex.push(format); @@ -883,102 +881,15 @@ function applyFormats(formats, index, format) { * @param {Object} value Value to get the character from. * @param {string} index Index to use. * - * @return {?string} A one character long string, or undefined. + * @return {string|undefined} A one character long string, or undefined. */ function charAt(_ref, index) { var text = _ref.text; return text[index]; } -// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/concat.js -/** - * Internal dependencies - */ - -/** - * Combine all Rich Text values into one. This is similar to - * `String.prototype.concat`. - * - * @param {...Object} values Objects to combine. - * - * @return {Object} A new value combining all given records. - */ - -function concat() { - for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { - values[_key] = arguments[_key]; - } - - return normaliseFormats(values.reduce(function (accumlator, _ref) { - var formats = _ref.formats, - text = _ref.text; - return { - text: accumlator.text + text, - formats: accumlator.formats.concat(formats) - }; - })); -} - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(18); - // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js -var esm_typeof = __webpack_require__(29); - -// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/special-characters.js -var LINE_SEPARATOR = "\u2028"; -var OBJECT_REPLACEMENT_CHARACTER = "\uFFFC"; - -// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/is-empty.js -/** - * Internal dependencies - */ - -/** - * Check if a Rich Text value is Empty, meaning it contains no text or any - * objects (such as images). - * - * @param {Object} value Value to use. - * - * @return {boolean} True if the value is empty, false if not. - */ - -function isEmpty(_ref) { - var text = _ref.text; - return text.length === 0; -} -/** - * Check if the current collapsed selection is on an empty line in case of a - * multiline value. - * - * @param {Object} value Value te check. - * - * @return {boolean} True if the line is empty, false if not. - */ - -function isEmptyLine(_ref2) { - var text = _ref2.text, - start = _ref2.start, - end = _ref2.end; - - if (start !== end) { - return false; - } - - if (text.length === 0) { - return true; - } - - if (start === 0 && text.slice(0, 1) === LINE_SEPARATOR) { - return true; - } - - if (start === text.length && text.slice(-1) === LINE_SEPARATOR) { - return true; - } - - return text.slice(start - 1, end + 1) === "".concat(LINE_SEPARATOR).concat(LINE_SEPARATOR); -} +var esm_typeof = __webpack_require__(32); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/create-element.js /** @@ -1008,10 +919,18 @@ function createElement(_ref, html) { return createElement.body; } +// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/special-characters.js +/** + * Line separator character. + */ +var LINE_SEPARATOR = "\u2028"; +var OBJECT_REPLACEMENT_CHARACTER = "\uFFFC"; + // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/create.js + /** * WordPress dependencies */ @@ -1035,6 +954,7 @@ var _window$Node = window.Node, function createEmptyValue() { return { formats: [], + replacements: [], text: '' }; } @@ -1078,6 +998,10 @@ function toFormat(_ref) { }; } + if (formatType.__experimentalCreatePrepareEditableTree && !formatType.__experimentalCreateOnChangeEditableValue) { + return null; + } + if (!attributes) { return { type: formatType.name @@ -1111,14 +1035,34 @@ function toFormat(_ref) { * `multilineTag` will be separated by two newlines. The optional functions can * be used to filter out content. * - * @param {?Object} $1 Optional named argements. - * @param {?Element} $1.element Element to create value from. - * @param {?string} $1.text Text to create value from. - * @param {?string} $1.html HTML to create value from. - * @param {?Range} $1.range Range to create value from. - * @param {?string} $1.multilineTag Multiline tag if the structure is + * A value will have the following shape, which you are strongly encouraged not + * to modify without the use of helper functions: + * + * ```js + * { + * text: string, + * formats: Array, + * replacements: Array, + * ?start: number, + * ?end: number, + * } + * ``` + * + * As you can see, text and formatting are separated. `text` holds the text, + * including any replacement characters for objects and lines. `formats`, + * `objects` and `lines` are all sparse arrays of the same length as `text`. It + * holds information about the formatting at the relevant text indices. Finally + * `start` and `end` state which text indices are selected. They are only + * provided if a `Range` was given. + * + * @param {Object} [$1] Optional named arguments. + * @param {Element} [$1.element] Element to create value from. + * @param {string} [$1.text] Text to create value from. + * @param {string} [$1.html] HTML to create value from. + * @param {Range} [$1.range] Range to create value from. + * @param {string} [$1.multilineTag] Multiline tag if the structure is * multiline. - * @param {?Array} $1.multilineWrapperTags Tags where lines can be found if + * @param {Array} [$1.multilineWrapperTags] Tags where lines can be found if * nesting is possible. * * @return {Object} A rich text value. @@ -1132,11 +1076,13 @@ function create() { html = _ref2.html, range = _ref2.range, multilineTag = _ref2.multilineTag, - multilineWrapperTags = _ref2.multilineWrapperTags; + multilineWrapperTags = _ref2.multilineWrapperTags, + isEditableTree = _ref2.__unstableIsEditableTree; if (typeof text === 'string' && text.length > 0) { return { formats: Array(text.length), + replacements: Array(text.length), text: text }; } @@ -1152,7 +1098,8 @@ function create() { if (!multilineTag) { return createFromElement({ element: element, - range: range + range: range, + isEditableTree: isEditableTree }); } @@ -1160,7 +1107,8 @@ function create() { element: element, range: range, multilineTag: multilineTag, - multilineWrapperTags: multilineWrapperTags + multilineWrapperTags: multilineWrapperTags, + isEditableTree: isEditableTree }); } /** @@ -1273,7 +1221,8 @@ function createFromElement(_ref3) { multilineTag = _ref3.multilineTag, multilineWrapperTags = _ref3.multilineWrapperTags, _ref3$currentWrapperT = _ref3.currentWrapperTags, - currentWrapperTags = _ref3$currentWrapperT === void 0 ? [] : _ref3$currentWrapperT; + currentWrapperTags = _ref3$currentWrapperT === void 0 ? [] : _ref3$currentWrapperT, + isEditableTree = _ref3.isEditableTree; var accumulator = createEmptyValue(); if (!element) { @@ -1287,38 +1236,39 @@ function createFromElement(_ref3) { var length = element.childNodes.length; // Optimise for speed. - for (var index = 0; index < length; index++) { + var _loop = function _loop(index) { var node = element.childNodes[index]; var type = node.nodeName.toLowerCase(); if (node.nodeType === TEXT_NODE) { - var _text = filterString(node.nodeValue); - + var text = filterString(node.nodeValue); range = filterRange(node, range, filterString); accumulateSelection(accumulator, node, range, { - text: _text - }); - accumulator.text += _text; // Create a sparse array of the same length as `text`, in which + text: text + }); // Create a sparse array of the same length as `text`, in which // formats can be added. - accumulator.formats.length += _text.length; - continue; + accumulator.formats.length += text.length; + accumulator.replacements.length += text.length; + accumulator.text += text; + return "continue"; } if (node.nodeType !== ELEMENT_NODE) { - continue; + return "continue"; } - if (node.getAttribute('data-rich-text-padding')) { + if (node.getAttribute('data-rich-text-padding') || isEditableTree && type === 'br' && !node.getAttribute('data-rich-text-line-break')) { accumulateSelection(accumulator, node, range, createEmptyValue()); - continue; + return "continue"; } if (type === 'br') { accumulateSelection(accumulator, node, range, createEmptyValue()); - accumulator.text += '\n'; - accumulator.formats.length += 1; - continue; + mergePair(accumulator, create({ + text: '\n' + })); + return "continue"; } var lastFormats = accumulator.formats[accumulator.formats.length - 1]; @@ -1329,83 +1279,55 @@ function createFromElement(_ref3) { element: node }) }); - var format = void 0; - - if (newFormat) { - // Reuse the last format if it's equal. - if (isFormatEqual(newFormat, lastFormat)) { - format = lastFormat; - } else { - format = newFormat; - } - } - - var value = void 0; + var format = isFormatEqual(newFormat, lastFormat) ? lastFormat : newFormat; if (multilineWrapperTags && multilineWrapperTags.indexOf(type) !== -1) { - value = createFromMultilineElement({ + var _value = createFromMultilineElement({ element: node, range: range, multilineTag: multilineTag, multilineWrapperTags: multilineWrapperTags, - currentWrapperTags: [].concat(Object(toConsumableArray["a" /* default */])(currentWrapperTags), [format]) - }); - format = undefined; - } else { - value = createFromElement({ - element: node, - range: range, - multilineTag: multilineTag, - multilineWrapperTags: multilineWrapperTags + currentWrapperTags: [].concat(Object(toConsumableArray["a" /* default */])(currentWrapperTags), [format]), + isEditableTree: isEditableTree }); + + accumulateSelection(accumulator, node, range, _value); + mergePair(accumulator, _value); + return "continue"; } - var text = value.text; - var start = accumulator.text.length; - accumulateSelection(accumulator, node, range, value); // Don't apply the element as formatting if it has no content. + var value = createFromElement({ + element: node, + range: range, + multilineTag: multilineTag, + multilineWrapperTags: multilineWrapperTags, + isEditableTree: isEditableTree + }); + accumulateSelection(accumulator, node, range, value); - if (isEmpty(value) && format && !format.attributes) { - continue; - } - - var formats = accumulator.formats; - - if (format && format.attributes && text.length === 0) { - format.object = true; - accumulator.text += OBJECT_REPLACEMENT_CHARACTER; - - if (formats[start]) { - formats[start].unshift(format); - } else { - formats[start] = [format]; + if (!format) { + mergePair(accumulator, value); + } else if (value.text.length === 0) { + if (format.attributes) { + mergePair(accumulator, { + formats: [,], + replacements: [format], + text: OBJECT_REPLACEMENT_CHARACTER + }); } } else { - accumulator.text += text; - accumulator.formats.length += text.length; - var i = value.formats.length; // Optimise for speed. - - while (i--) { - var formatIndex = start + i; - - if (format) { - if (formats[formatIndex]) { - formats[formatIndex].push(format); - } else { - formats[formatIndex] = [format]; - } - } - - if (value.formats[i]) { - if (formats[formatIndex]) { - var _formats$formatIndex; - - (_formats$formatIndex = formats[formatIndex]).push.apply(_formats$formatIndex, Object(toConsumableArray["a" /* default */])(value.formats[i])); - } else { - formats[formatIndex] = value.formats[i]; - } - } - } + mergePair(accumulator, Object(objectSpread["a" /* default */])({}, value, { + formats: Array.from(value.formats, function (formats) { + return formats ? [format].concat(Object(toConsumableArray["a" /* default */])(formats)) : [format]; + }) + })); } + }; + + for (var index = 0; index < length; index++) { + var _ret = _loop(index); + + if (_ret === "continue") continue; } return accumulator; @@ -1434,7 +1356,8 @@ function createFromMultilineElement(_ref4) { multilineTag = _ref4.multilineTag, multilineWrapperTags = _ref4.multilineWrapperTags, _ref4$currentWrapperT = _ref4.currentWrapperTags, - currentWrapperTags = _ref4$currentWrapperT === void 0 ? [] : _ref4$currentWrapperT; + currentWrapperTags = _ref4$currentWrapperT === void 0 ? [] : _ref4$currentWrapperT, + isEditableTree = _ref4.isEditableTree; var accumulator = createEmptyValue(); if (!element || !element.hasChildNodes()) { @@ -1455,34 +1378,20 @@ function createFromMultilineElement(_ref4) { range: range, multilineTag: multilineTag, multilineWrapperTags: multilineWrapperTags, - currentWrapperTags: currentWrapperTags - }); // If a line consists of one single line break (invisible), consider the - // line empty, wether this is the browser's doing or not. - - if (value.text === '\n') { - var start = value.start; - var end = value.end; - value = createEmptyValue(); - - if (start !== undefined) { - value.start = 0; - } - - if (end !== undefined) { - value.end = 0; - } - } // Multiline value text should be separated by a double line break. - + currentWrapperTags: currentWrapperTags, + isEditableTree: isEditableTree + }); // Multiline value text should be separated by a line separator. if (index !== 0 || currentWrapperTags.length > 0) { - var formats = currentWrapperTags.length > 0 ? [currentWrapperTags] : [,]; - accumulator.formats = accumulator.formats.concat(formats); - accumulator.text += LINE_SEPARATOR; + mergePair(accumulator, { + formats: [,], + replacements: currentWrapperTags.length > 0 ? [currentWrapperTags] : [,], + text: LINE_SEPARATOR + }); } accumulateSelection(accumulator, node, range, value); - accumulator.formats = accumulator.formats.concat(value.formats); - accumulator.text += value.text; + mergePair(accumulator, value); } return accumulator; @@ -1513,7 +1422,7 @@ function getAttributes(_ref5) { name = _element$attributes$i.name, value = _element$attributes$i.value; - if (name === 'data-rich-text-format-boundary') { + if (name.indexOf('data-rich-text-') === 0) { continue; } @@ -1524,6 +1433,45 @@ function getAttributes(_ref5) { return accumulator; } +// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/concat.js +/** + * Internal dependencies + */ + + +/** + * Concats a pair of rich text values. Not that this mutates `a` and does NOT + * normalise formats! + * + * @param {Object} a Value to mutate. + * @param {Object} b Value to add read from. + * + * @return {Object} `a`, mutated. + */ + +function mergePair(a, b) { + a.formats = a.formats.concat(b.formats); + a.replacements = a.replacements.concat(b.replacements); + a.text += b.text; + return a; +} +/** + * Combine all Rich Text values into one. This is similar to + * `String.prototype.concat`. + * + * @param {...Object} values Objects to combine. + * + * @return {Object} A new value combining all given records. + */ + +function concat() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } + + return normaliseFormats(values.reduce(mergePair, create())); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/get-active-formats.js /** * Gets the all format objects at the start of the selection. @@ -1571,7 +1519,7 @@ function getActiveFormats(_ref) { * @param {Object} value Value to inspect. * @param {string} formatType Format type to look for. * - * @return {?Object} Active format object of the specified type, or undefined. + * @return {Object|undefined} Active format object of the specified type, or undefined. */ function getActiveFormat(value, formatType) { @@ -1580,6 +1528,32 @@ function getActiveFormat(value, formatType) { }); } +// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/get-active-object.js +/** + * Internal dependencies + */ + +/** + * Gets the active object, if there is any. + * + * @param {Object} value Value to inspect. + * + * @return {?Object} Active object, or undefined. + */ + +function getActiveObject(_ref) { + var start = _ref.start, + end = _ref.end, + replacements = _ref.replacements, + text = _ref.text; + + if (start + 1 !== end || text[start] !== OBJECT_REPLACEMENT_CHARACTER) { + return; + } + + return replacements[start]; +} + // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/get-selection-end.js /** * Gets the end index of the current selection, or returns `undefined` if no @@ -1588,7 +1562,7 @@ function getActiveFormat(value, formatType) { * * @param {Object} value Value to get the selection from. * - * @return {?number} Index where the selection ends. + * @return {number|undefined} Index where the selection ends. */ function getSelectionEnd(_ref) { var end = _ref.end; @@ -1603,7 +1577,7 @@ function getSelectionEnd(_ref) { * * @param {Object} value Value to get the selection from. * - * @return {?number} Index where the selection starts. + * @return {number|undefined} Index where the selection starts. */ function getSelectionStart(_ref) { var start = _ref.start; @@ -1633,8 +1607,8 @@ function getTextContent(_ref) { * * @param {Object} value The rich text value to check. * - * @return {?boolean} True if the selection is collapsed, false if not, - * undefined if there is no selection. + * @return {boolean|undefined} True if the selection is collapsed, false if not, + * undefined if there is no selection. */ function isCollapsed(_ref) { var start = _ref.start, @@ -1647,6 +1621,57 @@ function isCollapsed(_ref) { return start === end; } +// CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/is-empty.js +/** + * Internal dependencies + */ + +/** + * Check if a Rich Text value is Empty, meaning it contains no text or any + * objects (such as images). + * + * @param {Object} value Value to use. + * + * @return {boolean} True if the value is empty, false if not. + */ + +function isEmpty(_ref) { + var text = _ref.text; + return text.length === 0; +} +/** + * Check if the current collapsed selection is on an empty line in case of a + * multiline value. + * + * @param {Object} value Value te check. + * + * @return {boolean} True if the line is empty, false if not. + */ + +function isEmptyLine(_ref2) { + var text = _ref2.text, + start = _ref2.start, + end = _ref2.end; + + if (start !== end) { + return false; + } + + if (text.length === 0) { + return true; + } + + if (start === 0 && text.slice(0, 1) === LINE_SEPARATOR) { + return true; + } + + if (start === text.length && text.slice(-1) === LINE_SEPARATOR) { + return true; + } + + return text.slice(start - 1, end + 1) === "".concat(LINE_SEPARATOR).concat(LINE_SEPARATOR); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/join.js /** * Internal dependencies @@ -1658,8 +1683,8 @@ function isCollapsed(_ref) { * `separator`, which can be a Rich Text value, HTML string, or plain text * string. This is similar to `Array.prototype.join`. * - * @param {Array} values An array of values to join. - * @param {string|Object} separator Separator string or value. + * @param {Array} values An array of values to join. + * @param {string|Object} [separator] Separator string or value. * * @return {Object} A new combined value. */ @@ -1675,10 +1700,12 @@ function join(values) { return normaliseFormats(values.reduce(function (accumlator, _ref) { var formats = _ref.formats, + replacements = _ref.replacements, text = _ref.text; return { - text: accumlator.text + separator.text + text, - formats: accumlator.formats.concat(separator.formats, formats) + formats: accumlator.formats.concat(separator.formats, formats), + replacements: accumlator.replacements.concat(separator.replacements, replacements), + text: accumlator.text + separator.text + text }; })); } @@ -1693,14 +1720,14 @@ var esm_extends = __webpack_require__(19); var external_this_wp_element_ = __webpack_require__(0); // EXTERNAL MODULE: ./node_modules/memize/index.js -var memize = __webpack_require__(38); +var memize = __webpack_require__(41); var memize_default = /*#__PURE__*/__webpack_require__.n(memize); // EXTERNAL MODULE: external {"this":["wp","hooks"]} -var external_this_wp_hooks_ = __webpack_require__(23); +var external_this_wp_hooks_ = __webpack_require__(24); // EXTERNAL MODULE: external {"this":["wp","compose"]} -var external_this_wp_compose_ = __webpack_require__(7); +var external_this_wp_compose_ = __webpack_require__(6); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/register-format-type.js @@ -1736,11 +1763,15 @@ var EMPTY_ARRAY = []; * Registers a new format provided a unique name and an object defining its * behavior. * - * @param {string} name Format name. - * @param {Object} settings Format settings. + * @param {string} name Format name. + * @param {Object} settings Format settings. + * @param {string} settings.tagName The HTML tag this format will wrap the selection with. + * @param {string} [settings.className] A class to match the format. + * @param {string} settings.title Name of the format. + * @param {Function} settings.edit Should return a component for the user to interact with the new registered format. * - * @return {?WPFormat} The format, if it has been successfully registered; - * otherwise `undefined`. + * @return {WPFormat|undefined} The format, if it has been successfully registered; + * otherwise `undefined`. */ function registerFormatType(name, settings) { @@ -1816,7 +1847,7 @@ function registerFormatType(name, settings) { return [].concat(Object(toConsumableArray["a" /* default */])(previousStack), [newFunction]); }); - if (settings.__experimentalGetPropsForEditableTreePreparation) { + if (settings.__experimentalCreatePrepareEditableTree) { Object(external_this_wp_hooks_["addFilter"])('experimentalRichText', name, function (OriginalComponent) { var Component = OriginalComponent; @@ -1853,14 +1884,18 @@ function registerFormatType(name, settings) { }; } - var hocs = [Object(external_this_wp_data_["withSelect"])(function (sel, _ref) { - var clientId = _ref.clientId, - identifier = _ref.identifier; - return Object(defineProperty["a" /* default */])({}, "format_".concat(name), settings.__experimentalGetPropsForEditableTreePreparation(sel, { - richTextIdentifier: identifier, - blockClientId: clientId + var hocs = []; + + if (settings.__experimentalGetPropsForEditableTreePreparation) { + hocs.push(Object(external_this_wp_data_["withSelect"])(function (sel, _ref) { + var clientId = _ref.clientId, + identifier = _ref.identifier; + return Object(defineProperty["a" /* default */])({}, "format_".concat(name), settings.__experimentalGetPropsForEditableTreePreparation(sel, { + richTextIdentifier: identifier, + blockClientId: clientId + })); })); - })]; + } if (settings.__experimentalGetPropsForEditableTreeChangeHandler) { hocs.push(Object(external_this_wp_data_["withDispatch"])(function (disp, _ref3) { @@ -1886,6 +1921,8 @@ function registerFormatType(name, settings) { } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/remove-format.js + + /** * External dependencies */ @@ -1900,22 +1937,18 @@ function registerFormatType(name, settings) { * `startIndex` to the given `endIndex`. Indices are retrieved from the * selection if none are provided. * - * @param {Object} value Value to modify. - * @param {string} formatType Format type to remove. - * @param {number} startIndex Start index. - * @param {number} endIndex End index. + * @param {Object} value Value to modify. + * @param {string} formatType Format type to remove. + * @param {number} [startIndex] Start index. + * @param {number} [endIndex] End index. * * @return {Object} A new value with the format applied. */ -function removeFormat(_ref, formatType) { - var formats = _ref.formats, - text = _ref.text, - start = _ref.start, - end = _ref.end; - var startIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : start; - var endIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : end; - var newFormats = formats.slice(0); // If the selection is collapsed, expand start and end to the edges of the +function removeFormat(value, formatType) { + var startIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : value.start; + var endIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : value.end; + var newFormats = value.formats.slice(0); // If the selection is collapsed, expand start and end to the edges of the // format. if (startIndex === endIndex) { @@ -1923,16 +1956,24 @@ function removeFormat(_ref, formatType) { type: formatType }); - while (Object(external_lodash_["find"])(newFormats[startIndex], format)) { - filterFormats(newFormats, startIndex, formatType); - startIndex--; - } + if (format) { + while (Object(external_lodash_["find"])(newFormats[startIndex], format)) { + filterFormats(newFormats, startIndex, formatType); + startIndex--; + } - endIndex++; - - while (Object(external_lodash_["find"])(newFormats[endIndex], format)) { - filterFormats(newFormats, endIndex, formatType); endIndex++; + + while (Object(external_lodash_["find"])(newFormats[endIndex], format)) { + filterFormats(newFormats, endIndex, formatType); + endIndex++; + } + } else { + return Object(objectSpread["a" /* default */])({}, value, { + formatPlaceholder: Object(external_lodash_["reject"])(newFormats[startIndex - 1] || [], { + type: formatType + }) + }); } } else { for (var i = startIndex; i < endIndex; i++) { @@ -1942,17 +1983,14 @@ function removeFormat(_ref, formatType) { } } - return normaliseFormats({ - formats: newFormats, - text: text, - start: start, - end: end - }); + return normaliseFormats(Object(objectSpread["a" /* default */])({}, value, { + formats: newFormats + })); } function filterFormats(formats, index, formatType) { - var newFormats = formats[index].filter(function (_ref2) { - var type = _ref2.type; + var newFormats = formats[index].filter(function (_ref) { + var type = _ref.type; return type !== formatType; }); @@ -1975,21 +2013,20 @@ function filterFormats(formats, index, formatType) { * and `endIndex` will be removed. Indices are retrieved from the selection if * none are provided. * - * @param {Object} value Value to modify. - * @param {string} valueToInsert Value to insert. - * @param {number} startIndex Start index. - * @param {number} endIndex End index. + * @param {Object} value Value to modify. + * @param {Object|string} valueToInsert Value to insert. + * @param {number} [startIndex] Start index. + * @param {number} [endIndex] End index. * * @return {Object} A new value with the value inserted. */ -function insert(_ref, valueToInsert) { - var formats = _ref.formats, - text = _ref.text, - start = _ref.start, - end = _ref.end; - var startIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : start; - var endIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : end; +function insert(value, valueToInsert) { + var startIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : value.start; + var endIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : value.end; + var formats = value.formats, + replacements = value.replacements, + text = value.text; if (typeof valueToInsert === 'string') { valueToInsert = create({ @@ -2000,6 +2037,7 @@ function insert(_ref, valueToInsert) { var index = startIndex + valueToInsert.text.length; return normaliseFormats({ formats: formats.slice(0, startIndex).concat(valueToInsert.formats, formats.slice(endIndex)), + replacements: replacements.slice(0, startIndex).concat(valueToInsert.replacements, replacements.slice(endIndex)), text: text.slice(0, startIndex) + valueToInsert.text + text.slice(endIndex), start: index, end: index @@ -2016,9 +2054,9 @@ function insert(_ref, valueToInsert) { * Remove content from a Rich Text value between the given `startIndex` and * `endIndex`. Indices are retrieved from the selection if none are provided. * - * @param {Object} value Value to modify. - * @param {number} startIndex Start index. - * @param {number} endIndex End index. + * @param {Object} value Value to modify. + * @param {number} [startIndex] Start index. + * @param {number} [endIndex] End index. * * @return {Object} A new value with the content removed. */ @@ -2053,6 +2091,7 @@ function remove_remove(value, startIndex, endIndex) { function replace(_ref, pattern, replacement) { var formats = _ref.formats, + replacements = _ref.replacements, text = _ref.text, start = _ref.start, end = _ref.end; @@ -2064,6 +2103,7 @@ function replace(_ref, pattern, replacement) { var offset = rest[rest.length - 2]; var newText = replacement; var newFormats; + var newReplacements; if (typeof newText === 'function') { newText = replacement.apply(void 0, [match].concat(rest)); @@ -2071,9 +2111,11 @@ function replace(_ref, pattern, replacement) { if (Object(esm_typeof["a" /* default */])(newText) === 'object') { newFormats = newText.formats; + newReplacements = newText.replacements; newText = newText.text; } else { newFormats = Array(newText.length); + newReplacements = Array(newText.length); if (formats[offset]) { newFormats = newFormats.fill(formats[offset]); @@ -2081,6 +2123,7 @@ function replace(_ref, pattern, replacement) { } formats = formats.slice(0, offset).concat(newFormats, formats.slice(offset + match.length)); + replacements = replacements.slice(0, offset).concat(newReplacements, replacements.slice(offset + match.length)); if (start) { start = end = offset + newText.length; @@ -2090,6 +2133,7 @@ function replace(_ref, pattern, replacement) { }); return normaliseFormats({ formats: formats, + replacements: replacements, text: text, start: start, end: end @@ -2101,30 +2145,16 @@ function replace(_ref, pattern, replacement) { * Internal dependencies */ - /** - * Inserts a line break at the given or selected position. Inserts two line - * breaks if at the end of a line. + * Inserts a line break at the given or selected position. * * @param {Object} value Value to modify. * - * @return {Object} The value with the line break(s) inserted. + * @return {Object} The value with the line break inserted. */ function insertLineBreak(value) { - var text = value.text, - end = value.end; - var length = text.length; - var toInsert = '\n'; // If the caret is at the end of the text, and there is no - // trailing line break or no text at all, we have to insert two - // line breaks in order to create a new line visually and place - // the caret there. - - if ((end === length || text[end] === LINE_SEPARATOR) && (text[end - 1] !== '\n' || length === 0)) { - toInsert = '\n\n'; - } - - return insert(value, toInsert); + return insert(value, '\n'); } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/insert-line-separator.js @@ -2139,9 +2169,9 @@ function insertLineBreak(value) { * `startIndex`. Any content between `startIndex` and `endIndex` will be * removed. Indices are retrieved from the selection if none are provided. * - * @param {Object} value Value to modify. - * @param {number} startIndex Start index. - * @param {number} endIndex End index. + * @param {Object} value Value to modify. + * @param {number} [startIndex] Start index. + * @param {number} [endIndex] End index. * * @return {Object} A new value with the value inserted. */ @@ -2151,23 +2181,22 @@ function insertLineSeparator(value) { var endIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : value.end; var beforeText = getTextContent(value).slice(0, startIndex); var previousLineSeparatorIndex = beforeText.lastIndexOf(LINE_SEPARATOR); - var previousLineSeparatorFormats = value.formats[previousLineSeparatorIndex]; - var formats = [,]; + var previousLineSeparatorFormats = value.replacements[previousLineSeparatorIndex]; + var replacements = [,]; if (previousLineSeparatorFormats) { - formats = [previousLineSeparatorFormats]; + replacements = [previousLineSeparatorFormats]; } var valueToInsert = { - formats: formats, + formats: [,], + replacements: replacements, text: LINE_SEPARATOR }; return insert(value, valueToInsert, startIndex, endIndex); } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/insert-object.js - - /** * Internal dependencies */ @@ -2180,51 +2209,49 @@ var insert_object_OBJECT_REPLACEMENT_CHARACTER = "\uFFFC"; * * @param {Object} value Value to modify. * @param {Object} formatToInsert Format to insert as object. - * @param {number} startIndex Start index. - * @param {number} endIndex End index. + * @param {number} [startIndex] Start index. + * @param {number} [endIndex] End index. * * @return {Object} A new value with the object inserted. */ function insertObject(value, formatToInsert, startIndex, endIndex) { var valueToInsert = { - text: insert_object_OBJECT_REPLACEMENT_CHARACTER, - formats: [[Object(objectSpread["a" /* default */])({}, formatToInsert, { - object: true - })]] + formats: [,], + replacements: [formatToInsert], + text: insert_object_OBJECT_REPLACEMENT_CHARACTER }; return insert(value, valueToInsert, startIndex, endIndex); } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/slice.js + + /** * Slice a Rich Text value from `startIndex` to `endIndex`. Indices are * retrieved from the selection if none are provided. This is similar to * `String.prototype.slice`. * - * @param {Object} value Value to modify. - * @param {number} startIndex Start index. - * @param {number} endIndex End index. + * @param {Object} value Value to modify. + * @param {number} [startIndex] Start index. + * @param {number} [endIndex] End index. * * @return {Object} A new extracted value. */ -function slice(_ref) { - var formats = _ref.formats, - text = _ref.text, - start = _ref.start, - end = _ref.end; - var startIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : start; - var endIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : end; +function slice(value) { + var startIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : value.start; + var endIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : value.end; + var formats = value.formats, + replacements = value.replacements, + text = value.text; if (startIndex === undefined || endIndex === undefined) { - return { - formats: formats, - text: text - }; + return Object(objectSpread["a" /* default */])({}, value); } return { formats: formats.slice(startIndex, endIndex), + replacements: replacements.slice(startIndex, endIndex), text: text.slice(startIndex, endIndex) }; } @@ -2239,15 +2266,16 @@ function slice(_ref) { * split at the given separator. This is similar to `String.prototype.split`. * Indices are retrieved from the selection if none are provided. * - * @param {Object} value Value to modify. - * @param {number|string} string Start index, or string at which to split. - * @param {number} end End index. + * @param {Object} value Value to modify. + * @param {number|string} [string] Start index, or string at which to split. + * @param {number} [endStr] End index. * * @return {Array} An array of new values. */ function split(_ref, string) { var formats = _ref.formats, + replacements = _ref.replacements, text = _ref.text, start = _ref.start, end = _ref.end; @@ -2261,6 +2289,7 @@ function split(_ref, string) { var startIndex = nextStart; var value = { formats: formats.slice(startIndex, startIndex + substring.length), + replacements: replacements.slice(startIndex, startIndex + substring.length), text: substring }; nextStart += string.length + substring.length; @@ -2285,6 +2314,7 @@ function split(_ref, string) { function splitAtSelection(_ref2) { var formats = _ref2.formats, + replacements = _ref2.replacements, text = _ref2.text, start = _ref2.start, end = _ref2.end; @@ -2292,10 +2322,12 @@ function splitAtSelection(_ref2) { var endIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : end; var before = { formats: formats.slice(0, startIndex), + replacements: replacements.slice(0, startIndex), text: text.slice(0, startIndex) }; var after = { formats: formats.slice(endIndex), + replacements: replacements.slice(endIndex), text: text.slice(endIndex), start: 0, end: 0 @@ -2411,11 +2443,16 @@ function getDeepestActiveFormat(value) { return activeFormats[selectedFormat - 1]; } +var padding = { + type: 'br', + attributes: { + 'data-rich-text-padding': 'true' + }, + object: true +}; function toTree(_ref2) { var value = _ref2.value, multilineTag = _ref2.multilineTag, - _ref2$multilineWrappe = _ref2.multilineWrapperTags, - multilineWrapperTags = _ref2$multilineWrappe === void 0 ? [] : _ref2$multilineWrappe, createEmpty = _ref2.createEmpty, append = _ref2.append, getLastChild = _ref2.getLastChild, @@ -2428,6 +2465,7 @@ function toTree(_ref2) { onEndIndex = _ref2.onEndIndex, isEditableTree = _ref2.isEditableTree; var formats = value.formats, + replacements = value.replacements, text = value.text, start = value.start, end = value.end; @@ -2452,16 +2490,16 @@ function toTree(_ref2) { var _loop = function _loop(i) { var character = text.charAt(i); + var shouldInsertPadding = isEditableTree && ( // Pad the line if the line is empty. + !lastCharacter || lastCharacter === LINE_SEPARATOR || // Pad the line if the previous character is a line break, otherwise + // the line break won't be visible. + lastCharacter === '\n'); var characterFormats = formats[i]; // Set multiline tags in queue for building the tree. if (multilineTag) { if (character === LINE_SEPARATOR) { - characterFormats = lastSeparatorFormats = (characterFormats || []).reduce(function (accumulator, format) { - if (character === LINE_SEPARATOR && multilineWrapperTags.indexOf(format.type) !== -1) { - accumulator.push(format); - accumulator.push(multilineFormat); - } - + characterFormats = lastSeparatorFormats = (replacements[i] || []).reduce(function (accumulator, format) { + accumulator.push(format, multilineFormat); return accumulator; }, [multilineFormat]); } else { @@ -2469,21 +2507,33 @@ function toTree(_ref2) { } } - var pointer = getLastChild(tree); // Set selection for the start of line. + var pointer = getLastChild(tree); - if (lastCharacter === LINE_SEPARATOR) { + if (shouldInsertPadding && character === LINE_SEPARATOR) { var node = pointer; while (!isText(node)) { node = getLastChild(node); } + append(getParent(node), padding); + append(getParent(node), ''); + } // Set selection for the start of line. + + + if (lastCharacter === LINE_SEPARATOR) { + var _node = pointer; + + while (!isText(_node)) { + _node = getLastChild(_node); + } + if (onStartIndex && start === i) { - onStartIndex(tree, node); + onStartIndex(tree, _node); } if (onEndIndex && end === i) { - onEndIndex(tree, node); + onEndIndex(tree, _node); } } @@ -2498,15 +2548,13 @@ function toTree(_ref2) { var type = format.type, attributes = format.attributes, - unregisteredAttributes = format.unregisteredAttributes, - object = format.object; - var boundaryClass = isEditableTree && !object && character !== LINE_SEPARATOR && format === deepestActiveFormat; + unregisteredAttributes = format.unregisteredAttributes; + var boundaryClass = isEditableTree && character !== LINE_SEPARATOR && format === deepestActiveFormat; var parent = getParent(pointer); var newNode = append(parent, fromFormat({ type: type, attributes: attributes, unregisteredAttributes: unregisteredAttributes, - object: object, boundaryClass: boundaryClass })); @@ -2514,7 +2562,7 @@ function toTree(_ref2) { remove(pointer); } - pointer = append(format.object ? parent : newNode, ''); + pointer = append(newNode, ''); }); } // No need for further processing if the character is a line separator. @@ -2536,19 +2584,26 @@ function toTree(_ref2) { } } - if (character !== OBJECT_REPLACEMENT_CHARACTER) { - if (character === '\n') { - pointer = append(getParent(pointer), { - type: 'br', - object: true - }); // Ensure pointer is text node. + if (character === OBJECT_REPLACEMENT_CHARACTER) { + pointer = append(getParent(pointer), fromFormat(Object(objectSpread["a" /* default */])({}, replacements[i], { + object: true + }))); // Ensure pointer is text node. - pointer = append(getParent(pointer), ''); - } else if (!isText(pointer)) { - pointer = append(getParent(pointer), character); - } else { - appendText(pointer, character); - } + pointer = append(getParent(pointer), ''); + } else if (character === '\n') { + pointer = append(getParent(pointer), { + type: 'br', + attributes: isEditableTree ? { + 'data-rich-text-line-break': 'true' + } : undefined, + object: true + }); // Ensure pointer is text node. + + pointer = append(getParent(pointer), ''); + } else if (!isText(pointer)) { + pointer = append(getParent(pointer), character); + } else { + appendText(pointer, character); } if (onStartIndex && start === i + 1) { @@ -2559,6 +2614,10 @@ function toTree(_ref2) { onEndIndex(tree, pointer); } + if (shouldInsertPadding && i === text.length) { + append(getParent(pointer), padding); + } + lastCharacterFormats = characterFormats; lastCharacter = character; }; @@ -2699,40 +2758,6 @@ function to_dom_remove(node) { return node.parentNode.removeChild(node); } -function createLinePadding(doc) { - var element = doc.createElement('br'); - element.setAttribute('data-rich-text-padding', 'true'); - return element; -} - -function padEmptyLines(_ref5) { - var element = _ref5.element, - multilineWrapperTags = _ref5.multilineWrapperTags; - var length = element.childNodes.length; - var doc = element.ownerDocument; - - for (var index = 0; index < length; index++) { - var child = element.childNodes[index]; - - if (child.nodeType === to_dom_TEXT_NODE) { - if (length === 1 && !child.nodeValue) { - // Pad if the only child is an empty text node. - element.appendChild(createLinePadding(doc)); - } - } else { - if (multilineWrapperTags && !child.previousSibling && multilineWrapperTags.indexOf(child.nodeName.toLowerCase()) !== -1) { - // Pad the line if there is no content before a nested wrapper. - element.insertBefore(createLinePadding(doc), child); - } - - padEmptyLines({ - element: child, - multilineWrapperTags: multilineWrapperTags - }); - } - } -} - function prepareFormats() { var prepareEditableTree = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var value = arguments.length > 1 ? arguments[1] : undefined; @@ -2741,13 +2766,12 @@ function prepareFormats() { }, value.formats); } -function toDom(_ref6) { - var value = _ref6.value, - multilineTag = _ref6.multilineTag, - multilineWrapperTags = _ref6.multilineWrapperTags, - prepareEditableTree = _ref6.prepareEditableTree, - _ref6$isEditableTree = _ref6.isEditableTree, - isEditableTree = _ref6$isEditableTree === void 0 ? true : _ref6$isEditableTree; +function toDom(_ref5) { + var value = _ref5.value, + multilineTag = _ref5.multilineTag, + prepareEditableTree = _ref5.prepareEditableTree, + _ref5$isEditableTree = _ref5.isEditableTree, + isEditableTree = _ref5$isEditableTree === void 0 ? true : _ref5$isEditableTree; var startPath = []; var endPath = []; var tree = toTree({ @@ -2755,7 +2779,6 @@ function toDom(_ref6) { formats: prepareFormats(prepareEditableTree, value) }), multilineTag: multilineTag, - multilineWrapperTags: multilineWrapperTags, createEmpty: to_dom_createEmpty, append: to_dom_append, getLastChild: to_dom_getLastChild, @@ -2772,14 +2795,6 @@ function toDom(_ref6) { }, isEditableTree: isEditableTree }); - - if (isEditableTree) { - padEmptyLines({ - element: tree, - multilineWrapperTags: multilineWrapperTags - }); - } - return { body: tree, selection: { @@ -2793,25 +2808,24 @@ function toDom(_ref6) { * the `Element` tree contained by `current`. If a `multilineTag` is provided, * text separated by two new lines will be wrapped in an `Element` of that type. * - * @param {Object} value Value to apply. - * @param {HTMLElement} current The live root node to apply the element - * tree to. - * @param {string} multilineTag Multiline tag. + * @param {Object} $1 Named arguments. + * @param {Object} $1.value Value to apply. + * @param {HTMLElement} $1.current The live root node to apply the element tree to. + * @param {string} [$1.multilineTag] Multiline tag. + * @param {Array} [$1.multilineWrapperTags] Tags where lines can be found if nesting is possible. */ -function apply(_ref7) { - var value = _ref7.value, - current = _ref7.current, - multilineTag = _ref7.multilineTag, - multilineWrapperTags = _ref7.multilineWrapperTags, - prepareEditableTree = _ref7.prepareEditableTree, - __unstableDomOnly = _ref7.__unstableDomOnly; +function apply(_ref6) { + var value = _ref6.value, + current = _ref6.current, + multilineTag = _ref6.multilineTag, + prepareEditableTree = _ref6.prepareEditableTree, + __unstableDomOnly = _ref6.__unstableDomOnly; // Construct a new element tree in memory. var _toDom = toDom({ value: value, multilineTag: multilineTag, - multilineWrapperTags: multilineWrapperTags, prepareEditableTree: prepareEditableTree }), body = _toDom.body, @@ -2890,9 +2904,9 @@ function isRangeEqual(a, b) { return a.startContainer === b.startContainer && a.startOffset === b.startOffset && a.endContainer === b.endContainer && a.endOffset === b.endOffset; } -function applySelection(_ref8, current) { - var startPath = _ref8.startPath, - endPath = _ref8.endPath; +function applySelection(_ref7, current) { + var startPath = _ref7.startPath, + endPath = _ref7.endPath; var _getNodeByPath = getNodeByPath(current, startPath), startContainer = _getNodeByPath.node, @@ -2927,7 +2941,7 @@ function applySelection(_ref8, current) { } // EXTERNAL MODULE: external {"this":["wp","escapeHtml"]} -var external_this_wp_escapeHtml_ = __webpack_require__(63); +var external_this_wp_escapeHtml_ = __webpack_require__(69); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/to-html-string.js /** @@ -2943,23 +2957,19 @@ var external_this_wp_escapeHtml_ = __webpack_require__(63); * Create an HTML string from a Rich Text value. If a `multilineTag` is * provided, text separated by a line separator will be wrapped in it. * - * @param {Object} $1 Named argements. - * @param {Object} $1.value Rich text value. - * @param {string} $1.multilineTag Multiline tag. - * @param {Array} $1.multilineWrapperTags Tags where lines can be found if - * nesting is possible. + * @param {Object} $1 Named argements. + * @param {Object} $1.value Rich text value. + * @param {string} [$1.multilineTag] Multiline tag. * * @return {string} HTML string. */ function toHTMLString(_ref) { var value = _ref.value, - multilineTag = _ref.multilineTag, - multilineWrapperTags = _ref.multilineWrapperTags; + multilineTag = _ref.multilineTag; var tree = toTree({ value: value, multilineTag: multilineTag, - multilineWrapperTags: multilineWrapperTags, createEmpty: to_html_string_createEmpty, append: to_html_string_append, getLastChild: to_html_string_getLastChild, @@ -3062,8 +3072,8 @@ function createChildrenHTML() { /** * Toggles a format object to a Rich Text value at the current selection. * - * @param {Object} value Value to modify. - * @param {Object} format Format to apply or remove. + * @param {Object} value Value to modify. + * @param {Object} format Format to apply or remove. * * @return {Object} A new value with the format applied or removed. */ @@ -3087,8 +3097,8 @@ function toggleFormat(value, format) { * * @param {string} name Format name. * - * @return {?WPFormat} The previous format value, if it has been successfully - * unregistered; otherwise `undefined`. + * @return {WPFormat|undefined} The previous format value, if it has been successfully + * unregistered; otherwise `undefined`. */ function unregisterFormatType(name) { @@ -3138,12 +3148,13 @@ function getLineIndex(_ref) { } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/indent-list-items.js + + /** * Internal dependencies */ - /** * Gets the line index of the first previous list item with higher indentation. * @@ -3155,8 +3166,8 @@ function getLineIndex(_ref) { function getTargetLevelLineIndex(_ref, lineIndex) { var text = _ref.text, - formats = _ref.formats; - var startFormats = formats[lineIndex] || []; + replacements = _ref.replacements; + var startFormats = replacements[lineIndex] || []; var index = lineIndex; while (index-- >= 0) { @@ -3164,7 +3175,7 @@ function getTargetLevelLineIndex(_ref, lineIndex) { continue; } - var formatsAtIndex = formats[index] || []; // Return the first line index that is one level higher. If the level is + var formatsAtIndex = replacements[index] || []; // Return the first line index that is one level higher. If the level is // lower or equal, there is no result. if (formatsAtIndex.length === startFormats.length + 1) { @@ -3178,7 +3189,7 @@ function getTargetLevelLineIndex(_ref, lineIndex) { * Indents any selected list items if possible. * * @param {Object} value Value to change. - * @param {Object} rootFormat + * @param {Object} rootFormat Root format. * * @return {Object} The changed value. */ @@ -3192,19 +3203,18 @@ function indentListItems(value, rootFormat) { } var text = value.text, - formats = value.formats, - start = value.start, + replacements = value.replacements, end = value.end; var previousLineIndex = getLineIndex(value, lineIndex); - var formatsAtLineIndex = formats[lineIndex] || []; - var formatsAtPreviousLineIndex = formats[previousLineIndex] || []; // The the indentation of the current line is greater than previous line, + var formatsAtLineIndex = replacements[lineIndex] || []; + var formatsAtPreviousLineIndex = replacements[previousLineIndex] || []; // The the indentation of the current line is greater than previous line, // then the line cannot be furter indented. if (formatsAtLineIndex.length > formatsAtPreviousLineIndex.length) { return value; } - var newFormats = formats.slice(); + var newFormats = replacements.slice(); var targetLevelLineIndex = getTargetLevelLineIndex(value, lineIndex); for (var index = lineIndex; index < end; index++) { @@ -3215,21 +3225,18 @@ function indentListItems(value, rootFormat) { if (targetLevelLineIndex) { - var targetFormats = formats[targetLevelLineIndex] || []; + var targetFormats = replacements[targetLevelLineIndex] || []; newFormats[index] = targetFormats.concat((newFormats[index] || []).slice(targetFormats.length - 1)); } else { - var _targetFormats = formats[previousLineIndex] || []; + var _targetFormats = replacements[previousLineIndex] || []; var lastformat = _targetFormats[_targetFormats.length - 1] || rootFormat; newFormats[index] = _targetFormats.concat([lastformat], (newFormats[index] || []).slice(_targetFormats.length)); } } - return normaliseFormats({ - text: text, - formats: newFormats, - start: start, - end: end + return Object(objectSpread["a" /* default */])({}, value, { + replacements: newFormats }); } @@ -3251,8 +3258,8 @@ function indentListItems(value, rootFormat) { function getParentLineIndex(_ref, lineIndex) { var text = _ref.text, - formats = _ref.formats; - var startFormats = formats[lineIndex] || []; + replacements = _ref.replacements; + var startFormats = replacements[lineIndex] || []; var index = lineIndex; while (index-- >= 0) { @@ -3260,7 +3267,7 @@ function getParentLineIndex(_ref, lineIndex) { continue; } - var formatsAtIndex = formats[index] || []; + var formatsAtIndex = replacements[index] || []; if (formatsAtIndex.length === startFormats.length - 1) { return index; @@ -3284,8 +3291,8 @@ function getParentLineIndex(_ref, lineIndex) { function getLastChildIndex(_ref, lineIndex) { var text = _ref.text, - formats = _ref.formats; - var lineFormats = formats[lineIndex] || []; // Use the given line index in case there are no next children. + replacements = _ref.replacements; + var lineFormats = replacements[lineIndex] || []; // Use the given line index in case there are no next children. var childIndex = lineIndex; // `lineIndex` could be `undefined` if it's the first line. @@ -3295,7 +3302,7 @@ function getLastChildIndex(_ref, lineIndex) { continue; } - var formatsAtIndex = formats[index] || []; // If the amout of formats is equal or more, store it, then return the + var formatsAtIndex = replacements[index] || []; // If the amout of formats is equal or more, store it, then return the // last one if the amount of formats is less. if (formatsAtIndex.length >= lineFormats.length) { @@ -3310,6 +3317,8 @@ function getLastChildIndex(_ref, lineIndex) { } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/outdent-list-items.js + + /** * Internal dependencies */ @@ -3317,7 +3326,6 @@ function getLastChildIndex(_ref, lineIndex) { - /** * Outdents any selected list items if possible. * @@ -3328,17 +3336,17 @@ function getLastChildIndex(_ref, lineIndex) { function outdentListItems(value) { var text = value.text, - formats = value.formats, + replacements = value.replacements, start = value.start, end = value.end; var startingLineIndex = getLineIndex(value, start); // Return early if the starting line index cannot be further outdented. - if (formats[startingLineIndex] === undefined) { + if (replacements[startingLineIndex] === undefined) { return value; } - var newFormats = formats.slice(0); - var parentFormats = formats[getParentLineIndex(value, startingLineIndex)] || []; + var newFormats = replacements.slice(0); + var parentFormats = replacements[getParentLineIndex(value, startingLineIndex)] || []; var endingLineIndex = getLineIndex(value, end); var lastChildIndex = getLastChildIndex(value, endingLineIndex); // Outdent all list items from the starting line index until the last child // index of the ending list. All children of the ending list need to be @@ -3360,22 +3368,20 @@ function outdentListItems(value) { } } - return normaliseFormats({ - text: text, - formats: newFormats, - start: start, - end: end + return Object(objectSpread["a" /* default */])({}, value, { + replacements: newFormats }); } // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/change-list-type.js + + /** * Internal dependencies */ - /** * Changes the list type of the selected indented list, if any. Looks at the * currently selected list item and takes the parent list, then changes the list @@ -3391,14 +3397,14 @@ function outdentListItems(value) { function changeListType(value, newFormat) { var text = value.text, - formats = value.formats, + replacements = value.replacements, start = value.start, end = value.end; var startingLineIndex = getLineIndex(value, start); - var startLineFormats = formats[startingLineIndex] || []; - var endLineFormats = formats[getLineIndex(value, end)] || []; + var startLineFormats = replacements[startingLineIndex] || []; + var endLineFormats = replacements[getLineIndex(value, end)] || []; var startIndex = getParentLineIndex(value, startingLineIndex); - var newFormats = formats.slice(0); + var newReplacements = replacements.slice(); var startCount = startLineFormats.length - 1; var endCount = endLineFormats.length - 1; var changed; @@ -3408,16 +3414,16 @@ function changeListType(value, newFormat) { continue; } - if ((newFormats[index] || []).length <= startCount) { + if ((newReplacements[index] || []).length <= startCount) { break; } - if (!newFormats[index]) { + if (!newReplacements[index]) { continue; } changed = true; - newFormats[index] = newFormats[index].map(function (format, i) { + newReplacements[index] = newReplacements[index].map(function (format, i) { return i < startCount || i > endCount ? format : newFormat; }); } @@ -3426,11 +3432,8 @@ function changeListType(value, newFormat) { return value; } - return normaliseFormats({ - text: text, - formats: newFormats, - start: start, - end: end + return Object(objectSpread["a" /* default */])({}, value, { + replacements: newReplacements }); } @@ -3440,6 +3443,7 @@ function changeListType(value, newFormat) { /* concated harmony reexport concat */__webpack_require__.d(__webpack_exports__, "concat", function() { return concat; }); /* concated harmony reexport create */__webpack_require__.d(__webpack_exports__, "create", function() { return create; }); /* concated harmony reexport getActiveFormat */__webpack_require__.d(__webpack_exports__, "getActiveFormat", function() { return getActiveFormat; }); +/* concated harmony reexport getActiveObject */__webpack_require__.d(__webpack_exports__, "getActiveObject", function() { return getActiveObject; }); /* concated harmony reexport getSelectionEnd */__webpack_require__.d(__webpack_exports__, "getSelectionEnd", function() { return getSelectionEnd; }); /* concated harmony reexport getSelectionStart */__webpack_require__.d(__webpack_exports__, "getSelectionStart", function() { return getSelectionStart; }); /* concated harmony reexport getTextContent */__webpack_require__.d(__webpack_exports__, "getTextContent", function() { return getTextContent; }); @@ -3501,20 +3505,10 @@ function changeListType(value, newFormat) { -/***/ }), - -/***/ 33: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; }); -function _iterableToArray(iter) { - if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); -} /***/ }), -/***/ 38: +/***/ 41: /***/ (function(module, exports, __webpack_require__) { module.exports = function memize( fn, options ) { @@ -3639,7 +3633,14 @@ module.exports = function memize( fn, options ) { /***/ }), -/***/ 63: +/***/ 6: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["compose"]; }()); + +/***/ }), + +/***/ 69: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["escapeHtml"]; }()); @@ -3647,13 +3648,6 @@ module.exports = function memize( fn, options ) { /***/ }), /***/ 7: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["compose"]; }()); - -/***/ }), - -/***/ 8: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/rich-text.min.js b/wp-includes/js/dist/rich-text.min.js index 28d0be7217..9f297fd0fd 100644 --- a/wp-includes/js/dist/rich-text.min.js +++ b/wp-includes/js/dist/rich-text.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.richText=function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=308)}({0:function(t,e){!function(){t.exports=this.wp.element}()},15:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",function(){return n})},18:function(t,e,r){"use strict";var n=r(33);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ADD_FORMAT_TYPES":return Object(i.a)({},t,Object(c.keyBy)(e.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(t,e.names)}return t}}),l=r(28),s=Object(l.a)(function(t){return Object.values(t.formatTypes)},function(t){return[t.formatTypes]});function f(t,e){return t.formatTypes[e]}function d(t,e){return Object(c.find)(s(t),function(t){var r=t.tagName;return e===r})}function p(t,e){return Object(c.find)(s(t),function(t){var r=t.className;return null!==r&&" ".concat(e," ").indexOf(" ".concat(r," "))>=0})}function m(t){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(t)}}function v(t){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(t)}}function g(t,e){if(t===e)return!0;if(!t||!e)return!1;if(t.type!==e.type)return!1;var r=t.attributes,n=e.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),o=Object.keys(n);if(a.length!==o.length)return!1;for(var i=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,l=r.slice(0);if(i===u){var s=Object(c.find)(l[i],{type:e.type});if(!s){var f=l[i-1]||[];return{formats:r,text:n,start:a,end:o,formatPlaceholder:Object(c.find)(f,{type:e.type})?void 0:e}}for(;Object(c.find)(l[i],s);)y(l,i,e),i--;for(u++;Object(c.find)(l[u],s);)y(l,u,e),u++}else for(var d=i;d0&&void 0!==arguments[0]?arguments[0]:{},e=t.element,r=t.text,n=t.html,a=t.range,o=t.multilineTag,i=t.multilineWrapperTags;return"string"==typeof r&&r.length>0?{formats:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(e=N(document,n)),"object"!==Object(j.a)(e)?{formats:[],text:""}:o?V({element:e,range:a,multilineTag:o,multilineWrapperTags:i}):M({element:e,range:a}))}function I(t,e,r,n){if(r){var a=e.parentNode,o=r.startContainer,i=r.startOffset,c=r.endContainer,u=r.endOffset,l=t.text.length;void 0!==n.start?t.start=l+n.start:e===o&&e.nodeType===A?t.start=l+i:a===o&&e===o.childNodes[i]?t.start=l:a===o&&e===o.childNodes[i-1]?t.start=l+n.text.length:e===o&&(t.start=l),void 0!==n.end?t.end=l+n.end:e===c&&e.nodeType===A?t.end=l+u:a===c&&e===c.childNodes[u-1]?t.end=l+n.text.length:a===c&&e===c.childNodes[u]?t.end=l:e===c&&(t.end=l+u)}}function k(t,e,r){if(e){var n=e.startContainer,a=e.endContainer,o=e.startOffset,i=e.endOffset;return t===n&&(o=r(t.nodeValue.slice(0,o)).length),t===a&&(i=r(t.nodeValue.slice(0,i)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:i}}}function L(t){return t.replace(/[\n\r\t]+/g," ")}function M(t){var e=t.element,r=t.range,n=t.multilineTag,a=t.multilineWrapperTags,o=t.currentWrapperTags,i=void 0===o?[]:o,c={formats:[],text:""};if(!e)return c;if(!e.hasChildNodes())return I(c,e,r,{formats:[],text:""}),c;for(var u=e.childNodes.length,l=0;l0){var m=i.length>0?[i]:[,];c.formats=c.formats.concat(m),c.text+=w}I(c,s,r,f),c.formats=c.formats.concat(f.formats),c.text+=f.text}}return c}function R(t){var e=t.element;if(e.hasAttributes()){for(var r,n=e.attributes.length,a=0;ao.length&&(i=a),i.slice(0,n)}function B(t,e){return Object(c.find)(z(t),{type:e})}function H(t){return t.end}function G(t){return t.start}function Y(t){return t.text}function q(t){var e=t.start,r=t.end;if(void 0!==e&&void 0!==r)return e===r}function $(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof e&&(e=D({text:e})),h(t.reduce(function(t,r){var n=r.formats,a=r.text;return{text:t.text+e.text+a,formats:t.formats.concat(e.formats,n)}}))}var U=r(15),X=r(19),Z=r(0),K=r(38),J=r.n(K),Q=r(23),tt=r(7),et=[];function rt(t,e){if("string"==typeof(e=Object(i.a)({name:t},e)).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(e.name))if(Object(o.select)("core/rich-text").getFormatType(e.name))window.console.error('Format "'+e.name+'" is already registered.');else if("string"==typeof e.tagName&&""!==e.tagName)if("string"==typeof e.className&&""!==e.className||null===e.className)if(/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(e.className)){if(null===e.className){var r=Object(o.select)("core/rich-text").getFormatTypeForBareElement(e.tagName);if(r)return void window.console.error('Format "'.concat(r.name,'" is already registered to handle bare tag name "').concat(e.tagName,'".'))}else{var n=Object(o.select)("core/rich-text").getFormatTypeForClassName(e.className);if(n)return void window.console.error('Format "'.concat(n.name,'" is already registered to handle class name "').concat(e.className,'".'))}if("title"in e&&""!==e.title)if("keywords"in e&&e.keywords.length>3)window.console.error('The format "'+e.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof e.title){Object(o.dispatch)("core/rich-text").addFormatTypes(e);var a=J()(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et,e=arguments.length>1?arguments[1]:void 0;return[].concat(Object(O.a)(t),[e])});return e.__experimentalGetPropsForEditableTreePreparation&&Object(Q.addFilter)("experimentalRichText",t,function(r){var n=r;(e.__experimentalCreatePrepareEditableTree||e.__experimentalCreateFormatToValue||e.__experimentalCreateValueToFormat)&&(n=function(n){var o={};if(e.__experimentalCreatePrepareEditableTree&&(o.prepareEditableTree=a(n.prepareEditableTree,e.__experimentalCreatePrepareEditableTree(n["format_".concat(t)],{richTextIdentifier:n.identifier,blockClientId:n.clientId}))),e.__experimentalCreateOnChangeEditableValue){var c=Object.keys(n).reduce(function(e,r){var a=n[r],o="format_".concat(t,"_dispatch_");r.startsWith(o)&&(e[r.replace(o,"")]=a);return e},{});o.onChangeEditableValue=a(n.onChangeEditableValue,e.__experimentalCreateOnChangeEditableValue(Object(i.a)({},n["format_".concat(t)],c),{richTextIdentifier:n.identifier,blockClientId:n.clientId}))}return Object(Z.createElement)(r,Object(X.a)({},n,o))});var u=[Object(o.withSelect)(function(r,n){var a=n.clientId,o=n.identifier;return Object(U.a)({},"format_".concat(t),e.__experimentalGetPropsForEditableTreePreparation(r,{richTextIdentifier:o,blockClientId:a}))})];return e.__experimentalGetPropsForEditableTreeChangeHandler&&u.push(Object(o.withDispatch)(function(r,n){var a=n.clientId,o=n.identifier,i=e.__experimentalGetPropsForEditableTreeChangeHandler(r,{richTextIdentifier:o,blockClientId:a});return Object(c.mapKeys)(i,function(e,r){return"format_".concat(t,"_dispatch_").concat(r)})})),Object(tt.compose)(u)(n)}),e}window.console.error("Format titles must be strings.")}else window.console.error('The format "'+e.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function nt(t,e){var r=t.formats,n=t.text,a=t.start,o=t.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,l=r.slice(0);if(i===u){for(var s=Object(c.find)(l[i],{type:e});Object(c.find)(l[i],s);)at(l,i,e),i--;for(u++;Object(c.find)(l[u],s);)at(l,u,e),u++}else for(var f=i;f2&&void 0!==arguments[2]?arguments[2]:a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;"string"==typeof e&&(e=D({text:e}));var u=i+e.text.length;return h({formats:r.slice(0,i).concat(e.formats,r.slice(c)),text:n.slice(0,i)+e.text+n.slice(c),start:u,end:u})}function it(t,e,r){return ot(t,D(),e,r)}function ct(t,e,r){var n=t.formats,a=t.text,o=t.start,i=t.end;return a=a.replace(e,function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:t.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.end,n=Y(t).slice(0,e).lastIndexOf(w),a=t.formats[n],o=[,];return a&&(o=[a]),ot(t,{formats:o,text:w},e,r)}var st="";function ft(t,e,r,n){return ot(t,{text:st,formats:[[Object(i.a)({},e,{object:!0})]]},r,n)}function dt(t){var e=t.formats,r=t.text,n=t.start,a=t.end,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return void 0===o||void 0===i?{formats:e,text:r}:{formats:e.slice(o,i),text:r.slice(o,i)}}function pt(t,e){var r=t.formats,n=t.text,a=t.start,o=t.end;if("string"!=typeof e)return function(t){var e=t.formats,r=t.text,n=t.start,a=t.end,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,c={formats:e.slice(0,o),text:r.slice(0,o)},u={formats:e.slice(i),text:r.slice(i),start:0,end:0};return[ct(c,/\u2028+$/,""),ct(u,/^\u2028+/,"")]}.apply(void 0,arguments);var i=0;return n.split(e).map(function(t){var n=i,c={formats:r.slice(n,n+t.length),text:t};return i+=e.length+t.length,void 0!==a&&void 0!==o&&(a>=n&&an&&(c.start=0),o>=n&&oi&&(c.end=t.length)),c})}function mt(t){var e=t.type,r=t.attributes,n=t.unregisteredAttributes,a=t.object,c=t.boundaryClass,u=function(t){return Object(o.select)("core/rich-text").getFormatType(t)}(e),l={};if(c&&(l["data-rich-text-format-boundary"]="true"),!u)return r&&(l=Object(i.a)({},r,l)),{type:e,attributes:l,object:a};for(var s in l=Object(i.a)({},n,l),r){var f=!!u.attributes&&u.attributes[s];f?l[f]=r[s]:l[s]=r[s]}return u.className&&(l.class?l.class="".concat(u.className," ").concat(l.class):l.class=u.className),{type:u.tagName,object:u.object,attributes:l}}function vt(t){var e,r,n,a=t.value,o=t.multilineTag,i=t.multilineWrapperTags,c=void 0===i?[]:i,u=t.createEmpty,l=t.append,s=t.getLastChild,f=t.getParent,d=t.isText,p=t.getText,m=t.remove,v=t.appendText,g=t.onStartIndex,h=t.onEndIndex,b=t.isEditableTree,y=a.formats,x=a.text,T=a.start,j=a.end,_=y.length+1,C=u(),N={type:o},F=function(t){var e=z(t),r=t.selectedFormat;return void 0===r?e[e.length-1]:e[r-1]}(a);o?(l(l(C,{type:o}),""),r=e=[N]):l(C,"");for(var A=function(t){var a=x.charAt(t),i=y[t];o&&(i=a===w?e=(i||[]).reduce(function(t,e){return a===w&&-1!==c.indexOf(e.type)&&(t.push(e),t.push(N)),t},[N]):[].concat(Object(O.a)(e),Object(O.a)(i||[])));var u=s(C);if(n===w){for(var _=u;!d(_);)_=s(_);g&&T===t&&g(C,_),h&&j===t&&h(C,_)}if(i&&i.forEach(function(t,e){if(!u||!r||t!==r[e]||a===w&&i.length-1===e){var n=t.type,o=t.attributes,c=t.unregisteredAttributes,v=t.object,g=b&&!v&&a!==w&&t===F,h=f(u),y=l(h,mt({type:n,attributes:o,unregisteredAttributes:c,object:v,boundaryClass:g}));d(u)&&0===p(u).length&&m(u),u=l(t.object?h:y,"")}else u=s(u)}),a===w)return r=i,n=a,"continue";0===t&&(g&&0===T&&g(C,u),h&&0===j&&h(C,u)),a!==E&&("\n"===a?(u=l(f(u),{type:"br",object:!0}),u=l(f(u),"")):d(u)?v(u,a):u=l(f(u),a)),g&&T===t+1&&g(C,u),h&&j===t+1&&h(C,u),r=i,n=a},S=0;S<_;S++)A(S);return C}var gt=window.Node.TEXT_NODE;function ht(t,e,r){for(var n=t.parentNode,a=0;t=t.previousSibling;)a++;return r=[a].concat(Object(O.a)(r)),n!==e&&(r=ht(n,e,r)),r}function bt(t,e){for(e=Object(O.a)(e);t&&e.length>1;)t=t.childNodes[e.shift()];return{node:t,offset:e[0]}}var yt=function(){return N(document,"")};function xt(t,e){"string"==typeof e&&(e=t.ownerDocument.createTextNode(e));var r=e,n=r.type,a=r.attributes;if(n)for(var o in e=t.ownerDocument.createElement(n),a)e.setAttribute(o,a[o]);return t.appendChild(e)}function Tt(t,e){t.appendData(e)}function Ot(t){return t.lastChild}function jt(t){return t.parentNode}function wt(t){return t.nodeType===gt}function Et(t){return t.nodeValue}function _t(t){return t.parentNode.removeChild(t)}function Ct(t){var e=t.createElement("br");return e.setAttribute("data-rich-text-padding","true"),e}function Nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return t.reduce(function(t,r){return r(t,e.text)},e.formats)}function Ft(t){var e=t.value,r=t.multilineTag,n=t.multilineWrapperTags,a=t.prepareEditableTree,o=t.isEditableTree,c=void 0===o||o,u=[],l=[],s=vt({value:Object(i.a)({},e,{formats:Nt(a,e)}),multilineTag:r,multilineWrapperTags:n,createEmpty:yt,append:xt,getLastChild:Ot,getParent:jt,isText:wt,getText:Et,remove:_t,appendText:Tt,onStartIndex:function(t,e){u=ht(e,t,[e.nodeValue.length])},onEndIndex:function(t,e){l=ht(e,t,[e.nodeValue.length])},isEditableTree:c});return c&&function t(e){for(var r=e.element,n=e.multilineWrapperTags,a=r.childNodes.length,o=r.ownerDocument,i=0;i0){if(p=d,m=s.getRangeAt(0),p.startContainer===m.startContainer&&p.startOffset===m.startOffset&&p.endContainer===m.endContainer&&p.endOffset===m.endOffset)return void(f.activeElement!==e&&e.focus());s.removeAllRanges()}var p,m;s.addRange(d)}(l,r)}var St=r(63);function Pt(t){return zt(vt({value:t.value,multilineTag:t.multilineTag,multilineWrapperTags:t.multilineWrapperTags,createEmpty:Wt,append:It,getLastChild:Dt,getParent:Lt,isText:Mt,getText:Vt,remove:Rt,appendText:kt}).children)}function Wt(){return{}}function Dt(t){var e=t.children;return e&&e[e.length-1]}function It(t,e){return"string"==typeof e&&(e={text:e}),e.parent=t,t.children=t.children||[],t.children.push(e),e}function kt(t,e){t.text+=e}function Lt(t){return t.parent}function Mt(t){return"string"==typeof t.text}function Vt(t){return t.text}function Rt(t){var e=t.parent.children.indexOf(t);return-1!==e&&t.parent.children.splice(e,1),t}function zt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return void 0===t.text?function(t){var e=t.type,r=t.attributes,n=t.object,a=t.children,o="";for(var i in r)Object(St.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(St.escapeAttribute)(r[i]),'"'));return n?"<".concat(e).concat(o,">"):"<".concat(e).concat(o,">").concat(zt(a),"")}(t):Object(St.escapeHTML)(t.text)}).join("")}function Bt(t,e){return B(t,e.type)?nt(t,e.type):b(t,e)}function Ht(t){var e=Object(o.select)("core/rich-text").getFormatType(t);if(e)return e.__experimentalCreatePrepareEditableTree&&e.__experimentalGetPropsForEditableTreePreparation&&Object(Q.removeFilter)("experimentalRichText",t),Object(o.dispatch)("core/rich-text").removeFormatTypes(t),e;window.console.error("Format ".concat(t," is not registered."))}function Gt(t){for(var e=t.start,r=t.text,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;n--;)if(r[n]===w)return n}function Yt(t,e){var r=Gt(t);if(void 0===r)return t;var n=t.text,a=t.formats,o=t.start,i=t.end,c=Gt(t,r),u=a[r]||[],l=a[c]||[];if(u.length>l.length)return t;for(var s=a.slice(),f=function(t,e){for(var r=t.text,n=t.formats,a=n[e]||[],o=e;o-- >=0;)if(r[o]===w){var i=n[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(t,r),d=r;d=0;){if(r[o]===w)if((n[o]||[]).length===a.length-1)return o}}function $t(t){var e=t.text,r=t.formats,n=t.start,a=t.end,o=Gt(t,n);if(void 0===r[o])return t;for(var i=r.slice(0),c=r[qt(t,o)]||[],u=function(t,e){for(var r=t.text,n=t.formats,a=n[e]||[],o=e,i=e||0;i=a.length))return o;o=i}return o}(t,Gt(t,a)),l=o;l<=u;l++)if(e[l]===w){var s=i[l]||[];i[l]=c.concat(s.slice(c.length+1)),0===i[l].length&&delete i[l]}return h({text:e,formats:i,start:n,end:a})}function Ut(t,e){for(var r,n=t.text,a=t.formats,o=t.start,i=t.end,c=Gt(t,o),u=a[c]||[],l=a[Gt(t,i)]||[],s=qt(t,c),f=a.slice(0),d=u.length-1,p=l.length-1,m=s+1||0;mp?t:e}))}return r?h({text:n,formats:f,start:o,end:i}):t}r.d(e,"applyFormat",function(){return b}),r.d(e,"charAt",function(){return x}),r.d(e,"concat",function(){return T}),r.d(e,"create",function(){return D}),r.d(e,"getActiveFormat",function(){return B}),r.d(e,"getSelectionEnd",function(){return H}),r.d(e,"getSelectionStart",function(){return G}),r.d(e,"getTextContent",function(){return Y}),r.d(e,"isCollapsed",function(){return q}),r.d(e,"isEmpty",function(){return _}),r.d(e,"isEmptyLine",function(){return C}),r.d(e,"join",function(){return $}),r.d(e,"registerFormatType",function(){return rt}),r.d(e,"removeFormat",function(){return nt}),r.d(e,"remove",function(){return it}),r.d(e,"replace",function(){return ct}),r.d(e,"insert",function(){return ot}),r.d(e,"insertLineBreak",function(){return ut}),r.d(e,"insertLineSeparator",function(){return lt}),r.d(e,"insertObject",function(){return ft}),r.d(e,"slice",function(){return dt}),r.d(e,"split",function(){return pt}),r.d(e,"apply",function(){return At}),r.d(e,"unstableToDom",function(){return Ft}),r.d(e,"toHTMLString",function(){return Pt}),r.d(e,"toggleFormat",function(){return Bt}),r.d(e,"LINE_SEPARATOR",function(){return w}),r.d(e,"unregisterFormatType",function(){return Ht}),r.d(e,"indentListItems",function(){return Yt}),r.d(e,"outdentListItems",function(){return $t}),r.d(e,"changeListType",function(){return Ut})},33:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",function(){return n})},38:function(t,e,r){t.exports=function(t,e){var r,n,a,o=0;function i(){var e,i,c=n,u=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return Object(o.a)({},e,Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),l=r(30),s=Object(l.a)(function(e){return Object.values(e.formatTypes)},function(e){return[e.formatTypes]});function f(e,t){return e.formatTypes[t]}function d(e,t){return Object(c.find)(s(e),function(e){var r=e.tagName;return t===r})}function p(e,t){return Object(c.find)(s(e),function(e){var r=e.className;return null!==r&&" ".concat(t," ").indexOf(" ".concat(r," "))>=0})}function m(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(e)}}function g(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}Object(i.registerStore)("core/rich-text",{reducer:u,selectors:n,actions:a});var v=r(17);function h(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var r=e.attributes,n=t.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),i=Object.keys(n);if(a.length!==i.length)return!1;for(var o=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats.slice(0);if(r===n){var i=Object(c.find)(a[r],{type:t.type});if(!i){var u=a[r-1]||[];return Object(o.a)({},e,{formatPlaceholder:[].concat(Object(v.a)(u),[t])})}for(;Object(c.find)(a[r],i);)x(a,r,t),r--;for(n++;Object(c.find)(a[n],i);)x(a,n,t),n++}else for(var l=r;l0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=e.text,n=e.html,a=e.range,i=e.multilineTag,o=e.multilineWrapperTags,c=e.__unstableIsEditableTree;return"string"==typeof r&&r.length>0?{formats:Array(r.length),replacements:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(t=j(document,n)),"object"!==Object(O.a)(t)?{formats:[],replacements:[],text:""}:i?I({element:t,range:a,multilineTag:i,multilineWrapperTags:o,isEditableTree:c}):D({element:t,range:a,isEditableTree:c}))}function P(e,t,r,n){if(r){var a=t.parentNode,i=r.startContainer,o=r.startOffset,c=r.endContainer,u=r.endOffset,l=e.text.length;void 0!==n.start?e.start=l+n.start:t===i&&t.nodeType===C?e.start=l+o:a===i&&t===i.childNodes[o]?e.start=l:a===i&&t===i.childNodes[o-1]?e.start=l+n.text.length:t===i&&(e.start=l),void 0!==n.end?e.end=l+n.end:t===c&&t.nodeType===C?e.end=l+u:a===c&&t===c.childNodes[u-1]?e.end=l+n.text.length:a===c&&t===c.childNodes[u]?e.end=l:t===c&&(e.end=l+u)}}function S(e){return e.replace(/[\n\r\t]+/g," ")}function D(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,c=e.currentWrapperTags,u=void 0===c?[]:c,l=e.isEditableTree,s={formats:[],replacements:[],text:""};if(!t)return s;if(!t.hasChildNodes())return P(s,t,r,{formats:[],replacements:[],text:""}),s;for(var f=t.childNodes.length,d=function(e){var c=t.childNodes[e],f=c.nodeName.toLowerCase();if(c.nodeType===C){var d=S(c.nodeValue);return r=function(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,i=t.startOffset,o=t.endOffset;return e===n&&(i=r(e.nodeValue.slice(0,i)).length),e===a&&(o=r(e.nodeValue.slice(0,o)).length),{startContainer:n,startOffset:i,endContainer:a,endOffset:o}}}(c,r,S),P(s,c,r,{text:d}),s.formats.length+=d.length,s.replacements.length+=d.length,s.text+=d,"continue"}if(c.nodeType!==F)return"continue";if(c.getAttribute("data-rich-text-padding")||l&&"br"===f&&!c.getAttribute("data-rich-text-line-break"))return P(s,c,r,{formats:[],replacements:[],text:""}),"continue";if("br"===f)return P(s,c,r,{formats:[],replacements:[],text:""}),M(s,A({text:"\n"})),"continue";var p=s.formats[s.formats.length-1],m=p&&p[p.length-1],g=function(e){var t,r=e.type,n=e.attributes;if(n&&n.class&&(t=Object(i.select)("core/rich-text").getFormatTypeForClassName(n.class))&&(n.class=" ".concat(n.class," ").replace(" ".concat(t.className," ")," ").trim(),n.class||delete n.class),t||(t=Object(i.select)("core/rich-text").getFormatTypeForBareElement(r)),!t)return n?{type:r,attributes:n}:{type:r};if(t.__experimentalCreatePrepareEditableTree&&!t.__experimentalCreateOnChangeEditableValue)return null;if(!n)return{type:t.name};var a={},o={};for(var c in n){var u=N(t.attributes,c);u?a[u]=n[c]:o[c]=n[c]}return{type:t.name,attributes:a,unregisteredAttributes:o}}({type:f,attributes:k({element:c})}),b=h(g,m)?m:g;if(a&&-1!==a.indexOf(f)){var y=I({element:c,range:r,multilineTag:n,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(v.a)(u),[b]),isEditableTree:l});return P(s,c,r,y),M(s,y),"continue"}var x=D({element:c,range:r,multilineTag:n,multilineWrapperTags:a,isEditableTree:l});P(s,c,r,x),b?0===x.text.length?b.attributes&&M(s,{formats:[,],replacements:[b],text:w}):M(s,Object(o.a)({},x,{formats:Array.from(x.formats,function(e){return e?[b].concat(Object(v.a)(e)):[b]})})):M(s,x)},p=0;p0)&&M(u,{formats:[,],replacements:o.length>0?[o]:[,],text:E}),P(u,f,r,d),M(u,d)}}return u}function k(e){var t=e.element;if(t.hasAttributes()){for(var r,n=t.attributes.length,a=0;ai.length&&(o=a),o.slice(0,n)}function R(e,t){return Object(c.find)(V(e),{type:t})}function W(e){var t=e.start,r=e.end,n=e.replacements,a=e.text;if(t+1===r&&a[t]===w)return n[t]}function z(e){return e.end}function B(e){return e.start}function H(e){return e.text}function G(e){var t=e.start,r=e.end;if(void 0!==t&&void 0!==r)return t===r}function Y(e){return 0===e.text.length}function q(e){var t=e.text,r=e.start,n=e.end;return r===n&&(0===t.length||(0===r&&t.slice(0,1)===E||(r===t.length&&t.slice(-1)===E||t.slice(r-1,n+1)==="".concat(E).concat(E))))}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=A({text:t})),b(e.reduce(function(e,r){var n=r.formats,a=r.replacements,i=r.text;return{formats:e.formats.concat(t.formats,n),replacements:e.replacements.concat(t.replacements,a),text:e.text+t.text+i}}))}var U=r(15),X=r(19),Z=r(0),K=r(41),J=r.n(K),Q=r(24),ee=r(6),te=[];function re(e,t){if("string"==typeof(t=Object(o.a)({name:e},t)).name)if(/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(t.name))if(Object(i.select)("core/rich-text").getFormatType(t.name))window.console.error('Format "'+t.name+'" is already registered.');else if("string"==typeof t.tagName&&""!==t.tagName)if("string"==typeof t.className&&""!==t.className||null===t.className)if(/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(t.className)){if(null===t.className){var r=Object(i.select)("core/rich-text").getFormatTypeForBareElement(t.tagName);if(r)return void window.console.error('Format "'.concat(r.name,'" is already registered to handle bare tag name "').concat(t.tagName,'".'))}else{var n=Object(i.select)("core/rich-text").getFormatTypeForClassName(t.className);if(n)return void window.console.error('Format "'.concat(n.name,'" is already registered to handle class name "').concat(t.className,'".'))}if("title"in t&&""!==t.title)if("keywords"in t&&t.keywords.length>3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title){Object(i.dispatch)("core/rich-text").addFormatTypes(t);var a=J()(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te,t=arguments.length>1?arguments[1]:void 0;return[].concat(Object(v.a)(e),[t])});return t.__experimentalCreatePrepareEditableTree&&Object(Q.addFilter)("experimentalRichText",e,function(r){var n=r;(t.__experimentalCreatePrepareEditableTree||t.__experimentalCreateFormatToValue||t.__experimentalCreateValueToFormat)&&(n=function(n){var i={};if(t.__experimentalCreatePrepareEditableTree&&(i.prepareEditableTree=a(n.prepareEditableTree,t.__experimentalCreatePrepareEditableTree(n["format_".concat(e)],{richTextIdentifier:n.identifier,blockClientId:n.clientId}))),t.__experimentalCreateOnChangeEditableValue){var c=Object.keys(n).reduce(function(t,r){var a=n[r],i="format_".concat(e,"_dispatch_");r.startsWith(i)&&(t[r.replace(i,"")]=a);return t},{});i.onChangeEditableValue=a(n.onChangeEditableValue,t.__experimentalCreateOnChangeEditableValue(Object(o.a)({},n["format_".concat(e)],c),{richTextIdentifier:n.identifier,blockClientId:n.clientId}))}return Object(Z.createElement)(r,Object(X.a)({},n,i))});var u=[];return t.__experimentalGetPropsForEditableTreePreparation&&u.push(Object(i.withSelect)(function(r,n){var a=n.clientId,i=n.identifier;return Object(U.a)({},"format_".concat(e),t.__experimentalGetPropsForEditableTreePreparation(r,{richTextIdentifier:i,blockClientId:a}))})),t.__experimentalGetPropsForEditableTreeChangeHandler&&u.push(Object(i.withDispatch)(function(r,n){var a=n.clientId,i=n.identifier,o=t.__experimentalGetPropsForEditableTreeChangeHandler(r,{richTextIdentifier:i,blockClientId:a});return Object(c.mapKeys)(o,function(t,r){return"format_".concat(e,"_dispatch_").concat(r)})})),Object(ee.compose)(u)(n)}),t}window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats.slice(0);if(r===n){var i=Object(c.find)(a[r],{type:t});if(!i)return Object(o.a)({},e,{formatPlaceholder:Object(c.reject)(a[r-1]||[],{type:t})});for(;Object(c.find)(a[r],i);)ae(a,r,t),r--;for(n++;Object(c.find)(a[n],i);)ae(a,n,t),n++}else for(var u=r;u2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,i=e.replacements,o=e.text;"string"==typeof t&&(t=A({text:t}));var c=r+t.text.length;return b({formats:a.slice(0,r).concat(t.formats,a.slice(n)),replacements:i.slice(0,r).concat(t.replacements,i.slice(n)),text:o.slice(0,r)+t.text+o.slice(n),start:c,end:c})}function oe(e,t,r){return ie(e,A(),t,r)}function ce(e,t,r){var n=e.formats,a=e.replacements,i=e.text,o=e.start,c=e.end;return i=i.replace(t,function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=H(e).slice(0,t).lastIndexOf(E),a=e.replacements[n],i=[,];return a&&(i=[a]),ie(e,{formats:[,],replacements:i,text:E},t,r)}var se="";function fe(e,t,r,n){return ie(e,{formats:[,],replacements:[t],text:se},r,n)}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=e.formats,a=e.replacements,i=e.text;return void 0===t||void 0===r?Object(o.a)({},e):{formats:n.slice(t,r),replacements:a.slice(t,r),text:i.slice(t,r)}}function pe(e,t){var r=e.formats,n=e.replacements,a=e.text,i=e.start,o=e.end;if("string"!=typeof t)return function(e){var t=e.formats,r=e.replacements,n=e.text,a=e.start,i=e.end,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u={formats:t.slice(0,o),replacements:r.slice(0,o),text:n.slice(0,o)},l={formats:t.slice(c),replacements:r.slice(c),text:n.slice(c),start:0,end:0};return[ce(u,/\u2028+$/,""),ce(l,/^\u2028+/,"")]}.apply(void 0,arguments);var c=0;return a.split(t).map(function(e){var a=c,u={formats:r.slice(a,a+e.length),replacements:n.slice(a,a+e.length),text:e};return c+=t.length+e.length,void 0!==i&&void 0!==o&&(i>=a&&ia&&(u.start=0),o>=a&&oc&&(u.end=e.length)),u})}function me(e){var t=e.type,r=e.attributes,n=e.unregisteredAttributes,a=e.object,c=e.boundaryClass,u=function(e){return Object(i.select)("core/rich-text").getFormatType(e)}(t),l={};if(c&&(l["data-rich-text-format-boundary"]="true"),!u)return r&&(l=Object(o.a)({},r,l)),{type:t,attributes:l,object:a};for(var s in l=Object(o.a)({},n,l),r){var f=!!u.attributes&&u.attributes[s];f?l[f]=r[s]:l[s]=r[s]}return u.className&&(l.class?l.class="".concat(u.className," ").concat(l.class):l.class=u.className),{type:u.tagName,object:u.object,attributes:l}}var ge={type:"br",attributes:{"data-rich-text-padding":"true"},object:!0};function ve(e){var t,r,n,a=e.value,i=e.multilineTag,c=e.createEmpty,u=e.append,l=e.getLastChild,s=e.getParent,f=e.isText,d=e.getText,p=e.remove,m=e.appendText,g=e.onStartIndex,h=e.onEndIndex,b=e.isEditableTree,y=a.formats,x=a.replacements,T=a.text,O=a.start,j=a.end,_=y.length+1,C=c(),F={type:i},N=function(e){var t=V(e),r=e.selectedFormat;return void 0===r?t[t.length-1]:t[r-1]}(a);i?(u(u(C,{type:i}),""),r=t=[F]):u(C,"");for(var A=function(e){var a=T.charAt(e),c=b&&(!n||n===E||"\n"===n),_=y[e];i&&(_=a===E?t=(x[e]||[]).reduce(function(e,t){return e.push(t,F),e},[F]):[].concat(Object(v.a)(t),Object(v.a)(_||[])));var A=l(C);if(c&&a===E){for(var P=A;!f(P);)P=l(P);u(s(P),ge),u(s(P),"")}if(n===E){for(var S=A;!f(S);)S=l(S);g&&O===e&&g(C,S),h&&j===e&&h(C,S)}if(_&&_.forEach(function(e,t){if(!A||!r||e!==r[t]||a===E&&_.length-1===t){var n=e.type,i=e.attributes,o=e.unregisteredAttributes,c=b&&a!==E&&e===N,m=s(A),g=u(m,me({type:n,attributes:i,unregisteredAttributes:o,boundaryClass:c}));f(A)&&0===d(A).length&&p(A),A=u(g,"")}else A=l(A)}),a===E)return r=_,n=a,"continue";0===e&&(g&&0===O&&g(C,A),h&&0===j&&h(C,A)),a===w?(A=u(s(A),me(Object(o.a)({},x[e],{object:!0}))),A=u(s(A),"")):"\n"===a?(A=u(s(A),{type:"br",attributes:b?{"data-rich-text-line-break":"true"}:void 0,object:!0}),A=u(s(A),"")):f(A)?m(A,a):A=u(s(A),a),g&&O===e+1&&g(C,A),h&&j===e+1&&h(C,A),c&&e===T.length&&u(s(A),ge),r=_,n=a},P=0;P<_;P++)A(P);return C}var he=window.Node.TEXT_NODE;function be(e,t,r){for(var n=e.parentNode,a=0;e=e.previousSibling;)a++;return r=[a].concat(Object(v.a)(r)),n!==t&&(r=be(n,t,r)),r}function ye(e,t){for(t=Object(v.a)(t);e&&t.length>1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}var xe=function(){return j(document,"")};function Te(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var r=t,n=r.type,a=r.attributes;if(n)for(var i in t=e.ownerDocument.createElement(n),a)t.setAttribute(i,a[i]);return e.appendChild(t)}function Oe(e,t){e.appendData(t)}function je(e){return e.lastChild}function Ee(e){return e.parentNode}function we(e){return e.nodeType===he}function _e(e){return e.nodeValue}function Ce(e){return e.parentNode.removeChild(e)}function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce(function(e,r){return r(e,t.text)},t.formats)}function Ne(e){var t=e.value,r=e.multilineTag,n=e.prepareEditableTree,a=e.isEditableTree,i=void 0===a||a,c=[],u=[];return{body:ve({value:Object(o.a)({},t,{formats:Fe(n,t)}),multilineTag:r,createEmpty:xe,append:Te,getLastChild:je,getParent:Ee,isText:we,getText:_e,remove:Ce,appendText:Oe,onStartIndex:function(e,t){c=be(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){u=be(t,e,[t.nodeValue.length])},isEditableTree:i}),selection:{startPath:c,endPath:u}}}function Ae(e){var t=e.value,r=e.current,n=e.multilineTag,a=e.prepareEditableTree,i=e.__unstableDomOnly,o=Ne({value:t,multilineTag:n,prepareEditableTree:a}),c=o.body,u=o.selection;!function e(t,r){var n=0;var a;for(;a=t.firstChild;){var i=r.childNodes[n];if(i)if(i.isEqualNode(a))t.removeChild(a);else if(i.nodeName!==a.nodeName||i.nodeType===he&&i.data!==a.data)r.replaceChild(a,i);else{var o=i.attributes,c=a.attributes;if(o)for(var u=0;u0){if(p=d,m=s.getRangeAt(0),p.startContainer===m.startContainer&&p.startOffset===m.startOffset&&p.endContainer===m.endContainer&&p.endOffset===m.endOffset)return void(f.activeElement!==t&&t.focus());s.removeAllRanges()}var p,m;s.addRange(d)}(u,r)}var Pe=r(69);function Se(e){return ze(ve({value:e.value,multilineTag:e.multilineTag,createEmpty:De,append:ke,getLastChild:Ie,getParent:Le,isText:Ve,getText:Re,remove:We,appendText:Me}).children)}function De(){return{}}function Ie(e){var t=e.children;return t&&t[t.length-1]}function ke(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function Me(e,t){e.text+=t}function Le(e){return e.parent}function Ve(e){return"string"==typeof e.text}function Re(e){return e.text}function We(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function ze(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return void 0===e.text?function(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,i="";for(var o in r)Object(Pe.isValidAttributeName)(o)&&(i+=" ".concat(o,'="').concat(Object(Pe.escapeAttribute)(r[o]),'"'));return n?"<".concat(t).concat(i,">"):"<".concat(t).concat(i,">").concat(ze(a),"")}(e):Object(Pe.escapeHTML)(e.text)}).join("")}function Be(e,t){return R(e,t.type)?ne(e,t.type):y(e,t)}function He(e){var t=Object(i.select)("core/rich-text").getFormatType(e);if(t)return t.__experimentalCreatePrepareEditableTree&&t.__experimentalGetPropsForEditableTreePreparation&&Object(Q.removeFilter)("experimentalRichText",e),Object(i.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function Ge(e){for(var t=e.start,r=e.text,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;n--;)if(r[n]===E)return n}function Ye(e,t){var r=Ge(e);if(void 0===r)return e;var n=e.text,a=e.replacements,i=e.end,c=Ge(e,r),u=a[r]||[],l=a[c]||[];if(u.length>l.length)return e;for(var s=a.slice(),f=function(e,t){for(var r=e.text,n=e.replacements,a=n[t]||[],i=t;i-- >=0;)if(r[i]===E){var o=n[i]||[];if(o.length===a.length+1)return i;if(o.length<=a.length)return}}(e,r),d=r;d=0;){if(r[i]===E)if((n[i]||[]).length===a.length-1)return i}}function $e(e){var t=e.text,r=e.replacements,n=e.start,a=e.end,i=Ge(e,n);if(void 0===r[i])return e;for(var c=r.slice(0),u=r[qe(e,i)]||[],l=function(e,t){for(var r=e.text,n=e.replacements,a=n[t]||[],i=t,o=t||0;o=a.length))return i;i=o}return i}(e,Ge(e,a)),s=i;s<=l;s++)if(t[s]===E){var f=c[s]||[];c[s]=u.concat(f.slice(u.length+1)),0===c[s].length&&delete c[s]}return Object(o.a)({},e,{replacements:c})}function Ue(e,t){for(var r,n=e.text,a=e.replacements,i=e.start,c=e.end,u=Ge(e,i),l=a[u]||[],s=a[Ge(e,c)]||[],f=qe(e,u),d=a.slice(),p=l.length-1,m=s.length-1,g=f+1||0;gm?e:t}))}return r?Object(o.a)({},e,{replacements:d}):e}r.d(t,"applyFormat",function(){return y}),r.d(t,"charAt",function(){return T}),r.d(t,"concat",function(){return L}),r.d(t,"create",function(){return A}),r.d(t,"getActiveFormat",function(){return R}),r.d(t,"getActiveObject",function(){return W}),r.d(t,"getSelectionEnd",function(){return z}),r.d(t,"getSelectionStart",function(){return B}),r.d(t,"getTextContent",function(){return H}),r.d(t,"isCollapsed",function(){return G}),r.d(t,"isEmpty",function(){return Y}),r.d(t,"isEmptyLine",function(){return q}),r.d(t,"join",function(){return $}),r.d(t,"registerFormatType",function(){return re}),r.d(t,"removeFormat",function(){return ne}),r.d(t,"remove",function(){return oe}),r.d(t,"replace",function(){return ce}),r.d(t,"insert",function(){return ie}),r.d(t,"insertLineBreak",function(){return ue}),r.d(t,"insertLineSeparator",function(){return le}),r.d(t,"insertObject",function(){return fe}),r.d(t,"slice",function(){return de}),r.d(t,"split",function(){return pe}),r.d(t,"apply",function(){return Ae}),r.d(t,"unstableToDom",function(){return Ne}),r.d(t,"toHTMLString",function(){return Se}),r.d(t,"toggleFormat",function(){return Be}),r.d(t,"LINE_SEPARATOR",function(){return E}),r.d(t,"unregisterFormatType",function(){return He}),r.d(t,"indentListItems",function(){return Ye}),r.d(t,"outdentListItems",function(){return $e}),r.d(t,"changeListType",function(){return Ue})},41:function(e,t,r){e.exports=function(e,t){var r,n,a,i=0;function o(){var t,o,c=n,u=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(o=0;o2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){var r=arguments;return e.replace(s(t),function(t,e,i,u,o,c,s,a){if("["===e&&"]"===a)return t;var l=n(f(r));return l?e+l+a:t})}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()(function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}});function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)(function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,function(t,n){e.set(n,t)}))},{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,function(e,n){t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},38:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){var r=arguments;return e.replace(s(t),function(t,e,i,u,o,c,s,a){if("["===e&&"]"===a)return t;var l=n(f(r));return l?e+l+a:t})}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()(function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}});function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)(function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,function(t,n){e.set(n,t)}))},{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,function(e,n){t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},41:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o0&&void 0!==arguments[0]?arguments[0]:"";Object(r.a)(this,e),this.value=n,["entries","forEach","keys","values"].forEach(function(e){t[e]=function(){var t;return(t=this._valueAsArray)[e].apply(t,arguments)}.bind(t)})}return Object(u.a)(e,[{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._valueAsArray,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}},e,this)})},{key:"item",value:function(e){return this._valueAsArray[e]}},{key:"contains",value:function(e){return-1!==this._valueAsArray.indexOf(e)}},{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"";Object(r.a)(this,e),this.value=n,["entries","forEach","keys","values"].forEach(function(e){t[e]=function(){var t;return(t=this._valueAsArray)[e].apply(t,arguments)}.bind(t)})}return Object(u.a)(e,[{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._valueAsArray,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}},e,this)})},{key:"item",value:function(e){return this._valueAsArray[e]}},{key:"contains",value:function(e){return-1!==this._valueAsArray.indexOf(e)}},{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1;){var r=e.pop(),t=r.obj[r.prop];if(Array.isArray(t)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?i+=n.charAt(a):c<128?i+=o[c]:c<2048?i+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?i+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&n.charCodeAt(a)),i+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return i},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(r,t,o){if(!t)return r;if("object"!=typeof t){if(Array.isArray(r))r.push(t);else{if("object"!=typeof r)return[r,t];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,t))&&(r[t]=!0)}return r}if("object"!=typeof r)return[r].concat(t);var a=r;return Array.isArray(r)&&!Array.isArray(t)&&(a=i(r,o)),Array.isArray(r)&&Array.isArray(t)?(t.forEach(function(t,i){n.call(r,i)?r[i]&&"object"==typeof r[i]?r[i]=e(r[i],t,o):r.push(t):r[i]=t}),r):Object.keys(t).reduce(function(r,i){var a=t[i];return n.call(r,i)?r[i]=e(r[i],a,o):r[i]=a,r},a)}}},181:function(e,r,t){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},301:function(e,r,t){"use strict";t.r(r),t.d(r,"isURL",function(){return c}),t.d(r,"getProtocol",function(){return u}),t.d(r,"isValidProtocol",function(){return s}),t.d(r,"getAuthority",function(){return l}),t.d(r,"isValidAuthority",function(){return f}),t.d(r,"getPath",function(){return p}),t.d(r,"isValidPath",function(){return d}),t.d(r,"getQueryString",function(){return y}),t.d(r,"isValidQueryString",function(){return h}),t.d(r,"getFragment",function(){return b}),t.d(r,"isValidFragment",function(){return g}),t.d(r,"addQueryArgs",function(){return v}),t.d(r,"getQueryArg",function(){return m}),t.d(r,"hasQueryArg",function(){return O}),t.d(r,"removeQueryArgs",function(){return j}),t.d(r,"prependHTTP",function(){return w}),t.d(r,"safeDecodeURI",function(){return A}),t.d(r,"filterURLForDisplay",function(){return x}),t.d(r,"safeDecodeURIComponent",function(){return P});var n=t(78),o=/^(?:https?:)?\/\/\S+$/i,i=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,a=/^(?:[a-z]+:|#|\?|\.|\/)/i;function c(e){return o.test(e)}function u(e){var r=/^([^\s:]+:)/.exec(e);if(r)return r[1]}function s(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function l(e){var r=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(r)return r[1]}function f(e){return!!e&&/^[^\s#?]+$/.test(e)}function p(e){var r=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(r)return r[1]}function d(e){return!!e&&/^[^\s#?]+$/.test(e)}function y(e){var r=/^\S+?\?([^\s#]+)/.exec(e);if(r)return r[1]}function h(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function b(e){var r=/^\S+?(#[^\s\?]*)/.exec(e);if(r)return r[1]}function g(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!r||!Object.keys(r).length)return e;var t=e,o=e.indexOf("?");return-1!==o&&(r=Object.assign(Object(n.parse)(e.substr(o+1)),r),t=t.substr(0,o)),t+"?"+Object(n.stringify)(r)}function m(e,r){var t=e.indexOf("?");return(-1!==t?Object(n.parse)(e.substr(t+1)):{})[r]}function O(e,r){return void 0!==m(e,r)}function j(e){for(var r=e.indexOf("?"),t=-1!==r?Object(n.parse)(e.substr(r+1)):{},o=-1!==r?e.substr(0,r):e,i=arguments.length,a=new Array(i>1?i-1:0),c=1;c0?C+N:""}},303:function(e,r,t){"use strict";var n=t(180),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},c=function(e,r,t){if(e){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),c=a?n.slice(0,a.index):n,u=[];if(c){if(!t.plainObjects&&o.call(Object.prototype,c)&&!t.allowPrototypes)return;u.push(c)}for(var s=0;null!==(a=i.exec(n))&&s=0;--o){var i,a=e[o];if("[]"===a&&t.parseArrays)i=[].concat(n);else{i=t.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(c,10);t.parseArrays||""!==c?!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(i=[])[u]=n:i[c]=n:i={0:n}}n=i}return n}(u,r,t)}};e.exports=function(e,r){var t=r?n.assign({},r):{};if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(t.ignoreQueryPrefix=!0===t.ignoreQueryPrefix,t.delimiter="string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,t.depth="number"==typeof t.depth?t.depth:i.depth,t.arrayLimit="number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,t.parseArrays=!1!==t.parseArrays,t.decoder="function"==typeof t.decoder?t.decoder:i.decoder,t.allowDots=void 0===t.allowDots?i.allowDots:!!t.allowDots,t.plainObjects="boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,t.allowPrototypes="boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,t.parameterLimit="number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,t.strictNullHandling="boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling,void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===t.charset&&(t.charset=i.charset),""===e||null==e)return t.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,r){var t,c={},u=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=r.parameterLimit===1/0?void 0:r.parameterLimit,l=u.split(r.delimiter,s),f=-1,p=r.charset;if(r.charsetSentinel)for(t=0;t1;){var r=e.pop(),t=r.obj[r.prop];if(Array.isArray(t)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?i+=n.charAt(a):c<128?i+=o[c]:c<2048?i+=o[192|c>>6]+o[128|63&c]:c<55296||c>=57344?i+=o[224|c>>12]+o[128|c>>6&63]+o[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&n.charCodeAt(a)),i+=o[240|c>>18]+o[128|c>>12&63]+o[128|c>>6&63]+o[128|63&c])}return i},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(r,t,o){if(!t)return r;if("object"!=typeof t){if(Array.isArray(r))r.push(t);else{if("object"!=typeof r)return[r,t];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,t))&&(r[t]=!0)}return r}if("object"!=typeof r)return[r].concat(t);var a=r;return Array.isArray(r)&&!Array.isArray(t)&&(a=i(r,o)),Array.isArray(r)&&Array.isArray(t)?(t.forEach(function(t,i){n.call(r,i)?r[i]&&"object"==typeof r[i]?r[i]=e(r[i],t,o):r.push(t):r[i]=t}),r):Object.keys(t).reduce(function(r,i){var a=t[i];return n.call(r,i)?r[i]=e(r[i],a,o):r[i]=a,r},a)}}},202:function(e,r,t){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},354:function(e,r,t){"use strict";t.r(r),t.d(r,"isURL",function(){return c}),t.d(r,"getProtocol",function(){return u}),t.d(r,"isValidProtocol",function(){return s}),t.d(r,"getAuthority",function(){return l}),t.d(r,"isValidAuthority",function(){return f}),t.d(r,"getPath",function(){return p}),t.d(r,"isValidPath",function(){return d}),t.d(r,"getQueryString",function(){return y}),t.d(r,"isValidQueryString",function(){return h}),t.d(r,"getFragment",function(){return b}),t.d(r,"isValidFragment",function(){return g}),t.d(r,"addQueryArgs",function(){return v}),t.d(r,"getQueryArg",function(){return m}),t.d(r,"hasQueryArg",function(){return O}),t.d(r,"removeQueryArgs",function(){return j}),t.d(r,"prependHTTP",function(){return w}),t.d(r,"safeDecodeURI",function(){return A}),t.d(r,"filterURLForDisplay",function(){return x}),t.d(r,"safeDecodeURIComponent",function(){return P});var n=t(86),o=/^(?:https?:)?\/\/\S+$/i,i=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,a=/^(?:[a-z]+:|#|\?|\.|\/)/i;function c(e){return o.test(e)}function u(e){var r=/^([^\s:]+:)/.exec(e);if(r)return r[1]}function s(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function l(e){var r=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(r)return r[1]}function f(e){return!!e&&/^[^\s#?]+$/.test(e)}function p(e){var r=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(r)return r[1]}function d(e){return!!e&&/^[^\s#?]+$/.test(e)}function y(e){var r=/^\S+?\?([^\s#]+)/.exec(e);if(r)return r[1]}function h(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function b(e){var r=/^\S+?(#[^\s\?]*)/.exec(e);if(r)return r[1]}function g(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!r||!Object.keys(r).length)return e;var t=e,o=e.indexOf("?");return-1!==o&&(r=Object.assign(Object(n.parse)(e.substr(o+1)),r),t=t.substr(0,o)),t+"?"+Object(n.stringify)(r)}function m(e,r){var t=e.indexOf("?");return(-1!==t?Object(n.parse)(e.substr(t+1)):{})[r]}function O(e,r){return void 0!==m(e,r)}function j(e){for(var r=e.indexOf("?"),t=-1!==r?Object(n.parse)(e.substr(r+1)):{},o=-1!==r?e.substr(0,r):e,i=arguments.length,a=new Array(i>1?i-1:0),c=1;c0?C+N:""}},356:function(e,r,t){"use strict";var n=t(201),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},c=function(e,r,t){if(e){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),c=a?n.slice(0,a.index):n,u=[];if(c){if(!t.plainObjects&&o.call(Object.prototype,c)&&!t.allowPrototypes)return;u.push(c)}for(var s=0;null!==(a=i.exec(n))&&s=0;--o){var i,a=e[o];if("[]"===a&&t.parseArrays)i=[].concat(n);else{i=t.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(c,10);t.parseArrays||""!==c?!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(i=[])[u]=n:i[c]=n:i={0:n}}n=i}return n}(u,r,t)}};e.exports=function(e,r){var t=r?n.assign({},r):{};if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(t.ignoreQueryPrefix=!0===t.ignoreQueryPrefix,t.delimiter="string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,t.depth="number"==typeof t.depth?t.depth:i.depth,t.arrayLimit="number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,t.parseArrays=!1!==t.parseArrays,t.decoder="function"==typeof t.decoder?t.decoder:i.decoder,t.allowDots=void 0===t.allowDots?i.allowDots:!!t.allowDots,t.plainObjects="boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,t.allowPrototypes="boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,t.parameterLimit="number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,t.strictNullHandling="boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling,void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===t.charset&&(t.charset=i.charset),""===e||null==e)return t.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,r){var t,c={},u=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=r.parameterLimit===1/0?void 0:r.parameterLimit,l=u.split(r.delimiter,s),f=-1,p=r.charset;if(r.charsetSentinel)for(t=0;t {font: 'baz', fontVariant: 'bar'} + * becomes .style.font = 'baz' + * Removing a shorthand property (longhand gets lost too): + * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'} + * becomes .style.font = '' + * Removing a longhand property (should revert to shorthand; doesn't): + * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'} + * becomes .style.fontVariant = '' + */ +function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) { + if (!warnAboutShorthandPropertyCollision) { + return; + } + + if (!nextStyles) { + return; + } + + var expandedUpdates = expandShorthandMap(styleUpdates); + var expandedStyles = expandShorthandMap(nextStyles); + var warnedAbout = {}; + for (var key in expandedUpdates) { + var originalKey = expandedUpdates[key]; + var correctOriginalKey = expandedStyles[key]; + if (correctOriginalKey && originalKey !== correctOriginalKey) { + var warningKey = originalKey + ',' + correctOriginalKey; + if (warnedAbout[warningKey]) { + continue; + } + warnedAbout[warningKey] = true; + warning$1(false, '%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey); + } + } +} + // For HTML, certain tags should omit their close tag. We keep a whitelist for // those special-case tags. @@ -7912,6 +8033,9 @@ function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContain } } if (styleUpdates) { + { + validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]); + } (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates); } return updatePayload; @@ -8589,6 +8713,17 @@ var unstable_cancelCallback = _ReactInternals$Sched.unstable_cancelCallback; var unstable_now = _ReactInternals$Sched.unstable_now; var unstable_scheduleCallback = _ReactInternals$Sched.unstable_scheduleCallback; var unstable_shouldYield = _ReactInternals$Sched.unstable_shouldYield; +var unstable_getFirstCallbackNode = _ReactInternals$Sched.unstable_getFirstCallbackNode; +var unstable_runWithPriority = _ReactInternals$Sched.unstable_runWithPriority; +var unstable_next = _ReactInternals$Sched.unstable_next; +var unstable_continueExecution = _ReactInternals$Sched.unstable_continueExecution; +var unstable_pauseExecution = _ReactInternals$Sched.unstable_pauseExecution; +var unstable_getCurrentPriorityLevel = _ReactInternals$Sched.unstable_getCurrentPriorityLevel; +var unstable_ImmediatePriority = _ReactInternals$Sched.unstable_ImmediatePriority; +var unstable_UserBlockingPriority = _ReactInternals$Sched.unstable_UserBlockingPriority; +var unstable_NormalPriority = _ReactInternals$Sched.unstable_NormalPriority; +var unstable_LowPriority = _ReactInternals$Sched.unstable_LowPriority; +var unstable_IdlePriority = _ReactInternals$Sched.unstable_IdlePriority; // Renderers that don't support persistence // can re-export everything from this module. @@ -8613,6 +8748,9 @@ var SUPPRESS_HYDRATION_WARNING = void 0; SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning'; } +var SUSPENSE_START_DATA = '$'; +var SUSPENSE_END_DATA = '/$'; + var STYLE = 'style'; var eventsEnabled = null; @@ -8752,6 +8890,8 @@ var isPrimaryRenderer = true; var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined; var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined; var noTimeout = -1; +var schedulePassiveEffects = unstable_scheduleCallback; +var cancelPassiveEffects = unstable_cancelCallback; // ------------------- // Mutation @@ -8839,6 +8979,43 @@ function removeChildFromContainer(container, child) { } } +function clearSuspenseBoundary(parentInstance, suspenseInstance) { + var node = suspenseInstance; + // Delete all nodes within this suspense boundary. + // There might be nested nodes so we need to keep track of how + // deep we are and only break out when we're back on top. + var depth = 0; + do { + var nextNode = node.nextSibling; + parentInstance.removeChild(node); + if (nextNode && nextNode.nodeType === COMMENT_NODE) { + var data = nextNode.data; + if (data === SUSPENSE_END_DATA) { + if (depth === 0) { + parentInstance.removeChild(nextNode); + return; + } else { + depth--; + } + } else if (data === SUSPENSE_START_DATA) { + depth++; + } + } + node = nextNode; + } while (node); + // TODO: Warn, we didn't find the end comment boundary. +} + +function clearSuspenseBoundaryFromContainer(container, suspenseInstance) { + if (container.nodeType === COMMENT_NODE) { + clearSuspenseBoundary(container.parentNode, suspenseInstance); + } else if (container.nodeType === ELEMENT_NODE) { + clearSuspenseBoundary(container, suspenseInstance); + } else { + // Document nodes should never contain suspense boundaries. + } +} + function hideInstance(instance) { // TODO: Does this work for all element types? What about MathML? Should we // pass host context to this method? @@ -8884,10 +9061,19 @@ function canHydrateTextInstance(instance, text) { return instance; } +function canHydrateSuspenseInstance(instance) { + if (instance.nodeType !== COMMENT_NODE) { + // Empty strings are not parsed by HTML so there won't be a correct match here. + return null; + } + // This has now been refined to a suspense node. + return instance; +} + function getNextHydratableSibling(instance) { var node = instance.nextSibling; // Skip non-hydratable nodes. - while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE) { + while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE && (!enableSuspenseServerRenderer || node.nodeType !== COMMENT_NODE || node.data !== SUSPENSE_START_DATA)) { node = node.nextSibling; } return node; @@ -8896,7 +9082,7 @@ function getNextHydratableSibling(instance) { function getFirstHydratableChild(parentInstance) { var next = parentInstance.firstChild; // Skip non-hydratable nodes. - while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE) { + while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE && (!enableSuspenseServerRenderer || next.nodeType !== COMMENT_NODE || next.data !== SUSPENSE_START_DATA)) { next = next.nextSibling; } return next; @@ -8920,6 +9106,31 @@ function hydrateTextInstance(textInstance, text, internalInstanceHandle) { return diffHydratedText(textInstance, text); } +function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) { + var node = suspenseInstance.nextSibling; + // Skip past all nodes within this suspense boundary. + // There might be nested nodes so we need to keep track of how + // deep we are and only break out when we're back on top. + var depth = 0; + while (node) { + if (node.nodeType === COMMENT_NODE) { + var data = node.data; + if (data === SUSPENSE_END_DATA) { + if (depth === 0) { + return getNextHydratableSibling(node); + } else { + depth--; + } + } else if (data === SUSPENSE_START_DATA) { + depth++; + } + } + node = node.nextSibling; + } + // TODO: Warn, we didn't find the end comment boundary. + return null; +} + function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) { { warnForUnmatchedText(textInstance, text); @@ -8936,6 +9147,8 @@ function didNotHydrateContainerInstance(parentContainer, instance) { { if (instance.nodeType === ELEMENT_NODE) { warnForDeletedHydratableElement(parentContainer, instance); + } else if (instance.nodeType === COMMENT_NODE) { + // TODO: warnForDeletedHydratableSuspenseBoundary } else { warnForDeletedHydratableText(parentContainer, instance); } @@ -8946,6 +9159,8 @@ function didNotHydrateInstance(parentType, parentProps, parentInstance, instance if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { if (instance.nodeType === ELEMENT_NODE) { warnForDeletedHydratableElement(parentInstance, instance); + } else if (instance.nodeType === COMMENT_NODE) { + // TODO: warnForDeletedHydratableSuspenseBoundary } else { warnForDeletedHydratableText(parentInstance, instance); } @@ -8964,6 +9179,8 @@ function didNotFindHydratableContainerTextInstance(parentContainer, text) { } } + + function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) { if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { warnForInsertedHydratedElement(parentInstance, type, props); @@ -8976,6 +9193,12 @@ function didNotFindHydratableTextInstance(parentType, parentProps, parentInstanc } } +function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) { + if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) { + // TODO: warnForInsertedHydratedSuspense(parentInstance); + } +} + // Prefix measurements so that it's possible to filter them. // Longer prefixes are hard to read in DevTools. var reactEmoji = '\u269B'; @@ -9231,7 +9454,7 @@ function stopFailedWorkTimer(fiber) { return; } fiber._debugIsCurrentlyTiming = false; - var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary'; + var warning = fiber.tag === SuspenseComponent || fiber.tag === DehydratedSuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary'; endFiberMark(fiber, null, warning); } } @@ -9852,7 +10075,7 @@ function FiberNode(tag, pendingProps, key, mode) { this.memoizedProps = null; this.updateQueue = null; this.memoizedState = null; - this.firstContextDependency = null; + this.contextDependencies = null; this.mode = mode; @@ -9869,6 +10092,26 @@ function FiberNode(tag, pendingProps, key, mode) { this.alternate = null; if (enableProfilerTimer) { + // Note: The following is done to avoid a v8 performance cliff. + // + // Initializing the fields below to smis and later updating them with + // double values will cause Fibers to end up having separate shapes. + // This behavior/bug has something to do with Object.preventExtension(). + // Fortunately this only impacts DEV builds. + // Unfortunately it makes React unusably slow for some applications. + // To work around this, initialize the fields below with doubles. + // + // Learn more about this here: + // https://github.com/facebook/react/issues/14365 + // https://bugs.chromium.org/p/v8/issues/detail?id=8538 + this.actualDuration = Number.NaN; + this.actualStartTime = Number.NaN; + this.selfBaseDuration = Number.NaN; + this.treeBaseDuration = Number.NaN; + + // It's okay to replace the initial doubles with smis after initialization. + // This won't trigger the performance cliff mentioned above, + // and it simplifies other profiler code (including DevTools). this.actualDuration = 0; this.actualStartTime = -1; this.selfBaseDuration = 0; @@ -9880,6 +10123,7 @@ function FiberNode(tag, pendingProps, key, mode) { this._debugSource = null; this._debugOwner = null; this._debugIsCurrentlyTiming = false; + this._debugHookTypes = null; if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') { Object.preventExtensions(this); } @@ -9947,6 +10191,7 @@ function createWorkInProgress(current, pendingProps, expirationTime) { workInProgress._debugID = current._debugID; workInProgress._debugSource = current._debugSource; workInProgress._debugOwner = current._debugOwner; + workInProgress._debugHookTypes = current._debugHookTypes; } workInProgress.alternate = current; @@ -9980,7 +10225,7 @@ function createWorkInProgress(current, pendingProps, expirationTime) { workInProgress.memoizedProps = current.memoizedProps; workInProgress.memoizedState = current.memoizedState; workInProgress.updateQueue = current.updateQueue; - workInProgress.firstContextDependency = current.firstContextDependency; + workInProgress.contextDependencies = current.contextDependencies; // These will be overridden during the parent's reconciliation workInProgress.sibling = current.sibling; @@ -10195,7 +10440,7 @@ function assignFiberPropertiesInDEV(target, source) { target.memoizedProps = source.memoizedProps; target.updateQueue = source.updateQueue; target.memoizedState = source.memoizedState; - target.firstContextDependency = source.firstContextDependency; + target.contextDependencies = source.contextDependencies; target.mode = source.mode; target.effectTag = source.effectTag; target.nextEffect = source.nextEffect; @@ -10214,6 +10459,7 @@ function assignFiberPropertiesInDEV(target, source) { target._debugSource = source._debugSource; target._debugOwner = source._debugOwner; target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming; + target._debugHookTypes = source._debugHookTypes; return target; } @@ -10264,6 +10510,8 @@ function createFiberRoot(containerInfo, isConcurrent, hydrate) { latestSuspendedTime: NoWork, latestPingedTime: NoWork, + pingCache: null, + didError: false, pendingCommitExpirationTime: NoWork, @@ -10287,6 +10535,8 @@ function createFiberRoot(containerInfo, isConcurrent, hydrate) { containerInfo: containerInfo, pendingChildren: null, + pingCache: null, + earliestPendingTime: NoWork, latestPendingTime: NoWork, earliestSuspendedTime: NoWork, @@ -10416,7 +10666,7 @@ var ReactStrictModeWarnings = { ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) { - var lifecyclesWarningMesages = []; + var lifecyclesWarningMessages = []; Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) { var lifecycleWarnings = lifecycleWarningsMap[lifecycle]; @@ -10431,14 +10681,14 @@ var ReactStrictModeWarnings = { var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle]; var sortedComponentNames = setToSortedString(componentNames); - lifecyclesWarningMesages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames)); + lifecyclesWarningMessages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames)); } }); - if (lifecyclesWarningMesages.length > 0) { + if (lifecyclesWarningMessages.length > 0) { var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot); - warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\n\n%s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMesages.join('\n\n')); + warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\n\n%s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMessages.join('\n\n')); } }); @@ -10661,6 +10911,10 @@ function markCommittedPriorityLevels(root, earliestRemainingTime) { return; } + if (earliestRemainingTime < root.latestPingedTime) { + root.latestPingedTime = NoWork; + } + // Let's see if the previous latest known pending level was just flushed. var latestPendingTime = root.latestPendingTime; if (latestPendingTime !== NoWork) { @@ -10786,10 +11040,8 @@ function markPingedPriorityLevel(root, pingedTime) { } function clearPing(root, completedTime) { - // TODO: Track whether the root was pinged during the render phase. If so, - // we need to make sure we don't lose track of it. var latestPingedTime = root.latestPingedTime; - if (latestPingedTime !== NoWork && latestPingedTime >= completedTime) { + if (latestPingedTime >= completedTime) { root.latestPingedTime = NoWork; } } @@ -10845,1416 +11097,6 @@ function findNextExpirationTimeToWorkOn(completedExpirationTime, root) { root.expirationTime = expirationTime; } -// UpdateQueue is a linked list of prioritized updates. -// -// Like fibers, update queues come in pairs: a current queue, which represents -// the visible state of the screen, and a work-in-progress queue, which is -// can be mutated and processed asynchronously before it is committed — a form -// of double buffering. If a work-in-progress render is discarded before -// finishing, we create a new work-in-progress by cloning the current queue. -// -// Both queues share a persistent, singly-linked list structure. To schedule an -// update, we append it to the end of both queues. Each queue maintains a -// pointer to first update in the persistent list that hasn't been processed. -// The work-in-progress pointer always has a position equal to or greater than -// the current queue, since we always work on that one. The current queue's -// pointer is only updated during the commit phase, when we swap in the -// work-in-progress. -// -// For example: -// -// Current pointer: A - B - C - D - E - F -// Work-in-progress pointer: D - E - F -// ^ -// The work-in-progress queue has -// processed more updates than current. -// -// The reason we append to both queues is because otherwise we might drop -// updates without ever processing them. For example, if we only add updates to -// the work-in-progress queue, some updates could be lost whenever a work-in -// -progress render restarts by cloning from current. Similarly, if we only add -// updates to the current queue, the updates will be lost whenever an already -// in-progress queue commits and swaps with the current queue. However, by -// adding to both queues, we guarantee that the update will be part of the next -// work-in-progress. (And because the work-in-progress queue becomes the -// current queue once it commits, there's no danger of applying the same -// update twice.) -// -// Prioritization -// -------------- -// -// Updates are not sorted by priority, but by insertion; new updates are always -// appended to the end of the list. -// -// The priority is still important, though. When processing the update queue -// during the render phase, only the updates with sufficient priority are -// included in the result. If we skip an update because it has insufficient -// priority, it remains in the queue to be processed later, during a lower -// priority render. Crucially, all updates subsequent to a skipped update also -// remain in the queue *regardless of their priority*. That means high priority -// updates are sometimes processed twice, at two separate priorities. We also -// keep track of a base state, that represents the state before the first -// update in the queue is applied. -// -// For example: -// -// Given a base state of '', and the following queue of updates -// -// A1 - B2 - C1 - D2 -// -// where the number indicates the priority, and the update is applied to the -// previous state by appending a letter, React will process these updates as -// two separate renders, one per distinct priority level: -// -// First render, at priority 1: -// Base state: '' -// Updates: [A1, C1] -// Result state: 'AC' -// -// Second render, at priority 2: -// Base state: 'A' <- The base state does not include C1, -// because B2 was skipped. -// Updates: [B2, C1, D2] <- C1 was rebased on top of B2 -// Result state: 'ABCD' -// -// Because we process updates in insertion order, and rebase high priority -// updates when preceding updates are skipped, the final result is deterministic -// regardless of priority. Intermediate state may vary according to system -// resources, but the final state is always the same. - -var UpdateState = 0; -var ReplaceState = 1; -var ForceUpdate = 2; -var CaptureUpdate = 3; - -// Global state that is reset at the beginning of calling `processUpdateQueue`. -// It should only be read right after calling `processUpdateQueue`, via -// `checkHasForceUpdateAfterProcessing`. -var hasForceUpdate = false; - -var didWarnUpdateInsideUpdate = void 0; -var currentlyProcessingQueue = void 0; -var resetCurrentlyProcessingQueue = void 0; -{ - didWarnUpdateInsideUpdate = false; - currentlyProcessingQueue = null; - resetCurrentlyProcessingQueue = function () { - currentlyProcessingQueue = null; - }; -} - -function createUpdateQueue(baseState) { - var queue = { - baseState: baseState, - firstUpdate: null, - lastUpdate: null, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - return queue; -} - -function cloneUpdateQueue(currentQueue) { - var queue = { - baseState: currentQueue.baseState, - firstUpdate: currentQueue.firstUpdate, - lastUpdate: currentQueue.lastUpdate, - - // TODO: With resuming, if we bail out and resuse the child tree, we should - // keep these effects. - firstCapturedUpdate: null, - lastCapturedUpdate: null, - - firstEffect: null, - lastEffect: null, - - firstCapturedEffect: null, - lastCapturedEffect: null - }; - return queue; -} - -function createUpdate(expirationTime) { - return { - expirationTime: expirationTime, - - tag: UpdateState, - payload: null, - callback: null, - - next: null, - nextEffect: null - }; -} - -function appendUpdateToQueue(queue, update) { - // Append the update to the end of the list. - if (queue.lastUpdate === null) { - // Queue is empty - queue.firstUpdate = queue.lastUpdate = update; - } else { - queue.lastUpdate.next = update; - queue.lastUpdate = update; - } -} - -function enqueueUpdate(fiber, update) { - // Update queues are created lazily. - var alternate = fiber.alternate; - var queue1 = void 0; - var queue2 = void 0; - if (alternate === null) { - // There's only one fiber. - queue1 = fiber.updateQueue; - queue2 = null; - if (queue1 === null) { - queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); - } - } else { - // There are two owners. - queue1 = fiber.updateQueue; - queue2 = alternate.updateQueue; - if (queue1 === null) { - if (queue2 === null) { - // Neither fiber has an update queue. Create new ones. - queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); - queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState); - } else { - // Only one fiber has an update queue. Clone to create a new one. - queue1 = fiber.updateQueue = cloneUpdateQueue(queue2); - } - } else { - if (queue2 === null) { - // Only one fiber has an update queue. Clone to create a new one. - queue2 = alternate.updateQueue = cloneUpdateQueue(queue1); - } else { - // Both owners have an update queue. - } - } - } - if (queue2 === null || queue1 === queue2) { - // There's only a single queue. - appendUpdateToQueue(queue1, update); - } else { - // There are two queues. We need to append the update to both queues, - // while accounting for the persistent structure of the list — we don't - // want the same update to be added multiple times. - if (queue1.lastUpdate === null || queue2.lastUpdate === null) { - // One of the queues is not empty. We must add the update to both queues. - appendUpdateToQueue(queue1, update); - appendUpdateToQueue(queue2, update); - } else { - // Both queues are non-empty. The last update is the same in both lists, - // because of structural sharing. So, only append to one of the lists. - appendUpdateToQueue(queue1, update); - // But we still need to update the `lastUpdate` pointer of queue2. - queue2.lastUpdate = update; - } - } - - { - if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) { - warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.'); - didWarnUpdateInsideUpdate = true; - } - } -} - -function enqueueCapturedUpdate(workInProgress, update) { - // Captured updates go into a separate list, and only on the work-in- - // progress queue. - var workInProgressQueue = workInProgress.updateQueue; - if (workInProgressQueue === null) { - workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState); - } else { - // TODO: I put this here rather than createWorkInProgress so that we don't - // clone the queue unnecessarily. There's probably a better way to - // structure this. - workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); - } - - // Append the update to the end of the list. - if (workInProgressQueue.lastCapturedUpdate === null) { - // This is the first render phase update - workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update; - } else { - workInProgressQueue.lastCapturedUpdate.next = update; - workInProgressQueue.lastCapturedUpdate = update; - } -} - -function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { - var current = workInProgress.alternate; - if (current !== null) { - // If the work-in-progress queue is equal to the current queue, - // we need to clone it first. - if (queue === current.updateQueue) { - queue = workInProgress.updateQueue = cloneUpdateQueue(queue); - } - } - return queue; -} - -function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { - switch (update.tag) { - case ReplaceState: - { - var _payload = update.payload; - if (typeof _payload === 'function') { - // Updater function - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - _payload.call(instance, prevState, nextProps); - } - } - return _payload.call(instance, prevState, nextProps); - } - // State object - return _payload; - } - case CaptureUpdate: - { - workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; - } - // Intentional fallthrough - case UpdateState: - { - var _payload2 = update.payload; - var partialState = void 0; - if (typeof _payload2 === 'function') { - // Updater function - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - _payload2.call(instance, prevState, nextProps); - } - } - partialState = _payload2.call(instance, prevState, nextProps); - } else { - // Partial state object - partialState = _payload2; - } - if (partialState === null || partialState === undefined) { - // Null and undefined are treated as no-ops. - return prevState; - } - // Merge the partial state and the previous state. - return _assign({}, prevState, partialState); - } - case ForceUpdate: - { - hasForceUpdate = true; - return prevState; - } - } - return prevState; -} - -function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { - hasForceUpdate = false; - - queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); - - { - currentlyProcessingQueue = queue; - } - - // These values may change as we process the queue. - var newBaseState = queue.baseState; - var newFirstUpdate = null; - var newExpirationTime = NoWork; - - // Iterate through the list of updates to compute the result. - var update = queue.firstUpdate; - var resultState = newBaseState; - while (update !== null) { - var updateExpirationTime = update.expirationTime; - if (updateExpirationTime < renderExpirationTime) { - // This update does not have sufficient priority. Skip it. - if (newFirstUpdate === null) { - // This is the first skipped update. It will be the first update in - // the new list. - newFirstUpdate = update; - // Since this is the first update that was skipped, the current result - // is the new base state. - newBaseState = resultState; - } - // Since this update will remain in the list, update the remaining - // expiration time. - if (newExpirationTime < updateExpirationTime) { - newExpirationTime = updateExpirationTime; - } - } else { - // This update does have sufficient priority. Process it and compute - // a new result. - resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); - var _callback = update.callback; - if (_callback !== null) { - workInProgress.effectTag |= Callback; - // Set this to null, in case it was mutated during an aborted render. - update.nextEffect = null; - if (queue.lastEffect === null) { - queue.firstEffect = queue.lastEffect = update; - } else { - queue.lastEffect.nextEffect = update; - queue.lastEffect = update; - } - } - } - // Continue to the next update. - update = update.next; - } - - // Separately, iterate though the list of captured updates. - var newFirstCapturedUpdate = null; - update = queue.firstCapturedUpdate; - while (update !== null) { - var _updateExpirationTime = update.expirationTime; - if (_updateExpirationTime < renderExpirationTime) { - // This update does not have sufficient priority. Skip it. - if (newFirstCapturedUpdate === null) { - // This is the first skipped captured update. It will be the first - // update in the new list. - newFirstCapturedUpdate = update; - // If this is the first update that was skipped, the current result is - // the new base state. - if (newFirstUpdate === null) { - newBaseState = resultState; - } - } - // Since this update will remain in the list, update the remaining - // expiration time. - if (newExpirationTime < _updateExpirationTime) { - newExpirationTime = _updateExpirationTime; - } - } else { - // This update does have sufficient priority. Process it and compute - // a new result. - resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); - var _callback2 = update.callback; - if (_callback2 !== null) { - workInProgress.effectTag |= Callback; - // Set this to null, in case it was mutated during an aborted render. - update.nextEffect = null; - if (queue.lastCapturedEffect === null) { - queue.firstCapturedEffect = queue.lastCapturedEffect = update; - } else { - queue.lastCapturedEffect.nextEffect = update; - queue.lastCapturedEffect = update; - } - } - } - update = update.next; - } - - if (newFirstUpdate === null) { - queue.lastUpdate = null; - } - if (newFirstCapturedUpdate === null) { - queue.lastCapturedUpdate = null; - } else { - workInProgress.effectTag |= Callback; - } - if (newFirstUpdate === null && newFirstCapturedUpdate === null) { - // We processed every update, without skipping. That means the new base - // state is the same as the result state. - newBaseState = resultState; - } - - queue.baseState = newBaseState; - queue.firstUpdate = newFirstUpdate; - queue.firstCapturedUpdate = newFirstCapturedUpdate; - - // Set the remaining expiration time to be whatever is remaining in the queue. - // This should be fine because the only two other things that contribute to - // expiration time are props and context. We're already in the middle of the - // begin phase by the time we start processing the queue, so we've already - // dealt with the props. Context in components that specify - // shouldComponentUpdate is tricky; but we'll have to account for - // that regardless. - workInProgress.expirationTime = newExpirationTime; - workInProgress.memoizedState = resultState; - - { - currentlyProcessingQueue = null; - } -} - -function callCallback(callback, context) { - !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0; - callback.call(context); -} - -function resetHasForceUpdateBeforeProcessing() { - hasForceUpdate = false; -} - -function checkHasForceUpdateAfterProcessing() { - return hasForceUpdate; -} - -function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { - // If the finished render included captured updates, and there are still - // lower priority updates left over, we need to keep the captured updates - // in the queue so that they are rebased and not dropped once we process the - // queue again at the lower priority. - if (finishedQueue.firstCapturedUpdate !== null) { - // Join the captured update list to the end of the normal list. - if (finishedQueue.lastUpdate !== null) { - finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate; - finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate; - } - // Clear the list of captured updates. - finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null; - } - - // Commit the effects - commitUpdateEffects(finishedQueue.firstEffect, instance); - finishedQueue.firstEffect = finishedQueue.lastEffect = null; - - commitUpdateEffects(finishedQueue.firstCapturedEffect, instance); - finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; -} - -function commitUpdateEffects(effect, instance) { - while (effect !== null) { - var _callback3 = effect.callback; - if (_callback3 !== null) { - effect.callback = null; - callCallback(_callback3, instance); - } - effect = effect.nextEffect; - } -} - -function createCapturedValue(value, source) { - // If the value is an error, call this function immediately after it is thrown - // so the stack is accurate. - return { - value: value, - source: source, - stack: getStackByFiberInDevAndProd(source) - }; -} - -var valueCursor = createCursor(null); - -var rendererSigil = void 0; -{ - // Use this to detect multiple renderers using the same context - rendererSigil = {}; -} - -var currentlyRenderingFiber = null; -var lastContextDependency = null; -var lastContextWithAllBitsObserved = null; - -function resetContextDependences() { - // This is called right before React yields execution, to ensure `readContext` - // cannot be called outside the render phase. - currentlyRenderingFiber = null; - lastContextDependency = null; - lastContextWithAllBitsObserved = null; -} - -function pushProvider(providerFiber, nextValue) { - var context = providerFiber.type._context; - - if (isPrimaryRenderer) { - push(valueCursor, context._currentValue, providerFiber); - - context._currentValue = nextValue; - { - !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0; - context._currentRenderer = rendererSigil; - } - } else { - push(valueCursor, context._currentValue2, providerFiber); - - context._currentValue2 = nextValue; - { - !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0; - context._currentRenderer2 = rendererSigil; - } - } -} - -function popProvider(providerFiber) { - var currentValue = valueCursor.current; - - pop(valueCursor, providerFiber); - - var context = providerFiber.type._context; - if (isPrimaryRenderer) { - context._currentValue = currentValue; - } else { - context._currentValue2 = currentValue; - } -} - -function calculateChangedBits(context, newValue, oldValue) { - // Use Object.is to compare the new context value to the old value. Inlined - // Object.is polyfill. - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue // eslint-disable-line no-self-compare - ) { - // No change - return 0; - } else { - var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt; - - { - !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0; - } - return changedBits | 0; - } -} - -function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { - var fiber = workInProgress.child; - if (fiber !== null) { - // Set the return pointer of the child to the work-in-progress fiber. - fiber.return = workInProgress; - } - while (fiber !== null) { - var nextFiber = void 0; - - // Visit this fiber. - var dependency = fiber.firstContextDependency; - if (dependency !== null) { - do { - // Check if the context matches. - if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) { - // Match! Schedule an update on this fiber. - - if (fiber.tag === ClassComponent) { - // Schedule a force update on the work-in-progress. - var update = createUpdate(renderExpirationTime); - update.tag = ForceUpdate; - // TODO: Because we don't have a work-in-progress, this will add the - // update to the current fiber, too, which means it will persist even if - // this render is thrown away. Since it's a race condition, not sure it's - // worth fixing. - enqueueUpdate(fiber, update); - } - - if (fiber.expirationTime < renderExpirationTime) { - fiber.expirationTime = renderExpirationTime; - } - var alternate = fiber.alternate; - if (alternate !== null && alternate.expirationTime < renderExpirationTime) { - alternate.expirationTime = renderExpirationTime; - } - // Update the child expiration time of all the ancestors, including - // the alternates. - var node = fiber.return; - while (node !== null) { - alternate = node.alternate; - if (node.childExpirationTime < renderExpirationTime) { - node.childExpirationTime = renderExpirationTime; - if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) { - alternate.childExpirationTime = renderExpirationTime; - } - } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) { - alternate.childExpirationTime = renderExpirationTime; - } else { - // Neither alternate was updated, which means the rest of the - // ancestor path already has sufficient priority. - break; - } - node = node.return; - } - } - nextFiber = fiber.child; - dependency = dependency.next; - } while (dependency !== null); - } else if (fiber.tag === ContextProvider) { - // Don't scan deeper if this is a matching provider - nextFiber = fiber.type === workInProgress.type ? null : fiber.child; - } else { - // Traverse down. - nextFiber = fiber.child; - } - - if (nextFiber !== null) { - // Set the return pointer of the child to the work-in-progress fiber. - nextFiber.return = fiber; - } else { - // No child. Traverse to next sibling. - nextFiber = fiber; - while (nextFiber !== null) { - if (nextFiber === workInProgress) { - // We're back to the root of this subtree. Exit. - nextFiber = null; - break; - } - var sibling = nextFiber.sibling; - if (sibling !== null) { - // Set the return pointer of the sibling to the work-in-progress fiber. - sibling.return = nextFiber.return; - nextFiber = sibling; - break; - } - // No more siblings. Traverse up. - nextFiber = nextFiber.return; - } - } - fiber = nextFiber; - } -} - -function prepareToReadContext(workInProgress, renderExpirationTime) { - currentlyRenderingFiber = workInProgress; - lastContextDependency = null; - lastContextWithAllBitsObserved = null; - - // Reset the work-in-progress list - workInProgress.firstContextDependency = null; -} - -function readContext(context, observedBits) { - if (lastContextWithAllBitsObserved === context) { - // Nothing to do. We already observe everything in this context. - } else if (observedBits === false || observedBits === 0) { - // Do not observe any updates. - } else { - var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types. - if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) { - // Observe all updates. - lastContextWithAllBitsObserved = context; - resolvedObservedBits = maxSigned31BitInt; - } else { - resolvedObservedBits = observedBits; - } - - var contextItem = { - context: context, - observedBits: resolvedObservedBits, - next: null - }; - - if (lastContextDependency === null) { - !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0; - // This is the first dependency in the list - currentlyRenderingFiber.firstContextDependency = lastContextDependency = contextItem; - } else { - // Append a new context item. - lastContextDependency = lastContextDependency.next = contextItem; - } - } - return isPrimaryRenderer ? context._currentValue : context._currentValue2; -} - -var NoEffect$1 = /* */0; -var UnmountSnapshot = /* */2; -var UnmountMutation = /* */4; -var MountMutation = /* */8; -var UnmountLayout = /* */16; -var MountLayout = /* */32; -var MountPassive = /* */64; -var UnmountPassive = /* */128; - -function areHookInputsEqual(arr1, arr2) { - // Don't bother comparing lengths in prod because these arrays should be - // passed inline. - { - !(arr1.length === arr2.length) ? warning$1(false, 'Detected a variable number of hook dependencies. The length of the ' + 'dependencies array should be constant between renders.\n\n' + 'Previous: %s\n' + 'Incoming: %s', arr1.join(', '), arr2.join(', ')) : void 0; - } - for (var i = 0; i < arr1.length; i++) { - // Inlined Object.is polyfill. - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - var val1 = arr1[i]; - var val2 = arr2[i]; - if (val1 === val2 && (val1 !== 0 || 1 / val1 === 1 / val2) || val1 !== val1 && val2 !== val2 // eslint-disable-line no-self-compare - ) { - continue; - } - return false; - } - return true; -} - -// These are set right before calling the component. -var renderExpirationTime = NoWork; -// The work-in-progress fiber. I've named it differently to distinguish it from -// the work-in-progress hook. -var currentlyRenderingFiber$1 = null; - -// Hooks are stored as a linked list on the fiber's memoizedState field. The -// current hook list is the list that belongs to the current fiber. The -// work-in-progress hook list is a new list that will be added to the -// work-in-progress fiber. -var firstCurrentHook = null; -var currentHook = null; -var firstWorkInProgressHook = null; -var workInProgressHook = null; - -var remainingExpirationTime = NoWork; -var componentUpdateQueue = null; - -// Updates scheduled during render will trigger an immediate re-render at the -// end of the current pass. We can't store these updates on the normal queue, -// because if the work is aborted, they should be discarded. Because this is -// a relatively rare case, we also don't want to add an additional field to -// either the hook or queue object types. So we store them in a lazily create -// map of queue -> render-phase updates, which are discarded once the component -// completes without re-rendering. - -// Whether the work-in-progress hook is a re-rendered hook -var isReRender = false; -// Whether an update was scheduled during the currently executing render pass. -var didScheduleRenderPhaseUpdate = false; -// Lazily created map of render-phase updates -var renderPhaseUpdates = null; -// Counter to prevent infinite loops. -var numberOfReRenders = 0; -var RE_RENDER_LIMIT = 25; - -function resolveCurrentlyRenderingFiber() { - !(currentlyRenderingFiber$1 !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0; - return currentlyRenderingFiber$1; -} - -function prepareToUseHooks(current, workInProgress, nextRenderExpirationTime) { - if (!enableHooks) { - return; - } - renderExpirationTime = nextRenderExpirationTime; - currentlyRenderingFiber$1 = workInProgress; - firstCurrentHook = current !== null ? current.memoizedState : null; - - // The following should have already been reset - // currentHook = null; - // workInProgressHook = null; - - // remainingExpirationTime = NoWork; - // componentUpdateQueue = null; - - // isReRender = false; - // didScheduleRenderPhaseUpdate = false; - // renderPhaseUpdates = null; - // numberOfReRenders = 0; -} - -function finishHooks(Component, props, children, refOrContext) { - if (!enableHooks) { - return children; - } - - // This must be called after every function component to prevent hooks from - // being used in classes. - - while (didScheduleRenderPhaseUpdate) { - // Updates were scheduled during the render phase. They are stored in - // the `renderPhaseUpdates` map. Call the component again, reusing the - // work-in-progress hooks and applying the additional updates on top. Keep - // restarting until no more updates are scheduled. - didScheduleRenderPhaseUpdate = false; - numberOfReRenders += 1; - - // Start over from the beginning of the list - currentHook = null; - workInProgressHook = null; - componentUpdateQueue = null; - - children = Component(props, refOrContext); - } - renderPhaseUpdates = null; - numberOfReRenders = 0; - - var renderedWork = currentlyRenderingFiber$1; - - renderedWork.memoizedState = firstWorkInProgressHook; - renderedWork.expirationTime = remainingExpirationTime; - renderedWork.updateQueue = componentUpdateQueue; - - var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; - - renderExpirationTime = NoWork; - currentlyRenderingFiber$1 = null; - - firstCurrentHook = null; - currentHook = null; - firstWorkInProgressHook = null; - workInProgressHook = null; - - remainingExpirationTime = NoWork; - componentUpdateQueue = null; - - // Always set during createWorkInProgress - // isReRender = false; - - // These were reset above - // didScheduleRenderPhaseUpdate = false; - // renderPhaseUpdates = null; - // numberOfReRenders = 0; - - !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0; - - return children; -} - -function resetHooks() { - if (!enableHooks) { - return; - } - - // This is called instead of `finishHooks` if the component throws. It's also - // called inside mountIndeterminateComponent if we determine the component - // is a module-style component. - renderExpirationTime = NoWork; - currentlyRenderingFiber$1 = null; - - firstCurrentHook = null; - currentHook = null; - firstWorkInProgressHook = null; - workInProgressHook = null; - - remainingExpirationTime = NoWork; - componentUpdateQueue = null; - - // Always set during createWorkInProgress - // isReRender = false; - - didScheduleRenderPhaseUpdate = false; - renderPhaseUpdates = null; - numberOfReRenders = 0; -} - -function createHook() { - return { - memoizedState: null, - - baseState: null, - queue: null, - baseUpdate: null, - - next: null - }; -} - -function cloneHook(hook) { - return { - memoizedState: hook.memoizedState, - - baseState: hook.memoizedState, - queue: hook.queue, - baseUpdate: hook.baseUpdate, - - next: null - }; -} - -function createWorkInProgressHook() { - if (workInProgressHook === null) { - // This is the first hook in the list - if (firstWorkInProgressHook === null) { - isReRender = false; - currentHook = firstCurrentHook; - if (currentHook === null) { - // This is a newly mounted hook - workInProgressHook = createHook(); - } else { - // Clone the current hook. - workInProgressHook = cloneHook(currentHook); - } - firstWorkInProgressHook = workInProgressHook; - } else { - // There's already a work-in-progress. Reuse it. - isReRender = true; - currentHook = firstCurrentHook; - workInProgressHook = firstWorkInProgressHook; - } - } else { - if (workInProgressHook.next === null) { - isReRender = false; - var hook = void 0; - if (currentHook === null) { - // This is a newly mounted hook - hook = createHook(); - } else { - currentHook = currentHook.next; - if (currentHook === null) { - // This is a newly mounted hook - hook = createHook(); - } else { - // Clone the current hook. - hook = cloneHook(currentHook); - } - } - // Append to the end of the list - workInProgressHook = workInProgressHook.next = hook; - } else { - // There's already a work-in-progress. Reuse it. - isReRender = true; - workInProgressHook = workInProgressHook.next; - currentHook = currentHook !== null ? currentHook.next : null; - } - } - return workInProgressHook; -} - -function createFunctionComponentUpdateQueue() { - return { - lastEffect: null - }; -} - -function basicStateReducer(state, action) { - return typeof action === 'function' ? action(state) : action; -} - -function useContext(context, observedBits) { - // Ensure we're in a function component (class components support only the - // .unstable_read() form) - resolveCurrentlyRenderingFiber(); - return readContext(context, observedBits); -} - -function useState(initialState) { - return useReducer(basicStateReducer, - // useReducer has a special case to support lazy useState initializers - initialState); -} - -function useReducer(reducer, initialState, initialAction) { - currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber(); - workInProgressHook = createWorkInProgressHook(); - var queue = workInProgressHook.queue; - if (queue !== null) { - // Already have a queue, so this is an update. - if (isReRender) { - // This is a re-render. Apply the new render phase updates to the previous - var _dispatch2 = queue.dispatch; - if (renderPhaseUpdates !== null) { - // Render phase updates are stored in a map of queue -> linked list - var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); - if (firstRenderPhaseUpdate !== undefined) { - renderPhaseUpdates.delete(queue); - var newState = workInProgressHook.memoizedState; - var update = firstRenderPhaseUpdate; - do { - // Process this render phase update. We don't have to check the - // priority because it will always be the same as the current - // render's. - var _action = update.action; - newState = reducer(newState, _action); - update = update.next; - } while (update !== null); - - workInProgressHook.memoizedState = newState; - - // Don't persist the state accumlated from the render phase updates to - // the base state unless the queue is empty. - // TODO: Not sure if this is the desired semantics, but it's what we - // do for gDSFP. I can't remember why. - if (workInProgressHook.baseUpdate === queue.last) { - workInProgressHook.baseState = newState; - } - - return [newState, _dispatch2]; - } - } - return [workInProgressHook.memoizedState, _dispatch2]; - } - - // The last update in the entire queue - var _last = queue.last; - // The last update that is part of the base state. - var _baseUpdate = workInProgressHook.baseUpdate; - - // Find the first unprocessed update. - var first = void 0; - if (_baseUpdate !== null) { - if (_last !== null) { - // For the first update, the queue is a circular linked list where - // `queue.last.next = queue.first`. Once the first update commits, and - // the `baseUpdate` is no longer empty, we can unravel the list. - _last.next = null; - } - first = _baseUpdate.next; - } else { - first = _last !== null ? _last.next : null; - } - if (first !== null) { - var _newState = workInProgressHook.baseState; - var newBaseState = null; - var newBaseUpdate = null; - var prevUpdate = _baseUpdate; - var _update = first; - var didSkip = false; - do { - var updateExpirationTime = _update.expirationTime; - if (updateExpirationTime < renderExpirationTime) { - // Priority is insufficient. Skip this update. If this is the first - // skipped update, the previous update/state is the new base - // update/state. - if (!didSkip) { - didSkip = true; - newBaseUpdate = prevUpdate; - newBaseState = _newState; - } - // Update the remaining priority in the queue. - if (updateExpirationTime > remainingExpirationTime) { - remainingExpirationTime = updateExpirationTime; - } - } else { - // Process this update. - var _action2 = _update.action; - _newState = reducer(_newState, _action2); - } - prevUpdate = _update; - _update = _update.next; - } while (_update !== null && _update !== first); - - if (!didSkip) { - newBaseUpdate = prevUpdate; - newBaseState = _newState; - } - - workInProgressHook.memoizedState = _newState; - workInProgressHook.baseUpdate = newBaseUpdate; - workInProgressHook.baseState = newBaseState; - } - - var _dispatch = queue.dispatch; - return [workInProgressHook.memoizedState, _dispatch]; - } - - // There's no existing queue, so this is the initial render. - if (reducer === basicStateReducer) { - // Special case for `useState`. - if (typeof initialState === 'function') { - initialState = initialState(); - } - } else if (initialAction !== undefined && initialAction !== null) { - initialState = reducer(initialState, initialAction); - } - workInProgressHook.memoizedState = workInProgressHook.baseState = initialState; - queue = workInProgressHook.queue = { - last: null, - dispatch: null - }; - var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue); - return [workInProgressHook.memoizedState, dispatch]; -} - -function pushEffect(tag, create, destroy, inputs) { - var effect = { - tag: tag, - create: create, - destroy: destroy, - inputs: inputs, - // Circular - next: null - }; - if (componentUpdateQueue === null) { - componentUpdateQueue = createFunctionComponentUpdateQueue(); - componentUpdateQueue.lastEffect = effect.next = effect; - } else { - var _lastEffect = componentUpdateQueue.lastEffect; - if (_lastEffect === null) { - componentUpdateQueue.lastEffect = effect.next = effect; - } else { - var firstEffect = _lastEffect.next; - _lastEffect.next = effect; - effect.next = firstEffect; - componentUpdateQueue.lastEffect = effect; - } - } - return effect; -} - -function useRef(initialValue) { - currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber(); - workInProgressHook = createWorkInProgressHook(); - var ref = void 0; - - if (workInProgressHook.memoizedState === null) { - ref = { current: initialValue }; - { - Object.seal(ref); - } - workInProgressHook.memoizedState = ref; - } else { - ref = workInProgressHook.memoizedState; - } - return ref; -} - -function useMutationEffect(create, inputs) { - useEffectImpl(Snapshot | Update, UnmountSnapshot | MountMutation, create, inputs); -} - -function useLayoutEffect(create, inputs) { - useEffectImpl(Update, UnmountMutation | MountLayout, create, inputs); -} - -function useEffect(create, inputs) { - useEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, inputs); -} - -function useEffectImpl(fiberEffectTag, hookEffectTag, create, inputs) { - currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber(); - workInProgressHook = createWorkInProgressHook(); - - var nextInputs = inputs !== undefined && inputs !== null ? inputs : [create]; - var destroy = null; - if (currentHook !== null) { - var prevEffect = currentHook.memoizedState; - destroy = prevEffect.destroy; - if (areHookInputsEqual(nextInputs, prevEffect.inputs)) { - pushEffect(NoEffect$1, create, destroy, nextInputs); - return; - } - } - - currentlyRenderingFiber$1.effectTag |= fiberEffectTag; - workInProgressHook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextInputs); -} - -function useImperativeMethods(ref, create, inputs) { - // TODO: If inputs are provided, should we skip comparing the ref itself? - var nextInputs = inputs !== null && inputs !== undefined ? inputs.concat([ref]) : [ref, create]; - - // TODO: I've implemented this on top of useEffect because it's almost the - // same thing, and it would require an equal amount of code. It doesn't seem - // like a common enough use case to justify the additional size. - useEffectImpl(Update, UnmountMutation | MountLayout, function () { - if (typeof ref === 'function') { - var refCallback = ref; - var _inst = create(); - refCallback(_inst); - return function () { - return refCallback(null); - }; - } else if (ref !== null && ref !== undefined) { - var refObject = ref; - var _inst2 = create(); - refObject.current = _inst2; - return function () { - refObject.current = null; - }; - } - }, nextInputs); -} - -function useCallback(callback, inputs) { - currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber(); - workInProgressHook = createWorkInProgressHook(); - - var nextInputs = inputs !== undefined && inputs !== null ? inputs : [callback]; - - var prevState = workInProgressHook.memoizedState; - if (prevState !== null) { - var prevInputs = prevState[1]; - if (areHookInputsEqual(nextInputs, prevInputs)) { - return prevState[0]; - } - } - workInProgressHook.memoizedState = [callback, nextInputs]; - return callback; -} - -function useMemo(nextCreate, inputs) { - currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber(); - workInProgressHook = createWorkInProgressHook(); - - var nextInputs = inputs !== undefined && inputs !== null ? inputs : [nextCreate]; - - var prevState = workInProgressHook.memoizedState; - if (prevState !== null) { - var prevInputs = prevState[1]; - if (areHookInputsEqual(nextInputs, prevInputs)) { - return prevState[0]; - } - } - - var nextValue = nextCreate(); - workInProgressHook.memoizedState = [nextValue, nextInputs]; - return nextValue; -} - -function dispatchAction(fiber, queue, action) { - !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0; - - var alternate = fiber.alternate; - if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) { - // This is a render phase update. Stash it in a lazily-created map of - // queue -> linked list of updates. After this render pass, we'll restart - // and apply the stashed updates on top of the work-in-progress hook. - didScheduleRenderPhaseUpdate = true; - var update = { - expirationTime: renderExpirationTime, - action: action, - next: null - }; - if (renderPhaseUpdates === null) { - renderPhaseUpdates = new Map(); - } - var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); - if (firstRenderPhaseUpdate === undefined) { - renderPhaseUpdates.set(queue, update); - } else { - // Append the update to the end of the list. - var lastRenderPhaseUpdate = firstRenderPhaseUpdate; - while (lastRenderPhaseUpdate.next !== null) { - lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; - } - lastRenderPhaseUpdate.next = update; - } - } else { - var currentTime = requestCurrentTime(); - var _expirationTime = computeExpirationForFiber(currentTime, fiber); - var _update2 = { - expirationTime: _expirationTime, - action: action, - next: null - }; - flushPassiveEffects(); - // Append the update to the end of the list. - var _last2 = queue.last; - if (_last2 === null) { - // This is the first update. Create a circular list. - _update2.next = _update2; - } else { - var first = _last2.next; - if (first !== null) { - // Still circular. - _update2.next = first; - } - _last2.next = _update2; - } - queue.last = _update2; - scheduleWork(fiber, _expirationTime); - } -} - -var NO_CONTEXT = {}; - -var contextStackCursor$1 = createCursor(NO_CONTEXT); -var contextFiberStackCursor = createCursor(NO_CONTEXT); -var rootInstanceStackCursor = createCursor(NO_CONTEXT); - -function requiredContext(c) { - !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0; - return c; -} - -function getRootHostContainer() { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - return rootInstance; -} - -function pushHostContainer(fiber, nextRootInstance) { - // Push current root instance onto the stack; - // This allows us to reset root when portals are popped. - push(rootInstanceStackCursor, nextRootInstance, fiber); - // Track the context and the Fiber that provided it. - // This enables us to pop only Fibers that provide unique contexts. - push(contextFiberStackCursor, fiber, fiber); - - // Finally, we need to push the host context to the stack. - // However, we can't just call getRootHostContext() and push it because - // we'd have a different number of entries on the stack depending on - // whether getRootHostContext() throws somewhere in renderer code or not. - // So we push an empty value first. This lets us safely unwind on errors. - push(contextStackCursor$1, NO_CONTEXT, fiber); - var nextRootContext = getRootHostContext(nextRootInstance); - // Now that we know this function doesn't throw, replace it. - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, nextRootContext, fiber); -} - -function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); -} - -function getHostContext() { - var context = requiredContext(contextStackCursor$1.current); - return context; -} - -function pushHostContext(fiber) { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - var context = requiredContext(contextStackCursor$1.current); - var nextContext = getChildHostContext(context, fiber.type, rootInstance); - - // Don't push this Fiber's context unless it's unique. - if (context === nextContext) { - return; - } - - // Track the context and the Fiber that provided it. - // This enables us to pop only Fibers that provide unique contexts. - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, nextContext, fiber); -} - -function popHostContext(fiber) { - // Do not pop unless this Fiber provided the current context. - // pushHostContext() only pushes Fibers that provide unique contexts. - if (contextFiberStackCursor.current !== fiber) { - return; - } - - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); -} - -var commitTime = 0; -var profilerStartTime = -1; - -function getCommitTime() { - return commitTime; -} - -function recordCommitTime() { - if (!enableProfilerTimer) { - return; - } - commitTime = unstable_now(); -} - -function startProfilerTimer(fiber) { - if (!enableProfilerTimer) { - return; - } - - profilerStartTime = unstable_now(); - - if (fiber.actualStartTime < 0) { - fiber.actualStartTime = unstable_now(); - } -} - -function stopProfilerTimerIfRunning(fiber) { - if (!enableProfilerTimer) { - return; - } - profilerStartTime = -1; -} - -function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { - if (!enableProfilerTimer) { - return; - } - - if (profilerStartTime >= 0) { - var elapsedTime = unstable_now() - profilerStartTime; - fiber.actualDuration += elapsedTime; - if (overrideBaseTime) { - fiber.selfBaseDuration = elapsedTime; - } - profilerStartTime = -1; - } -} - function resolveDefaultProps(Component, baseProps) { if (Component && Component.defaultProps) { // Resolve default props. Taken from ReactElement @@ -12311,19 +11153,19 @@ function readLazyComponentType(lazyComponent) { lazyComponent._result = error; } }); + // Handle synchronous thenables. + switch (lazyComponent._status) { + case Resolved: + return lazyComponent._result; + case Rejected: + throw lazyComponent._result; + } lazyComponent._result = _thenable; throw _thenable; } } } -var ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner; - -function readContext$1(contextType) { - var dispatcher = ReactCurrentOwner$4.currentDispatcher; - return dispatcher.readContext(contextType); -} - var fakeInternalInstance = {}; var isArray$1 = Array.isArray; @@ -12590,7 +11432,7 @@ function constructClassInstance(workInProgress, ctor, props, renderExpirationTim } } - context = readContext$1(contextType); + context = readContext(contextType); } else { unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); var contextTypes = ctor.contextTypes; @@ -12717,7 +11559,7 @@ function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime var contextType = ctor.contextType; if (typeof contextType === 'object' && contextType !== null) { - instance.context = readContext$1(contextType); + instance.context = readContext(contextType); } else { var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true); instance.context = getMaskedContext(workInProgress, unmaskedContext); @@ -12783,7 +11625,7 @@ function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirati var contextType = ctor.contextType; var nextContext = void 0; if (typeof contextType === 'object' && contextType !== null) { - nextContext = readContext$1(contextType); + nextContext = readContext(contextType); } else { var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext); @@ -12878,7 +11720,7 @@ function updateClassInstance(current, workInProgress, ctor, newProps, renderExpi var contextType = ctor.contextType; var nextContext = void 0; if (typeof contextType === 'object' && contextType !== null) { - nextContext = readContext$1(contextType); + nextContext = readContext(contextType); } else { var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true); nextContext = getMaskedContext(workInProgress, nextUnmaskedContext); @@ -13010,13 +11852,13 @@ var warnForMissingKey = function (child) {}; !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.') : void 0; child._store.validated = true; - var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev(); + var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev(); if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { return; } ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - warning$1(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.'); + warning$1(false, 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.'); }; } @@ -13040,7 +11882,7 @@ function coerceRef(returnFiber, current$$1, element) { var inst = void 0; if (owner) { var ownerFiber = owner; - !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs.') : void 0; + !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs. Did you mean to use React.forwardRef()?') : void 0; inst = ownerFiber.stateNode; } !inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0; @@ -13435,7 +12277,7 @@ function ChildReconciler(shouldTrackSideEffects) { } function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { - // This algorithm can't optimize by searching from boths ends since we + // This algorithm can't optimize by searching from both ends since we // don't have backpointers on fibers. I'm trying to see how far we can get // with that model. If it ends up not being worth the tradeoffs, we can // add it later. @@ -13915,6 +12757,1409 @@ function cloneChildFibers(current$$1, workInProgress) { newChild.sibling = null; } +var NO_CONTEXT = {}; + +var contextStackCursor$1 = createCursor(NO_CONTEXT); +var contextFiberStackCursor = createCursor(NO_CONTEXT); +var rootInstanceStackCursor = createCursor(NO_CONTEXT); + +function requiredContext(c) { + !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0; + return c; +} + +function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; +} + +function pushHostContainer(fiber, nextRootInstance) { + // Push current root instance onto the stack; + // This allows us to reset root when portals are popped. + push(rootInstanceStackCursor, nextRootInstance, fiber); + // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. + push(contextFiberStackCursor, fiber, fiber); + + // Finally, we need to push the host context to the stack. + // However, we can't just call getRootHostContext() and push it because + // we'd have a different number of entries on the stack depending on + // whether getRootHostContext() throws somewhere in renderer code or not. + // So we push an empty value first. This lets us safely unwind on errors. + push(contextStackCursor$1, NO_CONTEXT, fiber); + var nextRootContext = getRootHostContext(nextRootInstance); + // Now that we know this function doesn't throw, replace it. + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); +} + +function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); +} + +function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; +} + +function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type, rootInstance); + + // Don't push this Fiber's context unless it's unique. + if (context === nextContext) { + return; + } + + // Track the context and the Fiber that provided it. + // This enables us to pop only Fibers that provide unique contexts. + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); +} + +function popHostContext(fiber) { + // Do not pop unless this Fiber provided the current context. + // pushHostContext() only pushes Fibers that provide unique contexts. + if (contextFiberStackCursor.current !== fiber) { + return; + } + + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); +} + +var NoEffect$1 = /* */0; +var UnmountSnapshot = /* */2; +var UnmountMutation = /* */4; +var MountMutation = /* */8; +var UnmountLayout = /* */16; +var MountLayout = /* */32; +var MountPassive = /* */64; +var UnmountPassive = /* */128; + +var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; + + +var didWarnAboutMismatchedHooksForComponent = void 0; +{ + didWarnAboutMismatchedHooksForComponent = new Set(); +} + +// These are set right before calling the component. +var renderExpirationTime = NoWork; +// The work-in-progress fiber. I've named it differently to distinguish it from +// the work-in-progress hook. +var currentlyRenderingFiber$1 = null; + +// Hooks are stored as a linked list on the fiber's memoizedState field. The +// current hook list is the list that belongs to the current fiber. The +// work-in-progress hook list is a new list that will be added to the +// work-in-progress fiber. +var currentHook = null; +var nextCurrentHook = null; +var firstWorkInProgressHook = null; +var workInProgressHook = null; +var nextWorkInProgressHook = null; + +var remainingExpirationTime = NoWork; +var componentUpdateQueue = null; +var sideEffectTag = 0; + +// Updates scheduled during render will trigger an immediate re-render at the +// end of the current pass. We can't store these updates on the normal queue, +// because if the work is aborted, they should be discarded. Because this is +// a relatively rare case, we also don't want to add an additional field to +// either the hook or queue object types. So we store them in a lazily create +// map of queue -> render-phase updates, which are discarded once the component +// completes without re-rendering. + +// Whether an update was scheduled during the currently executing render pass. +var didScheduleRenderPhaseUpdate = false; +// Lazily created map of render-phase updates +var renderPhaseUpdates = null; +// Counter to prevent infinite loops. +var numberOfReRenders = 0; +var RE_RENDER_LIMIT = 25; + +// In DEV, this is the name of the currently executing primitive hook +var currentHookNameInDev = null; + +// In DEV, this list ensures that hooks are called in the same order between renders. +// The list stores the order of hooks used during the initial render (mount). +// Subsequent renders (updates) reference this list. +var hookTypesDev = null; +var hookTypesUpdateIndexDev = -1; + +function mountHookTypesDev() { + { + var hookName = currentHookNameInDev; + + if (hookTypesDev === null) { + hookTypesDev = [hookName]; + } else { + hookTypesDev.push(hookName); + } + } +} + +function updateHookTypesDev() { + { + var hookName = currentHookNameInDev; + + if (hookTypesDev !== null) { + hookTypesUpdateIndexDev++; + if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) { + warnOnHookMismatchInDev(hookName); + } + } + } +} + +function warnOnHookMismatchInDev(currentHookName) { + { + var componentName = getComponentName(currentlyRenderingFiber$1.type); + if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { + didWarnAboutMismatchedHooksForComponent.add(componentName); + + if (hookTypesDev !== null) { + var table = ''; + + var secondColumnStart = 30; + + for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { + var oldHookName = hookTypesDev[i]; + var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; + + var row = i + 1 + '. ' + oldHookName; + + // Extra space so second column lines up + // lol @ IE not supporting String#repeat + while (row.length < secondColumnStart) { + row += ' '; + } + + row += newHookName + '\n'; + + table += row; + } + + warning$1(false, 'React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table); + } + } + } +} + +function throwInvalidHookError() { + invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)'); +} + +function areHookInputsEqual(nextDeps, prevDeps) { + if (prevDeps === null) { + { + warning$1(false, '%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev); + } + return false; + } + + { + // Don't bother comparing lengths in prod because these arrays should be + // passed inline. + if (nextDeps.length !== prevDeps.length) { + warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, '[' + nextDeps.join(', ') + ']', '[' + prevDeps.join(', ') + ']'); + } + } + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (is(nextDeps[i], prevDeps[i])) { + continue; + } + return false; + } + return true; +} + +function renderWithHooks(current, workInProgress, Component, props, refOrContext, nextRenderExpirationTime) { + renderExpirationTime = nextRenderExpirationTime; + currentlyRenderingFiber$1 = workInProgress; + nextCurrentHook = current !== null ? current.memoizedState : null; + + { + hookTypesDev = current !== null ? current._debugHookTypes : null; + hookTypesUpdateIndexDev = -1; + } + + // The following should have already been reset + // currentHook = null; + // workInProgressHook = null; + + // remainingExpirationTime = NoWork; + // componentUpdateQueue = null; + + // didScheduleRenderPhaseUpdate = false; + // renderPhaseUpdates = null; + // numberOfReRenders = 0; + // sideEffectTag = 0; + + // TODO Warn if no hooks are used at all during mount, then some are used during update. + // Currently we will identify the update render as a mount because nextCurrentHook === null. + // This is tricky because it's valid for certain types of components (e.g. React.lazy) + + // Using nextCurrentHook to differentiate between mount/update only works if at least one stateful hook is used. + // Non-stateful hooks (e.g. context) don't get added to memoizedState, + // so nextCurrentHook would be null during updates and mounts. + { + if (nextCurrentHook !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; + } else if (hookTypesDev !== null) { + // This dispatcher handles an edge case where a component is updating, + // but no stateful hooks have been used. + // We want to match the production code behavior (which will use HooksDispatcherOnMount), + // but with the extra DEV validation to ensure hooks ordering hasn't changed. + // This dispatcher does that. + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV; + } else { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV; + } + } + + var children = Component(props, refOrContext); + + if (didScheduleRenderPhaseUpdate) { + do { + didScheduleRenderPhaseUpdate = false; + numberOfReRenders += 1; + + // Start over from the beginning of the list + nextCurrentHook = current !== null ? current.memoizedState : null; + nextWorkInProgressHook = firstWorkInProgressHook; + + currentHook = null; + workInProgressHook = null; + componentUpdateQueue = null; + + { + // Also validate hook order for cascading updates. + hookTypesUpdateIndexDev = -1; + } + + ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; + + children = Component(props, refOrContext); + } while (didScheduleRenderPhaseUpdate); + + renderPhaseUpdates = null; + numberOfReRenders = 0; + } + + // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrancy. + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + + var renderedWork = currentlyRenderingFiber$1; + + renderedWork.memoizedState = firstWorkInProgressHook; + renderedWork.expirationTime = remainingExpirationTime; + renderedWork.updateQueue = componentUpdateQueue; + renderedWork.effectTag |= sideEffectTag; + + { + renderedWork._debugHookTypes = hookTypesDev; + } + + // This check uses currentHook so that it works the same in DEV and prod bundles. + // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles. + var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; + + renderExpirationTime = NoWork; + currentlyRenderingFiber$1 = null; + + currentHook = null; + nextCurrentHook = null; + firstWorkInProgressHook = null; + workInProgressHook = null; + nextWorkInProgressHook = null; + + { + currentHookNameInDev = null; + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + } + + remainingExpirationTime = NoWork; + componentUpdateQueue = null; + sideEffectTag = 0; + + // These were reset above + // didScheduleRenderPhaseUpdate = false; + // renderPhaseUpdates = null; + // numberOfReRenders = 0; + + !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0; + + return children; +} + +function bailoutHooks(current, workInProgress, expirationTime) { + workInProgress.updateQueue = current.updateQueue; + workInProgress.effectTag &= ~(Passive | Update); + if (current.expirationTime <= expirationTime) { + current.expirationTime = NoWork; + } +} + +function resetHooks() { + // We can assume the previous dispatcher is always this one, since we set it + // at the beginning of the render phase and there's no re-entrancy. + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + + // This is used to reset the state of this module when a component throws. + // It's also called inside mountIndeterminateComponent if we determine the + // component is a module-style component. + renderExpirationTime = NoWork; + currentlyRenderingFiber$1 = null; + + currentHook = null; + nextCurrentHook = null; + firstWorkInProgressHook = null; + workInProgressHook = null; + nextWorkInProgressHook = null; + + { + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + + currentHookNameInDev = null; + } + + remainingExpirationTime = NoWork; + componentUpdateQueue = null; + sideEffectTag = 0; + + didScheduleRenderPhaseUpdate = false; + renderPhaseUpdates = null; + numberOfReRenders = 0; +} + +function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + + baseState: null, + queue: null, + baseUpdate: null, + + next: null + }; + + if (workInProgressHook === null) { + // This is the first hook in the list + firstWorkInProgressHook = workInProgressHook = hook; + } else { + // Append to the end of the list + workInProgressHook = workInProgressHook.next = hook; + } + return workInProgressHook; +} + +function updateWorkInProgressHook() { + // This function is used both for updates and for re-renders triggered by a + // render phase update. It assumes there is either a current hook we can + // clone, or a work-in-progress hook from a previous render pass that we can + // use as a base. When we reach the end of the base list, we must switch to + // the dispatcher used for mounts. + if (nextWorkInProgressHook !== null) { + // There's already a work-in-progress. Reuse it. + workInProgressHook = nextWorkInProgressHook; + nextWorkInProgressHook = workInProgressHook.next; + + currentHook = nextCurrentHook; + nextCurrentHook = currentHook !== null ? currentHook.next : null; + } else { + // Clone from the current hook. + !(nextCurrentHook !== null) ? invariant(false, 'Rendered more hooks than during the previous render.') : void 0; + currentHook = nextCurrentHook; + + var newHook = { + memoizedState: currentHook.memoizedState, + + baseState: currentHook.baseState, + queue: currentHook.queue, + baseUpdate: currentHook.baseUpdate, + + next: null + }; + + if (workInProgressHook === null) { + // This is the first hook in the list. + workInProgressHook = firstWorkInProgressHook = newHook; + } else { + // Append to the end of the list. + workInProgressHook = workInProgressHook.next = newHook; + } + nextCurrentHook = currentHook.next; + } + return workInProgressHook; +} + +function createFunctionComponentUpdateQueue() { + return { + lastEffect: null + }; +} + +function basicStateReducer(state, action) { + return typeof action === 'function' ? action(state) : action; +} + +function mountReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + var initialState = void 0; + if (init !== undefined) { + initialState = init(initialArg); + } else { + initialState = initialArg; + } + hook.memoizedState = hook.baseState = initialState; + var queue = hook.queue = { + last: null, + dispatch: null, + eagerReducer: reducer, + eagerState: initialState + }; + var dispatch = queue.dispatch = dispatchAction.bind(null, + // Flow doesn't know this is non-null, but we do. + currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; +} + +function updateReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + !(queue !== null) ? invariant(false, 'Should have a queue. This is likely a bug in React. Please file an issue.') : void 0; + + if (numberOfReRenders > 0) { + // This is a re-render. Apply the new render phase updates to the previous + var _dispatch = queue.dispatch; + if (renderPhaseUpdates !== null) { + // Render phase updates are stored in a map of queue -> linked list + var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); + if (firstRenderPhaseUpdate !== undefined) { + renderPhaseUpdates.delete(queue); + var newState = hook.memoizedState; + var update = firstRenderPhaseUpdate; + do { + // Process this render phase update. We don't have to check the + // priority because it will always be the same as the current + // render's. + var _action = update.action; + newState = reducer(newState, _action); + update = update.next; + } while (update !== null); + + // Mark that the fiber performed work, but only if the new state is + // different from the current state. + if (!is(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + + hook.memoizedState = newState; + // Don't persist the state accumlated from the render phase updates to + // the base state unless the queue is empty. + // TODO: Not sure if this is the desired semantics, but it's what we + // do for gDSFP. I can't remember why. + if (hook.baseUpdate === queue.last) { + hook.baseState = newState; + } + + queue.eagerReducer = reducer; + queue.eagerState = newState; + + return [newState, _dispatch]; + } + } + return [hook.memoizedState, _dispatch]; + } + + // The last update in the entire queue + var last = queue.last; + // The last update that is part of the base state. + var baseUpdate = hook.baseUpdate; + var baseState = hook.baseState; + + // Find the first unprocessed update. + var first = void 0; + if (baseUpdate !== null) { + if (last !== null) { + // For the first update, the queue is a circular linked list where + // `queue.last.next = queue.first`. Once the first update commits, and + // the `baseUpdate` is no longer empty, we can unravel the list. + last.next = null; + } + first = baseUpdate.next; + } else { + first = last !== null ? last.next : null; + } + if (first !== null) { + var _newState = baseState; + var newBaseState = null; + var newBaseUpdate = null; + var prevUpdate = baseUpdate; + var _update = first; + var didSkip = false; + do { + var updateExpirationTime = _update.expirationTime; + if (updateExpirationTime < renderExpirationTime) { + // Priority is insufficient. Skip this update. If this is the first + // skipped update, the previous update/state is the new base + // update/state. + if (!didSkip) { + didSkip = true; + newBaseUpdate = prevUpdate; + newBaseState = _newState; + } + // Update the remaining priority in the queue. + if (updateExpirationTime > remainingExpirationTime) { + remainingExpirationTime = updateExpirationTime; + } + } else { + // Process this update. + if (_update.eagerReducer === reducer) { + // If this update was processed eagerly, and its reducer matches the + // current reducer, we can use the eagerly computed state. + _newState = _update.eagerState; + } else { + var _action2 = _update.action; + _newState = reducer(_newState, _action2); + } + } + prevUpdate = _update; + _update = _update.next; + } while (_update !== null && _update !== first); + + if (!didSkip) { + newBaseUpdate = prevUpdate; + newBaseState = _newState; + } + + // Mark that the fiber performed work, but only if the new state is + // different from the current state. + if (!is(_newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + + hook.memoizedState = _newState; + hook.baseUpdate = newBaseUpdate; + hook.baseState = newBaseState; + + queue.eagerReducer = reducer; + queue.eagerState = _newState; + } + + var dispatch = queue.dispatch; + return [hook.memoizedState, dispatch]; +} + +function mountState(initialState) { + var hook = mountWorkInProgressHook(); + if (typeof initialState === 'function') { + initialState = initialState(); + } + hook.memoizedState = hook.baseState = initialState; + var queue = hook.queue = { + last: null, + dispatch: null, + eagerReducer: basicStateReducer, + eagerState: initialState + }; + var dispatch = queue.dispatch = dispatchAction.bind(null, + // Flow doesn't know this is non-null, but we do. + currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; +} + +function updateState(initialState) { + return updateReducer(basicStateReducer, initialState); +} + +function pushEffect(tag, create, destroy, deps) { + var effect = { + tag: tag, + create: create, + destroy: destroy, + deps: deps, + // Circular + next: null + }; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var _lastEffect = componentUpdateQueue.lastEffect; + if (_lastEffect === null) { + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var firstEffect = _lastEffect.next; + _lastEffect.next = effect; + effect.next = firstEffect; + componentUpdateQueue.lastEffect = effect; + } + } + return effect; +} + +function mountRef(initialValue) { + var hook = mountWorkInProgressHook(); + var ref = { current: initialValue }; + { + Object.seal(ref); + } + hook.memoizedState = ref; + return ref; +} + +function updateRef(initialValue) { + var hook = updateWorkInProgressHook(); + return hook.memoizedState; +} + +function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + sideEffectTag |= fiberEffectTag; + hook.memoizedState = pushEffect(hookEffectTag, create, undefined, nextDeps); +} + +function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var destroy = undefined; + + if (currentHook !== null) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (nextDeps !== null) { + var prevDeps = prevEffect.deps; + if (areHookInputsEqual(nextDeps, prevDeps)) { + pushEffect(NoEffect$1, create, destroy, nextDeps); + return; + } + } + } + + sideEffectTag |= fiberEffectTag; + hook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextDeps); +} + +function mountEffect(create, deps) { + return mountEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps); +} + +function updateEffect(create, deps) { + return updateEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps); +} + +function mountLayoutEffect(create, deps) { + return mountEffectImpl(Update, UnmountMutation | MountLayout, create, deps); +} + +function updateLayoutEffect(create, deps) { + return updateEffectImpl(Update, UnmountMutation | MountLayout, create, deps); +} + +function imperativeHandleEffect(create, ref) { + if (typeof ref === 'function') { + var refCallback = ref; + var _inst = create(); + refCallback(_inst); + return function () { + refCallback(null); + }; + } else if (ref !== null && ref !== undefined) { + var refObject = ref; + { + !refObject.hasOwnProperty('current') ? warning$1(false, 'Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}') : void 0; + } + var _inst2 = create(); + refObject.current = _inst2; + return function () { + refObject.current = null; + }; + } +} + +function mountImperativeHandle(ref, create, deps) { + { + !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0; + } + + // TODO: If deps are provided, should we skip comparing the ref itself? + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + + return mountEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps); +} + +function updateImperativeHandle(ref, create, deps) { + { + !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0; + } + + // TODO: If deps are provided, should we skip comparing the ref itself? + var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null; + + return updateEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps); +} + +function mountDebugValue(value, formatterFn) { + // This hook is normally a no-op. + // The react-debug-hooks package injects its own implementation + // so that e.g. DevTools can display custom hook values. +} + +var updateDebugValue = mountDebugValue; + +function mountCallback(callback, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + hook.memoizedState = [callback, nextDeps]; + return callback; +} + +function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + hook.memoizedState = [callback, nextDeps]; + return callback; +} + +function mountMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; +} + +function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === undefined ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + // Assume these are defined. If they're not, areHookInputsEqual will warn. + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; +} + +// in a test-like environment, we want to warn if dispatchAction() +// is called outside of a batchedUpdates/TestUtils.act(...) call. +var shouldWarnForUnbatchedSetState = false; + +{ + // jest isn't a 'global', it's just exposed to tests via a wrapped function + // further, this isn't a test file, so flow doesn't recognize the symbol. So... + // $FlowExpectedError - because requirements don't give a damn about your type sigs. + if ('undefined' !== typeof jest) { + shouldWarnForUnbatchedSetState = true; + } +} + +function dispatchAction(fiber, queue, action) { + !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0; + + { + !(arguments.length <= 3) ? warning$1(false, "State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().') : void 0; + } + + var alternate = fiber.alternate; + if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) { + // This is a render phase update. Stash it in a lazily-created map of + // queue -> linked list of updates. After this render pass, we'll restart + // and apply the stashed updates on top of the work-in-progress hook. + didScheduleRenderPhaseUpdate = true; + var update = { + expirationTime: renderExpirationTime, + action: action, + eagerReducer: null, + eagerState: null, + next: null + }; + if (renderPhaseUpdates === null) { + renderPhaseUpdates = new Map(); + } + var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); + if (firstRenderPhaseUpdate === undefined) { + renderPhaseUpdates.set(queue, update); + } else { + // Append the update to the end of the list. + var lastRenderPhaseUpdate = firstRenderPhaseUpdate; + while (lastRenderPhaseUpdate.next !== null) { + lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + } + lastRenderPhaseUpdate.next = update; + } + } else { + flushPassiveEffects(); + + var currentTime = requestCurrentTime(); + var _expirationTime = computeExpirationForFiber(currentTime, fiber); + + var _update2 = { + expirationTime: _expirationTime, + action: action, + eagerReducer: null, + eagerState: null, + next: null + }; + + // Append the update to the end of the list. + var _last = queue.last; + if (_last === null) { + // This is the first update. Create a circular list. + _update2.next = _update2; + } else { + var first = _last.next; + if (first !== null) { + // Still circular. + _update2.next = first; + } + _last.next = _update2; + } + queue.last = _update2; + + if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) { + // The queue is currently empty, which means we can eagerly compute the + // next state before entering the render phase. If the new state is the + // same as the current state, we may be able to bail out entirely. + var _eagerReducer = queue.eagerReducer; + if (_eagerReducer !== null) { + var prevDispatcher = void 0; + { + prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + } + try { + var currentState = queue.eagerState; + var _eagerState = _eagerReducer(currentState, action); + // Stash the eagerly computed state, and the reducer used to compute + // it, on the update object. If the reducer hasn't changed by the + // time we enter the render phase, then the eager state can be used + // without calling the reducer again. + _update2.eagerReducer = _eagerReducer; + _update2.eagerState = _eagerState; + if (is(_eagerState, currentState)) { + // Fast path. We can bail out without scheduling React to re-render. + // It's still possible that we'll need to rebase this update later, + // if the component re-renders for a different reason and by that + // time the reducer has changed. + return; + } + } catch (error) { + // Suppress the error. It will throw again in the render phase. + } finally { + { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + } + } + } + { + if (shouldWarnForUnbatchedSetState === true) { + warnIfNotCurrentlyBatchingInDev(fiber); + } + } + scheduleWork(fiber, _expirationTime); + } +} + +var ContextOnlyDispatcher = { + readContext: readContext, + + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError +}; + +var HooksDispatcherOnMountInDEV = null; +var HooksDispatcherOnMountWithHookTypesInDEV = null; +var HooksDispatcherOnUpdateInDEV = null; +var InvalidNestedHooksDispatcherOnMountInDEV = null; +var InvalidNestedHooksDispatcherOnUpdateInDEV = null; + +{ + var warnInvalidContextAccess = function () { + warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().'); + }; + + var warnInvalidHookAccess = function () { + warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks'); + }; + + HooksDispatcherOnMountInDEV = { + readContext: function (context, observedBits) { + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + mountHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + mountHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + mountHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + mountHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + mountHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + mountHookTypesDev(); + return mountDebugValue(value, formatterFn); + } + }; + + HooksDispatcherOnMountWithHookTypesInDEV = { + readContext: function (context, observedBits) { + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + updateHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + updateHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + updateHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + updateHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + updateHookTypesDev(); + return mountRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + updateHookTypesDev(); + return mountDebugValue(value, formatterFn); + } + }; + + HooksDispatcherOnUpdateInDEV = { + readContext: function (context, observedBits) { + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + updateHookTypesDev(); + return updateRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + updateHookTypesDev(); + return updateDebugValue(value, formatterFn); + } + }; + + InvalidNestedHooksDispatcherOnMountInDEV = { + readContext: function (context, observedBits) { + warnInvalidContextAccess(); + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDebugValue(value, formatterFn); + } + }; + + InvalidNestedHooksDispatcherOnUpdateInDEV = { + readContext: function (context, observedBits) { + warnInvalidContextAccess(); + return readContext(context, observedBits); + }, + useCallback: function (callback, deps) { + currentHookNameInDev = 'useCallback'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function (context, observedBits) { + currentHookNameInDev = 'useContext'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return readContext(context, observedBits); + }, + useEffect: function (create, deps) { + currentHookNameInDev = 'useEffect'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create, deps); + }, + useImperativeHandle: function (ref, create, deps) { + currentHookNameInDev = 'useImperativeHandle'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create, deps); + }, + useLayoutEffect: function (create, deps) { + currentHookNameInDev = 'useLayoutEffect'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create, deps); + }, + useMemo: function (create, deps) { + currentHookNameInDev = 'useMemo'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function (reducer, initialArg, init) { + currentHookNameInDev = 'useReducer'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function (initialValue) { + currentHookNameInDev = 'useRef'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(initialValue); + }, + useState: function (initialState) { + currentHookNameInDev = 'useState'; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function (value, formatterFn) { + currentHookNameInDev = 'useDebugValue'; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(value, formatterFn); + } + }; +} + +var commitTime = 0; +var profilerStartTime = -1; + +function getCommitTime() { + return commitTime; +} + +function recordCommitTime() { + if (!enableProfilerTimer) { + return; + } + commitTime = unstable_now(); +} + +function startProfilerTimer(fiber) { + if (!enableProfilerTimer) { + return; + } + + profilerStartTime = unstable_now(); + + if (fiber.actualStartTime < 0) { + fiber.actualStartTime = unstable_now(); + } +} + +function stopProfilerTimerIfRunning(fiber) { + if (!enableProfilerTimer) { + return; + } + profilerStartTime = -1; +} + +function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { + if (!enableProfilerTimer) { + return; + } + + if (profilerStartTime >= 0) { + var elapsedTime = unstable_now() - profilerStartTime; + fiber.actualDuration += elapsedTime; + if (overrideBaseTime) { + fiber.selfBaseDuration = elapsedTime; + } + profilerStartTime = -1; + } +} + // The deepest Fiber on the stack involved in a hydration context. // This may have been an insertion or a hydration. var hydrationParentFiber = null; @@ -13933,6 +14178,18 @@ function enterHydrationState(fiber) { return true; } +function reenterHydrationStateFromDehydratedSuspenseInstance(fiber) { + if (!supportsHydration) { + return false; + } + + var suspenseInstance = fiber.stateNode; + nextHydratableInstance = getNextHydratableSibling(suspenseInstance); + popToNextHostParent(fiber); + isHydrating = true; + return true; +} + function deleteHydratableInstance(returnFiber, instance) { { switch (returnFiber.tag) { @@ -13979,6 +14236,9 @@ function insertNonHydratedInstance(returnFiber, fiber) { case HostText: var text = fiber.pendingProps; didNotFindHydratableContainerTextInstance(parentContainer, text); + break; + case SuspenseComponent: + break; } break; @@ -13998,6 +14258,9 @@ function insertNonHydratedInstance(returnFiber, fiber) { var _text = fiber.pendingProps; didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text); break; + case SuspenseComponent: + didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance); + break; } break; } @@ -14030,6 +14293,19 @@ function tryHydrate(fiber, nextInstance) { } return false; } + case SuspenseComponent: + { + if (enableSuspenseServerRenderer) { + var suspenseInstance = canHydrateSuspenseInstance(nextInstance); + if (suspenseInstance !== null) { + // Downgrade the tag to a dehydrated component until we've hydrated it. + fiber.tag = DehydratedSuspenseComponent; + fiber.stateNode = suspenseInstance; + return true; + } + } + return false; + } default: return false; } @@ -14123,9 +14399,18 @@ function prepareToHydrateHostTextInstance(fiber) { return shouldUpdate; } +function skipPastDehydratedSuspenseInstance(fiber) { + if (!supportsHydration) { + invariant(false, 'Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'); + } + var suspenseInstance = fiber.stateNode; + !suspenseInstance ? invariant(false, 'Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.') : void 0; + nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance); +} + function popToNextHostParent(fiber) { var parent = fiber.return; - while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) { + while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== DehydratedSuspenseComponent) { parent = parent.return; } hydrationParentFiber = parent; @@ -14181,16 +14466,20 @@ function resetHydrationState() { var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner; +var didReceiveUpdate = false; + var didWarnAboutBadClass = void 0; var didWarnAboutContextTypeOnFunctionComponent = void 0; var didWarnAboutGetDerivedStateOnFunctionComponent = void 0; var didWarnAboutFunctionRefs = void 0; +var didWarnAboutReassigningProps = void 0; { didWarnAboutBadClass = {}; didWarnAboutContextTypeOnFunctionComponent = {}; didWarnAboutGetDerivedStateOnFunctionComponent = {}; didWarnAboutFunctionRefs = {}; + didWarnAboutReassigningProps = false; } function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) { @@ -14229,20 +14518,45 @@ function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildre } function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens after the first render suspends. + // We'll need to figure out if this is fine or can cause issues. + + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } + var render = Component.render; var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent var nextChildren = void 0; prepareToReadContext(workInProgress, renderExpirationTime); - prepareToUseHooks(current$$1, workInProgress, renderExpirationTime); { ReactCurrentOwner$3.current = workInProgress; setCurrentPhase('render'); - nextChildren = render(nextProps, ref); + nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime); + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + // Only double-render components with Hooks + if (workInProgress.memoizedState !== null) { + nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime); + } + } setCurrentPhase(null); } - nextChildren = finishHooks(render, nextProps, nextChildren, ref); + + if (current$$1 !== null && !didReceiveUpdate) { + bailoutHooks(current$$1, workInProgress, renderExpirationTime); + return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime); + } // React DevTools reads this flag. workInProgress.effectTag |= PerformedWork; @@ -14253,20 +14567,44 @@ function updateForwardRef(current$$1, workInProgress, Component, nextProps, rend function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) { if (current$$1 === null) { var type = Component.type; - if (isSimpleFunctionComponent(type) && Component.compare === null) { + if (isSimpleFunctionComponent(type) && Component.compare === null && + // SimpleMemoComponent codepath doesn't resolve outer props either. + Component.defaultProps === undefined) { // If this is a plain function component without default props, // and with only the default shallow comparison, we upgrade it // to a SimpleMemoComponent to allow fast path updates. workInProgress.tag = SimpleMemoComponent; workInProgress.type = type; + { + validateFunctionComponentInDev(workInProgress, type); + } return updateSimpleMemoComponent(current$$1, workInProgress, type, nextProps, updateExpirationTime, renderExpirationTime); } + { + var innerPropTypes = type.propTypes; + if (innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(type), getCurrentFiberStackInDev); + } + } var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime); child.ref = workInProgress.ref; child.return = workInProgress; workInProgress.child = child; return child; } + { + var _type = Component.type; + var _innerPropTypes = _type.propTypes; + if (_innerPropTypes) { + // Inner memo component props aren't currently validated in createElement. + // We could move it there, but we'd still need this for lazy code path. + checkPropTypes_1(_innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(_type), getCurrentFiberStackInDev); + } + } var currentChild = current$$1.child; // This is always exactly one child if (updateExpirationTime < renderExpirationTime) { // This will be the props with resolved defaultProps, @@ -14289,10 +14627,36 @@ function updateMemoComponent(current$$1, workInProgress, Component, nextProps, u } function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) { - if (current$$1 !== null && updateExpirationTime < renderExpirationTime) { + // TODO: current can be non-null here even if the component + // hasn't yet mounted. This happens when the inner render suspends. + // We'll need to figure out if this is fine or can cause issues. + + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var outerMemoType = workInProgress.elementType; + if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { + // We warn when you define propTypes on lazy() + // so let's just skip over it to find memo() outer wrapper. + // Inner props for memo are validated later. + outerMemoType = refineResolvedLazyComponent(outerMemoType); + } + var outerPropTypes = outerMemoType && outerMemoType.propTypes; + if (outerPropTypes) { + checkPropTypes_1(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps) + 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev); + } + // Inner propTypes will be validated in the function component path. + } + } + if (current$$1 !== null) { var prevProps = current$$1.memoizedProps; if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref) { - return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime); + didReceiveUpdate = false; + if (updateExpirationTime < renderExpirationTime) { + return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime); + } } } return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime); @@ -14329,19 +14693,40 @@ function markRef(current$$1, workInProgress) { } function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) { + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } + var unmaskedContext = getUnmaskedContext(workInProgress, Component, true); var context = getMaskedContext(workInProgress, unmaskedContext); var nextChildren = void 0; prepareToReadContext(workInProgress, renderExpirationTime); - prepareToUseHooks(current$$1, workInProgress, renderExpirationTime); { ReactCurrentOwner$3.current = workInProgress; setCurrentPhase('render'); - nextChildren = Component(nextProps, context); + nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime); + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + // Only double-render components with Hooks + if (workInProgress.memoizedState !== null) { + nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime); + } + } setCurrentPhase(null); } - nextChildren = finishHooks(Component, nextProps, nextChildren, context); + + if (current$$1 !== null && !didReceiveUpdate) { + bailoutHooks(current$$1, workInProgress, renderExpirationTime); + return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime); + } // React DevTools reads this flag. workInProgress.effectTag |= PerformedWork; @@ -14350,6 +14735,18 @@ function updateFunctionComponent(current$$1, workInProgress, Component, nextProp } function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) { + { + if (workInProgress.type !== workInProgress.elementType) { + // Lazy component props can't be validated in createElement + // because they're only guaranteed to be resolved here. + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes_1(innerPropTypes, nextProps, // Resolved props + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } + // Push context providers early to prevent context stack mismatches. // During mounting we don't know the child context yet as the instance doesn't exist. // We will invalidate the child context in finishClassComponent() right after rendering. @@ -14385,7 +14782,15 @@ function updateClassComponent(current$$1, workInProgress, Component, nextProps, } else { shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime); } - return finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime); + var nextUnitOfWork = finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime); + { + var inst = workInProgress.stateNode; + if (inst.props !== nextProps) { + !didWarnAboutReassigningProps ? warning$1(false, 'It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component') : void 0; + didWarnAboutReassigningProps = true; + } + } + return nextUnitOfWork; } function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) { @@ -14540,7 +14945,7 @@ function updateHostComponent(current$$1, workInProgress, renderExpirationTime) { // Check the host config to see if the children are offscreen/hidden. if (renderExpirationTime !== Never && workInProgress.mode & ConcurrentMode && shouldDeprioritizeSubtree(type, nextProps)) { // Schedule this fiber to re-render at offscreen priority. Then bailout. - workInProgress.expirationTime = Never; + workInProgress.expirationTime = workInProgress.childExpirationTime = Never; return null; } @@ -14583,6 +14988,9 @@ function mountLazyComponent(_current, workInProgress, elementType, updateExpirat switch (resolvedTag) { case FunctionComponent: { + { + validateFunctionComponentInDev(workInProgress, Component); + } child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime); break; } @@ -14598,16 +15006,31 @@ function mountLazyComponent(_current, workInProgress, elementType, updateExpirat } case MemoComponent: { + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = Component.propTypes; + if (outerPropTypes) { + checkPropTypes_1(outerPropTypes, resolvedProps, // Resolved for outer only + 'prop', getComponentName(Component), getCurrentFiberStackInDev); + } + } + } child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too updateExpirationTime, renderExpirationTime); break; } default: { + var hint = ''; + { + if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) { + hint = ' Did you wrap a component in React.lazy() more than once?'; + } + } // This message intentionally doesn't mention ForwardRef or MemoComponent // because the fact that it's a separate type of work is an // implementation detail. - invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.', Component); + invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Lazy element type must resolve to a class or function.%s', Component, hint); } } return child; @@ -14665,7 +15088,6 @@ function mountIndeterminateComponent(_current, workInProgress, Component, render var context = getMaskedContext(workInProgress, unmaskedContext); prepareToReadContext(workInProgress, renderExpirationTime); - prepareToUseHooks(null, workInProgress, renderExpirationTime); var value = void 0; @@ -14684,7 +15106,7 @@ function mountIndeterminateComponent(_current, workInProgress, Component, render } ReactCurrentOwner$3.current = workInProgress; - value = Component(props, context); + value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime); } // React DevTools reads this flag. workInProgress.effectTag |= PerformedWork; @@ -14720,52 +15142,63 @@ function mountIndeterminateComponent(_current, workInProgress, Component, render } else { // Proceed under the assumption that this is a function component workInProgress.tag = FunctionComponent; - value = finishHooks(Component, props, value, context); { - if (Component) { - !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0; - } - if (workInProgress.ref !== null) { - var info = ''; - var ownerName = getCurrentFiberOwnerNameInDevOrNull(); - if (ownerName) { - info += '\n\nCheck the render method of `' + ownerName + '`.'; - } - - var warningKey = ownerName || workInProgress._debugID || ''; - var debugSource = workInProgress._debugSource; - if (debugSource) { - warningKey = debugSource.fileName + ':' + debugSource.lineNumber; - } - if (!didWarnAboutFunctionRefs[warningKey]) { - didWarnAboutFunctionRefs[warningKey] = true; - warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s', info); - } - } - - if (typeof Component.getDerivedStateFromProps === 'function') { - var _componentName = getComponentName(Component) || 'Unknown'; - - if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName]) { - warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName] = true; - } - } - - if (typeof Component.contextType === 'object' && Component.contextType !== null) { - var _componentName2 = getComponentName(Component) || 'Unknown'; - - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName2]) { - warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName2); - didWarnAboutContextTypeOnFunctionComponent[_componentName2] = true; + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + // Only double-render components with Hooks + if (workInProgress.memoizedState !== null) { + value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime); } } } reconcileChildren(null, workInProgress, value, renderExpirationTime); + { + validateFunctionComponentInDev(workInProgress, Component); + } return workInProgress.child; } } +function validateFunctionComponentInDev(workInProgress, Component) { + if (Component) { + !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0; + } + if (workInProgress.ref !== null) { + var info = ''; + var ownerName = getCurrentFiberOwnerNameInDevOrNull(); + if (ownerName) { + info += '\n\nCheck the render method of `' + ownerName + '`.'; + } + + var warningKey = ownerName || workInProgress._debugID || ''; + var debugSource = workInProgress._debugSource; + if (debugSource) { + warningKey = debugSource.fileName + ':' + debugSource.lineNumber; + } + if (!didWarnAboutFunctionRefs[warningKey]) { + didWarnAboutFunctionRefs[warningKey] = true; + warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info); + } + } + + if (typeof Component.getDerivedStateFromProps === 'function') { + var componentName = getComponentName(Component) || 'Unknown'; + + if (!didWarnAboutGetDerivedStateOnFunctionComponent[componentName]) { + warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', componentName); + didWarnAboutGetDerivedStateOnFunctionComponent[componentName] = true; + } + } + + if (typeof Component.contextType === 'object' && Component.contextType !== null) { + var _componentName = getComponentName(Component) || 'Unknown'; + + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName]) { + warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName); + didWarnAboutContextTypeOnFunctionComponent[_componentName] = true; + } + } +} + function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) { var mode = workInProgress.mode; var nextProps = workInProgress.pendingProps; @@ -14821,6 +15254,18 @@ function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTim // children -- we skip over the primary children entirely. var next = void 0; if (current$$1 === null) { + if (enableSuspenseServerRenderer) { + // If we're currently hydrating, try to hydrate this boundary. + // But only if this has a fallback. + if (nextProps.fallback !== undefined) { + tryToClaimNextHydratableInstance(workInProgress); + // This could've changed the tag if this was a dehydrated suspense component. + if (workInProgress.tag === DehydratedSuspenseComponent) { + return updateDehydratedSuspenseComponent(null, workInProgress, renderExpirationTime); + } + } + } + // This is the initial mount. This branch is pretty simple because there's // no previous state that needs to be preserved. if (nextDidTimeout) { @@ -14964,6 +15409,7 @@ function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTim next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime); } } + workInProgress.stateNode = current$$1.stateNode; } workInProgress.memoizedState = nextState; @@ -14971,6 +15417,65 @@ function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTim return next; } +function updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime) { + if (current$$1 === null) { + // During the first pass, we'll bail out and not drill into the children. + // Instead, we'll leave the content in place and try to hydrate it later. + workInProgress.expirationTime = Never; + return null; + } + // We use childExpirationTime to indicate that a child might depend on context, so if + // any context has changed, we need to treat is as if the input might have changed. + var hasContextChanged$$1 = current$$1.childExpirationTime >= renderExpirationTime; + if (didReceiveUpdate || hasContextChanged$$1) { + // This boundary has changed since the first render. This means that we are now unable to + // hydrate it. We might still be able to hydrate it using an earlier expiration time but + // during this render we can't. Instead, we're going to delete the whole subtree and + // instead inject a new real Suspense boundary to take its place, which may render content + // or fallback. The real Suspense boundary will suspend for a while so we have some time + // to ensure it can produce real content, but all state and pending events will be lost. + + // Detach from the current dehydrated boundary. + current$$1.alternate = null; + workInProgress.alternate = null; + + // Insert a deletion in the effect list. + var returnFiber = workInProgress.return; + !(returnFiber !== null) ? invariant(false, 'Suspense boundaries are never on the root. This is probably a bug in React.') : void 0; + var last = returnFiber.lastEffect; + if (last !== null) { + last.nextEffect = current$$1; + returnFiber.lastEffect = current$$1; + } else { + returnFiber.firstEffect = returnFiber.lastEffect = current$$1; + } + current$$1.nextEffect = null; + current$$1.effectTag = Deletion; + + // Upgrade this work in progress to a real Suspense component. + workInProgress.tag = SuspenseComponent; + workInProgress.stateNode = null; + workInProgress.memoizedState = null; + // This is now an insertion. + workInProgress.effectTag |= Placement; + // Retry as a real Suspense component. + return updateSuspenseComponent(null, workInProgress, renderExpirationTime); + } + if ((workInProgress.effectTag & DidCapture) === NoEffect) { + // This is the first attempt. + reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress); + var nextProps = workInProgress.pendingProps; + var nextChildren = nextProps.children; + workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); + return workInProgress.child; + } else { + // Something suspended. Leave the existing children in place. + // TODO: In non-concurrent mode, should we commit the nodes we have hydrated so far? + workInProgress.child = null; + return null; + } +} + function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) { pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); var nextChildren = workInProgress.pendingProps; @@ -15075,12 +15580,16 @@ function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) return workInProgress.child; } +function markWorkInProgressReceivedUpdate() { + didReceiveUpdate = true; +} + function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) { cancelWorkTimer(workInProgress); if (current$$1 !== null) { // Reuse previous context list - workInProgress.firstContextDependency = current$$1.firstContextDependency; + workInProgress.contextDependencies = current$$1.contextDependencies; } if (enableProfilerTimer) { @@ -15109,7 +15618,13 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) { if (current$$1 !== null) { var oldProps = current$$1.memoizedProps; var newProps = workInProgress.pendingProps; - if (oldProps === newProps && !hasContextChanged() && updateExpirationTime < renderExpirationTime) { + + if (oldProps !== newProps || hasContextChanged()) { + // If props or context changed, mark the fiber as having performed work. + // This may be unset if the props are determined to be equal later (memo). + didReceiveUpdate = true; + } else if (updateExpirationTime < renderExpirationTime) { + didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering // the begin phase. There's still some bookkeeping we that needs to be done // in this optimized path, mostly pushing stuff onto the stack. @@ -15172,9 +15687,21 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) { } break; } + case DehydratedSuspenseComponent: + { + if (enableSuspenseServerRenderer) { + // We know that this component will suspend again because if it has + // been unsuspended it has committed as a regular Suspense component. + // If it needs to be retried, it should have work scheduled on it. + workInProgress.effectTag |= DidCapture; + break; + } + } } return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime); } + } else { + didReceiveUpdate = false; } // Before entering the begin phase, clear the expiration time. @@ -15234,10 +15761,21 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) { return updateContextConsumer(current$$1, workInProgress, renderExpirationTime); case MemoComponent: { - var _type = workInProgress.type; + var _type2 = workInProgress.type; var _unresolvedProps3 = workInProgress.pendingProps; - var _resolvedProps3 = resolveDefaultProps(_type.type, _unresolvedProps3); - return updateMemoComponent(current$$1, workInProgress, _type, _resolvedProps3, updateExpirationTime, renderExpirationTime); + // Resolve outer props first, then resolve inner props. + var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); + { + if (workInProgress.type !== workInProgress.elementType) { + var outerPropTypes = _type2.propTypes; + if (outerPropTypes) { + checkPropTypes_1(outerPropTypes, _resolvedProps3, // Resolved for outer only + 'prop', getComponentName(_type2), getCurrentFiberStackInDev); + } + } + } + _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3); + return updateMemoComponent(current$$1, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime); } case SimpleMemoComponent: { @@ -15250,9 +15788,790 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) { var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4); return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime); } - default: - invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'); + case DehydratedSuspenseComponent: + { + if (enableSuspenseServerRenderer) { + return updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime); + } + break; + } } + invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'); +} + +var valueCursor = createCursor(null); + +var rendererSigil = void 0; +{ + // Use this to detect multiple renderers using the same context + rendererSigil = {}; +} + +var currentlyRenderingFiber = null; +var lastContextDependency = null; +var lastContextWithAllBitsObserved = null; + +var isDisallowedContextReadInDEV = false; + +function resetContextDependences() { + // This is called right before React yields execution, to ensure `readContext` + // cannot be called outside the render phase. + currentlyRenderingFiber = null; + lastContextDependency = null; + lastContextWithAllBitsObserved = null; + { + isDisallowedContextReadInDEV = false; + } +} + +function enterDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = true; + } +} + +function exitDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = false; + } +} + +function pushProvider(providerFiber, nextValue) { + var context = providerFiber.type._context; + + if (isPrimaryRenderer) { + push(valueCursor, context._currentValue, providerFiber); + + context._currentValue = nextValue; + { + !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0; + context._currentRenderer = rendererSigil; + } + } else { + push(valueCursor, context._currentValue2, providerFiber); + + context._currentValue2 = nextValue; + { + !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0; + context._currentRenderer2 = rendererSigil; + } + } +} + +function popProvider(providerFiber) { + var currentValue = valueCursor.current; + + pop(valueCursor, providerFiber); + + var context = providerFiber.type._context; + if (isPrimaryRenderer) { + context._currentValue = currentValue; + } else { + context._currentValue2 = currentValue; + } +} + +function calculateChangedBits(context, newValue, oldValue) { + if (is(oldValue, newValue)) { + // No change + return 0; + } else { + var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt; + + { + !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0; + } + return changedBits | 0; + } +} + +function scheduleWorkOnParentPath(parent, renderExpirationTime) { + // Update the child expiration time of all the ancestors, including + // the alternates. + var node = parent; + while (node !== null) { + var alternate = node.alternate; + if (node.childExpirationTime < renderExpirationTime) { + node.childExpirationTime = renderExpirationTime; + if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) { + alternate.childExpirationTime = renderExpirationTime; + } + } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) { + alternate.childExpirationTime = renderExpirationTime; + } else { + // Neither alternate was updated, which means the rest of the + // ancestor path already has sufficient priority. + break; + } + node = node.return; + } +} + +function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { + var fiber = workInProgress.child; + if (fiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. + fiber.return = workInProgress; + } + while (fiber !== null) { + var nextFiber = void 0; + + // Visit this fiber. + var list = fiber.contextDependencies; + if (list !== null) { + nextFiber = fiber.child; + + var dependency = list.first; + while (dependency !== null) { + // Check if the context matches. + if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) { + // Match! Schedule an update on this fiber. + + if (fiber.tag === ClassComponent) { + // Schedule a force update on the work-in-progress. + var update = createUpdate(renderExpirationTime); + update.tag = ForceUpdate; + // TODO: Because we don't have a work-in-progress, this will add the + // update to the current fiber, too, which means it will persist even if + // this render is thrown away. Since it's a race condition, not sure it's + // worth fixing. + enqueueUpdate(fiber, update); + } + + if (fiber.expirationTime < renderExpirationTime) { + fiber.expirationTime = renderExpirationTime; + } + var alternate = fiber.alternate; + if (alternate !== null && alternate.expirationTime < renderExpirationTime) { + alternate.expirationTime = renderExpirationTime; + } + + scheduleWorkOnParentPath(fiber.return, renderExpirationTime); + + // Mark the expiration time on the list, too. + if (list.expirationTime < renderExpirationTime) { + list.expirationTime = renderExpirationTime; + } + + // Since we already found a match, we can stop traversing the + // dependency list. + break; + } + dependency = dependency.next; + } + } else if (fiber.tag === ContextProvider) { + // Don't scan deeper if this is a matching provider + nextFiber = fiber.type === workInProgress.type ? null : fiber.child; + } else if (enableSuspenseServerRenderer && fiber.tag === DehydratedSuspenseComponent) { + // If a dehydrated suspense component is in this subtree, we don't know + // if it will have any context consumers in it. The best we can do is + // mark it as having updates on its children. + if (fiber.expirationTime < renderExpirationTime) { + fiber.expirationTime = renderExpirationTime; + } + var _alternate = fiber.alternate; + if (_alternate !== null && _alternate.expirationTime < renderExpirationTime) { + _alternate.expirationTime = renderExpirationTime; + } + // This is intentionally passing this fiber as the parent + // because we want to schedule this fiber as having work + // on its children. We'll use the childExpirationTime on + // this fiber to indicate that a context has changed. + scheduleWorkOnParentPath(fiber, renderExpirationTime); + nextFiber = fiber.sibling; + } else { + // Traverse down. + nextFiber = fiber.child; + } + + if (nextFiber !== null) { + // Set the return pointer of the child to the work-in-progress fiber. + nextFiber.return = fiber; + } else { + // No child. Traverse to next sibling. + nextFiber = fiber; + while (nextFiber !== null) { + if (nextFiber === workInProgress) { + // We're back to the root of this subtree. Exit. + nextFiber = null; + break; + } + var sibling = nextFiber.sibling; + if (sibling !== null) { + // Set the return pointer of the sibling to the work-in-progress fiber. + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } + // No more siblings. Traverse up. + nextFiber = nextFiber.return; + } + } + fiber = nextFiber; + } +} + +function prepareToReadContext(workInProgress, renderExpirationTime) { + currentlyRenderingFiber = workInProgress; + lastContextDependency = null; + lastContextWithAllBitsObserved = null; + + var currentDependencies = workInProgress.contextDependencies; + if (currentDependencies !== null && currentDependencies.expirationTime >= renderExpirationTime) { + // Context list has a pending update. Mark that this fiber performed work. + markWorkInProgressReceivedUpdate(); + } + + // Reset the work-in-progress list + workInProgress.contextDependencies = null; +} + +function readContext(context, observedBits) { + { + // This warning would fire if you read context inside a Hook like useMemo. + // Unlike the class check below, it's not enforced in production for perf. + !!isDisallowedContextReadInDEV ? warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().') : void 0; + } + + if (lastContextWithAllBitsObserved === context) { + // Nothing to do. We already observe everything in this context. + } else if (observedBits === false || observedBits === 0) { + // Do not observe any updates. + } else { + var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types. + if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) { + // Observe all updates. + lastContextWithAllBitsObserved = context; + resolvedObservedBits = maxSigned31BitInt; + } else { + resolvedObservedBits = observedBits; + } + + var contextItem = { + context: context, + observedBits: resolvedObservedBits, + next: null + }; + + if (lastContextDependency === null) { + !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().') : void 0; + + // This is the first dependency for this component. Create a new list. + lastContextDependency = contextItem; + currentlyRenderingFiber.contextDependencies = { + first: contextItem, + expirationTime: NoWork + }; + } else { + // Append a new context item. + lastContextDependency = lastContextDependency.next = contextItem; + } + } + return isPrimaryRenderer ? context._currentValue : context._currentValue2; +} + +// UpdateQueue is a linked list of prioritized updates. +// +// Like fibers, update queues come in pairs: a current queue, which represents +// the visible state of the screen, and a work-in-progress queue, which can be +// mutated and processed asynchronously before it is committed — a form of +// double buffering. If a work-in-progress render is discarded before finishing, +// we create a new work-in-progress by cloning the current queue. +// +// Both queues share a persistent, singly-linked list structure. To schedule an +// update, we append it to the end of both queues. Each queue maintains a +// pointer to first update in the persistent list that hasn't been processed. +// The work-in-progress pointer always has a position equal to or greater than +// the current queue, since we always work on that one. The current queue's +// pointer is only updated during the commit phase, when we swap in the +// work-in-progress. +// +// For example: +// +// Current pointer: A - B - C - D - E - F +// Work-in-progress pointer: D - E - F +// ^ +// The work-in-progress queue has +// processed more updates than current. +// +// The reason we append to both queues is because otherwise we might drop +// updates without ever processing them. For example, if we only add updates to +// the work-in-progress queue, some updates could be lost whenever a work-in +// -progress render restarts by cloning from current. Similarly, if we only add +// updates to the current queue, the updates will be lost whenever an already +// in-progress queue commits and swaps with the current queue. However, by +// adding to both queues, we guarantee that the update will be part of the next +// work-in-progress. (And because the work-in-progress queue becomes the +// current queue once it commits, there's no danger of applying the same +// update twice.) +// +// Prioritization +// -------------- +// +// Updates are not sorted by priority, but by insertion; new updates are always +// appended to the end of the list. +// +// The priority is still important, though. When processing the update queue +// during the render phase, only the updates with sufficient priority are +// included in the result. If we skip an update because it has insufficient +// priority, it remains in the queue to be processed later, during a lower +// priority render. Crucially, all updates subsequent to a skipped update also +// remain in the queue *regardless of their priority*. That means high priority +// updates are sometimes processed twice, at two separate priorities. We also +// keep track of a base state, that represents the state before the first +// update in the queue is applied. +// +// For example: +// +// Given a base state of '', and the following queue of updates +// +// A1 - B2 - C1 - D2 +// +// where the number indicates the priority, and the update is applied to the +// previous state by appending a letter, React will process these updates as +// two separate renders, one per distinct priority level: +// +// First render, at priority 1: +// Base state: '' +// Updates: [A1, C1] +// Result state: 'AC' +// +// Second render, at priority 2: +// Base state: 'A' <- The base state does not include C1, +// because B2 was skipped. +// Updates: [B2, C1, D2] <- C1 was rebased on top of B2 +// Result state: 'ABCD' +// +// Because we process updates in insertion order, and rebase high priority +// updates when preceding updates are skipped, the final result is deterministic +// regardless of priority. Intermediate state may vary according to system +// resources, but the final state is always the same. + +var UpdateState = 0; +var ReplaceState = 1; +var ForceUpdate = 2; +var CaptureUpdate = 3; + +// Global state that is reset at the beginning of calling `processUpdateQueue`. +// It should only be read right after calling `processUpdateQueue`, via +// `checkHasForceUpdateAfterProcessing`. +var hasForceUpdate = false; + +var didWarnUpdateInsideUpdate = void 0; +var currentlyProcessingQueue = void 0; +var resetCurrentlyProcessingQueue = void 0; +{ + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; + resetCurrentlyProcessingQueue = function () { + currentlyProcessingQueue = null; + }; +} + +function createUpdateQueue(baseState) { + var queue = { + baseState: baseState, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + return queue; +} + +function cloneUpdateQueue(currentQueue) { + var queue = { + baseState: currentQueue.baseState, + firstUpdate: currentQueue.firstUpdate, + lastUpdate: currentQueue.lastUpdate, + + // TODO: With resuming, if we bail out and resuse the child tree, we should + // keep these effects. + firstCapturedUpdate: null, + lastCapturedUpdate: null, + + firstEffect: null, + lastEffect: null, + + firstCapturedEffect: null, + lastCapturedEffect: null + }; + return queue; +} + +function createUpdate(expirationTime) { + return { + expirationTime: expirationTime, + + tag: UpdateState, + payload: null, + callback: null, + + next: null, + nextEffect: null + }; +} + +function appendUpdateToQueue(queue, update) { + // Append the update to the end of the list. + if (queue.lastUpdate === null) { + // Queue is empty + queue.firstUpdate = queue.lastUpdate = update; + } else { + queue.lastUpdate.next = update; + queue.lastUpdate = update; + } +} + +function enqueueUpdate(fiber, update) { + // Update queues are created lazily. + var alternate = fiber.alternate; + var queue1 = void 0; + var queue2 = void 0; + if (alternate === null) { + // There's only one fiber. + queue1 = fiber.updateQueue; + queue2 = null; + if (queue1 === null) { + queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); + } + } else { + // There are two owners. + queue1 = fiber.updateQueue; + queue2 = alternate.updateQueue; + if (queue1 === null) { + if (queue2 === null) { + // Neither fiber has an update queue. Create new ones. + queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); + queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState); + } else { + // Only one fiber has an update queue. Clone to create a new one. + queue1 = fiber.updateQueue = cloneUpdateQueue(queue2); + } + } else { + if (queue2 === null) { + // Only one fiber has an update queue. Clone to create a new one. + queue2 = alternate.updateQueue = cloneUpdateQueue(queue1); + } else { + // Both owners have an update queue. + } + } + } + if (queue2 === null || queue1 === queue2) { + // There's only a single queue. + appendUpdateToQueue(queue1, update); + } else { + // There are two queues. We need to append the update to both queues, + // while accounting for the persistent structure of the list — we don't + // want the same update to be added multiple times. + if (queue1.lastUpdate === null || queue2.lastUpdate === null) { + // One of the queues is not empty. We must add the update to both queues. + appendUpdateToQueue(queue1, update); + appendUpdateToQueue(queue2, update); + } else { + // Both queues are non-empty. The last update is the same in both lists, + // because of structural sharing. So, only append to one of the lists. + appendUpdateToQueue(queue1, update); + // But we still need to update the `lastUpdate` pointer of queue2. + queue2.lastUpdate = update; + } + } + + { + if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) { + warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.'); + didWarnUpdateInsideUpdate = true; + } + } +} + +function enqueueCapturedUpdate(workInProgress, update) { + // Captured updates go into a separate list, and only on the work-in- + // progress queue. + var workInProgressQueue = workInProgress.updateQueue; + if (workInProgressQueue === null) { + workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState); + } else { + // TODO: I put this here rather than createWorkInProgress so that we don't + // clone the queue unnecessarily. There's probably a better way to + // structure this. + workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); + } + + // Append the update to the end of the list. + if (workInProgressQueue.lastCapturedUpdate === null) { + // This is the first render phase update + workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update; + } else { + workInProgressQueue.lastCapturedUpdate.next = update; + workInProgressQueue.lastCapturedUpdate = update; + } +} + +function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { + var current = workInProgress.alternate; + if (current !== null) { + // If the work-in-progress queue is equal to the current queue, + // we need to clone it first. + if (queue === current.updateQueue) { + queue = workInProgress.updateQueue = cloneUpdateQueue(queue); + } + } + return queue; +} + +function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: + { + var _payload = update.payload; + if (typeof _payload === 'function') { + // Updater function + { + enterDisallowedContextReadInDEV(); + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + _payload.call(instance, prevState, nextProps); + } + } + var nextState = _payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + return nextState; + } + // State object + return _payload; + } + case CaptureUpdate: + { + workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; + } + // Intentional fallthrough + case UpdateState: + { + var _payload2 = update.payload; + var partialState = void 0; + if (typeof _payload2 === 'function') { + // Updater function + { + enterDisallowedContextReadInDEV(); + if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { + _payload2.call(instance, prevState, nextProps); + } + } + partialState = _payload2.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + } else { + // Partial state object + partialState = _payload2; + } + if (partialState === null || partialState === undefined) { + // Null and undefined are treated as no-ops. + return prevState; + } + // Merge the partial state and the previous state. + return _assign({}, prevState, partialState); + } + case ForceUpdate: + { + hasForceUpdate = true; + return prevState; + } + } + return prevState; +} + +function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { + hasForceUpdate = false; + + queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); + + { + currentlyProcessingQueue = queue; + } + + // These values may change as we process the queue. + var newBaseState = queue.baseState; + var newFirstUpdate = null; + var newExpirationTime = NoWork; + + // Iterate through the list of updates to compute the result. + var update = queue.firstUpdate; + var resultState = newBaseState; + while (update !== null) { + var updateExpirationTime = update.expirationTime; + if (updateExpirationTime < renderExpirationTime) { + // This update does not have sufficient priority. Skip it. + if (newFirstUpdate === null) { + // This is the first skipped update. It will be the first update in + // the new list. + newFirstUpdate = update; + // Since this is the first update that was skipped, the current result + // is the new base state. + newBaseState = resultState; + } + // Since this update will remain in the list, update the remaining + // expiration time. + if (newExpirationTime < updateExpirationTime) { + newExpirationTime = updateExpirationTime; + } + } else { + // This update does have sufficient priority. Process it and compute + // a new result. + resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); + var _callback = update.callback; + if (_callback !== null) { + workInProgress.effectTag |= Callback; + // Set this to null, in case it was mutated during an aborted render. + update.nextEffect = null; + if (queue.lastEffect === null) { + queue.firstEffect = queue.lastEffect = update; + } else { + queue.lastEffect.nextEffect = update; + queue.lastEffect = update; + } + } + } + // Continue to the next update. + update = update.next; + } + + // Separately, iterate though the list of captured updates. + var newFirstCapturedUpdate = null; + update = queue.firstCapturedUpdate; + while (update !== null) { + var _updateExpirationTime = update.expirationTime; + if (_updateExpirationTime < renderExpirationTime) { + // This update does not have sufficient priority. Skip it. + if (newFirstCapturedUpdate === null) { + // This is the first skipped captured update. It will be the first + // update in the new list. + newFirstCapturedUpdate = update; + // If this is the first update that was skipped, the current result is + // the new base state. + if (newFirstUpdate === null) { + newBaseState = resultState; + } + } + // Since this update will remain in the list, update the remaining + // expiration time. + if (newExpirationTime < _updateExpirationTime) { + newExpirationTime = _updateExpirationTime; + } + } else { + // This update does have sufficient priority. Process it and compute + // a new result. + resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); + var _callback2 = update.callback; + if (_callback2 !== null) { + workInProgress.effectTag |= Callback; + // Set this to null, in case it was mutated during an aborted render. + update.nextEffect = null; + if (queue.lastCapturedEffect === null) { + queue.firstCapturedEffect = queue.lastCapturedEffect = update; + } else { + queue.lastCapturedEffect.nextEffect = update; + queue.lastCapturedEffect = update; + } + } + } + update = update.next; + } + + if (newFirstUpdate === null) { + queue.lastUpdate = null; + } + if (newFirstCapturedUpdate === null) { + queue.lastCapturedUpdate = null; + } else { + workInProgress.effectTag |= Callback; + } + if (newFirstUpdate === null && newFirstCapturedUpdate === null) { + // We processed every update, without skipping. That means the new base + // state is the same as the result state. + newBaseState = resultState; + } + + queue.baseState = newBaseState; + queue.firstUpdate = newFirstUpdate; + queue.firstCapturedUpdate = newFirstCapturedUpdate; + + // Set the remaining expiration time to be whatever is remaining in the queue. + // This should be fine because the only two other things that contribute to + // expiration time are props and context. We're already in the middle of the + // begin phase by the time we start processing the queue, so we've already + // dealt with the props. Context in components that specify + // shouldComponentUpdate is tricky; but we'll have to account for + // that regardless. + workInProgress.expirationTime = newExpirationTime; + workInProgress.memoizedState = resultState; + + { + currentlyProcessingQueue = null; + } +} + +function callCallback(callback, context) { + !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0; + callback.call(context); +} + +function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; +} + +function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; +} + +function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { + // If the finished render included captured updates, and there are still + // lower priority updates left over, we need to keep the captured updates + // in the queue so that they are rebased and not dropped once we process the + // queue again at the lower priority. + if (finishedQueue.firstCapturedUpdate !== null) { + // Join the captured update list to the end of the normal list. + if (finishedQueue.lastUpdate !== null) { + finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate; + finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate; + } + // Clear the list of captured updates. + finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null; + } + + // Commit the effects + commitUpdateEffects(finishedQueue.firstEffect, instance); + finishedQueue.firstEffect = finishedQueue.lastEffect = null; + + commitUpdateEffects(finishedQueue.firstCapturedEffect, instance); + finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; +} + +function commitUpdateEffects(effect, instance) { + while (effect !== null) { + var _callback3 = effect.callback; + if (_callback3 !== null) { + effect.callback = null; + callCallback(_callback3, instance); + } + effect = effect.nextEffect; + } +} + +function createCapturedValue(value, source) { + // If the value is an error, call this function immediately after it is thrown + // so the stack is accurate. + return { + value: value, + source: source, + stack: getStackByFiberInDevAndProd(source) + }; } function markUpdate(workInProgress) { @@ -15747,16 +17066,10 @@ function completeWork(current, workInProgress, renderExpirationTime) { } } - // The children either timed out after previously being visible, or - // were restored after previously being hidden. Schedule an effect - // to update their visiblity. - if ( - // - nextDidTimeout !== prevDidTimeout || - // Outside concurrent mode, the primary children commit in an - // inconsistent state, even if they are hidden. So if they are hidden, - // we need to schedule an effect to re-hide them, just in case. - (workInProgress.effectTag & ConcurrentMode) === NoContext && nextDidTimeout) { + if (nextDidTimeout || prevDidTimeout) { + // If the children are hidden, or if they were previous hidden, schedule + // an effect to toggle their visibility. This is also used to attach a + // retry listener to the promise. workInProgress.effectTag |= Update; } break; @@ -15789,6 +17102,26 @@ function completeWork(current, workInProgress, renderExpirationTime) { } break; } + case DehydratedSuspenseComponent: + { + if (enableSuspenseServerRenderer) { + if (current === null) { + var _wasHydrated2 = popHydrationState(workInProgress); + !_wasHydrated2 ? invariant(false, 'A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.') : void 0; + skipPastDehydratedSuspenseInstance(workInProgress); + } else if ((workInProgress.effectTag & DidCapture) === NoEffect) { + // This boundary did not suspend so it's now hydrated. + // To handle any future suspense cases, we're going to now upgrade it + // to a Suspense component. We detach it from the existing current fiber. + current.alternate = null; + workInProgress.alternate = null; + workInProgress.tag = SuspenseComponent; + workInProgress.memoizedState = null; + workInProgress.stateNode = null; + } + } + break; + } default: invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'); } @@ -15796,7 +17129,7 @@ function completeWork(current, workInProgress, renderExpirationTime) { return null; } -function shouldCaptureSuspense(current, workInProgress) { +function shouldCaptureSuspense(workInProgress) { // In order to capture, the Suspense component must have a fallback prop. if (workInProgress.memoizedProps.fallback === undefined) { return false; @@ -15879,6 +17212,8 @@ var didWarnAboutUndefinedSnapshotBeforeUpdate = null; didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); } +var PossiblyWeakSet$1 = typeof WeakSet === 'function' ? WeakSet : Set; + function logError(boundary, errorInfo) { var source = errorInfo.source; var stack = errorInfo.stack; @@ -15983,9 +17318,9 @@ function commitBeforeMutationLifeCycles(current$$1, finishedWork) { // but instead we rely on them being set during last render. // TODO: revisit this when we implement resuming. { - if (finishedWork.type === finishedWork.elementType) { - !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; - !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; + !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; } } var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState); @@ -16017,9 +17352,6 @@ function commitBeforeMutationLifeCycles(current$$1, finishedWork) { } function commitHookEffectList(unmountTag, mountTag, finishedWork) { - if (!enableHooks) { - return; - } var updateQueue = finishedWork.updateQueue; var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; if (lastEffect !== null) { @@ -16029,24 +17361,30 @@ function commitHookEffectList(unmountTag, mountTag, finishedWork) { if ((effect.tag & unmountTag) !== NoEffect$1) { // Unmount var destroy = effect.destroy; - effect.destroy = null; - if (destroy !== null) { + effect.destroy = undefined; + if (destroy !== undefined) { destroy(); } } if ((effect.tag & mountTag) !== NoEffect$1) { // Mount var create = effect.create; - var _destroy = create(); - if (typeof _destroy !== 'function') { - { - if (_destroy !== null && _destroy !== undefined) { - warningWithoutStack$1(false, 'useEffect function must return a cleanup function or ' + 'nothing.%s%s', typeof _destroy.then === 'function' ? ' Promises and useEffect(async () => ...) are not ' + 'supported, but you can call an async function inside an ' + 'effect.' : '', getStackByFiberInDevAndProd(finishedWork)); + effect.destroy = create(); + + { + var _destroy = effect.destroy; + if (_destroy !== undefined && typeof _destroy !== 'function') { + var addendum = void 0; + if (_destroy === null) { + addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).'; + } else if (typeof _destroy.then === 'function') { + addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, you may write an async function separately ' + 'and then call it from inside the effect:\n\n' + 'async function fetchComment(commentId) {\n' + ' // You can await here\n' + '}\n\n' + 'useEffect(() => {\n' + ' fetchComment(commentId);\n' + '}, [commentId]);\n\n' + 'In the future, React will provide a more idiomatic solution for data fetching ' + "that doesn't involve writing effects manually."; + } else { + addendum = ' You returned: ' + _destroy; } + warningWithoutStack$1(false, 'An Effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork)); } - _destroy = null; } - effect.destroy = _destroy; } effect = effect.next; } while (effect !== firstEffect); @@ -16077,9 +17415,9 @@ function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpir // but instead we rely on them being set during last render. // TODO: revisit this when we implement resuming. { - if (finishedWork.type === finishedWork.elementType) { - !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; - !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; + !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; } } instance.componentDidMount(); @@ -16092,9 +17430,9 @@ function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpir // but instead we rely on them being set during last render. // TODO: revisit this when we implement resuming. { - if (finishedWork.type === finishedWork.elementType) { - !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; - !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; + !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; } } instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); @@ -16104,9 +17442,9 @@ function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpir var updateQueue = finishedWork.updateQueue; if (updateQueue !== null) { { - if (finishedWork.type === finishedWork.elementType) { - !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; - !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0; + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; + !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0; } } // We could update instance props and state here, @@ -16187,7 +17525,7 @@ function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpir function hideOrUnhideAllChildren(finishedWork, isHidden) { if (supportsMutation) { - // We only have the top Fiber that was inserted but we need recurse down its + // We only have the top Fiber that was inserted but we need to recurse down its var node = finishedWork; while (true) { if (node.tag === HostComponent) { @@ -16287,7 +17625,7 @@ function commitUnmount(current$$1) { var effect = firstEffect; do { var destroy = effect.destroy; - if (destroy !== null) { + if (destroy !== undefined) { safelyCallDestroy(current$$1, destroy); } effect = effect.next; @@ -16365,9 +17703,14 @@ function detachFiber(current$$1) { // itself will be GC:ed when the parent updates the next time. current$$1.return = null; current$$1.child = null; - if (current$$1.alternate) { - current$$1.alternate.child = null; - current$$1.alternate.return = null; + current$$1.memoizedState = null; + current$$1.updateQueue = null; + var alternate = current$$1.alternate; + if (alternate !== null) { + alternate.return = null; + alternate.child = null; + alternate.memoizedState = null; + alternate.updateQueue = null; } } @@ -16450,7 +17793,7 @@ function getHostSibling(fiber) { } node.sibling.return = node.return; node = node.sibling; - while (node.tag !== HostComponent && node.tag !== HostText) { + while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedSuspenseComponent) { // If it is not host node and, we might have a host node inside it. // Try to search down until we find one. if (node.effectTag & Placement) { @@ -16510,7 +17853,7 @@ function commitPlacement(finishedWork) { } var before = getHostSibling(finishedWork); - // We only have the top Fiber that was inserted but we need recurse down its + // We only have the top Fiber that was inserted but we need to recurse down its // children to find all the terminal nodes. var node = finishedWork; while (true) { @@ -16552,7 +17895,7 @@ function commitPlacement(finishedWork) { } function unmountHostComponents(current$$1) { - // We only have the top Fiber that was deleted but we need recurse down its + // We only have the top Fiber that was deleted but we need to recurse down its var node = current$$1; // Each iteration, currentParent is populated with node's host parent if not @@ -16597,13 +17940,20 @@ function unmountHostComponents(current$$1) { removeChild(currentParent, node.stateNode); } // Don't visit children because we already visited them. + } else if (enableSuspenseServerRenderer && node.tag === DehydratedSuspenseComponent) { + // Delete the dehydrated suspense boundary and all of its content. + if (currentParentIsContainer) { + clearSuspenseBoundaryFromContainer(currentParent, node.stateNode); + } else { + clearSuspenseBoundary(currentParent, node.stateNode); + } } else if (node.tag === HostPortal) { - // When we go into a portal, it becomes the parent to remove from. - // We will reassign it back when we pop the portal on the way up. - currentParent = node.stateNode.containerInfo; - currentParentIsContainer = true; - // Visit children because portals might contain host components. if (node.child !== null) { + // When we go into a portal, it becomes the parent to remove from. + // We will reassign it back when we pop the portal on the way up. + currentParent = node.stateNode.containerInfo; + currentParentIsContainer = true; + // Visit children because portals might contain host components. node.child.return = node; node = node.child; continue; @@ -16656,6 +18006,8 @@ function commitWork(current$$1, finishedWork) { case MemoComponent: case SimpleMemoComponent: { + // Note: We currently never use MountMutation, but useLayout uses + // UnmountMutation. commitHookEffectList(UnmountMutation, MountMutation, finishedWork); return; } @@ -16671,6 +18023,8 @@ function commitWork(current$$1, finishedWork) { case MemoComponent: case SimpleMemoComponent: { + // Note: We currently never use MountMutation, but useLayout uses + // UnmountMutation. commitHookEffectList(UnmountMutation, MountMutation, finishedWork); return; } @@ -16740,6 +18094,30 @@ function commitWork(current$$1, finishedWork) { if (primaryChildParent !== null) { hideOrUnhideAllChildren(primaryChildParent, newDidTimeout); } + + // If this boundary just timed out, then it will have a set of thenables. + // For each thenable, attach a listener so that when it resolves, React + // attempts to re-render the boundary in the primary (pre-timeout) state. + var thenables = finishedWork.updateQueue; + if (thenables !== null) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + if (retryCache === null) { + retryCache = finishedWork.stateNode = new PossiblyWeakSet$1(); + } + thenables.forEach(function (thenable) { + // Memoize using the boundary fiber to prevent redundant listeners. + var retry = retryTimedOutBoundary.bind(null, finishedWork, thenable); + if (enableSchedulerTracing) { + retry = unstable_wrap(retry); + } + if (!retryCache.has(thenable)) { + retryCache.add(thenable); + thenable.then(retry, retry); + } + }); + } + return; } case IncompleteClassComponent: @@ -16760,6 +18138,9 @@ function commitResetTextContent(current$$1) { resetTextContent(current$$1.stateNode); } +var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set; +var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, expirationTime) { var update = createUpdate(expirationTime); // Unmount the root by rendering null. @@ -16816,6 +18197,34 @@ function createClassErrorUpdate(fiber, errorInfo, expirationTime) { return update; } +function attachPingListener(root, renderExpirationTime, thenable) { + // Attach a listener to the promise to "ping" the root and retry. But + // only if one does not already exist for the current render expiration + // time (which acts like a "thread ID" here). + var pingCache = root.pingCache; + var threadIDs = void 0; + if (pingCache === null) { + pingCache = root.pingCache = new PossiblyWeakMap(); + threadIDs = new Set(); + pingCache.set(thenable, threadIDs); + } else { + threadIDs = pingCache.get(thenable); + if (threadIDs === undefined) { + threadIDs = new Set(); + pingCache.set(thenable, threadIDs); + } + } + if (!threadIDs.has(renderExpirationTime)) { + // Memoize using the thread ID to prevent redundant listeners. + threadIDs.add(renderExpirationTime); + var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime); + if (enableSchedulerTracing) { + ping = unstable_wrap(ping); + } + thenable.then(ping, ping); + } +} + function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) { // The source fiber did not complete. sourceFiber.effectTag |= Incomplete; @@ -16857,25 +18266,27 @@ function throwException(root, returnFiber, sourceFiber, value, renderExpirationT } } } + // If there is a DehydratedSuspenseComponent we don't have to do anything because + // if something suspends inside it, we will simply leave that as dehydrated. It + // will never timeout. _workInProgress = _workInProgress.return; } while (_workInProgress !== null); // Schedule the nearest Suspense to re-render the timed out view. _workInProgress = returnFiber; do { - if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress.alternate, _workInProgress)) { + if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress)) { // Found the nearest boundary. - // If the boundary is not in concurrent mode, we should not suspend, and - // likewise, when the promise resolves, we should ping synchronously. - var pingTime = (_workInProgress.mode & ConcurrentMode) === NoEffect ? Sync : renderExpirationTime; - - // Attach a listener to the promise to "ping" the root and retry. - var onResolveOrReject = retrySuspendedRoot.bind(null, root, _workInProgress, sourceFiber, pingTime); - if (enableSchedulerTracing) { - onResolveOrReject = unstable_wrap(onResolveOrReject); + // Stash the promise on the boundary fiber. If the boundary times out, we'll + var thenables = _workInProgress.updateQueue; + if (thenables === null) { + var updateQueue = new Set(); + updateQueue.add(thenable); + _workInProgress.updateQueue = updateQueue; + } else { + thenables.add(thenable); } - thenable.then(onResolveOrReject, onResolveOrReject); // If the boundary is outside of concurrent mode, we should *not* // suspend the commit. Pretend as if the suspended component rendered @@ -16894,18 +18305,25 @@ function throwException(root, returnFiber, sourceFiber, value, renderExpirationT sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete); if (sourceFiber.tag === ClassComponent) { - var _current = sourceFiber.alternate; - if (_current === null) { + var currentSourceFiber = sourceFiber.alternate; + if (currentSourceFiber === null) { // This is a new mount. Change the tag so it's not mistaken for a // completed class component. For example, we should not call // componentWillUnmount if it is deleted. sourceFiber.tag = IncompleteClassComponent; + } else { + // When we try rendering again, we should not reuse the current fiber, + // since it's known to be in an inconsistent state. Use a force updte to + // prevent a bail out. + var update = createUpdate(Sync); + update.tag = ForceUpdate; + enqueueUpdate(sourceFiber, update); } } - // The source fiber did not complete. Mark it with the current - // render priority to indicate that it still has pending work. - sourceFiber.expirationTime = renderExpirationTime; + // The source fiber did not complete. Mark it with Sync priority to + // indicate that it still has pending work. + sourceFiber.expirationTime = Sync; // Exit without suspending. return; @@ -16914,9 +18332,11 @@ function throwException(root, returnFiber, sourceFiber, value, renderExpirationT // Confirmed that the boundary is in a concurrent mode tree. Continue // with the normal suspend path. + attachPingListener(root, renderExpirationTime, thenable); + var absoluteTimeoutMs = void 0; if (earliestTimeoutMs === -1) { - // If no explicit threshold is given, default to an abitrarily large + // If no explicit threshold is given, default to an arbitrarily large // value. The actual size doesn't matter because the threshold for the // whole tree will be clamped to the expiration time. absoluteTimeoutMs = maxSigned31BitInt; @@ -16944,6 +18364,29 @@ function throwException(root, returnFiber, sourceFiber, value, renderExpirationT // whole tree. renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime); + _workInProgress.effectTag |= ShouldCapture; + _workInProgress.expirationTime = renderExpirationTime; + return; + } else if (enableSuspenseServerRenderer && _workInProgress.tag === DehydratedSuspenseComponent) { + attachPingListener(root, renderExpirationTime, thenable); + + // Since we already have a current fiber, we can eagerly add a retry listener. + var retryCache = _workInProgress.memoizedState; + if (retryCache === null) { + retryCache = _workInProgress.memoizedState = new PossiblyWeakSet(); + var _current = _workInProgress.alternate; + !_current ? invariant(false, 'A dehydrated suspense boundary must commit before trying to render. This is probably a bug in React.') : void 0; + _current.memoizedState = retryCache; + } + // Memoize using the boundary fiber to prevent redundant listeners. + if (!retryCache.has(thenable)) { + retryCache.add(thenable); + var retry = retryTimedOutBoundary.bind(null, _workInProgress, thenable); + if (enableSchedulerTracing) { + retry = unstable_wrap(retry); + } + thenable.then(retry, retry); + } _workInProgress.effectTag |= ShouldCapture; _workInProgress.expirationTime = renderExpirationTime; return; @@ -16970,8 +18413,8 @@ function throwException(root, returnFiber, sourceFiber, value, renderExpirationT var _errorInfo = value; workInProgress.effectTag |= ShouldCapture; workInProgress.expirationTime = renderExpirationTime; - var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime); - enqueueCapturedUpdate(workInProgress, update); + var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime); + enqueueCapturedUpdate(workInProgress, _update); return; } case ClassComponent: @@ -16983,8 +18426,8 @@ function throwException(root, returnFiber, sourceFiber, value, renderExpirationT workInProgress.effectTag |= ShouldCapture; workInProgress.expirationTime = renderExpirationTime; // Schedule the error boundary to re-render using updated state - var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime); - enqueueCapturedUpdate(workInProgress, _update); + var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime); + enqueueCapturedUpdate(workInProgress, _update2); return; } break; @@ -17021,6 +18464,7 @@ function unwindWork(workInProgress, renderExpirationTime) { } case HostComponent: { + // TODO: popHydrationState popHostContext(workInProgress); return null; } @@ -17034,6 +18478,19 @@ function unwindWork(workInProgress, renderExpirationTime) { } return null; } + case DehydratedSuspenseComponent: + { + if (enableSuspenseServerRenderer) { + // TODO: popHydrationState + var _effectTag3 = workInProgress.effectTag; + if (_effectTag3 & ShouldCapture) { + workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture; + // Captured a suspense effect. Re-render the boundary. + return workInProgress; + } + } + return null; + } case HostPortal: popHostContainer(workInProgress); return null; @@ -17077,23 +18534,7 @@ function unwindInterruptedWork(interruptedWork) { } } -var Dispatcher = { - readContext: readContext, - useCallback: useCallback, - useContext: useContext, - useEffect: useEffect, - useImperativeMethods: useImperativeMethods, - useLayoutEffect: useLayoutEffect, - useMemo: useMemo, - useMutationEffect: useMutationEffect, - useReducer: useReducer, - useRef: useRef, - useState: useState -}; -var DispatcherWithoutHooks = { - readContext: readContext -}; - +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner; @@ -17147,11 +18588,6 @@ if (enableSchedulerTracing) { // Used to ensure computeUniqueAsyncExpiration is monotonically decreasing. var lastUniqueAsyncExpiration = Sync - 1; -// Represents the expiration time that incoming updates should use. (If this -// is NoWork, use the default strategy: async updates in async mode, sync -// updates in sync mode.) -var expirationContext = NoWork; - var isWorking = false; // The next work in progress fiber that we're currently working on. @@ -17378,6 +18814,9 @@ function commitAllLifeCycles(finishedRoot, committedExpirationTime) { } } while (nextEffect !== null) { + { + setCurrentFiber(nextEffect); + } var effectTag = nextEffect.effectTag; if (effectTag & (Update | Callback)) { @@ -17391,12 +18830,15 @@ function commitAllLifeCycles(finishedRoot, committedExpirationTime) { commitAttachRef(nextEffect); } - if (enableHooks && effectTag & Passive) { + if (effectTag & Passive) { rootWithPendingPassiveEffects = finishedRoot; } nextEffect = nextEffect.nextEffect; } + { + resetCurrentFiber(); + } } function commitPassiveEffects(root, firstEffect) { @@ -17410,6 +18852,10 @@ function commitPassiveEffects(root, firstEffect) { var effect = firstEffect; do { + { + setCurrentFiber(effect); + } + if (effect.effectTag & Passive) { var didError = false; var error = void 0; @@ -17426,6 +18872,9 @@ function commitPassiveEffects(root, firstEffect) { } effect = effect.nextEffect; } while (effect !== null); + { + resetCurrentFiber(); + } isRendering = previousIsRendering; @@ -17434,6 +18883,10 @@ function commitPassiveEffects(root, firstEffect) { if (rootExpirationTime !== NoWork) { requestWork(root, rootExpirationTime); } + // Flush any sync work that was scheduled by effects + if (!isBatchingUpdates && !isRendering) { + performSyncWork(); + } } function isAlreadyFailedLegacyErrorBoundary(instance) { @@ -17449,8 +18902,10 @@ function markLegacyErrorBoundaryAsFailed(instance) { } function flushPassiveEffects() { + if (passiveEffectCallbackHandle !== null) { + cancelPassiveEffects(passiveEffectCallbackHandle); + } if (passiveEffectCallback !== null) { - unstable_cancelCallback(passiveEffectCallbackHandle); // We call the scheduled callback instead of commitPassiveEffects directly // to ensure tracing works correctly. passiveEffectCallback(); @@ -17594,7 +19049,7 @@ function commitRoot(root, finishedWork) { } } - if (enableHooks && firstEffect !== null && rootWithPendingPassiveEffects !== null) { + if (firstEffect !== null && rootWithPendingPassiveEffects !== null) { // This commit included a passive effect. These do not need to fire until // after the next paint. Schedule an callback to fire them in an async // event. To ensure serial execution, the callback will be flushed early if @@ -17606,7 +19061,9 @@ function commitRoot(root, finishedWork) { // here because that code is still in flux. callback = unstable_wrap(callback); } - passiveEffectCallbackHandle = unstable_scheduleCallback(callback); + passiveEffectCallbackHandle = unstable_runWithPriority(unstable_NormalPriority, function () { + return schedulePassiveEffects(callback); + }); passiveEffectCallback = callback; } @@ -17997,11 +19454,8 @@ function renderRoot(root, isYieldy) { flushPassiveEffects(); isWorking = true; - if (enableHooks) { - ReactCurrentOwner$2.currentDispatcher = Dispatcher; - } else { - ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks; - } + var previousDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = ContextOnlyDispatcher; var expirationTime = root.nextExpirationTimeToWorkOn; @@ -18041,7 +19495,7 @@ function renderRoot(root, isYieldy) { subscriber.onWorkStarted(interactions, threadID); } catch (error) { // Work thrown by an interaction tracing subscriber should be rethrown, - // But only once it's safe (to avoid leaveing the scheduler in an invalid state). + // But only once it's safe (to avoid leaving the scheduler in an invalid state). // Store the error for now and we'll re-throw in finishRendering(). if (!hasUnhandledError) { hasUnhandledError = true; @@ -18137,7 +19591,7 @@ function renderRoot(root, isYieldy) { // We're done performing work. Time to clean up. isWorking = false; - ReactCurrentOwner$2.currentDispatcher = null; + ReactCurrentDispatcher.current = previousDispatcher; resetContextDependences(); resetHooks(); @@ -18198,7 +19652,7 @@ function renderRoot(root, isYieldy) { return; } else if ( // There's no lower priority work, but we're rendering asynchronously. - // Synchronsouly attempt to render the same level one more time. This is + // Synchronously attempt to render the same level one more time. This is // similar to a suspend, but without a timeout because we're not waiting // for a promise to resolve. !root.didError && isYieldy) { @@ -18303,49 +19757,50 @@ function computeUniqueAsyncExpiration() { } function computeExpirationForFiber(currentTime, fiber) { + var priorityLevel = unstable_getCurrentPriorityLevel(); + var expirationTime = void 0; - if (expirationContext !== NoWork) { - // An explicit expiration context was set; - expirationTime = expirationContext; - } else if (isWorking) { - if (isCommitting$1) { - // Updates that occur during the commit phase should have sync priority - // by default. - expirationTime = Sync; - } else { - // Updates during the render phase should expire at the same time as - // the work that is being rendered. - expirationTime = nextRenderExpirationTime; - } + if ((fiber.mode & ConcurrentMode) === NoContext) { + // Outside of concurrent mode, updates are always synchronous. + expirationTime = Sync; + } else if (isWorking && !isCommitting$1) { + // During render phase, updates expire during as the current render. + expirationTime = nextRenderExpirationTime; } else { - // No explicit expiration context was set, and we're not currently - // performing work. Calculate a new expiration time. - if (fiber.mode & ConcurrentMode) { - if (isBatchingInteractiveUpdates) { - // This is an interactive update + switch (priorityLevel) { + case unstable_ImmediatePriority: + expirationTime = Sync; + break; + case unstable_UserBlockingPriority: expirationTime = computeInteractiveExpiration(currentTime); - } else { - // This is an async update + break; + case unstable_NormalPriority: + // This is a normal, concurrent update expirationTime = computeAsyncExpiration(currentTime); - } - // If we're in the middle of rendering a tree, do not update at the same - // expiration time that is already rendering. - if (nextRoot !== null && expirationTime === nextRenderExpirationTime) { - expirationTime -= 1; - } - } else { - // This is a sync update - expirationTime = Sync; + break; + case unstable_LowPriority: + case unstable_IdlePriority: + expirationTime = Never; + break; + default: + invariant(false, 'Unknown priority level. This error is likely caused by a bug in React. Please file an issue.'); + } + + // If we're in the middle of rendering a tree, do not update at the same + // expiration time that is already rendering. + if (nextRoot !== null && expirationTime === nextRenderExpirationTime) { + expirationTime -= 1; } } - if (isBatchingInteractiveUpdates) { - // This is an interactive update. Keep track of the lowest pending - // interactive expiration time. This allows us to synchronously flush - // all interactive updates when needed. - if (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime) { - lowestPriorityPendingInteractiveExpirationTime = expirationTime; - } + + // Keep track of the lowest pending interactive expiration time. This + // allows us to synchronously flush all interactive updates + // when needed. + // TODO: Move this to renderer? + if (priorityLevel === unstable_UserBlockingPriority && (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime)) { + lowestPriorityPendingInteractiveExpirationTime = expirationTime; } + return expirationTime; } @@ -18360,57 +19815,69 @@ function renderDidError() { nextRenderDidError = true; } -function retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) { - var retryTime = void 0; +function pingSuspendedRoot(root, thenable, pingTime) { + // A promise that previously suspended React from committing has resolved. + // If React is still suspended, try again at the previous level (pingTime). - if (isPriorityLevelSuspended(root, suspendedTime)) { - // Ping at the original level - retryTime = suspendedTime; + var pingCache = root.pingCache; + if (pingCache !== null) { + // The thenable resolved, so we no longer need to memoize, because it will + // never be thrown again. + pingCache.delete(thenable); + } - markPingedPriorityLevel(root, retryTime); + if (nextRoot !== null && nextRenderExpirationTime === pingTime) { + // Received a ping at the same priority level at which we're currently + // rendering. Restart from the root. + nextRoot = null; } else { - // Suspense already timed out. Compute a new expiration time - var currentTime = requestCurrentTime(); - retryTime = computeExpirationForFiber(currentTime, boundaryFiber); + // Confirm that the root is still suspended at this level. Otherwise exit. + if (isPriorityLevelSuspended(root, pingTime)) { + // Ping at the original level + markPingedPriorityLevel(root, pingTime); + var rootExpirationTime = root.expirationTime; + if (rootExpirationTime !== NoWork) { + requestWork(root, rootExpirationTime); + } + } + } +} + +function retryTimedOutBoundary(boundaryFiber, thenable) { + // The boundary fiber (a Suspense component) previously timed out and was + // rendered in its fallback state. One of the promises that suspended it has + // resolved, which means at least part of the tree was likely unblocked. Try + var retryCache = void 0; + if (enableSuspenseServerRenderer) { + switch (boundaryFiber.tag) { + case SuspenseComponent: + retryCache = boundaryFiber.stateNode; + break; + case DehydratedSuspenseComponent: + retryCache = boundaryFiber.memoizedState; + break; + default: + invariant(false, 'Pinged unknown suspense boundary type. This is probably a bug in React.'); + } + } else { + retryCache = boundaryFiber.stateNode; + } + if (retryCache !== null) { + // The thenable resolved, so we no longer need to memoize, because it will + // never be thrown again. + retryCache.delete(thenable); + } + + var currentTime = requestCurrentTime(); + var retryTime = computeExpirationForFiber(currentTime, boundaryFiber); + var root = scheduleWorkToRoot(boundaryFiber, retryTime); + if (root !== null) { markPendingPriorityLevel(root, retryTime); - } - - // TODO: If the suspense fiber has already rendered the primary children - // without suspending (that is, all of the promises have already resolved), - // we should not trigger another update here. One case this happens is when - // we are in sync mode and a single promise is thrown both on initial render - // and on update; we attach two .then(retrySuspendedRoot) callbacks and each - // one performs Sync work, rerendering the Suspense. - - if ((boundaryFiber.mode & ConcurrentMode) !== NoContext) { - if (root === nextRoot && nextRenderExpirationTime === suspendedTime) { - // Received a ping at the same priority level at which we're currently - // rendering. Restart from the root. - nextRoot = null; + var rootExpirationTime = root.expirationTime; + if (rootExpirationTime !== NoWork) { + requestWork(root, rootExpirationTime); } } - - scheduleWorkToRoot(boundaryFiber, retryTime); - if ((boundaryFiber.mode & ConcurrentMode) === NoContext) { - // Outside of concurrent mode, we must schedule an update on the source - // fiber, too, since it already committed in an inconsistent state and - // therefore does not have any pending work. - scheduleWorkToRoot(sourceFiber, retryTime); - var sourceTag = sourceFiber.tag; - if (sourceTag === ClassComponent && sourceFiber.stateNode !== null) { - // When we try rendering again, we should not reuse the current fiber, - // since it's known to be in an inconsistent state. Use a force updte to - // prevent a bail out. - var update = createUpdate(retryTime); - update.tag = ForceUpdate; - enqueueUpdate(sourceFiber, update); - } - } - - var rootExpirationTime = root.expirationTime; - if (rootExpirationTime !== NoWork) { - requestWork(root, rootExpirationTime); - } } function scheduleWorkToRoot(fiber, expirationTime) { @@ -18490,6 +19957,14 @@ function scheduleWorkToRoot(fiber, expirationTime) { return root; } +function warnIfNotCurrentlyBatchingInDev(fiber) { + { + if (isRendering === false && isBatchingUpdates === false) { + warningWithoutStack$1(false, 'An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see in the browser." + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber)); + } + } +} + function scheduleWork(fiber, expirationTime) { var root = scheduleWorkToRoot(fiber, expirationTime); if (root === null) { @@ -18532,13 +20007,9 @@ function scheduleWork(fiber, expirationTime) { } function syncUpdates(fn, a, b, c, d) { - var previousExpirationContext = expirationContext; - expirationContext = Sync; - try { + return unstable_runWithPriority(unstable_ImmediatePriority, function () { return fn(a, b, c, d); - } finally { - expirationContext = previousExpirationContext; - } + }); } // TODO: Everything below this is written as if it has been lifted to the @@ -18559,7 +20030,6 @@ var unhandledError = null; var isBatchingUpdates = false; var isUnbatchingUpdates = false; -var isBatchingInteractiveUpdates = false; var completedBatches = null; @@ -19033,7 +20503,9 @@ function completeRoot(root, finishedWork, expirationTime) { lastCommittedRootDuringThisBatch = root; nestedUpdateCount = 0; } - commitRoot(root, finishedWork); + unstable_runWithPriority(unstable_ImmediatePriority, function () { + commitRoot(root, finishedWork); + }); } function onUncaughtError(error) { @@ -19091,9 +20563,6 @@ function flushSync(fn, a) { } function interactiveUpdates$1(fn, a, b) { - if (isBatchingInteractiveUpdates) { - return fn(a, b); - } // If there are any pending interactive updates, synchronously flush them. // This needs to happen before we read any handlers, because the effect of // the previous event may influence which handlers are called during @@ -19103,14 +20572,13 @@ function interactiveUpdates$1(fn, a, b) { performWork(lowestPriorityPendingInteractiveExpirationTime, false); lowestPriorityPendingInteractiveExpirationTime = NoWork; } - var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates; var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingInteractiveUpdates = true; isBatchingUpdates = true; try { - return fn(a, b); + return unstable_runWithPriority(unstable_UserBlockingPriority, function () { + return fn(a, b); + }); } finally { - isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates; isBatchingUpdates = previousIsBatchingUpdates; if (!isBatchingUpdates && !isRendering) { performSyncWork(); @@ -19299,10 +20767,43 @@ function findHostInstanceWithNoPortals(fiber) { return hostFiber.stateNode; } +var overrideProps = null; + +{ + var copyWithSetImpl = function (obj, path, idx, value) { + if (idx >= path.length) { + return value; + } + var key = path[idx]; + var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); + // $FlowFixMe number or string is fine here + updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value); + return updated; + }; + + var copyWithSet = function (obj, path, value) { + return copyWithSetImpl(obj, path, 0, value); + }; + + // Support DevTools props for function components, forwardRef, memo, host components, etc. + overrideProps = function (fiber, path, value) { + flushPassiveEffects(); + fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + scheduleWork(fiber, Sync); + }; +} + function injectIntoDevTools(devToolsConfig) { var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + return injectInternals(_assign({}, devToolsConfig, { + overrideProps: overrideProps, + currentDispatcherRef: ReactCurrentDispatcher, findHostInstanceByFiber: function (fiber) { var hostFiber = findCurrentHostFiber(fiber); if (hostFiber === null) { @@ -19340,10 +20841,11 @@ implementation) { // TODO: this is special because it gets imported during build. -var ReactVersion = '16.6.3'; +var ReactVersion = '16.8.4'; // TODO: This type is shared between the reconciler and ReactDOM, but will // eventually be lifted out to the renderer. + var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; var topLevelUpdateWarnings = void 0; @@ -19652,9 +21154,6 @@ function legacyCreateRootFromDOMContainer(container, forceHydrate) { } function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) { - // TODO: Ensure all entry points contain this check - !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0; - { topLevelUpdateWarnings(container); } @@ -19698,7 +21197,7 @@ function legacyRenderSubtreeIntoContainer(parentComponent, children, container, return getPublicRootInstance(root._internalRoot); } -function createPortal(children, container) { +function createPortal$$1(children, container) { var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0; @@ -19707,7 +21206,7 @@ function createPortal(children, container) { } var ReactDOM = { - createPortal: createPortal, + createPortal: createPortal$$1, findDOMNode: function (componentOrElement) { { @@ -19730,19 +21229,32 @@ var ReactDOM = { return findHostInstance(componentOrElement); }, hydrate: function (element, container, callback) { + !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0; + { + !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0; + } // TODO: throw or warn if we couldn't hydrate? return legacyRenderSubtreeIntoContainer(null, element, container, true, callback); }, render: function (element, container, callback) { + !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0; + { + !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call root.render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0; + } return legacyRenderSubtreeIntoContainer(null, element, container, false, callback); }, unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) { + !isValidContainer(containerNode) ? invariant(false, 'Target container is not a DOM element.') : void 0; !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0; return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback); }, unmountComponentAtNode: function (container) { !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0; + { + !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. Did you mean to call root.unmount()?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0; + } + if (container._reactRootContainer) { { var rootEl = getReactRootElementInContainer(container); @@ -19782,7 +21294,7 @@ var ReactDOM = { didWarnAboutUnstableCreatePortal = true; lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.'); } - return createPortal.apply(undefined, arguments); + return createPortal$$1.apply(undefined, arguments); }, @@ -19792,6 +21304,7 @@ var ReactDOM = { flushSync: flushSync, + unstable_createRoot: createRoot, unstable_flushControlled: flushControlled, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { @@ -19804,14 +21317,17 @@ var ReactDOM = { function createRoot(container, options) { var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot'; !isValidContainer(container) ? invariant(false, '%s(...): Target container is not a DOM element.', functionName) : void 0; + { + !!container._reactRootContainer ? warningWithoutStack$1(false, 'You are calling ReactDOM.%s() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0; + container._reactHasBeenPassedToCreateRootDEV = true; + } var hydrate = options != null && options.hydrate === true; return new ReactRoot(container, true, hydrate); } if (enableStableConcurrentModeAPIs) { ReactDOM.createRoot = createRoot; -} else { - ReactDOM.unstable_createRoot = createRoot; + ReactDOM.unstable_createRoot = undefined; } var foundDevTools = injectIntoDevTools({ diff --git a/wp-includes/js/dist/vendor/react-dom.min.js b/wp-includes/js/dist/vendor/react-dom.min.js index 8e5f9574cf..6cd052e7f2 100644 --- a/wp-includes/js/dist/vendor/react-dom.min.js +++ b/wp-includes/js/dist/vendor/react-dom.min.js @@ -1,4 +1,4 @@ -/** @license React v16.6.1 +/** @license React v16.8.4 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -9,196 +9,212 @@ /* Modernizr 3.0.0pre (Custom Build) | MIT */ -'use strict';(function(Y,cb){"object"===typeof exports&&"undefined"!==typeof module?module.exports=cb(require("react")):"function"===typeof define&&define.amd?define(["react"],cb):Y.ReactDOM=cb(Y.React)})(this,function(Y){function cb(a,b,c,d,e,f,g,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[c,d,e,f,g,h],l=0;a=Error(b.replace(/%s/g,function(){return k[l++]}));a.name= -"Invariant Violation"}a.framesToPop=1;throw a;}}function p(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;dthis.eventPool.length&&this.eventPool.push(a)}function he(a){a.eventPool=[];a.getPooled=Lg;a.release=Mg}function ie(a,b){switch(a){case "keyup":return-1!==Ng.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function je(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}function Og(a,b){switch(a){case "compositionend":return je(b); -case "keypress":if(32!==b.which)return null;ke=!0;return le;case "textInput":return a=b.data,a===le&&ke?null:a;default:return null}}function Pg(a,b){if(Ia)return"compositionend"===a||!Oc&&ie(a,b)?(a=ge(),Qb=Nc=ia=null,Ia=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1b}return!1}function K(a,b,c,d,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b}function Yc(a,b,c,d){var e=x.hasOwnProperty(b)? -x[b]:null;var f=null!==e?0===e.type:d?!1:!(2$b.length&&$b.push(a)}}}function Ue(a){Object.prototype.hasOwnProperty.call(a,ac)||(a[ac]=hh++,Ve[a[ac]]= -{});return Ve[a[ac]]}function dd(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}function We(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Xe(a,b){var c=We(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=We(c)}}function Ye(a,b){return a&&b?a=== -b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Ye(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function Ze(){for(var a=window,b=dd();b instanceof a.HTMLIFrameElement;){try{a=b.contentDocument.defaultView}catch(c){break}b=dd(a.document)}return b}function ed(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b|| -"true"===a.contentEditable)}function $e(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(fd||null==Ma||Ma!==dd(c))return null;c=Ma;"selectionStart"in c&&ed(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return kb&&ib(kb,c)?null:(kb=c,a=J.getPooled(af.select,gd,a,b),a.type="select",a.target=Ma,Ga(a), -a)}function ih(a){var b="";Y.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function hd(a,b){a=y({children:void 0},b);if(b=ih(b.children))a.children=b;return a}function Na(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e=b.length?void 0:p("93"),b=b[0]),c=b),null==c&&(c=""));a._wrapperState={initialValue:ma(c)}}function cf(a,b){var c=ma(b.value),d=ma(b.defaultValue);null!=c&&(c=""+c,c!== -a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function df(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jd(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?df(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}function ef(a,b,c){return null==b||"boolean"===typeof b|| -""===b?"":c||"number"!==typeof b||0===b||lb.hasOwnProperty(a)&&lb[a]?(""+b).trim():b+"px"}function ff(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=ef(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e}}function kd(a,b){b&&(jh[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML?p("137",a,""):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?p("60"):void 0,"object"===typeof b.dangerouslySetInnerHTML&&"__html"in b.dangerouslySetInnerHTML? -void 0:p("61")),null!=b.style&&"object"!==typeof b.style?p("62",""):void 0)}function ld(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return!1;default:return!0}}function ba(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var c=Ue(a);b=Gc[b];for(var d=0;dOa||(a.current=od[Oa],od[Oa]=null,Oa--)}function O(a,b,c){Oa++;od[Oa]=a.current;a.current=b}function Pa(a,b){var c=a.type.contextTypes;if(!c)return na;var d= -a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function E(a){a=a.childContextTypes;return null!==a&&void 0!==a}function cc(a){L(I,a);L(F,a)}function pd(a){L(I,a);L(F,a)}function jf(a,b,c){F.current!==na?p("168"):void 0;O(F,b,a);O(I,c,a)}function kf(a,b,c){var d=a.stateNode;a= -b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)e in a?void 0:p("108",ka(b)||"Unknown",e);return y({},c,d)}function dc(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||na;va=F.current;O(F,b,a);O(I,I.current,a);return!0}function lf(a,b,c){var d=a.stateNode;d?void 0:p("169");c?(b=kf(a,b,va),d.__reactInternalMemoizedMergedChildContext=b,L(I,a),L(F,a),O(F,b,a)):L(I,a);O(I,c,a)}function mf(a){return function(b){try{return a(b)}catch(c){}}} -function kh(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{var c=b.inject(a);qd=mf(function(a){return b.onCommitFiberRoot(c,a)});rd=mf(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0}function lh(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.firstContextDependency= -this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.childExpirationTime=this.expirationTime=0;this.alternate=null}function sd(a){a=a.prototype;return!(!a||!a.isReactComponent)}function mh(a){if("function"===typeof a)return sd(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Vc)return 11;if(a===Wc)return 14}return 2}function wa(a,b,c){c=a.alternate;null===c?(c=R(a.tag,b,a.key,a.mode),c.elementType=a.elementType, -c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.childExpirationTime=a.childExpirationTime;c.expirationTime=a.expirationTime;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;c.firstContextDependency=a.firstContextDependency;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function ec(a,b,c,d,e,f){var g=2;d=a;if("function"=== -typeof a)sd(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case la:return oa(c.children,e,f,b);case Sc:return nf(c,e|3,f,b);case Tc:return nf(c,e|2,f,b);case Ub:return a=R(12,c,b,e|4),a.elementType=Ub,a.type=Ub,a.expirationTime=f,a;case Uc:return a=R(13,c,b,e),b=Uc,a.elementType=b,a.type=b,a.expirationTime=f,a;default:if("object"===typeof a&&null!==a)switch(a.$$typeof){case Ae:g=10;break a;case ze:g=9;break a;case Vc:g=11;break a;case Wc:g=14;break a;case Be:g=16;d=null;break a}p("130", -null==a?a:typeof a,"")}b=R(g,c,b,e);b.elementType=a;b.type=d;b.expirationTime=f;return b}function oa(a,b,c,d){a=R(7,a,d,b);a.expirationTime=c;return a}function nf(a,b,c,d){a=R(8,a,d,b);b=0===(b&1)?Tc:Sc;a.elementType=b;a.type=b;a.expirationTime=c;return a}function td(a,b,c){a=R(6,a,null,b);a.expirationTime=c;return a}function ud(a,b,c){b=R(4,null!==a.children?a.children:[],a.key,b);b.expirationTime=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation}; -return b}function nb(a,b){a.didError=!1;var c=a.earliestPendingTime;0===c?a.earliestPendingTime=a.latestPendingTime=b:cb&&(a.latestPendingTime=b);fc(b,a)}function of(a,b){a.didError=!1;var c=a.latestPingedTime;0!==c&&c>=b&&(a.latestPingedTime=0);c=a.earliestPendingTime;var d=a.latestPendingTime;c===b?a.earliestPendingTime=d===b?a.latestPendingTime=0:d:d===b&&(a.latestPendingTime=c);c=a.earliestSuspendedTime;d=a.latestSuspendedTime;0===c?a.earliestSuspendedTime= -a.latestSuspendedTime=b:cb&&(a.latestSuspendedTime=b);fc(b,a)}function pf(a,b){var c=a.earliestPendingTime;a=a.earliestSuspendedTime;c>b&&(b=c);a>b&&(b=a);return b}function fc(a,b){var c=b.earliestSuspendedTime,d=b.latestSuspendedTime,e=b.earliestPendingTime,f=b.latestPingedTime;e=0!==e?e:f;0===e&&(0===a||da&&(a=c);b.nextExpirationTimeToWorkOn=e;b.expirationTime=a}function gc(a){return{baseState:a,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null, -lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function vd(a){return{baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function pa(a){return{expirationTime:a,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function hc(a,b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next= -b,a.lastUpdate=b)}function ca(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var e=null;null===d&&(d=a.updateQueue=gc(a.memoizedState))}else d=a.updateQueue,e=c.updateQueue,null===d?null===e?(d=a.updateQueue=gc(a.memoizedState),e=c.updateQueue=gc(c.memoizedState)):d=a.updateQueue=vd(e):null===e&&(e=c.updateQueue=vd(d));null===e||d===e?hc(d,b):null===d.lastUpdate||null===e.lastUpdate?(hc(d,b),hc(e,b)):(hc(d,b),e.lastUpdate=b)}function qf(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=gc(a.memoizedState): -rf(a,c);null===c.lastCapturedUpdate?c.firstCapturedUpdate=c.lastCapturedUpdate=b:(c.lastCapturedUpdate.next=b,c.lastCapturedUpdate=b)}function rf(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=vd(b));return b}function sf(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,"function"===typeof a?a.call(f,d,e):a;case 3:a.effectTag=a.effectTag&-2049|64;case 0:a=c.payload;e="function"===typeof a?a.call(f,d,e):a;if(null===e||void 0===e)break;return y({},d,e);case 2:qa=!0}return d} -function ob(a,b,c,d,e){qa=!1;b=rf(a,b);for(var f=b.baseState,g=null,h=0,k=b.firstUpdate,l=f;null!==k;){var m=k.expirationTime;mr?(q=m,m=null):q=m.sibling;var t=Df(e,m,h[r],k);if(null===t){null===m&&(m=q);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,r);null===p?l=t:p.sibling=t;p=t;m=q}if(r===h.length)return c(e,m),l;if(null===m){for(;rt?(q=r,r=null):q=r.sibling;var Sa=Df(e,r,A.value,k);if(null===Sa){r||(r=q);break}a&&r&&null===Sa.alternate&&b(e,r);g=f(Sa,g,t);null===m?l=Sa:m.sibling=Sa;m=Sa;r=q}if(A.done)return c(e, -r),l;if(null===r){for(;!A.done;t++,A=h.next())A=n(e,A.value,k),null!==A&&(g=f(A,g,t),null===m?l=A:m.sibling=A,m=A);return l}for(r=d(e,r);!A.done;t++,A=h.next())A=z(r,e,t,A.value,k),null!==A&&(a&&null!==A.alternate&&r.delete(null===A.key?t:A.key),g=f(A,g,t),null===m?l=A:m.sibling=A,m=A);a&&r.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===la&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case nc:a:{l= -f.key;for(k=d;null!==k;){if(k.key===l)if(7===k.tag?f.type===la:k.elementType===f.type){c(a,k.sibling);d=e(k,f.type===la?f.props.children:f.props,h);d.ref=ub(a,k,f);d.return=a;a=d;break a}else{c(a,k);break}else b(a,k);k=k.sibling}f.type===la?(d=oa(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=ec(f.type,f.key,f.props,null,a.mode,h),h.ref=ub(a,d,f),h.return=a,a=h)}return g(a);case La:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation=== -f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=ud(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=a,a=d):(c(a,d),d=td(f,a.mode,h),d.return=a,a=d),g(a);if(oc(f))return v(a,d,f,h);if(fb(f))return B(a,d,f,h);l&&mc(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:h=a.type,p("152",h.displayName||h.name||"Component")}return c(a, -d)}}function Ef(a,b){var c=R(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function Ff(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;default:return!1}}function Gf(a){if(za){var b= -Ta;if(b){var c=b;if(!Ff(a,b)){b=nd(c);if(!b||!Ff(a,b)){a.effectTag|=2;za=!1;da=a;return}Ef(da,c)}da=a;Ta=hf(b)}else a.effectTag|=2,za=!1,da=a}}function Hf(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag;)a=a.return;da=a}function Bd(a){if(a!==da)return!1;if(!za)return Hf(a),za=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!md(b,a.memoizedProps))for(b=Ta;b;)Ef(a,b),b=nd(b);Hf(a);Ta=da?nd(a.stateNode):null;return!0}function Cd(){Ta=da=null;za=!1}function P(a,b,c,d){b.child=null===a?Dd(b, -null,c,d):Ua(b,a.child,c,d)}function If(a,b,c,d,e){c=c.render;var f=b.ref;Qa(b,e);d=c(d,f);b.effectTag|=1;P(a,b,d,e);return b.child}function Jf(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!sd(g)&&void 0===g.defaultProps&&null===c.compare)return b.tag=15,b.type=g,Kf(a,b,g,d,e,f);a=ec(c.type,null,d,null,b.mode,f);a.ref=b.ref;a.return=b;return b.child=a}g=a.child;if(e=c)return Of(a,b,c);b=Aa(a,b,c);return null!==b?b.sibling:null}}return Aa(a,b,c)}b.expirationTime=0;switch(b.tag){case 2:d=b.elementType;null!==a&&(a.alternate= -null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;var e=Pa(b,F.current);Qa(b,c);e=d(a,e);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;if(E(d)){var f=!0;dc(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;var g=d.getDerivedStateFromProps;"function"===typeof g&&jc(b,d,g,a);e.updater=lc;b.stateNode=e;e._reactInternalFiber=b;Ad(b,d,a,c);b=Fd(null,b,d,!0,f,c)}else b.tag=0,P(null,b,e,c),b=b.child;return b;case 16:e= -b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);f=b.pendingProps;a=nh(e);b.type=a;e=b.tag=mh(a);f=T(a,f);g=void 0;switch(e){case 0:g=Ed(null,b,a,f,c);break;case 1:g=Mf(null,b,a,f,c);break;case 11:g=If(null,b,a,f,c);break;case 14:g=Jf(null,b,a,T(a.type,f),d,c);break;default:p("283",a)}return g;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:T(d,e),Ed(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:T(d,e),Mf(a,b,d,e,c);case 3:Nf(b);d= -b.updateQueue;null===d?p("282"):void 0;e=b.memoizedState;e=null!==e?e.element:null;ob(b,d,b.pendingProps,null,c);d=b.memoizedState.element;if(d===e)Cd(),b=Aa(a,b,c);else{e=b.stateNode;if(e=(null===a||null===a.child)&&e.hydrate)Ta=hf(b.stateNode.containerInfo),da=b,e=za=!0;e?(b.effectTag|=2,b.child=Dd(b,null,d,c)):(P(a,b,d,c),Cd());b=b.child}return b;case 5:return xf(b),null===a&&Gf(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,md(d,e)?g=null:null!==f&&md(d,f)&&(b.effectTag|= -16),Lf(a,b),1!==c&&b.mode&1&&e.hidden?(b.expirationTime=1,b=null):(P(a,b,g,c),b=b.child),b;case 6:return null===a&&Gf(b),null;case 13:return Of(a,b,c);case 4:return yd(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ua(b,null,d,c):P(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:T(d,e),If(a,b,d,e,c);case 7:return P(a,b,b.pendingProps,c),b.child;case 8:return P(a,b,b.pendingProps.children,c),b.child;case 12:return P(a,b,b.pendingProps.children,c),b.child; -case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;vf(b,f);if(null!==g){var h=g.value;f=h===f&&(0!==h||1/h===1/f)||h!==h&&f!==f?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0;if(0===f){if(g.children===e.children&&!I.current){b=Aa(a,b,c);break a}}else for(g=b.child,null!==g&&(g.return=b);null!==g;){h=g.firstContextDependency;if(null!==h){do{if(h.context===d&&0!==(h.observedBits&f)){if(1===g.tag){var k=pa(c);k.tag=2;ca(g,k)}g.expirationTime< -c&&(g.expirationTime=c);k=g.alternate;null!==k&&k.expirationTime\x3c/script>", -l=e.removeChild(e.firstChild)):"string"===typeof n.is?l=l.createElement(e,{is:n.is}):(l=l.createElement(e),"select"===e&&n.multiple&&(l.multiple=!0)):l=l.createElementNS(k,e);e=l;e[Z]=m;e[Nb]=g;cg(e,b,!1,!1);m=e;l=f;n=g;var x=h,z=ld(l,n);switch(l){case "iframe":case "object":v("load",m);h=n;break;case "video":case "audio":for(h=0;hg&&(g=e),h>g&&(g=h),f=f.sibling;b.childExpirationTime=g}if(null!==B)return B;null!==c&&0===(c.effectTag&1024)&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect= -a.lastEffect),1=z)n=0;else if(-1===n||z component higher in the tree to provide a loading indicator or placeholder to display."+Xc(k))}Id=!0;l=ic(l,k);g=h;do{switch(g.tag){case 3:k=l;g.effectTag|=2048;g.expirationTime=f;f=Gd(g,k,f);qf(g,f);break a;case 1:if(k=l,h=g.type,m=g.stateNode, -0===(g.effectTag&64)&&("function"===typeof h.getDerivedStateFromError||null!==m&&"function"===typeof m.componentDidCatch&&(null===sa||!sa.has(m)))){g.effectTag|=2048;g.expirationTime=f;f=Xf(g,k,f);qf(g,f);break a}}g=g.return}while(null!==g)}B=ag(e);continue}}}break}while(1);ta=!1;qb=xa=pb=pc.currentDispatcher=null;if(d)U=null,a.finishedWork=null;else if(null!==B)a.finishedWork=null;else{d=a.current.alternate;null===d?p("281"):void 0;U=null;if(Id){e=a.latestPendingTime;f=a.latestSuspendedTime;g=a.latestPingedTime; -if(0!==e&&eb?0:b)):(a.pendingCommitExpirationTime=c,a.finishedWork=d)}}function Va(a,b){for(var c=a.return;null!==c;){switch(c.tag){case 1:var d=c.stateNode;if("function"===typeof c.type.getDerivedStateFromError|| -"function"===typeof d.componentDidCatch&&(null===sa||!sa.has(d))){a=ic(b,a);a=Xf(c,a,1073741823);ca(c,a);Ca(c,1073741823);return}break;case 3:a=ic(b,a);a=Gd(c,a,1073741823);ca(c,a);Ca(c,1073741823);return}c=c.return}3===a.tag&&(c=ic(b,a),c=Gd(a,c,1073741823),ca(a,c),Ca(a,1073741823))}function zb(a,b){0!==Ab?a=Ab:ta?a=rc?1073741823:H:b.mode&1?(a=Wa?1073741822-10*(((1073741822-a+15)/10|0)+1):1073741822-25*(((1073741822-a+500)/25|0)+1),null!==U&&a===H&&--a):a=1073741823;Wa&&(0===ea||a=f){f=e=d;a.didError=!1;var g=a.latestPingedTime;if(0===g||g>f)a.latestPingedTime=f;fc(f,a)}else e=ra(),e=zb(e,b),nb(a,e);0!==(b.mode&1)&&a===U&&H===d&&(U=null);Ld(b,e);0===(b.mode&1)&&(Ld(c,e),1===c.tag&&null!==c.stateNode&&(b=pa(e),b.tag=2,ca(c,b)));c=a.expirationTime;0!==c&&gg(a,c)}function Ld(a,b){a.expirationTimeH&&Yf(),nb(a,b),ta&&!rc&&U===a||gg(a,a.expirationTime),Bb>uh&&(Bb=0,p("185")))}function hg(a,b,c,d,e){var f=Ab;Ab=1073741823;try{return a(b,c,d,e)}finally{Ab=f}}function Cb(){V= -1073741822-((Md()-Nd)/10|0)}function ig(a,b){if(0!==sc){if(ba.expirationTime&&(a.expirationTime=b);M||(C?vc&&(X=a,u=1073741823,wc(a,1073741823,!1)):1073741823===b?fa(1073741823,!1):ig(a,b))}function uc(){var a=0,b=null;if(null!==N)for(var c=N,d=W;null!==d;){var e=d.expirationTime;if(0===e){null===c||null===N?p("244"):void 0;if(d===d.nextScheduledRoot){W=N=d.nextScheduledRoot=null;break}else if(d===W)W=e=d.nextScheduledRoot,N.nextScheduledRoot=e,d.nextScheduledRoot= -null;else if(d===N){N=c;N.nextScheduledRoot=W;d.nextScheduledRoot=null;break}else c.nextScheduledRoot=d.nextScheduledRoot,d.nextScheduledRoot=null;d=c.nextScheduledRoot}else{e>a&&(a=e,b=d);if(d===N)break;if(1073741823===a)break;c=d;d=d.nextScheduledRoot}}X=b;u=a}function qc(){return xc?!0:zh()?xc=!0:!1}function wh(){try{if(!qc()&&null!==W){Cb();var a=W;do{var b=a.expirationTime;0!==b&&V<=b&&(a.nextExpirationTimeToWorkOn=V);a=a.nextScheduledRoot}while(a!==W)}fa(0,!0)}finally{xc=!1}}function fa(a,b){uc(); -if(b)for(Cb(),Xa=V;null!==X&&0!==u&&a<=u&&!(xc&&V>u);)wc(X,u,V>u),uc(),Cb(),Xa=V;else for(;null!==X&&0!==u&&a<=u;)wc(X,u,!1),uc();b&&(sc=0,tc=null);0!==u&&ig(X,u);Bb=0;Od=null;if(null!==Ya)for(a=Ya,Ya=null,b=0;b=c&&(null===Ya?Ya=[d]:Ya.push(d),d._defer)){a.finishedWork=b;a.expirationTime=0;return}a.finishedWork=null;a===Od?Bb++:(Od=a,Bb=0);rc=ta=!0;a.current=== -b?p("177"):void 0;c=a.pendingCommitExpirationTime;0===c?p("261"):void 0;a.pendingCommitExpirationTime=0;d=b.expirationTime;var e=b.childExpirationTime;d=e>d?e:d;a.didError=!1;0===d?(a.earliestPendingTime=0,a.latestPendingTime=0,a.earliestSuspendedTime=0,a.latestSuspendedTime=0,a.latestPingedTime=0):(e=a.latestPendingTime,0!==e&&(e>d?a.earliestPendingTime=a.latestPendingTime=0:a.earliestPendingTime>d&&(a.earliestPendingTime=a.latestPendingTime)),e=a.earliestSuspendedTime,0===e?nb(a,d):de&&nb(a,d));fc(0,a);pc.current=null;1t&&(G=t,t=r,r=G),G=Xe(w, -r),y=Xe(w,t),G&&y&&(1!==q.rangeCount||q.anchorNode!==G.node||q.anchorOffset!==G.offset||q.focusNode!==y.node||q.focusOffset!==y.offset)&&(D=D.createRange(),D.setStart(G.node,G.offset),q.removeAllRanges(),r>t?(q.addRange(D),q.extend(y.node,y.offset)):(D.setEnd(y.node,y.offset),q.addRange(D))))));D=[];for(q=w;q=q.parentNode;)1===q.nodeType&&D.push({element:q,left:q.scrollLeft,top:q.scrollTop});"function"===typeof w.focus&&w.focus();for(w=0;wE?b:E;0===b&&(sa=null);a.expirationTime=b;a.finishedWork=null}function Hd(a){null===X?p("246"):void 0;X.expirationTime=0;Za||(Za=!0,yc=a)}function lg(a,b){var c=C;C=!0;try{return a(b)}finally{(C=c)||M||fa(1073741823,!1)}}function mg(a,b){if(C&&!vc){vc=!0;try{return a(b)}finally{vc=!1}}return a(b)}function ng(a,b,c){if(Wa)return a(b,c);C||M||0===ea||(fa(ea,!1), -ea=0);var d=Wa,e=C;C=Wa=!0;try{return a(b,c)}finally{Wa=d,(C=e)||M||fa(1073741823,!1)}}function og(a,b,c,d,e){var f=b.current;a:if(c){c=c._reactInternalFiber;b:{2===jb(c)&&1===c.tag?void 0:p("170");var g=c;do{switch(g.tag){case 3:g=g.stateNode.context;break b;case 1:if(E(g.type)){g=g.stateNode.__reactInternalMemoizedMergedChildContext;break b}}g=g.return}while(null!==g);p("171");g=void 0}if(1===c.tag){var h=c.type;if(E(h)){c=kf(c,h,g);break a}}c=g}else c=na;null===b.context?b.context=c:b.pendingContext= -c;b=e;e=pa(d);e.payload={element:a};b=void 0===b?null:b;null!==b&&(e.callback=b);yb();ca(f,e);Ca(f,d);return d}function Rd(a,b,c,d){var e=b.current,f=ra();e=zb(f,e);return og(a,b,c,e,d)}function Sd(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Ah(a,b,c){var d=3=Td&&(b=Td-1);this._expirationTime=Td=b;this._root=a;this._callbacks=this._next=null;this._hasChildren=this._didComplete=!1;this._children=null;this._defer=!0}function ab(){this._callbacks=null;this._didCommit=!1;this._onCommit=this._onCommit.bind(this)}function bb(a,b,c){b=R(3,null,null,b?3:0);a={current:b,containerInfo:a,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0, -didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:c,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null};this._internalRoot=b.stateNode=a}function Ac(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function Bh(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute("data-reactroot"))); -if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new bb(a,!1,b)}function Bc(a,b,c,d,e){Ac(c)?void 0:p("200");var f=c._reactRootContainer;if(f){if("function"===typeof e){var g=e;e=function(){var a=Sd(f._internalRoot);g.call(a)}}null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)}else{f=c._reactRootContainer=Bh(c,d);if("function"===typeof e){var h=e;e=function(){var a=Sd(f._internalRoot);h.call(a)}}mg(function(){null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)})}return Sd(f._internalRoot)} -function pg(a,b){var c=2=Eb),le=String.fromCharCode(32),ha={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]}, -compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}}, -ke=!1,Ia=!1,Fh={eventTypes:ha,extractEvents:function(a,b,c,d){var e=void 0;var f=void 0;if(Oc)b:{switch(a){case "compositionstart":e=ha.compositionStart;break b;case "compositionend":e=ha.compositionEnd;break b;case "compositionupdate":e=ha.compositionUpdate;break b}e=void 0}else Ia?ie(a,c)&&(e=ha.compositionEnd):"keydown"===a&&229===c.keyCode&&(e=ha.compositionStart);e?(me&&"ko"!==c.locale&&(Ia||e!==ha.compositionStart?e===ha.compositionEnd&&Ia&&(f=ge()):(ia=d,Nc="value"in ia?ia.value:ia.textContent, -Ia=!0)),e=Ch.getPooled(e,b,c,d),f?e.data=f:(f=je(c),null!==f&&(e.data=f)),Ga(e),f=e):f=null;(a=Eh?Og(a,c):Pg(a,c))?(b=Dh.getPooled(ha.beforeInput,b,c,d),b.data=a,Ga(b)):b=null;return null===f?b:null===b?f:[f,b]}},Pc=null,Ja=null,Ka=null,se=function(a,b){return a(b)},Te=function(a,b,c){return a(b,c)},te=function(){},Qc=!1,Qg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Vd=Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -Sg=/^(.*)[\\\/]/,Q="function"===typeof Symbol&&Symbol.for,nc=Q?Symbol.for("react.element"):60103,La=Q?Symbol.for("react.portal"):60106,la=Q?Symbol.for("react.fragment"):60107,Tc=Q?Symbol.for("react.strict_mode"):60108,Ub=Q?Symbol.for("react.profiler"):60114,Ae=Q?Symbol.for("react.provider"):60109,ze=Q?Symbol.for("react.context"):60110,Sc=Q?Symbol.for("react.concurrent_mode"):60111,Vc=Q?Symbol.for("react.forward_ref"):60112,Uc=Q?Symbol.for("react.suspense"):60113,Wc=Q?Symbol.for("react.memo"):60115, -Be=Q?Symbol.for("react.lazy"):60116,ye="function"===typeof Symbol&&Symbol.iterator,Ug=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ce=Object.prototype.hasOwnProperty,Ee={},De={},x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){x[a]= -new K(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];x[b]=new K(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){x[a]=new K(a,2,!1,a.toLowerCase(),null)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){x[a]=new K(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){x[a]= -new K(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){x[a]=new K(a,3,!0,a,null)});["capture","download"].forEach(function(a){x[a]=new K(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){x[a]=new K(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){x[a]=new K(a,5,!1,a.toLowerCase(),null)});var Wd=/[\-:]([a-z])/g,Xd=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= -a.replace(Wd,Xd);x[b]=new K(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Wd,Xd);x[b]=new K(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Wd,Xd);x[b]=new K(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});x.tabIndex=new K("tabIndex",1,!1,"tabindex",null);var Je={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"}, -dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},gb=null,hb=null,Yd=!1;ja&&(Yd=ve("input")&&(!document.documentMode||9this.eventPool.length&&this.eventPool.push(a)}function Ne(a){a.eventPool=[];a.getPooled=yh;a.release=zh}function Oe(a,b){switch(a){case "keyup":return-1!==Ah.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function Pe(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}function Bh(a,b){switch(a){case "compositionend":return Pe(b); +case "keypress":if(32!==b.which)return null;Qe=!0;return Re;case "textInput":return a=b.data,a===Re&&Qe?null:a;default:return null}}function Ch(a,b){if(Sa)return"compositionend"===a||!hd&&Oe(a,b)?(a=Me(),hc=gd=qa=null,Sa=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1b}return!1}function K(a,b,c,d,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b}function rd(a,b,c,d){var e=A.hasOwnProperty(b)? +A[b]:null;var f=null!==e?0===e.type:d?!1:!(2rc.length&&rc.push(a)}}}function zf(a){Object.prototype.hasOwnProperty.call(a,sc)||(a[sc]=Vh++,Af[a[sc]]= +{});return Af[a[sc]]}function xd(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}function Bf(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Cf(a,b){var c=Bf(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Bf(c)}}function Df(a,b){return a&&b?a=== +b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Df(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function Ef(){for(var a=window,b=xd();b instanceof a.HTMLIFrameElement;){try{a=b.contentDocument.defaultView}catch(c){break}b=xd(a.document)}return b}function yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b|| +"true"===a.contentEditable)}function Wh(){var a=Ef();if(yd(a)){if("selectionStart"in a)var b={start:a.selectionStart,end:a.selectionEnd};else a:{b=(b=a.ownerDocument)&&b.defaultView||window;var c=b.getSelection&&b.getSelection();if(c&&0!==c.rangeCount){b=c.anchorNode;var d=c.anchorOffset,e=c.focusNode;c=c.focusOffset;try{b.nodeType,e.nodeType}catch(cj){b=null;break a}var f=0,g=-1,h=-1,l=0,k=0,m=a,n=null;b:for(;;){for(var p;;){m!==b||0!==d&&3!==m.nodeType||(g=f+d);m!==e||0!==c&&3!==m.nodeType||(h= +f+c);3===m.nodeType&&(f+=m.nodeValue.length);if(null===(p=m.firstChild))break;n=m;m=p}for(;;){if(m===a)break b;n===b&&++l===d&&(g=f);n===e&&++k===c&&(h=f);if(null!==(p=m.nextSibling))break;m=n;n=m.parentNode}m=p}b=-1===g||-1===h?null:{start:g,end:h}}else b=null}b=b||{start:0,end:0}}else b=null;return{focusedElem:a,selectionRange:b}}function Xh(a){var b=Ef(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Df(c.ownerDocument.documentElement,c)){if(null!==d&&yd(c))if(b=d.start,a=d.end, +void 0===a&&(a=b),"selectionStart"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Cf(c,f);var g=Cf(c,d);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset), +a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"===typeof c.focus&&c.focus();for(c=0;c=b.length?void 0:n("93"),b=b[0]),c=b),null==c&&(c=""));a._wrapperState={initialValue:ua(c)}}function Jf(a,b){var c=ua(b.value),d=ua(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Kf(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML"; +default:return"http://www.w3.org/1999/xhtml"}}function Dd(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Kf(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}function Lf(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||yb.hasOwnProperty(a)&&yb[a]?(""+b).trim():b+"px"}function Mf(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=Lf(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c, +e):a[c]=e}}function Ed(a,b){b&&(Zh[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML?n("137",a,""):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?n("60"):void 0,"object"===typeof b.dangerouslySetInnerHTML&&"__html"in b.dangerouslySetInnerHTML?void 0:n("61")),null!=b.style&&"object"!==typeof b.style?n("62",""):void 0)}function Fd(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return!1; +default:return!0}}function ha(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var c=zf(a);b=$c[b];for(var d=0;dYa||(a.current= +Id[Ya],Id[Ya]=null,Ya--)}function L(a,b,c){Ya++;Id[Ya]=a.current;a.current=b}function Za(a,b){var c=a.type.contextTypes;if(!c)return va;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function E(a){a=a.childContextTypes;return null!==a&&void 0!==a}function uc(a){D(M,a); +D(F,a)}function Jd(a){D(M,a);D(F,a)}function Qf(a,b,c){F.current!==va?n("168"):void 0;L(F,b,a);L(M,c,a)}function Rf(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)e in a?void 0:n("108",sa(b)||"Unknown",e);return B({},c,d)}function vc(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||va;Fa=F.current;L(F,b,a);L(M,M.current,a);return!0}function Sf(a,b,c){var d=a.stateNode;d?void 0:n("169");c?(b= +Rf(a,b,Fa),d.__reactInternalMemoizedMergedChildContext=b,D(M,a),D(F,a),L(F,b,a)):D(M,a);L(M,c,a)}function Tf(a){return function(b){try{return a(b)}catch(c){}}}function ai(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{var c=b.inject(a);Kd=Tf(function(a){return b.onCommitFiberRoot(c,a)});Ld=Tf(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0}function bi(a,b,c,d){this.tag=a;this.key= +c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.childExpirationTime=this.expirationTime=0;this.alternate=null}function Md(a){a=a.prototype;return!(!a||!a.isReactComponent)}function ci(a){if("function"===typeof a)return Md(a)?1:0;if(void 0!==a&& +null!==a){a=a.$$typeof;if(a===od)return 11;if(a===pd)return 14}return 2}function Ga(a,b,c){c=a.alternate;null===c?(c=S(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.childExpirationTime=a.childExpirationTime;c.expirationTime=a.expirationTime;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue; +c.contextDependencies=a.contextDependencies;c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function wc(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)Md(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case ta:return wa(c.children,e,f,b);case ld:return Uf(c,e|3,f,b);case md:return Uf(c,e|2,f,b);case lc:return a=S(12,c,b,e|4),a.elementType=lc,a.type=lc,a.expirationTime=f,a;case nd:return a=S(13,c,b,e),b=nd,a.elementType=b,a.type=b,a.expirationTime=f,a;default:if("object"===typeof a&& +null!==a)switch(a.$$typeof){case ff:g=10;break a;case ef:g=9;break a;case od:g=11;break a;case pd:g=14;break a;case gf:g=16;d=null;break a}n("130",null==a?a:typeof a,"")}b=S(g,c,b,e);b.elementType=a;b.type=d;b.expirationTime=f;return b}function wa(a,b,c,d){a=S(7,a,d,b);a.expirationTime=c;return a}function Uf(a,b,c,d){a=S(8,a,d,b);b=0===(b&1)?md:ld;a.elementType=b;a.type=b;a.expirationTime=c;return a}function Nd(a,b,c){a=S(6,a,null,b);a.expirationTime=c;return a}function Od(a,b,c){b=S(4,null!==a.children? +a.children:[],a.key,b);b.expirationTime=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}function Bb(a,b){a.didError=!1;var c=a.earliestPendingTime;0===c?a.earliestPendingTime=a.latestPendingTime=b:cb&&(a.latestPendingTime=b);xc(b,a)}function di(a,b){a.didError=!1;if(0===b)a.earliestPendingTime=0,a.latestPendingTime=0,a.earliestSuspendedTime=0,a.latestSuspendedTime=0,a.latestPingedTime=0;else{b< +a.latestPingedTime&&(a.latestPingedTime=0);var c=a.latestPendingTime;0!==c&&(c>b?a.earliestPendingTime=a.latestPendingTime=0:a.earliestPendingTime>b&&(a.earliestPendingTime=a.latestPendingTime));c=a.earliestSuspendedTime;0===c?Bb(a,b):bc&&Bb(a,b)}xc(0,a)}function Vf(a,b){a.didError=!1;a.latestPingedTime>=b&&(a.latestPingedTime=0);var c=a.earliestPendingTime,d=a.latestPendingTime;c===b?a.earliestPendingTime= +d===b?a.latestPendingTime=0:d:d===b&&(a.latestPendingTime=c);c=a.earliestSuspendedTime;d=a.latestSuspendedTime;0===c?a.earliestSuspendedTime=a.latestSuspendedTime=b:cb&&(a.latestSuspendedTime=b);xc(b,a)}function Wf(a,b){var c=a.earliestPendingTime;a=a.earliestSuspendedTime;c>b&&(b=c);a>b&&(b=a);return b}function xc(a,b){var c=b.earliestSuspendedTime,d=b.latestSuspendedTime,e=b.earliestPendingTime,f=b.latestPingedTime;e=0!==e?e:f;0===e&&(0===a||da&&(a=c);b.nextExpirationTimeToWorkOn=e;b.expirationTime=a}function P(a,b){if(a&&a.defaultProps){b=B({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c])}return b}function ei(a){var b=a._result;switch(a._status){case 1:return b;case 2:throw b;case 0:throw b;default:a._status=0;b=a._ctor;b=b();b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)});switch(a._status){case 1:return a._result;case 2:throw a._result; +}a._result=b;throw b;}}function yc(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:B({},b,c);a.memoizedState=c;d=a.updateQueue;null!==d&&0===a.expirationTime&&(d.baseState=c)}function Xf(a,b,c,d,e,f,g){a=a.stateNode;return"function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!vb(c,d)||!vb(e,f):!0}function Yf(a,b,c,d){var e=!1;d=va;var f=b.contextType;"object"===typeof f&&null!==f?f=T(f):(d=E(b)?Fa:F.current,e=b.contextTypes, +f=(e=null!==e&&void 0!==e)?Za(a,d):va);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=zc;a.stateNode=b;b._reactInternalFiber=a;e&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=d,a.__reactInternalMemoizedMaskedChildContext=f);return b}function Zf(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);"function"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!== +a&&zc.enqueueReplaceState(b,b.state,null)}function Pd(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs=$f;var f=b.contextType;"object"===typeof f&&null!==f?e.context=T(f):(f=E(b)?Fa:F.current,e.context=Za(a,f));f=a.updateQueue;null!==f&&(Cb(a,f,c,e,d),e.state=a.memoizedState);f=b.getDerivedStateFromProps;"function"===typeof f&&(yc(a,b,f,c),e.state=a.memoizedState);"function"===typeof b.getDerivedStateFromProps||"function"===typeof e.getSnapshotBeforeUpdate||"function"!==typeof e.UNSAFE_componentWillMount&& +"function"!==typeof e.componentWillMount||(b=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&zc.enqueueReplaceState(e,e.state,null),f=a.updateQueue,null!==f&&(Cb(a,f,c,e,d),e.state=a.memoizedState));"function"===typeof e.componentDidMount&&(a.effectTag|=4)}function Db(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;var d=void 0;c&&(1!== +c.tag?n("309"):void 0,d=c.stateNode);d?void 0:n("147",a);var e=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===e)return b.ref;b=function(a){var b=d.refs;b===$f&&(b=d.refs={});null===a?delete b[e]:b[e]=a};b._stringRef=e;return b}"string"!==typeof a?n("284"):void 0;c._owner?void 0:n("290",a)}return a}function Ac(a,b){"textarea"!==a.type&&n("31","[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,"")}function ag(a){function b(b, +c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c;c.nextEffect=null;c.effectTag=8}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b,c){a=Ga(a,b,c);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return c;d=b.alternate;if(null!==d)return d=d.index,dq?(v=n,n=null):v=n.sibling;var Q=p(e,n,h[q],k);if(null===Q){null===n&&(n=v);break}a&& +n&&null===Q.alternate&&b(e,n);g=f(Q,g,q);null===m?l=Q:m.sibling=Q;m=Q;n=v}if(q===h.length)return c(e,n),l;if(null===n){for(;qv?(Q=q,q=null):Q=q.sibling;var u=p(e,q,t.value,k);if(null===u){q||(q=Q);break}a&&q&&null===u.alternate&&b(e,q);g=f(u,g,v);null===m?l=u:m.sibling=u;m=u;q=Q}if(t.done)return c(e,q),l;if(null===q){for(;!t.done;v++,t=h.next())t=Ff(e,t.value,k),null!==t&&(g=f(t,g,v),null===m?l=t:m.sibling=t,m=t);return l}for(q=d(e,q);!t.done;v++,t=h.next())t=r(q,e,v,t.value,k),null!==t&&(a&&null!==t.alternate&&q.delete(null===t.key? +v:t.key),g=f(t,g,v),null===m?l=t:m.sibling=t,m=t);a&&q.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===ta&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Bc:a:{l=f.key;for(k=d;null!==k;){if(k.key===l)if(7===k.tag?f.type===ta:k.elementType===f.type){c(a,k.sibling);d=e(k,f.type===ta?f.props.children:f.props,h);d.ref=Db(a,k,f);d.return=a;a=d;break a}else{c(a,k);break}else b(a,k); +k=k.sibling}f.type===ta?(d=wa(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=wc(f.type,f.key,f.props,null,a.mode,h),h.ref=Db(a,d,f),h.return=a,a=h)}return g(a);case Va:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=Od(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"=== +typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=a,a=d):(c(a,d),d=Nd(f,a.mode,h),d.return=a,a=d),g(a);if(Cc(f))return u(a,d,f,h);if(sb(f))return x(a,d,f,h);l&&Ac(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:h=a.type,n("152",h.displayName||h.name||"Component")}return c(a,d)}}function Ha(a){a===Eb?n("174"):void 0;return a}function Qd(a,b){L(Fb,b,a);L(Gb,a,a);L(U,Eb,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Dd(null, +"");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Dd(b,c)}D(U,a);L(U,b,a)}function $a(a){D(U,a);D(Gb,a);D(Fb,a)}function bg(a){Ha(Fb.current);var b=Ha(U.current);var c=Dd(b,a.type);b!==c&&(L(Gb,a,a),L(U,c,a))}function Rd(a){Gb.current===a&&(D(U,a),D(Gb,a))}function V(){n("307")}function Sd(a,b){if(null===b)return!1;for(var c=0;cKb&&(Kb=m)):f=l.eagerReducer===a?l.eagerState:a(f,l.action);g=l;l=l.next}while(null!==l&&l!==d);k||(h= +g,e=f);Ea(f,b.memoizedState)||(ja=!0);b.memoizedState=f;b.baseUpdate=h;b.baseState=e;c.eagerReducer=a;c.eagerState=f}return[b.memoizedState,c.dispatch]}function Wd(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};null===X?(X={lastEffect:null},X.lastEffect=a.next=a):(b=X.lastEffect,null===b?X.lastEffect=a.next=a:(c=b.next,b.next=a,a.next=c,X.lastEffect=a));return a}function Xd(a,b,c,d){var e=cb();Lb|=a;e.memoizedState=Wd(b,c,void 0,void 0===d?null:d)}function Yd(a,b,c,d){var e=Mb();d=void 0=== +d?null:d;var f=void 0;if(null!==y){var g=y.memoizedState;f=g.destroy;if(null!==d&&Sd(d,g.deps)){Wd(db,c,f,d);return}}Lb|=a;e.memoizedState=Wd(b,c,f,d)}function fg(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function gg(a,b){}function hg(a,b,c){25>Jb?void 0:n("301");var d=a.alternate;if(a===xa||null!==d&&d===xa)if(Ib=!0,a={expirationTime:Hb,action:c,eagerReducer:null,eagerState:null,next:null},null=== +ia&&(ia=new Map),c=ia.get(b),void 0===c)ia.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}else{eb();var e=ka();e=fb(e,a);var f={expirationTime:e,action:c,eagerReducer:null,eagerState:null,next:null},g=b.last;if(null===g)f.next=f;else{var h=g.next;null!==h&&(f.next=h);g.next=f}b.last=f;if(0===a.expirationTime&&(null===d||0===d.expirationTime)&&(d=b.eagerReducer,null!==d))try{var l=b.eagerState,k=d(l,c);f.eagerReducer=d;f.eagerState=k;if(Ea(k,l))return}catch(m){}finally{}ya(a,e)}}function ig(a, +b){var c=S(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function jg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}}function kg(a){if(Ia){var b= +gb;if(b){var c=b;if(!jg(a,b)){b=Hd(c);if(!b||!jg(a,b)){a.effectTag|=2;Ia=!1;la=a;return}ig(la,c)}la=a;gb=Pf(b)}else a.effectTag|=2,Ia=!1,la=a}}function lg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&18!==a.tag;)a=a.return;la=a}function Zd(a){if(a!==la)return!1;if(!Ia)return lg(a),Ia=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!Gd(b,a.memoizedProps))for(b=gb;b;)ig(a,b),b=Hd(b);lg(a);gb=la?Hd(a.stateNode):null;return!0}function $d(){gb=la=null;Ia=!1}function N(a,b,c,d){b.child=null=== +a?ae(b,null,c,d):hb(b,a.child,c,d)}function mg(a,b,c,d,e){c=c.render;var f=b.ref;ib(b,e);d=Td(a,b,c,d,f,e);if(null!==a&&!ja)return b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),ma(a,b,e);b.effectTag|=1;N(a,b,d,e);return b.child}function ng(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!Md(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,og(a,b,g,d,e,f);a=wc(c.type,null,d,null,b.mode,f);a.ref= +b.ref;a.return=b;return b.child=a}g=a.child;if(e=c)return sg(a,b,c);b=ma(a,b,c);return null!==b?b.sibling:null}}return ma(a,b,c)}}else ja=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;var e=Za(b,F.current);ib(b,c);e=Td(null,b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag= +1;Vd();if(E(d)){var f=!0;vc(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;var g=d.getDerivedStateFromProps;"function"===typeof g&&yc(b,d,g,a);e.updater=zc;b.stateNode=e;e._reactInternalFiber=b;Pd(b,d,a,c);b=ce(null,b,d,!0,f,c)}else b.tag=0,N(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);f=b.pendingProps;a=ei(e);b.type=a;e=b.tag=ci(a);f=P(a,f);g=void 0;switch(e){case 0:g=be(null,b,a,f,c);break;case 1:g= +qg(null,b,a,f,c);break;case 11:g=mg(null,b,a,f,c);break;case 14:g=ng(null,b,a,P(a.type,f),d,c);break;default:n("306",a,"")}return g;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:P(d,e),be(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:P(d,e),qg(a,b,d,e,c);case 3:rg(b);d=b.updateQueue;null===d?n("282"):void 0;e=b.memoizedState;e=null!==e?e.element:null;Cb(b,d,b.pendingProps,null,c);d=b.memoizedState.element;if(d===e)$d(),b=ma(a,b,c);else{e=b.stateNode;if(e= +(null===a||null===a.child)&&e.hydrate)gb=Pf(b.stateNode.containerInfo),la=b,e=Ia=!0;e?(b.effectTag|=2,b.child=ae(b,null,d,c)):(N(a,b,d,c),$d());b=b.child}return b;case 5:return bg(b),null===a&&kg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),pg(a,b),1!==c&&b.mode&1&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(N(a,b,g,c),b=b.child),b;case 6:return null===a&&kg(b),null;case 13:return sg(a,b,c);case 4:return Qd(b, +b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=hb(b,null,d,c):N(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:P(d,e),mg(a,b,d,e,c);case 7:return N(a,b,b.pendingProps,c),b.child;case 8:return N(a,b,b.pendingProps.children,c),b.child;case 12:return N(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;tg(b,f);if(null!==g){var h=g.value;f=Ea(h,f)?0:("function"===typeof d._calculateChangedBits? +d._calculateChangedBits(h,f):1073741823)|0;if(0===f){if(g.children===e.children&&!M.current){b=ma(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var l=h.contextDependencies;if(null!==l){g=h.child;for(var k=l.first;null!==k;){if(k.context===d&&0!==(k.observedBits&f)){1===h.tag&&(k=Aa(c),k.tag=Ec,na(h,k));h.expirationTime=b&&(ja=!0);a.contextDependencies=null}function T(a,b){if(Ob!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)Ob=a,b=1073741823;b={context:a,observedBits:b,next:null};null===Ja?(null===Nb?n("308"):void 0,Ja=b,Nb.contextDependencies={first:b,expirationTime:0}):Ja=Ja.next=b}return a._currentValue}function Fc(a){return{baseState:a, +firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fe(a){return{baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Aa(a){return{expirationTime:a,tag:ug,payload:null,callback:null,next:null,nextEffect:null}}function Gc(a, +b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b)}function na(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var e=null;null===d&&(d=a.updateQueue=Fc(a.memoizedState))}else d=a.updateQueue,e=c.updateQueue,null===d?null===e?(d=a.updateQueue=Fc(a.memoizedState),e=c.updateQueue=Fc(c.memoizedState)):d=a.updateQueue=fe(e):null===e&&(e=c.updateQueue=fe(d));null===e||d===e?Gc(d,b):null===d.lastUpdate||null===e.lastUpdate?(Gc(d,b),Gc(e,b)):(Gc(d,b),e.lastUpdate= +b)}function vg(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=Fc(a.memoizedState):wg(a,c);null===c.lastCapturedUpdate?c.firstCapturedUpdate=c.lastCapturedUpdate=b:(c.lastCapturedUpdate.next=b,c.lastCapturedUpdate=b)}function wg(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=fe(b));return b}function xg(a,b,c,d,e,f){switch(c.tag){case yg:return a=c.payload,"function"===typeof a?a.call(f,d,e):a;case ge:a.effectTag=a.effectTag&-2049|64;case ug:a=c.payload;e="function"===typeof a? +a.call(f,d,e):a;if(null===e||void 0===e)break;return B({},d,e);case Ec:za=!0}return d}function Cb(a,b,c,d,e){za=!1;b=wg(a,b);for(var f=b.baseState,g=null,h=0,l=b.firstUpdate,k=f;null!==l;){var m=l.expirationTime;md?e:d);Kg.current=null;d=void 0;1c?b:c;0===b&&(Ba=null);wi(a,b)}function Mg(a){for(;;){var b=a.alternate,c=a.return,d=a.sibling;if(0===(a.effectTag&1024)){x=a;a:{var e=b;b=a;var f=H;var g=b.pendingProps;switch(b.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:E(b.type)&&uc(b);break;case 3:$a(b);Jd(b);g=b.stateNode;g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null);if(null===e||null===e.child)Zd(b),b.effectTag&= +-3;pe(b);break;case 5:Rd(b);var h=Ha(Fb.current);f=b.type;if(null!==e&&null!=b.stateNode)Ng(e,b,f,g,h),e.ref!==b.ref&&(b.effectTag|=128);else if(g){var l=Ha(U.current);if(Zd(b)){g=b;e=g.stateNode;var k=g.type,m=g.memoizedProps,p=h;e[ea]=g;e[ec]=m;f=void 0;h=k;switch(h){case "iframe":case "object":r("load",e);break;case "video":case "audio":for(k=0;k\x3c/script>",k=e.removeChild(e.firstChild)): +"string"===typeof p.is?k=k.createElement(e,{is:p.is}):(k=k.createElement(e),"select"===e&&p.multiple&&(k.multiple=!0)):k=k.createElementNS(l,e);e=k;e[ea]=m;e[ec]=g;Og(e,b,!1,!1);m=e;k=f;p=g;var t=h,y=Fd(k,p);switch(k){case "iframe":case "object":r("load",m);h=p;break;case "video":case "audio":for(h=0;hg&&(g=e),h>g&&(g=h),f=f.sibling;b.childExpirationTime=g}if(null!==x)return x;null!==c&&0===(c.effectTag&1024)&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),1=u)t=0;else if(-1===t||u component higher in the tree to provide a loading indicator or placeholder to display."+qd(k))}je=!0;m=Hc(m,k);h= +l;do{switch(h.tag){case 3:h.effectTag|=2048;h.expirationTime=g;g=he(h,m,g);vg(h,g);break a;case 1:if(t=m,r=h.type,k=h.stateNode,0===(h.effectTag&64)&&("function"===typeof r.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Ba||!Ba.has(k)))){h.effectTag|=2048;h.expirationTime=g;g=Ig(h,t,g);vg(h,g);break a}}h=h.return}while(null!==h)}x=Mg(f);continue}}}break}while(1);Ca=!1;qe.current=c;Ob=Ja=Nb=null;Vd();if(e)Y=null,a.finishedWork=null;else if(null!==x)a.finishedWork= +null;else{c=a.current.alternate;null===c?n("281"):void 0;Y=null;if(je){e=a.latestPendingTime;f=a.latestSuspendedTime;g=a.latestPingedTime;if(0!==e&&eb?0:b)):(a.pendingCommitExpirationTime=d,a.finishedWork= +c)}}function Ka(a,b){for(var c=a.return;null!==c;){switch(c.tag){case 1:var d=c.stateNode;if("function"===typeof c.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===Ba||!Ba.has(d))){a=Hc(b,a);a=Ig(c,a,1073741823);na(c,a);ya(c,1073741823);return}break;case 3:a=Hc(b,a);a=he(c,a,1073741823);na(c,a);ya(c,1073741823);return}c=c.return}3===a.tag&&(c=Hc(b,a),c=he(a,c,1073741823),na(a,c),ya(a,1073741823))}function fb(a,b){var c=zi(),d=void 0;if(0===(b.mode&1))d=1073741823;else if(Ca&& +!Lc)d=H;else{switch(c){case se:d=1073741823;break;case te:d=1073741822-10*(((1073741822-a+15)/10|0)+1);break;case Lg:d=1073741822-25*(((1073741822-a+500)/25|0)+1);break;case Ai:case Bi:d=1;break;default:n("313")}null!==Y&&d===H&&--d}c===te&&(0===oa||d=d){a.didError=!1;b=a.latestPingedTime;if(0===b||b>c)a.latestPingedTime= +c;xc(c,a);c=a.expirationTime;0!==c&&Kc(a,c)}}function li(a,b){var c=a.stateNode;null!==c&&c.delete(b);b=ka();b=fb(b,a);a=Sg(a,b);null!==a&&(Bb(a,b),b=a.expirationTime,0!==b&&Kc(a,b))}function Sg(a,b){a.expirationTimeH&&Jg(),Bb(a,b),Ca&&!Lc&&Y===a||Kc(a,a.expirationTime),Tb>Ci&&(Tb=0,n("185")))}function Tg(a,b,c,d,e){return Mc(se,function(){return a(b,c,d,e)})}function Ub(){aa=1073741822-((ue()-ve)/10|0)}function Ug(a,b){if(0!==Oc){if(ba.expirationTime&&(a.expirationTime=b);w||(z?Rc&&(ca= +a,C=1073741823,Sc(a,1073741823,!1)):1073741823===b?Z(1073741823,!1):Ug(a,b))}function Qc(){var a=0,b=null;if(null!==I)for(var c=I,d=ba;null!==d;){var e=d.expirationTime;if(0===e){null===c||null===I?n("244"):void 0;if(d===d.nextScheduledRoot){ba=I=d.nextScheduledRoot=null;break}else if(d===ba)ba=e=d.nextScheduledRoot,I.nextScheduledRoot=e,d.nextScheduledRoot=null;else if(d===I){I=c;I.nextScheduledRoot=ba;d.nextScheduledRoot=null;break}else c.nextScheduledRoot=d.nextScheduledRoot,d.nextScheduledRoot= +null;d=c.nextScheduledRoot}else{e>a&&(a=e,b=d);if(d===I)break;if(1073741823===a)break;c=d;d=d.nextScheduledRoot}}ca=b;C=a}function Nc(){return Tc?!0:Gi()?Tc=!0:!1}function Di(){try{if(!Nc()&&null!==ba){Ub();var a=ba;do{var b=a.expirationTime;0!==b&&aa<=b&&(a.nextExpirationTimeToWorkOn=aa);a=a.nextScheduledRoot}while(a!==ba)}Z(0,!0)}finally{Tc=!1}}function Z(a,b){Qc();if(b)for(Ub(),jb=aa;null!==ca&&0!==C&&a<=C&&!(Tc&&aa>C);)Sc(ca,C,aa>C),Qc(),Ub(),jb=aa;else for(;null!==ca&&0!==C&&a<=C;)Sc(ca,C,!1), +Qc();b&&(Oc=0,Pc=null);0!==C&&Ug(ca,C);Tb=0;we=null;if(null!==kb)for(a=kb,kb=null,b=0;b=c&&(null===kb?kb=[d]:kb.push(d),d._defer)){a.finishedWork=b;a.expirationTime=0;return}a.finishedWork=null;a===we?Tb++:(we=a,Tb=0);Mc(se,function(){ui(a,b)})}function ie(a){null===ca?n("246"):void 0;ca.expirationTime=0;lb||(lb=!0,Uc=a)}function Zg(a,b){var c=z;z=!0;try{return a(b)}finally{(z= +c)||w||Z(1073741823,!1)}}function $g(a,b){if(z&&!Rc){Rc=!0;try{return a(b)}finally{Rc=!1}}return a(b)}function ah(a,b,c){z||w||0===oa||(Z(oa,!1),oa=0);var d=z;z=!0;try{return Mc(te,function(){return a(b,c)})}finally{(z=d)||w||Z(1073741823,!1)}}function bh(a,b,c,d,e){var f=b.current;a:if(c){c=c._reactInternalFiber;b:{2===wb(c)&&1===c.tag?void 0:n("170");var g=c;do{switch(g.tag){case 3:g=g.stateNode.context;break b;case 1:if(E(g.type)){g=g.stateNode.__reactInternalMemoizedMergedChildContext;break b}}g= +g.return}while(null!==g);n("171");g=void 0}if(1===c.tag){var h=c.type;if(E(h)){c=Rf(c,h,g);break a}}c=g}else c=va;null===b.context?b.context=c:b.pendingContext=c;b=e;e=Aa(d);e.payload={element:a};b=void 0===b?null:b;null!==b&&(e.callback=b);eb();na(f,e);ya(f,d);return d}function xe(a,b,c,d){var e=b.current,f=ka();e=fb(f,e);return bh(a,b,c,e,d)}function ye(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Hi(a,b,c){var d= +3=ze&&(b=ze-1);this._expirationTime=ze=b;this._root=a;this._callbacks=this._next=null;this._hasChildren=this._didComplete=!1;this._children=null;this._defer=!0}function mb(){this._callbacks=null;this._didCommit=!1;this._onCommit=this._onCommit.bind(this)}function nb(a,b,c){b=S(3,null,null, +b?3:0);a={current:b,containerInfo:a,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:c,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null};this._internalRoot=b.stateNode=a}function ob(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType|| +" react-mount-point-unstable "!==a.nodeValue))}function Ii(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute("data-reactroot")));if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new nb(a,!1,b)}function Wc(a,b,c,d,e){var f=c._reactRootContainer;if(f){if("function"===typeof e){var g=e;e=function(){var a=ye(f._internalRoot);g.call(a)}}null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)}else{f=c._reactRootContainer=Ii(c,d);if("function"=== +typeof e){var h=e;e=function(){var a=ye(f._internalRoot);h.call(a)}}$g(function(){null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)})}return ye(f._internalRoot)}function ch(a,b){var c=2=Wb),Re=String.fromCharCode(32),pa={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput", +captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate", +captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Qe=!1,Sa=!1,Mi={eventTypes:pa,extractEvents:function(a,b,c,d){var e=void 0;var f=void 0;if(hd)b:{switch(a){case "compositionstart":e=pa.compositionStart;break b;case "compositionend":e=pa.compositionEnd;break b;case "compositionupdate":e=pa.compositionUpdate;break b}e=void 0}else Sa?Oe(a,c)&&(e=pa.compositionEnd):"keydown"===a&&229===c.keyCode&&(e=pa.compositionStart);e?(Se&& +"ko"!==c.locale&&(Sa||e!==pa.compositionStart?e===pa.compositionEnd&&Sa&&(f=Me()):(qa=d,gd="value"in qa?qa.value:qa.textContent,Sa=!0)),e=Ji.getPooled(e,b,c,d),f?e.data=f:(f=Pe(c),null!==f&&(e.data=f)),Qa(e),f=e):f=null;(a=Li?Bh(a,c):Ch(a,c))?(b=Ki.getPooled(pa.beforeInput,b,c,d),b.data=a,Qa(b)):b=null;return null===f?b:null===b?f:[f,b]}},id=null,Ta=null,Ua=null,Ye=function(a,b){return a(b)},yf=function(a,b,c){return a(b,c)},Ze=function(){},jd=!1,Dh={color:!0,date:!0,datetime:!0,"datetime-local":!0, +email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ma=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ma.hasOwnProperty("ReactCurrentDispatcher")||(Ma.ReactCurrentDispatcher={current:null});var Fh=/^(.*)[\\\/]/,O="function"===typeof Symbol&&Symbol.for,Bc=O?Symbol.for("react.element"):60103,Va=O?Symbol.for("react.portal"):60106,ta=O?Symbol.for("react.fragment"):60107,md=O?Symbol.for("react.strict_mode"):60108,lc=O?Symbol.for("react.profiler"):60114, +ff=O?Symbol.for("react.provider"):60109,ef=O?Symbol.for("react.context"):60110,ld=O?Symbol.for("react.concurrent_mode"):60111,od=O?Symbol.for("react.forward_ref"):60112,nd=O?Symbol.for("react.suspense"):60113,pd=O?Symbol.for("react.memo"):60115,gf=O?Symbol.for("react.lazy"):60116,df="function"===typeof Symbol&&Symbol.iterator,Hh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, +hf=Object.prototype.hasOwnProperty,kf={},jf={},A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){A[a]=new K(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];A[b]=new K(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){A[a]=new K(a,2,!1, +a.toLowerCase(),null)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){A[a]=new K(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){A[a]=new K(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){A[a]=new K(a,3,!0,a,null)});["capture", +"download"].forEach(function(a){A[a]=new K(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){A[a]=new K(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){A[a]=new K(a,5,!1,a.toLowerCase(),null)});var Be=/[\-:]([a-z])/g,Ce=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= +a.replace(Be,Ce);A[b]=new K(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Be,Ce);A[b]=new K(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Be,Ce);A[b]=new K(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});["tabIndex","crossOrigin"].forEach(function(a){A[a]=new K(a,1,!1,a.toLowerCase(),null)});var pf={change:{phasedRegistrationNames:{bubbled:"onChange", +captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},tb=null,ub=null,De=!1;ra&&(De=af("input")&&(!document.documentMode||9=document.documentMode,af={select:{phasedRegistrationNames:{bubbled:"onSelect", -captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ma=null,gd=null,kb=null,fd=!1,Uh={eventTypes:af,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=Ue(e);f=Gc.onSelect;for(var g=0;g"+b+"";for(b=Cc.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}), -xb=function(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b},lb={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0, -lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vh=["Webkit","ms","Moz","O"];Object.keys(lb).forEach(function(a){Vh.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);lb[b]=lb[a]})});var jh=y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0, -source:!0,track:!0,wbr:!0}),Dc=Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,$f=Dc.unstable_cancelCallback,Md=Dc.unstable_now,vh=Dc.unstable_scheduleCallback,zh=Dc.unstable_shouldYield,Pd=null,Qd=null,xh="function"===typeof setTimeout?setTimeout:void 0,kg="function"===typeof clearTimeout?clearTimeout:void 0;new Set;var od=[],Oa=-1,na={},F={current:na},I={current:!1},va=na,qd=null,rd=null,R=function(a,b,c,d){return new lh(a,b,c,d)},qa=!1,wd={current:null},pb=null,xa=null,qb=null,rb= -{},S={current:rb},tb={current:rb},sb={current:rb},kc=Vd.ReactCurrentOwner,Bf=(new Y.Component).refs,lc={isMounted:function(a){return(a=a._reactInternalFiber)?2===jb(a):!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=ra();d=zb(d,a);var e=pa(d);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);yb();ca(a,e);Ca(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=ra();d=zb(d,a);var e=pa(d);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);yb();ca(a,e);Ca(a,d)}, -enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=ra();c=zb(c,a);var d=pa(c);d.tag=2;void 0!==b&&null!==b&&(d.callback=b);yb();ca(a,d);Ca(a,c)}},oc=Array.isArray,Ua=Cf(!0),Dd=Cf(!1),da=null,Ta=null,za=!1,oh=Vd.ReactCurrentOwner,cg=void 0,Jd=void 0,bg=void 0,dg=void 0;cg=function(a,b,c,d){for(c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return|| -c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};Jd=function(a){};bg=function(a,b,c,d,e){var f=a.memoizedProps;if(f!==d){var g=b.stateNode;ya(S.current);a=null;switch(c){case "input":f=Zc(g,f);d=Zc(g,d);a=[];break;case "option":f=hd(g,f);d=hd(g,d);a=[];break;case "select":f=y({},f,{value:void 0});d=y({},d,{value:void 0});a=[];break;case "textarea":f=id(g,f);d=id(g,d);a=[];break;default:"function"!==typeof f.onClick&&"function"===typeof d.onClick&&(g.onclick=bc)}kd(c,d);g=c=void 0; -var h=null;for(c in f)if(!d.hasOwnProperty(c)&&f.hasOwnProperty(c)&&null!=f[c])if("style"===c){var k=f[c];for(g in k)k.hasOwnProperty(g)&&(h||(h={}),h[g]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Ea.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in d){var l=d[c];k=null!=f?f[c]:void 0;if(d.hasOwnProperty(c)&&l!==k&&(null!=l||null!=k))if("style"===c)if(k){for(g in k)!k.hasOwnProperty(g)|| -l&&l.hasOwnProperty(g)||(h||(h={}),h[g]="");for(g in l)l.hasOwnProperty(g)&&k[g]!==l[g]&&(h||(h={}),h[g]=l[g])}else h||(a||(a=[]),a.push(c,h)),h=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,k=k?k.__html:void 0,null!=l&&k!==l&&(a=a||[]).push(c,""+l)):"children"===c?k===l||"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Ea.hasOwnProperty(c)?(null!=l&&ba(e,c),a||k===l||(a=[])):(a=a||[]).push(c,l))}h&& -(a=a||[]).push("style",h);e=a;(b.updateQueue=e)&&wb(b)}};dg=function(a,b,c,d){c!==d&&wb(b)};var sh={readContext:wf},pc=Vd.ReactCurrentOwner,Td=1073741822,Ab=0,ta=!1,B=null,U=null,H=0,Ba=-1,Id=!1,n=null,rc=!1,rh=null,Zf=null,sa=null,W=null,N=null,sc=0,tc=void 0,M=!1,X=null,u=0,ea=0,Za=!1,yc=null,C=!1,vc=!1,Wa=!1,Ya=null,Nd=Md(),V=1073741822-(Nd/10|0),Xa=V,uh=50,Bb=0,Od=null,xc=!1;Pc=function(a,b,c){switch(b){case "input":$c(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode; -c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b=b;)c=d,d=d._next;a._next=d;null!==c&&(c._next=a)}return a};(function(a,b,c){se=a;Te=b;te=c})(lg,ng,function(){M||0===ea||(fa(ea,!1),ea=0)});var Bg={createPortal:pg,findDOMNode:function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternalFiber;void 0=== -b&&("function"===typeof a.render?p("188"):p("268",Object.keys(a)));a=Oe(b);a=null===a?null:a.stateNode;return a},hydrate:function(a,b,c){return Bc(null,a,b,!0,c)},render:function(a,b,c){return Bc(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a,b,c,d){null==a||void 0===a._reactInternalFiber?p("38"):void 0;return Bc(a,b,c,!1,d)},unmountComponentAtNode:function(a){Ac(a)?void 0:p("40");return a._reactRootContainer?(mg(function(){Bc(null,null,a,!1,function(){a._reactRootContainer=null})}), -!0):!1},unstable_createPortal:function(){return pg.apply(void 0,arguments)},unstable_batchedUpdates:lg,unstable_interactiveUpdates:ng,flushSync:function(a,b){M?p("187"):void 0;var c=C;C=!0;try{return hg(a,b)}finally{C=c,fa(1073741823,!1)}},unstable_flushControlled:function(a){var b=C;C=!0;try{hg(a)}finally{(C=b)||M||fa(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[de,ua,Kc,Ud.injectEventPluginsByName,Fc,Ga,function(a){Hc(a,Kg)},pe,qe,Xb,Jc]},unstable_createRoot:function(a, -b){Ac(a)?void 0:p("299","unstable_createRoot");return new bb(a,!0,null!=b&&!0===b.hydrate)}};(function(a){var b=a.findFiberByHostInstance;return kh(y({},a,{findHostInstanceByFiber:function(a){a=Oe(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null}}))})({findFiberByHostInstance:Mb,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var Cg={default:Bg},Dg=Cg&&Bg||Cg;return Dg.default||Dg}); +"reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(a){uf(a,!0)});Zi.forEach(function(a){uf(a,!1)});var nh={eventTypes:vf,isInteractiveTopLevelEventType:function(a){a=wd[a];return void 0!==a&&!0===a.isInteractive},extractEvents:function(a,b,c,d){var e=wd[a];if(!e)return null;switch(a){case "keypress":if(0===nc(c))return null;case "keydown":case "keyup":a=Ui;break;case "blur":case "focus":a= +Ri;break;case "click":if(2===c.button)return null;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":a=Yb;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":a=Vi;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":a=Wi;break;case eh:case fh:case gh:a=Pi;break;case hh:a=Xi;break;case "scroll":a=Xb;break;case "wheel":a= +Yi;break;case "copy":case "cut":case "paste":a=Qi;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":a=mh;break;default:a=J}b=a.getPooled(e,b,c,d);Qa(b);return b}},wf=nh.isInteractiveTopLevelEventType,rc=[],qc=!0,Af={},Vh=0,sc="_reactListenersID"+(""+Math.random()).slice(2),$i=ra&&"documentMode"in document&&11>=document.documentMode,Hf={select:{phasedRegistrationNames:{bubbled:"onSelect", +captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wa=null,Ad=null,xb=null,zd=!1,aj={eventTypes:Hf,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=zf(e);f=$c.onSelect;for(var g=0;g"+b+"";for(b=Xc.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}), +Ab=function(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b},yb={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0, +lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bj=["Webkit","ms","Moz","O"];Object.keys(yb).forEach(function(a){bj.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);yb[b]=yb[a]})});var Zh=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0, +source:!0,track:!0,wbr:!0}),R=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,Vg=R.unstable_cancelCallback,ue=R.unstable_now,Wg=R.unstable_scheduleCallback,Gi=R.unstable_shouldYield,Mc=R.unstable_runWithPriority,zi=R.unstable_getCurrentPriorityLevel,se=R.unstable_ImmediatePriority,te=R.unstable_UserBlockingPriority,Lg=R.unstable_NormalPriority,Ai=R.unstable_LowPriority,Bi=R.unstable_IdlePriority,ne=null,oe=null,Ei="function"===typeof setTimeout?setTimeout:void 0,Yg="function"===typeof clearTimeout? +clearTimeout:void 0,vi=Wg,ti=Vg;new Set;var Id=[],Ya=-1,va={},F={current:va},M={current:!1},Fa=va,Kd=null,Ld=null,S=function(a,b,c,d){return new bi(a,b,c,d)},$f=(new da.Component).refs,zc={isMounted:function(a){return(a=a._reactInternalFiber)?2===wb(a):!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=ka();d=fb(d,a);var e=Aa(d);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);eb();na(a,e);ya(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=ka();d=fb(d,a);var e= +Aa(d);e.tag=yg;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);eb();na(a,e);ya(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=ka();c=fb(c,a);var d=Aa(c);d.tag=Ec;void 0!==b&&null!==b&&(d.callback=b);eb();na(a,d);ya(a,c)}},Cc=Array.isArray,hb=ag(!0),ae=ag(!1),Eb={},U={current:Eb},Gb={current:Eb},Fb={current:Eb},db=0,pi=2,Rb=4,ji=8,ri=16,Sb=32,me=64,le=128,Dc=Ma.ReactCurrentDispatcher,Hb=0,xa=null,y=null,W=null,bb=null,G=null,ab=null,Kb=0,X=null,Lb=0,Ib=!1,ia=null,Jb=0,Ud={readContext:T, +useCallback:V,useContext:V,useEffect:V,useImperativeHandle:V,useLayoutEffect:V,useMemo:V,useReducer:V,useRef:V,useState:V,useDebugValue:V},fi={readContext:T,useCallback:function(a,b){cb().memoizedState=[a,void 0===b?null:b];return a},useContext:T,useEffect:function(a,b){return Xd(516,le|me,a,b)},useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Xd(4,Rb|Sb,fg.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Xd(4,Rb|Sb,a,b)},useMemo:function(a,b){var c=cb(); +b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=cb();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={last:null,dispatch:null,eagerReducer:a,eagerState:b};a=a.dispatch=hg.bind(null,xa,a);return[d.memoizedState,a]},useRef:function(a){var b=cb();a={current:a};return b.memoizedState=a},useState:function(a){var b=cb();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={last:null,dispatch:null,eagerReducer:dg,eagerState:a};a=a.dispatch= +hg.bind(null,xa,a);return[b.memoizedState,a]},useDebugValue:gg},cg={readContext:T,useCallback:function(a,b){var c=Mb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Sd(b,d[1]))return d[0];c.memoizedState=[a,b];return a},useContext:T,useEffect:function(a,b){return Yd(516,le|me,a,b)},useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Yd(4,Rb|Sb,fg.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Yd(4,Rb|Sb,a,b)},useMemo:function(a,b){var c= +Mb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Sd(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a},useReducer:eg,useRef:function(a){return Mb().memoizedState},useState:function(a){return eg(dg,a)},useDebugValue:gg},la=null,gb=null,Ia=!1,gi=Ma.ReactCurrentOwner,ja=!1,de={current:null},Nb=null,Ja=null,Ob=null,ug=0,yg=1,Ec=2,ge=3,za=!1,Og=void 0,pe=void 0,Ng=void 0,Pg=void 0;Og=function(a,b,c,d){for(c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode); +else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};pe=function(a){};Ng=function(a,b,c,d,e){var f=a.memoizedProps;if(f!==d){var g=b.stateNode;Ha(U.current);a=null;switch(c){case "input":f=sd(g,f);d=sd(g,d);a=[];break;case "option":f=Bd(g,f);d=Bd(g,d);a=[];break;case "select":f=B({},f,{value:void 0});d=B({},d,{value:void 0});a=[];break;case "textarea":f= +Cd(g,f);d=Cd(g,d);a=[];break;default:"function"!==typeof f.onClick&&"function"===typeof d.onClick&&(g.onclick=tc)}Ed(c,d);g=c=void 0;var h=null;for(c in f)if(!d.hasOwnProperty(c)&&f.hasOwnProperty(c)&&null!=f[c])if("style"===c){var l=f[c];for(g in l)l.hasOwnProperty(g)&&(h||(h={}),h[g]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Oa.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in d){var k= +d[c];l=null!=f?f[c]:void 0;if(d.hasOwnProperty(c)&&k!==l&&(null!=k||null!=l))if("style"===c)if(l){for(g in l)!l.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(h||(h={}),h[g]="");for(g in k)k.hasOwnProperty(g)&&l[g]!==k[g]&&(h||(h={}),h[g]=k[g])}else h||(a||(a=[]),a.push(c,h)),h=k;else"dangerouslySetInnerHTML"===c?(k=k?k.__html:void 0,l=l?l.__html:void 0,null!=k&&l!==k&&(a=a||[]).push(c,""+k)):"children"===c?l===k||"string"!==typeof k&&"number"!==typeof k||(a=a||[]).push(c,""+k):"suppressContentEditableWarning"!== +c&&"suppressHydrationWarning"!==c&&(Oa.hasOwnProperty(c)?(null!=k&&ha(e,c),a||l===k||(a=[])):(a=a||[]).push(c,k))}h&&(a=a||[]).push("style",h);e=a;(b.updateQueue=e)&&Pb(b)}};Pg=function(a,b,c,d){c!==d&&Pb(b)};var ki="function"===typeof WeakSet?WeakSet:Set,xi="function"===typeof WeakMap?WeakMap:Map,qe=Ma.ReactCurrentDispatcher,Kg=Ma.ReactCurrentOwner,ze=1073741822,Ca=!1,x=null,Y=null,H=0,La=-1,je=!1,p=null,Lc=!1,ke=null,Jc=null,Ic=null,Ba=null,ba=null,I=null,Oc=0,Pc=void 0,w=!1,ca=null,C=0,oa=0,lb= +!1,Uc=null,z=!1,Rc=!1,kb=null,ve=ue(),aa=1073741822-(ve/10|0),jb=aa,Ci=50,Tb=0,we=null,Tc=!1;id=function(a,b,c){switch(b){case "input":td(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b=b;)c=d,d=d._next;a._next=d;null!==c&&(c._next=a)}return a}; +(function(a,b,c){Ye=a;yf=b;Ze=c})(Zg,ah,function(){w||0===oa||(Z(oa,!1),oa=0)});var oh={createPortal:ch,findDOMNode:function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternalFiber;void 0===b&&("function"===typeof a.render?n("188"):n("268",Object.keys(a)));a=tf(b);a=null===a?null:a.stateNode;return a},hydrate:function(a,b,c){ob(b)?void 0:n("200");return Wc(null,a,b,!0,c)},render:function(a,b,c){ob(b)?void 0:n("200");return Wc(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a, +b,c,d){ob(c)?void 0:n("200");null==a||void 0===a._reactInternalFiber?n("38"):void 0;return Wc(a,b,c,!1,d)},unmountComponentAtNode:function(a){ob(a)?void 0:n("40");return a._reactRootContainer?($g(function(){Wc(null,null,a,!1,function(){a._reactRootContainer=null})}),!0):!1},unstable_createPortal:function(){return ch.apply(void 0,arguments)},unstable_batchedUpdates:Zg,unstable_interactiveUpdates:ah,flushSync:function(a,b){w?n("187"):void 0;var c=z;z=!0;try{return Tg(a,b)}finally{z=c,Z(1073741823,!1)}}, +unstable_createRoot:function(a,b){ob(a)?void 0:n("299","unstable_createRoot");return new nb(a,!0,null!=b&&!0===b.hydrate)},unstable_flushControlled:function(a){var b=z;z=!0;try{Tg(a)}finally{(z=b)||w||Z(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Je,Da,dd,Ae.injectEventPluginsByName,Zc,Qa,function(a){ad(a,xh)},Ve,We,oc,cd]}};(function(a){var b=a.findFiberByHostInstance;return ai(B({},a,{overrideProps:null,currentDispatcherRef:Ma.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a= +tf(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null}}))})({findFiberByHostInstance:dc,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"});var ph={default:oh},qh=ph&&oh||ph;return qh.default||qh}); diff --git a/wp-includes/js/dist/vendor/react.js b/wp-includes/js/dist/vendor/react.js index 3ae596cb15..aa09eb172d 100644 --- a/wp-includes/js/dist/vendor/react.js +++ b/wp-includes/js/dist/vendor/react.js @@ -1,4 +1,4 @@ -/** @license React v16.6.1 +/** @license React v16.8.4 * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -17,7 +17,7 @@ // TODO: this is special because it gets imported during build. -var ReactVersion = '16.6.3'; +var ReactVersion = '16.8.4'; // The Symbol used to tag the ReactElement-like types. If there is no native Symbol // nor polyfill, then a plain number is used for performance. @@ -51,43 +51,6 @@ function getIteratorFn(maybeIterable) { return null; } -var enableHooks = false; -// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: - - -// In some cases, StrictMode should also double-render lifecycles. -// This can be confusing for tests though, -// And it can be bad for performance in production. -// This feature flag can be used to control the behavior: - - -// To preserve the "Pause on caught exceptions" behavior of the debugger, we -// replay the begin phase of a failed component inside invokeGuardedCallback. - - -// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: - - -// Gather advanced timing metrics for Profiler subtrees. - - -// Trace which interactions trigger each commit. -var enableSchedulerTracing = true; - -// Only used in www builds. - - -// Only used in www builds. - - -// React Fire: prevent the value and checked attributes from syncing -// with their related DOM properties - - -// These APIs will no longer be "unstable" in the upcoming 16.7 release, -// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. -var enableStableConcurrentModeAPIs = false; - /* object-assign (c) Sindre Sorhus @@ -534,6 +497,8 @@ function createRef() { return refObject; } +var enableSchedulerDebugging = false; + /* eslint-disable no-var */ // TODO: Use symbols? @@ -561,6 +526,9 @@ var IDLE_PRIORITY = maxSigned31BitInt; var firstCallbackNode = null; var currentDidTimeout = false; +// Pausing the scheduler is useful for debugging. +var isSchedulerPaused = false; + var currentPriorityLevel = NormalPriority; var currentEventStartTime = -1; var currentExpirationTime = -1; @@ -695,13 +663,20 @@ function flushImmediateWork() { } function flushWork(didTimeout) { + // Exit right away if we're currently paused + + if (enableSchedulerDebugging && isSchedulerPaused) { + return; + } + isExecutingCallback = true; var previousDidTimeout = currentDidTimeout; currentDidTimeout = didTimeout; try { if (didTimeout) { // Flush all the expired callbacks without yielding. - while (firstCallbackNode !== null) { + while (firstCallbackNode !== null && !(enableSchedulerDebugging && isSchedulerPaused)) { + // TODO Wrap in feature flag // Read the current time. Flush all the callbacks that expire at or // earlier than that time. Then read the current time again and repeat. // This optimizes for as few performance.now calls as possible. @@ -709,7 +684,7 @@ function flushWork(didTimeout) { if (firstCallbackNode.expirationTime <= currentTime) { do { flushFirstCallback(); - } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime); + } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)); continue; } break; @@ -718,6 +693,9 @@ function flushWork(didTimeout) { // Keep flushing callbacks until we run out of time in the frame. if (firstCallbackNode !== null) { do { + if (enableSchedulerDebugging && isSchedulerPaused) { + break; + } flushFirstCallback(); } while (firstCallbackNode !== null && !shouldYieldToHost()); } @@ -764,6 +742,37 @@ function unstable_runWithPriority(priorityLevel, eventHandler) { } } +function unstable_next(eventHandler) { + var priorityLevel = void 0; + switch (currentPriorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + // Shift down to normal priority + priorityLevel = NormalPriority; + break; + default: + // Anything lower than normal priority should remain at the current level. + priorityLevel = currentPriorityLevel; + break; + } + + var previousPriorityLevel = currentPriorityLevel; + var previousEventStartTime = currentEventStartTime; + currentPriorityLevel = priorityLevel; + currentEventStartTime = getCurrentTime(); + + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + currentEventStartTime = previousEventStartTime; + + // Before exiting, flush all the immediate work that was scheduled. + flushImmediateWork(); + } +} + function unstable_wrapCallback(callback) { var parentPriorityLevel = currentPriorityLevel; return function () { @@ -856,6 +865,21 @@ function unstable_scheduleCallback(callback, deprecated_options) { return newNode; } +function unstable_pauseExecution() { + isSchedulerPaused = true; +} + +function unstable_continueExecution() { + isSchedulerPaused = false; + if (firstCallbackNode !== null) { + ensureHostCallbackIsScheduled(); + } +} + +function unstable_getFirstCallbackNode() { + return firstCallbackNode; +} + function unstable_cancelCallback(callbackNode) { var next = callbackNode.next; if (next === null) { @@ -951,41 +975,45 @@ var requestHostCallback; var cancelHostCallback; var shouldYieldToHost; -if (typeof window !== 'undefined' && window._schedMock) { +var globalValue = null; +if (typeof window !== 'undefined') { + globalValue = window; +} else if (typeof global !== 'undefined') { + globalValue = global; +} + +if (globalValue && globalValue._schedMock) { // Dynamic injection, only for testing purposes. - var impl = window._schedMock; - requestHostCallback = impl[0]; - cancelHostCallback = impl[1]; - shouldYieldToHost = impl[2]; + var globalImpl = globalValue._schedMock; + requestHostCallback = globalImpl[0]; + cancelHostCallback = globalImpl[1]; + shouldYieldToHost = globalImpl[2]; + getCurrentTime = globalImpl[3]; } else if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive // implementation using setTimeout. typeof window === 'undefined' || -// "addEventListener" might not be available on the window object -// if this is a mocked "window" object. So we need to validate that too. -typeof window.addEventListener !== 'function') { +// Check if MessageChannel is supported, too. +typeof MessageChannel !== 'function') { + // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore, + // fallback to a naive implementation. var _callback = null; - var _currentTime = -1; - var _flushCallback = function (didTimeout, ms) { + var _flushCallback = function (didTimeout) { if (_callback !== null) { - var cb = _callback; - _callback = null; try { - _currentTime = ms; - cb(didTimeout); + _callback(didTimeout); } finally { - _currentTime = -1; + _callback = null; } } }; requestHostCallback = function (cb, ms) { - if (_currentTime !== -1) { + if (_callback !== null) { // Protect against re-entrancy. - setTimeout(requestHostCallback, 0, cb, ms); + setTimeout(requestHostCallback, 0, cb); } else { _callback = cb; - setTimeout(_flushCallback, ms, true, ms); - setTimeout(_flushCallback, maxSigned31BitInt, false, maxSigned31BitInt); + setTimeout(_flushCallback, 0, false); } }; cancelHostCallback = function () { @@ -994,9 +1022,6 @@ typeof window.addEventListener !== 'function') { shouldYieldToHost = function () { return false; }; - getCurrentTime = function () { - return _currentTime === -1 ? 0 : _currentTime; - }; } else { if (typeof console !== 'undefined') { // TODO: Remove fb.me link @@ -1028,12 +1053,9 @@ typeof window.addEventListener !== 'function') { }; // We use the postMessage trick to defer idle work until after the repaint. - var messageKey = '__reactIdleCallback$' + Math.random().toString(36).slice(2); - var idleTick = function (event) { - if (event.source !== window || event.data !== messageKey) { - return; - } - + var channel = new MessageChannel(); + var port = channel.port2; + channel.port1.onmessage = function (event) { isMessageEventScheduled = false; var prevScheduledCallback = scheduledHostCallback; @@ -1074,9 +1096,6 @@ typeof window.addEventListener !== 'function') { } } }; - // Assumes that we have addEventListener in this environment. Might need - // something better for old IE. - window.addEventListener('message', idleTick, false); var animationTick = function (rafTime) { if (scheduledHostCallback !== null) { @@ -1116,7 +1135,7 @@ typeof window.addEventListener !== 'function') { frameDeadline = rafTime + activeFrameTime; if (!isMessageEventScheduled) { isMessageEventScheduled = true; - window.postMessage(messageKey, '*'); + port.postMessage(undefined); } }; @@ -1125,7 +1144,7 @@ typeof window.addEventListener !== 'function') { timeoutTime = absoluteTimeout; if (isFlushingHostCallback || absoluteTimeout < 0) { // Don't wait for the next frame. Continue working ASAP, in a new event. - window.postMessage(messageKey, '*'); + port.postMessage(undefined); } else if (!isAnimationFrameScheduled) { // If rAF didn't already schedule one, we need to schedule a frame. // TODO: If this rAF doesn't materialize because the browser throttles, we @@ -1143,6 +1162,45 @@ typeof window.addEventListener !== 'function') { }; } +// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: + + +// In some cases, StrictMode should also double-render lifecycles. +// This can be confusing for tests though, +// And it can be bad for performance in production. +// This feature flag can be used to control the behavior: + + +// To preserve the "Pause on caught exceptions" behavior of the debugger, we +// replay the begin phase of a failed component inside invokeGuardedCallback. + + +// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: + + +// Gather advanced timing metrics for Profiler subtrees. + + +// Trace which interactions trigger each commit. +var enableSchedulerTracing = true; + +// Only used in www builds. + // TODO: true? Here it might just be false. + +// Only used in www builds. + + +// Only used in www builds. + + +// React Fire: prevent the value and checked attributes from syncing +// with their related DOM properties + + +// These APIs will no longer be "unstable" in the upcoming 16.7 release, +// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. +var enableStableConcurrentModeAPIs = false; + var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs. @@ -1500,6 +1558,17 @@ function onWorkCanceled(interactions, threadID) { } } +/** + * Keeps track of the current dispatcher. + */ +var ReactCurrentDispatcher = { + /** + * @internal + * @type {ReactComponent} + */ + current: null +}; + /** * Keeps track of the current owner. * @@ -1511,8 +1580,7 @@ var ReactCurrentOwner = { * @internal * @type {ReactComponent} */ - current: null, - currentDispatcher: null + current: null }; var BEFORE_SLASH_RE = /^(.*)[\\\/]/; @@ -1643,6 +1711,7 @@ function setCurrentlyValidatingElement(element) { } var ReactSharedInternals = { + ReactCurrentDispatcher: ReactCurrentDispatcher, ReactCurrentOwner: ReactCurrentOwner, // Used by renderers to avoid bundling object-assign twice in UMD bundles: assign: objectAssign @@ -1661,8 +1730,17 @@ var ReactSharedInternals = { unstable_now: getCurrentTime, unstable_scheduleCallback: unstable_scheduleCallback, unstable_runWithPriority: unstable_runWithPriority, + unstable_next: unstable_next, unstable_wrapCallback: unstable_wrapCallback, - unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel + unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, + unstable_pauseExecution: unstable_pauseExecution, + unstable_continueExecution: unstable_continueExecution, + unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel, + unstable_IdlePriority: IdlePriority, + unstable_ImmediatePriority: ImmediatePriority, + unstable_LowPriority: LowPriority, + unstable_NormalPriority: NormalPriority, + unstable_UserBlockingPriority: UserBlockingPriority }, SchedulerTracing: { __interactionsRef: interactionsRef, @@ -2452,13 +2530,51 @@ function createContext(defaultValue, calculateChangedBits) { } function lazy(ctor) { - return { + var lazyType = { $$typeof: REACT_LAZY_TYPE, _ctor: ctor, // React uses these fields to store the result. _status: -1, _result: null }; + + { + // In production, this would just set it on the object. + var defaultProps = void 0; + var propTypes = void 0; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function () { + return defaultProps; + }, + set: function (newDefaultProps) { + warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + defaultProps = newDefaultProps; + // Match production behavior more closely: + Object.defineProperty(lazyType, 'defaultProps', { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function () { + return propTypes; + }, + set: function (newPropTypes) { + warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + propTypes = newPropTypes; + // Match production behavior more closely: + Object.defineProperty(lazyType, 'propTypes', { + enumerable: true + }); + } + } + }); + } + + return lazyType; } function forwardRef(render) { @@ -2504,14 +2620,16 @@ function memo(type, compare) { } function resolveDispatcher() { - var dispatcher = ReactCurrentOwner.currentDispatcher; - !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0; + var dispatcher = ReactCurrentDispatcher.current; + !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)') : void 0; return dispatcher; } -function useContext(Context, observedBits) { +function useContext(Context, unstable_observedBits) { var dispatcher = resolveDispatcher(); { + !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0; + // TODO: add a more generic warning for invalid values. if (Context._context !== undefined) { var realContext = Context._context; @@ -2524,7 +2642,7 @@ function useContext(Context, observedBits) { } } } - return dispatcher.useContext(Context, observedBits); + return dispatcher.useContext(Context, unstable_observedBits); } function useState(initialState) { @@ -2532,9 +2650,9 @@ function useState(initialState) { return dispatcher.useState(initialState); } -function useReducer(reducer, initialState, initialAction) { +function useReducer(reducer, initialArg, init) { var dispatcher = resolveDispatcher(); - return dispatcher.useReducer(reducer, initialState, initialAction); + return dispatcher.useReducer(reducer, initialArg, init); } function useRef(initialValue) { @@ -2547,11 +2665,6 @@ function useEffect(create, inputs) { return dispatcher.useEffect(create, inputs); } -function useMutationEffect(create, inputs) { - var dispatcher = resolveDispatcher(); - return dispatcher.useMutationEffect(create, inputs); -} - function useLayoutEffect(create, inputs) { var dispatcher = resolveDispatcher(); return dispatcher.useLayoutEffect(create, inputs); @@ -2567,9 +2680,16 @@ function useMemo(create, inputs) { return dispatcher.useMemo(create, inputs); } -function useImperativeMethods(ref, create, inputs) { +function useImperativeHandle(ref, create, inputs) { var dispatcher = resolveDispatcher(); - return dispatcher.useImperativeMethods(ref, create, inputs); + return dispatcher.useImperativeHandle(ref, create, inputs); +} + +function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } } /** @@ -2763,7 +2883,7 @@ function validateExplicitKey(element, parentType) { setCurrentlyValidatingElement(element); { - warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); + warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); } setCurrentlyValidatingElement(null); } @@ -2819,16 +2939,17 @@ function validateChildKeys(node, parentType) { */ function validatePropTypes(element) { var type = element.type; - var name = void 0, - propTypes = void 0; + if (type === null || type === undefined || typeof type === 'string') { + return; + } + var name = getComponentName(type); + var propTypes = void 0; if (typeof type === 'function') { - // Class or function component - name = type.displayName || type.name; propTypes = type.propTypes; - } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) { - // ForwardRef - var functionName = type.render.displayName || type.render.name || ''; - name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'); + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || + // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + type.$$typeof === REACT_MEMO_TYPE)) { propTypes = type.propTypes; } else { return; @@ -2977,6 +3098,17 @@ var React = { lazy: lazy, memo: memo, + useCallback: useCallback, + useContext: useContext, + useEffect: useEffect, + useImperativeHandle: useImperativeHandle, + useDebugValue: useDebugValue, + useLayoutEffect: useLayoutEffect, + useMemo: useMemo, + useReducer: useReducer, + useRef: useRef, + useState: useState, + Fragment: REACT_FRAGMENT_TYPE, StrictMode: REACT_STRICT_MODE_TYPE, Suspense: REACT_SUSPENSE_TYPE, @@ -2988,28 +3120,22 @@ var React = { version: ReactVersion, + unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE, + unstable_Profiler: REACT_PROFILER_TYPE, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals }; +// Note: some APIs are added with feature flags. +// Make sure that stable builds for open source +// don't modify the React object to avoid deopts. +// Also let's not expose their names in stable builds. + if (enableStableConcurrentModeAPIs) { React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; React.Profiler = REACT_PROFILER_TYPE; -} else { - React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; - React.unstable_Profiler = REACT_PROFILER_TYPE; -} - -if (enableHooks) { - React.useCallback = useCallback; - React.useContext = useContext; - React.useEffect = useEffect; - React.useImperativeMethods = useImperativeMethods; - React.useLayoutEffect = useLayoutEffect; - React.useMemo = useMemo; - React.useMutationEffect = useMutationEffect; - React.useReducer = useReducer; - React.useRef = useRef; - React.useState = useState; + React.unstable_ConcurrentMode = undefined; + React.unstable_Profiler = undefined; } diff --git a/wp-includes/js/dist/vendor/react.min.js b/wp-includes/js/dist/vendor/react.min.js index f425db8353..868129e4ef 100644 --- a/wp-includes/js/dist/vendor/react.min.js +++ b/wp-includes/js/dist/vendor/react.min.js @@ -1,4 +1,4 @@ -/** @license React v16.6.1 +/** @license React v16.8.4 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -6,26 +6,28 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -'use strict';(function(N,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p():"function"===typeof define&&define.amd?define(p):N.React=p()})(this,function(){function N(a,b,d,f,n,g,c,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var e=[d,f,n,g,c,h],ta=0;a=Error(b.replace(/%s/g,function(){return e[ta++]}));a.name="Invariant Violation"}a.framesToPop= -1;throw a;}}function p(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f=b){d=a;break}a=a.next}while(a!==c);null===d?d= -c:d===c&&(c=g,v());b=d.previous;b.next=d.previous=g;g.next=d;g.previous=b}}function R(){if(-1===m&&null!==c&&1===c.priorityLevel){w=!0;try{do Q();while(null!==c&&1===c.priorityLevel)}finally{w=!1,null!==c?v():D=!1}}}function ua(a){w=!0;var b=G;G=a;try{if(a)for(;null!==c;){var d=l();if(c.expirationTime<=d){do Q();while(null!==c&&c.expirationTime<=d)}else break}else if(null!==c){do Q();while(null!==c&&!H())}}finally{w=!1,G=b,null!==c?v():D=!1,R()}}function fa(a,b,d){var f=void 0,n={},c=null,e=null; -if(null!=b)for(f in void 0!==b.ref&&(e=b.ref),void 0!==b.key&&(c=""+b.key),b)ha.call(b,f)&&!ia.hasOwnProperty(f)&&(n[f]=b[f]);var h=arguments.length-2;if(1===h)n.children=d;else if(1I.length&&I.push(a)}function U(a,b,d,f){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var g=!1;if(null=== -a)g=!0;else switch(c){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case x:case xa:g=!0}}if(g)return d(f,a,""===b?"."+V(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var e=0;ea;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1; -var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(f){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var d=Object(a);for(var c,e=1;e=L-d)if(-1!==b&&b<=d)c=!0;else{B||(B=!0,Y(ba));u=a;A=b;return}if(null!==a){Z=!0;try{a(c)}finally{Z=!1}}}},!1);var ba=function(a){if(null!==u){Y(ba);var b=a-L+C;bb&&(b=8),C=bb?window.postMessage(aa,"*"):B||(B= -!0,Y(ba))};P=function(){u=null;K=!1;A=-1}}var Oa=0,S={current:null,currentDispatcher:null};e={ReactCurrentOwner:S,assign:J};J(e,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}},unstable_shouldYield:function(){return!G&&(null!==c&&c.expirationTimeb){d=f;break}f=f.next}while(f!==c);null===d?d=c:d===c&&(c=a,v());b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break; -default:a=3}var d=k,c=m;k=a;m=l();try{return b()}finally{k=d,m=c,R()}},unstable_wrapCallback:function(a){var b=k;return function(){var d=k,c=m;k=b;m=l();try{return a.apply(this,arguments)}finally{k=d,m=c,R()}}},unstable_getCurrentPriorityLevel:function(){return k}},SchedulerTracing:{__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Oa},unstable_subscribe:function(a){},unstable_trace:function(a, -b,d){return d()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var ha=Object.prototype.hasOwnProperty,ia={key:!0,ref:!0,__self:!0,__source:!0},ma=/\/+/g,I=[];r={Children:{map:function(a,b,d){if(null==a)return a;var c=[];X(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=ja(null,null,b,d);W(a,ya,b);ka(b)},count:function(a){return W(a,function(){return null},null)},toArray:function(a){var b=[];X(a,b,null,function(a){return a});return b},only:function(a){T(a)? -void 0:p("143");return a}},createRef:function(){return{current:null}},Component:q,PureComponent:O,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Ca,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Ba,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Ea,render:a}},lazy:function(a){return{$$typeof:Ha,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Ga,type:a,compare:void 0=== -b?null:b}},Fragment:r,StrictMode:Aa,Suspense:Fa,createElement:fa,cloneElement:function(a,b,d){null===a||void 0===a?p("267",a):void 0;var c=void 0,e=J({},a.props),g=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=S.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)ha.call(b,c)&&!ia.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1=b){d=a;break}a=a.next}while(a!==c);null===d?d=c:d=== +c&&(c=n,u());b=d.previous;b.next=d.previous=n;n.next=d;n.previous=b}}function F(){if(-1===k&&null!==c&&1===c.priorityLevel){x=!0;try{do Q();while(null!==c&&1===c.priorityLevel)}finally{x=!1,null!==c?u():C=!1}}}function ta(a){x=!0;var b=G;G=a;try{if(a)for(;null!==c;){var d=l();if(c.expirationTime<=d){do Q();while(null!==c&&c.expirationTime<=d)}else break}else if(null!==c){do Q();while(null!==c&&!H())}}finally{x=!1,G=b,null!==c?u():C=!1,F()}}function ea(a,b,d){var g=void 0,p={},c=null,e=null;if(null!= +b)for(g in void 0!==b.ref&&(e=b.ref),void 0!==b.key&&(c=""+b.key),b)fa.call(b,g)&&!ha.hasOwnProperty(g)&&(p[g]=b[g]);var h=arguments.length-2;if(1===h)p.children=d;else if(1I.length&&I.push(a)}function T(a,b,d,g){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var e=!1;if(null=== +a)e=!0;else switch(c){case "string":case "number":e=!0;break;case "object":switch(a.$$typeof){case y:case wa:e=!0}}if(e)return d(g,a,""===b?"."+U(a,0):b),1;e=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;fa;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(g){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var d=Object(a);for(var c,e=1;e=L-d)if(-1!==b&&b<=d)c=!0;else{A||(A=!0,Y(aa));w=a;z=b;return}if(null!==a){Z=!0;try{a(c)}finally{Z=!1}}};var aa=function(a){if(null!==w){Y(aa);var b=a-L+B;bb&&(b=8),B=bb?sa.postMessage(void 0):A||(A=!0,Y(aa))};P=function(){w=null;K=!1;z=-1}}var Oa= +0,ma={current:null},R={current:null};e={ReactCurrentDispatcher:ma,ReactCurrentOwner:R,assign:J};J(e,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}},unstable_shouldYield:function(){return!G&&(null!==c&&c.expirationTimeb){d=g;break}g=g.next}while(g!==c);null===d?d=c:d===c&&(c=a,u());b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a= +3}var d=f,c=k;f=a;k=l();try{return b()}finally{f=d,k=c,F()}},unstable_next:function(a){switch(f){case 1:case 2:case 3:var b=3;break;default:b=f}var d=f,c=k;f=b;k=l();try{return a()}finally{f=d,k=c,F()}},unstable_wrapCallback:function(a){var b=f;return function(){var d=f,c=k;f=b;k=l();try{return a.apply(this,arguments)}finally{f=d,k=c,F()}}},unstable_getFirstCallbackNode:function(){return c},unstable_pauseExecution:function(){},unstable_continueExecution:function(){null!==c&&u()},unstable_getCurrentPriorityLevel:function(){return f}, +unstable_IdlePriority:5,unstable_ImmediatePriority:1,unstable_LowPriority:4,unstable_NormalPriority:3,unstable_UserBlockingPriority:2},SchedulerTracing:{__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Oa},unstable_subscribe:function(a){},unstable_trace:function(a,b,d){return d()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var fa=Object.prototype.hasOwnProperty, +ha={key:!0,ref:!0,__self:!0,__source:!0},la=/\/+/g,I=[];r={Children:{map:function(a,b,d){if(null==a)return a;var c=[];W(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=ia(null,null,b,d);V(a,xa,b);ja(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){S(a)?void 0:q("143");return a}},createRef:function(){return{current:null}},Component:t,PureComponent:O,createContext:function(a, +b){void 0===b&&(b=null);a={$$typeof:Ba,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Aa,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Da,render:a}},lazy:function(a){return{$$typeof:Ga,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Fa,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return m().useCallback(a,b)},useContext:function(a,b){return m().useContext(a,b)}, +useEffect:function(a,b){return m().useEffect(a,b)},useImperativeHandle:function(a,b,d){return m().useImperativeHandle(a,b,d)},useDebugValue:function(a,b){},useLayoutEffect:function(a,b){return m().useLayoutEffect(a,b)},useMemo:function(a,b){return m().useMemo(a,b)},useReducer:function(a,b,d){return m().useReducer(a,b,d)},useRef:function(a){return m().useRef(a)},useState:function(a){return m().useState(a)},Fragment:r,StrictMode:X,Suspense:Ea,createElement:ea,cloneElement:function(a,b,d){null===a|| +void 0===a?q("267",a):void 0;var c=void 0,e=J({},a.props),f=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=R.current);void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)fa.call(b,c)&&!ha.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1Currently: { isMobile ? 'Mobile' : 'Not Mobile' } + * ); + * } + * + * MyComponent = withViewportMatch( { isMobile: '< small' } )( MyComponent ); + * ``` * * @return {Function} Higher-order component. */ @@ -247,9 +259,19 @@ var with_viewport_match_withViewportMatch = function withViewportMatch(queries) * Higher-order component creator, creating a new component which renders if * the viewport query is satisfied. * + * @see withViewportMatches + * * @param {string} query Viewport query. * - * @see withViewportMatches + * @example + * + * ```jsx + * function MyMobileComponent() { + * return
    I'm only rendered on mobile viewports!
    ; + * } + * + * MyMobileComponent = ifViewportMatches( '< small' )( MyMobileComponent ); + * ``` * * @return {Function} Higher-order component. */ @@ -356,7 +378,7 @@ build_module_setIsMatching.flush(); /***/ }), -/***/ 7: +/***/ 6: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["compose"]; }()); diff --git a/wp-includes/js/dist/viewport.min.js b/wp-includes/js/dist/viewport.min.js index a364d9029e..f23b1d02b2 100644 --- a/wp-includes/js/dist/viewport.min.js +++ b/wp-includes/js/dist/viewport.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.viewport=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=319)}({2:function(t,e){!function(){t.exports=this.lodash}()},319:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"setIsMatching",function(){return a});var i={};n.r(i),n.d(i,"isViewportMatch",function(){return f});var o=n(2),c=n(5);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}function f(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(c.registerStore)("core/viewport",{reducer:u,actions:r,selectors:i});var s=n(7),p=function(t){return Object(s.createHigherOrderComponent)(Object(c.withSelect)(function(e){return Object(o.mapValues)(t,function(t){return e("core/viewport").isViewportMatch(t)})}),"withViewportMatch")},d=function(t){return Object(s.createHigherOrderComponent)(Object(s.compose)([p({isViewportMatch:t}),Object(s.ifCondition)(function(t){return t.isViewportMatch})]),"ifViewportMatches")};n.d(e,"ifViewportMatches",function(){return d}),n.d(e,"withViewportMatch",function(){return p});var l={"<":"max-width",">=":"min-width"},h=Object(o.debounce)(function(){var t=Object(o.mapValues)(w,function(t){return t.matches});Object(c.dispatch)("core/viewport").setIsMatching(t)},{leading:!0}),w=Object(o.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},function(t,e,n){return Object(o.forEach)(l,function(r,i){var o=window.matchMedia("(".concat(r,": ").concat(e,"px)"));o.addListener(h);var c=[i,n].join(" ");t[c]=o}),t},{});window.addEventListener("orientationchange",h),h(),h.flush()},5:function(t,e){!function(){t.exports=this.wp.data}()},7:function(t,e){!function(){t.exports=this.wp.compose}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.viewport=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=372)}({2:function(t,e){!function(){t.exports=this.lodash}()},372:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"setIsMatching",function(){return a});var i={};n.r(i),n.d(i,"isViewportMatch",function(){return f});var o=n(2),c=n(5);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}function f(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(c.registerStore)("core/viewport",{reducer:u,actions:r,selectors:i});var s=n(6),p=function(t){return Object(s.createHigherOrderComponent)(Object(c.withSelect)(function(e){return Object(o.mapValues)(t,function(t){return e("core/viewport").isViewportMatch(t)})}),"withViewportMatch")},d=function(t){return Object(s.createHigherOrderComponent)(Object(s.compose)([p({isViewportMatch:t}),Object(s.ifCondition)(function(t){return t.isViewportMatch})]),"ifViewportMatches")};n.d(e,"ifViewportMatches",function(){return d}),n.d(e,"withViewportMatch",function(){return p});var l={"<":"max-width",">=":"min-width"},h=Object(o.debounce)(function(){var t=Object(o.mapValues)(w,function(t){return t.matches});Object(c.dispatch)("core/viewport").setIsMatching(t)},{leading:!0}),w=Object(o.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},function(t,e,n){return Object(o.forEach)(l,function(r,i){var o=window.matchMedia("(".concat(r,": ").concat(e,"px)"));o.addListener(h);var c=[i,n].join(" ");t[c]=o}),t},{});window.addEventListener("orientationchange",h),h(),h.flush()},5:function(t,e){!function(){t.exports=this.wp.data}()},6:function(t,e){!function(){t.exports=this.wp.compose}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/wordcount.js b/wp-includes/js/dist/wordcount.js index 18048fd5c1..ccc96b7f2f 100644 --- a/wp-includes/js/dist/wordcount.js +++ b/wp-includes/js/dist/wordcount.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["wordcount"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 314); +/******/ return __webpack_require__(__webpack_require__.s = 365); /******/ }) /************************************************************************/ /******/ ({ @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["wordcount"] = /***/ }), -/***/ 314: +/***/ 365: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -399,6 +399,12 @@ function matchCharacters(text, regex, settings) { * @param {String} type The type of count. Accepts ;words', 'characters_excluding_spaces', or 'characters_including_spaces'. * @param {Object} userSettings Custom settings object. * + * @example + * ```js + * import { count } from '@wordpress/wordcount'; + * const numberOfWords = count( 'Words to count', 'words', {} ) + * ``` + * * @return {Number} The word or character count. */ diff --git a/wp-includes/js/dist/wordcount.min.js b/wp-includes/js/dist/wordcount.min.js index 4e2101d86e..328ac4931e 100644 --- a/wp-includes/js/dist/wordcount.min.js +++ b/wp-includes/js/dist/wordcount.min.js @@ -1 +1 @@ -this.wp=this.wp||{},this.wp.wordcount=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=314)}({2:function(e,t){!function(){e.exports=this.lodash}()},314:function(e,t,n){"use strict";n.r(t);var r=n(2),o={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}},i=function(e,t){if(e.HTMLRegExp)return t.replace(e.HTMLRegExp,"\n")},c=function(e,t){return e.astralRegExp?t.replace(e.astralRegExp,"a"):t},u=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,""):t},p=function(e,t){return e.connectorRegExp?t.replace(e.connectorRegExp," "):t},s=function(e,t){return e.removeRegExp?t.replace(e.removeRegExp,""):t},a=function(e,t){return e.HTMLcommentRegExp?t.replace(e.HTMLcommentRegExp,""):t},g=function(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,"\n"):t},d=function(e,t){if(e.spaceRegExp)return t.replace(e.spaceRegExp," ")},f=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,"a"):t};function l(e,t,n){if(""===e)return 0;if(e){var l=function(e,t){var n=Object(r.extend)(o,t);return n.shortcodes=n.l10n.shortcodes||{},n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type=e||n.l10n.type,"characters_excluding_spaces"!==n.type&&"characters_including_spaces"!==n.type&&(n.type="words"),n}(t,n),x=l[t+"RegExp"],E="words"===l.type?function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),u.bind(this,n),p.bind(this,n),s.bind(this,n))(e),(e+="\n").match(t)}(e,x,l):function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),c.bind(this,n),f.bind(this,n))(e),(e+="\n").match(t)}(e,x,l);return E?E.length:0}}n.d(t,"count",function(){return l})}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.wordcount=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=365)}({2:function(e,t){!function(){e.exports=this.lodash}()},365:function(e,t,n){"use strict";n.r(t);var r=n(2),o={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}},i=function(e,t){if(e.HTMLRegExp)return t.replace(e.HTMLRegExp,"\n")},c=function(e,t){return e.astralRegExp?t.replace(e.astralRegExp,"a"):t},u=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,""):t},p=function(e,t){return e.connectorRegExp?t.replace(e.connectorRegExp," "):t},s=function(e,t){return e.removeRegExp?t.replace(e.removeRegExp,""):t},a=function(e,t){return e.HTMLcommentRegExp?t.replace(e.HTMLcommentRegExp,""):t},g=function(e,t){return e.shortcodesRegExp?t.replace(e.shortcodesRegExp,"\n"):t},d=function(e,t){if(e.spaceRegExp)return t.replace(e.spaceRegExp," ")},f=function(e,t){return e.HTMLEntityRegExp?t.replace(e.HTMLEntityRegExp,"a"):t};function l(e,t,n){if(""===e)return 0;if(e){var l=function(e,t){var n=Object(r.extend)(o,t);return n.shortcodes=n.l10n.shortcodes||{},n.shortcodes&&n.shortcodes.length&&(n.shortcodesRegExp=new RegExp("\\[\\/?(?:"+n.shortcodes.join("|")+")[^\\]]*?\\]","g")),n.type=e||n.l10n.type,"characters_excluding_spaces"!==n.type&&"characters_including_spaces"!==n.type&&(n.type="words"),n}(t,n),x=l[t+"RegExp"],E="words"===l.type?function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),u.bind(this,n),p.bind(this,n),s.bind(this,n))(e),(e+="\n").match(t)}(e,x,l):function(e,t,n){return e=Object(r.flow)(i.bind(this,n),a.bind(this,n),g.bind(this,n),d.bind(this,n),c.bind(this,n),f.bind(this,n))(e),(e+="\n").match(t)}(e,x,l);return E?E.length:0}}n.d(t,"count",function(){return l})}}); \ No newline at end of file diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 3aee09ad6a..a3ca60e75e 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -91,8 +91,8 @@ function wp_default_packages_vendor( &$scripts ) { ); $vendor_scripts_versions = array( - 'react' => '16.6.3', - 'react-dom' => '16.6.3', + 'react' => '16.8.4', + 'react-dom' => '16.8.4', 'moment' => '2.22.2', 'lodash' => '4.17.11', 'wp-polyfill-fetch' => '3.0.0', @@ -224,45 +224,45 @@ function wp_default_packages_scripts( &$scripts ) { $suffix = wp_scripts_get_suffix(); $packages_versions = array( - 'a11y' => '2.1.0', - 'annotations' => '1.1.0', - 'api-fetch' => '3.0.0', - 'autop' => '2.1.0', - 'blob' => '2.2.0', - 'block-editor' => '1.0.0', - 'block-library' => '2.3.0', - 'block-serialization-default-parser' => '3.0.0', - 'blocks' => '6.1.0', - 'components' => '7.1.0', - 'compose' => '3.1.0', - 'core-data' => '2.1.0', - 'data' => '4.3.0', - 'date' => '3.1.0', - 'deprecated' => '2.1.0', - 'dom' => '2.1.0', - 'dom-ready' => '2.1.0', - 'edit-post' => '3.2.0', - 'editor' => '9.1.0', - 'element' => '2.2.0', - 'escape-html' => '1.1.0', - 'format-library' => '1.3.0', - 'hooks' => '2.1.0', - 'html-entities' => '2.1.0', - 'i18n' => '3.2.0', + 'a11y' => '2.2.0', + 'annotations' => '1.2.0', + 'api-fetch' => '3.1.0', + 'autop' => '2.0.0', + 'blob' => '2.3.0', + 'block-editor' => '1.1.0', + 'block-library' => '2.4.0', + 'block-serialization-default-parser' => '3.1.0', + 'blocks' => '6.2.0', + 'components' => '7.2.0', + 'compose' => '3.2.0', + 'core-data' => '2.2.0', + 'data' => '4.4.0', + 'date' => '3.2.0', + 'deprecated' => '2.2.0', + 'dom' => '2.2.0', + 'dom-ready' => '2.2.0', + 'edit-post' => '3.3.0', + 'editor' => '9.2.0', + 'element' => '2.3.0', + 'escape-html' => '1.2.0', + 'format-library' => '1.4.0', + 'hooks' => '2.2.0', + 'html-entities' => '2.2.0', + 'i18n' => '3.3.0', 'is-shallow-equal' => '1.2.0', - 'keycodes' => '2.1.0', - 'list-reusable-blocks' => '1.2.0', - 'notices' => '1.2.0', - 'nux' => '3.1.0', - 'plugins' => '2.1.0', - 'priority-queue' => '1.0.0', - 'redux-routine' => '3.1.0', - 'rich-text' => '3.1.0', - 'shortcode' => '2.1.0', + 'keycodes' => '2.2.0', + 'list-reusable-blocks' => '1.3.0', + 'notices' => '1.3.0', + 'nux' => '3.2.0', + 'plugins' => '2.2.0', + 'priority-queue' => '1.1.0', + 'redux-routine' => '3.2.0', + 'rich-text' => '3.2.0', + 'shortcode' => '2.2.0', 'token-list' => '1.2.0', - 'url' => '2.4.0', - 'viewport' => '2.2.0', - 'wordcount' => '2.1.0', + 'url' => '2.5.0', + 'viewport' => '2.3.0', + 'wordcount' => '2.2.0', ); $packages_dependencies = array( @@ -318,12 +318,25 @@ function wp_default_packages_scripts( &$scripts ) { 'block-serialization-default-parser' => array(), 'block-editor' => array( 'lodash', + 'wp-a11y', + 'wp-blob', 'wp-blocks', - 'wp-compose', 'wp-components', + 'wp-compose', + 'wp-core-data', 'wp-data', + 'wp-dom', 'wp-element', + 'wp-hooks', + 'wp-html-entities', 'wp-i18n', + 'wp-is-shallow-equal', + 'wp-keycodes', + 'wp-rich-text', + 'wp-token-list', + 'wp-url', + 'wp-viewport', + 'wp-wordcount', ), 'components' => array( 'lodash', @@ -399,7 +412,6 @@ function wp_default_packages_scripts( &$scripts ) { ), 'editor' => array( 'lodash', - 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', @@ -410,25 +422,22 @@ function wp_default_packages_scripts( &$scripts ) { 'wp-data', 'wp-date', 'wp-deprecated', - 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', - 'wp-is-shallow-equal', 'wp-keycodes', 'wp-notices', 'wp-nux', 'wp-polyfill', - 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount', - 'wp-rich-text', ), 'element' => array( 'wp-polyfill', 'react', 'react-dom', 'lodash', 'wp-escape-html' ), 'escape-html' => array( 'wp-polyfill' ), 'format-library' => array( + 'wp-block-editor', 'wp-components', 'wp-editor', 'wp-element', @@ -1995,10 +2004,25 @@ function wp_default_styles( &$styles ) { ); $package_styles = array( + 'block-editor' => array( + 'wp-components', + 'wp-editor-font', + ), 'block-library' => array(), 'components' => array(), - 'edit-post' => array( 'wp-components', 'wp-editor', 'wp-edit-blocks', 'wp-block-library', 'wp-nux' ), - 'editor' => array( 'wp-components', 'wp-editor-font', 'wp-nux' ), + 'edit-post' => array( + 'wp-components', + 'wp-block-editor', + 'wp-editor', + 'wp-edit-blocks', + 'wp-block-library', + 'wp-nux', + ), + 'editor' => array( + 'wp-components', + 'wp-block-editor', + 'wp-nux', + ), 'format-library' => array(), 'list-reusable-blocks' => array( 'wp-components' ), 'nux' => array( 'wp-components' ), @@ -2047,6 +2071,7 @@ function wp_default_styles( &$styles ) { // Package styles 'wp-block-library-theme', 'wp-edit-blocks', + 'wp-block-editor', 'wp-block-library', 'wp-components', 'wp-edit-post', diff --git a/wp-includes/version.php b/wp-includes/version.php index 927c89d7f5..afd6cc539c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-alpha-44959'; +$wp_version = '5.2-alpha-44960'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.